Home
last modified time | relevance | path

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

123

/openbmc/linux/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()
/openbmc/u-boot/drivers/gpio/
H A Dsh_pfc.c33 unsigned long reg_width) in gpio_read_raw_reg() argument
35 switch (reg_width) { in gpio_read_raw_reg()
50 unsigned long reg_width, in gpio_write_raw_reg() argument
53 switch (reg_width) { in gpio_write_raw_reg()
74 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit()
77 dr->reg + offset, pos, dr->reg_width); in gpio_read_bit()
80 dr->reg_width) >> pos) & 1; in gpio_read_bit()
88 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit()
92 dr->reg, !!value, pos, dr->reg_width); in gpio_write_bit()
99 gpio_write_raw_reg(dr->mapped_reg, dr->reg_width, dr->reg_shadow); in gpio_write_bit()
[all …]
/openbmc/linux/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 = 4,
[all …]
/openbmc/linux/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()
/openbmc/u-boot/drivers/reset/
H A Dreset-socfpga.c34 int reg_width = sizeof(u32); in socfpga_reset_assert() local
35 int bank = id / (reg_width * BITS_PER_BYTE); in socfpga_reset_assert()
36 int offset = id % (reg_width * BITS_PER_BYTE); in socfpga_reset_assert()
46 int reg_width = sizeof(u32); in socfpga_reset_deassert() local
47 int bank = id / (reg_width * BITS_PER_BYTE); in socfpga_reset_deassert()
48 int offset = id % (reg_width * BITS_PER_BYTE); in socfpga_reset_deassert()
/openbmc/linux/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 - ((j + 1) * sr->field_width); in intc_get_sense_handle()
H A Dbalancing.c67 fn += (mr->reg_width >> 3) - 1; in intc_dist_data()
72 (mr->reg_width - 1) - j); in intc_dist_data()
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A 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()
/openbmc/linux/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 = 8,
[all …]
/openbmc/linux/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.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 …]
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,
/openbmc/linux/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
/openbmc/linux/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()
/openbmc/linux/drivers/dma/dw/
H A Dcore.c627 unsigned int reg_width; in dwc_prep_slave_sg() local
644 reg_width = __ffs(sconfig->dst_addr_width); in dwc_prep_slave_sg()
647 | DWC_CTLL_DST_WIDTH(reg_width) in dwc_prep_slave_sg()
694 reg_width = __ffs(sconfig->src_addr_width); in dwc_prep_slave_sg()
697 | DWC_CTLL_SRC_WIDTH(reg_width) in dwc_prep_slave_sg()
717 ctlhi = dw->bytes2block(dwc, len, reg_width, &dlen); in dwc_prep_slave_sg()
786 u32 reg_width, max_width; in dwc_verify_p_buswidth() local
789 reg_width = dwc->dma_sconfig.dst_addr_width; in dwc_verify_p_buswidth()
791 reg_width = dwc->dma_sconfig.src_addr_width; in dwc_verify_p_buswidth()
798 if (reg_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in dwc_verify_p_buswidth()
[all …]
/openbmc/linux/drivers/ssb/
H A 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()
H A 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()
/openbmc/u-boot/include/
H A Dsh_pfc.h45 unsigned long reg, reg_width, field_width; member
52 .reg = r, .reg_width = r_width, .field_width = f_width, \
57 .reg = r, .reg_width = r_width, \
63 unsigned long reg, reg_width, reg_shadow; member
69 .reg = r, .reg_width = r_width, \
/openbmc/linux/drivers/bcma/
H A 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()
/openbmc/u-boot/drivers/pinctrl/renesas/
H A Dpfc.c89 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) in sh_pfc_read_raw_reg() argument
91 switch (reg_width) { in sh_pfc_read_raw_reg()
104 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, in sh_pfc_write_raw_reg() argument
107 switch (reg_width) { in sh_pfc_write_raw_reg()
150 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
153 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
173 crp->reg, value, field, crp->reg_width, crp->field_width); in sh_pfc_write_config_reg()
178 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
185 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
197 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
/openbmc/linux/include/linux/bcma/
H A 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()
/openbmc/qemu/include/hw/sh4/
H A Dsh_intc.h23 unsigned long set_reg, clr_reg, reg_width; member
29 unsigned long set_reg, clr_reg, reg_width, field_width; member
/openbmc/linux/include/linux/ssb/
H A 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()
/openbmc/linux/tools/testing/selftests/powerpc/include/
H A 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)
/openbmc/linux/drivers/dma/
H A Dat_hdmac.c1251 unsigned int reg_width; in atc_prep_slave_sg() local
1278 reg_width = convert_buswidth(sconfig->dst_addr_width); in atc_prep_slave_sg()
1279 ctrla |= FIELD_PREP(ATC_DST_WIDTH, reg_width); in atc_prep_slave_sg()
1326 reg_width = convert_buswidth(sconfig->src_addr_width); in atc_prep_slave_sg()
1327 ctrla |= FIELD_PREP(ATC_SRC_WIDTH, reg_width); in atc_prep_slave_sg()
1364 len >> reg_width; in atc_prep_slave_sg()
1396 atc_dma_cyclic_check_values(unsigned int reg_width, dma_addr_t buf_addr, in atc_dma_cyclic_check_values() argument
1399 if (period_len > (ATC_BTSIZE_MAX << reg_width)) in atc_dma_cyclic_check_values()
1401 if (unlikely(period_len & ((1 << reg_width) - 1))) in atc_dma_cyclic_check_values()
1403 if (unlikely(buf_addr & ((1 << reg_width) - 1))) in atc_dma_cyclic_check_values()
[all …]

123