| /freebsd-12.1/sys/dev/qlnx/qlnxe/ |
| H A D | ecore_dev.c | 125 (u8 *)p_dev->doorbells + p_dev->db_size) { in ecore_db_rec_sanity() 129 (u8 *)p_dev->doorbells + p_dev->db_size); in ecore_db_rec_sanity() 151 &p_dev->hwfns[0] : &p_dev->hwfns[1]; in ecore_db_rec_find_hwfn() 727 struct ecore_dev *p_dev = p_hwfn->p_dev; in __ecore_llh_set_engine_affin() local 782 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_llh_set_engine_affin() local 835 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_llh_hw_init_pf() local 1535 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_all_ppfids_wr() local 1698 p_hwfn->p_dev = p_dev; in ecore_init_struct() 1754 OSAL_FREE(p_dev, p_dev->fw_data); in ecore_resc_free() 1757 OSAL_FREE(p_dev, p_dev->reset_stats); in ecore_resc_free() [all …]
|
| H A D | ecore_dev_api.h | 55 void ecore_init_dp(struct ecore_dev *p_dev, 73 void ecore_resc_free(struct ecore_dev *p_dev); 89 void ecore_resc_setup(struct ecore_dev *p_dev); 174 void ecore_hw_timers_stop_all(struct ecore_dev *p_dev); 204 void ecore_hw_hibernate_prepare(struct ecore_dev *p_dev); 213 void ecore_hw_hibernate_resume(struct ecore_dev *p_dev); 289 void ecore_hw_remove(struct ecore_dev *p_dev); 360 void ecore_get_dev_name(struct ecore_dev *p_dev, 563 ecore_chain_alloc(struct ecore_dev *p_dev, 578 void ecore_chain_free(struct ecore_dev *p_dev, [all …]
|
| H A D | ecore.h | 163 #define DP_ERR(p_dev, fmt, ...) \ argument 167 (p_dev)->name ? (p_dev)->name : "", \ 176 (p_dev)->name ? (p_dev)->name : "", \ 187 (p_dev)->name ? (p_dev)->name : "", \ 198 (p_dev)->name ? (p_dev)->name : "", \ 250 #define for_each_hwfn(p_dev, i) for (i = 0; i < p_dev->num_hwfns; i++) argument 649 struct ecore_dev *p_dev; member 902 #define IRO (p_hwfn->p_dev->iro_arr) 929 #define IS_ECORE_SRIOV(p_dev) (!!(p_dev)->p_iov_info) argument 1058 (ECORE_IS_BB((_p_hwfn)->p_dev) ? \ [all …]
|
| H A D | ecore_int.c | 809 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_attn_update_idx() 817 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_attn_update_idx() 1410 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_int_sb_attn_alloc() local 1427 OSAL_FREE(p_dev, p_sb); in ecore_int_sb_attn_alloc() 1446 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_init_cau_sb_entry() local 1498 if (IS_VF(p_hwfn->p_dev)) in _ecore_int_cau_conf_pi() 1611 if (IS_PF(p_hwfn->p_dev)) in ecore_int_sb_setup() 1720 sb_info->p_dev = p_hwfn->p_dev; in ecore_int_sb_init() 1966 if (IS_VF(p_hwfn->p_dev)) in ecore_int_igu_disable_int() 2626 for_each_hwfn(p_dev, i) in ecore_int_disable_post_isr_release() [all …]
|
| H A D | ecore_init_ops.c | 62 p_dev->iro_arr = iro_arr; in ecore_init_iro_array() 160 if (IS_VF(p_hwfn->p_dev)) in ecore_init_alloc() 171 OSAL_FREE(p_hwfn->p_dev, rt_data->b_valid); in ecore_init_alloc() 257 struct ecore_dev *p_dev = p_hwfn->p_dev; local 263 array_data = p_dev->fw_data->arr_data; 404 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) 467 struct ecore_dev *p_dev = p_hwfn->p_dev; local 522 struct ecore_dev *p_dev = p_hwfn->p_dev; local 529 init_ops = p_dev->fw_data->init_ops; 593 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) { [all …]
|
| H A D | ecore_spq.c | 137 OSAL_SMP_WMB(p_hwfn->p_dev); in ecore_spq_blocking_cb() 158 OSAL_SMP_RMB(p_hwfn->p_dev); in __ecore_spq_block() 291 if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev)) { in ecore_spq_hw_initialize() 341 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post() 346 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post() 418 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_eq_prod_update() 523 OSAL_FREE(p_hwfn->p_dev, p_eq); in ecore_eq_alloc() 550 if (IS_VF(p_hwfn->p_dev)) in ecore_cqe_completion() 693 OSAL_FREE(p_hwfn->p_dev, p_spq); in ecore_spq_alloc() 724 OSAL_FREE(p_hwfn->p_dev, p_spq); in ecore_spq_free() [all …]
|
| H A D | ecore_l2.c | 86 if (IS_PF(p_hwfn->p_dev)) { in ecore_l2_alloc() 144 OSAL_VFREE(p_hwfn->p_dev, in ecore_l2_free() 484 if (IS_VF(p_hwfn->p_dev)) in ecore_sp_vport_start() 837 if (IS_VF(p_hwfn->p_dev)) in ecore_sp_vport_stop() 898 if (IS_VF(p_dev)) { in ecore_filter_accept_cmd() 1707 if (IS_VF(p_dev)) { in ecore_filter_mcast_cmd() 1735 if (IS_VF(p_dev)) { in ecore_filter_ucast_cmd() 2051 if (IS_PF(p_dev)) { in _ecore_get_vport_stats() 2079 if (!p_dev) { in ecore_get_vport_stats() 2125 if (IS_PF(p_dev)) in ecore_reset_vport_stats() [all …]
|
| H A D | ecore_mcp.c | 1678 if (IS_VF(p_hwfn->p_dev)) in ecore_get_process_kill_counter() 1697 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_mcp_handle_process_kill() local 2322 if (IS_VF(p_hwfn->p_dev)) in ecore_mcp_get_mbi_ver() 2352 if (IS_VF(p_hwfn->p_dev)) in ecore_mcp_get_media_type() 2847 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_start_recovery_process() local 3431 OSAL_MEMCPY(p_buf, &p_dev->mcp_nvm_resp, sizeof(p_dev->mcp_nvm_resp)); in ecore_mcp_nvm_resp() 4681 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_mcp_get_engine_config() local 4701 p_dev->fir_affin = in ecore_mcp_get_engine_config() 4708 p_dev->l2_affin_hint = in ecore_mcp_get_engine_config() 4714 fir_valid, p_dev->fir_affin, l2_valid, p_dev->l2_affin_hint); in ecore_mcp_get_engine_config() [all …]
|
| H A D | ecore_sriov.c | 653 OSAL_FREE(p_dev, p_dev->p_iov_info); in ecore_iov_free_hw_info() 659 struct ecore_dev *p_dev = p_hwfn->p_dev; in ecore_iov_hw_info() local 663 if (IS_VF(p_hwfn->p_dev)) in ecore_iov_hw_info() 676 p_dev->p_iov_info = OSAL_ZALLOC(p_dev, GFP_KERNEL, in ecore_iov_hw_info() 678 if (!p_dev->p_iov_info) { in ecore_iov_hw_info() 683 p_dev->p_iov_info->pos = pos; in ecore_iov_hw_info() 696 OSAL_FREE(p_dev, p_dev->p_iov_info); in ecore_iov_hw_info() 737 if (IS_VF(p_hwfn->p_dev) || !IS_ECORE_SRIOV(p_hwfn->p_dev) || in _ecore_iov_pf_sanity_check() 760 for_each_hwfn(p_dev, i) { in ecore_iov_set_vf_to_disable() 776 if (!IS_ECORE_SRIOV(p_dev)) in ecore_iov_set_vfs_to_disable() [all …]
|
| H A D | ecore_int_api.h | 65 struct ecore_dev *p_dev; member 100 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_update_sb_idx() 127 if (sb_info->p_dev->int_mode == ECORE_INT_MODE_POLL) in ecore_sb_ack() 148 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_ack() 149 OSAL_BARRIER(sb_info->p_dev); in ecore_sb_ack() 323 void ecore_int_disable_post_isr_release(struct ecore_dev *p_dev); 334 void ecore_int_attn_clr_enable(struct ecore_dev *p_dev, bool clr_enable);
|
| H A D | ecore_hw.c | 261 if (!p_hwfn->p_dev->chk_reg_fifo) in ecore_is_reg_fifo_empty() 269 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_is_reg_fifo_empty() 292 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_wr() 316 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_rd() 342 if (IS_PF(p_hwfn->p_dev)) { in ecore_memcpy_hw() 760 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_dmae_info_free() 802 OSAL_BARRIER(p_hwfn->p_dev); in ecore_dmae_operation_wait() 817 OSAL_BARRIER(p_hwfn->p_dev); in ecore_dmae_operation_wait() 875 OSAL_DMA_SYNC(p_hwfn->p_dev, in ecore_dmae_execute_sub_operation() 889 OSAL_DMA_SYNC(p_hwfn->p_dev, in ecore_dmae_execute_sub_operation() [all …]
|
| H A D | ecore_sp_commands.c | 219 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_update_params() 265 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_set_hw_tunn_mode_port() 287 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_start_params() 289 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_tunn_set_pf_start_params() 375 &p_hwfn->p_dev->mf_bits)) { in ecore_sp_pf_start() 407 &p_hwfn->p_dev->mf_bits)) in ecore_sp_pf_start() 431 if (p_hwfn->p_dev->p_iov_info) { in ecore_sp_pf_start() 432 struct ecore_hw_sriov_info *p_iov = p_hwfn->p_dev->p_iov_info; in ecore_sp_pf_start() 452 &p_hwfn->p_dev->tunnel); in ecore_sp_pf_start() 596 if (IS_VF(p_hwfn->p_dev)) in ecore_sp_pf_update_tunn_cfg() [all …]
|
| H A D | ecore_iov_api.h | 41 #define IS_VF(p_dev) ((p_dev)->b_is_vf) argument 42 #define IS_PF(p_dev) (!((p_dev)->b_is_vf)) argument 44 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info)) 190 void ecore_iov_set_vfs_to_disable(struct ecore_dev *p_dev, 201 void ecore_iov_set_vf_to_disable(struct ecore_dev *p_dev, 712 enum _ecore_status_t ecore_iov_configure_min_tx_rate(struct ecore_dev *p_dev, 764 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 765 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 818 …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 | 164 OSAL_WMB(p_hwfn->p_dev); in ecore_send_msg2pf() 242 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release() 247 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in _ecore_vf_pf_release() 484 p_hwfn->p_dev->num_hwfns = 2; in ecore_vf_pf_acquire() 532 p_hwfn->p_dev->num_hwfns = 1; in ecore_vf_hw_prepare() 556 (u8 *)p_hwfn->p_dev->doorbells; in ecore_vf_hw_prepare() 581 (u8 *)p_hwfn->p_dev->doorbells; in ecore_vf_hw_prepare() 643 ECORE_IS_CMT(p_hwfn->p_dev)) { in ecore_vf_hw_prepare() 653 (u8 *)p_hwfn->p_dev->doorbells; in ecore_vf_hw_prepare() 661 p_hwfn->p_dev->doorbells); in ecore_vf_hw_prepare() [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_mcp_api.h | 823 enum _ecore_status_t ecore_recovery_prolog(struct ecore_dev *p_dev); 927 enum _ecore_status_t ecore_mcp_nvm_set_secure_mode(struct ecore_dev *p_dev, 941 enum _ecore_status_t ecore_mcp_phy_write(struct ecore_dev *p_dev, u32 cmd, 955 enum _ecore_status_t ecore_mcp_nvm_write(struct ecore_dev *p_dev, u32 cmd, 966 enum _ecore_status_t ecore_mcp_nvm_put_file_begin(struct ecore_dev *p_dev, 977 enum _ecore_status_t ecore_mcp_nvm_del_file(struct ecore_dev *p_dev, 988 enum _ecore_status_t ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf); 1001 enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd, 1014 enum _ecore_status_t ecore_mcp_nvm_read(struct ecore_dev *p_dev, u32 addr,
|
| H A D | ecore_cxt.c | 957 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_cxt_src_t2_free() 962 OSAL_FREE(p_hwfn->p_dev, p_mngr->t2); in ecore_cxt_src_t2_free() 1094 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_ilt_shadow_free() 1216 OSAL_FREE(p_hwfn->p_dev, in ecore_cid_map_free() 1333 if (p_hwfn->p_dev->p_iov_info) in ecore_cxt_mngr_alloc() 1709 if (p_hwfn->p_dev->p_iov_info) { in ecore_ilt_vf_bounds_init() 1928 (NUM_OF_VFS(p_hwfn->p_dev) + in ecore_tm_init_pf() 2247 DP_INFO(p_hwfn->p_dev, in ecore_rdma_set_pf_params() 2290 &p_hwfn->p_dev->mf_bits)) in ecore_cxt_set_pf_params() 2311 DP_INFO(p_hwfn->p_dev, in ecore_cxt_set_pf_params() [all …]
|
| H A D | ecore_sriov.h | 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) {} in ecore_iov_free_hw_info() argument
|
| H A D | ecore_dcbx.c | 233 if (OSAL_TEST_BIT(ECORE_MF_UFP_SPECIFIC, &p_hwfn->p_dev->mf_bits)) in ecore_dcbx_set_params() 388 &p_hwfn->p_dev->mf_bits) && !eth_tlv) in ecore_dcbx_process_tlv() 1075 p_hwfn->p_dcbx_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_info_alloc() 1091 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_dcbx_info); in ecore_dcbx_info_free() 1152 if (IS_VF(p_hwfn->p_dev)) in ecore_dcbx_query_params() 1456 dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_get_config_params() 1465 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params() 1490 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params() 1734 p_dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_get_dscp_priority() 1743 OSAL_FREE(p_hwfn->p_dev, p_dcbx_info); in ecore_dcbx_get_dscp_priority() [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… in ecore_get_ext_voq() 192 return port_id * (ECORE_IS_E5(p_hwfn->p_dev) ? NUM_OF_PHYS_TCS : max_phys_tcs_per_port) + tc; in ecore_get_ext_voq() 201 u8 num_ext_voqs = ECORE_IS_E5(p_hwfn->p_dev) ? QM_E5_NUM_EXT_VOQ : MAX_NUM_VOQS_E4; in ecore_enable_pf_rl() 283 u8 num_ext_voqs = ECORE_IS_E5(p_hwfn->p_dev) ? QM_E5_NUM_EXT_VOQ : MAX_NUM_VOQS_E4; in ecore_cmdq_lines_rt_init() 300 if (ECORE_IS_E5(p_hwfn->p_dev)) in ecore_cmdq_lines_rt_init() 439 …u32 map_val = (ext_voq << QM_WFQ_VP_PQ_VOQ_SHIFT) | (pf_id << (ECORE_IS_E5(p_hwfn->p_dev) ? QM_WFQ… in ecore_tx_pq_map_rt_init() 454 if (ECORE_IS_E5(p_hwfn->p_dev)) { in ecore_tx_pq_map_rt_init() 556 crd_reg_offset = ECORE_IS_E5(p_hwfn->p_dev) ? in ecore_pf_wfq_rt_init() 1202 total_blocks = ECORE_IS_K2(p_hwfn->p_dev) ? BRB_TOTAL_RAM_BLOCKS_K2 : BRB_TOTAL_RAM_BLOCKS_BB; in ecore_init_brb_ram() 1404 if (ECORE_IS_BB_B0(p_hwfn->p_dev)) in ecore_set_geneve_enable()
|
| H A D | ecore_init_ops.h | 42 void ecore_init_iro_array(struct ecore_dev *p_dev);
|
| H A D | ecore_mng_tlv.c | 1252 p_tlv_data = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_tlv_data)); in ecore_mfw_update_tlvs() 1257 OSAL_VFREE(p_hwfn->p_dev, p_tlv_data); in ecore_mfw_update_tlvs() 1294 OSAL_VFREE(p_hwfn->p_dev, p_tlv_data); in ecore_mfw_update_tlvs() 1322 p_mfw_buf = (void *)OSAL_VZALLOC(p_hwfn->p_dev, size); in ecore_mfw_process_tlv_req() 1395 OSAL_VFREE(p_hwfn->p_dev, p_mfw_buf); in ecore_mfw_process_tlv_req()
|
| H A D | ecore_hw.h | 264 enum _ecore_status_t ecore_init_fw_data(struct ecore_dev *p_dev,
|
| H A D | qlnx_os.c | 506 ha = (qlnx_host_t *)p_hwfn->p_dev; in qlnx_sp_intr() 5121 ha = (qlnx_host_t *)p_hwfn->p_dev; in qlnx_sp_isr() 5540 cdev = p_hwfn->p_dev; in qlnx_dbell_wr32_db() 5689 ha = (qlnx_host_t *)hwfn->p_dev; in qlnx_fill_link() 8034 QL_DPRINT1(((qlnx_host_t *)hwfn->p_dev), in __qlnx_iov_update_vport() 8063 cdev = p_hwfn->p_dev; in qlnx_find_hwfn_index() 8083 ha, p_hwfn->p_dev, p_hwfn, rel_vf_id); in __qlnx_pf_vf_msg() 8118 ha, p_hwfn->p_dev, p_hwfn); in __qlnx_vf_flr_update() 8154 ha, p_hwfn->p_dev, p_hwfn); in qlnx_vf_bulleting_update() 8160 ha, p_hwfn->p_dev, p_hwfn, i); in qlnx_vf_bulleting_update() [all …]
|
| /freebsd-12.1/sys/dev/puc/ |
| H A D | puc.c | 58 device_t p_dev; member 180 port->p_ipend = SERDEV_IPEND(port->p_dev); in puc_intr() 321 if (port->p_dev != NULL) in puc_bfe_attach() 322 device_set_ivars(port->p_dev, (void *)port); in puc_bfe_attach() 359 if (port->p_dev == NULL) in puc_bfe_attach() 361 error = device_probe_and_attach(port->p_dev); in puc_bfe_attach() 363 device_delete_child(dev, port->p_dev); in puc_bfe_attach() 364 port->p_dev = NULL; in puc_bfe_attach() 380 if (port->p_dev != NULL) in puc_bfe_attach() 381 device_delete_child(dev, port->p_dev); in puc_bfe_attach() [all …]
|