/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 …]
|
D | sgivw.h | 15 #define DBE_GETREG(reg, dest) ((dest) = DBE_REG_BASE->reg) argument 16 #define DBE_SETREG(reg, src) DBE_REG_BASE->reg = (src) argument 17 #define DBE_IGETREG(reg, idx, dest) ((dest) = DBE_REG_BASE->reg[idx]) argument 18 #define DBE_ISETREG(reg, idx, src) (DBE_REG_BASE->reg[idx] = (src)) argument 24 #define GET_DBE_FIELD(reg, field, v) GET((v), DBE_##reg##_##field##_MSB, DBE_##reg##_##field… argument 25 #define SET_DBE_FIELD(reg, field, v, f) SET((v), (f), DBE_##reg##_##field##_MSB, DBE_##reg##_##… argument
|
/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/trace/events/ |
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; 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, 54 TP_ARGS(dev, reg, val) 60 TP_PROTO(struct device *dev, unsigned int reg, [all …]
|
D | asoc.h | 23 TP_PROTO(struct snd_soc_codec *codec, unsigned int reg, 26 TP_ARGS(codec, reg, val), 31 __field( unsigned int, reg ) 38 __entry->reg = reg; 43 (int)__entry->id, (unsigned int)__entry->reg, 49 TP_PROTO(struct snd_soc_codec *codec, unsigned int reg, 52 TP_ARGS(codec, reg, val) 58 TP_PROTO(struct snd_soc_codec *codec, unsigned int reg, 61 TP_ARGS(codec, reg, val) 67 TP_PROTO(struct snd_soc_platform *platform, unsigned int reg, [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 | soc-dapm.h | 49 .num_kcontrols = 0, .reg = SND_SOC_NOPM } 52 .num_kcontrols = 0, .reg = SND_SOC_NOPM } 55 .num_kcontrols = 0, .reg = SND_SOC_NOPM } 58 .num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \ 62 .num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \ 66 .num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \ 70 .num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \ 76 { .id = snd_soc_dapm_pga, .name = wname, .reg = wreg, .shift = wshift, \ 80 { .id = snd_soc_dapm_out_drv, .name = wname, .reg = wreg, .shift = wshift, \ 84 { .id = snd_soc_dapm_mixer, .name = wname, .reg = wreg, .shift = wshift, \ [all …]
|
D | vx_core.h | 91 unsigned char (*in8)(struct vx_core *chip, int reg); 92 unsigned int (*in32)(struct vx_core *chip, int reg); 93 void (*out8)(struct vx_core *chip, int reg, unsigned char val); 94 void (*out32)(struct vx_core *chip, int reg, unsigned int val); 100 void (*akm_write)(struct vx_core *chip, int reg, unsigned int data); 240 static inline unsigned char snd_vx_inb(struct vx_core *chip, int reg) in snd_vx_inb() argument 242 return chip->ops->in8(chip, reg); in snd_vx_inb() 245 static inline unsigned int snd_vx_inl(struct vx_core *chip, int reg) in snd_vx_inl() argument 247 return chip->ops->in32(chip, reg); in snd_vx_inl() 250 static inline void snd_vx_outb(struct vx_core *chip, int reg, unsigned char val) in snd_vx_outb() argument [all …]
|
/include/linux/mfd/da9052/ |
D | da9052.h | 104 int (*fix_io) (struct da9052 *da9052, unsigned char reg); 112 static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) in da9052_reg_read() argument 116 ret = regmap_read(da9052->regmap, reg, &val); in da9052_reg_read() 121 ret = da9052->fix_io(da9052, reg); in da9052_reg_read() 129 static inline int da9052_reg_write(struct da9052 *da9052, unsigned char reg, in da9052_reg_write() argument 134 ret = regmap_write(da9052->regmap, reg, val); in da9052_reg_write() 139 ret = da9052->fix_io(da9052, reg); in da9052_reg_write() 147 static inline int da9052_group_read(struct da9052 *da9052, unsigned char reg, in da9052_group_read() argument 152 ret = regmap_bulk_read(da9052->regmap, reg, val, reg_cnt); in da9052_group_read() 157 ret = da9052->fix_io(da9052, reg); in da9052_group_read() [all …]
|
/include/linux/ |
D | regmap.h | 44 unsigned int reg; member 184 bool (*writeable_reg)(struct device *dev, unsigned int reg); 185 bool (*readable_reg)(struct device *dev, unsigned int reg); 186 bool (*volatile_reg)(struct device *dev, unsigned int reg); 187 bool (*precious_reg)(struct device *dev, unsigned int reg); 192 int (*reg_read)(void *context, unsigned int reg, unsigned int *val); 193 int (*reg_write)(void *context, unsigned int reg, unsigned int val); 260 const void *reg, size_t reg_len, 263 const void *reg, size_t reg_len, 373 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); [all …]
|
D | dm9000.h | 34 void (*inblk)(void __iomem *reg, void *data, int len); 35 void (*outblk)(void __iomem *reg, void *data, int len); 36 void (*dumpblk)(void __iomem *reg, int len);
|
D | mdio.h | 161 u16 reg = 0; in ethtool_adv_to_mmd_eee_adv_t() local 164 reg |= MDIO_EEE_100TX; in ethtool_adv_to_mmd_eee_adv_t() 166 reg |= MDIO_EEE_1000T; in ethtool_adv_to_mmd_eee_adv_t() 168 reg |= MDIO_EEE_10GT; in ethtool_adv_to_mmd_eee_adv_t() 170 reg |= MDIO_EEE_1000KX; in ethtool_adv_to_mmd_eee_adv_t() 172 reg |= MDIO_EEE_10GKX4; in ethtool_adv_to_mmd_eee_adv_t() 174 reg |= MDIO_EEE_10GKR; in ethtool_adv_to_mmd_eee_adv_t() 176 return reg; in ethtool_adv_to_mmd_eee_adv_t()
|
D | memblock.h | 196 static inline unsigned long memblock_region_memory_base_pfn(const struct memblock_region *reg) in memblock_region_memory_base_pfn() argument 198 return PFN_UP(reg->base); in memblock_region_memory_base_pfn() 205 static inline unsigned long memblock_region_memory_end_pfn(const struct memblock_region *reg) in memblock_region_memory_end_pfn() argument 207 return PFN_DOWN(reg->base + reg->size); in memblock_region_memory_end_pfn() 214 static inline unsigned long memblock_region_reserved_base_pfn(const struct memblock_region *reg) in memblock_region_reserved_base_pfn() argument 216 return PFN_DOWN(reg->base); in memblock_region_reserved_base_pfn() 223 static inline unsigned long memblock_region_reserved_end_pfn(const struct memblock_region *reg) in memblock_region_reserved_end_pfn() argument 225 return PFN_UP(reg->base + reg->size); in memblock_region_reserved_end_pfn()
|
/include/linux/mfd/ |
D | tps65090.h | 102 static inline int tps65090_write(struct device *dev, int reg, uint8_t val) in tps65090_write() argument 106 return regmap_write(tps->rmap, reg, val); in tps65090_write() 109 static inline int tps65090_read(struct device *dev, int reg, uint8_t *val) in tps65090_read() argument 115 ret = regmap_read(tps->rmap, reg, &temp_val); in tps65090_read() 121 static inline int tps65090_set_bits(struct device *dev, int reg, in tps65090_set_bits() argument 126 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); in tps65090_set_bits() 129 static inline int tps65090_clr_bits(struct device *dev, int reg, in tps65090_clr_bits() argument 134 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u); in tps65090_clr_bits()
|
D | tps6586x.h | 91 extern int tps6586x_write(struct device *dev, int reg, uint8_t val); 92 extern int tps6586x_writes(struct device *dev, int reg, int len, uint8_t *val); 93 extern int tps6586x_read(struct device *dev, int reg, uint8_t *val); 94 extern int tps6586x_reads(struct device *dev, int reg, int len, uint8_t *val); 95 extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask); 96 extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask); 97 extern int tps6586x_update(struct device *dev, int reg, uint8_t val,
|
D | tmio.h | 46 #define sd_config_write8(base, shift, reg, val) \ argument 47 tmio_iowrite8((val), (base) + ((reg) << (shift))) 48 #define sd_config_write16(base, shift, reg, val) \ argument 49 tmio_iowrite16((val), (base) + ((reg) << (shift))) 50 #define sd_config_write32(base, shift, reg, val) \ argument 52 tmio_iowrite16((val), (base) + ((reg) << (shift))); \ 53 tmio_iowrite16((val) >> 16, (base) + ((reg + 2) << (shift))); \
|
D | dbx500-prcmu.h | 323 int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); 324 int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size); 325 int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, u8 size); 434 static inline u32 prcmu_read(unsigned int reg) in prcmu_read() argument 436 return db8500_prcmu_read(reg); in prcmu_read() 439 static inline void prcmu_write(unsigned int reg, u32 value) in prcmu_write() argument 441 db8500_prcmu_write(reg, value); in prcmu_write() 444 static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) in prcmu_write_masked() argument 446 db8500_prcmu_write_masked(reg, mask, value); in prcmu_write_masked() 492 static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) in prcmu_abb_read() argument [all …]
|
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 | 337 static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val) in rc5t583_write() argument 340 return regmap_write(rc5t583->regmap, reg, val); in rc5t583_write() 343 static inline int rc5t583_read(struct device *dev, uint8_t reg, uint8_t *val) in rc5t583_read() argument 348 ret = regmap_read(rc5t583->regmap, reg, &ival); in rc5t583_read() 354 static inline int rc5t583_set_bits(struct device *dev, unsigned int reg, in rc5t583_set_bits() argument 358 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, bit_mask); in rc5t583_set_bits() 361 static inline int rc5t583_clear_bits(struct device *dev, unsigned int reg, in rc5t583_clear_bits() argument 365 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, 0); in rc5t583_clear_bits() 368 static inline int rc5t583_update(struct device *dev, unsigned int reg, in rc5t583_update() argument 372 return regmap_update_bits(rc5t583->regmap, reg, mask, val); in rc5t583_update()
|
/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/iio/imu/ |
D | adis.h | 17 #define ADIS_WRITE_REG(reg) ((0x80 | (reg))) argument 18 #define ADIS_READ_REG(reg) ((reg) & 0x7f) argument 74 int adis_write_reg(struct adis *adis, unsigned int reg, 76 int adis_read_reg(struct adis *adis, unsigned int reg, 85 static inline int adis_write_reg_8(struct adis *adis, unsigned int reg, in adis_write_reg_8() argument 88 return adis_write_reg(adis, reg, val, 1); in adis_write_reg_8() 97 static inline int adis_write_reg_16(struct adis *adis, unsigned int reg, in adis_write_reg_16() argument 100 return adis_write_reg(adis, reg, val, 2); in adis_write_reg_16() 109 static inline int adis_write_reg_32(struct adis *adis, unsigned int reg, in adis_write_reg_32() argument 112 return adis_write_reg(adis, reg, val, 4); in adis_write_reg_32() [all …]
|
/include/linux/mfd/wm8994/ |
D | core.h | 86 int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg); 87 int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, 89 int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, 91 int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, 93 int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg,
|
/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() 75 static __inline__ int mtrr_del(int reg, unsigned long base, unsigned long size) in mtrr_del() argument
|