Home
last modified time | relevance | path

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

12345678

/titanic_41/usr/src/man/man3devid/
H A DMakefile19 MANSECT= 3devid
21 MANFILES= devid_get.3devid
23 MANLINKS= devid_compare.3devid \
24 devid_deviceid_to_nmlist.3devid \
25 devid_free.3devid \
26 devid_free_nmlist.3devid \
27 devid_get_minor_name.3devid \
28 devid_sizeof.3devid \
29 devid_str_decode.3devid \
30 devid_str_encode.3devid \
[all …]
/titanic_41/usr/src/pkg/manifests/
H A Dsystem-library.man3devid.inc17 file path=usr/share/man/man3devid/devid_get.3devid
18 link path=usr/share/man/man3devid/devid_compare.3devid target=devid_get.3devid
19 link path=usr/share/man/man3devid/devid_deviceid_to_nmlist.3devid \
20 target=devid_get.3devid
21 link path=usr/share/man/man3devid/devid_free.3devid target=devid_get.3devid
22 link path=usr/share/man/man3devid/devid_free_nmlist.3devid \
23 target=devid_get.3devid
24 link path=usr/share/man/man3devid/devid_get_minor_name.3devid \
25 target=devid_get.3devid
26 link path=usr/share/man/man3devid/devid_sizeof.3devid target=devid_get.3devid
[all …]
/titanic_41/usr/src/lib/libdevid/
H A DMakefile.com27 OBJECTS= deviceid.o devid.o devid_scsi.o devid_smp.o
32 SRCS = ../deviceid.c $(SRC)/common/devid/devid.c \
33 $(SRC)/common/devid/devid_scsi.c \
34 $(SRC)/common/devid/devid_smp.c
52 pics/devid.o: $(SRC)/common/devid/devid.c
53 $(COMPILE.c) -o $@ $(SRC)/common/devid/devid.c
56 pics/devid_scsi.o: $(SRC)/common/devid/devid_scsi.c
57 $(COMPILE.c) -o $@ $(SRC)/common/devid/devid_scsi.c
60 pics/devid_smp.o: $(SRC)/common/devid/devid_smp.c
61 $(COMPILE.c) -o $@ $(SRC)/common/devid/devid_smp.c
H A Dlibdevid.h47 uchar_t *inq83, size_t inq83_len, ddi_devid_t *devid);
51 ddi_devid_t *devid);
53 extern char *devid_to_guid(ddi_devid_t devid);
/titanic_41/usr/src/common/devid/
H A Ddevid.c45 ddi_devid_valid(ddi_devid_t devid) in ddi_devid_valid() argument
47 devid_valid(ddi_devid_t devid) in ddi_devid_valid()
50 impl_devid_t *id = (impl_devid_t *)devid; in ddi_devid_valid()
53 DEVID_ASSERT(devid != NULL); in ddi_devid_valid()
80 ddi_devid_sizeof(ddi_devid_t devid) in ddi_devid_sizeof() argument
82 devid_sizeof(ddi_devid_t devid) in ddi_devid_sizeof()
85 impl_devid_t *id = (impl_devid_t *)devid; in ddi_devid_sizeof()
90 DEVID_ASSERT(DEVID_FUNC(devid_valid)(devid) == DEVID_RET_VALID); in ddi_devid_sizeof()
173 ddi_devid_free(ddi_devid_t devid) in ddi_devid_free() argument
175 devid_free(ddi_devid_t devid) in ddi_devid_free()
[all …]
H A Ddevid_smp.c93 ddi_devid_t *devid) /* OUT */ in ddi_devid_smp_encode() argument
110 DEVID_ASSERT(devid != NULL); in ddi_devid_smp_encode()
111 *devid = NULL; in ddi_devid_smp_encode()
225 *devid = (ddi_devid_t)i_devid; in ddi_devid_smp_encode()
/titanic_41/usr/src/uts/sun4v/os/
H A Dmach_ddi_impl.c87 int devid, venid, ssid, ssvid, rev, class_code; in translate_devid() local
93 if ((devid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in translate_devid()
100 (void) ddi_prop_update_int(DDI_DEV_T_NONE, dip, "device-id", devid); in translate_devid()
135 venid, devid, ssvid, ssid, rev); in translate_devid()
137 venid, devid, ssvid, ssid); in translate_devid()
138 (void) sprintf(new_compat[2], "pciex%x,%x.%x", venid, devid, rev); in translate_devid()
139 (void) sprintf(new_compat[3], "pciex%x,%x", venid, devid); in translate_devid()
142 (void) sprintf(new_compat[6], "pci%x,%x", venid, devid); in translate_devid()
/titanic_41/usr/src/lib/libdiskmgt/common/
H A Dpath.c183 ddi_devid_t devid; in add_path_state() local
188 if (devid_str_decode(dp->name, &devid, NULL) != 0) { in add_path_state()
195 if (pp->disks[i]->devid != NULL && in add_path_state()
196 devid_compare(pp->disks[i]->devid, devid) == 0) { in add_path_state()
206 devid_free(devid); in add_path_state()
221 ddi_devid_t devid; in add_wwn() local
226 if (devid_str_decode(dp->name, &devid, NULL) != 0) { in add_wwn()
233 if (pp->disks[i]->devid != NULL && in add_wwn()
234 devid_compare(pp->disks[i]->devid, devid) == 0) { in add_wwn()
243 devid_free(devid); in add_wwn()
/titanic_41/usr/src/uts/sun4v/io/
H A Ddr_io.c106 uint64_t devid; member
114 uint64_t devid; in dr_io_check_node() local
122 devid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in dr_io_check_node()
126 __func__, devid, sarg->devid); in dr_io_check_node()
128 if (devid == sarg->devid) { in dr_io_check_node()
149 dr_io_find_node(char *name, uint64_t devid) in dr_io_find_node() argument
156 arg.devid = devid; in dr_io_find_node()
178 uint64_t devid; in dr_io_find_node_md() local
215 if (md_get_prop_val(mdp, listp[i], "cfg-handle", &devid)) { in dr_io_find_node_md()
221 if (devid == id) { in dr_io_find_node_md()
[all …]
/titanic_41/usr/src/head/
H A Ddevid.h46 extern void devid_free(ddi_devid_t devid);
48 extern size_t devid_sizeof(ddi_devid_t devid);
50 extern int devid_deviceid_to_nmlist(char *search_path, ddi_devid_t devid,
53 extern int devid_valid(ddi_devid_t devid);
54 extern char *devid_str_encode(ddi_devid_t devid, char *minor_name);
/titanic_41/usr/src/uts/common/os/
H A Ddevid_cache.c401 e_ddi_devid_hold_installed_driver(ddi_devid_t devid) in e_ddi_devid_hold_installed_driver() argument
403 impl_devid_t *id = (impl_devid_t *)devid; in e_ddi_devid_hold_installed_driver()
456 e_ddi_devid_discovery(ddi_devid_t devid) in e_ddi_devid_discovery() argument
473 e_ddi_devid_hold_installed_driver(devid); in e_ddi_devid_discovery()
510 e_devid_cache_register_cmn(dev_info_t *dip, ddi_devid_t devid, char *devpath) in e_devid_cache_register_cmn() argument
523 ASSERT(ddi_devid_valid(devid) == DDI_SUCCESS); in e_devid_cache_register_cmn()
546 DEVID_LOG_REG(("register", devid, path)); in e_devid_cache_register_cmn()
549 new_devid_size = ddi_devid_sizeof(devid); in e_devid_cache_register_cmn()
551 (void) bcopy(devid, new_devid, new_devid_size); in e_devid_cache_register_cmn()
583 if (ddi_devid_compare(devid, np->nvp_devid) != 0) { in e_devid_cache_register_cmn()
[all …]
/titanic_41/usr/src/test/zfs-tests/cmd/devname2devid/
H A Ddevname2devid.c59 ddi_devid_t devid; in main() local
78 if (devid_get(fd, &devid) != 0) { in main()
86 if ((devidstr = devid_str_encode(devid, minor_name)) == 0) { in main()
102 if (devid_deviceid_to_nmlist(search_path, devid, DEVID_MINOR_NAME_ALL, in main()
117 devid_free(devid); in main()
/titanic_41/usr/src/uts/common/io/chxge/com/
H A Dch_compat.h132 unsigned short devid; member
137 #define CH_DEVICE_COMMON(devid, ssid, idx) { devid, ssid, idx } argument
138 #define CH_DEVICE(devid, ssid, idx) CH_DEVICE_COMMON(devid, ssid, idx) argument
/titanic_41/usr/src/uts/sun4u/sys/
H A Dopl_cfg.h55 #define OPL_CPUID_TO_LSB(devid) ((devid >> 5) & OPL_LSBID_MASK) argument
56 #define OPL_CPU_CHIP(devid) ((devid >> 3) & 0x3) argument
57 #define OPL_CORE(devid) ((devid >> 1) & 0x3) argument
58 #define OPL_CPU(devid) ((devid & 0x001)) argument
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Ddev.c135 char *devid = NULL, *tpl0id = NULL; in fmri_nvl2str() local
146 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_ID, &devid); in fmri_nvl2str()
173 buf, buflen, devid, ":" FM_FMRI_DEV_ID "=", NULL); in fmri_nvl2str()
193 devid || tpl0id ? "/" : NULL, NULL); in fmri_nvl2str()
236 char *cur, *devid = NULL, *tpl0id = NULL; in dev_fmri_str2nvl() local
322 devid = eq + 1; in dev_fmri_str2nvl()
330 if (devid == NULL && tpl0id == NULL) in dev_fmri_str2nvl()
347 if (devid != NULL) in dev_fmri_str2nvl()
348 err |= nvlist_add_string(fmri, FM_FMRI_DEV_ID, devid); in dev_fmri_str2nvl()
353 if (devid != NULL || tpl0id != NULL) in dev_fmri_str2nvl()
[all …]
/titanic_41/usr/src/uts/common/io/vioblk/
H A Dvioblk.c160 char devid[VIRTIO_BLK_ID_BYTES + 1]; member
453 drive->d_serial = sc->devid; in vioblk_driveinfo()
488 ret = ddi_dma_addr_bind_handle(xfer.x_dmah, NULL, (caddr_t)&sc->devid, in vioblk_get_id()
530 vioblk_devid_init(void *arg, dev_info_t *devinfo, ddi_devid_t *devid) in vioblk_devid_init() argument
540 VIRTIO_BLK_ID_BYTES, sc->devid, devid); in vioblk_devid_init()
548 sc->devid[0], sc->devid[1], sc->devid[2], sc->devid[3], in vioblk_devid_init()
549 sc->devid[4], sc->devid[5], sc->devid[6], sc->devid[7], in vioblk_devid_init()
550 sc->devid[8], sc->devid[9], sc->devid[10], sc->devid[11], in vioblk_devid_init()
551 sc->devid[12], sc->devid[13], sc->devid[14], sc->devid[15], in vioblk_devid_init()
552 sc->devid[16], sc->devid[17], sc->devid[18], sc->devid[19]); in vioblk_devid_init()
/titanic_41/usr/src/uts/common/sys/
H A Dvuid_event.h175 #define vuid_first(devid) ((devid) << 8) argument
176 #define vuid_last(devid) (((devid) << 8)+VUID_SEG_SIZE-1) argument
177 #define vuid_in_range(devid, id) \ argument
178 ((id >= vuid_first(devid)) && (id <= vuid_last(devid)))
/titanic_41/usr/src/cmd/oplhpd/
H A Dscf_notify.c251 unsigned int devid, funcid; /* bus addr */ in scf_get_devinfo() local
288 if (sscanf(tmp, "%x,%x", &devid, &funcid) != 2) { in scf_get_devinfo()
290 if (sscanf(tmp, "%x", &devid) != 1) { in scf_get_devinfo()
291 devid = 0; in scf_get_devinfo()
311 if ((devid > sdevid) || ((devid == sdevid) && in scf_get_devinfo()
314 devid = sdevid; in scf_get_devinfo()
323 if (devid >= sdevid) { in scf_get_devinfo()
325 devid = sdevid; in scf_get_devinfo()
353 dev_name, devid, funcid, dev_model); in scf_get_devinfo()
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_set_tkr.c57 ddi_devid_t devid; in upd_dr_dbinfo() local
86 if ((p->dd_dnp->devid != NULL) && in upd_dr_dbinfo()
88 (void) devid_str_decode(p->dd_dnp->devid, in upd_dr_dbinfo()
89 &devid, NULL); in upd_dr_dbinfo()
90 if ((devid_compare(devid, r->r_devid) == 0) || in upd_dr_dbinfo()
94 devid_free(devid); in upd_dr_dbinfo()
328 ddi_devid_t devid = NULL; in meta_update_mb() local
380 if (devid_str_decode(dnp->devid, &devid, NULL) != 0) { in meta_update_mb()
381 devid = NULL; in meta_update_mb()
434 if (devid != NULL) { in meta_update_mb()
[all …]
H A Dmeta_se_notify.c200 do_mdnotify(char *se_subclass, uint32_t tag, set_t setno, md_dev64_t devid) in do_mdnotify() argument
222 NOTIFY_MD(md_tag, setno, devid, ev_type); in do_mdnotify()
324 md_dev64_t devid in meta_svm_sysevent() argument
333 do_mdnotify(se_subclass, tag, setno, devid); in meta_svm_sysevent()
365 (uint64_t)devid); in meta_svm_sysevent()
371 devname = obj2devname(tag, setno, devid); in meta_svm_sysevent()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dvdev_disk.c188 ddi_devid_t devid; in vdev_disk_hold() local
220 ddi_devid_str_decode(vd->vdev_devid, &devid, &minor) == 0) { in vdev_disk_hold()
221 (void) ldi_vp_from_devid(devid, minor, &vd->vdev_devid_vp); in vdev_disk_hold()
223 ddi_devid_free(devid); in vdev_disk_hold()
300 ddi_devid_t devid; in vdev_disk_open() local
393 ldi_get_devid(dvd->vd_lh, &devid) == 0) { in vdev_disk_open()
394 if (ddi_devid_compare(devid, dvd->vd_devid) != 0) { in vdev_disk_open()
400 ddi_devid_free(devid); in vdev_disk_open()
455 ldi_get_devid(dvd->vd_lh, &devid) == 0) { in vdev_disk_open()
456 if (ddi_devid_compare(devid, dvd->vd_devid) != 0) { in vdev_disk_open()
[all …]
/titanic_41/usr/src/uts/i86pc/io/fipe/
H A Dfipe_drv.c57 uint16_t devid; member
192 uint16_t venid, devid, subvenid, subsysid; in fipe_validate_dip() local
206 devid = pci_config_get16(handle, PCI_CONF_DEVID); in fipe_validate_dip()
215 (ip->devid == 0xffffu || ip->devid == devid) && in fipe_validate_dip()
/titanic_41/usr/src/uts/common/io/scsi/impl/
H A Dscsi_fm.c37 const char *devpath, const char *minor_name, const char *devid,
96 char *devid, char *tpl0, int sflag, nvlist_t *pl, ...) in scsi_fm_ereport_post() argument
149 fm_dev_ereport_postv(dip, eqdip, devpath, minor_name, devid, tpl0, in scsi_fm_ereport_post()
/titanic_41/usr/src/uts/common/io/sata/adapters/nv_sata/
H A Dnv_sata.conf25 use-cmdk-devid-format=1;
30 ddi-devid-registrant=1;
/titanic_41/usr/src/grub/grub-0.97/netboot/
H A Dconfig.c54 dev->devid.bus_type = PCI_BUS_TYPE; in pci_probe()
55 dev->devid.vendor_id = htons(state->dev.vendor); in pci_probe()
56 dev->devid.device_id = htons(state->dev.dev_id); in pci_probe()
103 dev->devid.bus_type = ISA_BUS_TYPE; in isa_probe()

12345678