Searched refs:reg (Results 176 - 200 of 2563) sorted by relevance

1234567891011>>

/drivers/scsi/mvsas/
H A Dmv_chips.h30 #define mr32(reg) readl(regs + reg)
31 #define mw32(reg, val) writel((val), regs + reg)
32 #define mw32_f(reg, val) do { \
33 mw32(reg, val); \
34 mr32(reg); \
37 #define iow32(reg, val) outl(val, (unsigned long)(regs + reg))
38 #define ior32(reg) in
[all...]
/drivers/clk/shmobile/
H A Dclk-div6.c28 * @reg: IO-remapped register
33 void __iomem *reg; member in struct:div6_clock
43 clk_writel(CPG_DIV6_DIV(clock->div - 1), clock->reg);
56 clock->reg);
63 return !(clk_readl(clock->reg) & CPG_DIV6_CKSTP);
70 unsigned int div = (clk_readl(clock->reg) & CPG_DIV6_DIV_MASK) + 1;
101 if (!(clk_readl(clock->reg) & CPG_DIV6_CKSTP))
102 clk_writel(CPG_DIV6_DIV(clock->div - 1), clock->reg);
136 clock->reg = of_iomap(np, 0);
137 if (clock->reg
[all...]
/drivers/staging/rts5208/
H A Drtsx.h60 #define rtsx_writel(chip, reg, value) \
61 iowrite32(value, (chip)->rtsx->remap_addr + reg)
62 #define rtsx_readl(chip, reg) \
63 ioread32((chip)->rtsx->remap_addr + reg)
64 #define rtsx_writew(chip, reg, value) \
65 iowrite16(value, (chip)->rtsx->remap_addr + reg)
66 #define rtsx_readw(chip, reg) \
67 ioread16((chip)->rtsx->remap_addr + reg)
68 #define rtsx_writeb(chip, reg, value) \
69 iowrite8(value, (chip)->rtsx->remap_addr + reg)
[all...]
/drivers/video/fbdev/savage/
H A Dsavagefb_driver.c121 static void vgaHWRestore(struct savagefb_par *par, struct savage_reg *reg) argument
125 VGAwMISC(reg->MiscOutReg, par);
128 VGAwSEQ(i, reg->Sequencer[i], par);
132 VGAwCR(17, reg->CRTC[17] & ~0x80, par);
135 VGAwCR(i, reg->CRTC[i], par);
138 VGAwGR(i, reg->Graphics[i], par);
143 VGAwATTR(i, reg->Attribute[i], par);
151 struct savage_reg *reg)
153 reg->MiscOutReg = 0x23;
156 reg
148 vgaHWInit(struct fb_var_screeninfo *var, struct savagefb_par *par, struct xtimings *timings, struct savage_reg *reg) argument
544 savage_get_default_par(struct savagefb_par *par, struct savage_reg *reg) argument
696 savage_set_default_par(struct savagefb_par *par, struct savage_reg *reg) argument
973 savagefb_decode_var(struct fb_var_screeninfo *var, struct savagefb_par *par, struct savage_reg *reg) argument
1261 savagefb_set_par_int(struct savagefb_par *par, struct savage_reg *reg) argument
[all...]
/drivers/gpu/drm/i915/
H A Dintel_uncore.c466 #define NEEDS_FORCE_WAKE(dev_priv, reg) \
467 ((reg) < 0x40000 && (reg) != FORCEWAKE)
469 #define REG_RANGE(reg, start, end) ((reg) >= (start) && (reg) < (end))
471 #define FORCEWAKE_VLV_RENDER_RANGE_OFFSET(reg) \
472 (REG_RANGE((reg), 0x2000, 0x4000) || \
473 REG_RANGE((reg), 0x5000, 0x8000) || \
474 REG_RANGE((reg),
517 hsw_unclaimed_reg_debug(struct drm_i915_private *dev_priv, u32 reg, bool read, bool before) argument
736 is_gen8_shadowed(struct drm_i915_private *dev_priv, u32 reg) argument
978 struct drm_i915_reg_read *reg = data; local
[all...]
/drivers/pinctrl/spear/
H A Dpinctrl-spear1340.c219 .reg = PAD_FUNCTION_EN_1,
223 .reg = PAD_FUNCTION_EN_2,
227 .reg = PAD_FUNCTION_EN_3,
231 .reg = PAD_FUNCTION_EN_4,
235 .reg = PAD_FUNCTION_EN_5,
239 .reg = PAD_FUNCTION_EN_6,
243 .reg = PAD_FUNCTION_EN_7,
247 .reg = PAD_FUNCTION_EN_8,
280 .reg = PAD_FUNCTION_EN_8,
305 .reg
[all...]
/drivers/pci/host/
H A Dpci-dra7xx.c89 u32 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_PHY_CS); local
91 return !!(reg & LINK_UP);
96 u32 reg; local
105 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD);
106 reg |= LTSSM_EN;
107 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD, reg);
110 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_PHY_CS);
111 if (reg & LINK_UP)
197 u32 reg; local
199 reg
222 u32 reg; local
321 u32 reg; local
[all...]
/drivers/media/platform/omap3isp/
H A Dispcsi2.c50 u32 reg; local
52 reg = isp_reg_readl(isp, csi2->regs1, ISPCSI2_CTRL);
55 reg |= ISPCSI2_CTRL_FRAME;
57 reg &= ~ISPCSI2_CTRL_FRAME;
60 reg |= ISPCSI2_CTRL_VP_CLK_EN;
62 reg &= ~ISPCSI2_CTRL_VP_CLK_EN;
65 reg |= ISPCSI2_CTRL_VP_ONLY_EN;
67 reg &= ~ISPCSI2_CTRL_VP_ONLY_EN;
69 reg &= ~ISPCSI2_CTRL_VP_OUT_CTRL_MASK;
70 reg |
255 u32 reg; local
286 u32 reg; local
361 u32 reg; local
415 u32 reg; local
458 u32 reg; local
487 u32 reg; local
[all...]
/drivers/leds/
H A Dleds-versatile.c45 u32 reg = readl(led->base); local
48 reg |= led->mask;
50 reg &= ~led->mask;
51 writel(reg, led->base);
58 u32 reg = readl(led->base); local
60 return (reg & led->mask) ? LED_FULL : LED_OFF;
H A Dleds-sunfire.c25 void __iomem *reg; member in struct:sunfire_led
33 u8 reg = upa_readb(p->reg); local
38 reg &= ~bit;
40 reg |= bit;
45 reg |= bit;
47 reg &= ~bit;
50 upa_writeb(reg, p->reg);
75 u32 reg local
[all...]
/drivers/mmc/host/
H A Dsdhci-of-esdhc.c27 static u32 esdhc_readl(struct sdhci_host *host, int reg) argument
31 ret = in_be32(host->ioaddr + reg);
42 if ((reg == SDHCI_CAPABILITIES) && (ret & SDHCI_CAN_DO_ADMA1)) {
52 static u16 esdhc_readw(struct sdhci_host *host, int reg) argument
55 int base = reg & ~0x3;
56 int shift = (reg & 0x2) * 8;
58 if (unlikely(reg == SDHCI_HOST_VERSION))
65 static u8 esdhc_readb(struct sdhci_host *host, int reg) argument
67 int base = reg & ~0x3;
68 int shift = (reg
90 esdhc_writel(struct sdhci_host *host, u32 val, int reg) argument
102 esdhc_writew(struct sdhci_host *host, u16 val, int reg) argument
115 esdhc_writeb(struct sdhci_host *host, u8 val, int reg) argument
[all...]
/drivers/net/ethernet/hp/
H A Dhp100.h585 #define hp100_inb( reg ) \
586 inb( ioaddr + HP100_REG_##reg )
587 #define hp100_inw( reg ) \
588 inw( ioaddr + HP100_REG_##reg )
589 #define hp100_inl( reg ) \
590 inl( ioaddr + HP100_REG_##reg )
591 #define hp100_outb( data, reg ) \
592 outb( data, ioaddr + HP100_REG_##reg )
593 #define hp100_outw( data, reg ) \
594 outw( data, ioaddr + HP100_REG_##reg )
[all...]
/drivers/thermal/
H A Dkirkwood_thermal.c38 unsigned long reg; local
41 reg = readl_relaxed(priv->sensor);
44 if (!((reg >> KIRKWOOD_THERMAL_VALID_OFFSET) &
54 * Celsius = (322-reg)/1.3625
56 reg = (reg >> KIRKWOOD_THERMAL_TEMP_OFFSET) &
58 *temp = ((3220000000UL - (10000000UL * reg)) / 13625);
/drivers/clk/mxs/
H A Dclk-frac.c22 * @reg: register address
32 void __iomem *reg; member in struct:clk_frac
46 div = readl_relaxed(frac->reg) >> frac->shift;
95 val = readl_relaxed(frac->reg);
98 writel_relaxed(val, frac->reg);
102 return mxs_clk_wait(frac->reg, frac->busy);
112 void __iomem *reg, u8 shift, u8 width, u8 busy)
128 frac->reg = reg;
111 mxs_clk_frac(const char *name, const char *parent_name, void __iomem *reg, u8 shift, u8 width, u8 busy) argument
/drivers/clk/tegra/
H A Dclk-pll-out.c33 u32 val = readl_relaxed(pll_out->reg);
51 val = readl_relaxed(pll_out->reg);
55 writel_relaxed(val, pll_out->reg);
73 val = readl_relaxed(pll_out->reg);
77 writel_relaxed(val, pll_out->reg);
91 const char *parent_name, void __iomem *reg, u8 enb_bit_idx,
109 pll_out->reg = reg;
90 tegra_clk_register_pll_out(const char *name, const char *parent_name, void __iomem *reg, u8 enb_bit_idx, u8 rst_bit_idx, unsigned long flags, u8 pll_out_flags, spinlock_t *lock) argument
/drivers/i2c/muxes/
H A Di2c-mux-pca9541.c173 int reg; local
175 reg = pca9541_reg_read(client, PCA9541_CONTROL);
176 if (reg >= 0 && !busoff(reg) && mybus(reg))
178 (reg & PCA9541_CTL_NBUSON) >> 1);
221 int reg; local
223 reg = pca9541_reg_read(client, PCA9541_CONTROL);
224 if (reg < 0)
225 return reg;
[all...]
/drivers/input/misc/
H A Dadxl34x-i2c.c17 static int adxl34x_smbus_read(struct device *dev, unsigned char reg) argument
21 return i2c_smbus_read_byte_data(client, reg);
25 unsigned char reg, unsigned char val)
29 return i2c_smbus_write_byte_data(client, reg, val);
33 unsigned char reg, int count,
38 return i2c_smbus_read_i2c_block_data(client, reg, count, buf);
42 unsigned char reg, int count,
48 ret = i2c_master_send(client, &reg, 1);
24 adxl34x_smbus_write(struct device *dev, unsigned char reg, unsigned char val) argument
32 adxl34x_smbus_read_block(struct device *dev, unsigned char reg, int count, void *buf) argument
41 adxl34x_i2c_read_block(struct device *dev, unsigned char reg, int count, void *buf) argument
H A Dtwl4030-vibra.c57 u8 reg; local
60 twl_i2c_read_u8(TWL4030_MODULE_LED, &reg, LEDEN);
61 reg &= ~0x03;
62 twl_i2c_write_u8(TWL4030_MODULE_LED, LEDEN, reg);
68 u8 reg; local
74 &reg, TWL4030_REG_VIBRA_CTL);
76 (reg | TWL4030_VIBRA_EN), TWL4030_REG_VIBRA_CTL);
85 u8 reg; local
89 &reg, TWL4030_REG_VIBRA_CTL);
91 (reg
105 u8 reg; local
[all...]
/drivers/input/touchscreen/
H A Dad7879.h19 int (*read)(struct device *dev, u8 reg);
21 int (*write)(struct device *dev, u8 reg, u16 val);
/drivers/media/dvb-frontends/
H A Dsi21xx.h28 static inline int si21xx_writeregister(struct dvb_frontend *fe, u8 reg, u8 val) argument
31 u8 buf[] = {reg, val};
/drivers/media/pci/mantis/
H A Dmantis_uart.c112 u32 reg; local
116 reg = mmread(MANTIS_UART_BAUD);
120 reg |= 0xd8;
123 reg |= 0x6c;
126 reg |= 0x36;
129 reg |= 0x23;
132 reg |= 0x11;
138 mmwrite(reg, MANTIS_UART_BAUD);
/drivers/mfd/
H A D88pm860x-i2c.c18 int pm860x_reg_read(struct i2c_client *i2c, int reg) argument
26 ret = regmap_read(map, reg, &data);
34 int pm860x_reg_write(struct i2c_client *i2c, int reg, argument
42 ret = regmap_write(map, reg, data);
47 int pm860x_bulk_read(struct i2c_client *i2c, int reg, argument
55 ret = regmap_raw_read(map, reg, buf, count);
60 int pm860x_bulk_write(struct i2c_client *i2c, int reg, argument
68 ret = regmap_raw_write(map, reg, buf, count);
73 int pm860x_set_bits(struct i2c_client *i2c, int reg, argument
81 ret = regmap_update_bits(map, reg, mas
86 read_device(struct i2c_client *i2c, int reg, int bytes, void *dest) argument
122 write_device(struct i2c_client *i2c, int reg, int bytes, void *src) argument
143 pm860x_page_reg_write(struct i2c_client *i2c, int reg, unsigned char data) argument
161 pm860x_page_bulk_read(struct i2c_client *i2c, int reg, int count, unsigned char *buf) argument
[all...]
H A Dstmpe-i2c.c20 static int i2c_reg_read(struct stmpe *stmpe, u8 reg) argument
24 return i2c_smbus_read_byte_data(i2c, reg);
27 static int i2c_reg_write(struct stmpe *stmpe, u8 reg, u8 val) argument
31 return i2c_smbus_write_byte_data(i2c, reg, val);
34 static int i2c_block_read(struct stmpe *stmpe, u8 reg, u8 length, u8 *values) argument
38 return i2c_smbus_read_i2c_block_data(i2c, reg, length, values);
41 static int i2c_block_write(struct stmpe *stmpe, u8 reg, u8 length, argument
46 return i2c_smbus_write_i2c_block_data(i2c, reg, length, values);
H A Dtps65217.c46 * @reg: Register to read.
49 int tps65217_reg_read(struct tps65217 *tps, unsigned int reg, argument
52 return regmap_read(tps->regmap, reg, val);
60 * @reg: Register to write to.
64 int tps65217_reg_write(struct tps65217 *tps, unsigned int reg, argument
72 return regmap_write(tps->regmap, reg, val);
74 xor_reg_val = reg ^ TPS65217_PASSWORD_REGS_UNLOCK;
80 return regmap_write(tps->regmap, reg, val);
82 xor_reg_val = reg ^ TPS65217_PASSWORD_REGS_UNLOCK;
87 ret = regmap_write(tps->regmap, reg, va
110 tps65217_update_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument
132 tps65217_set_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument
139 tps65217_clear_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int level) argument
[all...]
/drivers/misc/
H A Dad525x_dpot-spi.c21 static int write16(void *client, u8 reg, u8 val) argument
23 u8 data[2] = {reg, val};
27 static int write24(void *client, u8 reg, u16 val) argument
29 u8 data[3] = {reg, val >> 8, val};
44 static int read16(void *client, u8 reg) argument
49 write16(client, reg, 0);
57 static int read24(void *client, u8 reg) argument
62 write24(client, reg, 0);

Completed in 1730 milliseconds

1234567891011>>