Lines Matching refs:hldev
47 int vxge_hw_vpath_wait_receive_idle(struct __vxge_hw_device *hldev, u32 vp_id) in vxge_hw_vpath_wait_receive_idle() argument
54 vpath = &hldev->virtual_paths[vp_id]; in vxge_hw_vpath_wait_receive_idle()
99 void vxge_hw_device_wait_receive_idle(struct __vxge_hw_device *hldev) in vxge_hw_device_wait_receive_idle() argument
104 if (!(hldev->vpaths_deployed & vxge_mBIT(i))) in vxge_hw_device_wait_receive_idle()
107 total_count += vxge_hw_vpath_wait_receive_idle(hldev, i); in vxge_hw_device_wait_receive_idle()
222 vxge_hw_upgrade_read_version(struct __vxge_hw_device *hldev, u32 *major, in vxge_hw_upgrade_read_version() argument
229 vpath = &hldev->virtual_paths[hldev->first_vp_id]; in vxge_hw_upgrade_read_version()
246 enum vxge_hw_status vxge_hw_flash_fw(struct __vxge_hw_device *hldev) in vxge_hw_flash_fw() argument
253 vpath = &hldev->virtual_paths[hldev->first_vp_id]; in vxge_hw_flash_fw()
277 vxge_update_fw_image(struct __vxge_hw_device *hldev, const u8 *fwdata, int size) in vxge_update_fw_image() argument
284 vpath = &hldev->virtual_paths[hldev->first_vp_id]; in vxge_update_fw_image()
373 vxge_hw_vpath_eprom_img_ver_get(struct __vxge_hw_device *hldev, in vxge_hw_vpath_eprom_img_ver_get() argument
381 vpath = &hldev->virtual_paths[hldev->first_vp_id]; in vxge_hw_vpath_eprom_img_ver_get()
484 static void __vxge_hw_device_pci_e_init(struct __vxge_hw_device *hldev) in __vxge_hw_device_pci_e_init() argument
489 pci_read_config_word(hldev->pdev, PCI_COMMAND, &cmd); in __vxge_hw_device_pci_e_init()
491 pci_write_config_word(hldev->pdev, PCI_COMMAND, cmd); in __vxge_hw_device_pci_e_init()
493 pci_save_state(hldev->pdev); in __vxge_hw_device_pci_e_init()
596 __vxge_hw_device_reg_addr_get(struct __vxge_hw_device *hldev) in __vxge_hw_device_reg_addr_get() argument
602 hldev->legacy_reg = hldev->bar0; in __vxge_hw_device_reg_addr_get()
604 hldev->toc_reg = __vxge_hw_device_toc_get(hldev->bar0); in __vxge_hw_device_reg_addr_get()
605 if (hldev->toc_reg == NULL) { in __vxge_hw_device_reg_addr_get()
610 val64 = readq(&hldev->toc_reg->toc_common_pointer); in __vxge_hw_device_reg_addr_get()
611 hldev->common_reg = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get()
613 val64 = readq(&hldev->toc_reg->toc_mrpcim_pointer); in __vxge_hw_device_reg_addr_get()
614 hldev->mrpcim_reg = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get()
617 val64 = readq(&hldev->toc_reg->toc_srpcim_pointer[i]); in __vxge_hw_device_reg_addr_get()
618 hldev->srpcim_reg[i] = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get()
622 val64 = readq(&hldev->toc_reg->toc_vpmgmt_pointer[i]); in __vxge_hw_device_reg_addr_get()
623 hldev->vpmgmt_reg[i] = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get()
627 val64 = readq(&hldev->toc_reg->toc_vpath_pointer[i]); in __vxge_hw_device_reg_addr_get()
628 hldev->vpath_reg[i] = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get()
631 val64 = readq(&hldev->toc_reg->toc_kdfc); in __vxge_hw_device_reg_addr_get()
635 hldev->kdfc = hldev->bar0 + VXGE_HW_TOC_GET_KDFC_INITIAL_OFFSET(val64) ; in __vxge_hw_device_reg_addr_get()
642 (u64 __iomem *)&hldev->common_reg->vpath_rst_in_prog); in __vxge_hw_device_reg_addr_get()
718 static void __vxge_hw_device_host_info_get(struct __vxge_hw_device *hldev) in __vxge_hw_device_host_info_get() argument
723 val64 = readq(&hldev->common_reg->host_type_assignments); in __vxge_hw_device_host_info_get()
725 hldev->host_type = in __vxge_hw_device_host_info_get()
728 hldev->vpath_assignments = readq(&hldev->common_reg->vpath_assignments); in __vxge_hw_device_host_info_get()
731 if (!(hldev->vpath_assignments & vxge_mBIT(i))) in __vxge_hw_device_host_info_get()
734 hldev->func_id = in __vxge_hw_device_host_info_get()
735 __vxge_hw_vpath_func_id_get(hldev->vpmgmt_reg[i]); in __vxge_hw_device_host_info_get()
737 hldev->access_rights = __vxge_hw_device_access_rights_get( in __vxge_hw_device_host_info_get()
738 hldev->host_type, hldev->func_id); in __vxge_hw_device_host_info_get()
740 hldev->virtual_paths[i].vp_open = VXGE_HW_VP_NOT_OPEN; in __vxge_hw_device_host_info_get()
741 hldev->virtual_paths[i].vp_reg = hldev->vpath_reg[i]; in __vxge_hw_device_host_info_get()
743 hldev->first_vp_id = i; in __vxge_hw_device_host_info_get()
753 __vxge_hw_verify_pci_e_info(struct __vxge_hw_device *hldev) in __vxge_hw_verify_pci_e_info() argument
755 struct pci_dev *dev = hldev->pdev; in __vxge_hw_verify_pci_e_info()
783 __vxge_hw_device_initialize(struct __vxge_hw_device *hldev) in __vxge_hw_device_initialize() argument
787 if (VXGE_HW_OK == __vxge_hw_device_is_privilaged(hldev->host_type, in __vxge_hw_device_initialize()
788 hldev->func_id)) { in __vxge_hw_device_initialize()
790 status = __vxge_hw_verify_pci_e_info(hldev); in __vxge_hw_device_initialize()
1099 struct __vxge_hw_device *hldev; in __vxge_hw_blockpool_destroy() local
1105 hldev = blockpool->hldev; in __vxge_hw_blockpool_destroy()
1108 dma_unmap_single(&hldev->pdev->dev, in __vxge_hw_blockpool_destroy()
1113 vxge_os_dma_free(hldev->pdev, in __vxge_hw_blockpool_destroy()
1134 __vxge_hw_blockpool_create(struct __vxge_hw_device *hldev, in __vxge_hw_blockpool_create() argument
1152 blockpool->hldev = hldev; in __vxge_hw_blockpool_create()
1174 hldev->pdev, in __vxge_hw_blockpool_create()
1184 dma_addr = dma_map_single(&hldev->pdev->dev, memblock, in __vxge_hw_blockpool_create()
1187 if (unlikely(dma_mapping_error(&hldev->pdev->dev, dma_addr))) { in __vxge_hw_blockpool_create()
1188 vxge_os_dma_free(hldev->pdev, memblock, &acc_handle); in __vxge_hw_blockpool_create()
1319 struct __vxge_hw_device *hldev = NULL; in vxge_hw_device_initialize() local
1326 hldev = vzalloc(sizeof(struct __vxge_hw_device)); in vxge_hw_device_initialize()
1327 if (hldev == NULL) { in vxge_hw_device_initialize()
1332 hldev->magic = VXGE_HW_DEVICE_MAGIC; in vxge_hw_device_initialize()
1334 vxge_hw_device_debug_set(hldev, VXGE_ERR, VXGE_COMPONENT_ALL); in vxge_hw_device_initialize()
1337 memcpy(&hldev->config, device_config, in vxge_hw_device_initialize()
1340 hldev->bar0 = attr->bar0; in vxge_hw_device_initialize()
1341 hldev->pdev = attr->pdev; in vxge_hw_device_initialize()
1343 hldev->uld_callbacks = attr->uld_callbacks; in vxge_hw_device_initialize()
1345 __vxge_hw_device_pci_e_init(hldev); in vxge_hw_device_initialize()
1347 status = __vxge_hw_device_reg_addr_get(hldev); in vxge_hw_device_initialize()
1349 vfree(hldev); in vxge_hw_device_initialize()
1353 __vxge_hw_device_host_info_get(hldev); in vxge_hw_device_initialize()
1359 if (!(hldev->vpath_assignments & vxge_mBIT(i))) in vxge_hw_device_initialize()
1372 if (__vxge_hw_blockpool_create(hldev, in vxge_hw_device_initialize()
1373 &hldev->block_pool, in vxge_hw_device_initialize()
1377 vxge_hw_device_terminate(hldev); in vxge_hw_device_initialize()
1382 status = __vxge_hw_device_initialize(hldev); in vxge_hw_device_initialize()
1384 vxge_hw_device_terminate(hldev); in vxge_hw_device_initialize()
1388 *devh = hldev; in vxge_hw_device_initialize()
1398 vxge_hw_device_terminate(struct __vxge_hw_device *hldev) in vxge_hw_device_terminate() argument
1400 vxge_assert(hldev->magic == VXGE_HW_DEVICE_MAGIC); in vxge_hw_device_terminate()
1402 hldev->magic = VXGE_HW_DEVICE_DEAD; in vxge_hw_device_terminate()
1403 __vxge_hw_blockpool_destroy(&hldev->block_pool); in vxge_hw_device_terminate()
1404 vfree(hldev); in vxge_hw_device_terminate()
1433 vpath->hldev->config.device_poll_millis); in __vxge_hw_vpath_stats_access()
1648 vxge_hw_device_stats_get(struct __vxge_hw_device *hldev, in vxge_hw_device_stats_get() argument
1655 if (!(hldev->vpaths_deployed & vxge_mBIT(i)) || in vxge_hw_device_stats_get()
1656 (hldev->virtual_paths[i].vp_open == in vxge_hw_device_stats_get()
1660 memcpy(hldev->virtual_paths[i].hw_stats_sav, in vxge_hw_device_stats_get()
1661 hldev->virtual_paths[i].hw_stats, in vxge_hw_device_stats_get()
1665 &hldev->virtual_paths[i], in vxge_hw_device_stats_get()
1666 hldev->virtual_paths[i].hw_stats); in vxge_hw_device_stats_get()
1669 memcpy(hw_stats, &hldev->stats.hw_dev_info_stats, in vxge_hw_device_stats_get()
1680 struct __vxge_hw_device *hldev, in vxge_hw_driver_stats_get() argument
1683 memcpy(sw_stats, &hldev->stats.sw_dev_info_stats, in vxge_hw_driver_stats_get()
1695 vxge_hw_mrpcim_stats_access(struct __vxge_hw_device *hldev, in vxge_hw_mrpcim_stats_access() argument
1701 status = __vxge_hw_device_is_privilaged(hldev->host_type, in vxge_hw_mrpcim_stats_access()
1702 hldev->func_id); in vxge_hw_mrpcim_stats_access()
1712 &hldev->mrpcim_reg->xmac_stats_sys_cmd, in vxge_hw_mrpcim_stats_access()
1714 hldev->config.device_poll_millis); in vxge_hw_mrpcim_stats_access()
1717 *stat = readq(&hldev->mrpcim_reg->xmac_stats_sys_data); in vxge_hw_mrpcim_stats_access()
1729 vxge_hw_device_xmac_aggr_stats_get(struct __vxge_hw_device *hldev, u32 port, in vxge_hw_device_xmac_aggr_stats_get() argument
1739 status = __vxge_hw_device_is_privilaged(hldev->host_type, in vxge_hw_device_xmac_aggr_stats_get()
1740 hldev->func_id); in vxge_hw_device_xmac_aggr_stats_get()
1745 status = vxge_hw_mrpcim_stats_access(hldev, in vxge_hw_device_xmac_aggr_stats_get()
1764 vxge_hw_device_xmac_port_stats_get(struct __vxge_hw_device *hldev, u32 port, in vxge_hw_device_xmac_port_stats_get() argument
1773 status = __vxge_hw_device_is_privilaged(hldev->host_type, in vxge_hw_device_xmac_port_stats_get()
1774 hldev->func_id); in vxge_hw_device_xmac_port_stats_get()
1779 status = vxge_hw_mrpcim_stats_access(hldev, in vxge_hw_device_xmac_port_stats_get()
1799 vxge_hw_device_xmac_stats_get(struct __vxge_hw_device *hldev, in vxge_hw_device_xmac_stats_get() argument
1805 status = vxge_hw_device_xmac_aggr_stats_get(hldev, in vxge_hw_device_xmac_stats_get()
1810 status = vxge_hw_device_xmac_aggr_stats_get(hldev, in vxge_hw_device_xmac_stats_get()
1817 status = vxge_hw_device_xmac_port_stats_get(hldev, in vxge_hw_device_xmac_stats_get()
1825 if (!(hldev->vpaths_deployed & vxge_mBIT(i))) in vxge_hw_device_xmac_stats_get()
1829 &hldev->virtual_paths[i], in vxge_hw_device_xmac_stats_get()
1835 &hldev->virtual_paths[i], in vxge_hw_device_xmac_stats_get()
1848 void vxge_hw_device_debug_set(struct __vxge_hw_device *hldev, in vxge_hw_device_debug_set() argument
1851 if (hldev == NULL) in vxge_hw_device_debug_set()
1856 hldev->debug_module_mask = mask; in vxge_hw_device_debug_set()
1857 hldev->debug_level = level; in vxge_hw_device_debug_set()
1861 hldev->level_err = level & VXGE_ERR; in vxge_hw_device_debug_set()
1865 hldev->level_trace = level & VXGE_TRACE; in vxge_hw_device_debug_set()
1873 u32 vxge_hw_device_error_level_get(struct __vxge_hw_device *hldev) in vxge_hw_device_error_level_get() argument
1876 if (hldev == NULL) in vxge_hw_device_error_level_get()
1879 return hldev->level_err; in vxge_hw_device_error_level_get()
1889 u32 vxge_hw_device_trace_level_get(struct __vxge_hw_device *hldev) in vxge_hw_device_trace_level_get() argument
1892 if (hldev == NULL) in vxge_hw_device_trace_level_get()
1895 return hldev->level_trace; in vxge_hw_device_trace_level_get()
1905 enum vxge_hw_status vxge_hw_device_getpause_data(struct __vxge_hw_device *hldev, in vxge_hw_device_getpause_data() argument
1911 if ((hldev == NULL) || (hldev->magic != VXGE_HW_DEVICE_MAGIC)) { in vxge_hw_device_getpause_data()
1921 if (!(hldev->access_rights & VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)) { in vxge_hw_device_getpause_data()
1926 val64 = readq(&hldev->mrpcim_reg->rxmac_pause_cfg_port[port]); in vxge_hw_device_getpause_data()
1940 enum vxge_hw_status vxge_hw_device_setpause_data(struct __vxge_hw_device *hldev, in vxge_hw_device_setpause_data() argument
1946 if ((hldev == NULL) || (hldev->magic != VXGE_HW_DEVICE_MAGIC)) { in vxge_hw_device_setpause_data()
1956 status = __vxge_hw_device_is_privilaged(hldev->host_type, in vxge_hw_device_setpause_data()
1957 hldev->func_id); in vxge_hw_device_setpause_data()
1961 val64 = readq(&hldev->mrpcim_reg->rxmac_pause_cfg_port[port]); in vxge_hw_device_setpause_data()
1971 writeq(val64, &hldev->mrpcim_reg->rxmac_pause_cfg_port[port]); in vxge_hw_device_setpause_data()
1976 u16 vxge_hw_device_link_width_get(struct __vxge_hw_device *hldev) in vxge_hw_device_link_width_get() argument
1978 struct pci_dev *dev = hldev->pdev; in vxge_hw_device_link_width_get()
2189 struct __vxge_hw_device *hldev; in __vxge_hw_channel_allocate() local
2193 hldev = vph->vpath->hldev; in __vxge_hw_channel_allocate()
2212 channel->common_reg = hldev->common_reg; in __vxge_hw_channel_allocate()
2213 channel->first_vp_id = hldev->first_vp_id; in __vxge_hw_channel_allocate()
2215 channel->devh = hldev; in __vxge_hw_channel_allocate()
2331 (blockpool->hldev)->pdev, in __vxge_hw_blockpool_blocks_add()
2332 blockpool->hldev, VXGE_HW_BLOCK_SIZE); in __vxge_hw_blockpool_blocks_add()
2408 dma_unmap_single(&(blockpool->hldev)->pdev->dev, in __vxge_hw_blockpool_blocks_remove()
2414 (blockpool->hldev)->pdev, in __vxge_hw_blockpool_blocks_remove()
2794 struct __vxge_hw_device *hldev; in __vxge_hw_ring_create() local
2805 hldev = vp->vpath->hldev; in __vxge_hw_ring_create()
2808 config = &hldev->config.vp_config[vp_id].ring; in __vxge_hw_ring_create()
2826 ring->common_reg = hldev->common_reg; in __vxge_hw_ring_create()
2853 ring->mempool = __vxge_hw_mempool_create(hldev, in __vxge_hw_ring_create()
3101 vxge_hw_mgmt_reg_read(struct __vxge_hw_device *hldev, in vxge_hw_mgmt_reg_read() argument
3107 if ((hldev == NULL) || (hldev->magic != VXGE_HW_DEVICE_MAGIC)) { in vxge_hw_mgmt_reg_read()
3118 *value = readq((void __iomem *)hldev->legacy_reg + offset); in vxge_hw_mgmt_reg_read()
3125 *value = readq((void __iomem *)hldev->toc_reg + offset); in vxge_hw_mgmt_reg_read()
3132 *value = readq((void __iomem *)hldev->common_reg + offset); in vxge_hw_mgmt_reg_read()
3135 if (!(hldev->access_rights & in vxge_hw_mgmt_reg_read()
3144 *value = readq((void __iomem *)hldev->mrpcim_reg + offset); in vxge_hw_mgmt_reg_read()
3147 if (!(hldev->access_rights & in vxge_hw_mgmt_reg_read()
3160 *value = readq((void __iomem *)hldev->srpcim_reg[index] + in vxge_hw_mgmt_reg_read()
3165 (!(hldev->vpath_assignments & vxge_mBIT(index)))) { in vxge_hw_mgmt_reg_read()
3173 *value = readq((void __iomem *)hldev->vpmgmt_reg[index] + in vxge_hw_mgmt_reg_read()
3178 (!(hldev->vpath_assignments & vxge_mBIT(index)))) { in vxge_hw_mgmt_reg_read()
3190 *value = readq((void __iomem *)hldev->vpath_reg[index] + in vxge_hw_mgmt_reg_read()
3206 vxge_hw_vpath_strip_fcs_check(struct __vxge_hw_device *hldev, u64 vpath_mask) in vxge_hw_vpath_strip_fcs_check() argument
3214 vpmgmt_reg = hldev->vpmgmt_reg[i]; in vxge_hw_vpath_strip_fcs_check()
3227 vxge_hw_mgmt_reg_write(struct __vxge_hw_device *hldev, in vxge_hw_mgmt_reg_write() argument
3233 if ((hldev == NULL) || (hldev->magic != VXGE_HW_DEVICE_MAGIC)) { in vxge_hw_mgmt_reg_write()
3244 writeq(value, (void __iomem *)hldev->legacy_reg + offset); in vxge_hw_mgmt_reg_write()
3251 writeq(value, (void __iomem *)hldev->toc_reg + offset); in vxge_hw_mgmt_reg_write()
3258 writeq(value, (void __iomem *)hldev->common_reg + offset); in vxge_hw_mgmt_reg_write()
3261 if (!(hldev->access_rights & in vxge_hw_mgmt_reg_write()
3270 writeq(value, (void __iomem *)hldev->mrpcim_reg + offset); in vxge_hw_mgmt_reg_write()
3273 if (!(hldev->access_rights & in vxge_hw_mgmt_reg_write()
3286 writeq(value, (void __iomem *)hldev->srpcim_reg[index] + in vxge_hw_mgmt_reg_write()
3292 (!(hldev->vpath_assignments & vxge_mBIT(index)))) { in vxge_hw_mgmt_reg_write()
3300 writeq(value, (void __iomem *)hldev->vpmgmt_reg[index] + in vxge_hw_mgmt_reg_write()
3305 (!(hldev->vpath_assignments & vxge_mBIT(index)))) { in vxge_hw_mgmt_reg_write()
3313 writeq(value, (void __iomem *)hldev->vpath_reg[index] + in vxge_hw_mgmt_reg_write()
3449 config = &vpath->hldev->config.vp_config[vpath->vp_id].fifo; in __vxge_hw_fifo_create()
3527 __vxge_hw_mempool_create(vpath->hldev, in __vxge_hw_fifo_create()
3603 vxge_hw_device_flick_link_led(struct __vxge_hw_device *hldev, u64 on_off) in vxge_hw_device_flick_link_led() argument
3609 if (hldev == NULL) { in vxge_hw_device_flick_link_led()
3614 vpath = &hldev->virtual_paths[hldev->first_vp_id]; in vxge_hw_device_flick_link_led()
3815 if (vp->vpath->hldev->config.rth_it_type in vxge_hw_vpath_rts_rth_itable_set()
3957 struct __vxge_hw_device *hldev, in __vxge_hw_vpath_mgmt_read() argument
3987 VXGE_HW_DEVICE_LINK_STATE_SET(vpath->hldev, VXGE_HW_LINK_UP); in __vxge_hw_vpath_mgmt_read()
3989 VXGE_HW_DEVICE_LINK_STATE_SET(vpath->hldev, VXGE_HW_LINK_DOWN); in __vxge_hw_vpath_mgmt_read()
4005 &vpath->hldev->common_reg->vpath_rst_in_prog, in __vxge_hw_vpath_reset_check()
4008 vpath->hldev->config.device_poll_millis); in __vxge_hw_vpath_reset_check()
4018 __vxge_hw_vpath_reset(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vpath_reset() argument
4025 &hldev->common_reg->cmn_rsthdlr_cfg0); in __vxge_hw_vpath_reset()
4035 __vxge_hw_vpath_sw_reset(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vpath_sw_reset() argument
4040 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vpath_sw_reset()
4060 __vxge_hw_vpath_prc_configure(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vpath_prc_configure() argument
4067 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vpath_prc_configure()
4118 if (hldev->config.rth_en == VXGE_HW_RTH_DISABLE) in __vxge_hw_vpath_prc_configure()
4132 __vxge_hw_vpath_kdfc_configure(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vpath_kdfc_configure() argument
4140 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vpath_kdfc_configure()
4142 status = __vxge_hw_kdfc_swapper_set(hldev->legacy_reg, vp_reg); in __vxge_hw_vpath_kdfc_configure()
4189 vpath_stride = readq(&hldev->toc_reg->toc_kdfc_vpath_stride); in __vxge_hw_vpath_kdfc_configure()
4193 (hldev->kdfc + (vp_id * in __vxge_hw_vpath_kdfc_configure()
4205 __vxge_hw_vpath_mac_configure(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vpath_mac_configure() argument
4212 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vpath_mac_configure()
4254 if (hldev->config.rth_it_type == in __vxge_hw_vpath_mac_configure()
4272 __vxge_hw_vpath_tim_configure(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vpath_tim_configure() argument
4279 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vpath_tim_configure()
4533 __vxge_hw_vpath_initialize(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vpath_initialize() argument
4541 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vpath_initialize()
4543 if (!(hldev->vpath_assignments & vxge_mBIT(vp_id))) { in __vxge_hw_vpath_initialize()
4553 status = __vxge_hw_vpath_mac_configure(hldev, vp_id); in __vxge_hw_vpath_initialize()
4557 status = __vxge_hw_vpath_kdfc_configure(hldev, vp_id); in __vxge_hw_vpath_initialize()
4561 status = __vxge_hw_vpath_tim_configure(hldev, vp_id); in __vxge_hw_vpath_initialize()
4595 static void __vxge_hw_vp_terminate(struct __vxge_hw_device *hldev, u32 vp_id) in __vxge_hw_vp_terminate() argument
4599 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vp_terminate()
4604 VXGE_HW_DEVICE_TIM_INT_MASK_RESET(vpath->hldev->tim_int_mask0, in __vxge_hw_vp_terminate()
4605 vpath->hldev->tim_int_mask1, vpath->vp_id); in __vxge_hw_vp_terminate()
4606 hldev->stats.hw_dev_info_stats.vpath_info[vpath->vp_id] = NULL; in __vxge_hw_vp_terminate()
4639 __vxge_hw_vp_initialize(struct __vxge_hw_device *hldev, u32 vp_id, in __vxge_hw_vp_initialize() argument
4645 if (!(hldev->vpath_assignments & vxge_mBIT(vp_id))) { in __vxge_hw_vp_initialize()
4650 vpath = &hldev->virtual_paths[vp_id]; in __vxge_hw_vp_initialize()
4655 vpath->hldev = hldev; in __vxge_hw_vp_initialize()
4657 vpath->vp_reg = hldev->vpath_reg[vp_id]; in __vxge_hw_vp_initialize()
4658 vpath->vpmgmt_reg = hldev->vpmgmt_reg[vp_id]; in __vxge_hw_vp_initialize()
4660 __vxge_hw_vpath_reset(hldev, vp_id); in __vxge_hw_vp_initialize()
4668 status = __vxge_hw_vpath_mgmt_read(hldev, vpath); in __vxge_hw_vp_initialize()
4676 vpath->sw_stats = &hldev->stats.sw_dev_info_stats.vpath_info[vp_id]; in __vxge_hw_vp_initialize()
4678 VXGE_HW_DEVICE_TIM_INT_MASK_SET(hldev->tim_int_mask0, in __vxge_hw_vp_initialize()
4679 hldev->tim_int_mask1, vp_id); in __vxge_hw_vp_initialize()
4681 status = __vxge_hw_vpath_initialize(hldev, vp_id); in __vxge_hw_vp_initialize()
4683 __vxge_hw_vp_terminate(hldev, vp_id); in __vxge_hw_vp_initialize()
4789 vxge_hw_vpath_open(struct __vxge_hw_device *hldev, in vxge_hw_vpath_open() argument
4797 vpath = &hldev->virtual_paths[attr->vp_id]; in vxge_hw_vpath_open()
4804 status = __vxge_hw_vp_initialize(hldev, attr->vp_id, in vxge_hw_vpath_open()
4805 &hldev->config.vp_config[attr->vp_id]); in vxge_hw_vpath_open()
4828 __vxge_hw_vpath_prc_configure(hldev, attr->vp_id); in vxge_hw_vpath_open()
4835 vpath->stats_block = __vxge_hw_blockpool_block_allocate(hldev, in vxge_hw_vpath_open()
4846 hldev->stats.hw_dev_info_stats.vpath_info[attr->vp_id] = in vxge_hw_vpath_open()
4850 &hldev->stats.hw_dev_info_stats.vpath_info_sav[attr->vp_id]; in vxge_hw_vpath_open()
4862 hldev->vpaths_deployed |= vxge_mBIT(vpath->vp_id); in vxge_hw_vpath_open()
4880 __vxge_hw_vp_terminate(hldev, attr->vp_id); in vxge_hw_vpath_open()
4898 struct vxgedev *vdev = netdev_priv(vpath->hldev->ndev); in vxge_hw_vpath_rx_doorbell_init()
4966 devh = vpath->hldev; in vxge_hw_vpath_close()
5021 status = __vxge_hw_vpath_reset(vpath->hldev, vp_id); in vxge_hw_vpath_reset()
5038 struct __vxge_hw_device *hldev; in vxge_hw_vpath_recover_from_reset() local
5043 hldev = vpath->hldev; in vxge_hw_vpath_recover_from_reset()
5054 status = __vxge_hw_vpath_sw_reset(hldev, vp_id); in vxge_hw_vpath_recover_from_reset()
5058 status = __vxge_hw_vpath_initialize(hldev, vp_id); in vxge_hw_vpath_recover_from_reset()
5063 __vxge_hw_vpath_prc_configure(hldev, vp_id); in vxge_hw_vpath_recover_from_reset()
5088 struct __vxge_hw_device *hldev; in vxge_hw_vpath_enable() local
5091 hldev = vp->vpath->hldev; in vxge_hw_vpath_enable()
5097 &hldev->common_reg->cmn_rsthdlr_cfg1); in vxge_hw_vpath_enable()