/include/video/ |
D | vga.h | 212 static inline void vga_io_w_fast (unsigned short port, unsigned char reg, in vga_io_w_fast() argument 215 outw(VGA_OUT16VAL (val, reg), port); in vga_io_w_fast() 229 unsigned char reg, unsigned char val) in vga_mm_w_fast() argument 231 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast() 252 unsigned char reg, unsigned char val) in vga_w_fast() argument 255 vga_mm_w_fast (regbase, port, reg, val); in vga_w_fast() 257 vga_io_w_fast (port, reg, val); in vga_w_fast() 265 static inline unsigned char vga_rcrt (void __iomem *regbase, unsigned char reg) in vga_rcrt() argument 267 vga_w (regbase, VGA_CRT_IC, reg); in vga_rcrt() 271 static inline void vga_wcrt (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wcrt() argument [all …]
|
/include/linux/mtd/ |
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 + 0x20) [all …]
|
D | doc2000.h | 95 static inline u8 ReadDOC_(u32 __iomem *addr, unsigned long reg) in ReadDOC_() argument 97 return __raw_readl(addr + reg); in ReadDOC_() 99 static inline void WriteDOC_(u8 data, u32 __iomem *addr, unsigned long reg) in WriteDOC_() argument 101 __raw_writel(data, addr + reg); in WriteDOC_() 106 static inline u8 ReadDOC_(u16 __iomem *addr, unsigned long reg) in ReadDOC_() argument 108 return __raw_readw(addr + reg); in ReadDOC_() 110 static inline void WriteDOC_(u8 data, u16 __iomem *addr, unsigned long reg) in WriteDOC_() argument 112 __raw_writew(data, addr + reg); in WriteDOC_() 117 #define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg)) argument 118 #define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg)) argument [all …]
|
/include/linux/mfd/da9055/ |
D | core.h | 52 static inline int da9055_reg_read(struct da9055 *da9055, unsigned char reg) in da9055_reg_read() argument 56 ret = regmap_read(da9055->regmap, reg, &val); in da9055_reg_read() 63 static inline int da9055_reg_write(struct da9055 *da9055, unsigned char reg, in da9055_reg_write() argument 66 return regmap_write(da9055->regmap, reg, val); in da9055_reg_write() 69 static inline int da9055_group_read(struct da9055 *da9055, unsigned char reg, in da9055_group_read() argument 72 return regmap_bulk_read(da9055->regmap, reg, val, reg_cnt); in da9055_group_read() 75 static inline int da9055_group_write(struct da9055 *da9055, unsigned char reg, in da9055_group_write() argument 78 return regmap_raw_write(da9055->regmap, reg, val, reg_cnt); in da9055_group_write() 81 static inline int da9055_reg_update(struct da9055 *da9055, unsigned char reg, in da9055_reg_update() argument 85 return regmap_update_bits(da9055->regmap, reg, bit_mask, reg_val); in da9055_reg_update()
|
/include/sound/ |
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) \ argument 91 (ak)->images[(chip) * 16 + (reg)] 92 #define snd_akm4xxx_set(ak,chip,reg,val) \ argument 93 ((ak)->images[(chip) * 16 + (reg)] = (val)) 94 #define snd_akm4xxx_get_vol(ak,chip,reg) \ argument 95 (ak)->volumes[(chip) * 16 + (reg)] 96 #define snd_akm4xxx_set_vol(ak,chip,reg,val) \ argument 97 ((ak)->volumes[(chip) * 16 + (reg)] = (val))
|
D | hdaudio.h | 371 #define _snd_hdac_chip_write(type, chip, reg, value) \ argument 372 ((chip)->io_ops->reg_write ## type(value, (chip)->remap_addr + (reg))) 373 #define _snd_hdac_chip_read(type, chip, reg) \ argument 374 ((chip)->io_ops->reg_read ## type((chip)->remap_addr + (reg))) 377 #define snd_hdac_chip_writel(chip, reg, value) \ argument 378 _snd_hdac_chip_write(l, chip, AZX_REG_ ## reg, value) 379 #define snd_hdac_chip_writew(chip, reg, value) \ argument 380 _snd_hdac_chip_write(w, chip, AZX_REG_ ## reg, value) 381 #define snd_hdac_chip_writeb(chip, reg, value) \ argument 382 _snd_hdac_chip_write(b, chip, AZX_REG_ ## reg, value) [all …]
|
D | vx_core.h | 89 unsigned char (*in8)(struct vx_core *chip, int reg); 90 unsigned int (*in32)(struct vx_core *chip, int reg); 91 void (*out8)(struct vx_core *chip, int reg, unsigned char val); 92 void (*out32)(struct vx_core *chip, int reg, unsigned int val); 98 void (*akm_write)(struct vx_core *chip, int reg, unsigned int data); 237 static inline unsigned char snd_vx_inb(struct vx_core *chip, int reg) in snd_vx_inb() argument 239 return chip->ops->in8(chip, reg); in snd_vx_inb() 242 static inline unsigned int snd_vx_inl(struct vx_core *chip, int reg) in snd_vx_inl() argument 244 return chip->ops->in32(chip, reg); in snd_vx_inl() 247 static inline void snd_vx_outb(struct vx_core *chip, int reg, unsigned char val) in snd_vx_outb() argument [all …]
|
D | gus.h | 485 extern void snd_gf1_ctrl_stop(struct snd_gus_card * gus, unsigned char reg); 487 extern void snd_gf1_write8(struct snd_gus_card * gus, unsigned char reg, unsigned char data); 488 extern unsigned char snd_gf1_look8(struct snd_gus_card * gus, unsigned char reg); 489 static inline unsigned char snd_gf1_read8(struct snd_gus_card * gus, unsigned char reg) in snd_gf1_read8() argument 491 return snd_gf1_look8(gus, reg | 0x80); in snd_gf1_read8() 493 extern void snd_gf1_write16(struct snd_gus_card * gus, unsigned char reg, unsigned int data); 494 extern unsigned short snd_gf1_look16(struct snd_gus_card * gus, unsigned char reg); 495 static inline unsigned short snd_gf1_read16(struct snd_gus_card * gus, unsigned char reg) in snd_gf1_read16() argument 497 return snd_gf1_look16(gus, reg | 0x80); in snd_gf1_read16() 499 extern void snd_gf1_adlib_write(struct snd_gus_card * gus, unsigned char reg, unsigned char data); [all …]
|
/include/linux/mfd/da9052/ |
D | da9052.h | 105 int (*fix_io) (struct da9052 *da9052, unsigned char reg); 113 static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) in da9052_reg_read() argument 117 ret = regmap_read(da9052->regmap, reg, &val); in da9052_reg_read() 122 ret = da9052->fix_io(da9052, reg); in da9052_reg_read() 130 static inline int da9052_reg_write(struct da9052 *da9052, unsigned char reg, in da9052_reg_write() argument 135 ret = regmap_write(da9052->regmap, reg, val); in da9052_reg_write() 140 ret = da9052->fix_io(da9052, reg); in da9052_reg_write() 148 static inline int da9052_group_read(struct da9052 *da9052, unsigned char reg, in da9052_group_read() argument 156 ret = regmap_read(da9052->regmap, reg + i, &tmp); in da9052_group_read() 163 ret = da9052->fix_io(da9052, reg); in da9052_group_read() [all …]
|
/include/linux/mfd/wm8994/ |
D | core.h | 87 static inline int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg) in wm8994_reg_read() argument 92 ret = regmap_read(wm8994->regmap, reg, &val); in wm8994_reg_read() 100 static inline int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_reg_write() argument 103 return regmap_write(wm8994->regmap, reg, val); in wm8994_reg_write() 106 static inline int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_read() argument 109 return regmap_bulk_read(wm8994->regmap, reg, buf, count); in wm8994_bulk_read() 112 static inline int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_write() argument 115 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); in wm8994_bulk_write() 118 static inline int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, in wm8994_set_bits() argument 121 return regmap_update_bits(wm8994->regmap, reg, mask, val); in wm8994_set_bits()
|
/include/soc/nps/ |
D | common.h | 125 blkid:6, reg:8, __reserved:2; member 134 u32 base:7, blkid:11, reg:12, __reserved:2; member 140 static inline void *nps_host_reg_non_cl(u32 blkid, u32 reg) in nps_host_reg_non_cl() argument 146 reg_address.reg = reg; in nps_host_reg_non_cl() 151 static inline void *nps_host_reg(u32 cpu, u32 blkid, u32 reg) in nps_host_reg() argument 160 reg_address.reg = reg; in nps_host_reg()
|
/include/uapi/linux/ |
D | adb.h | 10 #define ADB_WRITEREG(id, reg) (0x08 | (reg) | ((id) << 4)) argument 11 #define ADB_READREG(id, reg) (0x0C | (reg) | ((id) << 4)) argument
|
/include/linux/mfd/ |
D | tps65090.h | 126 static inline int tps65090_write(struct device *dev, int reg, uint8_t val) in tps65090_write() argument 130 return regmap_write(tps->rmap, reg, val); in tps65090_write() 133 static inline int tps65090_read(struct device *dev, int reg, uint8_t *val) in tps65090_read() argument 139 ret = regmap_read(tps->rmap, reg, &temp_val); in tps65090_read() 145 static inline int tps65090_set_bits(struct device *dev, int reg, in tps65090_set_bits() argument 150 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); in tps65090_set_bits() 153 static inline int tps65090_clr_bits(struct device *dev, int reg, in tps65090_clr_bits() argument 158 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u); in tps65090_clr_bits()
|
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,
|
D | dbx500-prcmu.h | 257 int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); 258 int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size); 259 int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, u8 size); 364 static inline u32 prcmu_read(unsigned int reg) in prcmu_read() argument 366 return db8500_prcmu_read(reg); in prcmu_read() 369 static inline void prcmu_write(unsigned int reg, u32 value) in prcmu_write() argument 371 db8500_prcmu_write(reg, value); in prcmu_write() 374 static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) in prcmu_write_masked() argument 376 db8500_prcmu_write_masked(reg, mask, value); in prcmu_write_masked() 422 static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) in prcmu_abb_read() argument [all …]
|
D | tmio.h | 47 #define sd_config_write8(base, shift, reg, val) \ argument 48 tmio_iowrite8((val), (base) + ((reg) << (shift))) 49 #define sd_config_write16(base, shift, reg, val) \ argument 50 tmio_iowrite16((val), (base) + ((reg) << (shift))) 51 #define sd_config_write32(base, shift, reg, val) \ argument 53 tmio_iowrite16((val), (base) + ((reg) << (shift))); \ 54 tmio_iowrite16((val) >> 16, (base) + ((reg + 2) << (shift))); \
|
D | lp3943.h | 86 u8 reg; member 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);
|
D | smsc.h | 42 static inline int smsc_read(struct device *child, unsigned int reg, in smsc_read() argument 47 return regmap_read(smsc->regmap, reg, dest); in smsc_read() 50 static inline int smsc_write(struct device *child, unsigned int reg, in smsc_write() argument 55 return regmap_write(smsc->regmap, reg, value); in smsc_write()
|
D | rc5t583.h | 338 static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val) in rc5t583_write() argument 341 return regmap_write(rc5t583->regmap, reg, val); in rc5t583_write() 344 static inline int rc5t583_read(struct device *dev, uint8_t reg, uint8_t *val) in rc5t583_read() argument 349 ret = regmap_read(rc5t583->regmap, reg, &ival); in rc5t583_read() 355 static inline int rc5t583_set_bits(struct device *dev, unsigned int reg, in rc5t583_set_bits() argument 359 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, bit_mask); in rc5t583_set_bits() 362 static inline int rc5t583_clear_bits(struct device *dev, unsigned int reg, in rc5t583_clear_bits() argument 366 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, 0); in rc5t583_clear_bits() 369 static inline int rc5t583_update(struct device *dev, unsigned int reg, in rc5t583_update() argument 373 return regmap_update_bits(rc5t583->regmap, reg, mask, val); in rc5t583_update()
|
/include/linux/ |
D | regmap.h | 51 unsigned int reg; member 64 unsigned int reg; member 69 #define regmap_update_bits(map, reg, mask, val) \ argument 70 regmap_update_bits_base(map, reg, mask, val, NULL, false, false) 71 #define regmap_update_bits_async(map, reg, mask, val)\ argument 72 regmap_update_bits_base(map, reg, mask, val, NULL, true, false) 73 #define regmap_update_bits_check(map, reg, mask, val, change)\ argument 74 regmap_update_bits_base(map, reg, mask, val, change, false, false) 75 #define regmap_update_bits_check_async(map, reg, mask, val, change)\ argument 76 regmap_update_bits_base(map, reg, mask, val, change, true, false) [all …]
|
D | ssbi.h | 24 ssbi_reg_read(void *context, unsigned int reg, unsigned int *val) in ssbi_reg_read() argument 29 ret = ssbi_read(context, reg, &v, 1); in ssbi_reg_read() 37 ssbi_reg_write(void *context, unsigned int reg, unsigned int val) in ssbi_reg_write() argument 40 return ssbi_write(context, reg, &v, 1); in ssbi_reg_write()
|
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);
|
/include/linux/iio/imu/ |
D | adis.h | 17 #define ADIS_WRITE_REG(reg) ((0x80 | (reg))) argument 18 #define ADIS_READ_REG(reg) ((reg) & 0x7f) argument 75 int adis_write_reg(struct adis *adis, unsigned int reg, 77 int adis_read_reg(struct adis *adis, unsigned int reg, 86 static inline int adis_write_reg_8(struct adis *adis, unsigned int reg, in adis_write_reg_8() argument 89 return adis_write_reg(adis, reg, val, 1); in adis_write_reg_8() 98 static inline int adis_write_reg_16(struct adis *adis, unsigned int reg, in adis_write_reg_16() argument 101 return adis_write_reg(adis, reg, val, 2); in adis_write_reg_16() 110 static inline int adis_write_reg_32(struct adis *adis, unsigned int reg, in adis_write_reg_32() argument 113 return adis_write_reg(adis, reg, val, 4); in adis_write_reg_32() [all …]
|
/include/linux/mfd/da9150/ |
D | core.h | 78 u8 da9150_reg_read(struct da9150 *da9150, u16 reg); 79 void da9150_reg_write(struct da9150 *da9150, u16 reg, u8 val); 80 void da9150_set_bits(struct da9150 *da9150, u16 reg, u8 mask, u8 val); 82 void da9150_bulk_read(struct da9150 *da9150, u16 reg, int count, u8 *buf); 83 void da9150_bulk_write(struct da9150 *da9150, u16 reg, int count, const u8 *buf);
|
/include/drm/ |
D | drm_os_linux.h | 10 static inline u64 readq(void __iomem *reg) in readq() argument 12 return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32); in readq() 15 static inline void writeq(u64 val, void __iomem *reg) in writeq() argument 17 writel(val & 0xffffffff, reg); in writeq() 18 writel(val >> 32, reg + 0x4UL); in writeq()
|