/linux-6.12.1/drivers/video/fbdev/aty/ |
D | atyfb.h | 228 static inline u32 aty_ld_le32(int regindex, const struct atyfb_par *par) in aty_ld_le32() argument 231 if (regindex >= 0x400) in aty_ld_le32() 232 regindex -= 0x800; in aty_ld_le32() 235 return in_le32(par->ati_regbase + regindex); in aty_ld_le32() 237 return readl(par->ati_regbase + regindex); in aty_ld_le32() 241 static inline void aty_st_le32(int regindex, u32 val, const struct atyfb_par *par) in aty_st_le32() argument 244 if (regindex >= 0x400) in aty_st_le32() 245 regindex -= 0x800; in aty_st_le32() 248 out_le32(par->ati_regbase + regindex, val); in aty_st_le32() 250 writel(val, par->ati_regbase + regindex); in aty_st_le32() [all …]
|
D | aty128fb.c | 522 static inline u32 _aty_ld_le32(volatile unsigned int regindex, in _aty_ld_le32() argument 525 return readl (par->regbase + regindex); in _aty_ld_le32() 528 static inline void _aty_st_le32(volatile unsigned int regindex, u32 val, in _aty_st_le32() argument 531 writel (val, par->regbase + regindex); in _aty_st_le32() 534 static inline u8 _aty_ld_8(unsigned int regindex, in _aty_ld_8() argument 537 return readb (par->regbase + regindex); in _aty_ld_8() 540 static inline void _aty_st_8(unsigned int regindex, u8 val, in _aty_st_8() argument 543 writeb (val, par->regbase + regindex); in _aty_st_8() 546 #define aty_ld_le32(regindex) _aty_ld_le32(regindex, par) argument 547 #define aty_st_le32(regindex, val) _aty_st_le32(regindex, val, par) argument [all …]
|
/linux-6.12.1/drivers/net/ethernet/wangxun/libwx/ |
D | wx_hw.c | 1998 int regindex; in wx_find_vlvf_slot() local 2007 for (regindex = 1; regindex < WX_PSR_VLAN_SWC_ENTRIES; regindex++) { in wx_find_vlvf_slot() 2008 wr32(wx, WX_PSR_VLAN_SWC_IDX, regindex); in wx_find_vlvf_slot() 2011 first_empty_slot = regindex; in wx_find_vlvf_slot() 2016 if (regindex >= WX_PSR_VLAN_SWC_ENTRIES) { in wx_find_vlvf_slot() 2018 regindex = first_empty_slot; in wx_find_vlvf_slot() 2020 regindex = -ENOMEM; in wx_find_vlvf_slot() 2023 return regindex; in wx_find_vlvf_slot() 2109 int regindex, ret; in wx_set_vfta() local 2122 regindex = (vlan >> 5) & 0x7F; in wx_set_vfta() [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_82598.c | 842 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()
|
D | ixgbe_common.c | 3070 int regindex, first_empty_slot; in ixgbe_find_vlvf_slot() local 3091 for (regindex = IXGBE_VLVF_ENTRIES; --regindex;) { in ixgbe_find_vlvf_slot() 3092 bits = IXGBE_READ_REG(hw, IXGBE_VLVF(regindex)); in ixgbe_find_vlvf_slot() 3094 return regindex; in ixgbe_find_vlvf_slot() 3096 first_empty_slot = regindex; in ixgbe_find_vlvf_slot()
|
/linux-6.12.1/drivers/net/ethernet/intel/igb/ |
D | e1000_mac.c | 134 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.12.1/drivers/pinctrl/spear/ |
D | pinctrl-spear1340.c | 1976 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.12.1/drivers/video/fbdev/ |
D | imsttfb.c | 405 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()
|
D | neofb.c | 145 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.12.1/drivers/usb/misc/ |
D | uss720.c | 197 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.12.1/drivers/hwmon/ |
D | nct6775-core.c | 1829 int regindex = nr >> 3; in nct6775_store_beep() local 1844 err = nct6775_write_value(data, data->REG_BEEP[regindex], in nct6775_store_beep() 1845 (data->beeps >> (regindex << 3)) & 0xff); in nct6775_store_beep() 1882 int nr, bit, regindex; in store_temp_beep() local 1897 regindex = bit >> 3; in store_temp_beep() 1904 err = nct6775_write_value(data, data->REG_BEEP[regindex], in store_temp_beep() 1905 (data->beeps >> (regindex << 3)) & 0xff); in store_temp_beep()
|
/linux-6.12.1/drivers/gpu/drm/amd/include/ |
D | atomfirmware.h | 4192 uint8_t regindex; member
|