Home
last modified time | relevance | path

Searched refs:regindex (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/video/fbdev/aty/
Datyfb.h226 static inline u32 aty_ld_le32(int regindex, const struct atyfb_par *par) in aty_ld_le32() argument
229 if (regindex >= 0x400) in aty_ld_le32()
230 regindex -= 0x800; in aty_ld_le32()
233 return in_le32(par->ati_regbase + regindex); in aty_ld_le32()
235 return readl(par->ati_regbase + regindex); in aty_ld_le32()
239 static inline void aty_st_le32(int regindex, u32 val, const struct atyfb_par *par) in aty_st_le32() argument
242 if (regindex >= 0x400) in aty_st_le32()
243 regindex -= 0x800; in aty_st_le32()
246 out_le32(par->ati_regbase + regindex, val); in aty_st_le32()
248 writel(val, par->ati_regbase + regindex); in aty_st_le32()
[all …]
Daty128fb.c524 static inline u32 _aty_ld_le32(volatile unsigned int regindex, in _aty_ld_le32() argument
527 return readl (par->regbase + regindex); in _aty_ld_le32()
530 static inline void _aty_st_le32(volatile unsigned int regindex, u32 val, in _aty_st_le32() argument
533 writel (val, par->regbase + regindex); in _aty_st_le32()
536 static inline u8 _aty_ld_8(unsigned int regindex, in _aty_ld_8() argument
539 return readb (par->regbase + regindex); in _aty_ld_8()
542 static inline void _aty_st_8(unsigned int regindex, u8 val, in _aty_st_8() argument
545 writeb (val, par->regbase + regindex); in _aty_st_8()
548 #define aty_ld_le32(regindex) _aty_ld_le32(regindex, par) argument
549 #define aty_st_le32(regindex, val) _aty_st_le32(regindex, val, par) argument
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82598.c842 u32 regindex; in ixgbe_set_vfta_82598() local
851 regindex = (vlan >> 5) & 0x7F; /* upper seven bits */ in ixgbe_set_vfta_82598()
858 bits = IXGBE_READ_REG(hw, IXGBE_VFTAVIND(vftabyte, regindex)); in ixgbe_set_vfta_82598()
861 IXGBE_WRITE_REG(hw, IXGBE_VFTAVIND(vftabyte, regindex), bits); in ixgbe_set_vfta_82598()
866 bits = IXGBE_READ_REG(hw, IXGBE_VFTA(regindex)); in ixgbe_set_vfta_82598()
873 IXGBE_WRITE_REG(hw, IXGBE_VFTA(regindex), bits); in ixgbe_set_vfta_82598()
Dixgbe_common.c3083 s32 regindex, first_empty_slot; in ixgbe_find_vlvf_slot() local
3104 for (regindex = IXGBE_VLVF_ENTRIES; --regindex;) { in ixgbe_find_vlvf_slot()
3105 bits = IXGBE_READ_REG(hw, IXGBE_VLVF(regindex)); in ixgbe_find_vlvf_slot()
3107 return regindex; in ixgbe_find_vlvf_slot()
3109 first_empty_slot = regindex; in ixgbe_find_vlvf_slot()
/linux-6.1.9/drivers/net/ethernet/intel/igb/
De1000_mac.c134 s32 regindex, first_empty_slot; in igb_find_vlvf_slot() local
152 for (regindex = E1000_VLVF_ARRAY_SIZE; --regindex > 0;) { in igb_find_vlvf_slot()
153 bits = rd32(E1000_VLVF(regindex)) & E1000_VLVF_VLANID_MASK; in igb_find_vlvf_slot()
155 return regindex; in igb_find_vlvf_slot()
157 first_empty_slot = regindex; in igb_find_vlvf_slot()
/linux-6.1.9/drivers/pinctrl/spear/
Dpinctrl-spear1340.c1976 unsigned int regoffset, regindex, bitoffset; in gpio_request_endisable() local
1982 regindex = pin / 32; in gpio_request_endisable()
1985 if (regindex <= 3) in gpio_request_endisable()
1986 regoffset = PAD_FUNCTION_EN_1 + regindex * sizeof(int *); in gpio_request_endisable()
1988 regoffset = PAD_FUNCTION_EN_5 + (regindex - 4) * sizeof(int *); in gpio_request_endisable()
/linux-6.1.9/drivers/video/fbdev/
Dimsttfb.c405 static inline u32 read_reg_le32(volatile u32 __iomem *base, int regindex) in read_reg_le32() argument
408 return in_le32(base + regindex); in read_reg_le32()
410 return readl(base + regindex); in read_reg_le32()
414 static inline void write_reg_le32(volatile u32 __iomem *base, int regindex, u32 val) in write_reg_le32() argument
417 out_le32(base + regindex, val); in write_reg_le32()
419 writel(val, base + regindex); in write_reg_le32()
Dneofb.c145 static inline void write_le32(int regindex, u32 val, const struct neofb_par *par) in write_le32() argument
147 writel(val, par->neo2200 + par->cursorOff + regindex); in write_le32()
/linux-6.1.9/drivers/usb/misc/
Duss720.c197 static const unsigned char regindex[9] = { in get_1284_register() local
217 *val = priv->reg[(reg >= 9) ? 0 : regindex[reg]]; in get_1284_register()
/linux-6.1.9/drivers/hwmon/
Dnct6775-core.c1738 int regindex = nr >> 3; in nct6775_store_beep() local
1753 err = nct6775_write_value(data, data->REG_BEEP[regindex], in nct6775_store_beep()
1754 (data->beeps >> (regindex << 3)) & 0xff); in nct6775_store_beep()
1791 int nr, bit, regindex; in store_temp_beep() local
1806 regindex = bit >> 3; in store_temp_beep()
1813 err = nct6775_write_value(data, data->REG_BEEP[regindex], in store_temp_beep()
1814 (data->beeps >> (regindex << 3)) & 0xff); in store_temp_beep()
/linux-6.1.9/drivers/gpu/drm/amd/include/
Datomfirmware.h4053 uint8_t regindex; member