Home
last modified time | relevance | path

Searched refs:hwfn (Results 1 – 11 of 11) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c851 static void qed_dcbx_aen(struct qed_hwfn *hwfn, u32 mib_type) in qed_dcbx_aen() argument
853 struct qed_common_cb_ops *op = hwfn->cdev->protocol_ops.common; in qed_dcbx_aen()
854 void *cookie = hwfn->cdev->ops_cookie; in qed_dcbx_aen()
857 op->dcbx_aen(cookie, &hwfn->p_dcbx_info->get, mib_type); in qed_dcbx_aen()
1281 static struct qed_dcbx_get *qed_dcbnl_get_dcbx(struct qed_hwfn *hwfn, in qed_dcbnl_get_dcbx() argument
1290 if (qed_dcbx_query_params(hwfn, dcbx_info, type)) { in qed_dcbnl_get_dcbx()
1297 DP_INFO(hwfn, "DCBX is not enabled/operational\n"); in qed_dcbnl_get_dcbx()
1307 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getstate() local
1311 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getstate()
1316 DP_VERBOSE(hwfn, QED_MSG_DCB, "DCB state = %d\n", enabled); in qed_dcbnl_getstate()
[all …]
Dqed_main.c680 struct qed_hwfn *hwfn = &cdev->hwfns[index % cdev->num_hwfns]; in qed_simd_handler_config() local
683 hwfn->simd_proto_handler[relative_idx].func = handler; in qed_simd_handler_config()
684 hwfn->simd_proto_handler[relative_idx].token = token; in qed_simd_handler_config()
689 struct qed_hwfn *hwfn = &cdev->hwfns[index % cdev->num_hwfns]; in qed_simd_handler_clean() local
692 memset(&hwfn->simd_proto_handler[relative_idx], 0, in qed_simd_handler_clean()
705 struct qed_hwfn *hwfn; in qed_single_int() local
716 hwfn = &cdev->hwfns[i]; in qed_single_int()
720 tasklet_schedule(&hwfn->sp_dpc); in qed_single_int()
729 &hwfn->simd_proto_handler[j]; in qed_single_int()
734 DP_NOTICE(hwfn, in qed_single_int()
[all …]
Dqed_init_ops.h71 #define STORE_RT_REG(hwfn, offset, val) \ argument
72 qed_init_store_rt_reg(hwfn, offset, val)
74 #define OVERWRITE_RT_REG(hwfn, offset, val) \ argument
75 qed_init_store_rt_reg(hwfn, offset, val)
82 #define STORE_RT_REG_AGG(hwfn, offset, val) \ argument
83 qed_init_store_rt_agg(hwfn, offset, (u32 *)&(val), sizeof(val))
Dqed_sriov.c2979 static int qed_iov_pre_update_vport(struct qed_hwfn *hwfn, in qed_iov_pre_update_vport() argument
2999 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport()
3242 static int qed_iov_chk_ucast(struct qed_hwfn *hwfn, in qed_iov_chk_ucast() argument
3247 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_chk_ucast()
3257 qed_iov_bulletin_set_mac(hwfn, vf->mac, vfid); in qed_iov_chk_ucast()
3260 qed_schedule_iov(hwfn, QED_IOV_WQ_BULLETIN_UPDATE_FLAG); in qed_iov_chk_ucast()
4434 void qed_schedule_iov(struct qed_hwfn *hwfn, enum qed_iov_wq_flag flag) in qed_schedule_iov() argument
4438 set_bit(flag, &hwfn->iov_task_flags); in qed_schedule_iov()
4441 DP_VERBOSE(hwfn, QED_MSG_IOV, "Scheduling iov task [Flag: %d]\n", flag); in qed_schedule_iov()
4442 queue_delayed_work(hwfn->iov_wq, &hwfn->iov_task, 0); in qed_schedule_iov()
[all …]
Dqed_sriov.h404 void qed_schedule_iov(struct qed_hwfn *hwfn, enum qed_iov_wq_flag flag);
407 void qed_inform_vf_link_state(struct qed_hwfn *hwfn);
465 static inline void qed_schedule_iov(struct qed_hwfn *hwfn, in qed_schedule_iov() argument
479 static inline void qed_inform_vf_link_state(struct qed_hwfn *hwfn) in qed_inform_vf_link_state() argument
Dqed_vf.c1632 static bool qed_vf_bulletin_get_forced_mac(struct qed_hwfn *hwfn, in qed_vf_bulletin_get_forced_mac() argument
1637 bulletin = &hwfn->vf_iov_info->bulletin_shadow; in qed_vf_bulletin_get_forced_mac()
1680 static void qed_handle_bulletin_change(struct qed_hwfn *hwfn) in qed_handle_bulletin_change() argument
1682 struct qed_eth_cb_ops *ops = hwfn->cdev->protocol_ops.eth; in qed_handle_bulletin_change()
1684 void *cookie = hwfn->cdev->ops_cookie; in qed_handle_bulletin_change()
1687 qed_vf_bulletin_get_udp_ports(hwfn, &vxlan_port, &geneve_port); in qed_handle_bulletin_change()
1688 is_mac_exist = qed_vf_bulletin_get_forced_mac(hwfn, mac, in qed_handle_bulletin_change()
1696 qed_link_update(hwfn, NULL); in qed_handle_bulletin_change()
1701 struct qed_hwfn *hwfn = container_of(work, struct qed_hwfn, in qed_iov_vf_task() local
1705 if (test_and_clear_bit(QED_IOV_WQ_STOP_WQ_FLAG, &hwfn->iov_task_flags)) in qed_iov_vf_task()
[all …]
Dqed.h977 void qed_link_update(struct qed_hwfn *hwfn, struct qed_ptt *ptt);
978 void qed_bw_update(struct qed_hwfn *hwfn, struct qed_ptt *ptt);
989 int qed_slowpath_irq_req(struct qed_hwfn *hwfn);
991 int qed_mfw_tlv_req(struct qed_hwfn *hwfn);
993 int qed_mfw_fill_tlv_data(struct qed_hwfn *hwfn,
Dqed_fcoe.c725 struct qed_hwfn *hwfn = QED_AFFIN_HWFN(cdev); in qed_fill_fcoe_dev_info() local
732 qed_fcoe_get_primary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_fcoe_dev_info()
734 qed_fcoe_get_secondary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_fcoe_dev_info()
736 info->wwpn = hwfn->mcp_info->func_info.wwn_port; in qed_fill_fcoe_dev_info()
737 info->wwnn = hwfn->mcp_info->func_info.wwn_node; in qed_fill_fcoe_dev_info()
739 info->num_cqs = FEAT_NUM(hwfn, QED_FCOE_CQ); in qed_fill_fcoe_dev_info()
Dqed_l2.c2206 struct qed_hwfn *hwfn = &cdev->hwfns[i]; in qed_fill_eth_dev_info() local
2207 u16 l2_queues = (u16)FEAT_NUM(hwfn, in qed_fill_eth_dev_info()
2211 cids = hwfn->pf_params.eth_pf_params.num_cons; in qed_fill_eth_dev_info()
2622 struct qed_hwfn *hwfn = &cdev->hwfns[i]; in qed_tunn_configure() local
2626 tun = &hwfn->cdev->tunnel; in qed_tunn_configure()
2628 p_ptt = qed_ptt_acquire(hwfn); in qed_tunn_configure()
2635 rc = qed_sp_pf_update_tunn_cfg(hwfn, p_ptt, &tunn_info, in qed_tunn_configure()
2639 qed_ptt_release(hwfn, p_ptt); in qed_tunn_configure()
2643 if (IS_PF_SRIOV(hwfn)) { in qed_tunn_configure()
2650 qed_for_each_vf(hwfn, j) { in qed_tunn_configure()
[all …]
Dqed_nvmetcp.c148 struct qed_hwfn *hwfn = QED_AFFIN_HWFN(cdev); in qed_fill_nvmetcp_dev_info() local
153 info->port_id = MFW_PORT(hwfn); in qed_fill_nvmetcp_dev_info()
154 info->num_cqs = FEAT_NUM(hwfn, QED_NVMETCP_CQ); in qed_fill_nvmetcp_dev_info()
Dqed_iscsi.c1035 struct qed_hwfn *hwfn = QED_AFFIN_HWFN(cdev); in qed_fill_iscsi_dev_info() local
1043 qed_iscsi_get_primary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_iscsi_dev_info()
1045 qed_iscsi_get_secondary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_iscsi_dev_info()
1047 info->num_cqs = FEAT_NUM(hwfn, QED_ISCSI_CQ); in qed_fill_iscsi_dev_info()