/openbmc/linux/net/atm/ |
H A D | mpc.c | 69 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 …]
|
H A D | mpoa_caches.c | 133 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 …]
|
H A D | mpoa_proc.c | 107 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | mpc.h | 177 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_mpc.c | 45 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 …]
|
H A D | dcn32_mpc.h | 313 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 …]
|
H A D | dcn32_hwseq.c | 444 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_mpc.c | 48 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 …]
|
H A D | dcn30_mpc.h | 993 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 …]
|
H A D | dcn30_hwseq.c | 98 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 if (mpc->funcs->set_output_gamma) in dcn30_set_output_transfer_func() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_mpc.h | 125 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 …]
|
H A D | dcn10_mpc.c | 40 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 …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | mpparse.c | 139 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_mpc.c | 49 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 …]
|
H A D | dcn20_mpc.h | 261 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);
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | mpspec.c | 68 struct mpc_config_processor *mpc; in mp_write_processor() local 89 mpc = (struct mpc_config_processor *)mp_next_mpc_entry(mc); in mp_write_processor() 90 mpc->mpc_type = MP_PROCESSOR; in mp_write_processor() 91 mpc->mpc_apicid = plat->cpu_id; in mp_write_processor() 92 mpc->mpc_apicver = apicver; in mp_write_processor() 95 mpc->mpc_cpuflag = cpuflag; in mp_write_processor() 96 mpc->mpc_cpusignature = cpusignature; in mp_write_processor() 97 mpc->mpc_cpufeature = cpufeature; in mp_write_processor() 98 mpc->mpc_reserved[0] = 0; in mp_write_processor() 99 mpc->mpc_reserved[1] = 0; in mp_write_processor() [all …]
|
/openbmc/linux/arch/mips/sgi-ip30/ |
H A D | ip30-smp.c | 79 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn201/ |
H A D | dcn201_hwseq.c | 291 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 …]
|
/openbmc/linux/drivers/infiniband/hw/mana/ |
H A D | qp.c | 15 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 …]
|
H A D | main.c | 12 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()
|
/openbmc/qemu/hw/arm/ |
H A D | mps2-tz.c | 99 int mpc; /* MPC number, -1 for "not behind an MPC" */ member 147 TZMPC mpc[3]; member 213 .mpc = 0, 219 .mpc = 1, 225 .mpc = 2, 231 .mpc = 0, 239 .mpc = -1, 254 .mpc = 0, 261 .mpc = 1, 268 .mpc = 2, [all …]
|
H A D | musca.c | 72 TZMPC mpc[MUSCA_MPC_MAX]; member 224 TZMPC *mpc = opaque; in make_mpc() local 225 int i = mpc - &mms->mpc[0]; in make_mpc() 259 object_initialize_child(OBJECT(mms), mpcname, mpc, TYPE_TZ_MPC); in make_mpc() 260 object_property_set_link(OBJECT(mpc), "downstream", OBJECT(downstream), in make_mpc() 262 sysbus_realize(SYS_BUS_DEVICE(mpc), &error_fatal); in make_mpc() 264 upstream = sysbus_mmio_get_region(SYS_BUS_DEVICE(mpc), 1); in make_mpc() 267 qdev_connect_gpio_out_named(DEVICE(mpc), "irq", 0, in make_mpc() 273 return sysbus_mmio_get_region(SYS_BUS_DEVICE(mpc), 0); in make_mpc() 337 { "mpc0", make_mpc, &mms->mpc[0], 0x12000, 0x1000 }, in make_musca_a_devs() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_hw_sequencer.c | 567 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() 759 struct mpc *mpc = params->power_on_mpc_mem_pwr_params.mpc; in hwss_power_on_mpc_mem_pwr() local 763 if (mpc->funcs->power_on_mpc_mem_pwr) in hwss_power_on_mpc_mem_pwr() 764 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, power_on); in hwss_power_on_mpc_mem_pwr() 769 struct mpc *mpc = params->set_output_csc_params.mpc; in hwss_set_output_csc() local 774 if (mpc->funcs->set_output_csc != NULL) in hwss_set_output_csc() 775 mpc->funcs->set_output_csc(mpc, in hwss_set_output_csc() 783 struct mpc *mpc = params->set_ocsc_default_params.mpc; in hwss_set_ocsc_default() local [all …]
|
/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_en.c | 514 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 …]
|
/openbmc/openbmc/poky/meta/recipes-support/libmpc/ |
H A D | libmpc_1.3.1.bb | 6 SRC_URI = "${GNU_MIRROR}/mpc/mpc-${PV}.tar.gz" 10 S = "${WORKDIR}/mpc-${PV}"
|