Home
last modified time | relevance | path

Searched full:cs (Results 1 – 25 of 1862) sorted by relevance

12345678910>>...75

/freebsd/usr.bin/vgrind/
H A Dregexp.c162 register char *cs; /* pointer to current symbol in converted exp */ in expconv() local
169 cs = NULL; in expconv()
178 if (cs == NULL || (*cs & STR) == 0) { in expconv()
179 cs = ccre; in expconv()
180 *cs = STR; in expconv()
181 SCNT(cs) = 1; in expconv()
184 SCNT(cs)++; in expconv()
193 if (acs != NULL && acs != cs) { in expconv()
201 cs = ccre; in expconv()
202 *cs = META; in expconv()
[all …]
/freebsd/contrib/nvi/vi/
H A Dv_word.c101 VCS cs; in fword() local
105 cs.cs_lno = vp->m_start.lno; in fword()
106 cs.cs_cno = vp->m_start.cno; in fword()
107 if (cs_init(sp, &cs)) in fword()
117 if (cs.cs_flags == CS_EMP || (cs.cs_flags == 0 && ISBLANK(cs.cs_ch))) { in fword()
118 if (ISMOTION(vp) && cs.cs_flags != CS_EMP && cnt == 1) { in fword()
122 if (cs_fspace(sp, &cs)) in fword()
127 if (cs_fblank(sp, &cs)) in fword()
141 if (cs_next(sp, &cs)) in fword()
143 if (cs.cs_flags == CS_EOF) in fword()
[all …]
H A Dv_sentence.c54 VCS cs; in v_sentencef() local
58 cs.cs_lno = vp->m_start.lno; in v_sentencef()
59 cs.cs_cno = vp->m_start.cno; in v_sentencef()
60 if (cs_init(sp, &cs)) in v_sentencef()
71 if (cs.cs_flags == CS_EMP || (cs.cs_flags == 0 && isblank(cs.cs_ch))) { in v_sentencef()
72 if (cs_fblank(sp, &cs)) in v_sentencef()
75 if (vp->m_start.lno != cs.cs_lno || in v_sentencef()
76 vp->m_start.cno != cs.cs_cno) in v_sentencef()
83 if (cs_next(sp, &cs)) in v_sentencef()
85 if (cs.cs_flags == CS_EOF) in v_sentencef()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend_iscsi.c172 static void cfiscsi_session_terminate(struct cfiscsi_session *cs);
174 struct cfiscsi_session *cs, union ctl_io *io,
177 static void cfiscsi_data_wait_free(struct cfiscsi_session *cs,
185 static void cfiscsi_session_delete(struct cfiscsi_session *cs);
210 struct cfiscsi_session *cs; in cfiscsi_pdu_update_cmdsn() local
213 cs = PDU_SESSION(request); in cfiscsi_pdu_update_cmdsn()
221 cs->cs_timeout = 0; in cfiscsi_pdu_update_cmdsn()
247 if (atomic_fcmpset_32(&cs->cs_cmdsn, &curcmdsn, cmdsn + 1)) in cfiscsi_pdu_update_cmdsn()
257 CFISCSI_SESSION_WARN(cs, "received PDU with CmdSN %u, " in cfiscsi_pdu_update_cmdsn()
267 CFISCSI_SESSION_WARN(cs, "received PDU with CmdSN %u, " in cfiscsi_pdu_update_cmdsn()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_chksum.c101 chksum_stat_t *cs; in chksum_kstat_data() local
105 cs = (chksum_stat_t *)data; in chksum_kstat_data()
106 kmem_scnprintf(b, 23, "%s-%s", cs->name, cs->impl); in chksum_kstat_data()
109 (u_longlong_t)cs->bs1k); in chksum_kstat_data()
111 (u_longlong_t)cs->bs4k); in chksum_kstat_data()
113 (u_longlong_t)cs->bs16k); in chksum_kstat_data()
115 (u_longlong_t)cs->bs64k); in chksum_kstat_data()
117 (u_longlong_t)cs->bs256k); in chksum_kstat_data()
119 (u_longlong_t)cs->bs1m); in chksum_kstat_data()
121 (u_longlong_t)cs->bs4m); in chksum_kstat_data()
[all …]
/freebsd/contrib/tcpdump/
H A Dcpack.c57 nd_cpack_align_and_reserve(struct cpack_state *cs, size_t wordsize) in nd_cpack_align_and_reserve() argument
62 next = nd_cpack_next_boundary(cs->c_buf, cs->c_next, wordsize); in nd_cpack_align_and_reserve()
65 if (next - cs->c_buf + wordsize > cs->c_len) in nd_cpack_align_and_reserve()
73 nd_cpack_advance(struct cpack_state *cs, const size_t toskip) in nd_cpack_advance() argument
76 if (cs->c_next - cs->c_buf + toskip > cs->c_len) in nd_cpack_advance()
78 cs->c_next += toskip; in nd_cpack_advance()
83 nd_cpack_init(struct cpack_state *cs, const uint8_t *buf, size_t buflen) in nd_cpack_init() argument
85 memset(cs, 0, sizeof(*cs)); in nd_cpack_init()
87 cs->c_buf = buf; in nd_cpack_init()
88 cs->c_len = buflen; in nd_cpack_init()
[all …]
/freebsd/lib/libc/locale/
H A DmbrtocXX_iconv.h61 _ConversionState *cs; in mbrtocXX_l() local
69 cs = (_ConversionState *)ps; in mbrtocXX_l()
70 handle = &cs->iconv; in mbrtocXX_l()
73 if (s == NULL || !cs->initialized) { in mbrtocXX_l()
76 cs->initialized = false; in mbrtocXX_l()
80 cs->srcbuf_len = cs->dstbuf_len = 0; in mbrtocXX_l()
81 cs->initialized = true; in mbrtocXX_l()
87 if (cs->dstbuf_len > 0) { in mbrtocXX_l()
93 if (n > sizeof(cs->srcbuf) - cs->srcbuf_len) in mbrtocXX_l()
94 n = sizeof(cs->srcbuf) - cs->srcbuf_len; in mbrtocXX_l()
[all …]
H A DcXXrtomb_iconv.h57 _ConversionState *cs; in cXXrtomb_l() local
66 cs = (_ConversionState *)ps; in cXXrtomb_l()
67 handle = &cs->iconv; in cXXrtomb_l()
70 if (s == NULL || !cs->initialized) { in cXXrtomb_l()
73 cs->initialized = false; in cXXrtomb_l()
77 cs->srcbuf_len = 0; in cXXrtomb_l()
78 cs->initialized = true; in cXXrtomb_l()
83 assert(cs->srcbuf_len < sizeof(cs->srcbuf.widechar) / sizeof(charXX_t)); in cXXrtomb_l()
84 cs->srcbuf.widechar[cs->srcbuf_len++] = c; in cXXrtomb_l()
87 src = cs->srcbuf.bytes; in cXXrtomb_l()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/memory-controllers/
H A Dti-aemif.txt34 - CS-specific partition/range. If continuous, must be
38 - control partition which is common for all CS
56 Child chip-select (cs) nodes contain the memory devices nodes connected to
60 Required child cs node properties:
73 - ti,cs-chipselect: number of chipselect. Indicates on the aemif driver
79 Optional child cs node properties:
81 - ti,cs-bus-width: width of the asynchronous device's data bus
84 - ti,cs-select-strobe-mode: enable/disable select strobe mode
89 - ti,cs-extended-wait-mode: enable/disable extended wait mode
95 - ti,cs-min-turnaround-ns: minimum turn around time, ns
[all …]
H A Dst,stm32-fmc2-ebi-props.yaml14 st,fmc2-ebi-cs-transaction-type:
33 st,fmc2-ebi-cs-cclk-enable:
40 st,fmc2-ebi-cs-mux-enable:
46 st,fmc2-ebi-cs-buswidth:
52 st,fmc2-ebi-cs-waitpol-high:
57 st,fmc2-ebi-cs-waitcfg-enable:
64 st,fmc2-ebi-cs-wait-enable:
70 st,fmc2-ebi-cs-asyncwait-enable:
76 st,fmc2-ebi-cs-cpsize:
84 st,fmc2-ebi-cs-byte-lane-setup-ns:
[all …]
/freebsd/usr.bin/tr/
H A Dcset.c53 struct cset *cs; in cset_alloc() local
55 if ((cs = malloc(sizeof(*cs))) == NULL) in cset_alloc()
57 cs->cs_root = NULL; in cset_alloc()
58 cs->cs_classes = NULL; in cset_alloc()
59 cs->cs_havecache = false; in cset_alloc()
60 cs->cs_invert = false; in cset_alloc()
61 return (cs); in cset_alloc()
69 cset_add(struct cset *cs, wchar_t ch) in cset_add() argument
74 cs->cs_havecache = false; in cset_add()
79 if (cs->cs_root == NULL) { in cset_add()
[all …]
/freebsd/lib/msun/src/
H A Ds_sincosf.c34 sincosf(float x, float *sn, float *cs) in sincosf() argument
47 *cs = 1; in sincosf()
51 __kernel_sincosdf(x, sn, cs); in sincosf()
58 __kernel_sincosdf(x - p1pio2, cs, sn); in sincosf()
59 *cs = -*cs; in sincosf()
61 __kernel_sincosdf(x + p1pio2, cs, sn); in sincosf()
66 __kernel_sincosdf(x - p2pio2, sn, cs); in sincosf()
68 __kernel_sincosdf(x + p2pio2, sn, cs); in sincosf()
70 *cs = -*cs; in sincosf()
78 __kernel_sincosdf(x - p3pio2, cs, sn); in sincosf()
[all …]
H A Ds_sincos.c24 sincos(double x, double *sn, double *cs) in sincos() argument
38 *cs = 1; in sincos()
42 __kernel_sincos(x, 0, 0, sn, cs); in sincos()
49 *cs = x - x; in sincos()
58 __kernel_sincos(y[0], y[1], 1, sn, cs); in sincos()
61 __kernel_sincos(y[0], y[1], 1, cs, sn); in sincos()
62 *cs = -*cs; in sincos()
65 __kernel_sincos(y[0], y[1], 1, sn, cs); in sincos()
67 *cs = -*cs; in sincos()
70 __kernel_sincos(y[0], y[1], 1, cs, sn); in sincos()
H A Ds_sincosl.c47 sincosl(long double x, long double *sn, long double *cs) in sincosl() argument
66 *cs = 1; in sincosl()
68 __kernel_sincosl(x, 0, 0, sn, cs); in sincosl()
75 *cs = x - x; in sincosl()
84 __kernel_sincosl(y[0], y[1], 1, sn, cs); in sincosl()
87 __kernel_sincosl(y[0], y[1], 1, cs, sn); in sincosl()
88 *cs = -*cs; in sincosl()
91 __kernel_sincosl(y[0], y[1], 1, sn, cs); in sincosl()
93 *cs = -*cs; in sincosl()
96 __kernel_sincosl(y[0], y[1], 1, cs, sn); in sincosl()
/freebsd/sys/geom/
H A Dgeom_ccd.c231 ccdinit(struct gctl_req *req, struct ccd_s *cs) in ccdinit() argument
241 cs->sc_size = 0; in ccdinit()
246 if (cs->sc_flags & CCDF_LINUX) { in ccdinit()
247 cs->sc_offset = 0; in ccdinit()
248 cs->sc_ileave *= 2; in ccdinit()
249 if (cs->sc_flags & CCDF_MIRROR && cs->sc_ndisks != 2) in ccdinit()
253 if (cs->sc_flags & CCDF_NO_OFFSET) in ccdinit()
254 cs->sc_offset = 0; in ccdinit()
256 cs->sc_offset = CCD_OFFSET; in ccdinit()
258 for (ix = 0; ix < cs->sc_ndisks; ix++) { in ccdinit()
[all …]
/freebsd/sys/rpc/
H A Dclnt_dg.c184 struct cu_socket *cs = NULL; in clnt_dg_create() local
281 cs = (struct cu_socket *) sb->sb_upcallarg; in clnt_dg_create()
282 mtx_lock(&cs->cs_lock); in clnt_dg_create()
283 cs->cs_refs++; in clnt_dg_create()
284 mtx_unlock(&cs->cs_lock); in clnt_dg_create()
291 cs = mem_alloc(sizeof(*cs)); in clnt_dg_create()
297 mem_free(cs, sizeof(*cs)); in clnt_dg_create()
300 mtx_init(&cs->cs_lock, "cs->cs_lock", NULL, MTX_DEF); in clnt_dg_create()
301 cs->cs_refs = 1; in clnt_dg_create()
302 cs->cs_upcallrefs = 0; in clnt_dg_create()
[all …]
/freebsd/usr.sbin/ppp/
H A Dslcompress.c161 register struct cstate *cs = comp->last_cs->cs_next; in sl_compress_tcp() local
196 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr || in sl_compress_tcp()
197 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr || in sl_compress_tcp()
198 *(int *) th != ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp()
214 lcs = cs; in sl_compress_tcp()
215 cs = cs->cs_next; in sl_compress_tcp()
217 if (ip->ip_src.s_addr == cs->cs_ip.ip_src.s_addr in sl_compress_tcp()
218 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr in sl_compress_tcp()
219 && *(int *) th == ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp()
221 } while (cs != lastcs); in sl_compress_tcp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp20 void fuzzerop::makeConstantsWithType(Type *T, std::vector<Constant *> &Cs) { in makeConstantsWithType() argument
23 Cs.push_back(ConstantInt::get(IntTy, 0)); in makeConstantsWithType()
24 Cs.push_back(ConstantInt::get(IntTy, 1)); in makeConstantsWithType()
25 Cs.push_back(ConstantInt::get(IntTy, 42)); in makeConstantsWithType()
26 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
27 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType()
28 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
29 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType()
30 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
34 Cs.push_back(ConstantFP::get(Ctx, APFloat::getZero(Sem))); in makeConstantsWithType()
[all …]
/freebsd/sys/net/
H A Dslcompress.c154 struct cstate *cs = comp->last_cs->cs_next; in sl_compress_tcp() local
183 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr || in sl_compress_tcp()
184 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr || in sl_compress_tcp()
185 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp()
202 lcs = cs; cs = cs->cs_next; in sl_compress_tcp()
204 if (ip->ip_src.s_addr == cs->cs_ip.ip_src.s_addr in sl_compress_tcp()
205 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr in sl_compress_tcp()
207 ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp()
209 } while (cs != lastcs); in sl_compress_tcp()
231 if (cs == lastcs) in sl_compress_tcp()
[all …]
/freebsd/lib/libiconv_modules/ISO2022/
H A Dcitrus_iso2022.c189 getcs(const char * __restrict p, _ISO2022Charset * __restrict cs) in getcs() argument
193 cs->final = (unsigned char)(p[3] & 0xff); in getcs()
194 cs->interm = '\0'; in getcs()
195 cs->vers = '\0'; in getcs()
196 cs->type = CS94MULTI; in getcs()
198 cs->final = (unsigned char)(p[3] & 0xff); in getcs()
199 cs->interm = '\0'; in getcs()
200 cs->vers = '\0'; in getcs()
201 cs->type = CS96MULTI; in getcs()
203 cs->final = (unsigned char)(p[2] & 0xff); in getcs()
[all …]
/freebsd/lib/libc/regex/
H A Dregex2.h129 CHIN1(cset *cs, wint_t ch) in CHIN1() argument
135 return (((cs->bmp[ch >> 3] & (1 << (ch & 7))) != 0) ^ in CHIN1()
136 cs->invert); in CHIN1()
137 for (i = 0; i < cs->nwides; i++) { in CHIN1()
138 if (cs->icase) { in CHIN1()
139 if (ch == towlower(cs->wides[i]) || in CHIN1()
140 ch == towupper(cs->wides[i])) in CHIN1()
141 return (!cs->invert); in CHIN1()
142 } else if (ch == cs->wides[i]) in CHIN1()
143 return (!cs->invert); in CHIN1()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/spi/
H A Dspi-controller.yaml28 cs-gpios:
32 increased automatically with max(cs-gpios, hardware chip selects).
34 So if, for example, the controller has 4 CS lines, and the
35 cs-gpios looks like this
36 cs-gpios = <&gpio1 0 0>, <0>, <&gpio1 1 0>, <&gpio1 2 0>;
49 cs-gpio with the optional spi-cs-high flag for SPI slaves.
51 Each table entry defines how the CS pin is to be physically
54 device node | cs-gpio | CS pin state active | Note
56 spi-cs-high | - | H |
58 spi-cs-high | ACTIVE_HIGH | H |
[all …]
/freebsd/lib/libnetgraph/
H A Dmsg.c55 static int NgDeliverMsg(int cs, const char *path,
59 * Send a message to a node using control socket node "cs".
64 NgSendMsg(int cs, const char *path, in NgSendMsg() argument
79 if (NgDeliverMsg(cs, path, &msg, args, arglen) < 0) in NgSendMsg()
89 NgSendAsciiMsg(int cs, const char *path, const char *fmt, ...) in NgSendAsciiMsg() argument
129 if (NgSendMsg(cs, path, NGM_GENERIC_COOKIE, NGM_ASCII2BINARY, in NgSendAsciiMsg()
137 if (NgAllocRecvMsg(cs, &reply, NULL) < 0) in NgSendAsciiMsg()
144 if (NgDeliverMsg(cs, in NgSendAsciiMsg()
159 NgSendReplyMsg(int cs, const char *path, in NgSendReplyMsg() argument
169 return (NgDeliverMsg(cs, path, &rep, args, arglen)); in NgSendReplyMsg()
[all …]
/freebsd/contrib/nvi/regex/
H A Dregcomp.c88 static void p_b_term(struct parse *p, cset *cs);
89 static void p_b_cclass(struct parse *p, cset *cs);
90 static void p_b_eclass(struct parse *p, cset *cs);
100 static void freeset(struct parse *p, cset *cs);
101 static int freezeset(struct parse *p, cset *cs);
102 static int firstch(struct parse *p, cset *cs);
103 static int nch(struct parse *p, cset *cs);
104 static void mcadd(struct parse *p, cset *cs, const char *cp);
106 static void mcsub(cset *cs, char *cp);
107 static int mcin(cset *cs, char *cp);
[all …]
/freebsd/usr.sbin/jail/
H A Dcommand.c293 char *acs, *cs, *comcs, *devpath; in run_command() local
353 cs = val; in run_command()
355 while ((p = strchr(cs, ' ')) != NULL && strlen(p) > 1) { in run_command()
360 cs = p + 1; in run_command()
366 if ((cs = strchr(val, '|'))) { in run_command()
367 argv[1] = acs = alloca(cs - val + 1); in run_command()
368 strlcpy(acs, val, cs - val + 1); in run_command()
369 addr = cs + 1; in run_command()
375 if (!(cs = strchr(addr, '/'))) { in run_command()
380 } else if (strchr(cs + 1, '.')) { in run_command()
[all …]

12345678910>>...75