Home
last modified time | relevance | path

Searched refs:mn (Results 1 – 25 of 43) sorted by relevance

12

/titanic_41/usr/src/cmd/devfsadm/
H A Daudio_link.c153 char *mn; in sndstat_process() local
155 mn = di_minor_name(minor); in sndstat_process()
161 if (strcmp(mn, "sound,sndstat0") == 0) { in sndstat_process()
181 char *mn; in audio_process() local
198 mn = di_minor_name(minor); in audio_process()
203 (void) snprintf(devpath, sizeof (devpath), "%s:%s", tmp, mn); in audio_process()
206 if (strncmp(mn, "sound,", sizeof ("sound,") - 1) != 0) { in audio_process()
208 "can't find match for'%s'\n", mn); in audio_process()
213 (void) strlcpy(base, mn + 6, sizeof (base)); in audio_process()
214 mn = base; in audio_process()
[all …]
H A Dtape_link.c67 char *mn; in tape_process() local
71 mn = di_minor_name(minor); in tape_process()
74 if ((mn != NULL) && (*mn >= '0') && (*mn <= '9')) { in tape_process()
86 (void) strcat(l_path, mn); in tape_process()
100 (void) strcat(l_path, mn); in tape_process()
H A Ddisk_link.c460 char *mn; in disk_common() local
471 mn = di_minor_name(minor); in disk_common()
472 if (strstr(mn, ",raw")) { in disk_common()
475 (void) strncpy(mn_copy, mn, 4); in disk_common()
481 part = mn; in disk_common()
501 if ((mn[0] == 'p') && (part_num >= 5)) { in disk_common()
506 if (mn[0] < 'q') { in disk_common()
507 (void) sprintf(slice, "s%d", mn[0] - 'a'); in disk_common()
508 } else if (strncmp(mn, MN_EFI, 2) != 0) { in disk_common()
509 (void) sprintf(slice, "p%d", mn[0] - 'q'); in disk_common()
[all …]
H A Dfssnap_link.c59 char mn[MAXNAMELEN + 1]; in fssnap() local
64 (void) strcpy(mn, di_minor_name(minor)); in fssnap()
66 if (strcmp(mn, "ctl") == 0) { in fssnap()
75 if (strcmp(mn, blkname) == 0) { in fssnap()
78 } else if (strcmp(mn, rawname) == 0) { in fssnap()
H A Dmisc_link.c255 char *mn = di_minor_name(minor); in display() local
259 (void) strcat(l_path, mn); in display()
385 char *mn = di_minor_name(minor); in minor_name() local
387 (void) devfsadm_mklink(mn, node, minor, 0); in minor_name()
388 if (strcmp(mn, "icmp") == 0) { in minor_name()
391 if (strcmp(mn, "icmp6") == 0) { in minor_name()
394 if (strcmp(mn, "ipf") == 0) { in minor_name()
407 char *mn = di_minor_name(minor); in wifi_minor_name() local
409 (void) snprintf(buf, sizeof (buf), "%s%s", "wifi/", mn); in wifi_minor_name()
473 char *mn; in printer_create() local
[all …]
H A Dlofi_link.c83 char mn[MAXNAMELEN + 1]; in lofi() local
88 (void) strcpy(mn, di_minor_name(minor)); in lofi()
90 if (strcmp(mn, "ctl") == 0) { in lofi()
99 if (strcmp(mn, blkname) == 0) { in lofi()
102 } else if (strcmp(mn, rawname) == 0) { in lofi()
H A Dmd_link.c102 char mn[MAXNAMELEN + 1]; in md_create() local
121 (void) strcpy(mn, di_minor_name(minor)); in md_create()
129 if (strcmp(mn, "admin") == 0) { in md_create()
145 ret = sscanf(mn, "%d,", &set); in md_create()
146 if (ret == 1 && (type = strrchr(mn, ',')) != NULL) { in md_create()
H A Dzfs_link.c56 char mn[MAXNAMELEN + 1]; in zfs() local
58 (void) strcpy(mn, di_minor_name(minor)); in zfs()
60 if (strcmp(mn, ZFS_DRIVER) == 0) { in zfs()
H A Dsmp_link.c69 char *mn; in smp_callback() local
73 mn = di_minor_name(minor); in smp_callback()
79 (void) strcat(l_path, mn); in smp_callback()
H A Dport_link.c321 char *devfspath, *buf, *mn; in dialout_create() local
329 if ((mn = di_minor_name(minor)) == NULL) { in dialout_create()
336 if (!is_dialout(mn)) { in dialout_create()
338 modname, devfspath, mn); in dialout_create()
345 (void) strcat(p_path, mn); in dialout_create()
526 char *devfspath, *buf, *mn; in onbrd_dialout_create() local
534 if ((mn = di_minor_name(minor)) == NULL) { in onbrd_dialout_create()
544 if (!is_dialout(mn)) { in onbrd_dialout_create()
546 modname, devfspath, mn); in onbrd_dialout_create()
553 (void) strcat(p_path, mn); in onbrd_dialout_create()
[all …]
H A Dsgen_link.c188 char *buf, *mn; in find_ctrlr() local
196 mn = di_minor_name(minor); in find_ctrlr()
203 (void) strcat(path, mn); in find_ctrlr()
/titanic_41/usr/src/cmd/fm/schemes/mem/sparc/
H A Dmem_disc.c432 mem_name_t mn; in mem_get_serids_from_kernel() local
446 bzero(&mn, sizeof (mn)); in mem_get_serids_from_kernel()
449 mn.m_namelen = strlen(dimms[i]) + 1; in mem_get_serids_from_kernel()
450 mn.m_sidlen = MEM_SERID_MAXLEN; in mem_get_serids_from_kernel()
452 mn.m_name = fmd_fmri_alloc(mn.m_namelen); in mem_get_serids_from_kernel()
453 mn.m_sid = fmd_fmri_alloc(mn.m_sidlen); in mem_get_serids_from_kernel()
455 (void) strcpy(mn.m_name, dimms[i]); in mem_get_serids_from_kernel()
458 rc = ioctl(fd, MEM_SID, &mn); in mem_get_serids_from_kernel()
495 fmd_fmri_free(mn.m_name, mn.m_namelen); in mem_get_serids_from_kernel()
496 fmd_fmri_free(mn.m_sid, mn.m_sidlen); in mem_get_serids_from_kernel()
[all …]
/titanic_41/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_mem.c197 mem_name_t mn; in cmd_mem_fmri_derive() local
204 mn.m_addr = afar; in cmd_mem_fmri_derive()
205 mn.m_synd = synd; in cmd_mem_fmri_derive()
206 mn.m_type[0] = afsr; in cmd_mem_fmri_derive()
207 mn.m_type[1] = 0; in cmd_mem_fmri_derive()
208 mn.m_namelen = 100; in cmd_mem_fmri_derive()
211 mn.m_name = fmd_hdl_alloc(hdl, mn.m_namelen, FMD_SLEEP); in cmd_mem_fmri_derive()
213 if (ioctl(fd, MEM_NAME, &mn) == 0) in cmd_mem_fmri_derive()
216 fmd_hdl_free(hdl, mn.m_name, mn.m_namelen); in cmd_mem_fmri_derive()
223 mn.m_namelen *= 2; in cmd_mem_fmri_derive()
[all …]
/titanic_41/usr/src/cmd/devfsadm/i386/
H A Dmisc_link_i386.c204 char *mn = di_minor_name(minor); in diskette() local
210 if (strcmp(mn, "c") == 0) { in diskette()
212 } else if (strcmp(mn, "c,raw") == 0) { in diskette()
221 if (strcmp(mn, "c") == 0) { in diskette()
226 } else if (strcmp(mn, "c,raw") == 0) { in diskette()
294 char *mn = di_minor_name(minor); in serial() local
298 (void) strcat(link, mn); in serial()
301 if (strcmp(mn, "a") == 0) { in serial()
304 } else if (strcmp(mn, "b") == 0) { in serial()
307 } else if (strcmp(mn, "c") == 0) { in serial()
[all …]
/titanic_41/usr/src/uts/sun4/vm/
H A Dvm_dep.h364 int mn, mt, szc, colors; \
367 for (mn = 0; mn < max_mem_nodes; mn++) { \
369 plcnt[mn][mt].plc_mts[szc]. \
371 plcnt[mn][mt].plc_mts[szc]. \
379 #define PLCNT_DO(pp, mn, mtype, szc, cnt, flags) { \ argument
382 atomic_add_long(&plcnt[mn][mtype].plc_mt_clpgcnt, cnt); \
384 atomic_add_long(&plcnt[mn][mtype].plc_mt_lgpgcnt, cnt); \
386 atomic_add_long(&plcnt[mn][mtype].plc_mt_flpgcnt, cnt); \
387 atomic_add_long(&plcnt[mn][mtype].plc_mts[szc].plc_mts_pgcnt, \
389 atomic_add_long(&plcnt[mn][mtype].plc_mts[szc]. \
[all …]
/titanic_41/usr/src/cmd/devfsadm/sparc/
H A Dmisc_link_sparc.c87 char *mn = di_minor_name(minor); in ddi_other() local
93 (void) strcat(path, mn); in ddi_other()
107 char *mn = di_minor_name(minor); in diskette() local
112 if (strcmp(mn, "c") == 0) { in diskette()
116 } else if (strcmp(mn, "c,raw") == 0) { in diskette()
206 char *mn; in starcat_sbbc_node() local
209 mn = di_minor_name(minor); in starcat_sbbc_node()
210 (void) devfsadm_mklink(mn, node, minor, 0); in starcat_sbbc_node()
/titanic_41/usr/src/uts/i86pc/cpu/generic_cpu/
H A Dgcpu_mca.c402 const char *mn[GCPU_CLASS_VARCOMPS]; in gcpu_mn_fmt() local
408 mn[0] = GCPU_MNEMONIC(code, TT, nspace); in gcpu_mn_fmt()
409 mn[1] = GCPU_MNEMONIC(code, LL, nspace); in gcpu_mn_fmt()
410 mn[2] = GCPU_MNEMONIC(code, RRRR, nspace); in gcpu_mn_fmt()
411 mn[3] = GCPU_MNEMONIC(code, PP, nspace); in gcpu_mn_fmt()
412 mn[4] = GCPU_MNEMONIC(code, II, nspace); in gcpu_mn_fmt()
413 mn[5] = GCPU_MNEMONIC(code, T, nspace); in gcpu_mn_fmt()
414 mn[6] = (status & MSR_MC_STATUS_UC) ? "_uc" : ""; in gcpu_mn_fmt()
415 mn[7] = GCPU_MNEMONIC(code, CCCC, nspace); in gcpu_mn_fmt()
416 mn[8] = GCPU_MNEMONIC(code, MMM, nspace); in gcpu_mn_fmt()
[all …]
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dmbuf.c230 struct mbuf *m, *mn; in mb_fit() local
235 if ((error = m_get(size, &mn)) != 0) in mb_fit()
237 mbp->mb_pos = mtod(mn, char *); in mb_fit()
238 mbp->mb_cur = m->m_next = mn; in mb_fit()
239 m = mn; in mb_fit()
/titanic_41/usr/src/uts/common/io/
H A Dtclient.c64 #define MINOR_TO_INST(mn) (mn) argument
/titanic_41/usr/src/cmd/zdump/
H A Dzdump.c590 register const char *mn; local
609 mn = "???";
610 else mn = mon_name[timeptr->tm_mon];
612 wn, mn,
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsubr_mchain.c331 mblk_t *m, *mn; in mb_reserve() local
340 mn = m_getblk(size, 1); in mb_reserve()
341 if (mn == NULL) in mb_reserve()
343 mbp->mb_cur = m->b_cont = mn; in mb_reserve()
344 m = mn; in mb_reserve()
/titanic_41/usr/src/cmd/sendmail/src/
H A Dreadcf.c953 char *mn; local
958 mn = newstr(macname(class));
967 sm_free(mn);
1004 mn, lc, jbuf);
1008 mn);
1009 sm_free(mn);
1020 mn);
1021 sm_free(mn);
1032 mn, cl);
1033 sm_free(mn);
[all …]
/titanic_41/usr/src/uts/common/io/audio/impl/
H A Daudio_client.c1186 minor_t mn = getminor(dev); in auclnt_hold_by_devt() local
1195 if ((c->c_major == mj) && (c->c_minor == mn)) { in auclnt_hold_by_devt()
1574 auclnt_get_dev_minor_data(audio_dev_t *d, minor_t mn) in auclnt_get_dev_minor_data() argument
1576 ASSERT(mn < (1U << AUDIO_MN_TYPE_NBITS)); in auclnt_get_dev_minor_data()
1577 return (d->d_minor_data[mn]); in auclnt_get_dev_minor_data()
1581 auclnt_get_minor_data(audio_client_t *c, minor_t mn) in auclnt_get_minor_data() argument
1583 ASSERT(mn < (1U << AUDIO_MN_TYPE_NBITS)); in auclnt_get_minor_data()
1584 return (c->c_dev->d_minor_data[mn]); in auclnt_get_minor_data()
/titanic_41/usr/src/cmd/troff/
H A Dn3.c284 filep finds(mn) in finds() argument
285 int mn; in finds()
292 oldmn = findmn(mn);
326 contab[i].rq = mn;
/titanic_41/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_cvt.c206 char *drv, *mn, *log; in drv_to_hba_logid() local
214 mn = di_minor_name(minor); in drv_to_hba_logid()
219 if (mn != NULL && drv != NULL && inst != -1 && log != NULL) { in drv_to_hba_logid()
221 if (snprintf(log, loglen, "%s%d:%s", drv, inst, mn) < loglen) { in drv_to_hba_logid()

12