/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_fw_funcs.c | 456 struct qed_qm_pf_rt_init_params *p_params, in qed_tx_pq_map_rt_init() argument 460 struct init_qm_vport_params *vport_params = p_params->vport_params; in qed_tx_pq_map_rt_init() 463 struct init_qm_pq_params *pq_params = p_params->pq_params; in qed_tx_pq_map_rt_init() 466 num_pqs = p_params->num_pf_pqs + p_params->num_vf_pqs; in qed_tx_pq_map_rt_init() 468 first_pq_group = p_params->start_pq / QM_PF_QUEUE_GROUP_SIZE; in qed_tx_pq_map_rt_init() 469 last_pq_group = (p_params->start_pq + num_pqs - 1) / in qed_tx_pq_map_rt_init() 472 pq_mem_4kb = QM_PQ_MEM_4KB(p_params->num_pf_cids); in qed_tx_pq_map_rt_init() 473 vport_pq_mem_4kb = QM_PQ_MEM_4KB(p_params->num_vf_cids); in qed_tx_pq_map_rt_init() 479 (u32)(p_params->pf_id)); in qed_tx_pq_map_rt_init() 483 QM_PQ_SIZE_256B(p_params->num_pf_cids)); in qed_tx_pq_map_rt_init() [all …]
|
D | qed_l2.c | 193 struct qed_queue_start_common_params *p_params, in _qed_eth_queue_to_cid() argument 209 p_cid->rel.vport_id = p_params->vport_id; in _qed_eth_queue_to_cid() 210 p_cid->rel.queue_id = p_params->queue_id; in _qed_eth_queue_to_cid() 211 p_cid->rel.stats_id = p_params->stats_id; in _qed_eth_queue_to_cid() 212 p_cid->sb_igu_id = p_params->p_sb->igu_sb_id; in _qed_eth_queue_to_cid() 214 p_cid->sb_idx = p_params->sb_idx; in _qed_eth_queue_to_cid() 289 struct qed_queue_start_common_params *p_params, in qed_eth_queue_to_cid() argument 324 p_params, b_is_rx, p_vf_params); in qed_eth_queue_to_cid() 335 struct qed_queue_start_common_params *p_params) in qed_eth_queue_to_cid_pf() argument 337 return qed_eth_queue_to_cid(p_hwfn, opaque_fid, p_params, b_is_rx, in qed_eth_queue_to_cid_pf() [all …]
|
D | qed_dcbx.c | 458 struct qed_dcbx_params *p_params, bool ieee) in qed_dcbx_get_app_data() argument 464 p_params->app_willing = QED_MFW_GET_FIELD(p_app->flags, in qed_dcbx_get_app_data() 466 p_params->app_valid = QED_MFW_GET_FIELD(p_app->flags, DCBX_APP_ENABLED); in qed_dcbx_get_app_data() 467 p_params->app_error = QED_MFW_GET_FIELD(p_app->flags, DCBX_APP_ERROR); in qed_dcbx_get_app_data() 468 p_params->num_app_entries = QED_MFW_GET_FIELD(p_app->flags, in qed_dcbx_get_app_data() 471 entry = &p_params->app_entry[i]; in qed_dcbx_get_app_data() 516 p_params->app_willing, p_params->app_valid, in qed_dcbx_get_app_data() 517 p_params->app_error); in qed_dcbx_get_app_data() 522 u32 pfc, struct qed_dcbx_params *p_params) in qed_dcbx_get_pfc_data() argument 526 p_params->pfc.willing = QED_MFW_GET_FIELD(pfc, DCBX_PFC_WILLING); in qed_dcbx_get_pfc_data() [all …]
|
D | qed_iscsi.c | 143 struct qed_iscsi_pf_params *p_params = NULL; in qed_sp_iscsi_func_start() local 167 p_params = &p_hwfn->pf_params.iscsi_pf_params; in qed_sp_iscsi_func_start() 171 if (p_params->num_queues > p_hwfn->hw_info.feat_num[QED_ISCSI_CQ]) { in qed_sp_iscsi_func_start() 174 p_params->num_queues, in qed_sp_iscsi_func_start() 180 val = p_params->half_way_close_timeout; in qed_sp_iscsi_func_start() 182 p_init->num_sq_pages_in_ring = p_params->num_sq_pages_in_ring; in qed_sp_iscsi_func_start() 183 p_init->num_r2tq_pages_in_ring = p_params->num_r2tq_pages_in_ring; in qed_sp_iscsi_func_start() 184 p_init->num_uhq_pages_in_ring = p_params->num_uhq_pages_in_ring; in qed_sp_iscsi_func_start() 187 p_params->ll2_ooo_queue_id; in qed_sp_iscsi_func_start() 189 p_init->func_params.log_page_size = p_params->log_page_size; in qed_sp_iscsi_func_start() [all …]
|
D | qed_hw.c | 393 struct qed_dmae_params *p_params) in qed_dmae_opcode() argument 405 src_pfid = QED_DMAE_FLAGS_IS_SET(p_params, SRC_PF_VALID) ? in qed_dmae_opcode() 406 p_params->src_pfid : p_hwfn->rel_pf_id; in qed_dmae_opcode() 412 dst_pfid = QED_DMAE_FLAGS_IS_SET(p_params, DST_PF_VALID) ? in qed_dmae_opcode() 413 p_params->dst_pfid : p_hwfn->rel_pf_id; in qed_dmae_opcode() 424 if (QED_DMAE_FLAGS_IS_SET(p_params, COMPLETION_DST)) in qed_dmae_opcode() 430 port_id = (QED_DMAE_FLAGS_IS_SET(p_params, PORT_VALID)) ? in qed_dmae_opcode() 431 p_params->port_id : p_hwfn->port_id; in qed_dmae_opcode() 441 if (QED_DMAE_FLAGS_IS_SET(p_params, SRC_VF_VALID)) { in qed_dmae_opcode() 443 SET_FIELD(opcode_b, DMAE_CMD_SRC_VF_ID, p_params->src_vfid); in qed_dmae_opcode() [all …]
|
D | qed_vf.c | 1071 struct qed_sp_vport_update_params *p_params) in qed_vf_pf_vport_update() argument 1084 update_rx = p_params->update_vport_active_rx_flg; in qed_vf_pf_vport_update() 1085 update_tx = p_params->update_vport_active_tx_flg; in qed_vf_pf_vport_update() 1102 p_act_tlv->active_rx = p_params->vport_active_rx_flg; in qed_vf_pf_vport_update() 1107 p_act_tlv->active_tx = p_params->vport_active_tx_flg; in qed_vf_pf_vport_update() 1111 if (p_params->update_tx_switching_flg) { in qed_vf_pf_vport_update() 1120 p_tx_switch_tlv->tx_switching = p_params->tx_switching_flg; in qed_vf_pf_vport_update() 1123 if (p_params->update_approx_mcast_flg) { in qed_vf_pf_vport_update() 1131 memcpy(p_mcast_tlv->bins, p_params->bins, in qed_vf_pf_vport_update() 1135 update_rx = p_params->accept_flags.update_rx_mode_config; in qed_vf_pf_vport_update() [all …]
|
D | qed_nvmetcp.c | 55 struct qed_nvmetcp_pf_params *p_params = NULL; in qed_sp_nvmetcp_func_start() local 77 p_params = &p_hwfn->pf_params.nvmetcp_pf_params; in qed_sp_nvmetcp_func_start() 79 p_init->num_sq_pages_in_ring = p_params->num_sq_pages_in_ring; in qed_sp_nvmetcp_func_start() 80 p_init->num_r2tq_pages_in_ring = p_params->num_r2tq_pages_in_ring; in qed_sp_nvmetcp_func_start() 81 p_init->num_uhq_pages_in_ring = p_params->num_uhq_pages_in_ring; in qed_sp_nvmetcp_func_start() 83 p_params->ll2_ooo_queue_id; in qed_sp_nvmetcp_func_start() 86 p_init->func_params.num_tasks = cpu_to_le16(p_params->num_tasks); in qed_sp_nvmetcp_func_start() 87 p_init->debug_flags = p_params->debug_mode; in qed_sp_nvmetcp_func_start() 89 p_params->glbl_q_params_addr); in qed_sp_nvmetcp_func_start() 91 p_queue->num_queues = p_params->num_queues; in qed_sp_nvmetcp_func_start() [all …]
|
D | qed_dev_api.h | 123 int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params); 253 struct qed_dmae_params *p_params); 269 struct qed_dmae_params *p_params); 289 u32 size_in_dwords, struct qed_dmae_params *p_params);
|
D | qed_l2.h | 147 struct qed_sp_vport_start_params *p_params); 203 struct qed_sp_vport_update_params *p_params, 312 struct qed_ntuple_filter_params *p_params); 392 struct qed_queue_start_common_params *p_params, 398 struct qed_sp_vport_start_params *p_params);
|
D | qed_cxt.c | 1979 struct qed_rdma_pf_params *p_params, in qed_rdma_set_pf_params() argument 1994 num_cons = min_t(u32, IWARP_MAX_QPS, p_params->num_qps); in qed_rdma_set_pf_params() 1998 num_qps = min_t(u32, ROCE_MAX_QPS, p_params->num_qps); in qed_rdma_set_pf_params() 2018 num_srqs = min_t(u32, QED_RDMA_MAX_SRQS, p_params->num_srqs); in qed_rdma_set_pf_params() 2053 struct qed_eth_pf_params *p_params = in qed_cxt_set_pf_params() local 2056 if (!p_params->num_vf_cons) in qed_cxt_set_pf_params() 2057 p_params->num_vf_cons = in qed_cxt_set_pf_params() 2060 p_params->num_cons, in qed_cxt_set_pf_params() 2061 p_params->num_vf_cons); in qed_cxt_set_pf_params() 2062 p_hwfn->p_cxt_mngr->arfs_count = p_params->num_arfs_filters; in qed_cxt_set_pf_params() [all …]
|
D | qed_mcp.c | 938 struct qed_load_req_params *p_params) in qed_mcp_load_req() argument 949 rc = eocre_get_mfw_drv_role(p_hwfn, p_params->drv_role, &mfw_drv_role); in qed_mcp_load_req() 954 in_params.timeout_val = p_params->timeout_val; in qed_mcp_load_req() 959 in_params.avoid_eng_reset = p_params->avoid_eng_reset; in qed_mcp_load_req() 983 p_params->override_force_load)) { in qed_mcp_load_req() 1045 p_params->load_code = out_params.load_code; in qed_mcp_load_req() 3705 struct qed_resc_lock_params *p_params) in __qed_mcp_resc_lock() argument 3711 switch (p_params->timeout) { in __qed_mcp_resc_lock() 3714 p_params->timeout = 0; in __qed_mcp_resc_lock() 3718 p_params->timeout = 0; in __qed_mcp_resc_lock() [all …]
|
D | qed_sriov.c | 977 struct qed_iov_vf_init_params *p_params) in qed_iov_init_hw_for_vf() argument 989 vf = qed_iov_get_vf_info(p_hwfn, p_params->rel_vf_id, false); in qed_iov_init_hw_for_vf() 997 p_params->rel_vf_id); in qed_iov_init_hw_for_vf() 1002 for (i = 0; i < p_params->num_queues; i++) { in qed_iov_init_hw_for_vf() 1007 qid = p_params->req_rx_queue[i]; in qed_iov_init_hw_for_vf() 1012 p_params->rel_vf_id, in qed_iov_init_hw_for_vf() 1017 qid = p_params->req_tx_queue[i]; in qed_iov_init_hw_for_vf() 1021 qid, p_params->rel_vf_id, max_vf_qzone); in qed_iov_init_hw_for_vf() 1030 p_params->rel_vf_id, qid, i); in qed_iov_init_hw_for_vf() 1038 vf->relative_vf_id, p_params->num_queues, (u16)cids); in qed_iov_init_hw_for_vf() [all …]
|
D | qed_vf.h | 931 struct qed_sp_vport_update_params *p_params); 1028 struct qed_mcp_link_params *p_params, 1167 struct qed_sp_vport_update_params *p_params) in qed_vf_pf_vport_update() argument 1226 *p_params, in __qed_vf_get_link_params()
|
D | qed_mcp.h | 881 struct qed_load_req_params *p_params); 1179 struct qed_ptt *p_ptt, struct qed_resc_lock_params *p_params); 1204 struct qed_resc_unlock_params *p_params);
|
D | qed_dev.c | 2991 struct qed_hw_init_params *p_params) in qed_vf_start() argument 2993 if (p_params->p_tunn) { in qed_vf_start() 2994 qed_vf_set_vf_start_tunn_update_param(p_params->p_tunn); in qed_vf_start() 2995 qed_vf_pf_tunnel_param_update(p_hwfn, p_params->p_tunn); in qed_vf_start() 3009 int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params) in qed_hw_init() argument 3020 if ((p_params->int_mode == QED_INT_MODE_MSI) && (cdev->num_hwfns > 1)) { in qed_hw_init() 3026 rc = qed_init_fw_data(cdev, p_params->bin_fw_data); in qed_hw_init() 3041 qed_vf_start(p_hwfn, p_params); in qed_hw_init() 3068 p_params->p_drv_load_params); in qed_hw_init() 3149 p_params->p_tunn, in qed_hw_init() [all …]
|
D | qed_hsi.h | 3791 struct qed_qm_common_rt_init_params *p_params); 3814 struct qed_qm_pf_rt_init_params *p_params);
|
/drivers/soundwire/ |
D | cadence_master.c | 1386 struct sdw_port_params *p_params, unsigned int bank) in cdns_port_params() argument 1391 int target_num = p_params->num; in cdns_port_params() 1392 int source_num = p_params->num; in cdns_port_params() 1414 u32p_replace_bits(&dpn_config, p_params->bps - 1, CDNS_DPN_CONFIG_WL); in cdns_port_params() 1415 u32p_replace_bits(&dpn_config, p_params->flow_mode, CDNS_DPN_CONFIG_PORT_FLOW); in cdns_port_params() 1416 u32p_replace_bits(&dpn_config, p_params->data_mode, CDNS_DPN_CONFIG_PORT_DAT); in cdns_port_params()
|
D | stream.c | 130 struct sdw_port_params *p_params = &p_rt->port_params; in sdw_program_slave_port_params() local 163 wbuf = FIELD_PREP(SDW_DPN_PORTCTRL_DATAMODE, p_params->data_mode); in sdw_program_slave_port_params() 164 wbuf |= FIELD_PREP(SDW_DPN_PORTCTRL_FLOWMODE, p_params->flow_mode); in sdw_program_slave_port_params() 176 ret = sdw_write(s_rt->slave, addr2, (p_params->bps - 1)); in sdw_program_slave_port_params()
|
D | qcom.c | 721 struct sdw_port_params *p_params, in qcom_swrm_port_params() argument 726 return ctrl->reg_write(ctrl, SWRM_DP_BLOCK_CTRL_1(p_params->num), in qcom_swrm_port_params() 727 p_params->bps - 1); in qcom_swrm_port_params()
|