Home
last modified time | relevance | path

Searched refs:bus_shift (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/pci/
A Decam.c31 unsigned int bus_shift = ops->bus_shift; in pci_ecam_create() local
45 if (!bus_shift) in pci_ecam_create()
46 bus_shift = PCIE_ECAM_BUS_SHIFT; in pci_ecam_create()
53 cfg->bus_shift = bus_shift; in pci_ecam_create()
55 bus_range_max = resource_size(cfgres) >> bus_shift; in pci_ecam_create()
62 bsz = 1 << bus_shift; in pci_ecam_create()
129 unsigned int bsz = 1 << cfg->bus_shift; in pci_ecam_add_bus()
171 unsigned int bus_shift = cfg->ops->bus_shift; in pci_ecam_map_bus() local
172 unsigned int devfn_shift = cfg->ops->bus_shift - 8; in pci_ecam_map_bus()
187 if (cfg->ops->bus_shift) { in pci_ecam_map_bus()
[all …]
/linux/drivers/mfd/
A Dhtc-pasic3.c23 unsigned int bus_shift; member
37 int bus_shift = asic->bus_shift; in pasic3_write_register() local
38 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_write_register()
39 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_write_register()
52 int bus_shift = asic->bus_shift; in pasic3_read_register() local
53 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_read_register()
54 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_read_register()
160 asic->bus_shift = (resource_size(r) - 5) >> 3; in pasic3_probe()
165 ds1wm_resources[0].end = (5 << asic->bus_shift) - 1; in pasic3_probe()
A Dasic3.c76 unsigned int bus_shift; member
93 (reg >> asic->bus_shift)); in asic3_write_register()
100 (reg >> asic->bus_shift)); in asic3_read_register()
767 tmio_core_mmc_enable(asic->tmio_cnf, 1 - asic->bus_shift, in asic3_mmc_enable()
887 ds1wm_resources[0].start >>= asic->bus_shift; in asic3_mfd_probe()
888 ds1wm_resources[0].end >>= asic->bus_shift; in asic3_mfd_probe()
893 asic->bus_shift) + mem_sdio->start, in asic3_mfd_probe()
894 ASIC3_SD_CONFIG_SIZE >> asic->bus_shift); in asic3_mfd_probe()
901 asic3_mmc_resources[0].start >>= asic->bus_shift; in asic3_mfd_probe()
902 asic3_mmc_resources[0].end >>= asic->bus_shift; in asic3_mfd_probe()
[all …]
/linux/drivers/mmc/host/
A Dtmio_mmc.h145 unsigned int bus_shift; member
228 return ioread16(host->ctl + (addr << host->bus_shift)); in sd_ctrl_read16()
234 ioread16_rep(host->ctl + (addr << host->bus_shift), buf, count); in sd_ctrl_read16_rep()
240 return ioread16(host->ctl + (addr << host->bus_shift)) | in sd_ctrl_read16_and_16_as_32()
247 ioread32_rep(host->ctl + (addr << host->bus_shift), buf, count); in sd_ctrl_read32_rep()
258 iowrite16(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write16()
264 iowrite16_rep(host->ctl + (addr << host->bus_shift), buf, count); in sd_ctrl_write16_rep()
273 iowrite16(val & 0xffff, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write32_as_16_and_16()
274 iowrite16(val >> 16, host->ctl + ((addr + 2) << host->bus_shift)); in sd_ctrl_write32_as_16_and_16()
279 iowrite32(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write32()
[all …]
A Drenesas_sdhi_core.c311 return readl(priv->scc_ctl + (addr << host->bus_shift)); in sd_scc_read32()
318 writel(val, priv->scc_ctl + (addr << host->bus_shift)); in sd_scc_write32()
873 int width = (host->bus_shift == 2) ? 64 : 32; in renesas_sdhi_enable_dma()
949 host->bus_shift = of_data->bus_shift; in renesas_sdhi_probe()
978 if (!host->bus_shift && resource_size(res) > 0x100) /* old way to determine the shift */ in renesas_sdhi_probe()
979 host->bus_shift = 1; in renesas_sdhi_probe()
A Drenesas_sdhi.h28 unsigned int bus_shift; member
A Drenesas_sdhi_internal_dmac.c102 .bus_shift = 2,
121 .bus_shift = 2,
A Dtmio_mmc.c160 host->bus_shift = resource_size(res) >> 10; in tmio_mmc_probe()
A Drenesas_sdhi_sys_dmac.c371 (CTL_SD_DATA_PORT << host->bus_shift); in renesas_sdhi_sys_dmac_request_dma()
A Duniphier-sd.c618 host->bus_shift = 1; in uniphier_sd_probe()
/linux/drivers/w1/masters/
A Dds1wm.c98 unsigned int bus_shift; /* # of shifts to calc register offsets */ member
120 switch (ds1wm_data->bus_shift) { in ds1wm_write_register()
132 switch (ds1wm_data->bus_shift) { in ds1wm_write_register()
151 switch (ds1wm_data->bus_shift) { in ds1wm_read_register()
163 switch (ds1wm_data->bus_shift) { in ds1wm_read_register()
540 if (plat->bus_shift > 2) { in ds1wm_probe()
543 ds1wm_data->bus_shift); in ds1wm_probe()
547 ds1wm_data->bus_shift = plat->bus_shift; in ds1wm_probe()
549 if ((8 << ds1wm_data->bus_shift) > resource_size(res)) { in ds1wm_probe()
553 8 << ds1wm_data->bus_shift); in ds1wm_probe()
[all …]
/linux/drivers/gpio/
A Dgpio-htc-egpio.c36 int bus_shift; /* byte shift */ member
55 writew(value, ei->base_addr + (reg << ei->bus_shift)); in egpio_writew()
60 return readw(ei->base_addr + (reg << ei->bus_shift)); in egpio_readw()
71 ei->ack_write, ei->ack_register << ei->bus_shift); in ack_irqs()
155 ei->base_addr, reg << ei->bus_shift, value); in egpio_get()
292 ei->bus_shift = fls(pdata->bus_width - 1) - 3; in egpio_probe()
293 pr_debug("bus_shift = %d\n", ei->bus_shift); in egpio_probe()
/linux/include/linux/
A Dpci-ecam.h45 unsigned int bus_shift; member
58 unsigned int bus_shift; member
A Daltera_uart.h13 unsigned int bus_shift; /* Bus shift (address stride) */ member
/linux/include/linux/mfd/
A Dds1wm.h28 unsigned int bus_shift; member
/linux/include/media/drv-intf/
A Drenesas-ceu.h16 unsigned char bus_shift; member
/linux/drivers/pci/controller/
A Dpci-host-generic.c18 .bus_shift = 16,
A Dpci-thunder-pem.c417 .bus_shift = THUNDER_PCIE_ECAM_BUS_SHIFT,
454 .bus_shift = THUNDER_PCIE_ECAM_BUS_SHIFT,
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
A Dbase.c50 u8 shunt_shift, u8 bus_reg, u8 bus_shift, u8 shunt, in nvkm_iccsense_poll_lane() argument
60 vbus >>= bus_shift; in nvkm_iccsense_poll_lane()
/linux/arch/sh/boards/mach-migor/
A Dsetup.c311 .bus_shift = 0,
318 .bus_shift = 0,
/linux/arch/sh/boards/mach-ecovec24/
A Dsetup.c408 .bus_shift = 0,
415 .bus_shift = 0,
452 .bus_shift = 0,
/linux/arch/sh/boards/mach-ap325rxa/
A Dsetup.c276 .bus_shift = 0,
/linux/arch/sh/boards/mach-kfr2r09/
A Dsetup.c250 .bus_shift = 0,
/linux/drivers/tty/serial/
A Daltera_uart.c601 port->regshift = platp->bus_shift; in altera_uart_probe()

Completed in 42 milliseconds