Home
last modified time | relevance | path

Searched refs:cm (Results 1 – 25 of 77) sorted by relevance

1234

/illumos-gate/usr/src/cmd/tr/
H A Dcmap.c48 struct cmap *cm; in cmap_alloc() local
50 cm = malloc(sizeof (*cm)); in cmap_alloc()
51 if (cm == NULL) in cmap_alloc()
56 cm->cm_min = cm->cm_max = 0; in cmap_alloc()
57 return (cm); in cmap_alloc()
79 cm->cm_min = cm->cm_max = from; in cmap_add()
83 cmn = cm->cm_root = cmap_splay(cm->cm_root, from); in cmap_add()
122 cm->cm_root = cmap_splay(cm->cm_root, ch); in cmap_lookup_hard()
126 return (cm->cm_def == CM_DEF_SELF ? ch : cm->cm_def); in cmap_lookup_hard()
139 cm->cm_cache[ch] = cmap_lookup_hard(cm, ch); in cmap_cache()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_connmgmt.c898 cm = (ns_conn_mt_t *)calloc(1, sizeof (*cm)); in init_conn_mt()
1003 if (cm->cu_head == cm->cu_tail) { in del_cu4cm()
1005 cm->cu_head = cm->cu_tail = NULL; in del_cu4cm()
1364 cm->cu_cnt >= cm->cu_max) || in match_conn_mt()
1367 cm->waiter_cnt >= cm->cu_max - 1)) in match_conn_mt()
1565 cm->access_time = cm->create_time; in __s_api_conn_mt_add()
1955 del_cm4cmg(cm, cm->conn_mgmt); in close_conn_mt_when_nouser()
2042 for (cm = cmg->cm_head; cm; cm = cm->next) { in proc_server_change()
2129 for (cm = cmg->cm_head; cm; cm = cm->next) { in proc_server_change()
2139 cm->conn != NULL && cm->opened_for != in proc_server_change()
[all …]
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dats_copy_mgr.c625 cm = kmem_zalloc(sizeof (*cm), KM_NOSLEEP); in cpmgr_create()
734 cm->cm_tds[cm->cm_src_td_ndx].td_lbasize_shift; in cpmgr_create()
736 cm->cm_tds[cm->cm_dst_td_ndx].td_lbasize_shift; in cpmgr_create()
766 kmem_free(cm, sizeof (*cm)); in cpmgr_destroy()
798 lu = cm->cm_tds[cm->cm_src_td_ndx].td_lu; in cpmgr_run()
805 lu = cm->cm_tds[cm->cm_dst_td_ndx].td_lu; in cpmgr_run()
816 while (cm->cm_size_done < cm->cm_copy_size) { in cpmgr_run()
819 (cm->cm_copy_size - cm->cm_size_done); in cpmgr_run()
820 start = cm->cm_src_offset + cm->cm_size_done; in cpmgr_run()
832 end = cm->cm_dst_offset + cm->cm_size_done; in cpmgr_run()
[all …]
H A Dats_copy_mgr.h143 #define cpmgr_done(cm) (((cpmgr_t *)(cm))->cm_state == CM_COMPLETE) argument
144 #define cpmgr_status(cm) (((cpmgr_t *)(cm))->cm_status) argument
148 void cpmgr_run(cpmgr_t *cm, clock_t preemption_point);
149 void cpmgr_abort(cpmgr_t *cm, uint32_t s);
/illumos-gate/usr/src/cmd/iconv/
H A Dcharmap.c234 charmap_t *cm; in charmap_dump() local
238 while (cm != NULL) { in charmap_dump()
251 cm = AVL_NEXT(&cmap_mbs, cm); in charmap_dump()
468 if (cm != NULL) in find_mbs()
473 return (cm); in find_mbs()
484 charmap_t *cm; in find_mbs_partial() local
490 if (cm != NULL) { in find_mbs_partial()
495 if (cm != NULL && 0 == memcmp(cm->cm_frmbs, mbs, len)) in find_mbs_partial()
507 charmap_t *cm; in cm_iconv() local
524 if (cm == NULL) { in cm_iconv()
[all …]
/illumos-gate/usr/src/data/locale/
H A DMakefile88 locale/%.GB18030/stamp: data/%.GB18030.src data/GB18030.cm
89 $(LCDEF) -U -w data/widths.txt -i $< -f data/GB18030.cm $(@D)
91 locale/%.ISO8859-1/stamp: data/%.ISO8859-1.src data/ISO8859-1.cm
94 locale/%.ISO8859-2/stamp: data/%.ISO8859-2.src data/ISO8859-2.cm
97 locale/%.ISO8859-5/stamp: data/%.ISO8859-5.src data/ISO8859-5.cm
100 locale/%.ISO8859-6/stamp: data/%.ISO8859-6.src data/ISO8859-6.cm
111 locale/%.ISO8859-11/stamp: data/%.UTF-8.src data/ISO8859-11.cm
120 locale/%.KOI8-R/stamp: data/%.KOI8-R.src data/KOI8-R.cm
121 $(LCDEF) -U -w data/widths.txt -i $< -f data/KOI8-R.cm $(@D)
129 $(LCDEF) -U -w data/widths.txt -f data/UTF-8.cm $(@D)
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dstrcasecmp.c90 const u_char *cm = charmap, in strcasecmp() local
94 while (cm[*us1] == cm[*us2++]) in strcasecmp()
97 return (cm[*us1] - cm[*--us2]); in strcasecmp()
103 const u_char *cm = charmap, in strncasecmp() local
108 if (cm[*us1] != cm[*us2++]) in strncasecmp()
109 return (cm[*us1] - cm[*--us2]); in strncasecmp()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcrypto.c530 cm->cm_refcnt = 1; in crypto_open()
561 if (cm == NULL) { in crypto_close()
583 cv_wait(&cm->cm_cv, &cm->cm_lock); in crypto_close()
611 if (cm->cm_session_table != NULL && cm->cm_session_table_count > 0) in crypto_close()
612 kmem_free(cm->cm_session_table, cm->cm_session_table_count * in crypto_close()
632 crypto_minor_t *cm; in crypto_hold_minor() local
645 return (cm); in crypto_hold_minor()
859 crypto_minor_t *cm; in get_function_list() local
1244 crypto_minor_t *cm; in get_provider_list() local
1426 crypto_minor_t *cm; in get_provider_info() local
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Disdir.c52 #define ISCOMPCPIO ((unsigned char) cm.c_mag[0] == m_h[0] && \
53 (unsigned char) cm.c_mag[1] == m_h[1] && \
54 (MASK_CK((unsigned char) cm.c_mag[2], BLOCK_MASK) || \
55 MASK_CK((unsigned char) cm.c_mag[2], BIT_MASK)))
57 #define ISCPIO (cm.b_mag != CMN_BIN && \
58 (strcmp(cm.c_mag, CMS_ASC) == 0) && \
59 (strcmp(cm.c_mag, CMS_CHR) == 0) && \
60 (strcmp(cm.c_mag, CMS_CRC) == 0))
171 } cm; in iscpio() local
193 if (read(fd, cm.c_mag, sizeof (cm.c_mag)) != in iscpio()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_rcm.c184 for (cp = cinfo, cm = firstcm; cm <= lastcm; cm++, cp++) { in ap_capinfo()
432 for (ncpu = 0, cm = rcm->firstcm; cm <= rcm->lastcm; cm++) { in ap_rcm_init()
513 for (ncap = 0, cm = firstcm; cm <= lastcm; cm++) { in ap_rcm_rlist()
534 for (ncap = 0, cm = firstcm; cm <= lastcm; cm++) { in ap_rcm_rlist()
556 capindex = (cm == CM_DFLT) ? 0 : cm; in ap_rcm_rlist()
899 for (cm = rcm->firstcm; cm <= rcm->lastcm; cm++) { in ap_rcm_request_cap()
906 i = (cm == CM_DFLT) ? 0 : cm; in ap_rcm_request_cap()
962 for (cm = rcm->firstcm; cm <= rcm->lastcm; cm++) { in ap_rcm_add_cap()
972 i = cm == CM_DFLT ? 0 : cm; in ap_rcm_add_cap()
1069 for (cm = rcm->firstcm; cm <= rcm->lastcm; cm++) { in ap_rcm_notify_cap()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Drights.c382 struct cmsghdr *cm; in sendtest() local
410 cm = CMSG_FIRSTHDR(&msg); in sendtest()
416 cm->cmsg_type = 0; in sendtest()
417 cm = CMSG_NXTHDR(&msg, cm); in sendtest()
422 cm->cmsg_type = SCM_RIGHTS; in sendtest()
424 p = (int *)CMSG_DATA(cm); in sendtest()
439 p = (int *)CMSG_DATA(cm); in sendtest()
514 struct cmsghdr *cm; in recvtest() local
577 for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm)) { in recvtest()
582 cm->cmsg_type, cm->cmsg_len); in recvtest()
[all …]
H A Drecvmsg.c304 for (struct cmsghdr *cm = CMSG_FIRSTHDR(&msg); cm != NULL; in servertest() local
305 cm = CMSG_NXTHDR(&msg, cm)) { in servertest()
309 cm->cmsg_level, cm->cmsg_type, cm->cmsg_len)); in servertest()
311 if (cm->cmsg_level != IPPROTO_IP) in servertest()
314 switch (cm->cmsg_type) { in servertest()
319 (struct in_pktinfo *)CMSG_DATA(cm); in servertest()
324 if (cm->cmsg_len != CMSG_LEN(sizeof (uint8_t))) { in servertest()
327 t->name, cm->cmsg_len, in servertest()
333 memcpy(&d, CMSG_DATA(cm), sizeof (d)); in servertest()
345 t->name, cm->cmsg_len, in servertest()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dconsole.c256 console_putmsg(console_msg_t *cm) in console_putmsg() argument
264 vn_rdwr(UIO_WRITE, console_vnode, cm->cm_text, strlen(cm->cm_text), in console_putmsg()
270 prom_printf("%s", cm->cm_text); in console_putmsg()
276 kmem_free(cm, cm->cm_size); in console_putmsg()
282 console_msg_t *cm; in console_vprintf() local
287 (cm = kmem_alloc(sizeof (*cm) + len, KM_NOSLEEP)) != NULL) { in console_vprintf()
288 cm->cm_size = sizeof (*cm) + len; in console_vprintf()
289 (void) vsnprintf(cm->cm_text, len + 1, fmt, adx); in console_vprintf()
291 cm, TQ_NOSLEEP) != TASKQID_INVALID) in console_vprintf()
293 kmem_free(cm, cm->cm_size); in console_vprintf()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrcasecmp.c47 const int *cm; in strcasecmp_l() local
59 cm = lct->lc_trans_lower; in strcasecmp_l()
63 while (cm[*us1] == cm[*us2++]) in strcasecmp_l()
66 return (cm[*us1] - cm[*(us2 - 1)]); in strcasecmp_l()
H A Dstrcasestr.c49 const int *cm = loc->ctype->lc_trans_lower; in strcasestr_l() local
58 c = cm[*us2]; in strcasestr_l()
60 if (c == cm[*us1++]) { in strcasestr_l()
62 while (cm[c = *++us2] == cm[*us1++] && c != '\0') in strcasestr_l()
68 c = cm[*us2]; in strcasestr_l()
H A Dstrncasecmp.c47 const int *cm; in strncasecmp_l() local
59 cm = lct->lc_trans_lower; in strncasecmp_l()
63 while (n != 0 && cm[*us1] == cm[*us2++]) { in strncasecmp_l()
68 return (n == 0 ? 0 : cm[*us1] - cm[*(us2 - 1)]); in strncasecmp_l()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c721 if(!cm) { in new_CacheMem()
730 cm->sg = NULL; in new_CacheMem()
733 cm->nfiles = 0; in new_CacheMem()
738 if(!cm->sg) in new_CacheMem()
745 cm->files = (char **) malloc(sizeof(*cm->files) * cm->files_dim); in new_CacheMem()
746 if(!cm->files) { in new_CacheMem()
750 return cm; in new_CacheMem()
763 if(cm) { in del_CacheMem()
767 cm->sg = _del_StringGroup(cm->sg); in del_CacheMem()
779 free(cm); in del_CacheMem()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dascii_strcasecmp.c49 const unsigned char *cm = (const unsigned char *)strcase_charmap; in ascii_strcasecmp() local
53 while (cm[*us1] == cm[*us2++]) in ascii_strcasecmp()
56 return (cm[*us1] - cm[*(us2 - 1)]); in ascii_strcasecmp()
H A Dascii_strncasecmp.c49 const unsigned char *cm = (const unsigned char *)strcase_charmap; in ascii_strncasecmp() local
53 while (n != 0 && cm[*us1] == cm[*us2++]) { in ascii_strncasecmp()
58 return (n == 0 ? 0 : cm[*us1] - cm[*(us2 - 1)]); in ascii_strncasecmp()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstrcasecmp.c95 register const unsigned char *cm = charmap; local
101 if (cm[*us1] != cm[*us2++])
102 return (cm[*us1] - cm[*--us2]);
/illumos-gate/usr/src/test/util-tests/tests/iconv/
H A Diconv_test.sh98 mkmap_one > one.cm
99 mkmap_two > two.cm
100 test_conv ./one.cm ./two.cm '\0200\0201\0202\c' ' \0200 \0201 \0202\c'
101 rm one.cm two.cm
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/
H A Dstructure.tex7 \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} % Page margins
248 leftmargin=0cm,
249 rightmargin=0cm,
265 leftmargin=0cm,
266 rightmargin=0cm,
280 leftmargin=0cm,
281 rightmargin=0cm,
297 leftmargin=0cm,
298 rightmargin=0cm,
365 \draw[fill=white,opacity=.6] (1cm,0) rectangle (7.7cm,-4.7cm);
[all …]
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_regd.c439 const struct cmode *cm, in ath9k_regd_add_channel() argument
489 if (IS_HT40_MODE(cm->mode) && in ath9k_regd_add_channel()
498 if (IS_HT40_MODE(cm->mode) && in ath9k_regd_add_channel()
507 if (IS_HT40_MODE(cm->mode) && in ath9k_regd_add_channel()
518 channelFlags = cm->flags; in ath9k_regd_add_channel()
646 const struct cmode *cm; in ath9k_regd_init_channels() local
762 for (cm = modes; cm < &modes[ARRAY_SIZE(modes)]; cm++) { in ath9k_regd_init_channels()
772 __func__, cm->mode, cm->flags)); in ath9k_regd_init_channels()
783 switch (cm->mode) { in ath9k_regd_init_channels()
869 fband, rd, cm, in ath9k_regd_init_channels()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_merge.c851 ctf_merge_types_t cm; in ctf_merge_types() local
869 cm.cm_out = out; in ctf_merge_types()
870 cm.cm_src = source; in ctf_merge_types()
920 ctf_merge_types_t cm; in ctf_uniquify_types() local
948 cm.cm_out = parent; in ctf_uniquify_types()
949 cm.cm_src = src; in ctf_uniquify_types()
961 cm.cm_out = out; in ctf_uniquify_types()
1608 ctf_merge_types_t cm; in ctf_merge_dedup() local
1627 cm.cm_src = ifp; in ctf_merge_dedup()
1628 cm.cm_out = ofp; in ctf_merge_dedup()
[all …]
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_crypto.c49 crypto_get_provider_mechanisms(crypto_minor_t *cm, crypto_provider_id_t id, in crypto_get_provider_mechanisms() argument
52 if (id >= cm->cm_provider_count) in crypto_get_provider_mechanisms()
55 return (crypto_build_permitted_mech_names(cm->cm_provider_array[id], in crypto_get_provider_mechanisms()

1234