/include/uapi/linux/ |
H A D | adb.h | 10 #define ADB_WRITEREG(id, reg) (0x08 | (reg) | ((id) << 4)) 11 #define ADB_READREG(id, reg) (0x0C | (reg) | ((id) << 4))
|
/include/video/ |
H A D | vga.h | 212 static inline void vga_io_w_fast (unsigned short port, unsigned char reg, argument 215 outw(VGA_OUT16VAL (val, reg), port); 229 unsigned char reg, unsigned char val) 231 writew (VGA_OUT16VAL (val, reg), regbase + port); 252 unsigned char reg, unsigned char val) 255 vga_mm_w_fast (regbase, port, reg, val); 257 vga_io_w_fast (port, reg, val); 265 static inline unsigned char vga_rcrt (void __iomem *regbase, unsigned char reg) argument 267 vga_w (regbase, VGA_CRT_IC, reg); 271 static inline void vga_wcrt (void __iomem *regbase, unsigned char reg, unsigne argument 228 vga_mm_w_fast(void __iomem *regbase, unsigned short port, unsigned char reg, unsigned char val) argument 251 vga_w_fast(void __iomem *regbase, unsigned short port, unsigned char reg, unsigned char val) argument 281 vga_io_rcrt(unsigned char reg) argument 287 vga_io_wcrt(unsigned char reg, unsigned char val) argument 297 vga_mm_rcrt(void __iomem *regbase, unsigned char reg) argument 303 vga_mm_wcrt(void __iomem *regbase, unsigned char reg, unsigned char val) argument 318 vga_rseq(void __iomem *regbase, unsigned char reg) argument 324 vga_wseq(void __iomem *regbase, unsigned char reg, unsigned char val) argument 334 vga_io_rseq(unsigned char reg) argument 340 vga_io_wseq(unsigned char reg, unsigned char val) argument 350 vga_mm_rseq(void __iomem *regbase, unsigned char reg) argument 356 vga_mm_wseq(void __iomem *regbase, unsigned char reg, unsigned char val) argument 370 vga_rgfx(void __iomem *regbase, unsigned char reg) argument 376 vga_wgfx(void __iomem *regbase, unsigned char reg, unsigned char val) argument 386 vga_io_rgfx(unsigned char reg) argument 392 vga_io_wgfx(unsigned char reg, unsigned char val) argument 402 vga_mm_rgfx(void __iomem *regbase, unsigned char reg) argument 408 vga_mm_wgfx(void __iomem *regbase, unsigned char reg, unsigned char val) argument 423 vga_rattr(void __iomem *regbase, unsigned char reg) argument 429 vga_wattr(void __iomem *regbase, unsigned char reg, unsigned char val) argument 435 vga_io_rattr(unsigned char reg) argument 441 vga_io_wattr(unsigned char reg, unsigned char val) argument 447 vga_mm_rattr(void __iomem *regbase, unsigned char reg) argument 453 vga_mm_wattr(void __iomem *regbase, unsigned char reg, unsigned char val) argument [all...] |
/include/linux/mfd/da9055/ |
H A D | core.h | 52 static inline int da9055_reg_read(struct da9055 *da9055, unsigned char reg) argument 56 ret = regmap_read(da9055->regmap, reg, &val); 63 static inline int da9055_reg_write(struct da9055 *da9055, unsigned char reg, argument 66 return regmap_write(da9055->regmap, reg, val); 69 static inline int da9055_group_read(struct da9055 *da9055, unsigned char reg, argument 72 return regmap_bulk_read(da9055->regmap, reg, val, reg_cnt); 75 static inline int da9055_group_write(struct da9055 *da9055, unsigned char reg, argument 78 return regmap_raw_write(da9055->regmap, reg, val, reg_cnt); 81 static inline int da9055_reg_update(struct da9055 *da9055, unsigned char reg, argument 85 return regmap_update_bits(da9055->regmap, reg, bit_mas [all...] |
/include/sound/ |
H A D | ak4xxx-adda.h | 35 void (*write)(struct snd_akm4xxx *ak, int chip, unsigned char reg, 84 void snd_akm4xxx_write(struct snd_akm4xxx *ak, int chip, unsigned char reg, 90 #define snd_akm4xxx_get(ak,chip,reg) \ 91 (ak)->images[(chip) * 16 + (reg)] 92 #define snd_akm4xxx_set(ak,chip,reg,val) \ 93 ((ak)->images[(chip) * 16 + (reg)] = (val)) 94 #define snd_akm4xxx_get_vol(ak,chip,reg) \ 95 (ak)->volumes[(chip) * 16 + (reg)] 96 #define snd_akm4xxx_set_vol(ak,chip,reg,val) \ 97 ((ak)->volumes[(chip) * 16 + (reg)] [all...] |
H A D | emu8000.h | 103 void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, 106 unsigned int reg); 107 void snd_emu8000_poke_dw(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, 110 unsigned int reg);
|
/include/linux/ |
H A D | dm9000.h | 36 void (*inblk)(void __iomem *reg, void *data, int len); 37 void (*outblk)(void __iomem *reg, void *data, int len); 38 void (*dumpblk)(void __iomem *reg, int len);
|
H A D | ssbi.h | 24 ssbi_reg_read(void *context, unsigned int reg, unsigned int *val) argument 29 ret = ssbi_read(context, reg, &v, 1); 37 ssbi_reg_write(void *context, unsigned int reg, unsigned int val) argument 40 return ssbi_write(context, reg, &v, 1);
|
H A D | regmap.h | 44 * @reg: Register address. 48 unsigned int reg; member in struct:reg_default 193 bool (*writeable_reg)(struct device *dev, unsigned int reg); 194 bool (*readable_reg)(struct device *dev, unsigned int reg); 195 bool (*volatile_reg)(struct device *dev, unsigned int reg); 196 bool (*precious_reg)(struct device *dev, unsigned int reg); 201 int (*reg_read)(void *context, unsigned int reg, unsigned int *val); 202 int (*reg_write)(void *context, unsigned int reg, unsigned int val); 270 const void *reg, size_t reg_len, 273 const void *reg, size_ 449 regmap_reg_in_range(unsigned int reg, const struct regmap_range *range) argument 469 unsigned int reg; member in struct:reg_field 576 regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument 583 regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val) argument 590 regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 597 regmap_raw_write_async(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 604 regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, size_t val_count) argument 611 regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument 618 regmap_raw_read(struct regmap *map, unsigned int reg, void *val, size_t val_len) argument 625 regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, size_t val_count) argument 632 regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 639 regmap_update_bits_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 647 regmap_update_bits_check(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 656 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument [all...] |
H A D | mdio.h | 158 u16 reg = 0; local 161 reg |= MDIO_EEE_100TX; 163 reg |= MDIO_EEE_1000T; 165 reg |= MDIO_EEE_10GT; 167 reg |= MDIO_EEE_1000KX; 169 reg |= MDIO_EEE_10GKX4; 171 reg |= MDIO_EEE_10GKR; 173 return reg;
|
/include/linux/mtd/ |
H A D | sh_flctl.h | 30 #define FLCMNCR(f) (f->reg + 0x0) 31 #define FLCMDCR(f) (f->reg + 0x4) 32 #define FLCMCDR(f) (f->reg + 0x8) 33 #define FLADR(f) (f->reg + 0xC) 34 #define FLADR2(f) (f->reg + 0x3C) 35 #define FLDATAR(f) (f->reg + 0x10) 36 #define FLDTCNTR(f) (f->reg + 0x14) 37 #define FLINTDMACR(f) (f->reg + 0x18) 38 #define FLBSYTMR(f) (f->reg + 0x1C) 39 #define FLBSYCNT(f) (f->reg 150 void __iomem *reg; member in struct:sh_flctl [all...] |
H A D | doc2000.h | 95 static inline u8 ReadDOC_(u32 __iomem *addr, unsigned long reg) argument 97 return __raw_readl(addr + reg); 99 static inline void WriteDOC_(u8 data, u32 __iomem *addr, unsigned long reg) argument 101 __raw_writel(data, addr + reg); 106 static inline u8 ReadDOC_(u16 __iomem *addr, unsigned long reg) argument 108 return __raw_readw(addr + reg); 110 static inline void WriteDOC_(u8 data, u16 __iomem *addr, unsigned long reg) argument 112 __raw_writew(data, addr + reg); 117 #define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg)) [all...] |
/include/trace/events/ |
H A D | regmap.h | 18 TP_PROTO(struct device *dev, unsigned int reg, 21 TP_ARGS(dev, reg, val), 25 __field( unsigned int, reg ) 31 __entry->reg = reg; 35 TP_printk("%s reg=%x val=%x", __get_str(name), 36 (unsigned int)__entry->reg, 42 TP_PROTO(struct device *dev, unsigned int reg, 45 TP_ARGS(dev, reg, val) 51 TP_PROTO(struct device *dev, unsigned int reg, [all...] |
/include/linux/mfd/da9052/ |
H A D | da9052.h | 34 #include <linux/mfd/da9052/reg.h> 105 int (*fix_io) (struct da9052 *da9052, unsigned char reg); 113 static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) argument 117 ret = regmap_read(da9052->regmap, reg, &val); 122 ret = da9052->fix_io(da9052, reg); 130 static inline int da9052_reg_write(struct da9052 *da9052, unsigned char reg, argument 135 ret = regmap_write(da9052->regmap, reg, val); 140 ret = da9052->fix_io(da9052, reg); 148 static inline int da9052_group_read(struct da9052 *da9052, unsigned char reg, argument 156 ret = regmap_read(da9052->regmap, reg 171 da9052_group_write(struct da9052 *da9052, unsigned char reg, unsigned reg_cnt, unsigned char *val) argument 192 da9052_reg_update(struct da9052 *da9052, unsigned char reg, unsigned char bit_mask, unsigned char reg_val) argument [all...] |
/include/linux/mfd/ |
H A D | tps65090.h | 121 static inline int tps65090_write(struct device *dev, int reg, uint8_t val) argument 125 return regmap_write(tps->rmap, reg, val); 128 static inline int tps65090_read(struct device *dev, int reg, uint8_t *val) argument 134 ret = regmap_read(tps->rmap, reg, &temp_val); 140 static inline int tps65090_set_bits(struct device *dev, int reg, argument 145 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); 148 static inline int tps65090_clr_bits(struct device *dev, int reg, argument 153 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u);
|
H A D | tps6586x.h | 99 extern int tps6586x_write(struct device *dev, int reg, uint8_t val); 100 extern int tps6586x_writes(struct device *dev, int reg, int len, uint8_t *val); 101 extern int tps6586x_read(struct device *dev, int reg, uint8_t *val); 102 extern int tps6586x_reads(struct device *dev, int reg, int len, uint8_t *val); 103 extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask); 104 extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask); 105 extern int tps6586x_update(struct device *dev, int reg, uint8_t val,
|
H A D | htc-pasic3.h | 18 extern void pasic3_write_register(struct device *dev, u32 reg, u8 val); 19 extern u8 pasic3_read_register(struct device *dev, u32 reg);
|
H A D | lp3943.h | 81 * @reg: Register address 86 u8 reg; member in struct:lp3943_reg_cfg 111 int lp3943_read_byte(struct lp3943 *lp3943, u8 reg, u8 *read); 112 int lp3943_write_byte(struct lp3943 *lp3943, u8 reg, u8 data); 113 int lp3943_update_bits(struct lp3943 *lp3943, u8 reg, u8 mask, u8 data);
|
H A D | smsc.h | 42 static inline int smsc_read(struct device *child, unsigned int reg, argument 47 return regmap_read(smsc->regmap, reg, dest); 50 static inline int smsc_write(struct device *child, unsigned int reg, argument 55 return regmap_write(smsc->regmap, reg, value);
|
H A D | wm8400.h | 37 int wm8400_register_regulator(struct device *dev, int reg,
|
H A D | max8998-private.h | 174 extern int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest); 175 extern int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count, 177 extern int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value); 178 extern int max8998_bulk_write(struct i2c_client *i2c, u8 reg, int count, 180 extern int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask);
|
/include/linux/spi/ |
H A D | max7301.h | 17 int (*write)(struct device *dev, unsigned int reg, unsigned int val); 18 int (*read)(struct device *dev, unsigned int reg);
|
/include/linux/mfd/wm8994/ |
H A D | core.h | 87 static inline int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg) argument 92 ret = regmap_read(wm8994->regmap, reg, &val); 100 static inline int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, argument 103 return regmap_write(wm8994->regmap, reg, val); 106 static inline int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, argument 109 return regmap_bulk_read(wm8994->regmap, reg, buf, count); 112 static inline int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg, argument 115 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); 118 static inline int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, argument 121 return regmap_update_bits(wm8994->regmap, reg, mas [all...] |
/include/drm/ |
H A D | drm_os_linux.h | 10 static inline u64 readq(void __iomem *reg) argument 12 return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32); 15 static inline void writeq(u64 val, void __iomem *reg) argument 17 writel(val & 0xffffffff, reg); 18 writel(val >> 32, reg + 0x4UL);
|
/include/linux/platform_data/ |
H A D | keypad-omap.h | 13 #define omap_readw(reg) 0 14 #define omap_writew(val, reg) do {} while (0)
|
/include/linux/iio/imu/ |
H A D | adis.h | 17 #define ADIS_WRITE_REG(reg) ((0x80 | (reg))) 18 #define ADIS_READ_REG(reg) ((reg) & 0x7f) 74 int adis_write_reg(struct adis *adis, unsigned int reg, 76 int adis_read_reg(struct adis *adis, unsigned int reg, 82 * @reg: The address of the register to be written 85 static inline int adis_write_reg_8(struct adis *adis, unsigned int reg, argument 88 return adis_write_reg(adis, reg, val, 1); 94 * @reg 97 adis_write_reg_16(struct adis *adis, unsigned int reg, uint16_t val) argument 109 adis_write_reg_32(struct adis *adis, unsigned int reg, uint32_t val) argument 121 adis_read_reg_16(struct adis *adis, unsigned int reg, uint16_t *val) argument 139 adis_read_reg_32(struct adis *adis, unsigned int reg, uint32_t *val) argument [all...] |