/titanic_44/usr/src/uts/common/io/xge/drv/ |
H A D | xge.c | 39 static int xge_attach(dev_info_t *dev_info, ddi_attach_cmd_t cmd); 40 static int xge_detach(dev_info_t *dev_info, ddi_detach_cmd_t cmd); 41 static int xge_quiesce(dev_info_t *dev_info); 271 xge_ring_config(dev_info_t *dev_info, xge_hal_device_config_t *device_config, in xge_ring_config() argument 278 ddi_prop_get_int(DDI_DEV_T_ANY, dev_info, DDI_PROP_DONTPASS, in xge_ring_config() 292 dev_info, DDI_PROP_DONTPASS, msg, in xge_ring_config() 298 dev_info, DDI_PROP_DONTPASS, msg, in xge_ring_config() 311 dev_info, DDI_PROP_DONTPASS, msg, in xge_ring_config() 317 dev_info, DDI_PROP_DONTPASS, msg, in xge_ring_config() 324 dev_info, DDI_PROP_DONTPASS, msg, in xge_ring_config() [all …]
|
/titanic_44/usr/src/cmd/mdb/i86pc/modules/uppc/ |
H A D | uppc.c | 34 struct dev_info dev_info; in interrupt_print_bus() local 36 if (mdb_vread(&dev_info, sizeof (dev_info), dip_addr) == -1) { in interrupt_print_bus() 41 while (dev_info.devi_parent != 0) { in interrupt_print_bus() 42 if (mdb_vread(&dev_info, sizeof (dev_info), in interrupt_print_bus() 43 (uintptr_t)dev_info.devi_parent) == -1) in interrupt_print_bus() 47 (uintptr_t)dev_info.devi_binding_name); in interrupt_print_bus()
|
/titanic_44/usr/src/cmd/mdb/common/modules/usba/ |
H A D | usba.c | 47 mdb_usba_is_root_hub(struct dev_info *dip) in mdb_usba_is_root_hub() 82 mdb_usba_hcdi_get_hcdi(struct dev_info *dip) in mdb_usba_hcdi_get_hcdi() 96 struct dev_info devinfo; in mdb_usba_get_usba_device() 98 if (mdb_vread(&devinfo, sizeof (struct dev_info), dip_addr) == -1) { in mdb_usba_get_usba_device() 131 struct dev_info devinfo; in mdb_usba_get_usba_device() 133 if (mdb_vread(&devinfo, sizeof (struct dev_info), in mdb_usba_get_usba_device()
|
/titanic_44/usr/src/uts/common/crypto/io/ |
H A D | cryptoadm.c | 360 crypto_get_dev_info_t dev_info; in get_dev_info() local 368 if (copyin(arg, &dev_info, sizeof (dev_info)) != 0) in get_dev_info() 371 dev_name = dev_info.di_dev_name; in get_dev_info() 374 dev_info.di_return_value = CRYPTO_ARGUMENTS_BAD; in get_dev_info() 375 if (copyout(&dev_info, arg, sizeof (dev_info)) != 0) { in get_dev_info() 382 if ((rv = crypto_get_dev_info(dev_name, dev_info.di_dev_instance, in get_dev_info() 384 dev_info.di_return_value = rv; in get_dev_info() 385 if (copyout(&dev_info, arg, sizeof (dev_info)) != 0) { in get_dev_info() 392 if (count > dev_info.di_count) { in get_dev_info() 393 dev_info.di_count = count; in get_dev_info() [all …]
|
/titanic_44/usr/src/lib/libsmedia/library/common/ |
H A D | l_generic.c | 51 smedia_get_device_info(smedia_handle_t handle, struct smdevice_info *dev_info) in smedia_get_device_info() argument 56 dev_info, "_m_get_device_info"); in smedia_get_device_info() 57 DPRINTF1("1....%s\n", dev_info->sm_product_name); in smedia_get_device_info() 58 dev_info->sm_version = SMDEVICE_INFO_V_1; in smedia_get_device_info() 64 smedia_free_device_info(smedia_handle_t handle, struct smdevice_info *dev_info) in smedia_free_device_info() argument 69 dev_info, "_m_free_device_info"); in smedia_free_device_info() 70 DPRINTF1("1....%s\n", dev_info->sm_product_name); in smedia_free_device_info() 71 dev_info->sm_version = SMDEVICE_INFO_V_1; in smedia_free_device_info()
|
/titanic_44/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_kef_ioctl.c | 323 crypto_get_dev_info_t *dev_info; in get_dev_info() local 337 dev_info = malloc(sizeof (crypto_get_dev_info_t) + in get_dev_info() 339 if (dev_info == NULL) { in get_dev_info() 343 (void) strlcpy(dev_info->di_dev_name, devname, MAXNAMELEN); in get_dev_info() 344 dev_info->di_dev_instance = inst_num; in get_dev_info() 345 dev_info->di_count = count; in get_dev_info() 351 free(dev_info); in get_dev_info() 355 if (ioctl(fd, CRYPTO_GET_DEV_INFO, dev_info) == -1) { in get_dev_info() 358 free(dev_info); in get_dev_info() 363 if (dev_info->di_return_value != CRYPTO_SUCCESS) { in get_dev_info() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ndievents.c | 39 dip_to_pathname(struct dev_info *device, char *path, int buflen) { in dip_to_pathname() 45 struct dev_info devi_parent; in dip_to_pathname() 66 if (mdb_vread(&devi_parent, sizeof (struct dev_info), in dip_to_pathname() 112 struct dev_info devi; in ndi_callback_print() 128 if (mdb_vread(&devi, sizeof (struct dev_info), in ndi_callback_print() 210 struct dev_info devi; in ndi_event_hdl() 224 if (mdb_vread(&devi, sizeof (struct dev_info), in ndi_event_hdl()
|
H A D | devinfo.c | 99 struct dev_info din_dev; 111 struct dev_info *dip_end; 149 dip->dip_end = (struct dev_info *)wsp->walk_addr; in devinfo_parents_walk_init() 174 sizeof (struct dev_info), addr) == -1) { in devinfo_parents_walk_init() 222 struct dev_info *dic_end; 242 dic->dic_end = (struct dev_info *)wsp->walk_addr; in devinfo_children_walk_init() 262 struct dev_info *v; in devinfo_children_walk_step() 285 v = (struct dev_info *)addr; in devinfo_children_walk_step() 300 sizeof (struct dev_info), (uintptr_t)v); in devinfo_children_walk_step() 405 struct dev_info devi; in devinfo2driver() [all …]
|
H A D | irm.c | 105 struct dev_info dev; in irmpools_dcmd() 191 struct dev_info dev; in irmreq_dcmd()
|
/titanic_44/usr/src/lib/libsmedia/plugins/floppy/common/ |
H A D | f_generic.c | 119 smdevice_info_t *dev_info = (smdevice_info_t *)ip; in _m_get_device_info() local 169 dev_info->sm_interface_type = IF_FLOPPY; in _m_get_device_info() 170 dev_info->sm_vendor_name = vendor_name; in _m_get_device_info() 171 dev_info->sm_product_name = product_name; in _m_get_device_info() 172 dev_info->sm_firmware_version = fw_version; in _m_get_device_info() 180 struct smdevice_info *dev_info = ip; in _m_free_device_info() local 194 free(dev_info->sm_vendor_name); in _m_free_device_info() 195 free(dev_info->sm_product_name); in _m_free_device_info() 196 free(dev_info->sm_firmware_version); in _m_free_device_info()
|
/titanic_44/usr/src/cmd/mdb/i86xpv/modules/xpv_uppc/ |
H A D | xpv_uppc.c | 95 struct dev_info dev_info; in interrupt_print_bus() local 97 if (mdb_vread(&dev_info, sizeof (dev_info), dip_addr) == -1) { in interrupt_print_bus() 102 while (dev_info.devi_parent != 0) { in interrupt_print_bus() 103 if (mdb_vread(&dev_info, sizeof (dev_info), in interrupt_print_bus() 104 (uintptr_t)dev_info.devi_parent) == -1) in interrupt_print_bus() 108 (uintptr_t)dev_info.devi_binding_name); in interrupt_print_bus()
|
/titanic_44/usr/src/lib/libsmedia/plugins/scsi/common/ |
H A D | s_generic.c | 117 struct smdevice_info *dev_info = ip; in _m_get_device_info() local 189 dev_info->sm_vendor_name = vendor_name; in _m_get_device_info() 190 dev_info->sm_product_name = product_name; in _m_get_device_info() 191 dev_info->sm_firmware_version = fw_version; in _m_get_device_info() 194 (void) strlcpy(dev_info->sm_vendor_name, in _m_get_device_info() 196 dev_info->sm_vendor_name[8] = 0; in _m_get_device_info() 197 (void) strlcpy(dev_info->sm_product_name, in _m_get_device_info() 199 dev_info->sm_product_name[16] = 0; in _m_get_device_info() 200 (void) strlcpy(dev_info->sm_firmware_version, in _m_get_device_info() 202 dev_info->sm_firmware_version[17] = 0; in _m_get_device_info() [all …]
|
/titanic_44/usr/src/cmd/mdb/i86xpv/modules/xpv_psm/ |
H A D | xpv_psm.c | 275 struct dev_info dev_info; in print_bus() local 293 if (mdb_vread(&dev_info, sizeof (struct dev_info), dip_addr) == -1) in print_bus() 296 dip_addr = (uintptr_t)dev_info.devi_parent; in print_bus() 298 if (mdb_vread(&dev_info, sizeof (struct dev_info), dip_addr) == -1) in print_bus() 301 if (mdb_readstr(parent, 7, (uintptr_t)dev_info.devi_node_name) == -1) in print_bus()
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | ddi_impldefs.h | 134 struct dev_info { struct 136 struct dev_info *devi_parent; /* my parent node in tree */ argument 137 struct dev_info *devi_child; /* my child list head */ argument 138 struct dev_info *devi_sibling; /* next element on my level */ argument 159 struct dev_info *devi_next; /* Next instance of this device */ argument 164 struct dev_info *devi_bus_map_fault; /* bus_map_fault parent */ argument 166 struct dev_info *devi_bus_dma_allochdl; /* bus_dma_newhdl parent */ argument 167 struct dev_info *devi_bus_dma_freehdl; /* bus_dma_freehdl parent */ argument 168 struct dev_info *devi_bus_dma_bindhdl; /* bus_dma_bindhdl parent */ argument 169 struct dev_info *devi_bus_dma_unbindhdl; /* bus_dma_unbindhdl parent */ argument [all …]
|
/titanic_44/usr/src/lib/libsmedia/plugins/blkdev/common/ |
H A D | b_generic.c | 188 struct smdevice_info *dev_info = ip; in _m_free_device_info() local 202 free(dev_info->sm_vendor_name); in _m_free_device_info() 203 free(dev_info->sm_product_name); in _m_free_device_info() 204 free(dev_info->sm_firmware_version); in _m_free_device_info()
|
/titanic_44/usr/src/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.ddi_pathname.d | 41 trace(ddi_pathname((struct dev_info *)rand(), rand())); 47 trace(ddi_pathname((struct dev_info *)arg1, rand()));
|
/titanic_44/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.ddi_pathname.d | 33 this->dev = (struct dev_info *)alloca(sizeof (struct dev_info));
|
/titanic_44/usr/src/cmd/mdb/i86pc/modules/common/ |
H A D | intr_common.c | 142 struct dev_info dev_info; in interrupt_print_isr() local 162 (void) mdb_vread(&dev_info, sizeof (dev_info), dip); in interrupt_print_isr() 163 mdb_printf("%s#%d", drvr_name, dev_info.devi_instance); in interrupt_print_isr()
|
/titanic_44/usr/src/cmd/mdb/sparc/modules/intr/ |
H A D | intr.c | 184 struct dev_info dev; in intr_niumx_walk_step() 230 if (mdb_vread(&dev, sizeof (struct dev_info), in intr_niumx_walk_step() 269 struct dev_info dev; in intr_pci_print_items() 319 if (mdb_vread(&dev, sizeof (struct dev_info), in intr_pci_print_items() 364 struct dev_info dev; in intr_px_print_items() 403 if (mdb_vread(&dev, sizeof (struct dev_info), in intr_px_print_items()
|
/titanic_44/usr/src/uts/intel/io/scsi/adapters/arcmsr/ |
H A D | arcmsr.c | 68 static int arcmsr_attach(dev_info_t *dev_info, ddi_attach_cmd_t cmd); 71 static int arcmsr_detach(dev_info_t *dev_info, ddi_detach_cmd_t cmd); 132 static int arcmsr_do_ddi_attach(dev_info_t *dev_info, int instance); 306 arcmsr_attach(dev_info_t *dev_info, ddi_attach_cmd_t cmd) in arcmsr_attach() argument 313 return (arcmsr_do_ddi_attach(dev_info, in arcmsr_attach() 314 ddi_get_instance(dev_info))); in arcmsr_attach() 322 hba_trans = ddi_get_driver_private(dev_info); in arcmsr_attach() 355 arcmsr_detach(dev_info_t *dev_info, ddi_detach_cmd_t cmd) { in arcmsr_detach() argument 361 instance = ddi_get_instance(dev_info); in arcmsr_detach() 391 if (scsi_hba_detach(dev_info) != DDI_SUCCESS) in arcmsr_detach() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/mdb_ks/ |
H A D | mdb_ks.c | 1066 struct dev_info devinfo; in mdb_devinfo2driver() 1114 struct dev_info dev_info; in mdb_devinfo2statep() local 1117 if (mdb_vread(&dev_info, sizeof (dev_info), dip_addr) == -1) { in mdb_devinfo2statep() 1123 dev_info.devi_instance, statep, NULL, 0)); in mdb_devinfo2statep() 1510 struct dev_info local_dip; in mdb_ddi_deviname() 1533 if (mdb_vread(&local_dip, sizeof (struct dev_info), dip_addr) == -1) { in mdb_ddi_deviname() 1575 struct dev_info local_dip; in mdb_ddi_pathname() 1587 if (mdb_vread(&local_dip, sizeof (struct dev_info), dip_addr) == -1) { in mdb_ddi_pathname()
|
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_devinfo.c | 1213 … LM_SHMEM_READ(pdev, OFFSETOF(shmem_region_t, dev_info.port_feature_config[port].config), &val); in lm_get_shmem_license_info() 1924 LM_SHMEM_READ(pdev, OFFSETOF(shmem_region_t, dev_info.shared_hw_config.config),&val); in lm_get_shmem_shared_hw_config() 1930 OFFSETOF(shmem_region_t, dev_info.shared_hw_config.config2),&val); in lm_get_shmem_shared_hw_config() 1936 OFFSETOF(shmem_region_t, dev_info.shared_hw_config.part_num),&val); in lm_get_shmem_shared_hw_config() 1943 OFFSETOF(shmem_region_t, dev_info.shared_hw_config.part_num)+4,&val); in lm_get_shmem_shared_hw_config() 1950 OFFSETOF(shmem_region_t, dev_info.shared_hw_config.part_num)+8,&val); in lm_get_shmem_shared_hw_config() 1957 OFFSETOF(shmem_region_t, dev_info.shared_hw_config.part_num)+12,&val); in lm_get_shmem_shared_hw_config() 1970 LM_SHMEM_READ(pdev,OFFSETOF(shmem_region_t,dev_info.shared_feature_config.config),&val); in lm_get_shmem_shared_hw_config() 2017 OFFSETOF(shmem_region_t,dev_info.port_feature_config[port].mba_config), in lm_get_shmem_port_hw_config() 2023 OFFSETOF(shmem_region_t,dev_info.port_feature_config[port].mba_vlan_cfg), in lm_get_shmem_port_hw_config() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/pmcs/ |
H A D | pmcs.c | 192 struct dev_info dip; in display_iport_damap() 199 if (mdb_vread(&dip, sizeof (struct dev_info), (uintptr_t)pdip) != in display_iport_damap() 200 sizeof (struct dev_info)) { in display_iport_damap() 252 struct dev_info dip; in display_iport_di_cb() 256 if (mdb_vread(&dip, sizeof (struct dev_info), (uintptr_t)addr) != in display_iport_di_cb() 257 sizeof (struct dev_info)) { in display_iport_di_cb() 306 struct dev_info dip; in display_iport_dtc() 311 if (mdb_vread(&dip, sizeof (struct dev_info), (uintptr_t)pdip) != in display_iport_dtc() 312 sizeof (struct dev_info)) { in display_iport_dtc() 2630 struct dev_info dip; in pmcs_tag() [all …]
|
/titanic_44/usr/src/lib/libdtrace/common/ |
H A D | io.d.in | 94 ((struct dev_info *)B->b_dip)->devi_instance; 100 ((struct dev_info *)B->b_dip)->devi_instance == 0 && 101 ((struct dev_info *)B->b_dip)->devi_parent != NULL && 102 ((struct dev_info *)B->b_dip)->devi_parent->devi_node_name == 104 ((struct dev_info *)B->b_dip)->devi_instance));
|
/titanic_44/usr/src/cmd/dtrace/demo/sdt/ |
H A D | intr.d | 35 this->devi = (struct dev_info *)arg0;
|