Home
last modified time | relevance | path

Searched refs:maj (Results 1 – 25 of 76) sorted by last modified time

1234

/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsocktpi.c364 major_t maj; in sotpi_init() local
431 maj = getmajor(newdev); in sotpi_init()
432 ASSERT(STREAMSTAB(maj)); in sotpi_init()
578 maj, vp, so, error); in sotpi_init()
H A Dsocksubr.c125 major_t maj; in sogetvp() local
165 maj = getmajor(vp->v_rdev); in sogetvp()
166 if (!STREAMSTAB(maj)) { in sogetvp()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip.c6014 major_t maj; in ip_open() local
6102 maj = getemajor(*devp); in ip_open()
6103 *devp = makedevice(maj, (minor_t)connp->conn_dev); in ip_open()
H A Dip_helper_stream.c107 major_t maj; in ip_helper_stream_setup() local
147 maj = getemajor(*devp); in ip_helper_stream_setup()
148 *devp = makedevice(maj, (ulong_t)(ip_minfop->ip_minfo_dev)); in ip_helper_stream_setup()
/illumos-gate/usr/src/cmd/smbios/
H A Dsmbios.c214 uint8_t maj = bitx8(rev, 7, 4); in jedec_rev_print() local
216 oprintf(fp, " %s: %x.%x\n", desc, maj, min); in jedec_rev_print()
/illumos-gate/usr/src/uts/common/sys/
H A Dnvme.h754 #define NVME_VERSION_ATLEAST(v, maj, min) \ argument
755 (((v)->v_major) > (maj) || \
756 ((v)->v_major == (maj) && (v)->v_minor >= (min)))
758 #define NVME_VERSION_HIGHER(v, maj, min) \ argument
759 (((v)->v_major) > (maj) || \
760 ((v)->v_major == (maj) && (v)->v_minor > (min)))
H A Dautoconf.h245 #define NETWORK_DRV(maj) (devnamesp[(maj)].dn_flags & DN_NETWORK_DRIVER) argument
246 #define GLDV3_DRV(maj) (devnamesp[(maj)].dn_flags & DN_GLDV3_DRIVER) argument
247 #define NETWORK_PHYSDRV(maj) \ argument
248 (devnamesp[(maj)].dn_flags & DN_NETWORK_PHYSDRIVER)
/illumos-gate/usr/src/test/nvme-tests/tests/nvmeadm/
H A Dnvmeadm_test.ksh136 typeset maj min
139 IFS=. read -r maj min <<< "$vers"
140 if [[ -z "$maj" ]]; then
148 if (( nt_maj > maj || (nt_maj == maj && nt_min >= min) )); then
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c2810 major_t maj; in zpool_relabel_disk() local
2850 (maj = major(st.st_rdev)) != (major_t)NODEV && in zpool_relabel_disk()
2851 modctl(MODGETNAME, drv, sizeof (drv), &maj) == 0 && in zpool_relabel_disk()
/illumos-gate/usr/src/test/util-tests/tests/cpio/
H A Dcpio_test.ksh61 typeset -i maj
77 maj=$1; min=$2
78 ((maj == 0 || min == 0)) && continue
79 ((maj > 0x7f || min > 0x7f)) && continue
85 typeset expect_cpio=$(printf "%d,%3d" $maj $min)
86 typeset expect_gtar=$(printf "%d,%d" $maj $min)
88 echo "Using device $DEVICE (major=$maj/minor=$min) as test subject"
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c124 #define TO_SVR3(maj, min) \ argument
5828 major_t maj, rmaj; in read_hdr() local
5855 maj = SVR3_MAJOR(Gen.g_dev); in read_hdr()
5859 Gen.g_dev = makedev(maj, min); in read_hdr()
5877 maj = SVR3_MAJOR(Gen.g_dev); in read_hdr()
7138 major_t maj; in write_hdr() local
7268 maj = major(G_p->g_rdev); in write_hdr()
7270 if (maj > (uint_t)OMAXMAJ) in write_hdr()
7271 maj = 0; in write_hdr()
7664 major_t maj; in read_bar_file_hdr() local
[all …]
/illumos-gate/usr/src/lib/libjedec/common/
H A Dlibjedec_spd.c454 const uint8_t maj = bitx8(data, 7, 4); in spd_parse_hex_vers() local
460 int ret = snprintf(buf, sizeof (buf), "%x.%x", maj, min); in spd_parse_hex_vers()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dval_cred.c81 OM_uint32 maj; local
89 maj = krb5_gss_validate_cred_1(minor_status, cred_handle, context);
90 if (maj == 0) {
97 return maj;
/illumos-gate/usr/src/lib/sasl_plugins/gssapi/
H A Dgssapi.c190 sasl_gss_seterror_(const context_t *text, OM_uint32 maj, OM_uint32 min, in sasl_gss_seterror_() argument
194 sasl_gss_seterror(const sasl_utils_t *utils, OM_uint32 maj, OM_uint32 min) in sasl_gss_seterror_()
221 maj_stat = gss_display_status(&min_stat, maj, in sasl_gss_seterror_()
/illumos-gate/usr/src/uts/common/os/
H A Dmodsubr.c616 major_t maj; in mod_name_to_major() local
636 maj = (major_t)(-(mbind->b_num)); in mod_name_to_major()
638 name, maj); in mod_name_to_major()
H A Ddevcfg.c3877 major_t maj; in child_path_to_driver() local
3900 maj = path_to_major(p); in child_path_to_driver()
3904 if (maj != DDI_MAJOR_T_NONE) in child_path_to_driver()
3905 drvname = ddi_major_to_name(maj); in child_path_to_driver()
H A Dsunpm.c7542 major_t maj; in pm_reattach_noinvol() local
7543 maj = ip->ni_major; in pm_reattach_noinvol()
7556 ddi_major_to_name(maj), (int)maj)) in pm_reattach_noinvol()
7569 pmf, path, (int)maj)) in pm_reattach_noinvol()
8099 major_t maj; in i_path_to_major() local
8101 if ((maj = path_to_major(path)) == DDI_MAJOR_T_NONE) { in i_path_to_major()
8102 maj = ddi_name_to_major(leaf_name); in i_path_to_major()
8105 return (maj); in i_path_to_major()
H A Dsunmdi.c8497 ddi_bus_config_op_t op, major_t maj) in bus_config_all_phcis() argument
8527 vhbc->vhbc_op_major = maj; in bus_config_all_phcis()
8559 ddi_bus_config_op_t op, major_t maj) in st_bus_config_all_phcis() argument
8564 bus_config_all_phcis(vhcache, flags, op, maj); in st_bus_config_all_phcis()
H A Ddriver.c606 major_t maj; in cdev_size() local
609 if ((maj = getmajor(dev)) >= devcnt) in cdev_size()
612 dnp = &(devnamesp[maj]); in cdev_size()
614 if (devopsp[maj] && devopsp[maj]->devo_cb_ops && in cdev_size()
615 !devopsp[maj]->devo_cb_ops->cb_str) { in cdev_size()
630 major_t maj; in cdev_Size() local
633 if ((maj = getmajor(dev)) >= devcnt) in cdev_Size()
636 dnp = &(devnamesp[maj]); in cdev_Size()
638 if (devopsp[maj] && devopsp[maj]->devo_cb_ops && in cdev_Size()
639 !devopsp[maj]->devo_cb_ops->cb_str) { in cdev_Size()
/illumos-gate/usr/src/uts/i86pc/io/
H A Dimmu.c636 major_t maj; in blacklisted_driver() local
646 if ((maj = ddi_name_to_major(*strptr++)) in blacklisted_driver()
649 if (devnamesp[maj].dn_head != NULL) { in blacklisted_driver()
/illumos-gate/usr/src/uts/common/io/
H A Dpshot.c3422 int maj; in prune_snubs() local
3425 maj = ddi_name_to_major((char *)name); in prune_snubs()
3426 if (maj != -1) { in prune_snubs()
3427 nex_dip = (struct dev_info *)devnamesp[maj].dn_head; in prune_snubs()
H A Dl_strplumb.c57 kstr_open(major_t maj, minor_t min, vnode_t **vpp, int *fd) in kstr_open() argument
62 vp = makespecvp(makedevice(maj, min), VCHR); in kstr_open()
217 kstr_autopush(int op, major_t *maj, minor_t *min, minor_t *lastmin, in kstr_autopush() argument
249 push.sap_major = *maj; in kstr_autopush()
262 *maj = push.sap_major; in kstr_autopush()
268 *maj = push.sap_major; in kstr_autopush()
274 *maj = push.sap_major; in kstr_autopush()
296 push.sap_major = *maj; in kstr_autopush()
324 push.sap_major = *maj; in kstr_autopush()
/illumos-gate/usr/src/uts/common/io/dls/
H A Ddls_mgmt.c605 uint64_t maj, inst; in dls_mgmt_get_phydev() local
608 if (i_dls_mgmt_get_linkattr(linkid, FPHYMAJ, &maj, &attrsz) != 0 || in dls_mgmt_get_phydev()
615 *devp = makedevice((major_t)maj, (minor_t)inst); in dls_mgmt_get_phydev()
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/
H A Dxhci.c1481 uint8_t maj, min, count, first; in xhci_port_count() local
1498 maj = XHCI_XECP_PROT_MAJOR(rvers); in xhci_port_count()
1513 if (maj == 3 && (min == 0x10 || min == 0x01)) { in xhci_port_count()
1516 } else if (maj == 3 && min == 0) { in xhci_port_count()
1519 } else if (maj <= 2) { in xhci_port_count()
1524 "unknown USB version: %x.%x\n", maj, min); in xhci_port_count()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkdev.c85 major_t maj; in __major() local
89 maj = (devnum >> ONBITSMINOR); in __major()
90 if (devnum == NODEV || maj > OMAXMAJ) { in __major()
97 maj = (devnum >> NBITSMINOR); in __major()
103 if (maj > MAXMAJ) { in __major()
115 return (maj); in __major()

1234