Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/clk/stm32/
Dreset-stm32.c36 int reg_width = sizeof(u32); in stm32_reset_update() local
37 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_update()
38 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_update()
43 addr = data->membase + (bank * reg_width); in stm32_reset_update()
55 reg = readl(data->membase + (bank * reg_width)); in stm32_reset_update()
62 writel(reg, data->membase + (bank * reg_width)); in stm32_reset_update()
86 int reg_width = sizeof(u32); in stm32_reset_status() local
87 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_status()
88 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_status()
91 reg = readl(data->membase + (bank * reg_width)); in stm32_reset_status()
/linux-6.1.9/drivers/input/misc/
Diqs7222.c535 int reg_width; member
549 .reg_width = 8,
557 .reg_width = 8,
565 .reg_width = 1,
573 .reg_width = 1,
580 .reg_width = 1,
587 .reg_width = 1,
594 .reg_width = 3,
603 .reg_width = 1,
610 .reg_width = 4,
[all …]
/linux-6.1.9/drivers/reset/
Dreset-simple.c35 int reg_width = sizeof(u32); in reset_simple_update() local
36 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_update()
37 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_update()
43 reg = readl(data->membase + (bank * reg_width)); in reset_simple_update()
48 writel(reg, data->membase + (bank * reg_width)); in reset_simple_update()
89 int reg_width = sizeof(u32); in reset_simple_status() local
90 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_status()
91 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_status()
94 reg = readl(data->membase + (bank * reg_width)); in reset_simple_status()
/linux-6.1.9/drivers/net/pcs/
Dpcs-altera-tse.c36 int reg_width; member
46 if (tse_pcs->reg_width == 4) in tse_pcs_read()
55 if (tse_pcs->reg_width == 4) in tse_pcs_write()
154 void __iomem *pcs_base, int reg_width) in alt_tse_pcs_create() argument
158 if (reg_width != 4 && reg_width != 2) in alt_tse_pcs_create()
167 tse_pcs->reg_width = reg_width; in alt_tse_pcs_create()
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/wireless/broadcom/b43/
Dbus.c64 size_t count, u16 offset, u8 reg_width) in b43_bus_bcma_block_read() argument
66 bcma_block_read(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_read()
70 size_t count, u16 offset, u8 reg_width) in b43_bus_bcma_block_write() argument
72 bcma_block_write(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_write()
167 size_t count, u16 offset, u8 reg_width) in b43_bus_ssb_block_read() argument
169 ssb_block_read(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_read()
173 size_t count, u16 offset, u8 reg_width) in b43_bus_ssb_block_write() argument
175 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);
/linux-6.1.9/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
Dpcs-altera-tse.h15 void __iomem *pcs_base, int reg_width);
/linux-6.1.9/drivers/pinctrl/renesas/
Dgpio.c60 return sh_pfc_read_raw_reg(mem, dreg->reg_width); in gpio_read_data_reg()
69 sh_pfc_write_raw_reg(mem, dreg->reg_width, value); in gpio_write_data_reg()
81 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_reg()
82 for (bit = 0; bit < dreg->reg_width; bit++) { in gpio_setup_data_reg()
103 for (i = 0; pfc->info->data_regs[i].reg_width; ++i) in gpio_setup_data_regs()
111 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_regs()
155 pos = reg->info->reg_width - (bit + 1); in gpio_pin_set_value()
187 pos = reg->info->reg_width - (bit + 1); in gpio_pin_get()
Dcore.h23 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width);
24 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width,
Dcore.c140 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) in sh_pfc_read_raw_reg() argument
142 switch (reg_width) { in sh_pfc_read_raw_reg()
155 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, in sh_pfc_write_raw_reg() argument
158 switch (reg_width) { in sh_pfc_write_raw_reg()
212 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
215 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
233 crp->reg, value, field, crp->reg_width, hweight32(mask)); in sh_pfc_write_config_reg()
238 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
243 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
255 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
[all …]
/linux-6.1.9/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
419 switch (reg_width) { in ssb_sdio_block_write()
443 bus->sdio_sbaddr >> 16, offset, reg_width, saved_count, error); in ssb_sdio_block_write()
/linux-6.1.9/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-6.1.9/include/linux/bcma/
Dbcma.h52 size_t count, u16 offset, u8 reg_width);
54 size_t count, u16 offset, u8 reg_width);
396 size_t count, u16 offset, u8 reg_width) in bcma_block_read() argument
398 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read()
402 u16 offset, u8 reg_width) in bcma_block_write() argument
404 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write()
/linux-6.1.9/drivers/dma/
Dat_hdmac.c1064 unsigned int reg_width; in atc_prep_slave_sg() local
1086 reg_width = convert_buswidth(sconfig->dst_addr_width); in atc_prep_slave_sg()
1087 ctrla |= ATC_DST_WIDTH(reg_width); in atc_prep_slave_sg()
1126 reg_width = convert_buswidth(sconfig->src_addr_width); in atc_prep_slave_sg()
1127 ctrla |= ATC_SRC_WIDTH(reg_width); in atc_prep_slave_sg()
1158 | len >> reg_width; in atc_prep_slave_sg()
1194 atc_dma_cyclic_check_values(unsigned int reg_width, dma_addr_t buf_addr, in atc_dma_cyclic_check_values() argument
1197 if (period_len > (ATC_BTSIZE_MAX << reg_width)) in atc_dma_cyclic_check_values()
1199 if (unlikely(period_len & ((1 << reg_width) - 1))) in atc_dma_cyclic_check_values()
1201 if (unlikely(buf_addr & ((1 << reg_width) - 1))) in atc_dma_cyclic_check_values()
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/include/
Dbasic_asm.h97 .macro OP_REGS op, reg_width, start_reg, end_reg, base_reg, base_reg_offset=0, skip=0
100 \op i, (\reg_width * (i - \skip) + \base_reg_offset)(\base_reg)
/linux-6.1.9/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-6.1.9/drivers/gpio/
Dgpio-htc-egpio.c295 if ((pdata->reg_width != 8) && (pdata->reg_width != 16)) in egpio_probe()
298 ei->reg_shift = fls(pdata->reg_width - 1); in egpio_probe()
301 ei->reg_mask = (1 << pdata->reg_width) - 1; in egpio_probe()
/linux-6.1.9/drivers/usb/serial/
Dxr_serial.c111 int reg_width; member
151 .reg_width = 8,
173 .reg_width = 16,
196 .reg_width = 12,
216 .reg_width = 16,
270 if (type->reg_width == 8) in xr_get_reg()
516 state = GENMASK(type->reg_width - 1, 0); in xr_break_ctl()
/linux-6.1.9/drivers/pwm/
Dpwm-mediatek.c121 u32 clkdiv = 0, cnt_period, cnt_duty, reg_width = PWMDWIDTH, in pwm_mediatek_config() local
158 reg_width = PWM45DWIDTH_FIXUP; in pwm_mediatek_config()
164 pwm_mediatek_writel(pc, pwm->hwpwm, reg_width, cnt_period); in pwm_mediatek_config()
/linux-6.1.9/include/linux/platform_data/
Dgpio-htc-egpio.h42 int reg_width; member

12