Lines Matching refs:os_param

62 	if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_MINOR_NODE) {  in bnx_free_system_resources()
63 umdevice->os_param.active_resc_flag &= ~DRV_RESOURCE_MINOR_NODE; in bnx_free_system_resources()
65 ddi_remove_minor_node(umdevice->os_param.dip, in bnx_free_system_resources()
66 (char *)ddi_driver_name(umdevice->os_param.dip)); in bnx_free_system_resources()
68 ddi_remove_minor_node(umdevice->os_param.dip, in bnx_free_system_resources()
69 ddi_get_name(umdevice->os_param.dip)); in bnx_free_system_resources()
73 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_TIMER) { in bnx_free_system_resources()
74 umdevice->os_param.active_resc_flag &= in bnx_free_system_resources()
79 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_GLD_REGISTER) { in bnx_free_system_resources()
87 umdevice->os_param.active_resc_flag &= in bnx_free_system_resources()
91 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_KSTAT) { in bnx_free_system_resources()
92 umdevice->os_param.active_resc_flag &= ~DRV_RESOURCE_KSTAT; in bnx_free_system_resources()
96 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_HDWR_REGISTER) { in bnx_free_system_resources()
97 umdevice->os_param.active_resc_flag &= in bnx_free_system_resources()
102 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_MUTEX) { in bnx_free_system_resources()
103 umdevice->os_param.active_resc_flag &= ~DRV_RESOURCE_MUTEX; in bnx_free_system_resources()
104 mutex_destroy(&umdevice->os_param.ind_mutex); in bnx_free_system_resources()
105 mutex_destroy(&umdevice->os_param.phy_mutex); in bnx_free_system_resources()
106 mutex_destroy(&umdevice->os_param.rcv_mutex); in bnx_free_system_resources()
109 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_INTR_1) { in bnx_free_system_resources()
110 umdevice->os_param.active_resc_flag &= ~DRV_RESOURCE_INTR_1; in bnx_free_system_resources()
114 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_MAP_REGS) { in bnx_free_system_resources()
115 umdevice->os_param.active_resc_flag &= ~DRV_RESOURCE_MAP_REGS; in bnx_free_system_resources()
116 ddi_regs_map_free(&umdevice->os_param.reg_acc_handle); in bnx_free_system_resources()
118 umdevice->os_param.reg_acc_handle = NULL; in bnx_free_system_resources()
121 if (umdevice->os_param.active_resc_flag & DRV_RESOURCE_PCICFG_MAPPED) { in bnx_free_system_resources()
122 umdevice->os_param.active_resc_flag &= in bnx_free_system_resources()
124 pci_config_teardown(&umdevice->os_param.pci_cfg_handle); in bnx_free_system_resources()
162 dip = umdevice->os_param.dip; in bnx_attach_attach()
164 umdevice->os_param.active_resc_flag = 0; in bnx_attach_attach()
166 rc = pci_config_setup(umdevice->os_param.dip, in bnx_attach_attach()
167 &umdevice->os_param.pci_cfg_handle); in bnx_attach_attach()
175 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_PCICFG_MAPPED; in bnx_attach_attach()
188 &umdevice->os_param.regs_addr, in bnx_attach_attach()
192 &umdevice->os_param.reg_acc_handle); in bnx_attach_attach()
200 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_MAP_REGS; in bnx_attach_attach()
208 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_INTR_1; in bnx_attach_attach()
210 mutex_init(&umdevice->os_param.rcv_mutex, NULL, in bnx_attach_attach()
212 mutex_init(&umdevice->os_param.phy_mutex, NULL, in bnx_attach_attach()
214 mutex_init(&umdevice->os_param.ind_mutex, NULL, in bnx_attach_attach()
217 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_MUTEX; in bnx_attach_attach()
227 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_HDWR_REGISTER; in bnx_attach_attach()
233 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_KSTAT; in bnx_attach_attach()
239 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_GLD_REGISTER; in bnx_attach_attach()
243 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_TIMER; in bnx_attach_attach()
245 instance = ddi_get_instance(umdevice->os_param.dip); in bnx_attach_attach()
261 umdevice->os_param.active_resc_flag |= DRV_RESOURCE_MINOR_NODE; in bnx_attach_attach()
265 device_id = pci_config_get16(umdevice->os_param.pci_cfg_handle, in bnx_attach_attach()
267 subdevice_id = pci_config_get16(umdevice->os_param.pci_cfg_handle, in bnx_attach_attach()
338 umdevice->os_param.dip = dip; in bnx_attach()
414 if (umdevice->os_param.dip != dip) { in bnx_detach()
477 if (umdevice == NULL || umdevice->os_param.dip != dip) { in bnx_quiesce()