Home
last modified time | relevance | path

Searched refs:dev_list (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_ctl.c33 char **dev_list; member
48 static int get_hba_children(char *bus_path, char *dev_excl, char ***dev_list);
50 static void free_dev_list_elements(char **dev_list);
51 static void free_dev_list(char **dev_list);
75 char **dev_list = NULL; in bus_change_state() local
166 ret = get_hba_children(apidp->path, NULL, &dev_list); in bus_change_state()
171 if ((ret = scsi_rcm_suspend(dev_list, in bus_change_state()
176 if ((ret = scsi_rcm_offline(dev_list, in bus_change_state()
201 (void) scsi_rcm_resume(dev_list, in bus_change_state()
208 (void) scsi_rcm_online(dev_list, in bus_change_state()
[all …]
H A Dcfga_utils.c786 char *dev_list[2] = {NULL}; in path_apid_state_change() local
905 dev_list[0] = devpath; in path_apid_state_change()
907 ret = scsi_rcm_offline(dev_list, in path_apid_state_change()
931 (void) scsi_rcm_online(dev_list, in path_apid_state_change()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcryptoadm.c242 crypto_get_dev_list_t dev_list; in get_dev_list() local
248 if (copyin(arg, &dev_list, sizeof (dev_list)) != 0) in get_dev_list()
253 dev_list.dl_return_value = CRYPTO_FAILED; in get_dev_list()
254 if (copyout(&dev_list, arg, sizeof (dev_list)) != 0) { in get_dev_list()
261 if (count > dev_list.dl_dev_count) { in get_dev_list()
262 dev_list.dl_dev_count = count; in get_dev_list()
263 dev_list.dl_return_value = CRYPTO_BUFFER_TOO_SMALL; in get_dev_list()
265 if (copyout(&dev_list, arg, sizeof (dev_list)) != 0) { in get_dev_list()
271 dev_list.dl_dev_count = count; in get_dev_list()
272 dev_list.dl_return_value = CRYPTO_SUCCESS; in get_dev_list()
[all …]
/illumos-gate/usr/src/cmd/modload/
H A Dadd_drv.c54 struct dev_list { struct
58 struct dev_list *next; argument
65 static struct dev_list *conflict_lst = NULL;
78 static void free_conflict_list(struct dev_list *);
621 conflict_lst = (struct dev_list *)NULL; in drv_name_conflict()
652 struct dev_list *new_entry; in devfs_node()
692 new_entry = (struct dev_list *)calloc(1, in devfs_node()
693 sizeof (struct dev_list)); in devfs_node()
694 if (new_entry == (struct dev_list *)NULL) { in devfs_node()
770 struct dev_list *ptr; in print_drv_conflict_info()
[all …]
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dmap.c1128 g_get_dev_list(char *path, fc_port_dev_t **dev_list, int *ndevs) in g_get_dev_list() argument
1141 *dev_list = dlist = NULL; in g_get_dev_list()
1283 *dev_list = dlist; in g_get_dev_list()
1290 free(*dev_list); in g_get_dev_list()
1291 *dev_list = NULL; in g_get_dev_list()
1312 (void) free(*dev_list); in g_get_dev_list()
1313 *dev_list = NULL; in g_get_dev_list()
1547 fc_port_dev_t *dev_list, *dlistptr; in create_map() local
1661 if ((err = g_get_dev_list(drvr_path, &dev_list, in create_map()
1669 (void) free(dev_list); in create_map()
[all …]
/illumos-gate/usr/src/uts/intel/io/ipmi/
H A Dipmi_main.c66 static list_t dev_list; variable
135 for (p = list_head(&dev_list); p; p = list_next(&dev_list, p)) { in lookup_ipmidev_by_dev()
181 list_insert_head(&dev_list, dev); in ipmi_open()
222 list_remove(&dev_list, dp); in ipmi_close()
500 list_destroy(&dev_list); in ipmi_cleanup()
545 list_create(&dev_list, sizeof (ipmi_device_t), in ipmi_attach()
572 if (!list_is_empty(&dev_list)) { in ipmi_detach()
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_dr.c360 dev_info_t **dev_list; in sbdp_detach_nodes() local
364 dev_list = kmem_zalloc(sizeof (dev_info_t *) * SBDP_MAX_NODES, in sbdp_detach_nodes()
367 for (i = 0, dip = dev_list; i < apktp->num_of_nodes; i++) { in sbdp_detach_nodes()
380 for (i = dev_list_len, dip = &dev_list[i - 1]; i > 0; i--, dip--) { in sbdp_detach_nodes()
408 kmem_free(dev_list, sizeof (dev_info_t *) * SBDP_MAX_NODES); in sbdp_detach_nodes()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsinfo.c98 static struct name_list **dev_list; variable
1121 dev_list = (struct name_list **) in devfs_phys_to_logical()
1123 if (dev_list == NULL) { in devfs_phys_to_logical()
1134 free_name_list(dev_list[i], 1); in devfs_phys_to_logical()
1137 dev_list = NULL; in devfs_phys_to_logical()
1150 list = dev_list[i]; in devfs_phys_to_logical()
1163 list = dev_list[i]; in devfs_phys_to_logical()
1189 free_name_list(dev_list[i], 0); in devfs_phys_to_logical()
1191 free(dev_list); in devfs_phys_to_logical()
1192 dev_list = NULL; in devfs_phys_to_logical()
[all …]
H A Ddevinfo_devperm.c168 char *dev_list; in logindevperm() local
239 dev_list = strtok_r(last, field_delims, &last); in logindevperm()
240 if (dev_list == NULL) { in logindevperm()
252 device = strtok_r(dev_list, ":", &last); in logindevperm()
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_kef.c1328 crypto_get_dev_list_t *dev_list = NULL; in check_hardware_provider() local
1344 if (get_dev_list(&dev_list) == FAILURE) { in check_hardware_provider()
1348 for (i = 0; i < dev_list->dl_dev_count; i++) { in check_hardware_provider()
1349 if ((strcmp(dev_list->dl_devs[i].le_dev_name, pname) == 0) && in check_hardware_provider()
1350 (dev_list->dl_devs[i].le_dev_instance == *pnum)) { in check_hardware_provider()
1355 if (i == dev_list->dl_dev_count) { in check_hardware_provider()
1359 free(dev_list); in check_hardware_provider()
1364 *pcount = dev_list->dl_devs[i].le_mechanism_count; in check_hardware_provider()
1366 free(dev_list); in check_hardware_provider()
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcp.c568 fc_portmap_t *dev_list, uint32_t count, uint32_t state, int cause);
14640 fcp_update_targets(struct fcp_port *pptr, fc_portmap_t *dev_list, in fcp_update_targets() argument
14649 map_entry = &(dev_list[count]); in fcp_update_targets()