Searched refs:devctl_hdl (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 504 cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist) in cleanup_after_devctl_cmd() argument 509 if (devctl_hdl != NULL) { in cleanup_after_devctl_cmd() 510 devctl_release(devctl_hdl); in cleanup_after_devctl_cmd() 516 setup_for_devctl_cmd(const char *ap_id, devctl_hdl_t *devctl_hdl, in setup_for_devctl_cmd() argument 525 if ((*devctl_hdl = devctl_ap_acquire((char *)ap_id, oflag)) == NULL) { in setup_for_devctl_cmd() 559 cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp); in setup_for_devctl_cmd() 854 reset_device(devctl_hdl_t devctl_hdl, nvlist_t *nvl) in reset_device() argument 864 if (devctl_ap_disconnect(devctl_hdl, nvl) != 0) { in reset_device() 874 if (devctl_ap_configure(devctl_hdl, nvl) != 0) { in reset_device() 1494 devctl_hdl_t devctl_hdl = NULL; in cfga_list_ext() local [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 230 setup_for_devctl_cmd(const char *ap_id, devctl_hdl_t *devctl_hdl, 242 cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist); 1426 devctl_hdl_t devctl_hdl = NULL; in cfga_list_ext() local 1448 if ((rv = setup_for_devctl_cmd(ap_id, &devctl_hdl, &user_nvlist, in cfga_list_ext() 1454 if (devctl_ap_getstate(devctl_hdl, user_nvlist, in cfga_list_ext() 1456 cleanup_after_devctl_cmd(devctl_hdl, user_nvlist); in cfga_list_ext() 1461 cleanup_after_devctl_cmd(devctl_hdl, user_nvlist); in cfga_list_ext() 1887 cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist) in cleanup_after_devctl_cmd() argument 1892 if (devctl_hdl != NULL) { in cleanup_after_devctl_cmd() 1893 devctl_release(devctl_hdl); in cleanup_after_devctl_cmd() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 580 ib_cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist) in ib_cleanup_after_devctl_cmd() argument 586 if (devctl_hdl != NULL) { in ib_cleanup_after_devctl_cmd() 587 devctl_release(devctl_hdl); in ib_cleanup_after_devctl_cmd() 618 devctl_hdl_t *devctl_hdl, nvlist_t **user_nvlistp) in ib_setup_for_devctl_cmd() argument 623 if ((*devctl_hdl = devctl_ap_acquire(apid, 0)) == NULL) { in ib_setup_for_devctl_cmd() 626 ib_cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp); in ib_setup_for_devctl_cmd() 635 ib_cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp); in ib_setup_for_devctl_cmd() 643 ib_cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp); in ib_setup_for_devctl_cmd()
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 53 struct devctl_hdl { struct 60 #define DCP(x) ((struct devctl_hdl *)(x)) argument 62 static int dc_cmd(uint_t, uint_t, struct devctl_hdl *, nvlist_t *, void *); 228 struct devctl_hdl *dcp; in dc_mkhndl() 1325 dc_cmd(uint_t cmd, uint_t flags, struct devctl_hdl *dcp, nvlist_t *ulp, in dc_cmd()
|