/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_dcbx.c | 880 static void qed_dcbx_aen(struct qed_hwfn *hwfn, u32 mib_type) in qed_dcbx_aen() argument 882 struct qed_common_cb_ops *op = hwfn->cdev->protocol_ops.common; in qed_dcbx_aen() 883 void *cookie = hwfn->cdev->ops_cookie; in qed_dcbx_aen() 886 op->dcbx_aen(cookie, &hwfn->p_dcbx_info->get, mib_type); in qed_dcbx_aen() 1309 static struct qed_dcbx_get *qed_dcbnl_get_dcbx(struct qed_hwfn *hwfn, in qed_dcbnl_get_dcbx() argument 1318 if (qed_dcbx_query_params(hwfn, dcbx_info, type)) { in qed_dcbnl_get_dcbx() 1325 DP_INFO(hwfn, "DCBX is not enabled/operational\n"); in qed_dcbnl_get_dcbx() 1335 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getstate() local 1339 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getstate() 1344 DP_VERBOSE(hwfn, QED_MSG_DCB, "DCB state = %d\n", enabled); in qed_dcbnl_getstate() [all …]
|
D | qed_main.c | 522 struct qed_hwfn *hwfn = &cdev->hwfns[index % cdev->num_hwfns]; in qed_simd_handler_config() local 525 hwfn->simd_proto_handler[relative_idx].func = handler; in qed_simd_handler_config() 526 hwfn->simd_proto_handler[relative_idx].token = token; in qed_simd_handler_config() 531 struct qed_hwfn *hwfn = &cdev->hwfns[index % cdev->num_hwfns]; in qed_simd_handler_clean() local 534 memset(&hwfn->simd_proto_handler[relative_idx], 0, in qed_simd_handler_clean() 547 struct qed_hwfn *hwfn; in qed_single_int() local 558 hwfn = &cdev->hwfns[i]; in qed_single_int() 562 tasklet_schedule(hwfn->sp_dpc); in qed_single_int() 571 &hwfn->simd_proto_handler[j]; in qed_single_int() 576 DP_NOTICE(hwfn, in qed_single_int() [all …]
|
D | qed_init_ops.h | 103 #define STORE_RT_REG(hwfn, offset, val) \ argument 104 qed_init_store_rt_reg(hwfn, offset, val) 106 #define OVERWRITE_RT_REG(hwfn, offset, val) \ argument 107 qed_init_store_rt_reg(hwfn, offset, val) 123 #define STORE_RT_REG_AGG(hwfn, offset, val) \ argument 124 qed_init_store_rt_agg(hwfn, offset, (u32 *)&val, sizeof(val))
|
D | qed_sriov.c | 2993 static int qed_iov_pre_update_vport(struct qed_hwfn *hwfn, in qed_iov_pre_update_vport() argument 3009 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport() 3245 static int qed_iov_chk_ucast(struct qed_hwfn *hwfn, in qed_iov_chk_ucast() argument 3250 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_chk_ucast() 3260 qed_iov_bulletin_set_mac(hwfn, vf->mac, vfid); in qed_iov_chk_ucast() 3263 qed_schedule_iov(hwfn, QED_IOV_WQ_BULLETIN_UPDATE_FLAG); in qed_iov_chk_ucast() 4417 void qed_schedule_iov(struct qed_hwfn *hwfn, enum qed_iov_wq_flag flag) in qed_schedule_iov() argument 4420 set_bit(flag, &hwfn->iov_task_flags); in qed_schedule_iov() 4422 DP_VERBOSE(hwfn, QED_MSG_IOV, "Scheduling iov task [Flag: %d]\n", flag); in qed_schedule_iov() 4423 queue_delayed_work(hwfn->iov_wq, &hwfn->iov_task, 0); in qed_schedule_iov() [all …]
|
D | qed_sriov.h | 391 void qed_schedule_iov(struct qed_hwfn *hwfn, enum qed_iov_wq_flag flag); 394 void qed_inform_vf_link_state(struct qed_hwfn *hwfn); 452 static inline void qed_schedule_iov(struct qed_hwfn *hwfn, in qed_schedule_iov() argument 466 static inline void qed_inform_vf_link_state(struct qed_hwfn *hwfn) in qed_inform_vf_link_state() argument
|
D | qed_vf.c | 1627 static bool qed_vf_bulletin_get_forced_mac(struct qed_hwfn *hwfn, in qed_vf_bulletin_get_forced_mac() argument 1632 bulletin = &hwfn->vf_iov_info->bulletin_shadow; in qed_vf_bulletin_get_forced_mac() 1675 static void qed_handle_bulletin_change(struct qed_hwfn *hwfn) in qed_handle_bulletin_change() argument 1677 struct qed_eth_cb_ops *ops = hwfn->cdev->protocol_ops.eth; in qed_handle_bulletin_change() 1679 void *cookie = hwfn->cdev->ops_cookie; in qed_handle_bulletin_change() 1682 qed_vf_bulletin_get_udp_ports(hwfn, &vxlan_port, &geneve_port); in qed_handle_bulletin_change() 1683 is_mac_exist = qed_vf_bulletin_get_forced_mac(hwfn, mac, in qed_handle_bulletin_change() 1691 qed_link_update(hwfn); in qed_handle_bulletin_change() 1696 struct qed_hwfn *hwfn = container_of(work, struct qed_hwfn, in qed_iov_vf_task() local 1700 if (test_and_clear_bit(QED_IOV_WQ_STOP_WQ_FLAG, &hwfn->iov_task_flags)) in qed_iov_vf_task() [all …]
|
D | qed.h | 917 void qed_link_update(struct qed_hwfn *hwfn); 924 int qed_slowpath_irq_req(struct qed_hwfn *hwfn); 926 int qed_mfw_tlv_req(struct qed_hwfn *hwfn); 928 int qed_mfw_fill_tlv_data(struct qed_hwfn *hwfn,
|
D | qed_fcoe.c | 743 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_fill_fcoe_dev_info() local 750 qed_fcoe_get_primary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_fcoe_dev_info() 752 qed_fcoe_get_secondary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_fcoe_dev_info() 754 info->wwpn = hwfn->mcp_info->func_info.wwn_port; in qed_fill_fcoe_dev_info() 755 info->wwnn = hwfn->mcp_info->func_info.wwn_node; in qed_fill_fcoe_dev_info() 757 info->num_cqs = FEAT_NUM(hwfn, QED_FCOE_CQ); in qed_fill_fcoe_dev_info()
|
D | qed_l2.c | 2210 struct qed_hwfn *hwfn = &cdev->hwfns[i]; in qed_fill_eth_dev_info() local 2211 u16 l2_queues = (u16)FEAT_NUM(hwfn, in qed_fill_eth_dev_info() 2215 cids = hwfn->pf_params.eth_pf_params.num_cons; in qed_fill_eth_dev_info() 2625 struct qed_hwfn *hwfn = &cdev->hwfns[i]; in qed_tunn_configure() local 2629 tun = &hwfn->cdev->tunnel; in qed_tunn_configure() 2631 p_ptt = qed_ptt_acquire(hwfn); in qed_tunn_configure() 2638 rc = qed_sp_pf_update_tunn_cfg(hwfn, p_ptt, &tunn_info, in qed_tunn_configure() 2642 qed_ptt_release(hwfn, p_ptt); in qed_tunn_configure() 2646 if (IS_PF_SRIOV(hwfn)) { in qed_tunn_configure() 2653 qed_for_each_vf(hwfn, j) { in qed_tunn_configure() [all …]
|
D | qed_ll2.c | 920 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_ll2_stop_ooo() local 921 u8 *handle = &hwfn->pf_params.iscsi_pf_params.ll2_ooo_queue_id; in qed_ll2_stop_ooo() 926 qed_ll2_terminate_connection(hwfn, *handle); in qed_ll2_stop_ooo() 927 qed_ll2_release_connection(hwfn, *handle); in qed_ll2_stop_ooo() 2224 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_ll2_start_ooo() local 2225 u8 *handle = &hwfn->pf_params.iscsi_pf_params.ll2_ooo_queue_id; in qed_ll2_start_ooo() 2232 rc = qed_ll2_acquire_connection(hwfn, &data); in qed_ll2_start_ooo() 2238 rc = qed_ll2_establish_connection(hwfn, *handle); in qed_ll2_start_ooo() 2247 qed_ll2_release_connection(hwfn, *handle); in qed_ll2_start_ooo()
|
D | qed_iscsi.c | 1084 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_fill_iscsi_dev_info() local 1092 qed_iscsi_get_primary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_iscsi_dev_info() 1094 qed_iscsi_get_secondary_bdq_prod(hwfn, BDQ_ID_RQ); in qed_fill_iscsi_dev_info() 1096 info->num_cqs = FEAT_NUM(hwfn, QED_ISCSI_CQ); in qed_fill_iscsi_dev_info()
|