Home
last modified time | relevance | path

Searched refs:cs (Results 1 – 25 of 195) sorted by relevance

12345678

/titanic_41/usr/src/cmd/vgrind/
H A Dregexp.c142 char *cs; /* pointer to current symbol in converted exp */ in expconv() local
149 cs = NIL; in expconv()
158 if (cs == NIL || (*cs & STR) == 0) { in expconv()
159 cs = ccre; in expconv()
160 *cs = STR; in expconv()
161 SCNT(cs) = 1; in expconv()
164 SCNT(cs)++; in expconv()
173 if (acs != NIL && acs != cs) { in expconv()
181 cs = ccre; in expconv()
182 *cs = META; in expconv()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/raid/
H A Draid.c154 static void freebuffers(md_raidcs_t *cs);
155 static int raid_read(mr_unit_t *un, md_raidcs_t *cs);
156 static void raid_read_io(mr_unit_t *un, md_raidcs_t *cs);
157 static int raid_write(mr_unit_t *un, md_raidcs_t *cs);
158 static void raid_write_io(mr_unit_t *un, md_raidcs_t *cs);
159 static void raid_stage(md_raidcs_t *cs);
160 static void raid_enqueue(md_raidcs_t *cs);
163 static void getpbuffer(md_raidcs_t *cs);
164 static void getdbuffer(md_raidcs_t *cs);
367 erred_check_line(mr_unit_t *un, md_raidcs_t *cs, mr_column_t *column) in erred_check_line() argument
[all …]
H A Draid_resync.c192 alloc_bufs(md_raidcs_t *cs, size_t bsize) in alloc_bufs() argument
195 cs->cs_dbuffer = kmem_zalloc(bsize, KM_SLEEP); in alloc_bufs()
196 cs->cs_pbuffer = kmem_zalloc(bsize, KM_SLEEP); in alloc_bufs()
244 free_bufs(size_t bsize, md_raidcs_t *cs) in free_bufs() argument
246 kmem_free(cs->cs_dbuffer, bsize); in free_bufs()
247 kmem_free(cs->cs_pbuffer, bsize); in free_bufs()
396 raid_resync_fillin_cs(diskaddr_t line, uint_t line_count, md_raidcs_t *cs) in raid_resync_fillin_cs() argument
398 mr_unit_t *un = cs->cs_un; in raid_resync_fillin_cs()
402 cs->cs_line = line; in raid_resync_fillin_cs()
403 cs->cs_blkno = line * un->un_segsize; in raid_resync_fillin_cs()
[all …]
/titanic_41/usr/src/cmd/eqn/
H A Dtext.c24 char cs[420]; variable
69 cs[csp] = '\0'; in text()
70 p = cs; in text()
99 cs[csp++] = c; in trans()
123 cs[csp++] = c; in trans()
147 cs[csp++] = c; cs[csp++] = c = p1[psp++]; cs[csp++] = p1[psp++]; in trans()
148 if (c == '(') cs[csp++] = p1[psp++]; in trans()
149 if (c == '*' && cs[csp-1] == '(') { in trans()
150 cs[csp++] = p1[psp++]; in trans()
151 cs[csp++] = p1[psp++]; in trans()
[all …]
/titanic_41/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c70 LibHalChangeSet *cs = (LibHalChangeSet *)arg; in get_cdrom_properties_walker() local
74 libhal_changeset_set_property_bool (cs, "storage.cdrom.cdr", TRUE); in get_cdrom_properties_walker()
77 libhal_changeset_set_property_bool (cs, "storage.cdrom.cdrw", TRUE); in get_cdrom_properties_walker()
80 libhal_changeset_set_property_bool (cs, "storage.cdrom.dvd", TRUE); in get_cdrom_properties_walker()
83 libhal_changeset_set_property_bool (cs, "storage.cdrom.dvdr", TRUE); in get_cdrom_properties_walker()
86 libhal_changeset_set_property_bool (cs, "storage.cdrom.dvdram", TRUE); in get_cdrom_properties_walker()
89 libhal_changeset_set_property_bool (cs, "storage.cdrom.dvdrw", TRUE); in get_cdrom_properties_walker()
92 libhal_changeset_set_property_bool (cs, "storage.cdrom.dvdrw", TRUE); in get_cdrom_properties_walker()
95 libhal_changeset_set_property_bool (cs, "storage.cdrom.dvdplusrw", TRUE); in get_cdrom_properties_walker()
98 libhal_changeset_set_property_bool (cs, "storage.cdrom.dvdplusr", TRUE); in get_cdrom_properties_walker()
[all …]
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv.c200 struct svc_req *req, struct compound_state *cs);
268 struct compound_state *cs, struct nfs4_svgetit_arg *sargp,
593 rfs4_init_compound_state(struct compound_state *cs) in rfs4_init_compound_state() argument
595 bzero(cs, sizeof (*cs)); in rfs4_init_compound_state()
596 cs->cont = TRUE; in rfs4_init_compound_state()
597 cs->access = CS_ACCESS_DENIED; in rfs4_init_compound_state()
598 cs->deleg = FALSE; in rfs4_init_compound_state()
599 cs->mandlock = FALSE; in rfs4_init_compound_state()
600 cs->fh.nfs_fh4_val = cs->fhbuf; in rfs4_init_compound_state()
844 struct compound_state *cs) in rfs4_op_inval() argument
[all …]
H A Dnfs4_srv_readdir.c107 struct exportinfo **exi, struct svc_req *req, struct compound_state *cs, in nfs4_readdir_getvp() argument
120 if (error = VOP_LOOKUP(dvp, d_name, &vp, NULL, 0, NULL, cs->cr, in nfs4_readdir_getvp()
128 if (vn_is_nfs_reparse(vp, cs->cr) && !client_is_downrev(req)) { in nfs4_readdir_getvp()
161 if (vn_is_nfs_reparse(vp, cs->cr)) { in nfs4_readdir_getvp()
210 saveexi = cs->exi; in nfs4_readdir_getvp()
211 cs->exi = newexi; in nfs4_readdir_getvp()
214 scr = cs->cr; in nfs4_readdir_getvp()
215 cs->cr = crdup(cs->basecr); in nfs4_readdir_getvp()
217 status = call_checkauth4(cs, req); in nfs4_readdir_getvp()
219 crfree(cs->cr); in nfs4_readdir_getvp()
[all …]
H A Dnfs4_srv_attr.c132 struct compound_state cs; in rfs4_attr_init() local
135 rfs4_init_compound_state(&cs); in rfs4_attr_init()
136 cs.vp = rootvp; in rfs4_attr_init()
137 cs.fh.nfs_fh4_val = NULL; in rfs4_attr_init()
138 cs.cr = kcred; in rfs4_attr_init()
144 sarg.cs = &cs; in rfs4_attr_init()
371 error = fattr4_get_fh_expire_type(sarg->cs->exi, in rfs4_fattr4_fh_expire_type()
381 error = fattr4_get_fh_expire_type(sarg->cs->exi, in rfs4_fattr4_fh_expire_type()
396 struct compound_state *cs = sarg->cs; in fattr4_get_change() local
397 vnode_t *vp = cs->vp; in fattr4_get_change()
[all …]
/titanic_41/usr/src/cmd/hal/utils/
H A Dacpi.c43 LibHalChangeSet *cs; in laptop_panel_update() local
59 if ((cs = libhal_device_new_changeset(udi)) == NULL) { in laptop_panel_update()
63 libhal_changeset_set_property_string(cs, "info.product", in laptop_panel_update()
65 libhal_changeset_set_property_string(cs, "info.category", in laptop_panel_update()
67 libhal_changeset_set_property_int(cs, "laptop_panel.num_levels", in laptop_panel_update()
70 libhal_device_commit_changeset(ctx, cs, &error); in laptop_panel_update()
71 libhal_device_free_changeset(cs); in laptop_panel_update()
81 LibHalChangeSet *cs; in lid_update() local
87 if ((cs = libhal_device_new_changeset(udi)) == NULL) { in lid_update()
95 libhal_changeset_set_property_bool(cs, "button.has_state", in lid_update()
[all …]
/titanic_41/usr/src/cmd/tr/
H A Dcset.c50 struct cset *cs; in cset_alloc() local
52 if ((cs = malloc(sizeof (*cs))) == NULL) in cset_alloc()
54 cs->cs_root = NULL; in cset_alloc()
55 cs->cs_classes = NULL; in cset_alloc()
56 cs->cs_havecache = false; in cset_alloc()
57 cs->cs_invert = false; in cset_alloc()
58 return (cs); in cset_alloc()
66 cset_add(struct cset *cs, wchar_t ch) in cset_add() argument
71 cs->cs_havecache = false; in cset_add()
76 if (cs->cs_root == NULL) { in cset_add()
[all …]
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c163 register struct cstate *cs = comp->last_cs->cs_next; in vj_compress_tcp() local
204 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr || in vj_compress_tcp()
205 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr || in vj_compress_tcp()
206 *(int *)th != ((int *)&cs->cs_ip)[getip_hl(&cs->cs_ip)]) { in vj_compress_tcp()
224 lcs = cs; cs = cs->cs_next; in vj_compress_tcp()
228 if (ip->ip_src.s_addr == cs->cs_ip.ip_src.s_addr && in vj_compress_tcp()
229 ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr && in vj_compress_tcp()
231 &cs->cs_ip)[getip_hl(&cs->cs_ip)]) { in vj_compress_tcp()
236 } while (cs != lastcs); in vj_compress_tcp()
256 if (cs == lastcs) { in vj_compress_tcp()
[all …]
/titanic_41/usr/src/uts/common/pcmcia/cis/
H A Dcis_handlers.c300 cistpl_vers_1_t *cs = (cistpl_vers_1_t *)arg; in cistpl_vers_1_handler() local
305 cs->major = GET_BYTE(tp); in cistpl_vers_1_handler()
306 cs->minor = GET_BYTE(tp); in cistpl_vers_1_handler()
307 for (cs->ns = 0; GET_LEN(tp) > 0 && in cistpl_vers_1_handler()
309 cs->ns < CISTPL_VERS_1_MAX_PROD_STRINGS; ) { in cistpl_vers_1_handler()
310 (void) strcpy(cs->pi[cs->ns++], cis_getstr(tp)); in cistpl_vers_1_handler()
1239 cistpl_vers_2_t *cs = (cistpl_vers_2_t *)arg; local
1243 cs->vers = GET_BYTE(tp);
1244 cs->comply = GET_BYTE(tp);
1245 cs->dindex = GET_SHORT(tp);
[all …]
/titanic_41/usr/src/lib/libc/port/locale/
H A Dregex2.h126 CHIN1(cset *cs, wint_t ch) in CHIN1() argument
132 return (((cs->bmp[ch >> 3] & (1 << (ch & 7))) != 0) ^ in CHIN1()
133 cs->invert); in CHIN1()
134 for (i = 0; i < cs->nwides; i++) in CHIN1()
135 if (ch == cs->wides[i]) in CHIN1()
136 return (!cs->invert); in CHIN1()
137 for (i = 0; i < cs->nranges; i++) in CHIN1()
138 if (cs->ranges[i].min <= ch && ch <= cs->ranges[i].max) in CHIN1()
139 return (!cs->invert); in CHIN1()
140 for (i = 0; i < cs->ntypes; i++) in CHIN1()
[all …]
H A Dregcomp.c89 static void p_b_term(struct parse *p, cset *cs);
90 static void p_b_cclass(struct parse *p, cset *cs);
91 static void p_b_eclass(struct parse *p, cset *cs);
101 static void freeset(struct parse *p, cset *cs);
102 static void CHadd(struct parse *p, cset *cs, wint_t ch);
103 static void CHaddrange(struct parse *p, cset *cs, wint_t min, wint_t max);
104 static void CHaddtype(struct parse *p, cset *cs, wctype_t wct);
105 static wint_t singleton(cset *cs);
675 cset *cs; in p_bracket() local
690 if ((cs = allocset(p)) == NULL) in p_bracket()
[all …]
/titanic_41/usr/src/lib/fm/libfmd_adm/common/
H A Dfmd_adm.c208 fmd_adm_retry(fmd_adm_t *ap, enum clnt_stat cs, uint_t *retries) in fmd_adm_retry() argument
213 if (cs == RPC_SUCCESS || *retries == ap->adm_maxretries) in fmd_adm_retry()
236 enum clnt_stat cs; in fmd_adm_stats_read() local
246 cs = fmd_adm_modcstat_1((char *)name, &rms, in fmd_adm_stats_read()
249 cs = fmd_adm_modgstat_1(&rms, ap->adm_clnt); in fmd_adm_stats_read()
250 } while (fmd_adm_retry(ap, cs, &retries)); in fmd_adm_stats_read()
252 if (cs != RPC_SUCCESS) in fmd_adm_stats_read()
302 enum clnt_stat cs; in fmd_adm_module_iter() local
308 cs = fmd_adm_modinfo_1(&rml, ap->adm_clnt); in fmd_adm_module_iter()
309 } while (fmd_adm_retry(ap, cs, &retries)); in fmd_adm_module_iter()
[all …]
/titanic_41/usr/src/common/mc/mc-amd/
H A Dmcamd_patounum.c153 cs_match(struct mcamd_hdl *hdl, uint64_t iaddr, mcamd_node_t *cs) in cs_match() argument
159 cs, MCAMD_PROP_NUM, &csnum, in cs_match()
160 cs, MCAMD_PROP_BASE_ADDR, &csbase, in cs_match()
161 cs, MCAMD_PROP_MASK, &csmask, in cs_match()
162 cs, MCAMD_PROP_CSBE, &csbe, in cs_match()
188 cs_sparedto(struct mcamd_hdl *hdl, mcamd_node_t *cs, mcamd_node_t *mc) in cs_sparedto() argument
193 cs, MCAMD_PROP_NUM, &csnum, in cs_sparedto()
206 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in cs_sparedto()
207 cs = mcamd_cs_next(hdl, mc, cs)) { in cs_sparedto()
208 if (!mcamd_get_numprop(hdl, cs, MCAMD_PROP_NUM, &tmpcsnum)) { in cs_sparedto()
[all …]
H A Dmcamd_rowcol.c84 getcsprops(struct mcamd_hdl *hdl, mcamd_node_t *cs, const char *caller, in getcsprops() argument
88 cs, MCAMD_PROP_NUM, &csp->num, in getcsprops()
89 cs, MCAMD_PROP_BASE_ADDR, &csp->base, in getcsprops()
90 cs, MCAMD_PROP_MASK, &csp->mask, in getcsprops()
91 cs, MCAMD_PROP_TESTFAIL, &csp->testfail, in getcsprops()
92 cs, MCAMD_PROP_DIMMRANK, &csp->dimmrank, in getcsprops()
95 "props for cs 0x%p\n", caller, cs); in getcsprops()
430 mc_pa_to_offset(struct mcamd_hdl *hdl, mcamd_node_t *mc, mcamd_node_t *cs, in mc_pa_to_offset() argument
442 getcsprops(hdl, cs, "mc_dimm_offset", &csp) < 0) in mc_pa_to_offset()
480 mcamd_node_t *cs; in mc_offset_to_pa() local
[all …]
/titanic_41/usr/src/cmd/oawk/
H A Db.c348 ccl_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s) in ccl_member() argument
355 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccl_member()
365 ccln_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s, int n) in ccln_member() argument
372 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccln_member()
434 wchar_t cs, ce; in cgotofn() local
498 cs = WC_VERY_SMALL; in cgotofn()
502 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
505 ns, cs, ne, ce); in cgotofn()
507 ssyms[ssmax].cc_cs = cs; in cgotofn()
511 cs = HAT + 1; in cgotofn()
[all …]
/titanic_41/usr/src/cmd/sh/
H A Dexpand.c64 unsigned char *s, *cs; in expand() local
73 s = cs = as; in expand()
84 if ((len = mbtowc(&wc, (char *)cs, MB_LEN_MAX)) <= 0) { in expand()
86 wc = (unsigned char)*cs; in expand()
89 cs += len; in expand()
115 cs--; in expand()
119 cs++; in expand()
128 if (cs == s) { in expand()
131 } else if (*--cs == '/') { in expand()
132 *cs = 0; in expand()
[all …]
/titanic_41/usr/src/cmd/lp/lib/lp/
H A Dset_charset.c72 int cs, local
96 && 0 <= (cs = strtol(char_set + 2, &rest, 10)) && cs <= 63
99 char_set_nm = tparm(char_set_names, cs);
102 for (cs = 0; cs <= 63; cs++)
104 (char_set_nm = tparm(char_set_names, cs))
109 if (cs > 63)
113 if (cs == 0)
125 if ((p = tparm(select_char_set, cs)) && *p && (p = Strdup(p))) {
128 if ((q = tparm(start_char_set_def, cs)) && *q) {
137 || cat_charset((char *)0, cs, type, putout) != -1
[all …]
/titanic_41/usr/src/cmd/dumpcs/
H A Ddumpcs.c68 int cs; local
121 for (cs = 0; cs <= 3; cs++) {
122 if (csflag[cs] && eucw[cs] && scrw[cs]) {
125 (void) printf(" CS:%d\n", cs);
127 (void) csprint(cs, (int) eucw[cs], (int) scrw[cs]);
135 csprint(cs, bytes, columns) in csprint() argument
136 int cs, bytes, columns; in csprint()
151 if (cs > 0) {
155 if (cs == 2) {
159 if (cs == 3) {
/titanic_41/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c83 LibHalChangeSet *cs; in set_fstyp_properties() local
87 if ((cs = libhal_device_new_changeset (udi)) == NULL) { in set_fstyp_properties()
91 libhal_changeset_set_property_string (cs, "volume.fsusage", "filesystem"); in set_fstyp_properties()
92 libhal_changeset_set_property_string (cs, "volume.fstype", fstype); in set_fstyp_properties()
103 libhal_changeset_set_property_string (cs, "volume.label", label); in set_fstyp_properties()
104 libhal_changeset_set_property_string (cs, "info.product", label); in set_fstyp_properties()
106 libhal_changeset_set_property_string (cs, "volume.label", ""); in set_fstyp_properties()
108 libhal_changeset_set_property_string (cs, "info.product", buf); in set_fstyp_properties()
114 libhal_changeset_set_property_string (cs, "volume.uuid", uuid); in set_fstyp_properties()
116 libhal_changeset_set_property_string (cs, "volume.uuid", ""); in set_fstyp_properties()
[all …]
/titanic_41/usr/src/uts/common/fs/zev/
H A Dzev_checksums.c94 zev_sig_cache_chksums_t *cs; in zev_chksum_cache_file_free() local
101 while ((cs = avl_destroy_nodes(&file->chksums, &c)) != NULL) { in zev_chksum_cache_file_free()
102 zev_sig_cache.cache_size -= sizeof(*cs); in zev_chksum_cache_file_free()
103 zev_free(cs, sizeof(*cs)); in zev_chksum_cache_file_free()
188 zev_sig_cache_chksums_t *cs; in zev_chksum_cache_get_lv1_entry() local
194 cs = avl_find(&file->chksums, &find_chksum, &where); in zev_chksum_cache_get_lv1_entry()
195 if (!cs) { in zev_chksum_cache_get_lv1_entry()
196 cs = zev_zalloc(sizeof(*cs)); in zev_chksum_cache_get_lv1_entry()
197 cs->offset_l1 = off_l1; in zev_chksum_cache_get_lv1_entry()
198 avl_insert(&file->chksums, cs, where); in zev_chksum_cache_get_lv1_entry()
[all …]
/titanic_41/usr/src/cmd/lp/lib/printers/
H A Dchkprinter.c52 char * cs in chkprinter() argument
55 chkprinter (type, cpi, lpi, len, wid, cs) in chkprinter()
61 *cs; in chkprinter()
87 if (cs && *cs && set_charset(cs, 0, type) != E_SUCCESS)
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dglob.c204 register char *cs; in expand() local
209 cs = as; in expand()
210 if (*cs == '~' && gpathp == gpath) { in expand()
212 cs++; in expand()
213 while (letter(*cs) || digit(*cs) || *cs == '-') in expand()
214 addpath(*cs++); in expand()
215 if (!*cs || *cs == '/') { in expand()
226 while (!any(*cs, globchars)) { in expand()
227 if (*cs == 0) { in expand()
236 addpath(*cs++); in expand()
[all …]

12345678