/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_dev.c | 83 void ecore_set_ilt_page_size(struct ecore_dev *p_dev, u8 ilt_page_size) in ecore_set_ilt_page_size() argument 85 p_dev->ilt_page_size = ilt_page_size; in ecore_set_ilt_page_size() 118 static bool ecore_db_rec_sanity(struct ecore_dev *p_dev, void OSAL_IOMEM *db_addr, in ecore_db_rec_sanity() argument 122 if (db_addr < p_dev->doorbells || (u8 *)db_addr > in ecore_db_rec_sanity() 123 (u8 *)p_dev->doorbells + p_dev->db_size) { in ecore_db_rec_sanity() 126 db_addr, p_dev->doorbells, in ecore_db_rec_sanity() 127 (u8 *)p_dev->doorbells + p_dev->db_size); in ecore_db_rec_sanity() 141 static struct ecore_hwfn *ecore_db_rec_find_hwfn(struct ecore_dev *p_dev, in ecore_db_rec_find_hwfn() argument 147 if (ECORE_IS_CMT(p_dev)) in ecore_db_rec_find_hwfn() 148 p_hwfn = db_addr < p_dev->hwfns[1].doorbells ? in ecore_db_rec_find_hwfn() [all …]
|
H A D | ecore_dev_api.h | 53 void ecore_init_dp(struct ecore_dev *p_dev, 64 enum _ecore_status_t ecore_init_struct(struct ecore_dev *p_dev); 71 void ecore_resc_free(struct ecore_dev *p_dev); 80 enum _ecore_status_t ecore_resc_alloc(struct ecore_dev *p_dev); 87 void ecore_resc_setup(struct ecore_dev *p_dev); 162 enum _ecore_status_t ecore_hw_init(struct ecore_dev *p_dev, 172 void ecore_hw_timers_stop_all(struct ecore_dev *p_dev); 181 enum _ecore_status_t ecore_hw_stop(struct ecore_dev *p_dev); 192 enum _ecore_status_t ecore_hw_stop_fastpath(struct ecore_dev *p_dev); 202 void ecore_hw_hibernate_prepare(struct ecore_dev *p_dev); [all …]
|
H A D | ecore.h | 146 ((sizeof(type_name) + (u32)(1<<(p_hwfn->p_dev->cache_shift))-1) & \ 147 ~((1<<(p_hwfn->p_dev->cache_shift))-1)) 162 #define DP_ERR(p_dev, fmt, ...) \ argument 164 PRINT_ERR((p_dev)->dp_ctx, "[%s:%d(%s)]" fmt, \ 166 (p_dev)->name ? (p_dev)->name : "", \ 170 #define DP_NOTICE(p_dev, is_assert, fmt, ...) \ argument 172 if (OSAL_UNLIKELY((p_dev)->dp_level <= ECORE_LEVEL_NOTICE)) { \ 173 PRINT((p_dev)->dp_ctx, "[%s:%d(%s)]" fmt, \ 175 (p_dev)->name ? (p_dev)->name : "", \ 181 #define DP_INFO(p_dev, fmt, ...) \ argument [all …]
|
H A D | ecore_int.c | 136 DP_INFO(p_hwfn->p_dev, "MCP_REG_CPU_STATE: %08x - Masking...\n", in ecore_mcp_attn_cb() 180 …DP_INFO(p_hwfn->p_dev, "PF[0x%02x] VF [0x%02x] [Valid 0x%02x] Client [0x%02x] Write [0x%02x] Addr … in ecore_pswhst_attn_cb() 206 …DP_INFO(p_hwfn->p_dev, "Incorrect access to %08x of length %08x - PF [%02x] VF [%04x] [valid %02x]… in ecore_pswhst_attn_cb() 276 DP_NOTICE(p_hwfn->p_dev, false, in ecore_grc_attn_cb() 458 DP_NOTICE(p_hwfn->p_dev, false, in ecore_db_rec_attn() 484 DP_NOTICE(p_hwfn->p_dev, false, "DORQ attention. int_sts was %x\n", in ecore_dorq_attn_cb() 512 DP_NOTICE(p_hwfn->p_dev, false, in ecore_dorq_attn_cb() 556 if (CHIP_REV_IS_EMUL_B0(p_hwfn->p_dev)) { in ecore_tm_attn_cb() 761 if (!ECORE_IS_BB(p_hwfn->p_dev)) in ecore_int_aeu_translate() 806 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_attn_update_idx() [all …]
|
H A D | ecore_init_ops.c | 58 void ecore_init_iro_array(struct ecore_dev *p_dev) in ecore_init_iro_array() argument 60 p_dev->iro_arr = iro_arr; in ecore_init_iro_array() 157 if (IS_VF(p_hwfn->p_dev)) in ecore_init_alloc() 160 rt_data->b_valid = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_init_alloc() 165 rt_data->init_val = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_init_alloc() 168 OSAL_FREE(p_hwfn->p_dev, rt_data->b_valid); in ecore_init_alloc() 178 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.init_val); in ecore_init_free() 180 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.b_valid); in ecore_init_free() 194 if ((CHIP_REV_IS_SLOW(p_hwfn->p_dev) && (size < 16)) || 253 struct ecore_dev *p_dev = p_hwfn->p_dev; local [all …]
|
H A D | ecore_spq.c | 134 OSAL_SMP_WMB(p_hwfn->p_dev); in ecore_spq_blocking_cb() 149 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev) && sleep_between_iter) in __ecore_spq_block() 155 OSAL_SMP_RMB(p_hwfn->p_dev); in __ecore_spq_block() 288 if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev)) { in ecore_spq_hw_initialize() 338 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post() 343 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post() 415 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_eq_prod_update() 493 p_eq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_eq)); in ecore_eq_alloc() 501 if (ecore_chain_alloc(p_hwfn->p_dev, in ecore_eq_alloc() 520 OSAL_FREE(p_hwfn->p_dev, p_eq); in ecore_eq_alloc() [all …]
|
H A D | ecore_l2.c | 79 p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info)); in ecore_l2_alloc() 84 if (IS_PF(p_hwfn->p_dev)) { in ecore_l2_alloc() 95 pp_qids = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc() 103 pp_qids[i] = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc() 142 OSAL_VFREE(p_hwfn->p_dev, in ecore_l2_free() 153 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info->pp_qid_usage); in ecore_l2_free() 157 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info); in ecore_l2_free() 215 if (IS_PF(p_hwfn->p_dev) && !b_legacy_vf) in ecore_eth_queue_cid_release() 222 OSAL_VFREE(p_hwfn->p_dev, p_cid); in ecore_eth_queue_cid_release() 238 p_cid = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_cid)); in _ecore_eth_queue_to_cid() [all …]
|
H A D | ecore_mcp.c | 116 if (CHIP_REV_IS_TEDIBEAR(p_hwfn->p_dev)) in ecore_mcp_read_mb() 148 p_cmd_elem = OSAL_ZALLOC(p_hwfn->p_dev, GFP_ATOMIC, in ecore_mcp_cmd_add_elem() 168 OSAL_FREE(p_hwfn->p_dev, p_cmd_elem); in ecore_mcp_cmd_del_elem() 191 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_cur); in ecore_mcp_free() 192 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_shadow); in ecore_mcp_free() 208 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); in ecore_mcp_free() 228 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) { in ecore_load_mcp_offsets() 301 p_hwfn->mcp_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_mcp_cmd_init() 312 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); in ecore_mcp_cmd_init() 317 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); in ecore_mcp_cmd_init() [all …]
|
H A D | ecore_int_api.h | 63 struct ecore_dev *p_dev; member 98 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_update_sb_idx() 125 if (sb_info->p_dev->int_mode == ECORE_INT_MODE_POLL) in ecore_sb_ack() 146 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_ack() 147 OSAL_BARRIER(sb_info->p_dev); in ecore_sb_ack() 321 void ecore_int_disable_post_isr_release(struct ecore_dev *p_dev); 332 void ecore_int_attn_clr_enable(struct ecore_dev *p_dev, bool clr_enable);
|
H A D | ecore_sriov.c | 197 DP_NOTICE(p_hwfn->p_dev, true, "No iov info\n"); in ecore_iov_is_valid_vfid() 201 if ((rel_vf_id >= p_hwfn->p_dev->p_iov_info->total_vfs) || in ecore_iov_is_valid_vfid() 223 DP_NOTICE(p_hwfn->p_dev, true, "No iov info\n"); in ecore_iov_get_vf_info() 398 static enum _ecore_status_t ecore_iov_pci_cfg_info(struct ecore_dev *p_dev) in ecore_iov_pci_cfg_info() argument 400 struct ecore_hw_sriov_info *iov = p_dev->p_iov_info; in ecore_iov_pci_cfg_info() 403 DP_VERBOSE(p_dev, ECORE_MSG_IOV, "sriov ext pos %d\n", pos); in ecore_iov_pci_cfg_info() 404 OSAL_PCI_READ_CONFIG_WORD(p_dev, in ecore_iov_pci_cfg_info() 408 OSAL_PCI_READ_CONFIG_WORD(p_dev, in ecore_iov_pci_cfg_info() 411 OSAL_PCI_READ_CONFIG_WORD(p_dev, in ecore_iov_pci_cfg_info() 415 OSAL_PCI_READ_CONFIG_WORD(p_dev, in ecore_iov_pci_cfg_info() [all …]
|
H A D | ecore_ooo.c | 137 p_ooo_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ooo_alloc() 151 OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ooo_alloc() 167 OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ooo_alloc() 181 OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ooo_alloc() 196 OSAL_FREE(p_hwfn->p_dev, p_ooo_info->p_archipelagos_mem); in ecore_ooo_alloc() 198 OSAL_FREE(p_hwfn->p_dev, p_ooo_info->p_isles_mem); in ecore_ooo_alloc() 200 OSAL_FREE(p_hwfn->p_dev, p_ooo_info); in ecore_ooo_alloc() 331 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_ooo_free() 335 OSAL_FREE(p_hwfn->p_dev, p_buffer); in ecore_ooo_free() 338 OSAL_FREE(p_hwfn->p_dev, p_ooo_info->p_isles_mem); in ecore_ooo_free() [all …]
|
H A D | ecore_hw.c | 73 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_ptt_pool); in __ecore_ptt_pool_free() 79 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, in ecore_ptt_pool_alloc() 259 if (!p_hwfn->p_dev->chk_reg_fifo) in ecore_is_reg_fifo_empty() 267 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_is_reg_fifo_empty() 290 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_wr() 314 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_rd() 340 if (IS_PF(p_hwfn->p_dev)) { in ecore_memcpy_hw() 714 *p_comp = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, sizeof(u32)); in ecore_dmae_info_alloc() 722 *p_cmd = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, in ecore_dmae_info_alloc() 731 *p_buff = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, in ecore_dmae_info_alloc() [all …]
|
H A D | ecore_rdma.c | 74 bmap->bitmap = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size_in_bytes); in ecore_rdma_bmap_alloc() 184 p_rdma_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_rdma_info)); in ecore_rdma_info_alloc() 208 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_rdma_info); in ecore_rdma_info_free() 307 p_rdma_info->dev = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_rdma_info->dev)); in ecore_rdma_alloc() 318 p_rdma_info->port = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_rdma_info->port)); in ecore_rdma_alloc() 503 OSAL_FREE(p_hwfn->p_dev, bmap->bitmap); in ecore_rdma_bmap_free() 523 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_rdma_info->port); in ecore_rdma_resc_free() 526 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_rdma_info->dev); in ecore_rdma_resc_free() 605 dev->vendor_id = p_hwfn->p_dev->vendor_id; in ecore_rdma_init_devinfo() 606 dev->vendor_part_id = p_hwfn->p_dev->device_id; in ecore_rdma_init_devinfo() [all …]
|
H A D | ecore_sp_commands.c | 217 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_update_params() 263 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_set_hw_tunn_mode_port() 285 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_start_params() 287 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_tunn_set_pf_start_params() 363 if (OSAL_TEST_BIT(ECORE_MF_OVLAN_CLSS, &p_hwfn->p_dev->mf_bits)) in ecore_sp_pf_start() 370 if (OSAL_TEST_BIT(ECORE_MF_8021Q_TAGGING, &p_hwfn->p_dev->mf_bits)) in ecore_sp_pf_start() 373 &p_hwfn->p_dev->mf_bits)) { in ecore_sp_pf_start() 385 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits)) { in ecore_sp_pf_start() 405 &p_hwfn->p_dev->mf_bits)) in ecore_sp_pf_start() 429 if (p_hwfn->p_dev->p_iov_info) { in ecore_sp_pf_start() [all …]
|
H A D | ecore_iov_api.h | 39 #define IS_VF(p_dev) ((p_dev)->b_is_vf) argument 40 #define IS_PF(p_dev) (!((p_dev)->b_is_vf)) argument 42 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info)) 188 void ecore_iov_set_vfs_to_disable(struct ecore_dev *p_dev, 199 void ecore_iov_set_vf_to_disable(struct ecore_dev *p_dev, 710 enum _ecore_status_t ecore_iov_configure_min_tx_rate(struct ecore_dev *p_dev, 762 static OSAL_INLINE void ecore_iov_set_vfs_to_disable(struct ecore_dev OSAL_UNUSED *p_dev, u8 OSAL_U… in ecore_iov_set_vfs_to_disable() argument 763 static OSAL_INLINE void ecore_iov_set_vf_to_disable(struct ecore_dev OSAL_UNUSED *p_dev, u16 OSAL_U… in ecore_iov_set_vf_to_disable() argument 814 …re_status_t ecore_iov_configure_min_tx_rate(struct ecore_dev OSAL_UNUSED *p_dev, int OSAL_UNUSED v… in ecore_iov_configure_min_tx_rate() argument
|
H A D | ecore_vf.c | 125 rc = OSAL_VF_SEND_MSG2PF(p_hwfn->p_dev, in ecore_send_msg2pf() 161 OSAL_WMB(p_hwfn->p_dev); in ecore_send_msg2pf() 239 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release() 244 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release() 251 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release() 261 OSAL_FREE(p_hwfn->p_dev, p_hwfn->vf_iov_info); in _ecore_vf_pf_release() 468 p_hwfn->p_dev->type = resp->pfdev_info.dev_type; in ecore_vf_pf_acquire() 469 p_hwfn->p_dev->chip_rev = (u8) resp->pfdev_info.chip_rev; in ecore_vf_pf_acquire() 472 ECORE_IS_BB(p_hwfn->p_dev) ? "BB" : "AH", in ecore_vf_pf_acquire() 473 CHIP_REV_IS_A0(p_hwfn->p_dev) ? 0 : 1); in ecore_vf_pf_acquire() [all …]
|
H A D | ecore_l2_api.h | 212 ecore_filter_ucast_cmd(struct ecore_dev *p_dev, 219 ecore_filter_mcast_cmd(struct ecore_dev *p_dev, 227 struct ecore_dev *p_dev, 489 void ecore_get_vport_stats(struct ecore_dev *p_dev, 492 void ecore_reset_vport_stats(struct ecore_dev *p_dev);
|
H A D | ecore_ll2.c | 868 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits) && in ecore_sp_ll2_rx_queue_start() 875 &p_hwfn->p_dev->mf_bits) && in ecore_sp_ll2_rx_queue_start() 981 rc = ecore_db_recovery_add(p_hwfn->p_dev, p_tx->doorbell_addr, in ecore_sp_ll2_tx_queue_start() 1023 ecore_db_recovery_del(p_hwfn->p_dev, p_tx->doorbell_addr, in ecore_sp_ll2_tx_queue_stop() 1052 rc = ecore_chain_alloc(p_hwfn->p_dev, in ecore_ll2_acquire_connection_rx() 1066 p_descq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ll2_acquire_connection_rx() 1076 rc = ecore_chain_alloc(p_hwfn->p_dev, in ecore_ll2_acquire_connection_rx() 1110 rc = ecore_chain_alloc(p_hwfn->p_dev, in ecore_ll2_acquire_connection_tx() 1125 p_descq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ll2_acquire_connection_tx() 1175 p_buf = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_buf)); in ecore_ll2_acquire_connection_ooo() [all …]
|
H A D | ecore_mcp_api.h | 821 enum _ecore_status_t ecore_recovery_prolog(struct ecore_dev *p_dev); 925 enum _ecore_status_t ecore_mcp_nvm_set_secure_mode(struct ecore_dev *p_dev, 939 enum _ecore_status_t ecore_mcp_phy_write(struct ecore_dev *p_dev, u32 cmd, 953 enum _ecore_status_t ecore_mcp_nvm_write(struct ecore_dev *p_dev, u32 cmd, 964 enum _ecore_status_t ecore_mcp_nvm_put_file_begin(struct ecore_dev *p_dev, 975 enum _ecore_status_t ecore_mcp_nvm_del_file(struct ecore_dev *p_dev, 986 enum _ecore_status_t ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf); 999 enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd, 1012 enum _ecore_status_t ecore_mcp_nvm_read(struct ecore_dev *p_dev, u32 addr,
|
H A D | ecore_roce.c | 316 DP_ERR(p_hwfn->p_dev, in ecore_roce_wait_free_cids() 410 qp->irq = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_roce_sp_create_responder() 549 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_roce_sp_create_responder() 577 qp->orq = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_roce_sp_create_requester() 701 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_roce_sp_create_requester() 963 p_ramrod_res = (struct roce_destroy_qp_resp_output_params *)OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_roce_sp_destroy_qp_responder() 987 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_roce_sp_destroy_qp_responder() 1000 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, p_ramrod_res, ramrod_res_phys, in ecore_roce_sp_destroy_qp_responder() 1033 OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, &ramrod_res_phys, in ecore_roce_sp_destroy_qp_requester() 1065 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_roce_sp_destroy_qp_requester() [all …]
|
H A D | ecore_cxt.c | 955 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_cxt_src_t2_free() 960 OSAL_FREE(p_hwfn->p_dev, p_mngr->t2); in ecore_cxt_src_t2_free() 991 p_mngr->t2 = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_cxt_src_t2_alloc() 1005 *p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_cxt_src_t2_alloc() 1091 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_ilt_shadow_free() 1097 OSAL_FREE(p_hwfn->p_dev, p_mngr->ilt_shadow); in ecore_ilt_shadow_free() 1131 p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_ilt_blk_alloc() 1161 p_mngr->ilt_shadow = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ilt_shadow_alloc() 1207 OSAL_FREE(p_hwfn->p_dev, p_mngr->acquired[type].cid_map); in ecore_cid_map_free() 1213 OSAL_FREE(p_hwfn->p_dev, in ecore_cid_map_free() [all …]
|
H A D | ecore_iwarp.c | 263 OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_iwarp_create_qp() 353 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_iwarp_create_qp() 565 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_iwarp_destroy_ep() 582 OSAL_FREE(p_hwfn->p_dev, ep); in ecore_iwarp_destroy_ep() 630 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_iwarp_destroy_qp() 645 ep = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*ep)); in ecore_iwarp_create_ep() 662 p_hwfn->p_dev, in ecore_iwarp_create_ep() 681 OSAL_FREE(p_hwfn->p_dev, ep); in ecore_iwarp_create_ep() 1715 OSAL_FREE(p_hwfn->p_dev, iwarp_info->partial_fpdus); in ecore_iwarp_resc_free() 1717 OSAL_FREE(p_hwfn->p_dev, iwarp_info->mpa_bufs); in ecore_iwarp_resc_free() [all …]
|
H A D | ecore_sriov.h | 279 void ecore_iov_free_hw_info(struct ecore_dev *p_dev); 325 static OSAL_INLINE void ecore_iov_free_hw_info(struct ecore_dev OSAL_UNUSED *p_dev) {} in ecore_iov_free_hw_info() argument
|
H A D | ecore_dcbx.c | 231 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits)) in ecore_dcbx_set_params() 239 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits) && in ecore_dcbx_set_params() 386 &p_hwfn->p_dev->mf_bits) && !eth_tlv) in ecore_dcbx_process_tlv() 1073 p_hwfn->p_dcbx_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_info_alloc() 1089 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_dcbx_info); in ecore_dcbx_info_free() 1150 if (IS_VF(p_hwfn->p_dev)) in ecore_dcbx_query_params() 1454 dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_get_config_params() 1463 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params() 1488 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params() 1732 p_dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_get_dscp_priority() [all …]
|
/freebsd/sys/dev/puc/ |
H A D | puc.c | 56 device_t p_dev; member 178 port->p_ipend = SERDEV_IPEND(port->p_dev); in puc_intr() 318 port->p_dev = device_add_child(dev, NULL, DEVICE_UNIT_ANY); in puc_bfe_attach() 319 if (port->p_dev != NULL) in puc_bfe_attach() 320 device_set_ivars(port->p_dev, (void *)port); in puc_bfe_attach() 357 if (port->p_dev == NULL) in puc_bfe_attach() 359 error = device_probe_and_attach(port->p_dev); in puc_bfe_attach() 361 device_delete_child(dev, port->p_dev); in puc_bfe_attach() 362 port->p_dev = NULL; in puc_bfe_attach() 417 if (port->p_dev == NULL) in puc_bfe_detach()
|