Home
last modified time | relevance | path

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

12345678910>>...53

/linux-4.19.296/drivers/memory/tegra/
Dtegra210.c23 .reg = 0x228,
27 .reg = 0x2e8,
37 .reg = 0x228,
41 .reg = 0x2f4,
51 .reg = 0x228,
55 .reg = 0x2e8,
65 .reg = 0x228,
69 .reg = 0x2f4,
79 .reg = 0x228,
83 .reg = 0x2ec,
[all …]
Dtegra30.c26 .reg = 0x228,
30 .reg = 0x2e8,
40 .reg = 0x228,
44 .reg = 0x2f4,
54 .reg = 0x228,
58 .reg = 0x2e8,
68 .reg = 0x228,
72 .reg = 0x2f4,
82 .reg = 0x228,
86 .reg = 0x2ec,
[all …]
Dtegra114.c26 .reg = 0x228,
30 .reg = 0x2e8,
40 .reg = 0x228,
44 .reg = 0x2f4,
54 .reg = 0x228,
58 .reg = 0x2e8,
68 .reg = 0x228,
72 .reg = 0x2f4,
82 .reg = 0x228,
86 .reg = 0x2ec,
[all …]
Dtegra124.c68 .reg = 0x228,
72 .reg = 0x2e8,
82 .reg = 0x228,
86 .reg = 0x2f4,
96 .reg = 0x228,
100 .reg = 0x2e8,
110 .reg = 0x228,
114 .reg = 0x2f4,
124 .reg = 0x228,
128 .reg = 0x2ec,
[all …]
/linux-4.19.296/drivers/clk/
Dclk-highbank.c51 void __iomem *reg; member
59 u32 reg; in clk_pll_prepare() local
61 reg = readl(hbclk->reg); in clk_pll_prepare()
62 reg &= ~HB_PLL_RESET; in clk_pll_prepare()
63 writel(reg, hbclk->reg); in clk_pll_prepare()
65 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_prepare()
67 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_prepare()
76 u32 reg; in clk_pll_unprepare() local
78 reg = readl(hbclk->reg); in clk_pll_unprepare()
79 reg |= HB_PLL_RESET; in clk_pll_unprepare()
[all …]
/linux-4.19.296/fs/ocfs2/cluster/
Dheartbeat.c312 struct o2hb_region *reg = in o2hb_write_timeout() local
317 "milliseconds\n", reg->hr_dev_name, in o2hb_write_timeout()
318 jiffies_to_msecs(jiffies - reg->hr_last_timeout_start)); in o2hb_write_timeout()
322 if (test_bit(reg->hr_region_num, o2hb_quorum_region_bitmap)) in o2hb_write_timeout()
323 set_bit(reg->hr_region_num, o2hb_failed_region_bitmap); in o2hb_write_timeout()
344 static void o2hb_arm_timeout(struct o2hb_region *reg) in o2hb_arm_timeout() argument
347 if (atomic_read(&reg->hr_steady_iterations) != 0) in o2hb_arm_timeout()
355 clear_bit(reg->hr_region_num, o2hb_failed_region_bitmap); in o2hb_arm_timeout()
358 cancel_delayed_work(&reg->hr_write_timeout_work); in o2hb_arm_timeout()
359 schedule_delayed_work(&reg->hr_write_timeout_work, in o2hb_arm_timeout()
[all …]
/linux-4.19.296/include/video/
Dvga.h212 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 …]
/linux-4.19.296/drivers/misc/cardreader/
Drtsx_pcr.h76 #define rtsx_vendor_setting_valid(reg) (!((reg) & 0x1000000)) argument
77 #define rts5209_vendor_setting1_valid(reg) (!((reg) & 0x80)) argument
78 #define rts5209_vendor_setting2_valid(reg) ((reg) & 0x80) argument
80 #define rtsx_reg_to_aspm(reg) (((reg) >> 28) & 0x03) argument
81 #define rtsx_reg_to_sd30_drive_sel_1v8(reg) (((reg) >> 26) & 0x03) argument
82 #define rtsx_reg_to_sd30_drive_sel_3v3(reg) (((reg) >> 5) & 0x03) argument
83 #define rtsx_reg_to_card_drive_sel(reg) ((((reg) >> 25) & 0x01) << 6) argument
84 #define rtsx_reg_check_reverse_socket(reg) ((reg) & 0x4000) argument
85 #define rts5209_reg_to_aspm(reg) (((reg) >> 5) & 0x03) argument
86 #define rts5209_reg_check_ms_pmos(reg) (!((reg) & 0x08)) argument
[all …]
/linux-4.19.296/drivers/clk/sunxi/
Dclk-sun4i-tcon-ch1.c37 void __iomem *reg; member
46 u32 reg; in tcon_ch1_disable() local
49 reg = readl(tclk->reg); in tcon_ch1_disable()
50 reg &= ~(TCON_CH1_SCLK2_GATE_BIT | TCON_CH1_SCLK1_GATE_BIT); in tcon_ch1_disable()
51 writel(reg, tclk->reg); in tcon_ch1_disable()
59 u32 reg; in tcon_ch1_enable() local
62 reg = readl(tclk->reg); in tcon_ch1_enable()
63 reg |= TCON_CH1_SCLK2_GATE_BIT | TCON_CH1_SCLK1_GATE_BIT; in tcon_ch1_enable()
64 writel(reg, tclk->reg); in tcon_ch1_enable()
73 u32 reg; in tcon_ch1_is_enabled() local
[all …]
Dclk-sun9i-cpus.c28 #define SUN9I_CPUS_MUX_GET_PARENT(reg) ((reg & SUN9I_CPUS_MUX_MASK) >> \ argument
33 #define SUN9I_CPUS_DIV_GET(reg) ((reg & SUN9I_CPUS_DIV_MASK) >> \ argument
35 #define SUN9I_CPUS_DIV_SET(reg, div) ((reg & ~SUN9I_CPUS_DIV_MASK) | \ argument
39 #define SUN9I_CPUS_PLL4_DIV_GET(reg) ((reg & SUN9I_CPUS_PLL4_DIV_MASK) >> \ argument
41 #define SUN9I_CPUS_PLL4_DIV_SET(reg, div) ((reg & ~SUN9I_CPUS_PLL4_DIV_MASK) | \ argument
46 void __iomem *reg; member
56 u32 reg; in sun9i_a80_cpus_clk_recalc_rate() local
59 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_recalc_rate()
62 if (SUN9I_CPUS_MUX_GET_PARENT(reg) == SUN9I_CPUS_MUX_PARENT_PLL4) in sun9i_a80_cpus_clk_recalc_rate()
63 parent_rate /= SUN9I_CPUS_PLL4_DIV_GET(reg) + 1; in sun9i_a80_cpus_clk_recalc_rate()
[all …]
/linux-4.19.296/drivers/clk/berlin/
Dberlin2-avpll.c116 u32 reg; in berlin2_avpll_vco_is_enabled() local
118 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_is_enabled()
120 reg >>= 4; in berlin2_avpll_vco_is_enabled()
122 return !!(reg & VCO_POWERUP); in berlin2_avpll_vco_is_enabled()
128 u32 reg; in berlin2_avpll_vco_enable() local
130 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable()
132 reg |= VCO_POWERUP << 4; in berlin2_avpll_vco_enable()
134 reg |= VCO_POWERUP; in berlin2_avpll_vco_enable()
135 writel_relaxed(reg, vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable()
143 u32 reg; in berlin2_avpll_vco_disable() local
[all …]
Dberlin2-div.c68 u32 reg; in berlin2_div_is_enabled() local
73 reg = readl_relaxed(div->base + map->gate_offs); in berlin2_div_is_enabled()
74 reg >>= map->gate_shift; in berlin2_div_is_enabled()
79 return (reg & 0x1); in berlin2_div_is_enabled()
86 u32 reg; in berlin2_div_enable() local
91 reg = readl_relaxed(div->base + map->gate_offs); in berlin2_div_enable()
92 reg |= BIT(map->gate_shift); in berlin2_div_enable()
93 writel_relaxed(reg, div->base + map->gate_offs); in berlin2_div_enable()
105 u32 reg; in berlin2_div_disable() local
110 reg = readl_relaxed(div->base + map->gate_offs); in berlin2_div_disable()
[all …]
/linux-4.19.296/drivers/cpufreq/
Ds5pv210-cpufreq.c203 void __iomem *reg = NULL; in s5pv210_set_refresh() local
206 reg = (dmc_base[0] + 0x30); in s5pv210_set_refresh()
208 reg = (dmc_base[1] + 0x30); in s5pv210_set_refresh()
223 writel_relaxed(tmp1, reg); in s5pv210_set_refresh()
228 unsigned long reg; in s5pv210_target() local
299 reg = readl_relaxed(S5P_CLK_DIV2); in s5pv210_target()
300 reg &= ~(S5P_CLKDIV2_G3D_MASK | S5P_CLKDIV2_MFC_MASK); in s5pv210_target()
301 reg |= (3 << S5P_CLKDIV2_G3D_SHIFT) | in s5pv210_target()
303 writel_relaxed(reg, S5P_CLK_DIV2); in s5pv210_target()
307 reg = readl_relaxed(S5P_CLKDIV_STAT0); in s5pv210_target()
[all …]
/linux-4.19.296/drivers/regulator/
Dvexpress-regulator.c34 struct vexpress_regulator *reg = rdev_get_drvdata(regdev); in vexpress_regulator_get_voltage() local
36 int err = regmap_read(reg->regmap, 0, &uV); in vexpress_regulator_get_voltage()
44 struct vexpress_regulator *reg = rdev_get_drvdata(regdev); in vexpress_regulator_set_voltage() local
46 return regmap_write(reg->regmap, 0, min_uV); in vexpress_regulator_set_voltage()
60 struct vexpress_regulator *reg; in vexpress_regulator_probe() local
64 reg = devm_kzalloc(&pdev->dev, sizeof(*reg), GFP_KERNEL); in vexpress_regulator_probe()
65 if (!reg) in vexpress_regulator_probe()
68 reg->regmap = devm_regmap_init_vexpress_config(&pdev->dev); in vexpress_regulator_probe()
69 if (IS_ERR(reg->regmap)) in vexpress_regulator_probe()
70 return PTR_ERR(reg->regmap); in vexpress_regulator_probe()
[all …]
/linux-4.19.296/drivers/media/dvb-frontends/
Dstv090x.c695 static int stv090x_read_reg(struct stv090x_state *state, unsigned int reg) in stv090x_read_reg() argument
700 u8 b0[] = { reg >> 8, reg & 0xff }; in stv090x_read_reg()
713 reg, ret); in stv090x_read_reg()
719 reg, buf); in stv090x_read_reg()
724 static int stv090x_write_regs(struct stv090x_state *state, unsigned int reg, u8 *data, u32 count) in stv090x_write_regs() argument
734 KBUILD_MODNAME, reg, count); in stv090x_write_regs()
738 buf[0] = reg >> 8; in stv090x_write_regs()
739 buf[1] = reg & 0xff; in stv090x_write_regs()
743 __func__, reg, count, data); in stv090x_write_regs()
749 reg, data[0], count, ret); in stv090x_write_regs()
[all …]
Dstv6111.c34 u8 reg[11]; member
330 static int write_regs(struct stv *state, int reg, int len) in write_regs() argument
334 memcpy(&d[1], &state->reg[reg], len); in write_regs()
335 d[0] = reg; in write_regs()
339 static int write_reg(struct stv *state, u8 reg, u8 val) in write_reg() argument
341 u8 d[2] = {reg, val}; in write_reg()
346 static int read_reg(struct stv *state, u8 reg, u8 *val) in read_reg() argument
348 return i2c_read(state->i2c, state->adr, &reg, 1, val, 1); in read_reg()
381 state->reg[0] = 0x08; in init_state()
382 state->reg[1] = 0x41; in init_state()
[all …]
Dstb0899_algo.c178 u8 reg; in stb0899_check_tmg() local
184 reg = stb0899_read_reg(state, STB0899_TLIR); in stb0899_check_tmg()
185 lock = STB0899_GETFIELD(TLIR_TMG_LOCK_IND, reg); in stb0899_check_tmg()
253 u8 reg; in stb0899_check_carrier() local
257 reg = stb0899_read_reg(state, STB0899_CFD); in stb0899_check_carrier()
258 STB0899_SETFIELD_VAL(CFD_ON, reg, 1); in stb0899_check_carrier()
259 stb0899_write_reg(state, STB0899_CFD, reg); in stb0899_check_carrier()
261 reg = stb0899_read_reg(state, STB0899_DSTATUS); in stb0899_check_carrier()
262 dprintk(state->verbose, FE_DEBUG, 1, "--------------------> STB0899_DSTATUS=[0x%02x]", reg); in stb0899_check_carrier()
263 if (STB0899_GETFIELD(CARRIER_FOUND, reg)) { in stb0899_check_carrier()
[all …]
/linux-4.19.296/drivers/media/tuners/
Dfc0012.c20 static int fc0012_writereg(struct fc0012_priv *priv, u8 reg, u8 val) in fc0012_writereg() argument
22 u8 buf[2] = {reg, val}; in fc0012_writereg()
30 KBUILD_MODNAME, reg, val); in fc0012_writereg()
36 static int fc0012_readreg(struct fc0012_priv *priv, u8 reg, u8 *val) in fc0012_readreg() argument
40 .buf = &reg, .len = 1 }, in fc0012_readreg()
48 KBUILD_MODNAME, reg); in fc0012_readreg()
64 unsigned char reg[] = { in fc0012_init() local
95 reg[0x07] |= 0x20; in fc0012_init()
103 reg[0x0c] |= 0x02; in fc0012_init()
106 reg[0x09] |= 0x01; in fc0012_init()
[all …]
/linux-4.19.296/drivers/fsi/
Dfsi-master-hub.c138 __be32 reg; in hub_master_link_enable() local
144 reg = cpu_to_be32(0x80000000 >> bit); in hub_master_link_enable()
146 rc = fsi_device_write(hub->upstream, FSI_MSENP0 + (4 * idx), &reg, 4); in hub_master_link_enable()
150 fsi_device_read(hub->upstream, FSI_MENP0 + (4 * idx), &reg, 4); in hub_master_link_enable()
176 __be32 reg; in hub_master_init() local
179 reg = cpu_to_be32(FSI_MRESP_RST_ALL_MASTER | FSI_MRESP_RST_ALL_LINK in hub_master_init()
181 rc = fsi_device_write(dev, FSI_MRESP0, &reg, sizeof(reg)); in hub_master_init()
186 reg = cpu_to_be32(FSI_MRESP_RST_ALL_MASTER | FSI_MRESP_RST_ALL_LINK in hub_master_init()
188 rc = fsi_device_write(dev, FSI_MRESP0, &reg, sizeof(reg)); in hub_master_init()
192 reg = cpu_to_be32(FSI_MECTRL_EOAE | FSI_MECTRL_P8_AUTO_TERM); in hub_master_init()
[all …]
/linux-4.19.296/drivers/pci/endpoint/functions/
Dpci-epf-test.c47 void *reg[6]; member
92 struct pci_epf_test_reg *reg = epf_test->reg[test_reg_bar]; in pci_epf_test_copy() local
94 src_addr = pci_epc_mem_alloc_addr(epc, &src_phys_addr, reg->size); in pci_epf_test_copy()
97 reg->status = STATUS_SRC_ADDR_INVALID; in pci_epf_test_copy()
102 ret = pci_epc_map_addr(epc, epf->func_no, src_phys_addr, reg->src_addr, in pci_epf_test_copy()
103 reg->size); in pci_epf_test_copy()
106 reg->status = STATUS_SRC_ADDR_INVALID; in pci_epf_test_copy()
110 dst_addr = pci_epc_mem_alloc_addr(epc, &dst_phys_addr, reg->size); in pci_epf_test_copy()
113 reg->status = STATUS_DST_ADDR_INVALID; in pci_epf_test_copy()
118 ret = pci_epc_map_addr(epc, epf->func_no, dst_phys_addr, reg->dst_addr, in pci_epf_test_copy()
[all …]
/linux-4.19.296/drivers/clk/imx/
Dclk-gate2.c32 void __iomem *reg; member
45 u32 reg; in clk_gate2_enable() local
53 reg = readl(gate->reg); in clk_gate2_enable()
54 reg &= ~(3 << gate->bit_idx); in clk_gate2_enable()
55 reg |= gate->cgr_val << gate->bit_idx; in clk_gate2_enable()
56 writel(reg, gate->reg); in clk_gate2_enable()
67 u32 reg; in clk_gate2_disable() local
79 reg = readl(gate->reg); in clk_gate2_disable()
80 reg &= ~(3 << gate->bit_idx); in clk_gate2_disable()
81 writel(reg, gate->reg); in clk_gate2_disable()
[all …]
Dclk.h47 void __iomem *reg, u8 bit_idx, u8 cgr_val,
55 void __iomem *reg, u8 shift, u32 exclusive_mask);
58 void __iomem *reg, u8 idx);
61 void __iomem *reg, u8 shift, u8 width,
64 struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift,
69 void __iomem *reg, u8 shift, u8 width,
72 struct clk *imx_clk_fixup_mux(const char *name, void __iomem *reg,
81 static inline struct clk *imx_clk_mux_ldb(const char *name, void __iomem *reg, in imx_clk_mux_ldb() argument
86 CLK_SET_RATE_NO_REPARENT | CLK_SET_RATE_PARENT, reg, in imx_clk_mux_ldb()
98 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider() argument
[all …]
/linux-4.19.296/drivers/bus/
Dda8xx-mstpri.c57 int reg; member
64 .reg = DA8XX_MSTPRI0_OFFSET,
69 .reg = DA8XX_MSTPRI0_OFFSET,
74 .reg = DA8XX_MSTPRI0_OFFSET,
79 .reg = DA8XX_MSTPRI0_OFFSET,
84 .reg = DA8XX_MSTPRI1_OFFSET,
89 .reg = DA8XX_MSTPRI1_OFFSET,
94 .reg = DA8XX_MSTPRI1_OFFSET,
99 .reg = DA8XX_MSTPRI1_OFFSET,
104 .reg = DA8XX_MSTPRI1_OFFSET,
[all …]
/linux-4.19.296/drivers/clk/sunxi-ng/
Dccu_frac.c22 return !(readl(common->base + common->reg) & cf->enable); in ccu_frac_helper_is_enabled()
29 u32 reg; in ccu_frac_helper_enable() local
35 reg = readl(common->base + common->reg); in ccu_frac_helper_enable()
36 writel(reg & ~cf->enable, common->base + common->reg); in ccu_frac_helper_enable()
44 u32 reg; in ccu_frac_helper_disable() local
50 reg = readl(common->base + common->reg); in ccu_frac_helper_disable()
51 writel(reg | cf->enable, common->base + common->reg); in ccu_frac_helper_disable()
68 u32 reg; in ccu_frac_helper_read_rate() local
78 reg = readl(common->base + common->reg); in ccu_frac_helper_read_rate()
81 clk_hw_get_name(&common->hw), reg, cf->select); in ccu_frac_helper_read_rate()
[all …]
/linux-4.19.296/include/linux/mtd/
Dsh_flctl.h30 #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 …]

12345678910>>...53