/kernel/linux/linux-5.10/arch/powerpc/boot/ |
D | ns16550.c | 32 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", ®_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/ |
D | gpio-adnp.c | 14 #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 …]
|
D | gpio-creg-snps.c | 34 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()
|
D | gpio-htc-egpio.c | 37 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/ |
D | dwmac-socfpga.c | 47 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, ®_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 …]
|
D | stmmac_mdio.c | 240 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()
|
D | common.h | 453 unsigned int reg_shift; /* MII reg shift */ member 490 u32 reg_shift; member
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | pata_pxa.c | 236 (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()
|
D | pata_of_platform.c | 29 unsigned int reg_shift = 0; in pata_of_platform_probe() local 50 of_property_read_u32(dn, "reg-shift", ®_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/ |
D | i2c-ocores.c | 36 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/ |
D | pinctrl-mcp23s08_i2c.c | 25 mcp->reg_shift = 0; in mcp230xx_probe() 32 mcp->reg_shift = 1; in mcp230xx_probe() 39 mcp->reg_shift = 1; in mcp230xx_probe()
|
D | pinctrl-mcp23s08_spi.c | 91 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()
|
D | pinctrl-mcp23s08.h | 28 bool reg_shift; member
|
/kernel/linux/linux-5.10/drivers/thermal/broadcom/ |
D | brcmstb_thermal.c | 75 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/ |
D | setup.h | 13 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/ |
D | dpu_hw_vbif.c | 159 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/ |
D | early_printk_8250.c | 16 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/ |
D | serial.c | 45 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/ |
D | prm2xxx.c | 63 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/ |
D | ata-pxa.h | 15 uint32_t reg_shift; member
|
D | i2c-ocores.h | 12 u32 reg_shift; /* register offset shift value */ member
|
D | serial-sccnxp.h | 77 const u8 reg_shift; member
|
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
D | 8250_pci.c | 138 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/ |
D | 8250_pci.h | 28 unsigned int reg_shift; member
|
/kernel/linux/linux-5.10/include/linux/ssb/ |
D | ssb_driver_mips.h | 14 unsigned int reg_shift; member
|