Home
last modified time | relevance | path

Searched refs:reg_width (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v4.19/drivers/reset/
Dreset-stm32mp1.c31 int reg_width = sizeof(u32); in stm32_reset_update() local
32 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_update()
33 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_update()
36 addr = data->membase + (bank * reg_width); in stm32_reset_update()
61 int reg_width = sizeof(u32); in stm32_reset_status() local
62 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_status()
63 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_status()
66 reg = readl(data->membase + (bank * reg_width)); in stm32_reset_status()
Dreset-simple.c39 int reg_width = sizeof(u32); in reset_simple_update() local
40 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_update()
41 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_update()
47 reg = readl(data->membase + (bank * reg_width)); in reset_simple_update()
52 writel(reg, data->membase + (bank * reg_width)); in reset_simple_update()
75 int reg_width = sizeof(u32); in reset_simple_status() local
76 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_status()
77 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_status()
80 reg = readl(data->membase + (bank * reg_width)); in reset_simple_status()
/Linux-v4.19/drivers/sh/intc/
Dhandle.c73 fn += (mr->reg_width >> 3) - 1; in _intc_mask_data()
78 (mr->reg_width - 1) - *fld_idx); in _intc_mask_data()
137 fn += (pr->reg_width >> 3) - 1; in _intc_prio_data()
140 BUG_ON(n * pr->field_width > pr->reg_width); in _intc_prio_data()
142 bit = pr->reg_width - (n * pr->field_width); in _intc_prio_data()
194 fn += (mr->reg_width >> 3) - 1; in intc_ack_data()
199 (mr->reg_width - 1) - j); in intc_ack_data()
272 fn += (sr->reg_width >> 3) - 1; in intc_get_sense_handle()
274 BUG_ON((j + 1) * sr->field_width > sr->reg_width); in intc_get_sense_handle()
276 bit = sr->reg_width - ((j + 1) * sr->field_width); in intc_get_sense_handle()
Dbalancing.c67 fn += (mr->reg_width >> 3) - 1; in intc_dist_data()
72 (mr->reg_width - 1) - j); in intc_dist_data()
Dvirq.c139 unsigned int fn = REG_FN_TEST_BASE + (subgroup->reg_width >> 3) - 1; in intc_subgroup_data()
142 0, 1, (subgroup->reg_width - 1) - index); in intc_subgroup_data()
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dbus.c77 size_t count, u16 offset, u8 reg_width) in b43_bus_bcma_block_read() argument
79 bcma_block_read(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_read()
83 size_t count, u16 offset, u8 reg_width) in b43_bus_bcma_block_write() argument
85 bcma_block_write(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_write()
180 size_t count, u16 offset, u8 reg_width) in b43_bus_ssb_block_read() argument
182 ssb_block_read(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_read()
186 size_t count, u16 offset, u8 reg_width) in b43_bus_ssb_block_write() argument
188 ssb_block_write(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_write()
Dbus.h34 size_t count, u16 offset, u8 reg_width);
36 size_t count, u16 offset, u8 reg_width);
Db43.h1069 size_t count, u16 offset, u8 reg_width) in b43_block_read() argument
1071 dev->dev->block_read(dev->dev, buffer, count, offset, reg_width); in b43_block_read()
1075 size_t count, u16 offset, u8 reg_width) in b43_block_write() argument
1077 dev->dev->block_write(dev->dev, buffer, count, offset, reg_width); in b43_block_write()
/Linux-v4.19/include/linux/
Dsh_intc.h42 unsigned long reg, reg_width; member
48 unsigned long set_reg, clr_reg, reg_width; member
59 unsigned long set_reg, clr_reg, reg_width, field_width; member
67 unsigned long reg, reg_width, field_width; member
/Linux-v4.19/drivers/pinctrl/sh-pfc/
Dgpio.c64 return sh_pfc_read_raw_reg(mem, dreg->reg_width); in gpio_read_data_reg()
73 sh_pfc_write_raw_reg(mem, dreg->reg_width, value); in gpio_write_data_reg()
85 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_reg()
86 for (bit = 0; bit < dreg->reg_width; bit++) { in gpio_setup_data_reg()
107 for (i = 0; pfc->info->data_regs[i].reg_width; ++i) in gpio_setup_data_regs()
115 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_regs()
159 pos = reg->info->reg_width - (bit + 1); in gpio_pin_set_value()
191 pos = reg->info->reg_width - (bit + 1); in gpio_pin_get()
Dcore.c146 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) in sh_pfc_read_raw_reg() argument
148 switch (reg_width) { in sh_pfc_read_raw_reg()
161 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, in sh_pfc_write_raw_reg() argument
164 switch (reg_width) { in sh_pfc_write_raw_reg()
206 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
209 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
227 crp->reg, value, field, crp->reg_width, crp->field_width); in sh_pfc_write_config_reg()
232 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
241 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
253 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
Dcore.h26 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width);
27 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width,
/Linux-v4.19/drivers/ssb/
Dhost_soc.c42 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_read() argument
50 switch (reg_width) { in ssb_host_soc_block_read()
115 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_write() argument
123 switch (reg_width) { in ssb_host_soc_block_write()
Dsdio.c298 size_t count, u16 offset, u8 reg_width) in ssb_sdio_block_read() argument
313 switch (reg_width) { in ssb_sdio_block_read()
337 bus->sdio_sbaddr >> 16, offset, reg_width, saved_count, error); in ssb_sdio_block_read()
405 size_t count, u16 offset, u8 reg_width) in ssb_sdio_block_write() argument
420 switch (reg_width) { in ssb_sdio_block_write()
444 bus->sdio_sbaddr >> 16, offset, reg_width, saved_count, error); in ssb_sdio_block_write()
/Linux-v4.19/drivers/bcma/
Dhost_soc.c51 size_t count, u16 offset, u8 reg_width) in bcma_host_soc_block_read() argument
55 switch (reg_width) { in bcma_host_soc_block_read()
95 size_t count, u16 offset, u8 reg_width) in bcma_host_soc_block_write() argument
99 switch (reg_width) { in bcma_host_soc_block_write()
Dhost_pci.c83 size_t count, u16 offset, u8 reg_width) in bcma_host_pci_block_read() argument
88 switch (reg_width) { in bcma_host_pci_block_read()
107 u16 offset, u8 reg_width) in bcma_host_pci_block_write() argument
112 switch (reg_width) { in bcma_host_pci_block_write()
/Linux-v4.19/include/linux/bcma/
Dbcma.h52 size_t count, u16 offset, u8 reg_width);
54 size_t count, u16 offset, u8 reg_width);
401 size_t count, u16 offset, u8 reg_width) in bcma_block_read() argument
403 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read()
407 u16 offset, u8 reg_width) in bcma_block_write() argument
409 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write()
/Linux-v4.19/drivers/dma/
Dat_hdmac.c1082 unsigned int reg_width; in atc_prep_slave_sg() local
1104 reg_width = convert_buswidth(sconfig->dst_addr_width); in atc_prep_slave_sg()
1105 ctrla |= ATC_DST_WIDTH(reg_width); in atc_prep_slave_sg()
1144 reg_width = convert_buswidth(sconfig->src_addr_width); in atc_prep_slave_sg()
1145 ctrla |= ATC_SRC_WIDTH(reg_width); in atc_prep_slave_sg()
1176 | len >> reg_width; in atc_prep_slave_sg()
1212 atc_dma_cyclic_check_values(unsigned int reg_width, dma_addr_t buf_addr, in atc_dma_cyclic_check_values() argument
1215 if (period_len > (ATC_BTSIZE_MAX << reg_width)) in atc_dma_cyclic_check_values()
1217 if (unlikely(period_len & ((1 << reg_width) - 1))) in atc_dma_cyclic_check_values()
1219 if (unlikely(buf_addr & ((1 << reg_width) - 1))) in atc_dma_cyclic_check_values()
[all …]
Dtxx9dmac.c356 sai = ds->reg_width; in txx9dmac_dostart()
360 dai = ds->reg_width; in txx9dmac_dostart()
377 sai = ds->reg_width; in txx9dmac_dostart()
381 dai = ds->reg_width; in txx9dmac_dostart()
821 BUG_ON(!ds || !ds->reg_width); in txx9dmac_prep_slave_sg()
864 sai = ds->reg_width; in txx9dmac_prep_slave_sg()
868 dai = ds->reg_width; in txx9dmac_prep_slave_sg()
1019 TXX9_DMA_CCR_XFSZ(__ffs(ds->reg_width)); in txx9dmac_alloc_chan_resources()
/Linux-v4.19/include/linux/ssb/
Dssb.h216 size_t count, u16 offset, u8 reg_width);
218 size_t count, u16 offset, u8 reg_width);
601 size_t count, u16 offset, u8 reg_width) in ssb_block_read() argument
603 dev->ops->block_read(dev, buffer, count, offset, reg_width); in ssb_block_read()
607 size_t count, u16 offset, u8 reg_width) in ssb_block_write() argument
609 dev->ops->block_write(dev, buffer, count, offset, reg_width); in ssb_block_write()
/Linux-v4.19/drivers/pwm/
Dpwm-mediatek.c145 u32 clkdiv = 0, cnt_period, cnt_duty, reg_width = PWMDWIDTH, in mtk_pwm_config() local
177 reg_width = PWM45DWIDTH_FIXUP; in mtk_pwm_config()
183 mtk_pwm_writel(pc, pwm->hwpwm, reg_width, cnt_period); in mtk_pwm_config()
/Linux-v4.19/arch/mips/include/asm/txx9/
Ddmac.h45 unsigned int reg_width; member
/Linux-v4.19/include/linux/platform_data/
Dgpio-htc-egpio.h42 int reg_width; member
/Linux-v4.19/drivers/gpio/
Dgpio-htc-egpio.c314 if ((pdata->reg_width != 8) && (pdata->reg_width != 16)) in egpio_probe()
316 ei->reg_shift = fls(pdata->reg_width - 1); in egpio_probe()
319 ei->reg_mask = (1 << pdata->reg_width) - 1; in egpio_probe()
/Linux-v4.19/drivers/scsi/qla2xxx/
Dqla_tmpl.h82 uint8_t reg_width; member
96 uint8_t reg_width; member

12