Home
last modified time | relevance | path

Searched refs:devp (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/lib/libpkg/common/
H A Ddevtype.c45 devp->mntflg = 0; in devtype()
46 devp->name = alias; in devtype()
47 devp->dirname = devp->pathname = devp->mount = NULL; in devtype()
48 devp->fstyp = devp->cdevice = devp->bdevice = devp->norewind = NULL; in devtype()
49 devp->rdonly = 0; in devtype()
50 devp->capacity = 0; in devtype()
55 devp->dirname = devp->name; in devtype()
64 if (!devp->bdevice || !devp->bdevice[0]) { in devtype()
71 devp->dirname = devp->mount; in devtype()
78 if (devp->cdevice && devp->cdevice[0]) { in devtype()
[all …]
H A Dpkgmount.c90 devp->bdevice); in pkgmount()
97 if (devp->fstyp == NULL) { in pkgmount()
126 devp->fstyp = strdup(cmd); in pkgmount()
129 if (devp->rdonly) { in pkgmount()
131 devp->fstyp, devp->bdevice, devp->mount, NULL); in pkgmount()
134 devp->fstyp, devp->bdevice, devp->mount, NULL); in pkgmount()
140 devp->mntflg++; in pkgmount()
147 pkgumount(struct pkgdev *devp) in pkgumount() argument
152 if (!devp->mntflg) in pkgumount()
160 devp->bdevice); in pkgumount()
[all …]
/illumos-gate/usr/src/cmd/fs.d/
H A Dpreenlib.c232 for (devp = rdp->alldevs; devp != NULL; devp = devp->nxtdev) { in get_runnable()
234 rc = (*drvp->choosefunc)(devp->mapsize, devp->unitmap, in get_runnable()
297 for (devp = rdp->alldevs; devp != NULL; devp = devp->nxtdev) { in preen_addunit()
305 if (devp == NULL) { in preen_addunit()
361 if (devp == NULL) { in alloc_dev()
365 devp->drvid = did; in alloc_dev()
366 devp->mapsize = 0; in alloc_dev()
369 return (devp); in alloc_dev()
380 devp->unitmap = devp->mapsize ? in addunit()
388 (void) memset((char *)&devp->unitmap[devp->mapsize], 0, in addunit()
[all …]
/illumos-gate/usr/src/uts/sun/io/dada/conf/
H A Ddcd_confsubr.c80 dcd_probe(struct dcd_device *devp, int (*callback)()) in dcd_probe() argument
87 return (dcd_hba_probe(devp, callback)); in dcd_probe()
95 dcd_unprobe(struct dcd_device *devp) in dcd_unprobe() argument
97 if (devp->dcd_ident) { in dcd_unprobe()
99 devp->dcd_ident = (struct dcd_identify *)NULL; in dcd_unprobe()
103 #define ROUTE (devp->dcd_address)
114 if (devp->dcd_ident == NULL) { in dcd_hba_probe()
119 devp->dcd_ident = (struct dcd_identify *) in dcd_hba_probe()
122 if (devp->dcd_ident == NULL) { in dcd_hba_probe()
152 bzero((caddr_t)devp->dcd_ident, SUN_IDENTSIZE); in dcd_hba_probe()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dslice.c526 slice_t *devp; in get_fixed_assocs() local
547 for (cnt = 0; devp != NULL; devp = devp->next) in get_fixed_assocs()
569 for (devp = desc->p.disk->aliases->devpaths; devp != NULL; in get_fixed_assocs()
570 devp = devp->next) { in get_fixed_assocs()
639 slice_t *devp; in make_fixed_descriptors() local
653 for (devp = ap->devpaths; devp != NULL; devp = devp->next) { in make_fixed_descriptors()
727 slice_t *devp; in match_fixed_name() local
729 devp = ap->devpaths; in match_fixed_name()
730 while (devp != NULL) { in match_fixed_name()
736 dp = devp; in match_fixed_name()
[all …]
H A Dinuse_lu.c208 char *devp; in lufslist() local
216 if ((devp = strstr(line, "fsDevice=\"")) == NULL) { in lufslist()
220 devp = devp + 10; in lufslist()
222 if ((ep = strchr(devp, '"')) == NULL) { in lufslist()
242 if ((status = add_use_record(devp, nmp)) != 0) { in lufslist()
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dpkgvolume.c47 pkgvolume(struct pkgdev *devp, char *pkg, int part, int nparts) in pkgvolume() argument
53 if (devp->cdevice) in pkgvolume()
68 if (devp->mount == NULL) { in pkgvolume()
78 if (n = pkgumount(devp)) { in pkgvolume()
80 devp->bdevice, n); in pkgvolume()
83 if (n = pkgmount(devp, pkg, part, nparts, 1)) in pkgvolume()
85 (void) sprintf(path, "%s/%s", devp->dirname, pkg); in pkgvolume()
/illumos-gate/usr/src/uts/i86pc/io/acpi_drv/
H A Dacpi_drv.c756 if (devp) { in acpi_drv_printf()
757 cmn_err(lev, "%s.%s: %s", devp->hid, devp->uid, in acpi_drv_printf()
846 ev, devp->hid, devp->uid, val); in acpi_drv_gen_sysevent()
942 if (!devp->valid) { in acpi_drv_get_psr()
949 devp->present = ac; in acpi_drv_get_psr()
952 devp->present = -1; in acpi_drv_get_psr()
975 if (!devp->valid) { in acpi_drv_get_sta()
985 devp->present = -1; in acpi_drv_get_sta()
1067 if (!devp->valid) { in acpi_drv_dev_present()
1078 devp); in acpi_drv_dev_present()
[all …]
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c119 devid_t *devp = filep->fi_devp; in openi() local
177 devid_t *devp; in find() local
186 devp = filep->fi_devp; in find()
255 devid_t *devp; in sbmap() local
257 devp = filep->fi_devp; in sbmap()
323 devid_t *devp = filep->fi_devp; in dlook() local
411 devid_t *devp; in readdir() local
414 devp = filep->fi_devp; in readdir()
456 devid_t *devp; in getblock() local
460 devp = filep->fi_devp; in getblock()
[all …]
/illumos-gate/usr/src/common/fs/
H A Dufsops.c152 devid_t *devp; in find() local
164 devp = filep->fi_devp; in find()
224 devid_t *devp; in sbmap() local
226 devp = filep->fi_devp; in sbmap()
328 devid_t *devp; in readdir() local
331 devp = filep->fi_devp; in readdir()
373 devid_t *devp; in getblock() local
377 devp = filep->fi_devp; in getblock()
388 fs = &devp->un_fs.di_fs; in getblock()
438 devid_t *devp; in getblock_noopt() local
[all …]
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu_acpi.c72 ivhd_deventry_t *devp; in process_4byte_deventry() local
112 *devp = deventry; in process_4byte_deventry()
115 c->ivhdc_first_deventry = devp; in process_4byte_deventry()
119 c->ivhdc_last_deventry = devp; in process_4byte_deventry()
154 ivhd_deventry_t *devp; in process_8byte_deventry() local
213 *devp = deventry; in process_8byte_deventry()
216 c->ivhdc_first_deventry = devp; in process_8byte_deventry()
220 c->ivhdc_last_deventry = devp; in process_8byte_deventry()
400 ivhd_deventry_t *devp; in free_ivhd_container() local
402 for (devp = ivhdcp->ivhdc_first_deventry; devp; ) { in free_ivhd_container()
[all …]
/illumos-gate/usr/src/uts/common/sys/dktp/
H A Dcmdev.h35 #define CMDEV_TARG(devp) (devp)->sd_address.a_target argument
36 #define CMDEV_LUN(devp) (devp)->sd_address.a_lun argument
/illumos-gate/usr/src/stand/lib/fs/common/
H A Ddiskread.c57 devid_t *devp; in diskread() local
63 devp = filep->fi_devp; in diskread()
65 err = prom_seek(devp->di_dcookie, in diskread()
72 if ((err = prom_read(devp->di_dcookie, filep->fi_memp, filep->fi_count, in diskread()
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_devctl.c48 static int px_open(dev_t *devp, int flags, int otyp, cred_t *credp);
76 px_open(dev_t *devp, int flags, int otyp, cred_t *credp) in px_open() argument
78 px_t *px_p = PX_DEV_TO_SOFTSTATE(*devp); in px_open()
79 int minor = getminor(*devp); in px_open()
94 DBG(DBG_OPEN, px_p->px_dip, "devp=%x: flags=%x\n", devp, flags); in px_open()
107 if (rval = pcie_open(px_p->px_dip, devp, flags, otyp, credp)) { in px_open()
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_ib_cma.c293 ibcma_dev_t *devp; in rdma_ib_init_qp_attr() local
313 if (devp == NULL) { in rdma_ib_init_qp_attr()
400 ibcma_dev_t *devp; in ibcma_append_listen_list() local
881 ibcma_dev_t *devp; in rdma_ib_join_multicast() local
886 if (devp == NULL) { in rdma_ib_join_multicast()
1096 ibcma_dev_t *devp; in ibcma_udp_connect() local
1101 ASSERT(devp); in ibcma_udp_connect()
1158 ibcma_dev_t *devp; in ibcma_init_devinfo() local
1250 ibcma_dev_t *devp; in ibcma_path_hdlr() local
2166 ibcma_dev_t *devp; in ibcma_get_first_ib_ipaddr() local
[all …]
/illumos-gate/usr/src/uts/sun/io/dada/targets/
H A Ddad.c405 struct dcd_device *devp; in dcdprobe() local
460 dcd_unprobe(devp); in dcdprobe()
474 struct dcd_device *devp; in dcdattach() local
616 struct dcd_device *devp; in dcd_free_softstate() local
661 dcd_unprobe(devp); in dcd_free_softstate()
756 struct dcd_device *devp; in dcd_dr_detach() local
895 struct dcd_device *devp; in dcd_doattach() local
950 un->un_dcd = devp; in dcd_doattach()
1212 devp = un->un_dcd; in dcd_validate_geometry()
3618 GET_SOFT_STATE(devp); in dcdioctl_cmd()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_watch.c65 #define FILL_SCSI1_LUN(devp, pkt) \ argument
66 if ((devp->sd_address.a_lun > 0) && \
67 (devp->sd_inq->inq_ansi == 0x1)) { \
69 devp->sd_address.a_lun; \
192 #define ROUTE &devp->sd_address
196 struct scsi_device *devp, in scsi_watch_request_submit() argument
208 struct scsi_device *devp, in scsi_mmc_watch_request_submit() argument
220 struct scsi_device *devp, in scsi_watch_request_submit_impl() argument
285 FILL_SCSI1_LUN(devp, rqpkt); in scsi_watch_request_submit_impl()
313 (devp->sd_inq->inq_ansi > 2)) { in scsi_watch_request_submit_impl()
[all …]
H A Dscsi_subr.c245 makecom_g0(struct scsi_pkt *pkt, struct scsi_device *devp, in makecom_g0() argument
248 MAKECOM_G0(pkt, devp, flag, cmd, addr, (uchar_t)cnt); in makecom_g0()
255 MAKECOM_G0_S(pkt, devp, flag, cmd, cnt, (uchar_t)fixbit); in makecom_g0_s()
262 MAKECOM_G1(pkt, devp, flag, cmd, addr, cnt); in makecom_g1()
269 MAKECOM_G5(pkt, devp, flag, cmd, addr, cnt); in makecom_g5()
1105 dev_info_t *dev = devp->sd_dev; in scsi_generic_errmsg()
1187 (*decode_fru)(devp, buf, SCSI_ERRMSG_BUF_LEN, in scsi_generic_errmsg()
1245 scsi_vu_errmsg(devp, pkt, label, severity, blkno, in scsi_errmsg()
1360 dev_info_t *dip, struct scsi_device *devp) in scsi_get_device_type_string() argument
1362 struct scsi_inquiry *inq = devp->sd_inq; in scsi_get_device_type_string()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses.c271 scsi_unprobe(devp); in ses_probe()
276 scsi_unprobe(devp); in ses_probe()
279 scsi_unprobe(devp); in ses_probe()
377 Scsidevp devp; in ses_doattach() local
398 devp->sd_dev = dip; in ses_doattach()
414 scsi_unprobe(devp); in ses_doattach()
421 scsi_unprobe(devp); in ses_doattach()
426 scsi_unprobe(devp); in ses_doattach()
432 scsi_unprobe(devp); in ses_doattach()
444 scsi_unprobe(devp); in ses_doattach()
[all …]
/illumos-gate/usr/src/uts/intel/io/vgatext/
H A Dvgatext.c328 vgatext_open(dev_t *devp, int flag, int otyp, cred_t *cred) in vgatext_open() argument
330 struct vgatext_softc *softc = getsoftc(DEV2INST(*devp)); in vgatext_open()
335 return (gfxp_fb_open(devp, flag, otyp, cred, softc->gfxp_state)); in vgatext_open()
339 vgatext_close(dev_t devp, int flag, int otyp, cred_t *cred) in vgatext_close() argument
341 struct vgatext_softc *softc = getsoftc(DEV2INST(devp)); in vgatext_close()
346 return (gfxp_fb_close(devp, flag, otyp, cred, softc->gfxp_state)); in vgatext_close()
/illumos-gate/usr/src/uts/common/sys/scsi/impl/
H A Dcommands.h520 #define MAKECOM_COMMON(pktp, devp, flag, cmd) \ argument
521 (pktp)->pkt_address = (devp)->sd_address, \
527 #define MAKECOM_G0(pktp, devp, flag, cmd, addr, cnt) \ argument
528 MAKECOM_COMMON((pktp), (devp), (flag), (cmd)), \
532 #define MAKECOM_G0_S(pktp, devp, flag, cmd, cnt, fixbit) \ argument
533 MAKECOM_COMMON((pktp), (devp), (flag), (cmd)), \
537 #define MAKECOM_G1(pktp, devp, flag, cmd, addr, cnt) \ argument
538 MAKECOM_COMMON((pktp), (devp), (flag), (cmd)), \
542 #define MAKECOM_G5(pktp, devp, flag, cmd, addr, cnt) \ argument
543 MAKECOM_COMMON((pktp), (devp), (flag), (cmd)), \
[all …]
/illumos-gate/usr/src/uts/common/io/usb/hubd/
H A Dhubd.c41 static int hubd_open(dev_t *devp, int flags, int otyp, cred_t *credp);
182 hubd_open(dev_t *devp, int flags, int otyp, cred_t *credp) in hubd_open() argument
184 dev_info_t *dip = hubd_get_dip(*devp); in hubd_open()
186 return (usba_hubdi_open(dip, devp, flags, otyp, credp)); in hubd_open()
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c64 static devid_t *devp; variable
481 devp->di_taken = 1; in boot_hsfs_mountroot()
482 devp->di_dcookie = h; in boot_hsfs_mountroot()
484 (void) strcpy(devp->di_desc, str); in boot_hsfs_mountroot()
485 bzero(devp->un_fs.dummy, sizeof (devp->un_fs.dummy)); in boot_hsfs_mountroot()
493 head->fi_devp = devp; in boot_hsfs_mountroot()
710 if (devp == NULL) { in boot_hsfs_closeall()
722 release_cache(devp->di_dcookie); in boot_hsfs_closeall()
723 (void) prom_close(devp->di_dcookie); in boot_hsfs_closeall()
724 devp->di_taken = 0; in boot_hsfs_closeall()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmdesc.c275 mdesc_create_state(dev_t *devp) in mdesc_create_state() argument
294 if (devp != NULL) { in mdesc_create_state()
295 major = getemajor(*devp); in mdesc_create_state()
302 if (devp != NULL) in mdesc_create_state()
303 *devp = mdsp->dev; in mdesc_create_state()
332 mdesc_open(dev_t *devp, int flag, int otyp, cred_t *credp) in mdesc_open() argument
348 mdsp = mdesc_create_state(devp); in mdesc_open()
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_devctl.c48 static int pci_open(dev_t *devp, int flags, int otyp, cred_t *credp);
82 pci_open(dev_t *devp, int flags, int otyp, cred_t *credp) in pci_open() argument
97 pci_p = DEV_TO_SOFTSTATE(*devp); in pci_open()
104 DEBUG2(DBG_OPEN, pci_p->pci_dip, "devp=%x: flags=%x\n", devp, flags); in pci_open()
124 if (rval = pcihp_ops->cb_open(devp, flags, otyp, credp)) { in pci_open()

12345678910>>...13