Home
last modified time | relevance | path

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

/linux/drivers/video/fbdev/aty/
H A Datyfb.h228 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 …]
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_hw.c1998 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/drivers/net/ethernet/intel/igb/
H A 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/drivers/pinctrl/spear/
H A 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/drivers/video/fbdev/
H A 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()
H A 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/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_common.c3070 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/drivers/hwmon/
H A Dnct6775-core.c1829 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/drivers/gpu/drm/amd/include/
H A Datomfirmware.h4192 uint8_t regindex; member