Searched refs:hw_p (Results 1 – 8 of 8) sorted by relevance
/titanic_50/usr/src/uts/common/io/nxge/ |
H A D | nxge_fflp.c | 261 p_nxge_hw_list_t hw_p; in nxge_fflp_tcam_invalidate_all() local 266 if ((hw_p = nxgep->nxge_hw_p) == NULL) { in nxge_fflp_tcam_invalidate_all() 272 MUTEX_ENTER(&hw_p->nxge_tcam_lock); in nxge_fflp_tcam_invalidate_all() 276 MUTEX_EXIT(&hw_p->nxge_tcam_lock); in nxge_fflp_tcam_invalidate_all() 282 MUTEX_EXIT(&hw_p->nxge_tcam_lock); in nxge_fflp_tcam_invalidate_all() 1280 p_nxge_hw_list_t hw_p; in nxge_add_tcam_entry() local 1293 if ((hw_p = nxgep->nxge_hw_p) == NULL) { in nxge_add_tcam_entry() 1308 MUTEX_ENTER(&hw_p->nxge_tcam_lock); in nxge_add_tcam_entry() 1311 l3_ucls_p = &hw_p->tcam_l3_prog_cls[i]; in nxge_add_tcam_entry() 1388 MUTEX_EXIT(&hw_p->nxge_tcam_lock); in nxge_add_tcam_entry() [all …]
|
H A D | nxge_main.c | 6664 p_nxge_hw_list_t hw_p; in nxge_init_common_dev() local 6679 for (hw_p = nxge_hw_list; hw_p; hw_p = hw_p->next) { in nxge_init_common_dev() 6684 hw_p, in nxge_init_common_dev() 6686 if (hw_p->parent_devp == p_dip) { in nxge_init_common_dev() 6687 nxgep->nxge_hw_p = hw_p; in nxge_init_common_dev() 6688 hw_p->ndevs++; in nxge_init_common_dev() 6689 hw_p->nxge_p[nxgep->function_num] = nxgep; in nxge_init_common_dev() 6695 hw_p, in nxge_init_common_dev() 6697 hw_p->ndevs)); in nxge_init_common_dev() 6702 if (hw_p == NULL) { in nxge_init_common_dev() [all …]
|
H A D | nxge_mac.c | 7738 nxge_scan_ports_phy(p_nxge_t nxgep, p_nxge_hw_list_t hw_p) in nxge_scan_ports_phy() argument 7761 hw_p->niu_type = NIU_TYPE_NONE; in nxge_scan_ports_phy() 7762 hw_p->platform_type = P_NEPTUNE_NONE; in nxge_scan_ports_phy() 7878 switch (hw_p->platform_type) { in nxge_scan_ports_phy() 7880 hw_p->niu_type = NEPTUNE_2_10GF_2_1GC; in nxge_scan_ports_phy() 7886 hw_p->xcvr_addr[1] = port_fd_arr[0]; in nxge_scan_ports_phy() 7887 hw_p->xcvr_addr[0] = port_fd_arr[1]; in nxge_scan_ports_phy() 7895 hw_p->platform_type = in nxge_scan_ports_phy() 7897 hw_p->niu_type = NEPTUNE_2_10GF_2_1GRF; in nxge_scan_ports_phy() 7899 hw_p->xcvr_addr[0] = port_fd_arr[0]; in nxge_scan_ports_phy() [all …]
|
H A D | nxge_hw.c | 121 p_nxge_hw_list_t hw_p; in nxge_hw_init_niu_common() local 125 if ((hw_p = nxgep->nxge_hw_p) == NULL) { in nxge_hw_init_niu_common() 128 MUTEX_ENTER(&hw_p->nxge_cfg_lock); in nxge_hw_init_niu_common() 129 if (hw_p->flags & COMMON_INIT_DONE) { in nxge_hw_init_niu_common() 133 hw_p->parent_devp, nxgep->function_num)); in nxge_hw_init_niu_common() 134 MUTEX_EXIT(&hw_p->nxge_cfg_lock); in nxge_hw_init_niu_common() 138 hw_p->flags = COMMON_INIT_START; in nxge_hw_init_niu_common() 141 hw_p->parent_devp, nxgep->function_num)); in nxge_hw_init_niu_common() 181 hw_p->flags = COMMON_INIT_DONE; in nxge_hw_init_niu_common() 182 MUTEX_EXIT(&hw_p->nxge_cfg_lock); in nxge_hw_init_niu_common() [all …]
|
H A D | nxge_virtual.c | 1614 p_nxge_hw_list_t hw_p; in nxge_get_config_properties() local 1621 if ((hw_p = nxgep->nxge_hw_p) == NULL) { in nxge_get_config_properties() 1668 MUTEX_ENTER(&hw_p->nxge_cfg_lock); in nxge_get_config_properties() 1669 if ((hw_p->flags & COMMON_CFG_VALID) != in nxge_get_config_properties() 1675 hw_p->flags |= COMMON_CFG_VALID; in nxge_get_config_properties() 1677 MUTEX_EXIT(&hw_p->nxge_cfg_lock); in nxge_get_config_properties() 1691 MUTEX_ENTER(&hw_p->nxge_cfg_lock); in nxge_get_config_properties() 1692 if ((hw_p->flags & COMMON_CFG_VALID) != in nxge_get_config_properties() 1702 hw_p->flags |= COMMON_CFG_VALID; in nxge_get_config_properties() 1704 MUTEX_EXIT(&hw_p->nxge_cfg_lock); in nxge_get_config_properties()
|
/titanic_50/usr/src/uts/common/io/hxge/ |
H A D | hxge_hw.c | 78 p_hxge_hw_list_t hw_p; in hxge_hw_init_niu_common() local 82 if ((hw_p = hxgep->hxge_hw_p) == NULL) { in hxge_hw_init_niu_common() 86 MUTEX_ENTER(&hw_p->hxge_cfg_lock); in hxge_hw_init_niu_common() 87 if (hw_p->flags & COMMON_INIT_DONE) { in hxge_hw_init_niu_common() 89 " already done for dip $%p exiting", hw_p->parent_devp)); in hxge_hw_init_niu_common() 90 MUTEX_EXIT(&hw_p->hxge_cfg_lock); in hxge_hw_init_niu_common() 94 hw_p->flags = COMMON_INIT_START; in hxge_hw_init_niu_common() 97 hw_p->parent_devp)); in hxge_hw_init_niu_common() 100 hw_p->flags = COMMON_INIT_DONE; in hxge_hw_init_niu_common() 101 MUTEX_EXIT(&hw_p->hxge_cfg_lock); in hxge_hw_init_niu_common() [all …]
|
H A D | hxge_main.c | 4288 p_hxge_hw_list_t hw_p; in hxge_init_common_dev() local 4299 for (hw_p = hxge_hw_list; hw_p; hw_p = hw_p->next) { in hxge_init_common_dev() 4302 hw_p, p_dip)); in hxge_init_common_dev() 4303 if (hw_p->parent_devp == p_dip) { in hxge_init_common_dev() 4304 hxgep->hxge_hw_p = hw_p; in hxge_init_common_dev() 4305 hw_p->ndevs++; in hxge_init_common_dev() 4306 hw_p->hxge_p = hxgep; in hxge_init_common_dev() 4310 hw_p, p_dip, hw_p->ndevs)); in hxge_init_common_dev() 4315 if (hw_p == NULL) { in hxge_init_common_dev() 4318 hw_p = kmem_zalloc(sizeof (hxge_hw_list_t), KM_SLEEP); in hxge_init_common_dev() [all …]
|
H A D | hxge_pfc.c | 171 p_hxge_hw_list_t hw_p; in hxge_tcam_default_add_entry() local 173 if ((hw_p = hxgep->hxge_hw_p) == NULL) { in hxge_tcam_default_add_entry() 203 MUTEX_ENTER(&hw_p->hxge_tcam_lock); in hxge_tcam_default_add_entry() 206 MUTEX_EXIT(&hw_p->hxge_tcam_lock); in hxge_tcam_default_add_entry() 227 MUTEX_EXIT(&hw_p->hxge_tcam_lock); in hxge_tcam_default_add_entry() 238 MUTEX_EXIT(&hw_p->hxge_tcam_lock); in hxge_tcam_default_add_entry() 687 p_hxge_hw_list_t hw_p; in hxge_pfc_tcam_invalidate_all() local 692 if ((hw_p = hxgep->hxge_hw_p) == NULL) { in hxge_pfc_tcam_invalidate_all() 698 MUTEX_ENTER(&hw_p->hxge_tcam_lock); in hxge_pfc_tcam_invalidate_all() 700 MUTEX_EXIT(&hw_p->hxge_tcam_lock); in hxge_pfc_tcam_invalidate_all() [all …]
|