/freebsd-11-stable/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_os.c | 506 ha = (qlnx_host_t *)p_hwfn->p_dev; 5121 ha = (qlnx_host_t *)p_hwfn->p_dev; 5504 data32 = bus_read_4(((qlnx_host_t *)p_hwfn->p_dev)->pci_reg, \ 5515 bus_write_4(((qlnx_host_t *)p_hwfn->p_dev)->pci_reg, \ 5526 bus_write_2(((qlnx_host_t *)p_hwfn->p_dev)->pci_reg, \ 5540 cdev = p_hwfn->p_dev; 5553 bus_write_4(((qlnx_host_t *)p_hwfn->p_dev)->pci_dbells, \ 5566 cdev = ((struct ecore_hwfn *)p_hwfn)->p_dev; 5580 cdev = ((struct ecore_hwfn *)p_hwfn)->p_dev; 5594 cdev = ((struct ecore_hwfn *)p_hwfn)->p_dev; [all...] |
H A D | ecore_vf.c | 128 rc = OSAL_VF_SEND_MSG2PF(p_hwfn->p_dev, 164 OSAL_WMB(p_hwfn->p_dev); 242 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, 247 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, 254 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, 264 OSAL_FREE(p_hwfn->p_dev, p_hwfn->vf_iov_info); 471 p_hwfn->p_dev->type = resp->pfdev_info.dev_type; 472 p_hwfn->p_dev->chip_rev = (u8) resp->pfdev_info.chip_rev; 475 ECORE_IS_BB(p_hwfn->p_dev) ? "BB" : "AH", 476 CHIP_REV_IS_A0(p_hwfn->p_dev) [all...] |
H A D | ecore_sriov.h | 279 * @param p_dev 281 void ecore_iov_free_hw_info(struct ecore_dev *p_dev); 327 static OSAL_INLINE void ecore_iov_free_hw_info(struct ecore_dev OSAL_UNUSED *p_dev) {} argument
|
H A D | ecore_sriov.c | 200 DP_NOTICE(p_hwfn->p_dev, true, "No iov info\n"); 204 if ((rel_vf_id >= p_hwfn->p_dev->p_iov_info->total_vfs) || 226 DP_NOTICE(p_hwfn->p_dev, true, "No iov info\n"); 401 static enum _ecore_status_t ecore_iov_pci_cfg_info(struct ecore_dev *p_dev) argument 403 struct ecore_hw_sriov_info *iov = p_dev->p_iov_info; 406 DP_VERBOSE(p_dev, ECORE_MSG_IOV, "sriov ext pos %d\n", pos); 407 OSAL_PCI_READ_CONFIG_WORD(p_dev, 411 OSAL_PCI_READ_CONFIG_WORD(p_dev, 414 OSAL_PCI_READ_CONFIG_WORD(p_dev, 418 OSAL_PCI_READ_CONFIG_WORD(p_dev, 651 ecore_iov_free_hw_info(struct ecore_dev *p_dev) argument 659 struct ecore_dev *p_dev = p_hwfn->p_dev; local 753 ecore_iov_set_vf_to_disable(struct ecore_dev *p_dev, u16 rel_vf_id, u8 to_disable) argument 771 ecore_iov_set_vfs_to_disable(struct ecore_dev *p_dev, u8 to_disable) argument 4790 ecore_iov_configure_min_tx_rate(struct ecore_dev *p_dev, int vfid, u32 rate) argument [all...] |
H A D | ecore_spq.c | 137 OSAL_SMP_WMB(p_hwfn->p_dev); 152 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev) && sleep_between_iter) 158 OSAL_SMP_RMB(p_hwfn->p_dev); 291 if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev)) { 341 OSAL_WMB(p_hwfn->p_dev); 346 OSAL_WMB(p_hwfn->p_dev); 418 OSAL_MMIOWB(p_hwfn->p_dev); 496 p_eq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_eq)); 504 if (ecore_chain_alloc(p_hwfn->p_dev, [all...] |
H A D | ecore_sp_commands.c | 219 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; 265 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { 287 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; 289 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { 365 if (OSAL_TEST_BIT(ECORE_MF_OVLAN_CLSS, &p_hwfn->p_dev->mf_bits)) 372 if (OSAL_TEST_BIT(ECORE_MF_8021Q_TAGGING, &p_hwfn->p_dev->mf_bits)) 375 &p_hwfn->p_dev->mf_bits)) { 387 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits)) { 407 &p_hwfn->p_dev->mf_bits)) 431 if (p_hwfn->p_dev [all...] |
H A D | ecore_mng_tlv.c | 1252 p_tlv_data = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_tlv_data)); 1257 OSAL_VFREE(p_hwfn->p_dev, p_tlv_data); 1294 OSAL_VFREE(p_hwfn->p_dev, p_tlv_data); 1322 p_mfw_buf = (void *)OSAL_VZALLOC(p_hwfn->p_dev, size); 1395 OSAL_VFREE(p_hwfn->p_dev, p_mfw_buf);
|
H A D | ecore_mcp_api.h | 651 * @param p_dev - ecore dev pointer 666 * @param p_dev - ecore dev pointer 681 * @param p_dev - ecore dev pointer 697 * @param p_dev - ecore dev pointer 818 * @param p_dev 823 enum _ecore_status_t ecore_recovery_prolog(struct ecore_dev *p_dev); 922 * @param p_dev 927 enum _ecore_status_t ecore_mcp_nvm_set_secure_mode(struct ecore_dev *p_dev, 933 * @param p_dev 941 enum _ecore_status_t ecore_mcp_phy_write(struct ecore_dev *p_dev, u3 [all...] |
H A D | ecore_mcp.h | 47 #define MCP_PF_ID_BY_REL(p_hwfn, rel_pfid) (ECORE_IS_BB((p_hwfn)->p_dev) ? \
|
H A D | ecore_mcp.c | 118 if (CHIP_REV_IS_TEDIBEAR(p_hwfn->p_dev)) 150 p_cmd_elem = OSAL_ZALLOC(p_hwfn->p_dev, GFP_ATOMIC, 170 OSAL_FREE(p_hwfn->p_dev, p_cmd_elem); 193 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_cur); 194 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_shadow); 210 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); 230 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) { 303 p_hwfn->mcp_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, 314 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); 319 OSAL_FREE(p_hwfn->p_dev, p_hwf 1697 struct ecore_dev *p_dev = p_hwfn->p_dev; local 2847 struct ecore_dev *p_dev = p_hwfn->p_dev; local 2863 ecore_recovery_prolog(struct ecore_dev *p_dev) argument 3340 ecore_mcp_nvm_read(struct ecore_dev *p_dev, u32 addr, u8 *p_buf, u32 len) argument 3396 ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd, u32 addr, u8 *p_buf, u32 len) argument 3422 ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf) argument 3437 ecore_mcp_nvm_del_file(struct ecore_dev *p_dev, u32 addr) argument 3456 ecore_mcp_nvm_put_file_begin(struct ecore_dev *p_dev, u32 addr) argument 3478 ecore_mcp_nvm_write(struct ecore_dev *p_dev, u32 cmd, u32 addr, u8 *p_buf, u32 len) argument 3554 ecore_mcp_phy_write(struct ecore_dev *p_dev, u32 cmd, u32 addr, u8 *p_buf, u32 len) argument 3578 ecore_mcp_nvm_set_secure_mode(struct ecore_dev *p_dev, u32 addr) argument 4681 struct ecore_dev *p_dev = p_hwfn->p_dev; local 4722 struct ecore_dev *p_dev = p_hwfn->p_dev; local [all...] |
H A D | ecore_l2_api.h | 214 ecore_filter_ucast_cmd(struct ecore_dev *p_dev, 221 ecore_filter_mcast_cmd(struct ecore_dev *p_dev, 229 struct ecore_dev *p_dev, 491 void ecore_get_vport_stats(struct ecore_dev *p_dev, 494 void ecore_reset_vport_stats(struct ecore_dev *p_dev);
|
H A D | ecore_l2.c | 81 p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info)); 86 if (IS_PF(p_hwfn->p_dev)) { 97 pp_qids = OSAL_VZALLOC(p_hwfn->p_dev, 105 pp_qids[i] = OSAL_VZALLOC(p_hwfn->p_dev, 144 OSAL_VFREE(p_hwfn->p_dev, 155 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info->pp_qid_usage); 159 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info); 217 if (IS_PF(p_hwfn->p_dev) && !b_legacy_vf) 224 OSAL_VFREE(p_hwfn->p_dev, p_cid); 240 p_cid = OSAL_VZALLOC(p_hwfn->p_dev, sizeo 875 ecore_filter_accept_cmd(struct ecore_dev *p_dev, u8 vport, struct ecore_filter_accept_flags accept_flags, u8 update_accept_any_vlan, u8 accept_any_vlan, enum spq_mode comp_mode, struct ecore_spq_comp_cb *p_comp_data) argument 1689 ecore_filter_mcast_cmd(struct ecore_dev *p_dev, struct ecore_filter_mcast *p_filter_cmd, enum spq_mode comp_mode, struct ecore_spq_comp_cb *p_comp_data) argument 1723 ecore_filter_ucast_cmd(struct ecore_dev *p_dev, struct ecore_filter_ucast *p_filter_cmd, enum spq_mode comp_mode, struct ecore_spq_comp_cb *p_comp_data) argument 2037 _ecore_get_vport_stats(struct ecore_dev *p_dev, struct ecore_eth_stats *stats) argument 2074 ecore_get_vport_stats(struct ecore_dev *p_dev, struct ecore_eth_stats *stats) argument 2095 ecore_reset_vport_stats(struct ecore_dev *p_dev) argument [all...] |
H A D | ecore_iov_api.h | 41 #define IS_VF(p_dev) ((p_dev)->b_is_vf) 42 #define IS_PF(p_dev) (!((p_dev)->b_is_vf)) 44 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info)) 187 * @param p_dev 190 void ecore_iov_set_vfs_to_disable(struct ecore_dev *p_dev, 197 * @param p_dev 201 void ecore_iov_set_vf_to_disable(struct ecore_dev *p_dev, 706 * @param p_dev 764 ecore_iov_set_vfs_to_disable(struct ecore_dev OSAL_UNUSED *p_dev, u8 OSAL_UNUSED to_disable) argument 765 ecore_iov_set_vf_to_disable(struct ecore_dev OSAL_UNUSED *p_dev, u16 OSAL_UNUSED rel_vf_id, u8 OSAL_UNUSED to_disable) argument 818 ecore_iov_configure_min_tx_rate(struct ecore_dev OSAL_UNUSED *p_dev, int OSAL_UNUSED vfid, OSAL_UNUSED u32 rate) argument [all...] |
H A D | ecore_int_api.h | 65 struct ecore_dev *p_dev; member in struct:ecore_sb_info 100 OSAL_MMIOWB(sb_info->p_dev); 127 if (sb_info->p_dev->int_mode == ECORE_INT_MODE_POLL) 148 OSAL_MMIOWB(sb_info->p_dev); 149 OSAL_BARRIER(sb_info->p_dev); 320 * @param p_dev 323 void ecore_int_disable_post_isr_release(struct ecore_dev *p_dev); 330 * @param p_dev 334 void ecore_int_attn_clr_enable(struct ecore_dev *p_dev, bool clr_enable);
|
H A D | ecore_int.c | 138 DP_INFO(p_hwfn->p_dev, "MCP_REG_CPU_STATE: %08x - Masking...\n", 182 DP_INFO(p_hwfn->p_dev, "PF[0x%02x] VF [0x%02x] [Valid 0x%02x] Client [0x%02x] Write [0x%02x] Addr [0x%08x]\n", 208 DP_INFO(p_hwfn->p_dev, "Incorrect access to %08x of length %08x - PF [%02x] VF [%04x] [valid %02x] client [%02x] write [%02x] Byte-Enable [%04x] [%08x]\n", 278 DP_NOTICE(p_hwfn->p_dev, false, 460 DP_NOTICE(p_hwfn->p_dev, false, 486 DP_NOTICE(p_hwfn->p_dev, false, "DORQ attention. int_sts was %x\n", 515 DP_NOTICE(p_hwfn->p_dev, false, 559 if (CHIP_REV_IS_EMUL_B0(p_hwfn->p_dev)) { 764 if (!ECORE_IS_BB(p_hwfn->p_dev)) 809 OSAL_MMIOWB(p_hwfn->p_dev); 1410 struct ecore_dev *p_dev = p_hwfn->p_dev; local 1446 struct ecore_dev *p_dev = p_hwfn->p_dev; local 2622 ecore_int_disable_post_isr_release(struct ecore_dev *p_dev) argument 2630 ecore_int_attn_clr_enable(struct ecore_dev *p_dev, bool clr_enable) argument [all...] |
H A D | ecore_init_ops.c | 60 void ecore_init_iro_array(struct ecore_dev *p_dev) argument 62 p_dev->iro_arr = iro_arr; 160 if (IS_VF(p_hwfn->p_dev)) 163 rt_data->b_valid = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, 168 rt_data->init_val = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, 171 OSAL_FREE(p_hwfn->p_dev, rt_data->b_valid); 181 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.init_val); 183 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.b_valid); 197 if ((CHIP_REV_IS_SLOW(p_hwfn->p_dev) && (size < 16)) || 257 struct ecore_dev *p_dev local 467 struct ecore_dev *p_dev = p_hwfn->p_dev; local 522 struct ecore_dev *p_dev = p_hwfn->p_dev; local 632 ecore_init_fw_data(struct ecore_dev *p_dev, const u8 *fw_data) argument [all...] |
H A D | ecore_init_fw_funcs.c | 190 return NUM_OF_PHYS_TCS * (ECORE_IS_E5(p_hwfn->p_dev) ? MAX_NUM_PORTS_E5 : MAX_NUM_PORTS_BB) + port_id; 192 return port_id * (ECORE_IS_E5(p_hwfn->p_dev) ? NUM_OF_PHYS_TCS : max_phys_tcs_per_port) + tc; 201 u8 num_ext_voqs = ECORE_IS_E5(p_hwfn->p_dev) ? QM_E5_NUM_EXT_VOQ : MAX_NUM_VOQS_E4; 283 u8 num_ext_voqs = ECORE_IS_E5(p_hwfn->p_dev) ? QM_E5_NUM_EXT_VOQ : MAX_NUM_VOQS_E4; 300 if (ECORE_IS_E5(p_hwfn->p_dev)) 439 u32 map_val = (ext_voq << QM_WFQ_VP_PQ_VOQ_SHIFT) | (pf_id << (ECORE_IS_E5(p_hwfn->p_dev) ? QM_WFQ_VP_PQ_PF_E5_SHIFT : QM_WFQ_VP_PQ_PF_E4_SHIFT)); 454 if (ECORE_IS_E5(p_hwfn->p_dev)) { 556 crd_reg_offset = ECORE_IS_E5(p_hwfn->p_dev) ? 1202 total_blocks = ECORE_IS_K2(p_hwfn->p_dev) ? BRB_TOTAL_RAM_BLOCKS_K2 : BRB_TOTAL_RAM_BLOCKS_BB; 1404 if (ECORE_IS_BB_B0(p_hwfn->p_dev)) [all...] |
H A D | ecore_hw.h | 264 enum _ecore_status_t ecore_init_fw_data(struct ecore_dev *p_dev,
|
H A D | ecore_hw.c | 75 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_ptt_pool); 81 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, 261 if (!p_hwfn->p_dev->chk_reg_fifo) 269 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) 292 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) 316 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) 342 if (IS_PF(p_hwfn->p_dev)) { 716 *p_comp = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, sizeof(u32)); 724 *p_cmd = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, 733 *p_buff = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_add [all...] |
H A D | ecore_dev_api.h | 50 * @param p_dev 55 void ecore_init_dp(struct ecore_dev *p_dev, 64 * @param p_dev 66 enum _ecore_status_t ecore_init_struct(struct ecore_dev *p_dev); 71 * @param p_dev 73 void ecore_resc_free(struct ecore_dev *p_dev); 78 * @param p_dev 82 enum _ecore_status_t ecore_resc_alloc(struct ecore_dev *p_dev); 87 * @param p_dev 89 void ecore_resc_setup(struct ecore_dev *p_dev); [all...] |
H A D | ecore_dev.c | 85 void ecore_set_ilt_page_size(struct ecore_dev *p_dev, u8 ilt_page_size) argument 87 p_dev->ilt_page_size = ilt_page_size; 120 static bool ecore_db_rec_sanity(struct ecore_dev *p_dev, void OSAL_IOMEM *db_addr, argument 124 if (db_addr < p_dev->doorbells || (u8 *)db_addr > 125 (u8 *)p_dev->doorbells + p_dev->db_size) { 128 db_addr, p_dev->doorbells, 129 (u8 *)p_dev->doorbells + p_dev->db_size); 143 static struct ecore_hwfn *ecore_db_rec_find_hwfn(struct ecore_dev *p_dev, argument 159 ecore_db_recovery_add(struct ecore_dev *p_dev, void OSAL_IOMEM *db_addr, void *db_data, enum ecore_db_rec_width db_width, enum ecore_db_rec_space db_space) argument 208 ecore_db_recovery_del(struct ecore_dev *p_dev, void OSAL_IOMEM *db_addr, void *db_data) argument 446 ecore_llh_free(struct ecore_dev *p_dev) argument 464 ecore_llh_alloc(struct ecore_dev *p_dev) argument 501 ecore_llh_shadow_sanity(struct ecore_dev *p_dev, u8 ppfid, u8 filter_idx, const char *action) argument 527 ecore_llh_shadow_search_filter(struct ecore_dev *p_dev, u8 ppfid, union ecore_llh_filter *p_filter, u8 *p_filter_idx) argument 555 ecore_llh_shadow_get_free_idx(struct ecore_dev *p_dev, u8 ppfid, u8 *p_filter_idx) argument 581 __ecore_llh_shadow_add_filter(struct ecore_dev *p_dev, u8 ppfid, u8 filter_idx, enum ecore_llh_filter_type type, union ecore_llh_filter *p_filter, u32 *p_ref_cnt) argument 607 ecore_llh_shadow_add_filter(struct ecore_dev *p_dev, u8 ppfid, enum ecore_llh_filter_type type, union ecore_llh_filter *p_filter, u8 *p_filter_idx, u32 *p_ref_cnt) argument 640 __ecore_llh_shadow_remove_filter(struct ecore_dev *p_dev, u8 ppfid, u8 filter_idx, u32 *p_ref_cnt) argument 667 ecore_llh_shadow_remove_filter(struct ecore_dev *p_dev, u8 ppfid, union ecore_llh_filter *p_filter, u8 *p_filter_idx, u32 *p_ref_cnt) argument 690 ecore_llh_shadow_remove_all_filters(struct ecore_dev *p_dev, u8 ppfid) argument 707 ecore_abs_ppfid(struct ecore_dev *p_dev, u8 rel_ppfid, u8 *p_abs_ppfid) argument 727 struct ecore_dev *p_dev = p_hwfn->p_dev; local 782 struct ecore_dev *p_dev = p_hwfn->p_dev; local 835 struct ecore_dev *p_dev = p_hwfn->p_dev; local 868 ecore_llh_get_num_ppfid(struct ecore_dev *p_dev) argument 873 ecore_llh_get_l2_affinity_hint(struct ecore_dev *p_dev) argument 884 ecore_llh_set_ppfid_affinity(struct ecore_dev *p_dev, u8 ppfid, enum ecore_eng eng) argument 934 ecore_llh_set_roce_affinity(struct ecore_dev *p_dev, enum ecore_eng eng) argument 1168 ecore_llh_add_mac_filter(struct ecore_dev *p_dev, u8 ppfid, u8 mac_addr[ETH_ALEN]) argument 1227 ecore_llh_protocol_filter_stringify(struct ecore_dev *p_dev, enum ecore_llh_prot_filter_type_t type, u16 source_port_or_eth_type, u16 dest_port, u8 *str, osal_size_t str_len) argument 1269 ecore_llh_protocol_filter_to_hilo(struct ecore_dev *p_dev, enum ecore_llh_prot_filter_type_t type, u16 source_port_or_eth_type, u16 dest_port, u32 *p_high, u32 *p_low) argument 1303 ecore_llh_add_protocol_filter(struct ecore_dev *p_dev, u8 ppfid, enum ecore_llh_prot_filter_type_t type, u16 source_port_or_eth_type, u16 dest_port) argument 1371 ecore_llh_remove_mac_filter(struct ecore_dev *p_dev, u8 ppfid, u8 mac_addr[ETH_ALEN]) argument 1423 ecore_llh_remove_protocol_filter(struct ecore_dev *p_dev, u8 ppfid, enum ecore_llh_prot_filter_type_t type, u16 source_port_or_eth_type, u16 dest_port) argument 1482 ecore_llh_clear_ppfid_filters(struct ecore_dev *p_dev, u8 ppfid) argument 1519 ecore_llh_clear_all_filters(struct ecore_dev *p_dev) argument 1535 struct ecore_dev *p_dev = p_hwfn->p_dev; local 1598 ecore_llh_dump_ppfid(struct ecore_dev *p_dev, u8 ppfid) argument 1617 ecore_llh_dump_all(struct ecore_dev *p_dev) argument 1672 ecore_init_dp(struct ecore_dev *p_dev, u32 dp_module, u8 dp_level, void *dp_ctx) argument 1691 ecore_init_struct(struct ecore_dev *p_dev) argument 1744 ecore_resc_free(struct ecore_dev *p_dev) argument 2414 ecore_resc_alloc(struct ecore_dev *p_dev) argument 2653 ecore_resc_setup(struct ecore_dev *p_dev) argument 2822 struct ecore_dev *p_dev = p_hwfn->p_dev; local 2877 ecore_init_cau_rt_data(struct ecore_dev *p_dev) argument 2967 struct ecore_dev *p_dev = p_hwfn->p_dev; local 3766 ecore_hw_init(struct ecore_dev *p_dev, struct ecore_hw_init_params *p_params) argument 4030 ecore_hw_timers_stop(struct ecore_dev *p_dev, struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt) argument 4063 ecore_hw_timers_stop_all(struct ecore_dev *p_dev) argument 4091 ecore_hw_stop(struct ecore_dev *p_dev) argument 4242 ecore_hw_stop_fastpath(struct ecore_dev *p_dev) argument 4310 ecore_set_nwuf_reg(struct ecore_dev *p_dev, u32 reg_idx, u32 pattern_size, u32 crc) argument 4438 struct ecore_dev *p_dev = p_hwfn->p_dev; local 4919 struct ecore_dev *p_dev = p_hwfn->p_dev; local 5384 struct ecore_dev *p_dev = p_hwfn->p_dev; local 5450 struct ecore_dev *p_dev = p_hwfn->p_dev; local 5480 struct ecore_dev *p_dev = p_hwfn->p_dev; local 5524 struct ecore_dev *p_dev = p_hwfn->p_dev; local 5697 ecore_get_dev_name(struct ecore_dev *p_dev, u8 *name, u8 max_chars) argument 5709 struct ecore_dev *p_dev = p_hwfn->p_dev; local 5799 ecore_hw_hibernate_prepare(struct ecore_dev *p_dev) argument 5817 ecore_hw_hibernate_resume(struct ecore_dev *p_dev) argument 5848 struct ecore_dev *p_dev = p_hwfn->p_dev; local 5987 ecore_hw_prepare(struct ecore_dev *p_dev, struct ecore_hw_prepare_params *p_params) argument 6058 ecore_hw_remove(struct ecore_dev *p_dev) argument 6087 ecore_chain_free_next_ptr(struct ecore_dev *p_dev, struct ecore_chain *p_chain) argument 6116 ecore_chain_free_single(struct ecore_dev *p_dev, struct ecore_chain *p_chain) argument 6126 ecore_chain_free_pbl(struct ecore_dev *p_dev, struct ecore_chain *p_chain) argument 6161 ecore_chain_free(struct ecore_dev *p_dev, struct ecore_chain *p_chain) argument 6178 ecore_chain_alloc_sanity_check(struct ecore_dev *p_dev, enum ecore_chain_cnt_type cnt_type, osal_size_t elem_size, u32 page_cnt) argument 6204 ecore_chain_alloc_next_ptr(struct ecore_dev *p_dev, struct ecore_chain *p_chain) argument 6240 ecore_chain_alloc_single(struct ecore_dev *p_dev, struct ecore_chain *p_chain) argument 6258 ecore_chain_alloc_pbl(struct ecore_dev *p_dev, struct ecore_chain *p_chain, struct ecore_chain_ext_pbl *ext_pbl) argument 6324 ecore_chain_alloc(struct ecore_dev *p_dev, enum ecore_chain_use_mode intended_use, enum ecore_chain_mode mode, enum ecore_chain_cnt_type cnt_type, u32 num_elems, osal_size_t elem_size, struct ecore_chain *p_chain, struct ecore_chain_ext_pbl *ext_pbl) argument 6787 ecore_configure_vport_wfq(struct ecore_dev *p_dev, u16 vp_id, u32 rate) argument 6820 ecore_configure_vp_wfq_on_link_change(struct ecore_dev *p_dev, struct ecore_ptt *p_ptt, u32 min_pf_rate) argument 6874 ecore_configure_pf_max_bandwidth(struct ecore_dev *p_dev, u8 max_bw) argument 6932 ecore_configure_pf_min_bandwidth(struct ecore_dev *p_dev, u8 min_bw) argument 6988 ecore_device_num_engines(struct ecore_dev *p_dev) argument 6993 ecore_device_num_ports(struct ecore_dev *p_dev) argument 7011 ecore_set_dev_access_enable(struct ecore_dev *p_dev, bool b_enable) argument [all...] |
H A D | ecore_dcbx.c | 233 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits)) 241 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits) && 388 &p_hwfn->p_dev->mf_bits) && !eth_tlv) 1075 p_hwfn->p_dcbx_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, 1091 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_dcbx_info); 1152 if (IS_VF(p_hwfn->p_dev)) 1456 dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, 1465 OSAL_FREE(p_hwfn->p_dev, dcbx_info); 1490 OSAL_FREE(p_hwfn->p_dev, dcbx_info); 1734 p_dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNE [all...] |
H A D | ecore_dbg_fw_funcs.c | 1878 if (ECORE_IS_E5(p_hwfn->p_dev)) { 1882 else if (ECORE_IS_K2(p_hwfn->p_dev)) { 1886 else if (ECORE_IS_BB_B0(p_hwfn->p_dev)) { 1898 if (CHIP_REV_IS_ASIC(p_hwfn->p_dev)) { 1902 else if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) { 1912 else if (CHIP_REV_IS_FPGA(p_hwfn->p_dev)) { 1977 (ECORE_IS_E5(p_hwfn->p_dev) ? 2650 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, pci_buf, pci_buf_phys_addr, dev_data->bus.pci_buf.size); 3894 ECORE_IS_E5(p_hwfn->p_dev) ? MCP_REG_SCRATCH_SIZE_E5 : MCP_REG_SCRATCH_SIZE_BB_K2, false, 0, false, "MCP", false, 0); 5030 pci_buf = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, [all...] |
H A D | ecore_cxt.c | 957 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, 962 OSAL_FREE(p_hwfn->p_dev, p_mngr->t2); 993 p_mngr->t2 = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, 1007 *p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, 1094 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, 1100 OSAL_FREE(p_hwfn->p_dev, p_mngr->ilt_shadow); 1134 p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, 1164 p_mngr->ilt_shadow = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, 1210 OSAL_FREE(p_hwfn->p_dev, p_mngr->acquired[type].cid_map); 1216 OSAL_FREE(p_hwfn->p_dev, [all...] |
H A D | ecore.h | 147 ((sizeof(type_name) + (u32)(1<<(p_hwfn->p_dev->cache_shift))-1) & \ 148 ~((1<<(p_hwfn->p_dev->cache_shift))-1)) 163 #define DP_ERR(p_dev, fmt, ...) \ 165 PRINT_ERR((p_dev)->dp_ctx, "[%s:%d(%s)]" fmt, \ 167 (p_dev)->name ? (p_dev)->name : "", \ 171 #define DP_NOTICE(p_dev, is_assert, fmt, ...) \ 173 if (OSAL_UNLIKELY((p_dev)->dp_level <= ECORE_LEVEL_NOTICE)) { \ 174 PRINT((p_dev)->dp_ctx, "[%s:%d(%s)]" fmt, \ 176 (p_dev) 649 struct ecore_dev *p_dev; member in struct:ecore_hwfn [all...] |