/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_init_fw_funcs.c | 305 struct qed_qm_pf_rt_init_params *p_params, qed_tx_pq_map_rt_init() 308 struct init_qm_vport_params *vport_params = p_params->vport_params; qed_tx_pq_map_rt_init() 309 u16 num_pqs = p_params->num_pf_pqs + p_params->num_vf_pqs; qed_tx_pq_map_rt_init() 310 u16 first_pq_group = p_params->start_pq / QM_PF_QUEUE_GROUP_SIZE; qed_tx_pq_map_rt_init() 311 u16 last_pq_group = (p_params->start_pq + num_pqs - 1) / qed_tx_pq_map_rt_init() 320 u32 pq_mem_4kb = QM_PQ_MEM_4KB(p_params->num_pf_cids); qed_tx_pq_map_rt_init() 321 u32 vport_pq_mem_4kb = QM_PQ_MEM_4KB(p_params->num_vf_cids); qed_tx_pq_map_rt_init() 327 (u32)(p_params->pf_id)); qed_tx_pq_map_rt_init() 330 QM_PQ_SIZE_256B(p_params->num_pf_cids)); qed_tx_pq_map_rt_init() 332 QM_PQ_SIZE_256B(p_params->num_vf_cids)); qed_tx_pq_map_rt_init() 335 for (i = 0, pq_id = p_params->start_pq; i < num_pqs; i++, pq_id++) { qed_tx_pq_map_rt_init() 336 u8 voq = VOQ(p_params->port_id, p_params->pq_params[i].tc_id, qed_tx_pq_map_rt_init() 337 p_params->max_phys_tcs_per_port); qed_tx_pq_map_rt_init() 338 bool is_vf_pq = (i >= p_params->num_pf_pqs); qed_tx_pq_map_rt_init() 342 u8 vport_id_in_pf = p_params->pq_params[i].vport_id - qed_tx_pq_map_rt_init() 343 p_params->start_vport; qed_tx_pq_map_rt_init() 345 u16 first_tx_pq_id = pq_ids[p_params->pq_params[i].tc_id]; qed_tx_pq_map_rt_init() 349 pq_ids[p_params->pq_params[i].tc_id] = pq_id; qed_tx_pq_map_rt_init() 356 (p_params->pf_id << qed_tx_pq_map_rt_init() 366 is_vf_pq ? p_params->pq_params[i].vport_id : 0); qed_tx_pq_map_rt_init() 369 p_params->pq_params[i].wrr_group); qed_tx_pq_map_rt_init() 397 if (!p_params->is_first_pf) qed_tx_pq_map_rt_init() 454 struct qed_qm_pf_rt_init_params *p_params) qed_pf_wfq_rt_init() 456 u16 num_tx_pqs = p_params->num_pf_pqs + p_params->num_vf_pqs; qed_pf_wfq_rt_init() 461 if (p_params->pf_id < MAX_NUM_PFS_BB) qed_pf_wfq_rt_init() 465 (p_params->pf_id % MAX_NUM_PFS_BB); qed_pf_wfq_rt_init() 467 inc_val = QM_WFQ_INC_VAL(p_params->pf_wfq); qed_pf_wfq_rt_init() 472 STORE_RT_REG(p_hwfn, QM_REG_WFQPFWEIGHT_RT_OFFSET + p_params->pf_id, qed_pf_wfq_rt_init() 475 QM_REG_WFQPFUPPERBOUND_RT_OFFSET + p_params->pf_id, qed_pf_wfq_rt_init() 479 u8 voq = VOQ(p_params->port_id, p_params->pq_params[i].tc_id, qed_pf_wfq_rt_init() 480 p_params->max_phys_tcs_per_port); qed_pf_wfq_rt_init() 648 struct qed_qm_common_rt_init_params *p_params) qed_qm_common_rt_init() 654 (p_params->pf_wfq_en << qed_qm_common_rt_init() 656 (p_params->vport_wfq_en << qed_qm_common_rt_init() 658 (p_params->pf_rl_en << qed_qm_common_rt_init() 660 (p_params->vport_rl_en << qed_qm_common_rt_init() 668 qed_enable_pf_rl(p_hwfn, p_params->pf_rl_en); qed_qm_common_rt_init() 669 qed_enable_pf_wfq(p_hwfn, p_params->pf_wfq_en); qed_qm_common_rt_init() 670 qed_enable_vport_rl(p_hwfn, p_params->vport_rl_en); qed_qm_common_rt_init() 671 qed_enable_vport_wfq(p_hwfn, p_params->vport_wfq_en); qed_qm_common_rt_init() 673 p_params->max_ports_per_engine, qed_qm_common_rt_init() 674 p_params->max_phys_tcs_per_port, qed_qm_common_rt_init() 675 p_params->port_params); qed_qm_common_rt_init() 677 p_params->max_ports_per_engine, qed_qm_common_rt_init() 678 p_params->max_phys_tcs_per_port, qed_qm_common_rt_init() 679 p_params->port_params); qed_qm_common_rt_init() 685 struct qed_qm_pf_rt_init_params *p_params) qed_qm_pf_rt_init() 687 struct init_qm_vport_params *vport_params = p_params->vport_params; qed_qm_pf_rt_init() 688 u32 other_mem_size_4kb = QM_PQ_MEM_4KB(p_params->num_pf_cids + qed_qm_pf_rt_init() 689 p_params->num_tids) * qed_qm_pf_rt_init() 694 for (i = 0; i < p_params->num_vports; i++) qed_qm_pf_rt_init() 699 qed_other_pq_map_rt_init(p_hwfn, p_params->port_id, p_params->pf_id, qed_qm_pf_rt_init() 700 p_params->num_pf_cids, p_params->num_tids, 0); qed_qm_pf_rt_init() 703 qed_tx_pq_map_rt_init(p_hwfn, p_ptt, p_params, other_mem_size_4kb); qed_qm_pf_rt_init() 705 if (p_params->pf_wfq) qed_qm_pf_rt_init() 706 if (qed_pf_wfq_rt_init(p_hwfn, p_params)) qed_qm_pf_rt_init() 709 if (qed_pf_rl_rt_init(p_hwfn, p_params->pf_id, p_params->pf_rl)) qed_qm_pf_rt_init() 712 if (qed_vp_wfq_rt_init(p_hwfn, p_params->start_vport, qed_qm_pf_rt_init() 713 p_params->num_vports, vport_params)) qed_qm_pf_rt_init() 716 if (qed_vport_rl_rt_init(p_hwfn, p_params->start_vport, qed_qm_pf_rt_init() 717 p_params->num_vports, vport_params)) qed_qm_pf_rt_init() 302 qed_tx_pq_map_rt_init( struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, struct qed_qm_pf_rt_init_params *p_params, u32 base_mem_addr_4kb) qed_tx_pq_map_rt_init() argument 453 qed_pf_wfq_rt_init(struct qed_hwfn *p_hwfn, struct qed_qm_pf_rt_init_params *p_params) qed_pf_wfq_rt_init() argument 646 qed_qm_common_rt_init( struct qed_hwfn *p_hwfn, struct qed_qm_common_rt_init_params *p_params) qed_qm_common_rt_init() argument 683 qed_qm_pf_rt_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, struct qed_qm_pf_rt_init_params *p_params) qed_qm_pf_rt_init() argument
|
H A D | qed_sp_commands.c | 30 struct qed_sp_init_request_params *p_params) qed_sp_init_request() 51 p_ent->comp_mode = p_params->comp_mode; qed_sp_init_request() 60 if (!p_params->p_comp_data) qed_sp_init_request() 63 p_ent->comp_cb.cookie = p_params->p_comp_data->cookie; qed_sp_init_request() 67 if (!p_params->p_comp_data) qed_sp_init_request() 70 p_ent->comp_cb = *p_params->p_comp_data; qed_sp_init_request() 86 if (p_params->ramrod_data_size) qed_sp_init_request() 87 memset(&p_ent->ramrod, 0, p_params->ramrod_data_size); qed_sp_init_request() 24 qed_sp_init_request(struct qed_hwfn *p_hwfn, struct qed_spq_entry **pp_ent, u32 cid, u16 opaque_fid, u8 cmd, u8 protocol, struct qed_sp_init_request_params *p_params) qed_sp_init_request() argument
|
H A D | qed_l2.c | 193 struct qed_rss_params *p_params) qed_sp_vport_update_rss() 199 if (!p_params) { qed_sp_vport_update_rss() 207 rc = qed_fw_rss_eng(p_hwfn, p_params->rss_eng_id, &rss->rss_id); qed_sp_vport_update_rss() 211 p_ramrod->common.update_rss_flg = p_params->update_rss_config; qed_sp_vport_update_rss() 212 rss->update_rss_capabilities = p_params->update_rss_capabilities; qed_sp_vport_update_rss() 213 rss->update_rss_ind_table = p_params->update_rss_ind_table; qed_sp_vport_update_rss() 214 rss->update_rss_key = p_params->update_rss_key; qed_sp_vport_update_rss() 216 rss->rss_mode = p_params->rss_enable ? qed_sp_vport_update_rss() 222 !!(p_params->rss_caps & QED_RSS_IPV4)); qed_sp_vport_update_rss() 225 !!(p_params->rss_caps & QED_RSS_IPV6)); qed_sp_vport_update_rss() 228 !!(p_params->rss_caps & QED_RSS_IPV4_TCP)); qed_sp_vport_update_rss() 231 !!(p_params->rss_caps & QED_RSS_IPV6_TCP)); qed_sp_vport_update_rss() 234 !!(p_params->rss_caps & QED_RSS_IPV4_UDP)); qed_sp_vport_update_rss() 237 !!(p_params->rss_caps & QED_RSS_IPV6_UDP)); qed_sp_vport_update_rss() 238 rss->tbl_size = p_params->rss_table_size_log; qed_sp_vport_update_rss() 251 (u8)p_params->rss_ind_table[i], qed_sp_vport_update_rss() 262 rss->rss_key[i] = cpu_to_le32(p_params->rss_key[i]); qed_sp_vport_update_rss() 337 struct qed_sp_vport_update_params *p_params) qed_sp_update_mcast_bin() 344 if (p_params->update_approx_mcast_flg) { qed_sp_update_mcast_bin() 347 u32 *p_bins = (u32 *)p_params->bins; qed_sp_update_mcast_bin() 357 struct qed_sp_vport_update_params *p_params, qed_sp_vport_update() 361 struct qed_rss_params *p_rss_params = p_params->rss_params; qed_sp_vport_update() 369 rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id); qed_sp_vport_update() 380 p_params->opaque_fid, qed_sp_vport_update() 392 p_cmn->rx_active_flg = p_params->vport_active_rx_flg; qed_sp_vport_update() 393 p_cmn->update_rx_active_flg = p_params->update_vport_active_rx_flg; qed_sp_vport_update() 394 p_cmn->tx_active_flg = p_params->vport_active_tx_flg; qed_sp_vport_update() 395 p_cmn->update_tx_active_flg = p_params->update_vport_active_tx_flg; qed_sp_vport_update() 405 qed_sp_update_mcast_bin(p_hwfn, p_ramrod, p_params); qed_sp_vport_update() 407 qed_sp_update_accept_mode(p_hwfn, p_ramrod, p_params->accept_flags); qed_sp_vport_update() 676 struct qed_queue_start_common_params *p_params, qed_sp_eth_txq_start_ramrod() 691 p_tx_cid = &p_hwfn->p_tx_cids[p_params->queue_id]; qed_sp_eth_txq_start_ramrod() 695 rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id); qed_sp_eth_txq_start_ramrod() 714 p_ramrod->sb_id = cpu_to_le16(p_params->sb); qed_sp_eth_txq_start_ramrod() 715 p_ramrod->sb_index = p_params->sb_idx; qed_sp_eth_txq_start_ramrod() 734 struct qed_queue_start_common_params *p_params, qed_sp_eth_tx_queue_start() 744 rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_stats_id); qed_sp_eth_tx_queue_start() 748 p_tx_cid = &p_hwfn->p_tx_cids[p_params->queue_id]; qed_sp_eth_tx_queue_start() 764 p_params->queue_id, p_params->vport_id, p_params->sb); qed_sp_eth_tx_queue_start() 769 p_params, qed_sp_eth_tx_queue_start() 1483 struct qed_queue_start_common_params *p_params, qed_start_txq() 1491 hwfn_index = p_params->rss_id % cdev->num_hwfns; qed_start_txq() 1495 p_params->queue_id /= cdev->num_hwfns; qed_start_txq() 1499 p_params, qed_start_txq() 1505 DP_ERR(cdev, "Failed to start TXQ#%d\n", p_params->queue_id); qed_start_txq() 1511 p_params->queue_id, p_params->rss_id, p_params->vport_id, qed_start_txq() 1512 p_params->sb); qed_start_txq() 191 qed_sp_vport_update_rss(struct qed_hwfn *p_hwfn, struct vport_update_ramrod_data *p_ramrod, struct qed_rss_params *p_params) qed_sp_vport_update_rss() argument 335 qed_sp_update_mcast_bin(struct qed_hwfn *p_hwfn, struct vport_update_ramrod_data *p_ramrod, struct qed_sp_vport_update_params *p_params) qed_sp_update_mcast_bin() argument 356 qed_sp_vport_update(struct qed_hwfn *p_hwfn, struct qed_sp_vport_update_params *p_params, enum spq_mode comp_mode, struct qed_spq_comp_cb *p_comp_data) qed_sp_vport_update() argument 673 qed_sp_eth_txq_start_ramrod(struct qed_hwfn *p_hwfn, u16 opaque_fid, u32 cid, struct qed_queue_start_common_params *p_params, u8 stats_id, dma_addr_t pbl_addr, u16 pbl_size, union qed_qm_pq_params *p_pq_params) qed_sp_eth_txq_start_ramrod() argument 732 qed_sp_eth_tx_queue_start(struct qed_hwfn *p_hwfn, u16 opaque_fid, struct qed_queue_start_common_params *p_params, dma_addr_t pbl_addr, u16 pbl_size, void __iomem **pp_doorbell) qed_sp_eth_tx_queue_start() argument 1482 qed_start_txq(struct qed_dev *cdev, struct qed_queue_start_common_params *p_params, dma_addr_t pbl_addr, u16 pbl_size, void __iomem **pp_doorbell) qed_start_txq() argument
|
H A D | qed_hw.c | 345 struct qed_dmae_params *p_params) qed_dmae_opcode() 375 if (p_params->flags & QED_DMAE_FLAG_COMPLETION_DST) qed_dmae_opcode() 650 struct qed_dmae_params *p_params) qed_dmae_execute_command() 663 p_params); qed_dmae_execute_command() 679 if (!(p_params->flags & QED_DMAE_FLAG_RW_REPL_SRC)) { qed_dmae_execute_command() 747 union qed_qm_pq_params *p_params) qed_get_qm_pq() 752 !p_params) { qed_get_qm_pq() 761 if (p_params->core.tc == LB_TC) qed_get_qm_pq() 767 pq_id = p_params->eth.tc; qed_get_qm_pq() 342 qed_dmae_opcode(struct qed_hwfn *p_hwfn, const u8 is_src_type_grc, const u8 is_dst_type_grc, struct qed_dmae_params *p_params) qed_dmae_opcode() argument 645 qed_dmae_execute_command(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u64 src_addr, u64 dst_addr, u8 src_type, u8 dst_type, u32 size_in_dwords, struct qed_dmae_params *p_params) qed_dmae_execute_command() argument 745 qed_get_qm_pq(struct qed_hwfn *p_hwfn, enum protocol_type proto, union qed_qm_pq_params *p_params) qed_get_qm_pq() argument
|
H A D | qed_sp.h | 326 struct qed_sp_init_request_params *p_params);
|
H A D | qed_cxt.c | 836 struct qed_eth_pf_params *p_params = &p_hwfn->pf_params.eth_pf_params; qed_cxt_set_pf_params() local 844 p_params->num_cons); qed_cxt_set_pf_params()
|
H A D | qed_hsi.h | 1603 struct qed_qm_common_rt_init_params *p_params); 1626 struct qed_qm_pf_rt_init_params *p_params);
|
/linux-4.4.14/sound/soc/intel/skylake/ |
H A D | skl-pcm.c | 218 struct skl_pipe_params p_params = {0}; skl_pcm_hw_params() local 234 p_params.s_fmt = snd_pcm_format_width(params_format(params)); skl_pcm_hw_params() 235 p_params.ch = params_channels(params); skl_pcm_hw_params() 236 p_params.s_freq = params_rate(params); skl_pcm_hw_params() 237 p_params.host_dma_id = dma_id; skl_pcm_hw_params() 238 p_params.stream = substream->stream; skl_pcm_hw_params() 240 m_cfg = skl_tplg_fe_get_cpr_module(dai, p_params.stream); skl_pcm_hw_params() 242 skl_tplg_update_pipe_params(dai->dev, m_cfg, &p_params); skl_pcm_hw_params() 288 struct skl_pipe_params p_params = {0}; skl_be_hw_params() local 290 p_params.s_fmt = snd_pcm_format_width(params_format(params)); skl_be_hw_params() 291 p_params.ch = params_channels(params); skl_be_hw_params() 292 p_params.s_freq = params_rate(params); skl_be_hw_params() 293 p_params.stream = substream->stream; skl_be_hw_params() 294 skl_tplg_be_update_params(dai, &p_params); skl_be_hw_params() 333 struct skl_pipe_params p_params = {0}; skl_link_hw_params() local 349 p_params.s_fmt = snd_pcm_format_width(params_format(params)); skl_link_hw_params() 350 p_params.ch = params_channels(params); skl_link_hw_params() 351 p_params.s_freq = params_rate(params); skl_link_hw_params() 352 p_params.stream = substream->stream; skl_link_hw_params() 353 p_params.link_dma_id = hdac_stream(link_dev)->stream_tag - 1; skl_link_hw_params() 355 skl_tplg_be_update_params(dai, &p_params); skl_link_hw_params()
|
H A D | skl-topology.h | 227 struct skl_pipe_params *p_params; member in struct:skl_pipe
|
H A D | skl-topology.c | 231 struct skl_pipe_params *params = m_cfg->pipe->p_params; skl_tplg_update_module_params() 790 memcpy(pipe->p_params, params, sizeof(*params)); skl_tplg_update_pipe_params() 921 memcpy(pipe->p_params, params, sizeof(*params)); skl_tplg_be_fill_pipe_params() 1086 pipe->p_params = params; skl_tplg_add_pipe()
|
H A D | skl-messages.c | 335 struct skl_pipe_params *params = mconfig->pipe->p_params; skl_setup_cpr_gateway_cfg()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | intel_pm.c | 3136 struct intel_plane_wm_parameters *p_params, skl_compute_plane_wm() 3149 if (latency == 0 || !p->active || !p_params->enabled) skl_compute_plane_wm() 3152 bytes_per_pixel = p_params->y_bytes_per_pixel ? skl_compute_plane_wm() 3153 p_params->y_bytes_per_pixel : skl_compute_plane_wm() 3154 p_params->bytes_per_pixel; skl_compute_plane_wm() 3160 p_params->horiz_pixels, skl_compute_plane_wm() 3162 p_params->tiling, skl_compute_plane_wm() 3165 plane_bytes_per_line = p_params->horiz_pixels * bytes_per_pixel; skl_compute_plane_wm() 3168 if (p_params->tiling == I915_FORMAT_MOD_Y_TILED || skl_compute_plane_wm() 3169 p_params->tiling == I915_FORMAT_MOD_Yf_TILED) { skl_compute_plane_wm() 3172 if (intel_rotation_90_or_270(p_params->rotation)) { skl_compute_plane_wm() 3173 switch (p_params->bytes_per_pixel) { skl_compute_plane_wm() 3197 if (p_params->tiling == I915_FORMAT_MOD_Y_TILED || skl_compute_plane_wm() 3198 p_params->tiling == I915_FORMAT_MOD_Yf_TILED) skl_compute_plane_wm() 3134 skl_compute_plane_wm(const struct drm_i915_private *dev_priv, struct skl_pipe_wm_parameters *p, struct intel_plane_wm_parameters *p_params, uint16_t ddb_allocation, int level, uint16_t *out_blocks, uint8_t *out_lines ) skl_compute_plane_wm() argument
|