Home
last modified time | relevance | path

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

123

/titanic_44/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()
53 cm->cm_root = NULL; in cmap_alloc()
54 cm->cm_def = CM_DEF_SELF; in cmap_alloc()
55 cm->cm_havecache = false; in cmap_alloc()
56 cm->cm_min = cm->cm_max = 0; in cmap_alloc()
57 return (cm); in cmap_alloc()
65 cmap_add(struct cmap *cm, wint_t from, wint_t to) in cmap_add() argument
69 cm->cm_havecache = false; in cmap_add()
[all …]
H A Dtr.c58 cmap_lookup(struct cmap *cm, wint_t from) in cmap_lookup() argument
61 if (from < CM_CACHE_SIZE && cm->cm_havecache) in cmap_lookup()
62 return (cm->cm_cache[from]); in cmap_lookup()
63 return (cmap_lookup_hard(cm, from)); in cmap_lookup()
67 cmap_max(struct cmap *cm) in cmap_max() argument
69 return (cm->cm_max); in cmap_max()
/titanic_44/usr/src/lib/libsldap/common/
H A Dns_connmgmt.c58 static int close_conn_mt_when_nouser(ns_conn_mt_t *cm);
62 static void close_conn_mt_by_procchg(ns_conn_mt_t *cm, int rc, char *errmsg);
94 #define NS_CONN_UNLOCK_AND_FREE(free, cm, cmg) \ argument
96 (void) mutex_unlock(&(cm)->lock); \
98 cmg = free_conn_mt((cm), 1); \
887 ns_conn_mt_t *cm; in init_conn_mt() local
890 cm = (ns_conn_mt_t *)calloc(1, sizeof (*cm)); in init_conn_mt()
891 if (cm == NULL) { in init_conn_mt()
908 (void) mutex_init(&cm->lock, USYNC_THREAD, NULL); in init_conn_mt()
909 cm->state = NS_CONN_MT_CONNECTING; in init_conn_mt()
[all …]
/titanic_44/usr/src/cmd/localedef/
H A DMakefile39 UTF-8.cm UTF-8.ct \
40 8859-1.cm 8859-2.cm 8859-3.cm 8859-4.cm \
41 8859-5.cm 8859-5.cm 8859-6.cm 8859-7.cm \
42 8859-8.cm 8859-9.cm 8859-9.cm 8859-10.cm \
43 8859-11.cm 8859-13.cm 8859-14.cm 8859-15.cm \
44 8859-16.cm \
45 KOI8-R.cm
47 GB18030.cm UTF-8.cm
273 locale/%.UTF-8/stamp: data/%.UTF-8.src UTF-8.cm \
276 ./$(PROG) -U -w data/widths.txt -f UTF-8.cm $(@D)
[all …]
H A Dcharmap.c244 charmap_t *cm = NULL; in add_charmap_undefined() local
247 cm = avl_find(&cmap_sym, &srch, NULL); in add_charmap_undefined()
249 if ((undefok == 0) && ((cm == NULL) || (cm->wc == -1))) { in add_charmap_undefined()
/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A Dstricmp.c57 char *cm = charmap; in strcasecmp() local
59 while (cm[*s1] == cm[*s2++]) in strcasecmp()
62 return(cm[*s1] - cm[*--s2]); in strcasecmp()
68 char *cm = charmap; in strncasecmp() local
70 while (--n >= 0 && cm[*s1] == cm[*s2++]) in strncasecmp()
73 return(n < 0 ? 0 : cm[*s1] - cm[*--s2]); in strncasecmp()
/titanic_44/usr/src/lib/libresolv2/common/bsd/
H A Dstrcasecmp.c95 const u_char *cm = charmap, in strcasecmp() local
99 while (cm[*us1] == cm[*us2++]) in strcasecmp()
102 return (cm[*us1] - cm[*--us2]); in strcasecmp()
108 const u_char *cm = charmap, in strncasecmp() local
113 if (cm[*us1] != cm[*us2++]) in strncasecmp()
114 return (cm[*us1] - cm[*--us2]); in strncasecmp()
/titanic_44/usr/src/uts/common/crypto/io/
H A Dcrypto.c438 crypto_minor_t *cm = NULL; in crypto_open() local
513 cm = kmem_zalloc(sizeof (crypto_minor_t), KM_SLEEP); in crypto_open()
514 mutex_init(&cm->cm_lock, NULL, MUTEX_DRIVER, NULL); in crypto_open()
515 cv_init(&cm->cm_cv, NULL, CV_DRIVER, NULL); in crypto_open()
518 cm->cm_refcnt = 1; in crypto_open()
519 crypto_minors[mn - 1] = cm; in crypto_open()
532 crypto_minor_t *cm = NULL; in crypto_close() local
548 cm = crypto_minors[mn - 1]; in crypto_close()
549 if (cm == NULL) { in crypto_close()
568 mutex_enter(&cm->cm_lock); in crypto_close()
[all …]
/titanic_44/usr/src/lib/libpkg/common/
H A Disdir.c51 #define ISCOMPCPIO ((unsigned char) cm.c_mag[0] == m_h[0] && \
52 (unsigned char) cm.c_mag[1] == m_h[1] && \
53 (MASK_CK((unsigned char) cm.c_mag[2], BLOCK_MASK) || \
54 MASK_CK((unsigned char) cm.c_mag[2], BIT_MASK)))
56 #define ISCPIO (cm.b_mag != CMN_BIN && \
57 (strcmp(cm.c_mag, CMS_ASC) == 0) && \
58 (strcmp(cm.c_mag, CMS_CHR) == 0) && \
59 (strcmp(cm.c_mag, CMS_CRC) == 0))
170 } cm; in iscpio() local
192 if (read(fd, cm.c_mag, sizeof (cm.c_mag)) != in iscpio()
[all …]
/titanic_44/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_rcm.c155 int cm; in ap_capinfo() local
184 for (cp = cinfo, cm = firstcm; cm <= lastcm; cm++, cp++) { in ap_capinfo()
188 switch (ap_cm_type(a, cm)) { in ap_capinfo()
203 if (ap_cm_capacity(a, cm, cap, ncap, os)) { in ap_capinfo()
423 int cm; in ap_rcm_init() local
432 for (ncpu = 0, cm = rcm->firstcm; cm <= rcm->lastcm; cm++) { in ap_rcm_init()
434 ap_target_t type = ap_cm_type(a, cm); in ap_rcm_init()
437 ncpu += ap_cm_ncap(a, cm); in ap_rcm_init()
501 int cm; in ap_rcm_rlist() local
513 for (ncap = 0, cm = firstcm; cm <= lastcm; cm++) { in ap_rcm_rlist()
[all …]
/titanic_44/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) != 0) in console_vprintf()
293 kmem_free(cm, cm->cm_size); in console_vprintf()
/titanic_44/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()
/titanic_44/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()
/titanic_44/usr/src/lib/libtecla/common/
H A Dpcache.c114 static CacheMem *del_CacheMem(CacheMem *cm);
115 static void rst_CacheMem(CacheMem *cm);
716 CacheMem *cm; /* The object to be returned */ in new_CacheMem() local
720 cm = (CacheMem *)malloc(sizeof(CacheMem)); in new_CacheMem()
721 if(!cm) { in new_CacheMem()
730 cm->sg = NULL; in new_CacheMem()
731 cm->files_dim = 0; in new_CacheMem()
732 cm->files = NULL; in new_CacheMem()
733 cm->nfiles = 0; in new_CacheMem()
737 cm->sg = _new_StringGroup(_pu_pathname_dim()); in new_CacheMem()
[all …]
/titanic_44/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]);
/titanic_44/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()
564 if ((cm->mode == ATH9K_MODE_11A) || in ath9k_regd_add_channel()
565 (cm->mode == ATH9K_MODE_11NA_HT20) || in ath9k_regd_add_channel()
566 (cm->mode == ATH9K_MODE_11NA_HT40PLUS) || in ath9k_regd_add_channel()
567 (cm->mode == ATH9K_MODE_11NA_HT40MINUS)) { in ath9k_regd_add_channel()
593 if ((cm->flags & CHANNEL_ALL) == CHANNEL_A) in ath9k_regd_add_channel()
[all …]
/titanic_44/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()
/titanic_44/usr/src/common/util/
H A Dstring.c434 const unsigned char *cm = (const unsigned char *)charmap; in strcasecmp() local
438 while (cm[*us1] == cm[*us2++]) in strcasecmp()
441 return (cm[*us1] - cm[*(us2 - 1)]); in strcasecmp()
447 const unsigned char *cm = (const unsigned char *)charmap; in strncasecmp() local
451 while (n != 0 && cm[*us1] == cm[*us2++]) { in strncasecmp()
456 return (n == 0 ? 0 : cm[*us1] - cm[*(us2 - 1)]); in strncasecmp()
/titanic_44/usr/src/lib/libcurses/screen/
H A Dmvcur.c94 cm; /* cost direct cursor motion */ in mvcur() local
113 cm = _COST(Cursor_address); in mvcur()
118 if (cm < LARGECOST && SP->baud >= 2400 && in mvcur()
135 if (rl < cm) { in mvcur()
159 if (cm >= LARGECOST && rl >= LARGECOST && hu >= LARGECOST && in mvcur()
164 if (cm <= rl && cm <= hu && cm <= hd) in mvcur()
/titanic_44/usr/src/uts/sun4u/starfire/io/
H A Ddrmach.c130 drmach_common_t cm; member
141 drmach_common_t cm; member
766 dp->bp->cm.name, dp->cm.name, name); in drmach_device_get_prop()
782 dp->bp->cm.name, dp->cm.name, name); in drmach_device_get_proplen()
795 bp->cm.isa = (void *)drmach_board_new; in drmach_board_new()
796 bp->cm.release = drmach_board_release; in drmach_board_new()
797 bp->cm.status = drmach_board_status; in drmach_board_new()
799 (void) drmach_board_name(bnum, bp->cm.name, sizeof (bp->cm.name)); in drmach_board_new()
1209 s_mem->bp->cm.name, s_mem->cm.name)); in drmach_prep_rename_script()
1218 t_mem->bp->cm.name, t_mem->cm.name)); in drmach_prep_rename_script()
[all …]
/titanic_44/usr/src/uts/i86pc/io/acpi/drmach_acpi/
H A Ddrmach_acpi.c524 self->cm.dispose(id); in drmach_device_dispose()
547 bp->cm.isa = (void *)drmach_board_new; in drmach_board_new()
548 bp->cm.release = drmach_board_release; in drmach_board_new()
549 bp->cm.status = drmach_board_status; in drmach_board_new()
564 err = drmach_board_name(bnum, bp->cm.name, sizeof (bp->cm.name)); in drmach_board_new()
986 ip->dev.cm.isa = (void *)drmach_io_new; in drmach_io_new()
987 ip->dev.cm.dispose = drmach_io_dispose; in drmach_io_new()
988 ip->dev.cm.release = drmach_io_release; in drmach_io_new()
989 ip->dev.cm.status = drmach_io_status; in drmach_io_new()
990 (void) snprintf(ip->dev.cm.name, sizeof (ip->dev.cm.name), "%s%d", in drmach_io_new()
[all …]
/titanic_44/usr/src/cmd/troff/troff.d/
H A Dtroff.sh44 -c*) cm=`echo $i|sed -e s/c/m/`
45 newargs="$newargs $cm"

123