| /linux/arch/x86/kernel/ |
| H A D | mpparse.c | 140 static int __init smp_check_mpc(struct mpc_table *mpc, char *oem, char *str) in smp_check_mpc() argument 143 if (memcmp(mpc->signature, MPC_SIGNATURE, 4)) { in smp_check_mpc() 145 mpc->signature[0], mpc->signature[1], in smp_check_mpc() 146 mpc->signature[2], mpc->signature[3]); in smp_check_mpc() 149 if (mpf_checksum((unsigned char *)mpc, mpc->length)) { in smp_check_mpc() 153 if (mpc->spec != 0x01 && mpc->spec != 0x04) { in smp_check_mpc() 154 pr_err("MPTABLE: bad table version (%d)!!\n", mpc->spec); in smp_check_mpc() 157 if (!mpc->lapic) { in smp_check_mpc() 161 memcpy(oem, mpc->oem, 8); in smp_check_mpc() 165 memcpy(str, mpc->productid, 12); in smp_check_mpc() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/mpc/dcn20/ |
| 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);
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
| H A D | dcn30_hwseq.c | 47 #include "mpc.h" 187 pool->mpc->funcs->read_mpcc_state(pool->mpc, i, &s); in dcn30_log_color_state() 188 mpc3_get_gamut_remap(pool->mpc, i, &s.gamut_remap); in dcn30_log_color_state() 230 dc->caps.color.mpc.gamut_remap, in dcn30_log_color_state() 231 dc->caps.color.mpc.num_3dluts, in dcn30_log_color_state() 232 dc->caps.color.mpc.ogam_ram, in dcn30_log_color_state() 233 dc->caps.color.mpc.ocsc); in dcn30_log_color_state() 258 static bool dcn30_set_mpc_shaper_3dlut(struct dpp *dpp, struct mpc *mpc, in dcn30_set_blend_lut() 260 dcn30_set_mpc_shaper_3dlut(struct dpp * dpp,struct mpc * mpc,int mpcc_id,const struct dc_stream_state * stream) dcn30_set_mpc_shaper_3dlut() argument 361 struct mpc *mpc = params->mpc; dcn30_program_gamut_remap() local 402 struct mpc *mpc = otf_params->mpc; dcn30_set_output_transfer_func() local 1319 struct mpc *mpc = dc->res_pool->mpc; dcn30_get_underflow_debug_data() local [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn42/ |
| H A D | dcn42_resource.c | 773 .mpc = true, 1059 static struct mpc *dcn42_mpc_create( in dcn42_mpc_create() 1581 if (pool->base.mpc != NULL) { in dcn42_resource_destruct() 1582 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn42_resource_destruct() 1583 pool->base.mpc = NULL; in dcn42_resource_destruct() 2119 dc->caps.color.mpc.gamut_remap = 1; in dcn42_resource_construct() 2121 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; in dcn42_resource_construct() 2122 dc->caps.color.mpc.num_rmcm_3dluts = 2; in dcn42_resource_construct() 2123 dc->caps.color.mpc.ogam_ram = 1; in dcn42_resource_construct() 2124 dc->caps.color.mpc in dcn42_resource_construct() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn42b/ |
| H A D | dcn42b_resource.c | 831 .mpc = true, 1123 static struct mpc *dcn42b_mpc_create( in dcn42b_mpc_create() 1574 if (pool->base.mpc != NULL) { in dcn42b_resource_destruct() 1575 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn42b_resource_destruct() 1576 pool->base.mpc = NULL; in dcn42b_resource_destruct() 2085 dc->caps.color.mpc.gamut_remap = 1; in dcn42b_resource_construct() 2087 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; in dcn42b_resource_construct() 2088 dc->caps.color.mpc.num_rmcm_3dluts = 2; in dcn42b_resource_construct() 2089 dc->caps.color.mpc.ogam_ram = 1; in dcn42b_resource_construct() 2090 dc->caps.color.mpc in dcn42b_resource_construct() [all...] |
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_en.c | 705 void mana_pre_dealloc_rxbufs(struct mana_port_context *mpc) in mana_pre_dealloc_rxbufs() 710 dev = mpc->ac->gdma_dev->gdma_context->dev; in mana_pre_dealloc_rxbufs() 712 if (!mpc->rxbufs_pre) in mana_pre_dealloc_rxbufs() 715 if (!mpc->das_pre) 718 while (mpc->rxbpre_total) { in mana_get_rxbuf_pre() 719 i = --mpc->rxbpre_total; in mana_get_rxbuf_pre() local 720 dma_unmap_single(dev, mpc->das_pre[i], mpc->rxbpre_datasize, in mana_get_rxbuf_pre() 722 put_page(virt_to_head_page(mpc->rxbufs_pre[i])); in mana_get_rxbuf_pre() 725 kvfree(mpc in mana_get_rxbuf_pre() 682 mana_pre_dealloc_rxbufs(struct mana_port_context * mpc) mana_pre_dealloc_rxbufs() argument 852 mana_pre_alloc_rxbufs(struct mana_port_context * mpc,int new_mtu,int num_queues) mana_pre_alloc_rxbufs() argument 909 struct mana_port_context *mpc = netdev_priv(ndev); mana_change_mtu() local 2950 struct mana_port_context *mpc = netdev_priv(rxq->ndev); mana_fill_rx_oob() local 3045 struct mana_port_context *mpc = netdev_priv(rxq->ndev); mana_create_page_pool() local [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/dcn201/ |
| H A D | dcn201_mpc.c | 43 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()
|
| H A D | dcn201_mpc.h | 71 struct mpc base;
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/ |
| H A D | dcn303_resource.c | 734 static struct mpc *dcn303_mpc_create(struct dc_context *ctx, int num_mpcc, int num_rmu) in dcn303_mpc_create() 1096 if (pool->mpc != NULL) { in dcn303_resource_destruct() 1097 kfree(TO_DCN20_MPC(pool->mpc)); in dcn303_resource_destruct() 1098 pool->mpc = NULL; in dcn303_resource_destruct() 1357 dc->caps.color.mpc.gamut_remap = 1; in dcn303_resource_construct() 1358 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->res_cap->num_mpc_3dlut; in dcn303_resource_construct() 1359 dc->caps.color.mpc.ogam_ram = 1; in dcn303_resource_construct() 1360 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn303_resource_construct() 1361 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn303_resource_construct() 1362 dc->caps.color.mpc.ogam_rom_caps.gamma2_2 = 0; in dcn303_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/ |
| H A D | dcn302_resource.c | 770 static struct mpc *dcn302_mpc_create(struct dc_context *ctx, int num_mpcc, int num_rmu) in dcn302_mpc_create() 1152 if (pool->mpc != NULL) { in dcn302_resource_destruct() 1153 kfree(TO_DCN20_MPC(pool->mpc)); in dcn302_resource_destruct() 1154 pool->mpc = NULL; in dcn302_resource_destruct() 1413 dc->caps.color.mpc.gamut_remap = 1; in dcn302_resource_construct() 1414 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->res_cap->num_mpc_3dlut; in dcn302_resource_construct() 1415 dc->caps.color.mpc.ogam_ram = 1; in dcn302_resource_construct() 1416 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn302_resource_construct() 1417 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn302_resource_construct() 1418 dc->caps.color.mpc.ogam_rom_caps.gamma2_2 = 0; in dcn302_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/ |
| H A D | dcn316_resource.c | 939 .mpc = true, 1057 static struct mpc *dcn31_mpc_create( in dcn31_mpc_create() 1543 if (pool->base.mpc != NULL) { in dcn316_resource_destruct() 1544 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn316_resource_destruct() 1545 pool->base.mpc = NULL; in dcn316_resource_destruct() 1965 dc->caps.color.mpc.gamut_remap = 1; in dcn316_resource_construct() 1966 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //2 in dcn316_resource_construct() 1967 dc->caps.color.mpc.ogam_ram = 1; in dcn316_resource_construct() 1968 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn316_resource_construct() 1969 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn316_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/ |
| H A D | dcn314_resource.c | 964 .mpc = true, 1122 static struct mpc *dcn31_mpc_create( in dcn31_mpc_create() 1608 if (pool->base.mpc != NULL) { in dcn314_resource_destruct() 1609 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn314_resource_destruct() 1610 pool->base.mpc = NULL; in dcn314_resource_destruct() 2048 dc->caps.color.mpc.gamut_remap = 1; in dcn314_resource_construct() 2049 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //2 in dcn314_resource_construct() 2050 dc->caps.color.mpc.ogam_ram = 1; in dcn314_resource_construct() 2051 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn314_resource_construct() 2052 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn314_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn36/ |
| H A D | dcn36_resource.c | 783 .mpc = true, 990 static struct mpc *dcn35_mpc_create( in dcn35_mpc_create() 1599 if (pool->base.mpc != NULL) { in dcn36_resource_destruct() 1600 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn36_resource_destruct() 1601 pool->base.mpc = NULL; in dcn36_resource_destruct() 2044 dc->caps.color.mpc.gamut_remap = 1; in dcn36_resource_construct() 2045 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //2 in dcn36_resource_construct() 2046 dc->caps.color.mpc.ogam_ram = 1; in dcn36_resource_construct() 2047 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn36_resource_construct() 2048 dc->caps.color.mpc in dcn36_resource_construct() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/ |
| H A D | dcn35_resource.c | 796 .mpc = true, 1003 static struct mpc *dcn35_mpc_create( in dcn35_mpc_create() 1612 if (pool->base.mpc != NULL) { in dcn35_resource_destruct() 1613 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn35_resource_destruct() 1614 pool->base.mpc = NULL; in dcn35_resource_destruct() 2074 dc->caps.color.mpc.gamut_remap = 1; in dcn35_resource_construct() 2075 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //2 in dcn35_resource_construct() 2076 dc->caps.color.mpc.ogam_ram = 1; in dcn35_resource_construct() 2077 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn35_resource_construct() 2078 dc->caps.color.mpc in dcn35_resource_construct() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn321/ |
| H A D | dcn321_resource.c | 762 .mpc = false, 1010 static struct mpc *dcn321_mpc_create( in dcn321_mpc_create() 1537 if (pool->base.mpc != NULL) { in dcn321_resource_destruct() 1538 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn321_resource_destruct() 1539 pool->base.mpc = NULL; in dcn321_resource_destruct() 1935 dc->caps.color.mpc.gamut_remap = 1; in dcn321_resource_construct() 1936 …dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //4, configurable to … in dcn321_resource_construct() 1937 dc->caps.color.mpc.ogam_ram = 1; in dcn321_resource_construct() 1938 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn321_resource_construct() 1939 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn321_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/ |
| H A D | dcn351_resource.c | 776 .mpc = true, 983 static struct mpc *dcn35_mpc_create( in dcn35_mpc_create() 1592 if (pool->base.mpc != NULL) { in dcn351_resource_destruct() 1593 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn351_resource_destruct() 1594 pool->base.mpc = NULL; in dcn351_resource_destruct() 2047 dc->caps.color.mpc.gamut_remap = 1; in dcn351_resource_construct() 2048 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //2 in dcn351_resource_construct() 2049 dc->caps.color.mpc.ogam_ram = 1; in dcn351_resource_construct() 2050 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn351_resource_construct() 2051 dc->caps.color.mpc in dcn351_resource_construct() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
| H A D | dcn31_resource.c | 944 .mpc = true, 1065 static struct mpc *dcn31_mpc_create( in dcn31_mpc_create() 1548 if (pool->base.mpc != NULL) { in dcn31_resource_destruct() 1549 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn31_resource_destruct() 1550 pool->base.mpc = NULL; in dcn31_resource_destruct() 2119 dc->caps.color.mpc.gamut_remap = 1; in dcn31_resource_construct() 2120 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //2 in dcn31_resource_construct() 2121 dc->caps.color.mpc.ogam_ram = 1; in dcn31_resource_construct() 2122 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn31_resource_construct() 2123 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn31_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/ |
| H A D | dcn315_resource.c | 944 .mpc = true, 1064 static struct mpc *dcn31_mpc_create( in dcn31_mpc_create() 1550 if (pool->base.mpc != NULL) { in dcn315_resource_destruct() 1551 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn315_resource_destruct() 1552 pool->base.mpc = NULL; in dcn315_resource_destruct() 2092 dc->caps.color.mpc.gamut_remap = 1; in dcn315_resource_construct() 2093 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; in dcn315_resource_construct() 2094 dc->caps.color.mpc.ogam_ram = 1; in dcn315_resource_construct() 2095 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn315_resource_construct() 2096 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn315_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn401/ |
| H A D | dcn401_resource.c | 775 .mpc = false, 1027 static struct mpc *dcn401_mpc_create( in dcn401_mpc_create() 1567 if (pool->base.mpc != NULL) { in dcn401_resource_destruct() 1568 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn401_resource_destruct() 1569 pool->base.mpc = NULL; in dcn401_resource_destruct() 2141 dc->caps.color.mpc.gamut_remap = 1; in dcn401_resource_construct() 2142 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //4, configurable to be before or after BLND in MPCC in dcn401_resource_construct() 2143 dc->caps.color.mpc.ogam_ram = 1; in dcn401_resource_construct() 2144 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn401_resource_construct() 2145 dc->caps.color.mpc in dcn401_resource_construct() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn50/ |
| H A D | dcn50_hwseq.c | 18 #include "mpc.h" 236 /*call the dcn2 method which uses mpc csc*/ in dcn50_update_dchubp_dpp() 432 struct mpc *mpc = dc->res_pool->mpc; in dcn50_update_mpcc_sequence() 477 hwss_add_mpc_update_blending(seq_state, mpc, blnd_cfg, mpcc_id); in dcn50_update_mpcc_sequence() 485 new_mpcc = mpc->funcs->get_mpcc_for_dpp(mpc_tree_params, mpcc_id); in dcn50_update_mpcc_sequence() 489 hwss_add_mpc_remove_mpcc(seq_state, mpc, mpc_tree_params, new_mpcc); in dcn50_update_mpcc_sequence() 493 hwss_add_mpc_assert_idle_mpcc(seq_state, mpc, mpcc_id); in dcn50_update_mpcc_sequence() 497 hwss_add_mpc_insert_plane(seq_state, mpc, mpc_tree_param 422 struct mpc *mpc = dc->res_pool->mpc; dcn50_update_mpcc_sequence() local [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn60/ |
| H A D | dcn60_resource.c | 646 .mpc = false, 1195 static struct mpc *dcn60_mpc_create( in dcn60_mpc_create() 1693 if (pool->base.mpc != NULL) { in dcn60_resource_destruct() 1694 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn60_resource_destruct() 1695 pool->base.mpc = NULL; in dcn60_resource_destruct() 2092 dc->caps.color.mpc.gamut_remap = 1; in dcn60_resource_construct() 2093 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //4, configurable to be before or after BLND in MPCC in dcn60_resource_construct() 2094 dc->caps.color.mpc.ogam_ram = 1; in dcn60_resource_construct() 2095 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn60_resource_construct() 2096 dc->caps.color.mpc in dcn60_resource_construct() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/ |
| H A D | dcn32_resource.c | 772 .mpc = false, 1022 static struct mpc *dcn32_mpc_create( in dcn32_mpc_create() 1562 if (pool->base.mpc != NULL) { in dcn32_resource_destruct() 1563 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn32_resource_destruct() 1564 pool->base.mpc = NULL; in dcn32_resource_destruct() 2457 dc->caps.color.mpc.gamut_remap = 1; in dcn32_resource_construct() 2458 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; //4, configurable to be before or after BLND in MPCC in dcn32_resource_construct() 2459 dc->caps.color.mpc.ogam_ram = 1; in dcn32_resource_construct() 2460 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn32_resource_construct() 2461 dc->caps.color.mpc in dcn32_resource_construct() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/ |
| H A D | dcn30_resource.c | 886 static struct mpc *dcn30_mpc_create( in dcn30_mpc_create() 1244 if (pool->base.mpc != NULL) { in dcn30_resource_destruct() 1245 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn30_resource_destruct() 1246 pool->base.mpc = NULL; in dcn30_resource_destruct() 2512 dc->caps.color.mpc.gamut_remap = 1; in dcn30_resource_construct() 2513 dc->caps.color.mpc.num_3dluts = (uint16_t)pool->base.res_cap->num_mpc_3dlut; in dcn30_resource_construct() 2514 dc->caps.color.mpc.ogam_ram = 1; in dcn30_resource_construct() 2515 dc->caps.color.mpc.ogam_rom_caps.srgb = 0; in dcn30_resource_construct() 2516 dc->caps.color.mpc.ogam_rom_caps.bt2020 = 0; in dcn30_resource_construct() 2517 dc->caps.color.mpc.ogam_rom_caps.gamma2_2 = 0; in dcn30_resource_construct() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | mpspec_def.h | 162 char mpc[8]; member
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 839 .mpc = dc->res_pool->mpc, in dc_stream_set_gamut_remap() 5695 * and mpc split feature, it need use commit_minimal_transition_state to transition safely. in commit_minimal_transition_state() 5696 * After OS exit MPO, it will back to use odm and mpc split with all of pipes, we need in commit_minimal_transition_state() 7688 state->mpc.mpcc_mode[i] = (plane_state->cm.blend_func.type != TF_TYPE_BYPASS) ? 1 : 0; in dc_capture_register_software_state() 7689 state->mpc.mpcc_alpha_blend_mode[i] = plane_state->per_pixel_alpha ? 1 : 0; in dc_capture_register_software_state() 7690 state->mpc.mpcc_alpha_multiplied_mode[i] = plane_state->pre_multiplied_alpha ? 1 : 0; in dc_capture_register_software_state() 7691 state->mpc.mpcc_blnd_active_overlap_only[i] = 0; /* Default - no overlap restriction */ in dc_capture_register_software_state() 7692 state->mpc.mpcc_global_alpha[i] = plane_state->global_alpha_value; in dc_capture_register_software_state() 7693 state->mpc in dc_capture_register_software_state() [all...] |