/drivers/gpu/drm/nouveau/core/include/subdev/bios/ |
H A D | bmp.h | 5 bmp_version(struct nouveau_bios *bios) argument 7 if (bios->bmp_offset) { 8 return nv_ro08(bios, bios->bmp_offset + 5) << 8 | 9 nv_ro08(bios, bios->bmp_offset + 6); 16 bmp_mem_init_table(struct nouveau_bios *bios) argument 18 if (bmp_version(bios) >= 0x0300) 19 return nv_ro16(bios, bios 24 bmp_sdr_seq_table(struct nouveau_bios *bios) argument 32 bmp_ddr_seq_table(struct nouveau_bios *bios) argument [all...] |
H A D | fan.h | 4 #include <subdev/bios/therm.h> 6 u16 nvbios_fan_parse(struct nouveau_bios *bios, struct nvbios_therm_fan *fan);
|
/drivers/gpu/drm/nouveau/core/subdev/bios/ |
H A D | bit.c | 27 #include "subdev/bios.h" 28 #include "subdev/bios/bit.h" 31 bit_entry(struct nouveau_bios *bios, u8 id, struct bit_entry *bit) argument 33 if (likely(bios->bit_offset)) { 34 u8 entries = nv_ro08(bios, bios->bit_offset + 10); 35 u32 entry = bios->bit_offset + 12; 37 if (nv_ro08(bios, entry + 0) == id) { 38 bit->id = nv_ro08(bios, entry + 0); 39 bit->version = nv_ro08(bios, entr [all...] |
H A D | base.c | 30 #include <subdev/bios.h> 31 #include <subdev/bios/bmp.h> 32 #include <subdev/bios/bit.h> 61 nouveau_bios_shadow_of(struct nouveau_bios *bios) argument 63 struct pci_dev *pdev = nv_device(bios)->pdev; 70 nv_info(bios, "Unable to get the OF node\n"); 76 bios->size = size; 77 bios->data = kmalloc(bios->size, GFP_KERNEL); 78 if (bios 85 nouveau_bios_shadow_pramin(struct nouveau_bios *bios) argument 142 nouveau_bios_shadow_prom(struct nouveau_bios *bios) argument 217 nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len) argument 223 nouveau_bios_shadow_acpi(struct nouveau_bios *bios) argument 262 nouveau_bios_shadow_pci(struct nouveau_bios *bios) argument 284 nouveau_bios_shadow_platform(struct nouveau_bios *bios) argument 300 nouveau_bios_score(struct nouveau_bios *bios, const bool writeable) argument 329 nouveau_bios_shadow(struct nouveau_bios *bios) argument 420 struct nouveau_bios *bios = (void *)object; local 427 struct nouveau_bios *bios = (void *)object; local 434 struct nouveau_bios *bios = (void *)object; local 441 struct nouveau_bios *bios = (void *)object; local 448 struct nouveau_bios *bios = (void *)object; local 455 struct nouveau_bios *bios = (void *)object; local 465 struct nouveau_bios *bios; local 518 struct nouveau_bios *bios = (void *)object; local 526 struct nouveau_bios *bios = (void *)object; local 533 struct nouveau_bios *bios = (void *)object; local [all...] |
H A D | extdev.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/dcb.h> 27 #include <subdev/bios/extdev.h> 30 extdev_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) argument 35 dcb = dcb_table(bios, &dcb_ver, &dcb_hdr, &dcb_cnt, &dcb_len); 39 extdev = nv_ro16(bios, dcb + 18); 43 *ver = nv_ro08(bios, extdev + 0); 44 *hdr = nv_ro08(bios, extdev + 1); 45 *cnt = nv_ro08(bios, extdev + 2); 46 *len = nv_ro08(bios, extde 52 nvbios_extdev_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument 62 extdev_parse_entry(struct nouveau_bios *bios, u16 offset, struct nvbios_extdev_func *entry) argument 71 nvbios_extdev_parse(struct nouveau_bios *bios, int idx, struct nvbios_extdev_func *func) argument 86 nvbios_extdev_find(struct nouveau_bios *bios, enum nvbios_extdev_type type, struct nvbios_extdev_func *func) argument [all...] |
H A D | xpio.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/gpio.h> 27 #include <subdev/bios/xpio.h> 30 dcb_xpiod_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 32 u16 data = dcb_gpio_table(bios, ver, hdr, cnt, len); 34 u16 xpio = nv_ro16(bios, data + 0x04); 36 *ver = nv_ro08(bios, data + 0x00); 37 *hdr = nv_ro08(bios, data + 0x01); 38 *cnt = nv_ro08(bios, data + 0x02); 39 *len = nv_ro08(bios, dat 47 dcb_xpio_table(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 65 dcb_xpio_parse(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *info) argument [all...] |
H A D | perf.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/perf.h> 30 nvbios_perf_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, argument 36 if (!bit_entry(bios, 'P', &bit_P)) { 38 perf = nv_ro16(bios, bit_P.offset + 0); 40 *ver = nv_ro08(bios, perf + 0); 41 *hdr = nv_ro08(bios, perf + 1); 43 *cnt = nv_ro08(bios, perf + 5); 44 *len = nv_ro08(bios, per 79 nvbios_perf_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 95 nvbios_perfEp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info) argument 158 nvbios_perfSe(struct nouveau_bios *bios, u32 perfE, int idx, u8 *ver, u8 *hdr, u8 cnt, u8 len) argument 170 nvbios_perfSp(struct nouveau_bios *bios, u32 perfE, int idx, u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_perfS *info) argument 187 nvbios_perf_fan_parse(struct nouveau_bios *bios, struct nvbios_perf_fan *fan) argument [all...] |
H A D | conn.c | 27 #include <subdev/bios.h> 28 #include <subdev/bios/dcb.h> 29 #include <subdev/bios/conn.h> 32 nvbios_connTe(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 34 u32 dcb = dcb_table(bios, ver, hdr, cnt, len); 36 u32 data = nv_ro16(bios, dcb + 0x14); 38 *ver = nv_ro08(bios, data + 0); 39 *hdr = nv_ro08(bios, data + 1); 40 *cnt = nv_ro08(bios, data + 2); 41 *len = nv_ro08(bios, dat 49 nvbios_connTp(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_connT *info) argument 65 nvbios_connEe(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len) argument 75 nvbios_connEp(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len, struct nvbios_connE *info) argument [all...] |
H A D | volt.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/volt.h> 30 nvbios_volt_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 35 if (!bit_entry(bios, 'P', &bit_P)) { 37 volt = nv_ro16(bios, bit_P.offset + 0x0c); 40 volt = nv_ro16(bios, bit_P.offset + 0x10); 43 *ver = nv_ro08(bios, volt + 0); 47 *cnt = nv_ro08(bios, volt + 2); 48 *len = nv_ro08(bios, vol 70 nvbios_volt_parse(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_volt *info) argument 105 nvbios_volt_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument 117 nvbios_volt_entry_parse(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len, struct nvbios_volt_entry *info) argument [all...] |
H A D | fan.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/fan.h> 30 nvbios_fan_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 35 if (!bit_entry(bios, 'P', &bit_P)) { 37 fan = nv_ro16(bios, bit_P.offset + 0x58); 40 *ver = nv_ro08(bios, fan + 0); 43 *hdr = nv_ro08(bios, fan + 1); 44 *len = nv_ro08(bios, fan + 2); 45 *cnt = nv_ro08(bios, fa 57 nvbios_fan_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 67 nvbios_fan_parse(struct nouveau_bios *bios, struct nvbios_therm_fan *fan) argument [all...] |
H A D | dp.c | 26 #include "subdev/bios.h" 27 #include "subdev/bios/bit.h" 28 #include "subdev/bios/dp.h" 31 nvbios_dp_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 35 if (!bit_entry(bios, 'd', &d)) { 37 u16 data = nv_ro16(bios, d.offset); 39 *ver = nv_ro08(bios, data + 0x00); 44 *hdr = nv_ro08(bios, data + 0x01); 45 *len = nv_ro08(bios, data + 0x02); 46 *cnt = nv_ro08(bios, dat 59 nvbios_dpout_entry(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 87 nvbios_dpout_parse(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpout *info) argument 128 nvbios_dpout_match(struct nouveau_bios *bios, u16 type, u16 mask, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpout *info) argument 143 nvbios_dpcfg_entry(struct nouveau_bios *bios, u16 outp, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 160 nvbios_dpcfg_parse(struct nouveau_bios *bios, u16 outp, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *info) argument 189 nvbios_dpcfg_match(struct nouveau_bios *bios, u16 outp, u8 pc, u8 vs, u8 pe, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *info) argument [all...] |
H A D | vmap.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/vmap.h> 30 nvbios_vmap_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 35 if (!bit_entry(bios, 'P', &bit_P)) { 37 vmap = nv_ro16(bios, bit_P.offset + 0x20); 39 *ver = nv_ro08(bios, vmap + 0); 43 *hdr = nv_ro08(bios, vmap + 1); 44 *cnt = nv_ro08(bios, vmap + 3); 45 *len = nv_ro08(bios, vma 58 nvbios_vmap_parse(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_vmap *info) argument 72 nvbios_vmap_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument 84 nvbios_vmap_entry_parse(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len, struct nvbios_vmap_entry *info) argument [all...] |
H A D | ramcfg.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/ramcfg.h> 36 nvbios_ramcfg_count(struct nouveau_bios *bios) argument 40 if (!bit_entry(bios, 'M', &bit_M)) { 42 return nv_ro08(bios, bit_M.offset + 2); 44 return nv_ro08(bios, bit_M.offset + 0); 53 struct nouveau_bios *bios = nouveau_bios(subdev); local 58 if (!bit_entry(bios, 'M', &bit_M)) { 60 xlat = nv_ro16(bios, bit_ [all...] |
H A D | rammap.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/ramcfg.h> 28 #include <subdev/bios/rammap.h> 31 nvbios_rammapTe(struct nouveau_bios *bios, u8 *ver, u8 *hdr, argument 37 if (!bit_entry(bios, 'P', &bit_P)) { 39 rammap = nv_ro16(bios, bit_P.offset + 4); 42 *ver = nv_ro08(bios, rammap + 0); 46 *hdr = nv_ro08(bios, rammap + 1); 47 *cnt = nv_ro08(bios, ramma 62 nvbios_rammapEe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 78 nvbios_rammapEp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) argument 121 nvbios_rammapEm(struct nouveau_bios *bios, u16 mhz, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *info) argument 135 nvbios_rammapSe(struct nouveau_bios *bios, u32 data, u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx, u8 *ver, u8 *hdr) argument 149 nvbios_rammapSp(struct nouveau_bios *bios, u32 data, u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx, u8 *ver, u8 *hdr, struct nvbios_ramcfg *p) argument [all...] |
H A D | P0260.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/ramcfg.h> 28 #include <subdev/bios/P0260.h> 31 nvbios_P0260Te(struct nouveau_bios *bios, argument 37 if (!bit_entry(bios, 'P', &bit_P)) { 39 data = nv_ro32(bios, bit_P.offset + 0x60); 41 *ver = nv_ro08(bios, data + 0); 44 *hdr = nv_ro08(bios, data + 1); 45 *cnt = nv_ro08(bios, dat 60 nvbios_P0260Ee(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument 70 nvbios_P0260Ep(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len, struct nvbios_P0260E *info) argument 86 nvbios_P0260Xe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *xsz) argument 96 nvbios_P0260Xp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, struct nvbios_P0260X *info) argument [all...] |
H A D | mxm.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/mxm.h> 30 mxm_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr) argument 34 if (bit_entry(bios, 'x', &x)) { 35 nv_debug(bios, "BIT 'x' table not present\n"); 42 nv_warn(bios, "BIT 'x' table %d/%d unknown\n", *ver, *hdr); 75 mxm_sor_map(struct nouveau_bios *bios, u8 conn) argument 78 u16 mxm = mxm_table(bios, &ver, &hdr); 80 u16 map = nv_ro16(bios, mx 111 mxm_ddc_map(struct nouveau_bios *bios, u8 port) argument [all...] |
H A D | gpio.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/dcb.h> 27 #include <subdev/bios/gpio.h> 28 #include <subdev/bios/xpio.h> 31 dcb_gpio_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 34 u16 dcb = dcb_table(bios, ver, hdr, cnt, len); 37 data = nv_ro16(bios, dcb + 0x0a); 39 if (*ver >= 0x22 && nv_ro08(bios, dcb - 1) >= 0x13) 40 data = nv_ro16(bios, dcb - 0x0f); 43 *ver = nv_ro08(bios, dat 62 dcb_gpio_entry(struct nouveau_bios *bios, int idx, int ent, u8 *ver, u8 *len) argument 78 dcb_gpio_parse(struct nouveau_bios *bios, int idx, int ent, u8 *ver, u8 *len, struct dcb_gpio_func *gpio) argument 119 dcb_gpio_match(struct nouveau_bios *bios, int idx, u8 func, u8 line, u8 *ver, u8 *len, struct dcb_gpio_func *gpio) argument [all...] |
H A D | timing.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/ramcfg.h> 28 #include <subdev/bios/timing.h> 31 nvbios_timingTe(struct nouveau_bios *bios, argument 37 if (!bit_entry(bios, 'P', &bit_P)) { 39 timing = nv_ro16(bios, bit_P.offset + 4); 42 timing = nv_ro16(bios, bit_P.offset + 8); 45 *ver = nv_ro08(bios, timing + 0); 48 *hdr = nv_ro08(bios, timin 71 nvbios_timingEe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 87 nvbios_timingEp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) argument [all...] |
H A D | boost.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/boost.h> 30 nvbios_boostTe(struct nouveau_bios *bios, argument 36 if (!bit_entry(bios, 'P', &bit_P)) { 38 boost = nv_ro16(bios, bit_P.offset + 0x30); 41 *ver = nv_ro08(bios, boost + 0); 44 *hdr = nv_ro08(bios, boost + 1); 45 *cnt = nv_ro08(bios, boost + 5); 46 *len = nv_ro08(bios, boos 60 nvbios_boostEe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 76 nvbios_boostEp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) argument 90 nvbios_boostEm(struct nouveau_bios *bios, u8 pstate, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) argument 102 nvbios_boostSe(struct nouveau_bios *bios, int idx, u16 data, u8 *ver, u8 *hdr, u8 cnt, u8 len) argument 114 nvbios_boostSp(struct nouveau_bios *bios, int idx, u16 data, u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_boostS *info) argument [all...] |
H A D | cstep.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/cstep.h> 30 nvbios_cstepTe(struct nouveau_bios *bios, argument 36 if (!bit_entry(bios, 'P', &bit_P)) { 38 cstep = nv_ro16(bios, bit_P.offset + 0x34); 41 *ver = nv_ro08(bios, cstep + 0); 44 *hdr = nv_ro08(bios, cstep + 1); 45 *cnt = nv_ro08(bios, cstep + 3); 46 *len = nv_ro08(bios, cste 60 nvbios_cstepEe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr) argument 73 nvbios_cstepEp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, struct nvbios_cstepE *info) argument 86 nvbios_cstepEm(struct nouveau_bios *bios, u8 pstate, u8 *ver, u8 *hdr, struct nvbios_cstepE *info) argument 98 nvbios_cstepXe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr) argument 111 nvbios_cstepXp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, struct nvbios_cstepX *info) argument [all...] |
H A D | i2c.c | 26 #include "subdev/bios.h" 27 #include "subdev/bios/dcb.h" 28 #include "subdev/bios/i2c.h" 31 dcb_i2c_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 34 u16 dcb = dcb_table(bios, ver, hdr, cnt, len); 37 i2c = nv_ro16(bios, dcb + 2); 39 i2c = nv_ro16(bios, dcb + 4); 43 *ver = nv_ro08(bios, i2c + 0); 44 *hdr = nv_ro08(bios, i2c + 1); 45 *cnt = nv_ro08(bios, i2 58 dcb_i2c_entry(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len) argument 68 dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct dcb_i2c_entry *info) argument [all...] |
H A D | pll.c | 26 #include <subdev/bios.h> 27 #include <subdev/bios/bit.h> 28 #include <subdev/bios/bmp.h> 29 #include <subdev/bios/pll.h> 81 pll_limits_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 85 if (!bit_entry(bios, 'C', &bit_C) && bit_C.length >= 10) { 86 u16 data = nv_ro16(bios, bit_C.offset + 8); 88 *ver = nv_ro08(bios, data + 0); 89 *hdr = nv_ro08(bios, data + 1); 90 *len = nv_ro08(bios, dat 112 pll_map(struct nouveau_bios *bios) argument 138 pll_map_reg(struct nouveau_bios *bios, u32 reg, u32 *type, u8 *ver, u8 *len) argument 180 pll_map_type(struct nouveau_bios *bios, u8 type, u32 *reg, u8 *ver, u8 *len) argument 222 nvbios_pll_parse(struct nouveau_bios *bios, u32 type, struct nvbios_pll *info) argument [all...] |
H A D | M0209.c | 25 #include <subdev/bios.h> 26 #include <subdev/bios/bit.h> 27 #include <subdev/bios/M0209.h> 30 nvbios_M0209Te(struct nouveau_bios *bios, argument 36 if (!bit_entry(bios, 'M', &bit_M)) { 38 data = nv_ro32(bios, bit_M.offset + 0x09); 40 *ver = nv_ro08(bios, data + 0x00); 43 *hdr = nv_ro08(bios, data + 0x01); 44 *len = nv_ro08(bios, data + 0x02); 45 *ssz = nv_ro08(bios, dat 59 nvbios_M0209Ee(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument 75 nvbios_M0209Ep(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *info) argument 97 nvbios_M0209Se(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) argument 111 nvbios_M0209Sp(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, struct nvbios_M0209S *info) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | atom-bits.h | 28 static inline uint8_t get_u8(void *bios, int ptr) argument 30 return ((unsigned char *)bios)[ptr]; 32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) 33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) 34 static inline uint16_t get_u16(void *bios, int ptr) argument 36 return get_u8(bios ,ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); 38 #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) 39 #define CU16(ptr) get_u16(ctx->bios, (ptr)) 40 static inline uint32_t get_u32(void *bios, in argument [all...] |
/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bios.c | 68 static uint16_t clkcmptable(struct nvbios *bios, uint16_t clktable, int pxclk) argument 73 if (bios->major_version < 5) /* pre BIT */ 79 compareclk = ROM16(bios->data[clktable + compare_record_len * i]); 81 if (bios->major_version < 5) { 82 uint8_t tmdssub = bios->data[clktable + 2 + compare_record_len * i]; 83 scriptptr = ROM16(bios->data[bios->init_script_tbls_ptr + tmdssub * 2]); 85 scriptptr = ROM16(bios->data[clktable + 2 + compare_record_len * i]); 112 struct nvbios *bios = &drm->vbios; local 113 uint8_t sub = bios 149 struct nvbios *bios = &drm->vbios; local 219 struct nvbios *bios = &drm->vbios; local 262 parse_lvds_manufacturer_table_header(struct drm_device *dev, struct nvbios *bios, struct lvdstableheader *lth) argument 319 get_fp_strap(struct drm_device *dev, struct nvbios *bios) argument 341 parse_fp_mode_table(struct drm_device *dev, struct nvbios *bios) argument 451 struct nvbios *bios = &drm->vbios; local 522 struct nvbios *bios = &drm->vbios; local 638 struct nvbios *bios = &drm->vbios; local 679 parse_script_table_pointers(struct nvbios *bios, uint16_t offset) argument 696 parse_bit_A_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) argument 743 parse_bit_display_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) argument 765 parse_bit_init_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) argument 783 parse_bit_i_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) argument 845 parse_bit_lvds_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) argument 871 parse_bit_M_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) argument 902 parse_bit_tmds_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) argument 974 struct nvbios *bios = &drm->vbios; local 999 parse_bit_table(struct nvbios *bios, const uint16_t bitoffset, struct bit_table *table) argument 1014 parse_bit_structure(struct nvbios *bios, const uint16_t bitoffset) argument 1040 parse_bmp_structure(struct drm_device *dev, struct nvbios *bios, unsigned int offset) argument 1747 fabricate_dcb_encoder_table(struct drm_device *dev, struct nvbios *bios) argument 1811 dcb_fake_connectors(struct nvbios *bios) argument 1857 parse_dcb_table(struct drm_device *dev, struct nvbios *bios) argument 1902 load_nv17_hwsq_ucode_entry(struct drm_device *dev, struct nvbios *bios, uint16_t hwsq_offset, int entry) argument 1950 load_nv17_hw_sequencer_ucode(struct drm_device *dev, struct nvbios *bios) argument 1977 struct nvbios *bios = &drm->vbios; local 2008 struct nouveau_bios *bios = nvkm_bios(&drm->device); local 2037 struct nvbios *bios = &drm->vbios; local 2075 struct nvbios *bios = &drm->vbios; local [all...] |