Home
last modified time | relevance | path

Searched refs:strap (Results 1 – 13 of 13) sorted by relevance

/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dramcfg.c54 u8 strap = nvbios_ramcfg_strap(subdev); in nvbios_ramcfg_index() local
69 nvbios_M0203Em(bios, strap, &ver, &hdr, &M0203E)) in nvbios_ramcfg_index()
76 strap = nvbios_rd08(bios, xlat + strap); in nvbios_ramcfg_index()
77 return strap; in nvbios_ramcfg_index()
DM0203.c93 info->strap = (nvbios_rd08(bios, data + 0x00) & 0xf0) >> 4; in nvbios_M0203Ep()
119 if (info->strap != ramcfg) in nvbios_M0203Em()
Dinit.c1600 u32 strap; in init_configure_preinit() local
1611 strap = init_rd32(init, 0x101000); in init_configure_preinit()
1612 strap = ((strap << 2) & 0xf0) | ((strap & 0x40) >> 6); in init_configure_preinit()
1613 init_wrvgai(init, 0x03d4, 0x3c, strap); in init_configure_preinit()
1917 u8 strap = init_ram_restrict(init); in init_ram_restrict_pll() local
1926 if (cconf == strap) { in init_ram_restrict_pll()
/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
Dnv05.c53 u8 strap, ramcfg[2]; in nv05_devinit_meminit() local
63 strap = (nvkm_rd32(device, 0x101000) & 0x0000003c) >> 2; in nv05_devinit_meminit()
65 ramcfg[0] = nvbios_rd08(bios, data + 2 * strap + 0); in nv05_devinit_meminit()
66 ramcfg[1] = nvbios_rd08(bios, data + 2 * strap + 1); in nv05_devinit_meminit()
68 ramcfg[0] = default_config_tab[strap][0]; in nv05_devinit_meminit()
69 ramcfg[1] = default_config_tab[strap][1]; in nv05_devinit_meminit()
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgf100.c136 u8 ver, cnt, len, strap; in gf100_ram_calc() local
155 strap = nvbios_ramcfg_index(subdev); in gf100_ram_calc()
156 if (strap >= cnt) { in gf100_ram_calc()
161 ramcfg.data = rammap.data + rammap.size + (strap * ramcfg.size); in gf100_ram_calc()
168 strap = nvbios_rd08(bios, ramcfg.data + 0x01); in gf100_ram_calc()
169 if (strap != 0xff) { in gf100_ram_calc()
170 timing.data = nvbios_timingEe(bios, strap, &ver, &timing.size, in gf100_ram_calc()
Dramnv50.c227 u8 ver, hdr, cnt, len, strap, size; in nv50_ram_calc() local
253 strap = nvbios_ramcfg_index(subdev); in nv50_ram_calc()
254 if (strap >= cnt) { in nv50_ram_calc()
259 data = nvbios_rammapSp_from_perf(bios, data + hdr, size, strap, in nv50_ram_calc()
273 strap, data, ver, hdr); in nv50_ram_calc()
Dramgt215.c503 u8 ver, hdr, cnt, len, strap; in gt215_ram_calc() local
527 strap = nvbios_ramcfg_index(subdev); in gt215_ram_calc()
528 if (strap >= cnt) { in gt215_ram_calc()
533 data = nvbios_rammapSp(bios, data, ver, hdr, cnt, len, strap, in gt215_ram_calc()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
DM0203.h24 u8 strap; member
/drivers/gpio/
Dgpio-ts5500.c36 bool strap; member
272 if (priv->strap) in ts5500_gpio_to_irq()
/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dbase.c2968 u32 boot0, boot1, strap; in nvkm_device_ctor() local
3195 strap = nvkm_rd32(device, 0x101000); in nvkm_device_ctor()
3200 strap &= 0x00000040; in nvkm_device_ctor()
3202 strap &= 0x00400040; in nvkm_device_ctor()
3204 switch (strap) { in nvkm_device_ctor()
/drivers/net/ethernet/intel/e1000e/
Dich8lan.c2089 u32 strap = er32(STRAP); in e1000_write_smbus_addr() local
2090 u32 freq = FIELD_GET(E1000_STRAP_SMT_FREQ_MASK, strap); in e1000_write_smbus_addr()
2093 strap &= E1000_STRAP_SMBUS_ADDRESS_MASK; in e1000_write_smbus_addr()
2100 phy_data |= (strap >> E1000_STRAP_SMBUS_ADDRESS_SHIFT); in e1000_write_smbus_addr()
/drivers/net/ethernet/microchip/
Dlan743x_main.c35 u32 strap; in pci11x1x_strap_get_status() local
52 strap = lan743x_csr_read(adapter, STRAP_READ); in pci11x1x_strap_get_status()
53 if (strap & STRAP_READ_SGMII_EN_) in pci11x1x_strap_get_status()
/drivers/net/ethernet/broadcom/
Dbnx2.c7941 u32 strap; in bnx2_get_5709_media() local
7951 strap = (val & BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL) >> 21; in bnx2_get_5709_media()
7953 strap = (val & BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP) >> 8; in bnx2_get_5709_media()
7956 switch (strap) { in bnx2_get_5709_media()
7964 switch (strap) { in bnx2_get_5709_media()