Home
last modified time | relevance | path

Searched refs:reg (Results 1 – 25 of 125) sorted by relevance

12345

/include/video/
Dvga.h234 static inline void vga_io_w_fast (unsigned short port, unsigned char reg, in vga_io_w_fast() argument
237 outw(VGA_OUT16VAL (val, reg), port); in vga_io_w_fast()
251 unsigned char reg, unsigned char val) in vga_mm_w_fast() argument
253 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast()
274 unsigned char reg, unsigned char val) in vga_w_fast() argument
277 vga_mm_w_fast (regbase, port, reg, val); in vga_w_fast()
279 vga_io_w_fast (port, reg, val); in vga_w_fast()
287 static inline unsigned char vga_rcrt (void __iomem *regbase, unsigned char reg) in vga_rcrt() argument
289 vga_w (regbase, VGA_CRT_IC, reg); in vga_rcrt()
293 static inline void vga_wcrt (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wcrt() argument
[all …]
Dsgivw.h15 #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/
Dsh_flctl.h29 #define FLCMNCR(f) (f->reg + 0x0)
30 #define FLCMDCR(f) (f->reg + 0x4)
31 #define FLCMCDR(f) (f->reg + 0x8)
32 #define FLADR(f) (f->reg + 0xC)
33 #define FLADR2(f) (f->reg + 0x3C)
34 #define FLDATAR(f) (f->reg + 0x10)
35 #define FLDTCNTR(f) (f->reg + 0x14)
36 #define FLINTDMACR(f) (f->reg + 0x18)
37 #define FLBSYTMR(f) (f->reg + 0x1C)
38 #define FLBSYCNT(f) (f->reg + 0x20)
[all …]
Ddoc2000.h95 #define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2… argument
96 #define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d… argument
99 #define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1… argument
100 #define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d… argument
103 #define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg)) argument
104 #define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg)) argument
114 #define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg) argument
115 #define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg) argument
/include/trace/events/
Dregmap.h18 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 …]
Dasoc.h21 TP_PROTO(struct snd_soc_codec *codec, unsigned int reg,
24 TP_ARGS(codec, reg, val),
29 __field( unsigned int, reg )
36 __entry->reg = reg;
41 (int)__entry->id, (unsigned int)__entry->reg,
47 TP_PROTO(struct snd_soc_codec *codec, unsigned int reg,
50 TP_ARGS(codec, reg, val)
56 TP_PROTO(struct snd_soc_codec *codec, unsigned int reg,
59 TP_ARGS(codec, reg, val)
65 TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
[all …]
/include/linux/
Dregmap.h40 unsigned int reg; member
84 bool (*writeable_reg)(struct device *dev, unsigned int reg);
85 bool (*readable_reg)(struct device *dev, unsigned int reg);
86 bool (*volatile_reg)(struct device *dev, unsigned int reg);
87 bool (*precious_reg)(struct device *dev, unsigned int reg);
103 const void *reg, size_t reg_len,
146 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
147 int regmap_raw_write(struct regmap *map, unsigned int reg,
149 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
151 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
[all …]
Ddm9000.h34 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);
Dmca-legacy.h41 extern unsigned char mca_read_stored_pos(int slot, int reg);
61 extern unsigned char mca_read_pos(int slot, int reg);
64 extern void mca_write_pos(int slot, int reg, unsigned char byte);
Dmemblock.h196 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()
Dadb.h10 #define ADB_WRITEREG(id, reg) (0x08 | (reg) | ((id) << 4)) argument
11 #define ADB_READREG(id, reg) (0x0C | (reg) | ((id) << 4)) argument
/include/sound/
Dak4xxx-adda.h35 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))
Dsoc-dapm.h49 .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 …]
Dvx_core.h97 unsigned char (*in8)(struct vx_core *chip, int reg);
98 unsigned int (*in32)(struct vx_core *chip, int reg);
99 void (*out8)(struct vx_core *chip, int reg, unsigned char val);
100 void (*out32)(struct vx_core *chip, int reg, unsigned int val);
106 void (*akm_write)(struct vx_core *chip, int reg, unsigned int data);
246 static inline unsigned char snd_vx_inb(struct vx_core *chip, int reg) in snd_vx_inb() argument
248 return chip->ops->in8(chip, reg); in snd_vx_inb()
251 static inline unsigned int snd_vx_inl(struct vx_core *chip, int reg) in snd_vx_inl() argument
253 return chip->ops->in32(chip, reg); in snd_vx_inl()
256 static inline void snd_vx_outb(struct vx_core *chip, int reg, unsigned char val) in snd_vx_outb() argument
[all …]
Dgus.h485 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/
Dda9052.h89 static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) in da9052_reg_read() argument
93 ret = regmap_read(da9052->regmap, reg, &val); in da9052_reg_read()
99 static inline int da9052_reg_write(struct da9052 *da9052, unsigned char reg, in da9052_reg_write() argument
102 return regmap_write(da9052->regmap, reg, val); in da9052_reg_write()
105 static inline int da9052_group_read(struct da9052 *da9052, unsigned char reg, in da9052_group_read() argument
108 return regmap_bulk_read(da9052->regmap, reg, val, reg_cnt); in da9052_group_read()
111 static inline int da9052_group_write(struct da9052 *da9052, unsigned char reg, in da9052_group_write() argument
114 return regmap_raw_write(da9052->regmap, reg, val, reg_cnt); in da9052_group_write()
117 static inline int da9052_reg_update(struct da9052 *da9052, unsigned char reg, in da9052_reg_update() argument
121 return regmap_update_bits(da9052->regmap, reg, bit_mask, reg_val); in da9052_reg_update()
/include/linux/mfd/
Dtps6586x.h85 extern int tps6586x_write(struct device *dev, int reg, uint8_t val);
86 extern int tps6586x_writes(struct device *dev, int reg, int len, uint8_t *val);
87 extern int tps6586x_read(struct device *dev, int reg, uint8_t *val);
88 extern int tps6586x_reads(struct device *dev, int reg, int len, uint8_t *val);
89 extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask);
90 extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask);
91 extern int tps6586x_update(struct device *dev, int reg, uint8_t val,
Dtps65090.h41 extern int tps65090_write(struct device *dev, int reg, uint8_t val);
42 extern int tps65090_read(struct device *dev, int reg, uint8_t *val);
43 extern int tps65090_set_bits(struct device *dev, int reg, uint8_t bit_num);
44 extern int tps65090_clr_bits(struct device *dev, int reg, uint8_t bit_num);
Drc5t583.h283 static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val) in rc5t583_write() argument
286 return regmap_write(rc5t583->regmap, reg, val); in rc5t583_write()
289 static inline int rc5t583_read(struct device *dev, uint8_t reg, uint8_t *val) in rc5t583_read() argument
294 ret = regmap_read(rc5t583->regmap, reg, &ival); in rc5t583_read()
300 static inline int rc5t583_set_bits(struct device *dev, unsigned int reg, in rc5t583_set_bits() argument
304 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, bit_mask); in rc5t583_set_bits()
307 static inline int rc5t583_clear_bits(struct device *dev, unsigned int reg, in rc5t583_clear_bits() argument
311 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, 0); in rc5t583_clear_bits()
314 static inline int rc5t583_update(struct device *dev, unsigned int reg, in rc5t583_update() argument
318 return regmap_update_bits(rc5t583->regmap, reg, mask, val); in rc5t583_update()
Dtmio.h46 #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))); \
Ddb5500-prcmu.h71 int db5500_prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
72 int db5500_prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
78 static inline int db5500_prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) in db5500_prcmu_abb_read() argument
83 static inline int db5500_prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size) in db5500_prcmu_abb_write() argument
Ddbx500-prcmu.h369 int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
370 int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
371 int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, u8 size);
532 static inline u32 prcmu_read(unsigned int reg) in prcmu_read() argument
537 return db8500_prcmu_read(reg); in prcmu_read()
540 static inline void prcmu_write(unsigned int reg, u32 value) in prcmu_write() argument
545 db8500_prcmu_write(reg, value); in prcmu_write()
548 static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) in prcmu_write_masked() argument
553 db8500_prcmu_write_masked(reg, mask, value); in prcmu_write_masked()
614 static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) in prcmu_abb_read() argument
[all …]
Dda903x.h240 extern int da903x_write(struct device *dev, int reg, uint8_t val);
241 extern int da903x_writes(struct device *dev, int reg, int len, uint8_t *val);
242 extern int da903x_read(struct device *dev, int reg, uint8_t *val);
243 extern int da903x_reads(struct device *dev, int reg, int len, uint8_t *val);
244 extern int da903x_update(struct device *dev, int reg, uint8_t val, uint8_t mask);
245 extern int da903x_set_bits(struct device *dev, int reg, uint8_t bit_mask);
246 extern int da903x_clr_bits(struct device *dev, int reg, uint8_t bit_mask);
/include/linux/mfd/wm8994/
Dcore.h81 int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg);
82 int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg,
84 int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg,
86 int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg,
88 int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg,
/include/drm/
Ddrm_os_linux.h10 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

12345