Home
last modified time | relevance | path

Searched refs:p_dev (Results 1 – 25 of 28) sorted by relevance

12

/dpdk/drivers/net/qede/base/
H A Decore_dev.c76 bool ecore_db_rec_sanity(struct ecore_dev *p_dev, void OSAL_IOMEM *db_addr, in ecore_db_rec_sanity() argument
80 if (db_addr < p_dev->doorbells || (u8 *)db_addr > in ecore_db_rec_sanity()
81 (u8 *)p_dev->doorbells + p_dev->db_size) { in ecore_db_rec_sanity()
84 db_addr, p_dev->doorbells, in ecore_db_rec_sanity()
85 (u8 *)p_dev->doorbells + p_dev->db_size); in ecore_db_rec_sanity()
99 struct ecore_hwfn *ecore_db_rec_find_hwfn(struct ecore_dev *p_dev, in ecore_db_rec_find_hwfn() argument
107 if (ECORE_IS_CMT(p_dev)) in ecore_db_rec_find_hwfn()
108 p_hwfn = db_addr < p_dev->hwfns[1].doorbells ? in ecore_db_rec_find_hwfn()
109 &p_dev->hwfns[0] : &p_dev->hwfns[1]; in ecore_db_rec_find_hwfn()
111 p_hwfn = ECORE_LEADING_HWFN(p_dev); in ecore_db_rec_find_hwfn()
[all …]
H A Decore_dev_api.h22 void ecore_init_dp(struct ecore_dev *p_dev,
33 enum _ecore_status_t ecore_init_struct(struct ecore_dev *p_dev);
40 void ecore_resc_free(struct ecore_dev *p_dev);
49 enum _ecore_status_t ecore_resc_alloc(struct ecore_dev *p_dev);
56 void ecore_resc_setup(struct ecore_dev *p_dev);
132 enum _ecore_status_t ecore_hw_init(struct ecore_dev *p_dev,
142 void ecore_hw_timers_stop_all(struct ecore_dev *p_dev);
151 enum _ecore_status_t ecore_hw_stop(struct ecore_dev *p_dev);
162 enum _ecore_status_t ecore_hw_stop_fastpath(struct ecore_dev *p_dev);
172 void ecore_prepare_hibernate(struct ecore_dev *p_dev);
[all …]
H A Decore_int.c88 DP_INFO(p_hwfn->p_dev, "MCP_REG_CPU_STATE: %08x - Masking...\n", tmp); in ecore_mcp_attn_cb()
132 DP_INFO(p_hwfn->p_dev, in ecore_pswhst_attn_cb()
163 DP_INFO(p_hwfn->p_dev, in ecore_pswhst_attn_cb()
258 DP_NOTICE(p_hwfn->p_dev, false, in ecore_grc_attn_cb()
461 DP_NOTICE(p_hwfn->p_dev, false, in ecore_db_rec_flush_queue()
510 DP_NOTICE(p_hwfn->p_dev, false, "DORQ attention. int_sts was %x\n", in ecore_dorq_attn_cb()
535 DP_NOTICE(p_hwfn->p_dev, false, in ecore_dorq_attn_cb()
580 if (CHIP_REV_IS_EMUL_B0(p_hwfn->p_dev)) { in ecore_tm_attn_cb()
820 if (!ECORE_IS_BB(p_hwfn->p_dev)) in ecore_int_aeu_translate()
865 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_attn_update_idx()
[all …]
H A Decore_init_ops.c24 void ecore_init_iro_array(struct ecore_dev *p_dev) in ecore_init_iro_array() argument
26 p_dev->iro_arr = iro_arr + E4_IRO_ARR_OFFSET; in ecore_init_iro_array()
119 if (IS_VF(p_hwfn->p_dev)) in ecore_init_alloc()
122 rt_data->b_valid = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_init_alloc()
127 rt_data->init_val = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_init_alloc()
130 OSAL_FREE(p_hwfn->p_dev, rt_data->b_valid); in ecore_init_alloc()
139 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.init_val); in ecore_init_free()
140 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.b_valid); in ecore_init_free()
155 if ((CHIP_REV_IS_SLOW(p_hwfn->p_dev) && (size < 16)) ||
214 struct ecore_dev *p_dev = p_hwfn->p_dev; local
[all …]
H A Dbcm_osal.c150 void *osal_dma_alloc_coherent(struct ecore_dev *p_dev, in osal_dma_alloc_coherent() argument
159 DP_ERR(p_dev, "Memzone allocation count exceeds %zu\n", in osal_dma_alloc_coherent()
174 DP_ERR(p_dev, "Unable to allocate DMA memory " in osal_dma_alloc_coherent()
182 DP_VERBOSE(p_dev, ECORE_MSG_SP, in osal_dma_alloc_coherent()
189 void *osal_dma_alloc_coherent_aligned(struct ecore_dev *p_dev, in osal_dma_alloc_coherent_aligned() argument
198 DP_ERR(p_dev, "Memzone allocation count exceeds %zu\n", in osal_dma_alloc_coherent_aligned()
213 DP_ERR(p_dev, "Unable to allocate DMA memory " in osal_dma_alloc_coherent_aligned()
221 DP_VERBOSE(p_dev, ECORE_MSG_SP, in osal_dma_alloc_coherent_aligned()
228 void osal_dma_free_mem(struct ecore_dev *p_dev, dma_addr_t phys) in osal_dma_free_mem() argument
234 DP_VERBOSE(p_dev, ECORE_MSG_SP, in osal_dma_free_mem()
[all …]
H A Decore_spq.c49 OSAL_SMP_WMB(p_hwfn->p_dev); in ecore_spq_blocking_cb()
64 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev) && sleep_between_iter) in __ecore_spq_block()
70 OSAL_SMP_RMB(p_hwfn->p_dev); in __ecore_spq_block()
273 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post()
278 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post()
357 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_eq_prod_update()
428 p_eq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_eq)); in ecore_eq_alloc()
436 if (ecore_chain_alloc(p_hwfn->p_dev, in ecore_eq_alloc()
455 OSAL_FREE(p_hwfn->p_dev, p_eq); in ecore_eq_alloc()
469 ecore_chain_free(p_hwfn->p_dev, &p_hwfn->p_eq->chain); in ecore_eq_free()
[all …]
H A Decore.h133 ((sizeof(type_name) + (u32)(1 << (p_hwfn->p_dev->cache_shift)) - 1) & \
134 ~((1 << (p_hwfn->p_dev->cache_shift)) - 1))
193 #define for_each_hwfn(p_dev, i) for (i = 0; i < p_dev->num_hwfns; i++) argument
586 struct ecore_dev *p_dev; member
592 (ECORE_IS_BB((_p_hwfn)->p_dev) ? ((_p_hwfn)->abs_pf_id & 1) : 0)
836 (((_p_hwfn)->p_dev)->mf_mode == ECORE_MF_DEFAULT)
838 (((_p_hwfn)->p_dev)->mf_mode == ECORE_MF_NPAR)
840 (((_p_hwfn)->p_dev)->mf_mode == ECORE_MF_OVLAN)
867 #define IRO ((const struct iro *)p_hwfn->p_dev->iro_arr)
894 #define IS_ECORE_SRIOV(p_dev) (!!(p_dev)->p_iov_info) argument
[all …]
H A Decore_l2.c47 p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info)); in ecore_l2_alloc()
52 if (IS_PF(p_hwfn->p_dev)) { in ecore_l2_alloc()
63 pp_qids = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc()
71 pp_qids[i] = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc()
110 OSAL_VFREE(p_hwfn->p_dev, in ecore_l2_free()
121 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info->pp_qid_usage); in ecore_l2_free()
125 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info); in ecore_l2_free()
183 if (IS_PF(p_hwfn->p_dev) && !b_legacy_vf) in ecore_eth_queue_cid_release()
190 OSAL_VFREE(p_hwfn->p_dev, p_cid); in ecore_eth_queue_cid_release()
206 p_cid = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_cid)); in _ecore_eth_queue_to_cid()
[all …]
H A Decore_mcp.c94 if (CHIP_REV_IS_TEDIBEAR(p_hwfn->p_dev)) in ecore_mcp_read_mb()
126 p_cmd_elem = OSAL_ZALLOC(p_hwfn->p_dev, GFP_ATOMIC, in ecore_mcp_cmd_add_elem()
146 OSAL_FREE(p_hwfn->p_dev, p_cmd_elem); in ecore_mcp_cmd_del_elem()
169 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_cur); in ecore_mcp_free()
170 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_shadow); in ecore_mcp_free()
186 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); in ecore_mcp_free()
211 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) in ecore_load_mcp_offsets()
280 p_hwfn->mcp_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_mcp_cmd_init()
291 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); in ecore_mcp_cmd_init()
296 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); in ecore_mcp_cmd_init()
[all …]
H A Decore_iov_api.h20 #define IS_VF(p_dev) ((p_dev)->b_is_vf) argument
21 #define IS_PF(p_dev) (!((p_dev)->b_is_vf)) argument
23 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info))
186 void ecore_iov_set_vfs_to_disable(struct ecore_dev *p_dev,
197 void ecore_iov_set_vf_to_disable(struct ecore_dev *p_dev,
717 enum _ecore_status_t ecore_iov_configure_min_tx_rate(struct ecore_dev *p_dev,
H A Decore_int_api.h44 struct ecore_dev *p_dev; member
79 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_update_sb_idx()
118 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_ack()
119 OSAL_BARRIER(sb_info->p_dev); in ecore_sb_ack()
310 void ecore_int_disable_post_isr_release(struct ecore_dev *p_dev);
321 void ecore_int_attn_clr_enable(struct ecore_dev *p_dev, bool clr_enable);
H A Decore_sriov.c211 DP_NOTICE(p_hwfn->p_dev, true, "No iov info\n"); in ecore_iov_is_valid_vfid()
215 if ((rel_vf_id >= p_hwfn->p_dev->p_iov_info->total_vfs) || in ecore_iov_is_valid_vfid()
237 DP_NOTICE(p_hwfn->p_dev, true, "No iov info\n"); in ecore_iov_get_vf_info()
414 static enum _ecore_status_t ecore_iov_pci_cfg_info(struct ecore_dev *p_dev) in ecore_iov_pci_cfg_info() argument
416 struct ecore_hw_sriov_info *iov = p_dev->p_iov_info; in ecore_iov_pci_cfg_info()
419 DP_VERBOSE(p_dev, ECORE_MSG_IOV, "sriov ext pos %d\n", pos); in ecore_iov_pci_cfg_info()
420 OSAL_PCI_READ_CONFIG_WORD(p_dev, pos + RTE_PCI_SRIOV_CTRL, &iov->ctrl); in ecore_iov_pci_cfg_info()
422 OSAL_PCI_READ_CONFIG_WORD(p_dev, pos + RTE_PCI_SRIOV_TOTAL_VF, in ecore_iov_pci_cfg_info()
424 OSAL_PCI_READ_CONFIG_WORD(p_dev, in ecore_iov_pci_cfg_info()
428 OSAL_PCI_READ_CONFIG_WORD(p_dev, pos + RTE_PCI_SRIOV_NUM_VF, in ecore_iov_pci_cfg_info()
[all …]
H A Decore_hw.c43 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_ptt_pool); in __ecore_ptt_pool_free()
49 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, in ecore_ptt_pool_alloc()
244 if (!p_hwfn->p_dev->chk_reg_fifo) in ecore_is_reg_fifo_empty()
252 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_is_reg_fifo_empty()
275 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_wr()
299 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_rd()
323 if (IS_PF(p_hwfn->p_dev)) { in ecore_memcpy_hw()
626 *p_comp = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, sizeof(u32)); in ecore_dmae_info_alloc()
634 *p_cmd = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, in ecore_dmae_info_alloc()
643 *p_buff = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, in ecore_dmae_info_alloc()
[all …]
H A Decore_sp_commands.c190 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_update_params()
236 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_set_hw_tunn_mode_port()
258 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_start_params()
260 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_tunn_set_pf_start_params()
338 if (OSAL_GET_BIT(ECORE_MF_OVLAN_CLSS, &p_hwfn->p_dev->mf_bits)) in ecore_sp_pf_start()
345 if (OSAL_GET_BIT(ECORE_MF_8021Q_TAGGING, &p_hwfn->p_dev->mf_bits)) { in ecore_sp_pf_start()
348 &p_hwfn->p_dev->mf_bits)) { in ecore_sp_pf_start()
360 if (OSAL_GET_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits)) { in ecore_sp_pf_start()
382 &p_hwfn->p_dev->mf_bits)) in ecore_sp_pf_start()
395 if (p_hwfn->p_dev->p_iov_info) { in ecore_sp_pf_start()
[all …]
H A Decore_vf.c114 OSAL_WMB(p_hwfn->p_dev); in ecore_send_msg2pf()
193 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release()
198 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release()
205 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release()
215 OSAL_FREE(p_hwfn->p_dev, p_hwfn->vf_iov_info); in _ecore_vf_pf_release()
289 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_vf_pf_acquire() local
472 p_dev->type = resp->pfdev_info.dev_type; in ecore_vf_pf_acquire()
473 p_dev->chip_rev = (u8)resp->pfdev_info.chip_rev; in ecore_vf_pf_acquire()
476 ECORE_IS_BB(p_dev) ? "BB" : "AH", in ecore_vf_pf_acquire()
477 CHIP_REV_IS_A0(p_hwfn->p_dev) ? 0 : 1); in ecore_vf_pf_acquire()
[all …]
H A Decore_l2_api.h168 ecore_filter_ucast_cmd(struct ecore_dev *p_dev,
175 ecore_filter_mcast_cmd(struct ecore_dev *p_dev,
183 struct ecore_dev *p_dev,
433 void ecore_get_vport_stats(struct ecore_dev *p_dev,
436 void ecore_reset_vport_stats(struct ecore_dev *p_dev);
H A Decore_cxt.c700 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_cxt_src_t2_free()
705 OSAL_FREE(p_hwfn->p_dev, p_t2->dma_mem); in ecore_cxt_src_t2_free()
724 *p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_cxt_t2_alloc_pages()
767 p_t2->dma_mem = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_cxt_src_t2_alloc()
854 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_ilt_shadow_free()
859 OSAL_FREE(p_hwfn->p_dev, p_mngr->ilt_shadow); in ecore_ilt_shadow_free()
899 p_virt = OSAL_DMA_ALLOC_COHERENT_ALIGNED(p_hwfn->p_dev, in ecore_ilt_blk_alloc()
932 p_mngr->ilt_shadow = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ilt_shadow_alloc()
974 u32 type, vf, max_num_vfs = NUM_OF_VFS(p_hwfn->p_dev); in ecore_cid_map_free()
978 OSAL_FREE(p_hwfn->p_dev, p_mngr->acquired[type].cid_map); in ecore_cid_map_free()
[all …]
H A Decore_mcp_api.h783 enum _ecore_status_t ecore_recovery_prolog(struct ecore_dev *p_dev);
887 enum _ecore_status_t ecore_mcp_nvm_set_secure_mode(struct ecore_dev *p_dev,
901 enum _ecore_status_t ecore_mcp_phy_write(struct ecore_dev *p_dev, u32 cmd,
915 enum _ecore_status_t ecore_mcp_nvm_write(struct ecore_dev *p_dev, u32 cmd,
926 enum _ecore_status_t ecore_mcp_nvm_put_file_begin(struct ecore_dev *p_dev,
937 enum _ecore_status_t ecore_mcp_nvm_del_file(struct ecore_dev *p_dev,
948 enum _ecore_status_t ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf);
961 enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd,
974 enum _ecore_status_t ecore_mcp_nvm_read(struct ecore_dev *p_dev, u32 addr,
H A Decore_init_ops.h18 void ecore_init_iro_array(struct ecore_dev *p_dev);
H A Decore_dcbx.c151 if (OSAL_GET_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits)) in ecore_dcbx_set_params()
159 if (OSAL_GET_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits) && in ecore_dcbx_set_params()
297 &p_hwfn->p_dev->mf_bits) && !eth_tlv) in ecore_dcbx_process_tlv()
928 p_hwfn->p_dcbx_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_info_alloc()
944 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_dcbx_info); in ecore_dcbx_info_free()
984 if (IS_VF(p_hwfn->p_dev)) in ecore_dcbx_query_params()
1287 dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_get_config_params()
1296 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params()
1321 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params()
1565 p_dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_get_dscp_priority()
[all …]
H A Decore_hw.h307 enum _ecore_status_t ecore_init_fw_data(struct ecore_dev *p_dev,
H A Decore_sriov.h257 void ecore_iov_free_hw_info(struct ecore_dev *p_dev);
H A Decore_mng_tlv.c1422 p_tlv_data = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_tlv_data)); in ecore_mfw_update_tlvs()
1427 OSAL_VFREE(p_hwfn->p_dev, p_tlv_data); in ecore_mfw_update_tlvs()
1468 OSAL_VFREE(p_hwfn->p_dev, p_tlv_data); in ecore_mfw_update_tlvs()
1495 p_mfw_buf = (void *)OSAL_VZALLOC(p_hwfn->p_dev, size); in ecore_mfw_process_tlv_req()
1537 OSAL_VFREE(p_hwfn->p_dev, p_mfw_buf); in ecore_mfw_process_tlv_req()
/dpdk/drivers/net/qede/
H A Dqede_sriov.c117 i, hwfn->p_dev->p_iov_info->first_vf_in_pf + i); in qed_handle_vf_msg()
197 struct ecore_hwfn *lead_hwfn = ECORE_LEADING_HWFN(hwfn->p_dev); in qed_inform_vf_link_state()
213 for (i = 0; i < hwfn->p_dev->p_iov_info->total_vfs; i++) { in qed_inform_vf_link_state()
H A Dqede_main.c112 p_hwfn->stream = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in qed_alloc_stream_mem()
131 OSAL_FREE(p_hwfn->p_dev, p_hwfn->stream); in qed_free_stream_mem()
521 if (IS_PF(hwfn->p_dev)) { in qed_fill_link()
646 struct ecore_dev *edev = hwfn->p_dev; in qed_link_update()

12