Home
last modified time | relevance | path

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

/drivers/gpu/drm/nouveau/core/subdev/devinit/
Dnv05.c57 u8 strap, ramcfg[2]; in nv05_devinit_meminit() local
67 strap = (nv_rd32(priv, 0x101000) & 0x0000003c) >> 2; in nv05_devinit_meminit()
69 ramcfg[0] = nv_ro08(bios, data + 2 * strap + 0); in nv05_devinit_meminit()
70 ramcfg[1] = nv_ro08(bios, data + 2 * strap + 1); in nv05_devinit_meminit()
72 ramcfg[0] = default_config_tab[strap][0]; in nv05_devinit_meminit()
73 ramcfg[1] = default_config_tab[strap][1]; in nv05_devinit_meminit()
/drivers/gpu/drm/nouveau/
Dnouveau_perf.c149 u8 strap, hdr, cnt; in nouveau_perf_ramcfg() local
152 strap = (nv_rd32(device, 0x101000) & 0x0000003c) >> 2; in nouveau_perf_ramcfg()
154 strap = bios->data[bios->ram_restrict_tbl_ptr + strap]; in nouveau_perf_ramcfg()
157 if (rammap && strap < cnt) in nouveau_perf_ramcfg()
158 return rammap + hdr + (strap * *len); in nouveau_perf_ramcfg()
/drivers/gpu/drm/nouveau/core/engine/device/
Dbase.c106 u32 boot0, strap; in nouveau_devobj_ctor() local
157 strap = ioread32_native(map + 0x101000); in nouveau_devobj_ctor()
217 strap &= 0x00000040; in nouveau_devobj_ctor()
219 strap &= 0x00400040; in nouveau_devobj_ctor()
221 switch (strap) { in nouveau_devobj_ctor()
/drivers/gpio/
Dgpio-ts5500.c40 bool strap; member
281 if (priv->strap) in ts5500_gpio_to_irq()
358 priv->strap = pdata->strap; in ts5500_dio_probe()
/drivers/gpu/drm/nouveau/core/subdev/bios/
Dinit.c449 u8 strap = init_ram_restrict_strap(init); in init_ram_restrict() local
452 return nv_ro08(init->bios, table + strap); in init_ram_restrict()
1504 u32 strap; in init_configure_preinit() local
1515 strap = init_rd32(init, 0x101000); in init_configure_preinit()
1516 strap = ((strap << 2) & 0xf0) | ((strap & 0x40) >> 6); in init_configure_preinit()
1517 init_wrvgai(init, 0x03d4, 0x3c, strap); in init_configure_preinit()
1786 u8 strap = init_ram_restrict(init); in init_ram_restrict_pll() local
1795 if (cconf == strap) { in init_ram_restrict_pll()
/drivers/net/ethernet/intel/e1000e/
Dich8lan.c1447 u32 strap = er32(STRAP); in e1000_write_smbus_addr() local
1448 u32 freq = (strap & E1000_STRAP_SMT_FREQ_MASK) >> in e1000_write_smbus_addr()
1452 strap &= E1000_STRAP_SMBUS_ADDRESS_MASK; in e1000_write_smbus_addr()
1459 phy_data |= (strap >> E1000_STRAP_SMBUS_ADDRESS_SHIFT); in e1000_write_smbus_addr()
/drivers/net/ethernet/broadcom/
Dbnx2.c7909 u32 strap; in bnx2_get_5709_media() local
7919 strap = (val & BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL) >> 21; in bnx2_get_5709_media()
7921 strap = (val & BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP) >> 8; in bnx2_get_5709_media()
7924 switch (strap) { in bnx2_get_5709_media()
7932 switch (strap) { in bnx2_get_5709_media()