| /openbsd-src/sys/dev/pci/drm/i915/gt/ |
| H A D | gen8_engine_cs.c | 16 u32 *cs, flags = 0; in gen8_emit_flush_rcs() local 58 cs = intel_ring_begin(rq, len); in gen8_emit_flush_rcs() 59 if (IS_ERR(cs)) in gen8_emit_flush_rcs() 60 return PTR_ERR(cs); in gen8_emit_flush_rcs() 63 cs = gen8_emit_pipe_control(cs, 0, 0); in gen8_emit_flush_rcs() 66 cs = gen8_emit_pipe_control(cs, PIPE_CONTROL_DC_FLUSH_ENABLE, in gen8_emit_flush_rcs() 69 cs = gen8_emit_pipe_control(cs, flag in gen8_emit_flush_rcs() 81 u32 cmd, *cs; gen8_emit_flush_xcs() local 115 u32 *cs; gen11_emit_flush_rcs() local 137 u32 *cs; gen11_emit_flush_rcs() local 202 gen12_emit_aux_table_inv(struct intel_engine_cs * engine,u32 * cs) gen12_emit_aux_table_inv() argument 231 u32 *cs; mtl_dummy_pipe_control() local 259 u32 *cs; gen12_emit_flush_rcs() local 313 u32 *cs, count; gen12_emit_flush_rcs() local 367 u32 *cs; gen12_emit_flush_xcs() local 438 u32 *cs; gen8_emit_init_breadcrumb() local 490 u32 *cs; __xehp_emit_bb_start() local 542 u32 *cs; gen8_emit_bb_start_noarb() local 578 u32 *cs; gen8_emit_bb_start() local 615 gen8_emit_wa_tail(struct i915_request * rq,u32 * cs) gen8_emit_wa_tail() argument 628 emit_preempt_busywait(struct i915_request * rq,u32 * cs) emit_preempt_busywait() argument 644 gen8_emit_fini_breadcrumb_tail(struct i915_request * rq,u32 * cs) gen8_emit_fini_breadcrumb_tail() argument 659 emit_xcs_breadcrumb(struct i915_request * rq,u32 * cs) emit_xcs_breadcrumb() argument 664 gen8_emit_fini_breadcrumb_xcs(struct i915_request * rq,u32 * cs) gen8_emit_fini_breadcrumb_xcs() argument 669 gen8_emit_fini_breadcrumb_rcs(struct i915_request * rq,u32 * cs) gen8_emit_fini_breadcrumb_rcs() argument 689 gen11_emit_fini_breadcrumb_rcs(struct i915_request * rq,u32 * cs) gen11_emit_fini_breadcrumb_rcs() argument 729 gen12_emit_preempt_busywait(struct i915_request * rq,u32 * cs) gen12_emit_preempt_busywait() argument 753 ccs_emit_wa_busywait(struct i915_request * rq,u32 * cs) ccs_emit_wa_busywait() argument 782 gen12_emit_fini_breadcrumb_tail(struct i915_request * rq,u32 * cs) gen12_emit_fini_breadcrumb_tail() argument 801 gen12_emit_fini_breadcrumb_xcs(struct i915_request * rq,u32 * cs) gen12_emit_fini_breadcrumb_xcs() argument 808 gen12_emit_fini_breadcrumb_rcs(struct i915_request * rq,u32 * cs) gen12_emit_fini_breadcrumb_rcs() argument [all...] |
| H A D | gen6_engine_cs.c | 60 u32 *cs; in gen6_emit_post_sync_nonzero_flush() local 62 cs = intel_ring_begin(rq, 6); in gen6_emit_post_sync_nonzero_flush() 63 if (IS_ERR(cs)) in gen6_emit_post_sync_nonzero_flush() 64 return PTR_ERR(cs); in gen6_emit_post_sync_nonzero_flush() 66 *cs++ = GFX_OP_PIPE_CONTROL(5); in gen6_emit_post_sync_nonzero_flush() 67 *cs++ = PIPE_CONTROL_CS_STALL | PIPE_CONTROL_STALL_AT_SCOREBOARD; in gen6_emit_post_sync_nonzero_flush() 68 *cs++ = scratch_addr | PIPE_CONTROL_GLOBAL_GTT; in gen6_emit_post_sync_nonzero_flush() 69 *cs++ = 0; /* low dword */ in gen6_emit_post_sync_nonzero_flush() 70 *cs++ = 0; /* high dword */ in gen6_emit_post_sync_nonzero_flush() 71 *cs++ = MI_NOOP; in gen6_emit_post_sync_nonzero_flush() [all …]
|
| H A D | gen2_engine_cs.c | 19 u32 cmd, *cs; in gen2_emit_flush() local 25 cs = intel_ring_begin(rq, 2 + 4 * num_store_dw); in gen2_emit_flush() 26 if (IS_ERR(cs)) in gen2_emit_flush() 27 return PTR_ERR(cs); in gen2_emit_flush() 29 *cs++ = cmd; in gen2_emit_flush() 31 *cs++ = MI_STORE_DWORD_INDEX; in gen2_emit_flush() 32 *cs++ = I915_GEM_HWS_SCRATCH * sizeof(u32); in gen2_emit_flush() 33 *cs++ = 0; in gen2_emit_flush() 34 *cs++ = MI_FLUSH | MI_NO_WRITE_FLUSH; in gen2_emit_flush() 36 *cs++ = cmd; in gen2_emit_flush() [all …]
|
| H A D | gen7_renderclear.c | 102 static u32 batch_offset(const struct batch_chunk *bc, u32 *cs) in batch_offset() argument 104 return (cs - bc->start) * sizeof(*bc->start) + bc->offset; in batch_offset() 148 u32 *cs = batch_alloc_items(state, 32, 8); in gen7_fill_surface_state() local 149 u32 offset = batch_offset(state, cs); in gen7_fill_surface_state() 155 *cs++ = SURFACE_2D << 29 | in gen7_fill_surface_state() 159 *cs++ = batch_addr(state) + dst_offset; in gen7_fill_surface_state() 161 *cs++ = ((surface_h / 4 - 1) << 16) | (surface_w / 4 - 1); in gen7_fill_surface_state() 162 *cs++ = surface_w; in gen7_fill_surface_state() 163 *cs++ = 0; in gen7_fill_surface_state() 164 *cs++ = 0; in gen7_fill_surface_state() [all …]
|
| H A D | intel_migrate.c | 336 u32 *cs; in emit_no_arbitration() local 338 cs = intel_ring_begin(rq, 2); in emit_no_arbitration() 339 if (IS_ERR(cs)) in emit_no_arbitration() 340 return PTR_ERR(cs); in emit_no_arbitration() 343 *cs++ = MI_ARB_ON_OFF; in emit_no_arbitration() 344 *cs++ = MI_NOOP; in emit_no_arbitration() 345 intel_ring_advance(rq, cs); in emit_no_arbitration() 376 u32 *hdr, *cs; in emit_pte() local 403 cs = intel_ring_begin(rq, I915_EMIT_PTE_NUM_DWORDS); in emit_pte() 404 if (IS_ERR(cs)) in emit_pte() [all …]
|
| H A D | gen8_engine_cs.h | 43 u32 *gen8_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 44 u32 *gen12_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 46 u32 *gen8_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 47 u32 *gen11_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 48 u32 *gen12_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 50 u32 *gen12_emit_aux_table_inv(struct intel_engine_cs *engine, u32 *cs); 79 __gen8_emit_write_rcs(u32 *cs, u32 value, u32 offset, u32 flags0, u32 flags1) in __gen8_emit_write_rcs() argument 81 *cs++ = GFX_OP_PIPE_CONTROL(6) | flags0; in __gen8_emit_write_rcs() 82 *cs++ = flags1 | PIPE_CONTROL_QW_WRITE; in __gen8_emit_write_rcs() 83 *cs++ = offset; in __gen8_emit_write_rcs() [all …]
|
| /openbsd-src/usr.bin/vi/vi/ |
| H A D | v_word.c | 103 VCS cs; in fword() local 107 cs.cs_lno = vp->m_start.lno; in fword() 108 cs.cs_cno = vp->m_start.cno; in fword() 109 if (cs_init(sp, &cs)) in fword() 119 if (cs.cs_flags == CS_EMP || (cs.cs_flags == 0 && isblank(cs.cs_ch))) { in fword() 120 if (ISMOTION(vp) && cs.cs_flags != CS_EMP && cnt == 1) { in fword() 124 if (cs_fspace(sp, &cs)) in fword() 129 if (cs_fblank(sp, &cs)) in fword() 143 if (cs_next(sp, &cs)) in fword() 145 if (cs.cs_flags == CS_EOF) in fword() [all …]
|
| H A D | v_sentence.c | 56 VCS cs; in v_sentencef() local 60 cs.cs_lno = vp->m_start.lno; in v_sentencef() 61 cs.cs_cno = vp->m_start.cno; in v_sentencef() 62 if (cs_init(sp, &cs)) in v_sentencef() 73 if (cs.cs_flags == CS_EMP || (cs.cs_flags == 0 && isblank(cs.cs_ch))) { in v_sentencef() 74 if (cs_fblank(sp, &cs)) in v_sentencef() 77 if (vp->m_start.lno != cs.cs_lno || in v_sentencef() 78 vp->m_start.cno != cs.cs_cno) in v_sentencef() 85 if (cs_next(sp, &cs)) in v_sentencef() 87 if (cs.cs_flags == CS_EOF) in v_sentencef() [all …]
|
| /openbsd-src/sys/dev/ic/ |
| H A D | z8530sc.c | 109 zs_break(struct zs_chanstate *cs, int set) in zs_break() argument 113 cs->cs_preg[5] |= ZSWR5_BREAK; in zs_break() 114 cs->cs_creg[5] |= ZSWR5_BREAK; in zs_break() 116 cs->cs_preg[5] &= ~ZSWR5_BREAK; in zs_break() 117 cs->cs_creg[5] &= ~ZSWR5_BREAK; in zs_break() 119 zs_write_reg(cs, 5, cs->cs_creg[5]); in zs_break() 127 zs_iflush(struct zs_chanstate *cs) in zs_iflush() argument 138 rr0 = zs_read_csr(cs); in zs_iflush() 146 rr1 = zs_read_reg(cs, 1); in zs_iflush() 147 c = zs_read_data(cs); in zs_iflush() [all …]
|
| H A D | z8530tty.c | 265 struct zs_chanstate *cs; in zstty_attach() local 277 cs = zsc->zsc_cs[channel]; in zstty_attach() 278 cs->cs_private = zst; in zstty_attach() 279 cs->cs_ops = &zsops_tty; in zstty_attach() 281 zst->zst_cs = cs; in zstty_attach() 343 if (!cs->enable) in zstty_attach() 344 cs->enabled = 1; in zstty_attach() 360 t.c_ospeed = cs->cs_defspeed; in zstty_attach() 361 t.c_cflag = cs->cs_defcflag; in zstty_attach() 371 SET(cs->cs_preg[1], ZSWR1_RIE | ZSWR1_TIE | ZSWR1_SIE); in zstty_attach() [all …]
|
| /openbsd-src/sys/dev/pci/drm/i915/pxp/ |
| H A D | intel_pxp_cmd.c | 23 static u32 *pxp_emit_session_selection(u32 *cs, u32 idx) in pxp_emit_session_selection() argument 25 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 28 *cs++ = MI_FLUSH_DW; in pxp_emit_session_selection() 29 *cs++ = 0; in pxp_emit_session_selection() 30 *cs++ = 0; in pxp_emit_session_selection() 33 *cs++ = MI_SET_APPID | MI_SET_APPID_SESSION_ID(idx); in pxp_emit_session_selection() 35 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 38 *cs++ = MI_FLUSH_DW | MI_FLUSH_DW_PROTECTED_MEM_EN | in pxp_emit_session_selection() 40 *cs++ = I915_GEM_HWS_PXP_ADDR | MI_FLUSH_DW_USE_GTT; in pxp_emit_session_selection() 41 *cs++ = 0; in pxp_emit_session_selection() [all …]
|
| /openbsd-src/sys/dev/tc/ |
| H A D | zs_ioasic.c | 228 struct zs_chanstate *cs; in zs_ioasic_attach() local 245 cs = &zs_ioasic_conschanstate_store; in zs_ioasic_attach() 248 cs = malloc(sizeof(struct zs_chanstate), in zs_ioasic_attach() 251 cs->cs_reg_csr = (volatile void *)&zc->zc_csr; in zs_ioasic_attach() 253 memcpy(cs->cs_creg, zs_ioasic_init_reg, 16); in zs_ioasic_attach() 254 memcpy(cs->cs_preg, zs_ioasic_init_reg, 16); in zs_ioasic_attach() 256 cs->cs_defcflag = zs_def_cflag; in zs_ioasic_attach() 257 cs->cs_defspeed = 9600; /* XXX */ in zs_ioasic_attach() 258 (void)zs_set_modes(cs, cs->cs_defcflag); in zs_ioasic_attach() 261 zs->zsc_cs[channel] = cs; in zs_ioasic_attach() [all …]
|
| /openbsd-src/sys/arch/sparc64/dev/ |
| H A D | z8530kbd.c | 274 struct zs_chanstate *cs; in zskbd_attach() local 288 cs = zsc->zsc_cs[channel]; in zskbd_attach() 289 cs->cs_private = zst; in zskbd_attach() 290 cs->cs_ops = &zsops_kbd; in zskbd_attach() 292 zst->zst_cs = cs; in zskbd_attach() 325 if (!cs->enable) in zskbd_attach() 326 cs->enabled = 1; in zskbd_attach() 342 zs_write_reg(cs, 9, reset); in zskbd_attach() 354 SET(cs->cs_preg[1], ZSWR1_RIE | ZSWR1_SIE); in zskbd_attach() 355 zs_write_reg(cs, 1, cs->cs_creg[1]); in zskbd_attach() [all …]
|
| H A D | zs.c | 295 struct zs_chanstate *cs; in zs_attach() local 316 cs = &zsc->zsc_cs_store[channel]; in zs_attach() 317 zsc->zsc_cs[channel] = cs; in zs_attach() 319 cs->cs_channel = channel; in zs_attach() 320 cs->cs_private = NULL; in zs_attach() 321 cs->cs_ops = &zsops_null; in zs_attach() 322 cs->cs_brg_clk = PCLK / 16; in zs_attach() 349 cs->cs_reg_csr = &zc->zc_csr; in zs_attach() 350 cs->cs_reg_data = &zc->zc_data; in zs_attach() 352 bcopy(zs_init_reg, cs in zs_attach() 472 zs_get_speed(struct zs_chanstate * cs) zs_get_speed() argument 485 zs_set_speed(struct zs_chanstate * cs,int bps) zs_set_speed() argument 516 zs_set_modes(struct zs_chanstate * cs,int cflag) zs_set_modes() argument 566 zs_read_reg(struct zs_chanstate * cs,u_char reg) zs_read_reg() argument 578 zs_write_reg(struct zs_chanstate * cs,u_char reg,u_char val) zs_write_reg() argument 587 zs_read_csr(struct zs_chanstate * cs) zs_read_csr() argument 597 zs_write_csr(struct zs_chanstate * cs,u_char val) zs_write_csr() argument 604 zs_read_data(struct zs_chanstate * cs) zs_read_data() argument 614 zs_write_data(struct zs_chanstate * cs,u_char val) zs_write_data() argument 631 zs_abort(struct zs_chanstate * cs) zs_abort() argument [all...] |
| /openbsd-src/sys/dev/sun/ |
| H A D | z8530ms.c | 201 struct zs_chanstate *cs; in zsms_attach() local 206 cs = zsc->zsc_cs[channel]; in zsms_attach() 207 cs->cs_private = sc; in zsms_attach() 208 cs->cs_ops = &zsops_ms; in zsms_attach() 209 sc->sc_cs = cs; in zsms_attach() 213 zs_write_reg(cs, 9, channel == 0 ? ZSWR9_A_RESET : ZSWR9_B_RESET); in zsms_attach() 215 CLR(cs->cs_preg[1], ZSWR1_RIE | ZSWR1_SIE | ZSWR1_TIE); in zsms_attach() 218 CLR(cs->cs_preg[4], ZSWR4_SBMASK | ZSWR4_PARMASK); in zsms_attach() 219 SET(cs->cs_preg[4], ZSWR4_TWOSB); in zsms_attach() 220 (void)zs_set_speed(cs, INIT_SPEED); in zsms_attach() [all …]
|
| /openbsd-src/sys/arch/macppc/dev/ |
| H A D | zs.c | 194 struct zs_chanstate *cs; in zs_attach() local 241 cs = &xcs->xzs_cs; in zs_attach() 242 zsc->zsc_cs[channel] = cs; in zs_attach() 244 cs->cs_channel = channel; in zs_attach() 245 cs->cs_private = NULL; in zs_attach() 246 cs->cs_ops = &zsops_null; in zs_attach() 250 cs->cs_reg_csr = &zc->zc_csr; in zs_attach() 251 cs->cs_reg_data = &zc->zc_data; in zs_attach() 253 memcpy(cs->cs_creg, zs_init_reg, 16); in zs_attach() 254 memcpy(cs in zs_attach() 383 zsmdioctl(struct zs_chanstate * cs,u_long cmd,caddr_t data) zsmdioctl() argument 393 zsmd_setclock(struct zs_chanstate * cs) zsmd_setclock() argument 473 struct zs_chanstate *cs; zs_txdma_int() local 494 zs_dma_setup(struct zs_chanstate * cs,caddr_t pa,int len) zs_dma_setup() argument 520 zs_get_speed(struct zs_chanstate * cs) zs_get_speed() argument 547 zs_set_speed(struct zs_chanstate * cs,int bps) zs_set_speed() argument 686 zs_set_modes(struct zs_chanstate * cs,int cflag) zs_set_modes() argument 773 zs_read_reg(struct zs_chanstate * cs,u_char reg) zs_read_reg() argument 785 zs_write_reg(struct zs_chanstate * cs,u_char reg,u_char val) zs_write_reg() argument 794 zs_read_csr(struct zs_chanstate * cs) zs_read_csr() argument 806 zs_write_csr(struct zs_chanstate * cs,u_char val) zs_write_csr() argument 814 zs_read_data(struct zs_chanstate * cs) zs_read_data() argument 824 zs_write_data(struct zs_chanstate * cs,u_char val) zs_write_data() argument 838 zs_enable(struct zs_chanstate * cs) zs_enable() argument 846 zs_disable(struct zs_chanstate * cs) zs_disable() argument [all...] |
| /openbsd-src/usr.bin/bc/ |
| H A D | bc.y | 72 static ssize_t cs(const char *); 202 $$ = cs(""); 214 $$ = cs(""); 232 $$ = cs(""); 239 $$ = node($1, cs("ps."), END_NODE); 244 $$ = node($3, cs($2), $1.store, 247 $$ = node($1.load, $3, cs($2), $1.store, 252 $$ = node(cs("["), as($1), 253 cs("]P"), END_NODE); 264 cs("Q"), END_NODE); [all …]
|
| /openbsd-src/lib/libm/src/ |
| H A D | s_sincosf.c | 32 sincosf(float x, float *sn, float *cs) in sincosf() argument 45 *cs = 1; in sincosf() 49 __kernel_sincosdf(x, sn, cs); in sincosf() 56 __kernel_sincosdf(x - p1pio2, cs, sn); in sincosf() 57 *cs = -*cs; in sincosf() 59 __kernel_sincosdf(x + p1pio2, cs, sn); in sincosf() 64 __kernel_sincosdf(x - p2pio2, sn, cs); in sincosf() 66 __kernel_sincosdf(x + p2pio2, sn, cs); in sincosf() 68 *cs = -*cs; in sincosf() 76 __kernel_sincosdf(x - p3pio2, cs, sn); in sincosf() [all …]
|
| /openbsd-src/usr.sbin/httpd/ |
| H A D | control.c | 43 control_init(struct privsep *ps, struct control_sock *cs) in control_init() argument 50 if (cs->cs_name == NULL) in control_init() 59 if (strlcpy(sun.sun_path, cs->cs_name, in control_init() 61 log_warn("%s: %s name too long", __func__, cs->cs_name); in control_init() 66 if (unlink(cs->cs_name) == -1) in control_init() 68 log_warn("%s: unlink %s", __func__, cs->cs_name); in control_init() 73 if (cs->cs_restricted) { in control_init() 82 log_warn("%s: bind: %s", __func__, cs->cs_name); in control_init() 89 if (chmod(cs->cs_name, mode) == -1) { in control_init() 92 (void)unlink(cs in control_init() 103 control_listen(struct control_sock * cs) control_listen() argument 122 control_cleanup(struct control_sock * cs) control_cleanup() argument 137 struct control_sock *cs = arg; control_accept() local 192 control_close(int fd,struct control_sock * cs) control_close() argument 219 struct control_sock *cs = arg; control_dispatch_imsg() local [all...] |
| /openbsd-src/regress/sys/net/pf_divert/ |
| H A D | Client.pm | 54 my $cs; 56 do { local $> = 0; $cs = IO::Socket->new( 61 do { local $> = 0; $cs->setsockopt(SOL_SOCKET, SO_BINDANY, 1) } 65 $cs->bind($rres[3]) 68 do { local $> = 0; $cs = IO::Socket->new( 76 if ($cs) { 77 $self->{bindaddr} = $cs->sockhost(); 78 $self->{bindport} = $cs->sockport(); 79 $self->{cs} = $cs; 94 my $cs = $self->{cs} || do { local $> = 0; IO::Socket->new( [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | ipa-prop.c | 333 ipa_callsite_param_count (struct cgraph_edge *cs) in ipa_callsite_param_count() argument 335 return IPA_EDGE_REF (cs)->ipa_param_num; in ipa_callsite_param_count() 340 ipa_callsite_param_count_set (struct cgraph_edge *cs, int i) in ipa_callsite_param_count_set() argument 342 IPA_EDGE_REF (cs)->ipa_param_num = i; in ipa_callsite_param_count_set() 348 ipa_callsite_param (struct cgraph_edge *cs, int i) in ipa_callsite_param() argument 350 return &(IPA_EDGE_REF (cs)->ipa_param_map[i]); in ipa_callsite_param() 355 ipa_callsite_callee (struct cgraph_edge *cs) in ipa_callsite_callee() argument 357 return cs->callee; in ipa_callsite_callee() 363 ipa_callsite_param_set_type (struct cgraph_edge *cs, int i, in ipa_callsite_param_set_type() argument 366 IPA_EDGE_REF (cs)->ipa_param_map[i].type = type1; in ipa_callsite_param_set_type() [all …]
|
| /openbsd-src/usr.sbin/ldapd/ |
| H A D | control.c | 50 control_init(struct control_sock *cs) in control_init() argument 56 if (cs->cs_name == NULL) in control_init() 64 if (strlcpy(sun.sun_path, cs->cs_name, in control_init() 71 if (unlink(cs->cs_name) == -1 && errno != ENOENT) in control_init() 74 if (cs->cs_restricted) { in control_init() 88 if (chmod(cs->cs_name, mode) == -1) { in control_init() 89 (void)unlink(cs->cs_name); in control_init() 93 cs->cs_fd = fd; in control_init() 97 control_listen(struct control_sock *cs) in control_listen() argument 99 if (cs->cs_name == NULL) in control_listen() [all …]
|
| /openbsd-src/usr.sbin/npppd/npppd/ |
| H A D | control.c | 54 control_init(struct control_sock *cs) in control_init() argument 60 if (cs->cs_name == NULL) in control_init() 69 if (strlcpy(sun.sun_path, cs->cs_name, in control_init() 71 log_warn("control_init: %s name too long", cs->cs_name); in control_init() 76 if (unlink(cs->cs_name) == -1) in control_init() 78 log_warn("control_init: unlink %s", cs->cs_name); in control_init() 83 if (cs->cs_restricted) { in control_init() 92 log_warn("control_init: bind: %s", cs->cs_name); in control_init() 99 if (chmod(cs->cs_name, mode) == -1) { in control_init() 102 (void)unlink(cs in control_init() 113 control_listen(struct control_sock * cs) control_listen() argument 132 control_cleanup(struct control_sock * cs) control_cleanup() argument 151 struct control_sock *cs = (struct control_sock *)arg; control_accept() local 215 control_close(int fd,struct control_sock * cs) control_close() argument 243 struct control_sock *cs = (struct control_sock *)arg; control_dispatch_imsg() local [all...] |
| /openbsd-src/regress/sys/kern/sosplice/ |
| H A D | Client.pm | 45 my $cs = IO::SocketIP->new( 51 $self->{bindaddr} = $cs->sockhost(); 52 $self->{bindport} = $cs->sockport(); 53 $self->{cs} = $cs; 62 my $cs = $self->{cs} || IO::Socket->new( 67 setsockopt($cs, SOL_SOCKET, SO_OOBINLINE, pack('i', 1)) 71 setsockopt($cs, SOL_SOCKET, SO_SNDBUF, 76 setsockopt($cs, SOL_SOCKET, SO_RCVBUF, 81 setsockopt($cs, IPPROTO_TCP, TCP_NODELAY, pack('i', 1)) 86 $cs->connect($rres[3]) [all …]
|
| /openbsd-src/sys/net/ |
| H A D | slcompress.c | 169 struct cstate *cs = comp->last_cs->cs_next; in sl_compress_tcp() local 198 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr || in sl_compress_tcp() 199 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr || in sl_compress_tcp() 200 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp() 217 lcs = cs; cs = cs->cs_next; in sl_compress_tcp() 219 if (ip->ip_src.s_addr == cs->cs_ip.ip_src.s_addr in sl_compress_tcp() 220 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr in sl_compress_tcp() 222 ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp() 224 } while (cs != lastcs); in sl_compress_tcp() 244 if (cs == lastcs) in sl_compress_tcp() [all …]
|