Home
last modified time | relevance | path

Searched refs:mpc (Results 1 – 25 of 81) sorted by relevance

1234

/linux-6.6.21/net/atm/
Dmpc.c69 static void MPOA_trigger_rcvd(struct k_message *msg, struct mpoa_client *mpc);
70 static void MPOA_res_reply_rcvd(struct k_message *msg, struct mpoa_client *mpc);
71 static void ingress_purge_rcvd(struct k_message *msg, struct mpoa_client *mpc);
72 static void egress_purge_rcvd(struct k_message *msg, struct mpoa_client *mpc);
73 static void mps_death(struct k_message *msg, struct mpoa_client *mpc);
74 static void clean_up(struct k_message *msg, struct mpoa_client *mpc,
77 struct mpoa_client *mpc);
79 struct mpoa_client *mpc);
81 struct mpoa_client *mpc);
83 static const uint8_t *copy_macs(struct mpoa_client *mpc,
[all …]
Dmpoa_caches.c133 static int cache_hit(in_cache_entry *entry, struct mpoa_client *mpc) in cache_hit() argument
143 if (entry->count > mpc->parameters.mpc_p1) { in cache_hit()
146 memcpy(msg.MPS_ctrl, mpc->mps_ctrl_addr, ATM_ESA_LEN); in cache_hit()
150 msg_to_mpoad(&msg, mpc); in cache_hit()
162 if (entry->count > mpc->parameters.mpc_p1 && in cache_hit()
165 mpc->dev->name, &entry->ctrl_info.in_dst_ip); in cache_hit()
168 memcpy(msg.MPS_ctrl, mpc->mps_ctrl_addr, ATM_ESA_LEN); in cache_hit()
173 msg_to_mpoad(&msg, mpc); in cache_hit()
324 static void in_destroy_cache(struct mpoa_client *mpc) in in_destroy_cache() argument
326 write_lock_irq(&mpc->ingress_lock); in in_destroy_cache()
[all …]
Dmpoa_proc.c107 struct mpoa_client *mpc; in mpc_start() local
111 for (mpc = mpcs; mpc; mpc = mpc->next) in mpc_start()
113 return mpc; in mpc_start()
133 struct mpoa_client *mpc = v; in mpc_show() local
145 seq_printf(m, "\nInterface %d:\n\n", mpc->dev_num); in mpc_show()
149 for (in_entry = mpc->in_cache; in_entry; in_entry = in_entry->next) { in mpc_show()
168 for (eg_entry = mpc->eg_cache; eg_entry; eg_entry = eg_entry->next) { in mpc_show()
Dmpoa_caches.h15 void atm_mpoa_init_cache(struct mpoa_client *mpc);
51 void (*destroy_cache)(struct mpoa_client *mpc);
77 void (*destroy_cache)(struct mpoa_client *mpc);
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/inc/hw/
Dmpc.h177 struct mpc { struct
203 struct mpc *mpc, argument
226 struct mpc *mpc,
247 struct mpc *mpc,
261 void (*mpc_init)(struct mpc *mpc);
263 struct mpc *mpc,
279 struct mpc *mpc,
297 struct mpc *mpc,
320 struct mpc *mpc,
340 struct mpc *mpc,
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_mpc.c45 void mpc32_mpc_init(struct mpc *mpc) in mpc32_mpc_init() argument
47 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc32_mpc_init()
50 mpc1_mpc_init(mpc); in mpc32_mpc_init()
52 if (mpc->ctx->dc->debug.enable_mem_low_power.bits.mpc) { in mpc32_mpc_init()
68 struct mpc *mpc, in mpc32_power_on_blnd_lut() argument
72 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc32_power_on_blnd_lut()
74 if (mpc->ctx->dc->debug.enable_mem_low_power.bits.cm) { in mpc32_power_on_blnd_lut()
78 } else if (!mpc->ctx->dc->debug.disable_mem_low_power) { in mpc32_power_on_blnd_lut()
91 static enum dc_lut_mode mpc32_get_post1dlut_current(struct mpc *mpc, uint32_t mpcc_id) in mpc32_get_post1dlut_current() argument
97 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc32_get_post1dlut_current()
[all …]
Ddcn32_mpc.h313 void mpc32_mpc_init(struct mpc *mpc);
315 struct mpc *mpc,
319 struct mpc *mpc,
323 struct mpc *mpc,
336 struct mpc *mpc,
340 struct mpc *mpc,
345 struct mpc *mpc,
349 struct mpc *mpc,
353 struct mpc *mpc,
357 struct mpc *mpc,
[all …]
Ddcn32_hwseq.c444 struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc; in dcn32_set_mpc_shaper_3dlut() local
463 result = mpc->funcs->program_3dlut(mpc, in dcn32_set_mpc_shaper_3dlut()
467 result = mpc->funcs->program_shaper(mpc, in dcn32_set_mpc_shaper_3dlut()
480 struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc; in dcn32_set_mcm_luts() local
494 result = mpc->funcs->program_1dlut(mpc, lut_params, mpcc_id); in dcn32_set_mcm_luts()
509 result = mpc->funcs->program_shaper(mpc, lut_params, mpcc_id); in dcn32_set_mcm_luts()
513 result = mpc->funcs->program_3dlut(mpc, &plane_state->lut3d_func->lut_3d, mpcc_id); in dcn32_set_mcm_luts()
515 result = mpc->funcs->program_3dlut(mpc, NULL, mpcc_id); in dcn32_set_mcm_luts()
525 struct mpc *mpc = dc->res_pool->mpc; in dcn32_set_input_transfer_func() local
532 if (mpc == NULL || plane_state == NULL) in dcn32_set_input_transfer_func()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_mpc.c48 struct mpc *mpc, in mpc3_is_dwb_idle() argument
51 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc3_is_dwb_idle()
63 struct mpc *mpc, in mpc3_set_dwb_mux() argument
67 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc3_set_dwb_mux()
74 struct mpc *mpc, in mpc3_disable_dwb_mux() argument
77 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc3_disable_dwb_mux()
84 struct mpc *mpc, in mpc3_set_out_rate_control() argument
90 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc3_set_out_rate_control()
102 enum dc_lut_mode mpc3_get_ogam_current(struct mpc *mpc, int mpcc_id) in mpc3_get_ogam_current() argument
110 struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc); in mpc3_get_ogam_current()
[all …]
Ddcn30_mpc.h993 struct mpc base;
1012 struct mpc *mpc,
1017 struct mpc *mpc,
1021 uint32_t mpcc3_acquire_rmu(struct mpc *mpc,
1025 struct mpc *mpc,
1030 struct mpc *mpc,
1035 struct mpc *mpc,
1041 struct mpc *mpc,
1047 struct mpc *mpc,
1052 struct mpc *mpc,
[all …]
Ddcn30_hwseq.c98 struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc; in dcn30_set_mpc_shaper_3dlut() local
129 acquired_rmu = mpc->funcs->acquire_rmu(mpc, mpcc_id, in dcn30_set_mpc_shaper_3dlut()
134 result = mpc->funcs->program_3dlut(mpc, &stream->lut3d_func->lut_3d, in dcn30_set_mpc_shaper_3dlut()
136 result = mpc->funcs->program_shaper(mpc, shaper_lut, in dcn30_set_mpc_shaper_3dlut()
140 mpc->funcs->release_rmu(mpc, mpcc_id); in dcn30_set_mpc_shaper_3dlut()
194 struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc; in dcn30_set_output_transfer_func() local
202 if (ret == false && mpc->funcs->set_output_gamma && stream->out_transfer_func) { in dcn30_set_output_transfer_func()
209 &mpc->blender_params, false)) in dcn30_set_output_transfer_func()
210 params = &mpc->blender_params; in dcn30_set_output_transfer_func()
217 mpc->funcs->set_output_gamma(mpc, mpcc_id, params); in dcn30_set_output_transfer_func()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_mpc.h125 struct mpc base;
142 struct mpc *mpc,
151 struct mpc *mpc,
156 struct mpc *mpc);
159 struct mpc *mpc,
163 struct mpc *mpc,
167 struct mpc *mpc,
172 struct mpc *mpc,
177 struct mpc *mpc,
181 struct mpc *mpc,
[all …]
Ddcn10_mpc.c40 void mpc1_set_bg_color(struct mpc *mpc, in mpc1_set_bg_color() argument
44 struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc); in mpc1_set_bg_color()
45 struct mpcc *bottommost_mpcc = mpc1_get_mpcc(mpc, mpcc_id); in mpc1_set_bg_color()
77 struct mpc *mpc, in mpc1_update_blending() argument
81 struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc); in mpc1_update_blending()
82 struct mpcc *mpcc = mpc1_get_mpcc(mpc, mpcc_id); in mpc1_update_blending()
95 struct mpc *mpc, in mpc1_update_stereo_mix() argument
99 struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc); in mpc1_update_stereo_mix()
109 void mpc1_assert_idle_mpcc(struct mpc *mpc, int id) in mpc1_assert_idle_mpcc() argument
111 struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc); in mpc1_assert_idle_mpcc()
[all …]
/linux-6.6.21/arch/x86/kernel/
Dmpparse.c139 static int __init smp_check_mpc(struct mpc_table *mpc, char *oem, char *str) in smp_check_mpc() argument
142 if (memcmp(mpc->signature, MPC_SIGNATURE, 4)) { in smp_check_mpc()
144 mpc->signature[0], mpc->signature[1], in smp_check_mpc()
145 mpc->signature[2], mpc->signature[3]); in smp_check_mpc()
148 if (mpf_checksum((unsigned char *)mpc, mpc->length)) { in smp_check_mpc()
152 if (mpc->spec != 0x01 && mpc->spec != 0x04) { in smp_check_mpc()
153 pr_err("MPTABLE: bad table version (%d)!!\n", mpc->spec); in smp_check_mpc()
156 if (!mpc->lapic) { in smp_check_mpc()
160 memcpy(oem, mpc->oem, 8); in smp_check_mpc()
164 memcpy(str, mpc->productid, 12); in smp_check_mpc()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_mpc.c49 struct mpc *mpc, in mpc2_update_blending() argument
53 struct dcn20_mpc *mpc20 = TO_DCN20_MPC(mpc); in mpc2_update_blending()
55 struct mpcc *mpcc = mpc1_get_mpcc(mpc, mpcc_id); in mpc2_update_blending()
74 struct mpc *mpc, in mpc2_set_denorm() argument
78 struct dcn20_mpc *mpc20 = TO_DCN20_MPC(mpc); in mpc2_set_denorm()
112 struct mpc *mpc, in mpc2_set_denorm_clamp() argument
116 struct dcn20_mpc *mpc20 = TO_DCN20_MPC(mpc); in mpc2_set_denorm_clamp()
132 struct mpc *mpc, in mpc2_set_output_csc() argument
138 struct dcn20_mpc *mpc20 = TO_DCN20_MPC(mpc); in mpc2_set_output_csc()
186 struct mpc *mpc, in mpc2_set_ocsc_default() argument
[all …]
Ddcn20_mpc.h261 struct mpc base;
278 struct mpc *mpc,
283 struct mpc *mpc,
288 struct mpc *mpc,
293 struct mpc *mpc,
299 struct mpc *mpc,
305 struct mpc *mpc,
309 void mpc2_assert_idle_mpcc(struct mpc *mpc, int id);
310 void mpc2_assert_mpcc_idle_before_connect(struct mpc *mpc, int mpcc_id);
311 void mpc20_power_on_ogam_lut(struct mpc *mpc, int mpcc_id, bool power_on);
Ddcn20_hwseq.c686 struct mpc *mpc = dc->res_pool->mpc; in dcn20_enable_stream_timing() local
758 if (mpc->funcs->set_out_rate_control) { in dcn20_enable_stream_timing()
760 mpc->funcs->set_out_rate_control( in dcn20_enable_stream_timing()
761 mpc, opp_inst[i], in dcn20_enable_stream_timing()
827 struct mpc *mpc = dc->res_pool->mpc; in dcn20_program_output_csc() local
831 if (mpc->funcs->power_on_mpc_mem_pwr) in dcn20_program_output_csc()
832 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, true); in dcn20_program_output_csc()
835 if (mpc->funcs->set_output_csc != NULL) in dcn20_program_output_csc()
836 mpc->funcs->set_output_csc(mpc, in dcn20_program_output_csc()
841 if (mpc->funcs->set_ocsc_default != NULL) in dcn20_program_output_csc()
[all …]
/linux-6.6.21/arch/mips/sgi-ip30/
Dip30-smp.c79 struct mpconf *mpc; in ip30_smp_setup() local
85 mpc = (struct mpconf *)MPCONF(i); in ip30_smp_setup()
86 if (mpc->magic == MPCONF_MAGIC) { in ip30_smp_setup()
91 i, mpc->prid, mpc->physid, mpc->virtid); in ip30_smp_setup()
112 struct mpconf *mpc = (struct mpconf *)MPCONF(cpu); in ip30_smp_boot_secondary() local
115 mpc->stackaddr = (void *)__KSTK_TOS(idle); in ip30_smp_boot_secondary()
118 mpc->lnch_parm = task_thread_info(idle); in ip30_smp_boot_secondary()
123 mpc->launch = smp_bootstrap; in ip30_smp_boot_secondary()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn201/
Ddcn201_hwseq.c291 res_pool->mpc->funcs->mpc_init(res_pool->mpc); in dcn201_init_hw()
377 struct mpc *mpc = dc->res_pool->mpc; in dcn201_plane_atomic_disconnect() local
386 if (mpc->funcs->get_mpcc_for_dpp_from_secondary) in dcn201_plane_atomic_disconnect()
387 mpcc_to_remove = mpc->funcs->get_mpcc_for_dpp_from_secondary(mpc_tree_params, dpp_id); in dcn201_plane_atomic_disconnect()
390 if (mpcc_to_remove != NULL && mpc->funcs->remove_mpcc_from_secondary) { in dcn201_plane_atomic_disconnect()
391 mpc->funcs->remove_mpcc_from_secondary(mpc, mpc_tree_params, mpcc_to_remove); in dcn201_plane_atomic_disconnect()
396 mpcc_to_remove = mpc->funcs->get_mpcc_for_dpp(mpc_tree_params, dpp_id); in dcn201_plane_atomic_disconnect()
398 mpc->funcs->remove_mpcc(mpc, mpc_tree_params, mpcc_to_remove); in dcn201_plane_atomic_disconnect()
426 struct mpc *mpc = dc->res_pool->mpc; in dcn201_update_mpcc() local
483 mpc->funcs->update_blending(mpc, &blnd_cfg, mpcc_id); in dcn201_update_mpcc()
[all …]
Ddcn201_resource.c722 static struct mpc *dcn201_mpc_create(struct dc_context *ctx, uint32_t num_mpcc) in dcn201_mpc_create()
918 if (pool->base.mpc != NULL) { in dcn201_resource_destruct()
919 kfree(TO_DCN201_MPC(pool->base.mpc)); in dcn201_resource_destruct()
920 pool->base.mpc = NULL; in dcn201_resource_destruct()
1136 dc->caps.color.mpc.gamut_remap = 0; in dcn201_resource_construct()
1137 dc->caps.color.mpc.num_3dluts = 0; in dcn201_resource_construct()
1138 dc->caps.color.mpc.shared_3d_lut = 0; in dcn201_resource_construct()
1139 dc->caps.color.mpc.ogam_ram = 1; in dcn201_resource_construct()
1140 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn201_resource_construct()
1141 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn201_resource_construct()
[all …]
Ddcn201_mpc.c43 struct mpc *mpc, in mpc201_set_out_rate_control() argument
49 struct dcn201_mpc *mpc201 = TO_DCN201_MPC(mpc); in mpc201_set_out_rate_control()
/linux-6.6.21/drivers/infiniband/hw/mana/
Dqp.c15 struct mana_port_context *mpc = netdev_priv(ndev); in mana_ib_cfg_vport_steering() local
38 req->vport = mpc->port_handle; in mana_ib_cfg_vport_steering()
88 mpc->port_handle, log_ind_tbl_size); in mana_ib_cfg_vport_steering()
107 struct mana_port_context *mpc; in mana_ib_create_qp_rss() local
169 mpc = netdev_priv(ndev); in mana_ib_create_qp_rss()
201 ret = mana_create_wq_obj(mpc, mpc->port_handle, GDMA_RQ, in mana_ib_create_qp_rss()
248 mana_destroy_wq_obj(mpc, GDMA_RQ, wq->rx_object); in mana_ib_create_qp_rss()
274 struct mana_port_context *mpc; in mana_ib_create_qp_raw() local
313 mpc = netdev_priv(ndev); in mana_ib_create_qp_raw()
314 ibdev_dbg(&mdev->ib_dev, "port %u ndev %p mpc %p\n", port, ndev, mpc); in mana_ib_create_qp_raw()
[all …]
Dmain.c12 struct mana_port_context *mpc; in mana_ib_uncfg_vport() local
18 mpc = netdev_priv(ndev); in mana_ib_uncfg_vport()
26 mana_uncfg_vport(mpc); in mana_ib_uncfg_vport()
35 struct mana_port_context *mpc; in mana_ib_cfg_vport() local
42 mpc = netdev_priv(ndev); in mana_ib_cfg_vport()
54 err = mana_cfg_vport(mpc, pd->pdn, doorbell_id); in mana_ib_cfg_vport()
65 pd->tx_shortform_allowed = mpc->tx_shortform_allowed; in mana_ib_cfg_vport()
66 pd->tx_vp_offset = mpc->tx_vp_offset; in mana_ib_cfg_vport()
69 mpc->port_handle, pd->pdn, doorbell_id); in mana_ib_cfg_vport()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/
Ddc_hw_sequencer.c567 block_sequence[*num_steps].params.power_on_mpc_mem_pwr_params.mpc = dc->res_pool->mpc; in hwss_build_fast_sequence()
574 block_sequence[*num_steps].params.set_output_csc_params.mpc = dc->res_pool->mpc; in hwss_build_fast_sequence()
581 block_sequence[*num_steps].params.set_ocsc_default_params.mpc = dc->res_pool->mpc; in hwss_build_fast_sequence()
756 struct mpc *mpc = params->power_on_mpc_mem_pwr_params.mpc; in hwss_power_on_mpc_mem_pwr() local
760 if (mpc->funcs->power_on_mpc_mem_pwr) in hwss_power_on_mpc_mem_pwr()
761 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, power_on); in hwss_power_on_mpc_mem_pwr()
766 struct mpc *mpc = params->set_output_csc_params.mpc; in hwss_set_output_csc() local
771 if (mpc->funcs->set_output_csc != NULL) in hwss_set_output_csc()
772 mpc->funcs->set_output_csc(mpc, in hwss_set_output_csc()
780 struct mpc *mpc = params->set_ocsc_default_params.mpc; in hwss_set_ocsc_default() local
[all …]
/linux-6.6.21/drivers/net/ethernet/microsoft/mana/
Dmana_en.c514 static void mana_pre_dealloc_rxbufs(struct mana_port_context *mpc) in mana_pre_dealloc_rxbufs() argument
519 dev = mpc->ac->gdma_dev->gdma_context->dev; in mana_pre_dealloc_rxbufs()
521 if (!mpc->rxbufs_pre) in mana_pre_dealloc_rxbufs()
524 if (!mpc->das_pre) in mana_pre_dealloc_rxbufs()
527 while (mpc->rxbpre_total) { in mana_pre_dealloc_rxbufs()
528 i = --mpc->rxbpre_total; in mana_pre_dealloc_rxbufs()
529 dma_unmap_single(dev, mpc->das_pre[i], mpc->rxbpre_datasize, in mana_pre_dealloc_rxbufs()
531 put_page(virt_to_head_page(mpc->rxbufs_pre[i])); in mana_pre_dealloc_rxbufs()
534 kfree(mpc->das_pre); in mana_pre_dealloc_rxbufs()
535 mpc->das_pre = NULL; in mana_pre_dealloc_rxbufs()
[all …]

1234