/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dce_calcs.c | 79 const struct bw_calcs_vbios *vbios, in calculate_bandwidth() 141 yclk[low] = vbios->low_yclk; in calculate_bandwidth() 142 yclk[mid] = vbios->mid_yclk; in calculate_bandwidth() 143 yclk[high] = vbios->high_yclk; in calculate_bandwidth() 144 sclk[s_low] = vbios->low_sclk; in calculate_bandwidth() 145 sclk[s_mid1] = vbios->mid1_sclk; in calculate_bandwidth() 146 sclk[s_mid2] = vbios->mid2_sclk; in calculate_bandwidth() 147 sclk[s_mid3] = vbios->mid3_sclk; in calculate_bandwidth() 148 sclk[s_mid4] = vbios->mid4_sclk; in calculate_bandwidth() 149 sclk[s_mid5] = vbios in calculate_bandwidth() 77 calculate_bandwidth( const struct bw_calcs_dceip *dceip, const struct bw_calcs_vbios *vbios, struct bw_calcs_data *data) calculate_bandwidth() argument 2050 struct bw_calcs_vbios *vbios; bw_calcs_init() local 2768 is_display_configuration_supported( const struct bw_calcs_vbios *vbios, const struct dce_bw_output *calcs_output) is_display_configuration_supported() argument 3043 bw_calcs(struct dc_context *ctx, const struct bw_calcs_dceip *dceip, const struct bw_calcs_vbios *vbios, const struct pipe_ctx pipe[], int pipe_count, struct dce_bw_output *calcs_output) bw_calcs() argument [all...] |
H A D | calcs_logger.h | 124 static void print_bw_calcs_vbios(struct dc_context *ctx, const struct bw_calcs_vbios *vbios) in print_bw_calcs_vbios() argument 128 DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_vbios vbios"); in print_bw_calcs_vbios() 130 DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines memory_type: %d", vbios->memory_type); in print_bw_calcs_vbios() 131 DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines memory_type: %d", vbios->memory_type); in print_bw_calcs_vbios() 132 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] dram_channel_width_in_bits: %d", vbios->dram_channel_width_in_bits); in print_bw_calcs_vbios() 133 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] number_of_dram_channels: %d", vbios->number_of_dram_channels); in print_bw_calcs_vbios() 134 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] number_of_dram_banks: %d", vbios->number_of_dram_banks); in print_bw_calcs_vbios() 135 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] low_yclk: %d", bw_fixed_to_int(vbios->low_yclk)); in print_bw_calcs_vbios() 136 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid_yclk: %d", bw_fixed_to_int(vbios->mid_yclk)); in print_bw_calcs_vbios() 137 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] high_yclk: %d", bw_fixed_to_int(vbios in print_bw_calcs_vbios() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/ |
H A D | dce_calcs.c | 79 const struct bw_calcs_vbios *vbios, in calculate_bandwidth() 126 yclk[low] = vbios->low_yclk; in calculate_bandwidth() 127 yclk[mid] = vbios->mid_yclk; in calculate_bandwidth() 128 yclk[high] = vbios->high_yclk; in calculate_bandwidth() 129 sclk[s_low] = vbios->low_sclk; in calculate_bandwidth() 130 sclk[s_mid1] = vbios->mid1_sclk; in calculate_bandwidth() 131 sclk[s_mid2] = vbios->mid2_sclk; in calculate_bandwidth() 132 sclk[s_mid3] = vbios->mid3_sclk; in calculate_bandwidth() 133 sclk[s_mid4] = vbios->mid4_sclk; in calculate_bandwidth() 134 sclk[s_mid5] = vbios in calculate_bandwidth() 77 calculate_bandwidth( const struct bw_calcs_dceip *dceip, const struct bw_calcs_vbios *vbios, struct bw_calcs_data *data) calculate_bandwidth() argument 2034 struct bw_calcs_vbios vbios = { 0 }; bw_calcs_init() local 2740 is_display_configuration_supported( const struct bw_calcs_vbios *vbios, const struct dce_bw_output *calcs_output) is_display_configuration_supported() argument 3014 bw_calcs(struct dc_context *ctx, const struct bw_calcs_dceip *dceip, const struct bw_calcs_vbios *vbios, const struct pipe_ctx pipe[], int pipe_count, struct dce_bw_output *calcs_output) bw_calcs() argument [all...] |
H A D | calcs_logger.h | 124 static void print_bw_calcs_vbios(struct dc_context *ctx, const struct bw_calcs_vbios *vbios) in print_bw_calcs_vbios() argument 128 DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_vbios vbios"); in print_bw_calcs_vbios() 130 DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines memory_type: %d", vbios->memory_type); in print_bw_calcs_vbios() 131 DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines memory_type: %d", vbios->memory_type); in print_bw_calcs_vbios() 132 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] dram_channel_width_in_bits: %d", vbios->dram_channel_width_in_bits); in print_bw_calcs_vbios() 133 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] number_of_dram_channels: %d", vbios->number_of_dram_channels); in print_bw_calcs_vbios() 134 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] number_of_dram_banks: %d", vbios->number_of_dram_banks); in print_bw_calcs_vbios() 135 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] low_yclk: %d", bw_fixed_to_int(vbios->low_yclk)); in print_bw_calcs_vbios() 136 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid_yclk: %d", bw_fixed_to_int(vbios->mid_yclk)); in print_bw_calcs_vbios() 137 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] high_yclk: %d", bw_fixed_to_int(vbios in print_bw_calcs_vbios() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/loongson/ |
H A D | loongson_vbios.c | 29 static u32 get_vbios_version(struct loongson_vbios *vbios) in get_vbios_version() argument 33 minor = vbios->version_minor; in get_vbios_version() 34 major = vbios->version_major; in get_vbios_version() 323 node->data = ((u8 *)ldev->vbios + vb_desc->offset); in insert_desc_list() 346 u8 *vbios = (u8 *)ldev->vbios; in parse_vbios_desc() local 348 WARN_ON(!vbios); in parse_vbios_desc() 350 desc = (struct vbios_desc *)(vbios + VBIOS_DESC_OFFSET); in parse_vbios_desc() 801 void *vbios = NULL; in get_vbios_from_acpi() local 814 vbios in get_vbios_from_acpi() 828 void *bios, *vbios = NULL; get_vbios_from_vram() local 857 void *vbios = NULL; loongson_vbios_init() local [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 427 static void get_bios_version(unsigned char __iomem * vbios, struct matrox_bios* bd) { in get_bios_version() argument 430 pcir_offset = readb(vbios + 24) | (readb(vbios + 25) << 8); in get_bios_version() 432 readb(vbios + pcir_offset ) == 'P' && in get_bios_version() 433 readb(vbios + pcir_offset + 1) == 'C' && in get_bios_version() 434 readb(vbios + pcir_offset + 2) == 'I' && in get_bios_version() 435 readb(vbios + pcir_offset + 3) == 'R') { in get_bios_version() 438 h = readb(vbios + pcir_offset + 0x12); in get_bios_version() 441 bd->version.vRev = readb(vbios + pcir_offset + 0x13); in get_bios_version() 445 h = readb(vbios in get_bios_version() 452 get_bios_output(unsigned char __iomem* vbios, struct matrox_bios* bd) get_bios_output() argument 462 get_bios_tvout(unsigned char __iomem* vbios, struct matrox_bios* bd) get_bios_tvout() argument 489 parse_bios(unsigned char __iomem* vbios, struct matrox_bios* bd) parse_bios() argument [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 427 static void get_bios_version(unsigned char __iomem * vbios, struct matrox_bios* bd) { in get_bios_version() argument 430 pcir_offset = readb(vbios + 24) | (readb(vbios + 25) << 8); in get_bios_version() 432 readb(vbios + pcir_offset ) == 'P' && in get_bios_version() 433 readb(vbios + pcir_offset + 1) == 'C' && in get_bios_version() 434 readb(vbios + pcir_offset + 2) == 'I' && in get_bios_version() 435 readb(vbios + pcir_offset + 3) == 'R') { in get_bios_version() 438 h = readb(vbios + pcir_offset + 0x12); in get_bios_version() 441 bd->version.vRev = readb(vbios + pcir_offset + 0x13); in get_bios_version() 445 h = readb(vbios in get_bios_version() 452 get_bios_output(unsigned char __iomem* vbios, struct matrox_bios* bd) get_bios_output() argument 462 get_bios_tvout(unsigned char __iomem* vbios, struct matrox_bios* bd) get_bios_tvout() argument 489 parse_bios(unsigned char __iomem* vbios, struct matrox_bios* bd) parse_bios() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_debugfs.c | 44 for (i = 0; i < drm->vbios.length; i++) in nouveau_debugfs_vbios_image() 45 seq_printf(m, "%c", drm->vbios.data[i]); in nouveau_debugfs_vbios_image() 214 { "vbios.rom", nouveau_debugfs_vbios_image, 0, NULL }, 244 /* Set the size of the vbios since we know it, and it's confusing to in nouveau_drm_debugfs_init() 247 dentry = debugfs_lookup("vbios.rom", minor->debugfs_root); in nouveau_drm_debugfs_init() 251 d_inode(dentry)->i_size = drm->vbios.length; in nouveau_drm_debugfs_init()
|
H A D | nouveau_bios.c | 110 struct nvbios *bios = &drm->vbios; in call_lvds_manufacturer_script() 147 struct nvbios *bios = &drm->vbios; in run_lvds_table() 217 struct nvbios *bios = &drm->vbios; in call_lvds_script() 450 struct nvbios *bios = &drm->vbios; in nouveau_bios_fp_mode() 521 struct nvbios *bios = &drm->vbios; in nouveau_bios_parse_lvds_table() 637 struct nvbios *bios = &drm->vbios; in run_tmds_table() 973 struct nvbios *bios = &drm->vbios; in bit_table() 1254 dcb = ROMPTR(dev, drm->vbios.data[0x36]); in olddcb_table() 1649 struct dcb_table *dcb = &drm->vbios.dcb; in apply_dcb_encoder_quirks() 1787 struct dcb_table *dcb = &drm->vbios in parse_dcb_entry() [all...] |
H A D | nouveau_connector.c | 673 if (!drm->vbios.fp_no_ddc) { in nouveau_connector_detect_lvds() 702 if (nouveau_bios_fp_mode(dev, NULL) && (drm->vbios.fp_no_ddc || in nouveau_connector_detect_lvds() 711 if (!drm->vbios.fp_no_ddc) { in nouveau_connector_detect_lvds() 859 struct nvbios *bios = &drm->vbios; in nouveau_connector_detect_depth() 940 drm->vbios.fp_no_ddc) && nouveau_bios_fp_mode(dev, NULL)) { in nouveau_connector_get_modes() 1261 /* attempt to parse vbios connector type and hotplug gpio */ in nouveau_connector_create() 1291 /* no vbios data, or an unknown dcb connector type - attempt to in nouveau_connector_create() 1296 struct dcb_table *dcbt = &drm->vbios.dcb; in nouveau_connector_create()
|
H A D | nouveau_bios.h | 38 ROM16(x) ? &drm->vbios.data[ROM16(x)] : NULL; \
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bios.c | 55 DRM_INFO("vbios mem is null or mem size is wrong\n"); in check_atom_bios() 173 /* valid vbios, go on */ in amdgpu_read_bios_from_rom() 234 * amdgpu_atrm_call - fetch a chunk of the vbios 237 * @bios: vbios image pointer 238 * @offset: offset of vbios image data to fetch 239 * @len: length of vbios image data to fetch 242 * vbios image on PX systems (all asics). 380 GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset); in amdgpu_acpi_vfct_bios() local 381 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in amdgpu_acpi_vfct_bios() 401 adev->bios = kmemdup(&vbios in amdgpu_acpi_vfct_bios() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_debugfs.c | 44 for (i = 0; i < drm->vbios.length; i++) in nouveau_debugfs_vbios_image() 45 seq_printf(m, "%c", drm->vbios.data[i]); in nouveau_debugfs_vbios_image() 253 { "vbios.rom", nouveau_debugfs_vbios_image, 0, NULL }, 284 /* Set the size of the vbios since we know it, and it's confusing to in nouveau_drm_debugfs_init() 287 dentry = debugfs_lookup("vbios.rom", minor->debugfs_root); in nouveau_drm_debugfs_init() 291 d_inode(dentry)->i_size = drm->vbios.length; in nouveau_drm_debugfs_init()
|
H A D | nouveau_bios.c | 110 struct nvbios *bios = &drm->vbios; in call_lvds_manufacturer_script() 150 struct nvbios *bios = &drm->vbios; in run_lvds_table() 220 struct nvbios *bios = &drm->vbios; in call_lvds_script() 453 struct nvbios *bios = &drm->vbios; in nouveau_bios_fp_mode() 524 struct nvbios *bios = &drm->vbios; in nouveau_bios_parse_lvds_table() 640 struct nvbios *bios = &drm->vbios; in run_tmds_table() 976 struct nvbios *bios = &drm->vbios; in bit_table() 1257 dcb = ROMPTR(dev, drm->vbios.data[0x36]); in olddcb_table() 1652 struct dcb_table *dcb = &drm->vbios.dcb; in apply_dcb_encoder_quirks() 1790 struct dcb_table *dcb = &drm->vbios in parse_dcb_entry() [all...] |
H A D | nouveau_connector.c | 680 if (!drm->vbios.fp_no_ddc) { in nouveau_connector_detect_lvds() 709 if (nouveau_bios_fp_mode(dev, NULL) && (drm->vbios.fp_no_ddc || in nouveau_connector_detect_lvds() 718 if (!drm->vbios.fp_no_ddc) { in nouveau_connector_detect_lvds() 866 struct nvbios *bios = &drm->vbios; in nouveau_connector_detect_depth() 963 drm->vbios.fp_no_ddc) && nouveau_bios_fp_mode(dev, NULL)) { in nouveau_connector_get_modes() 1298 /* attempt to parse vbios connector type and hotplug gpio */ in nouveau_connector_create() 1328 /* no vbios data, or an unknown dcb connector type - attempt to in nouveau_connector_create() 1333 struct dcb_table *dcbt = &drm->vbios.dcb; in nouveau_connector_create()
|
H A D | nouveau_bios.h | 38 ROM16(x) ? &drm->vbios.data[ROM16(x)] : NULL; \
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dac.c | 251 if (drm->vbios.tvdactestval) in nv17_dac_sample_load() 252 testval = drm->vbios.tvdactestval; in nv17_dac_sample_load() 256 if (drm->vbios.dactestval) in nv17_dac_sample_load() 257 testval = drm->vbios.dactestval; in nv17_dac_sample_load()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dac.c | 251 if (drm->vbios.tvdactestval) in nv17_dac_sample_load() 252 testval = drm->vbios.tvdactestval; in nv17_dac_sample_load() 256 if (drm->vbios.dactestval) in nv17_dac_sample_load() 257 testval = drm->vbios.dactestval; in nv17_dac_sample_load()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | instmem.h | 16 struct nvkm_memory *vbios; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | instmem.h | 21 struct nvkm_memory *vbios; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | nv04.c | 172 /* 0x00000-0x10000: reserve for probable vbios image */ in nv04_instmem_oneinit() 174 &imem->base.vbios); in nv04_instmem_oneinit() 205 nvkm_memory_unref(&imem->base.vbios); in nv04_instmem_dtor()
|
H A D | nv40.c | 184 /* 0x00000-0x10000: reserve for probable vbios image */ in nv40_instmem_oneinit() 186 &imem->base.vbios); in nv40_instmem_oneinit() 221 nvkm_memory_unref(&imem->base.vbios); in nv40_instmem_dtor()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | nv04.c | 171 /* 0x00000-0x10000: reserve for probable vbios image */ in nv04_instmem_oneinit() 173 &imem->base.vbios); in nv04_instmem_oneinit() 204 nvkm_memory_unref(&imem->base.vbios); in nv04_instmem_dtor()
|
H A D | nv40.c | 183 /* 0x00000-0x10000: reserve for probable vbios image */ in nv40_instmem_oneinit() 185 &imem->base.vbios); in nv40_instmem_oneinit() 220 nvkm_memory_unref(&imem->base.vbios); in nv40_instmem_dtor()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bios.c | 55 DRM_INFO("vbios mem is null or mem size is wrong\n"); in check_atom_bios() 175 /* valid vbios, go on */ in amdgpu_read_bios_from_rom() 236 * amdgpu_atrm_call - fetch a chunk of the vbios 239 * @bios: vbios image pointer 240 * @offset: offset of vbios image data to fetch 241 * @len: length of vbios image data to fetch 244 * vbios image on PX systems (all asics). 383 GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset); in amdgpu_acpi_vfct_bios() local 384 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in amdgpu_acpi_vfct_bios() 404 adev->bios = kmemdup(&vbios in amdgpu_acpi_vfct_bios() [all...] |