Home
last modified time | relevance | path

Searched refs:reg_width (Results 1 - 25 of 74) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/clk/stm32/
H A 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()
[all...]
/kernel/linux/linux-5.10/drivers/reset/
H A 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()
H A 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()
/kernel/linux/linux-6.6/drivers/reset/
H A Dreset-simple.c34 int reg_width = sizeof(u32); in reset_simple_update() local
35 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_update()
36 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_update()
42 reg = readl(data->membase + (bank * reg_width)); in reset_simple_update()
47 writel(reg, data->membase + (bank * reg_width)); in reset_simple_update()
88 int reg_width = sizeof(u32); in reset_simple_status() local
89 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_status()
90 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_status()
93 reg = readl(data->membase + (bank * reg_width)); in reset_simple_status()
/kernel/linux/linux-6.6/drivers/input/misc/
H A Diqs7222.c799 int reg_width; member
813 .reg_width = 8,
821 .reg_width = 8,
829 .reg_width = 1,
837 .reg_width = 1,
844 .reg_width = 1,
851 .reg_width = 1,
858 .reg_width = 3,
867 .reg_width = 1,
874 .reg_width
2074 int reg_width = iqs7222_props[i].reg_width; iqs7222_parse_props() local
[all...]
/kernel/linux/linux-5.10/drivers/sh/intc/
H A 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 in intc_get_sense_handle()
[all...]
H A Dbalancing.c67 fn += (mr->reg_width >> 3) - 1; in intc_dist_data()
72 (mr->reg_width - 1) - j); in intc_dist_data()
/kernel/linux/linux-6.6/drivers/sh/intc/
H A 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 in intc_get_sense_handle()
[all...]
H A Dbalancing.c67 fn += (mr->reg_width >> 3) - 1; in intc_dist_data()
72 (mr->reg_width - 1) - j); in intc_dist_data()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
H A Dbus.c64 size_t count, u16 offset, u8 reg_width) in b43_bus_bcma_block_read()
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()
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()
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()
175 ssb_block_write(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_write()
63 b43_bus_bcma_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_bcma_block_read() argument
69 b43_bus_bcma_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_bcma_block_write() argument
166 b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_ssb_block_read() argument
172 b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_ssb_block_write() argument
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/
H A Dbus.c64 size_t count, u16 offset, u8 reg_width) in b43_bus_bcma_block_read()
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()
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()
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()
175 ssb_block_write(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_write()
63 b43_bus_bcma_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_bcma_block_read() argument
69 b43_bus_bcma_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_bcma_block_write() argument
166 b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_ssb_block_read() argument
172 b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) b43_bus_ssb_block_write() argument
/kernel/linux/linux-5.10/include/linux/
H A 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
/kernel/linux/linux-6.6/include/linux/
H A 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
/kernel/linux/linux-6.6/drivers/tty/serial/8250/
H A D8250_dfl.c56 u32 reg_width; in dfl_uart_get_params() local
91 reg_width = FIELD_GET(DFHv1_PARAM_REG_LAYOUT_WIDTH, reg_layout); in dfl_uart_get_params()
92 switch (reg_width) { in dfl_uart_get_params()
102 return dev_err_probe(dev, -EINVAL, "unsupported reg-width %u\n", reg_width); in dfl_uart_get_params()
/kernel/linux/linux-6.6/drivers/input/touchscreen/
H A Diqs7211.c481 int reg_width; member
507 .reg_width = 5,
528 .reg_width = 4,
549 .reg_width = 5,
567 .reg_width = 8,
579 .reg_width = 8,
621 .reg_width = 8,
631 .reg_width = 8,
727 .reg_width = 8,
747 .reg_width
1652 int reg_width = iqs7211_props[i].reg_width ? : 16; iqs7211_parse_props() local
[all...]
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/
H A Dgpio.c61 return sh_pfc_read_raw_reg(mem, dreg->reg_width); in gpio_read_data_reg()
70 sh_pfc_write_raw_reg(mem, dreg->reg_width, value); in gpio_write_data_reg()
82 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_reg()
83 for (bit = 0; bit < dreg->reg_width; bit++) { in gpio_setup_data_reg()
104 for (i = 0; pfc->info->data_regs[i].reg_width; ++i) in gpio_setup_data_regs()
112 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_regs()
156 pos = reg->info->reg_width - (bit + 1); in gpio_pin_set_value()
188 pos = reg->info->reg_width - (bit + 1); in gpio_pin_get()
H A 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,
H A Dcore.c139 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) in sh_pfc_read_raw_reg() argument
141 switch (reg_width) { in sh_pfc_read_raw_reg()
154 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, in sh_pfc_write_raw_reg() argument
157 switch (reg_width) { in sh_pfc_write_raw_reg()
199 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
202 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
220 crp->reg, value, field, crp->reg_width, hweight32(mask)); in sh_pfc_write_config_reg()
225 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
234 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
246 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
[all...]
/kernel/linux/linux-6.6/drivers/pinctrl/renesas/
H A 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()
H A 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,
H A Dcore.c139 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) in sh_pfc_read_raw_reg() argument
141 switch (reg_width) { in sh_pfc_read_raw_reg()
154 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, in sh_pfc_write_raw_reg() argument
157 switch (reg_width) { in sh_pfc_write_raw_reg()
211 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
214 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
232 crp->reg, value, field, crp->reg_width, hweight32(mask)); in sh_pfc_write_config_reg()
237 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
242 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
254 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
[all...]
/kernel/linux/linux-5.10/drivers/bcma/
H A Dhost_soc.c51 size_t count, u16 offset, u8 reg_width) in bcma_host_soc_block_read()
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()
99 switch (reg_width) { in bcma_host_soc_block_write()
50 bcma_host_soc_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_read() argument
93 bcma_host_soc_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_write() argument
/kernel/linux/linux-5.10/drivers/ssb/
H A Dhost_soc.c42 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_read()
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()
123 switch (reg_width) { in ssb_host_soc_block_write()
41 ssb_host_soc_block_read(struct ssb_device *dev, void *buffer, size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_read() argument
114 ssb_host_soc_block_write(struct ssb_device *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_write() argument
/kernel/linux/linux-6.6/drivers/ssb/
H A Dhost_soc.c42 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_read()
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()
123 switch (reg_width) { in ssb_host_soc_block_write()
41 ssb_host_soc_block_read(struct ssb_device *dev, void *buffer, size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_read() argument
114 ssb_host_soc_block_write(struct ssb_device *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_write() argument
/kernel/linux/linux-6.6/drivers/bcma/
H A Dhost_soc.c51 size_t count, u16 offset, u8 reg_width) in bcma_host_soc_block_read()
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()
99 switch (reg_width) { in bcma_host_soc_block_write()
50 bcma_host_soc_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_read() argument
93 bcma_host_soc_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_write() argument

Completed in 14 milliseconds

123