Home
last modified time | relevance | path

Searched refs:reg_shift (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/arch/powerpc/boot/
Dns16550.c32 static u32 reg_shift; variable
36 out_8(reg_base + (UART_FCR << reg_shift), 0x06); in ns16550_open()
42 while ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_THRE) == 0); in ns16550_putc()
48 while ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_DR) == 0); in ns16550_getc()
54 return ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_DR) != 0); in ns16550_tstc()
71 n = getprop(devp, "reg-shift", &reg_shift, sizeof(reg_shift)); in ns16550_console_init()
72 if (n != sizeof(reg_shift)) in ns16550_console_init()
73 reg_shift = 0; in ns16550_console_init()
75 reg_shift = be32_to_cpu(reg_shift); in ns16550_console_init()
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-adnp.c14 #define GPIO_DDR(gpio) (0x00 << (gpio)->reg_shift)
15 #define GPIO_PLR(gpio) (0x01 << (gpio)->reg_shift)
16 #define GPIO_IER(gpio) (0x02 << (gpio)->reg_shift)
17 #define GPIO_ISR(gpio) (0x03 << (gpio)->reg_shift)
18 #define GPIO_PTR(gpio) (0x04 << (gpio)->reg_shift)
23 unsigned int reg_shift; member
68 unsigned int reg = offset >> adnp->reg_shift; in adnp_gpio_get()
82 unsigned int reg = offset >> adnp->reg_shift; in __adnp_gpio_set()
111 unsigned int reg = offset >> adnp->reg_shift; in adnp_gpio_direction_input()
148 unsigned int reg = offset >> adnp->reg_shift; in adnp_gpio_direction_output()
[all …]
Dgpio-creg-snps.c34 u32 reg, reg_shift, value; in creg_gpio_set() local
40 reg_shift = layout->shift[offset]; in creg_gpio_set()
42 reg_shift += layout->bit_per_gpio[i] + layout->shift[i]; in creg_gpio_set()
46 reg &= ~(GENMASK(layout->bit_per_gpio[i] - 1, 0) << reg_shift); in creg_gpio_set()
47 reg |= (value << reg_shift); in creg_gpio_set()
Dgpio-htc-egpio.c37 int reg_shift; /* bit shift */ member
123 return bit >> ei->reg_shift; in egpio_pos()
128 return 1 << (bit & ((1 << ei->reg_shift)-1)); in egpio_bit()
189 shift = pos << ei->reg_shift; in egpio_set()
241 shift += (1<<ei->reg_shift)) { in egpio_write_cache()
298 ei->reg_shift = fls(pdata->reg_width - 1); in egpio_probe()
299 pr_debug("reg_shift = %d\n", ei->reg_shift); in egpio_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-socfpga.c47 u32 reg_shift; member
103 u32 reg_offset, reg_shift; in socfpga_dwmac_parse_data() local
124 ret = of_property_read_u32_index(np, "altr,sysmgr-syscon", 2, &reg_shift); in socfpga_dwmac_parse_data()
218 dwmac->reg_shift = reg_shift; in socfpga_dwmac_parse_data()
266 u32 reg_shift = dwmac->reg_shift; in socfpga_gen5_set_phy_mode() local
286 ctrl &= ~(SYSMGR_EMACGRP_CTRL_PHYSEL_MASK << reg_shift); in socfpga_gen5_set_phy_mode()
287 ctrl |= val << reg_shift; in socfpga_gen5_set_phy_mode()
295 module |= (SYSMGR_FPGAGRP_MODULE_EMAC << (reg_shift / 2)); in socfpga_gen5_set_phy_mode()
301 ctrl |= SYSMGR_EMACGRP_CTRL_PTP_REF_CLK_MASK << (reg_shift / 2); in socfpga_gen5_set_phy_mode()
304 (reg_shift / 2)); in socfpga_gen5_set_phy_mode()
[all …]
Dstmmac_mdio.c240 value |= (phyreg << priv->hw->mii.reg_shift) & priv->hw->mii.reg_mask; in stmmac_mdio_read()
249 priv->hw->mii.reg_shift) & in stmmac_mdio_read()
308 value |= (phyreg << priv->hw->mii.reg_shift) & priv->hw->mii.reg_mask; in stmmac_mdio_write()
318 priv->hw->mii.reg_shift) & in stmmac_mdio_write()
Dcommon.h453 unsigned int reg_shift; /* MII reg shift */ member
490 u32 reg_shift; member
/kernel/linux/linux-5.10/drivers/ata/
Dpata_pxa.c236 (ATA_REG_DATA << pdata->reg_shift); in pxa_ata_probe()
238 (ATA_REG_ERR << pdata->reg_shift); in pxa_ata_probe()
240 (ATA_REG_FEATURE << pdata->reg_shift); in pxa_ata_probe()
242 (ATA_REG_NSECT << pdata->reg_shift); in pxa_ata_probe()
244 (ATA_REG_LBAL << pdata->reg_shift); in pxa_ata_probe()
246 (ATA_REG_LBAM << pdata->reg_shift); in pxa_ata_probe()
248 (ATA_REG_LBAH << pdata->reg_shift); in pxa_ata_probe()
250 (ATA_REG_DEVICE << pdata->reg_shift); in pxa_ata_probe()
252 (ATA_REG_STATUS << pdata->reg_shift); in pxa_ata_probe()
254 (ATA_REG_CMD << pdata->reg_shift); in pxa_ata_probe()
Dpata_of_platform.c29 unsigned int reg_shift = 0; in pata_of_platform_probe() local
50 of_property_read_u32(dn, "reg-shift", &reg_shift); in pata_of_platform_probe()
67 reg_shift, pio_mask, &pata_platform_sht, in pata_of_platform_probe()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-ocores.c36 u32 reg_shift; member
92 iowrite8(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_8()
97 iowrite16(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_16()
102 iowrite32(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_32()
107 iowrite16be(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_16be()
112 iowrite32be(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_32be()
117 return ioread8(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_8()
122 return ioread16(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_16()
127 return ioread32(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_32()
132 return ioread16be(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_16be()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-mcp23s08_i2c.c25 mcp->reg_shift = 0; in mcp230xx_probe()
32 mcp->reg_shift = 1; in mcp230xx_probe()
39 mcp->reg_shift = 1; in mcp230xx_probe()
Dpinctrl-mcp23s08_spi.c91 mcp->reg_shift = 0; in mcp23s08_spi_regmap_init()
100 mcp->reg_shift = 1; in mcp23s08_spi_regmap_init()
109 mcp->reg_shift = 1; in mcp23s08_spi_regmap_init()
Dpinctrl-mcp23s08.h28 bool reg_shift; member
/kernel/linux/linux-5.10/drivers/thermal/broadcom/
Dbrcmstb_thermal.c75 int reg_shift; member
85 .reg_shift = AVS_TMON_INT_THRESH_low_shift,
93 .reg_shift = AVS_TMON_INT_THRESH_high_shift,
101 .reg_shift = AVS_TMON_RESET_THRESH_shift,
200 val >>= trip->reg_shift; in avs_tmon_get_trip_temp()
218 val <<= trip->reg_shift; in avs_tmon_set_trip_temp()
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dsetup.h13 unsigned int reg_shift, unsigned int timeout);
16 unsigned int reg_shift, unsigned int timeout) {} in setup_8250_early_printk_port() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_vbif.c159 u32 reg_val, reg_val_lvl, mask, reg_high, reg_shift; in dpu_hw_set_qos_remap() local
167 reg_shift = (xin_id & 0x7) * 4; in dpu_hw_set_qos_remap()
172 mask = 0x7 << reg_shift; in dpu_hw_set_qos_remap()
175 reg_val |= (remap_level << reg_shift) & mask; in dpu_hw_set_qos_remap()
178 reg_val_lvl |= (remap_level << reg_shift) & mask; in dpu_hw_set_qos_remap()
/kernel/linux/linux-5.10/arch/mips/kernel/
Dearly_printk_8250.c16 void setup_8250_early_printk_port(unsigned long base, unsigned int reg_shift, in setup_8250_early_printk_port() argument
20 serial8250_reg_shift = reg_shift; in setup_8250_early_printk_port()
/kernel/linux/linux-5.10/arch/mips/bcm47xx/
Dserial.c45 p->regshift = ssb_port->reg_shift; in uart8250_init_ssb()
71 p->regshift = bcma_port->reg_shift; in uart8250_init_bcma()
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Dprm2xxx.c63 while (p->reg_shift >= 0 && p->std_shift >= 0) { in omap2xxx_prm_read_reset_sources()
64 if (v & (1 << p->reg_shift)) in omap2xxx_prm_read_reset_sources()
/kernel/linux/linux-5.10/include/linux/platform_data/
Data-pxa.h15 uint32_t reg_shift; member
Di2c-ocores.h12 u32 reg_shift; /* register offset shift value */ member
Dserial-sccnxp.h77 const u8 reg_shift; member
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
D8250_pci.c138 return setup_port(priv, port, bar, offset, board->reg_shift); in addidata_apci7800_setup()
159 return setup_port(priv, port, bar, offset, board->reg_shift); in afavlab_setup()
224 return setup_port(priv, port, bar, offset, board->reg_shift); in pci_hp_diva_setup()
386 return setup_port(priv, port, bar, offset, board->reg_shift); in sbs_setup()
644 return setup_port(priv, port, bar, offset, board->reg_shift); in pci_timedia_setup()
669 return setup_port(priv, port, bar, offset, board->reg_shift); in titan_400l_800l_setup()
776 return setup_port(priv, port, bar, offset, board->reg_shift); in pci_ni8430_setup()
792 return setup_port(priv, port, bar, 0, board->reg_shift); in pci_netmos_9900_setup()
1317 (board->reg_shift + 3); in pci_default_setup()
1322 return setup_port(priv, port, bar, offset, board->reg_shift); in pci_default_setup()
[all …]
/kernel/linux/linux-5.10/include/linux/
D8250_pci.h28 unsigned int reg_shift; member
/kernel/linux/linux-5.10/include/linux/ssb/
Dssb_driver_mips.h14 unsigned int reg_shift; member

123