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

12

/linux-master/include/linux/platform_data/
H A Dgpio-htc-egpio.h18 * (number of registers = DIV_ROUND_UP(num_gpios, reg_width))
33 * @reg_width: number of bits per register, either 8 or 16 bit
42 int reg_width; member in struct:htc_egpio_platform_data
/linux-master/drivers/clk/stm32/
H A Dreset-stm32.c34 int reg_width = sizeof(u32); local
35 int bank = id / (reg_width * BITS_PER_BYTE);
36 int offset = id % (reg_width * BITS_PER_BYTE);
41 addr = data->membase + (bank * reg_width);
53 reg = readl(data->membase + (bank * reg_width));
60 writel(reg, data->membase + (bank * reg_width));
84 int reg_width = sizeof(u32); local
85 int bank = id / (reg_width * BITS_PER_BYTE);
86 int offset = id % (reg_width * BITS_PER_BYTE);
89 reg = readl(data->membase + (bank * reg_width));
[all...]
/linux-master/drivers/pinctrl/renesas/
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 Dgpio.c60 return sh_pfc_read_raw_reg(mem, dreg->reg_width);
69 sh_pfc_write_raw_reg(mem, dreg->reg_width, value);
81 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) {
82 for (bit = 0; bit < dreg->reg_width; bit++) {
103 for (i = 0; pfc->info->data_regs[i].reg_width; ++i)
111 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) {
155 pos = reg->info->reg_width - (bit + 1);
187 pos = reg->info->reg_width - (bit + 1);
H A Dcore.c139 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) argument
141 switch (reg_width) {
154 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, argument
157 switch (reg_width) {
211 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width);
214 *posp = crp->reg_width;
232 crp->reg, value, field, crp->reg_width, hweight32(mask));
237 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width);
242 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data);
254 unsigned int r_width = config_reg->reg_width;
[all...]
/linux-master/arch/mips/include/asm/txx9/
H A Ddmac.h37 * @reg_width: peripheral register width
42 unsigned int reg_width; member in struct:txx9dmac_slave
/linux-master/drivers/reset/
H A Dreset-simple.c34 int reg_width = sizeof(u32); local
35 int bank = id / (reg_width * BITS_PER_BYTE);
36 int offset = id % (reg_width * BITS_PER_BYTE);
42 reg = readl(data->membase + (bank * reg_width));
47 writel(reg, data->membase + (bank * reg_width));
88 int reg_width = sizeof(u32); local
89 int bank = id / (reg_width * BITS_PER_BYTE);
90 int offset = id % (reg_width * BITS_PER_BYTE);
93 reg = readl(data->membase + (bank * reg_width));
/linux-master/include/linux/
H A Dsh_intc.h42 unsigned long reg, reg_width; member in struct:intc_subgroup
48 unsigned long set_reg, clr_reg, reg_width; member in struct:intc_mask_reg
59 unsigned long set_reg, clr_reg, reg_width, field_width; member in struct:intc_prio_reg
67 unsigned long reg, reg_width, field_width; member in struct:intc_sense_reg
/linux-master/drivers/input/misc/
H A Diqs7222.c799 int reg_width; member in struct:iqs7222_prop_desc
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; local
[all...]
/linux-master/drivers/net/wireless/broadcom/b43/
H A Dbus.c64 size_t count, u16 offset, u8 reg_width)
66 bcma_block_read(dev->bdev, buffer, count, offset, reg_width);
70 size_t count, u16 offset, u8 reg_width)
72 bcma_block_write(dev->bdev, buffer, count, offset, reg_width);
167 size_t count, u16 offset, u8 reg_width)
169 ssb_block_read(dev->sdev, buffer, count, offset, reg_width);
173 size_t count, u16 offset, u8 reg_width)
175 ssb_block_write(dev->sdev, buffer, count, offset, reg_width);
63 b43_bus_bcma_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) argument
69 b43_bus_bcma_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
166 b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) argument
172 b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
H A Dbus.h34 size_t count, u16 offset, u8 reg_width);
36 size_t count, u16 offset, u8 reg_width);
/linux-master/drivers/sh/intc/
H A Dhandle.c73 fn += (mr->reg_width >> 3) - 1;
78 (mr->reg_width - 1) - *fld_idx);
137 fn += (pr->reg_width >> 3) - 1;
140 BUG_ON(n * pr->field_width > pr->reg_width);
142 bit = pr->reg_width - (n * pr->field_width);
194 fn += (mr->reg_width >> 3) - 1;
199 (mr->reg_width - 1) - j);
272 fn += (sr->reg_width >> 3) - 1;
274 BUG_ON((j + 1) * sr->field_width > sr->reg_width);
276 bit = sr->reg_width
[all...]
H A Dbalancing.c67 fn += (mr->reg_width >> 3) - 1;
72 (mr->reg_width - 1) - j);
/linux-master/drivers/tty/serial/8250/
H A D8250_dfl.c56 u32 reg_width; local
91 reg_width = FIELD_GET(DFHv1_PARAM_REG_LAYOUT_WIDTH, reg_layout);
92 switch (reg_width) {
102 return dev_err_probe(dev, -EINVAL, "unsupported reg-width %u\n", reg_width);
/linux-master/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 variable
100 \op i, (\reg_width * (i - \skip) + \base_reg_offset)(\base_reg)
/linux-master/drivers/ssb/
H A Dhost_soc.c42 size_t count, u16 offset, u8 reg_width)
50 switch (reg_width) {
115 size_t count, u16 offset, u8 reg_width)
123 switch (reg_width) {
41 ssb_host_soc_block_read(struct ssb_device *dev, void *buffer, size_t count, u16 offset, u8 reg_width) argument
114 ssb_host_soc_block_write(struct ssb_device *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
H A Dsdio.c298 size_t count, u16 offset, u8 reg_width)
313 switch (reg_width) {
337 bus->sdio_sbaddr >> 16, offset, reg_width, saved_count, error); local
405 size_t count, u16 offset, u8 reg_width)
419 switch (reg_width) {
443 bus->sdio_sbaddr >> 16, offset, reg_width, saved_count, error); local
297 ssb_sdio_block_read(struct ssb_device *dev, void *buffer, size_t count, u16 offset, u8 reg_width) argument
404 ssb_sdio_block_write(struct ssb_device *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
/linux-master/drivers/bcma/
H A Dhost_soc.c51 size_t count, u16 offset, u8 reg_width)
55 switch (reg_width) {
95 size_t count, u16 offset, u8 reg_width)
99 switch (reg_width) {
50 bcma_host_soc_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) argument
93 bcma_host_soc_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
H A Dhost_pci.c83 size_t count, u16 offset, u8 reg_width)
88 switch (reg_width) {
107 u16 offset, u8 reg_width)
112 switch (reg_width) {
82 bcma_host_pci_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) argument
105 bcma_host_pci_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_tmpl.h84 uint8_t reg_width; member in struct:qla27xx_fwdt_entry::__packed::__packed
98 uint8_t reg_width; member in struct:qla27xx_fwdt_entry::__packed::__packed
/linux-master/drivers/input/touchscreen/
H A Diqs7211.c481 int reg_width; member in struct:iqs7211_prop_desc
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; local
[all...]
/linux-master/drivers/dma/
H A Dat_hdmac.c1261 unsigned int reg_width; local
1288 reg_width = convert_buswidth(sconfig->dst_addr_width);
1289 ctrla |= FIELD_PREP(ATC_DST_WIDTH, reg_width);
1336 reg_width = convert_buswidth(sconfig->src_addr_width);
1337 ctrla |= FIELD_PREP(ATC_SRC_WIDTH, reg_width);
1374 len >> reg_width;
1406 atc_dma_cyclic_check_values(unsigned int reg_width, dma_addr_t buf_addr, argument
1409 if (period_len > (ATC_BTSIZE_MAX << reg_width))
1411 if (unlikely(period_len & ((1 << reg_width) - 1)))
1413 if (unlikely(buf_addr & ((1 << reg_width)
1426 atc_dma_cyclic_fill_desc(struct dma_chan *chan, struct at_desc *desc, unsigned int i, dma_addr_t buf_addr, unsigned int reg_width, size_t period_len, enum dma_transfer_direction direction) argument
1502 unsigned int reg_width; local
[all...]
/linux-master/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)
398 core->bus->ops->block_read(core, buffer, count, offset, reg_width);
402 u16 offset, u8 reg_width)
404 core->bus->ops->block_write(core, buffer, count, offset, reg_width);
395 bcma_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) argument
400 bcma_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
/linux-master/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)
603 dev->ops->block_read(dev, buffer, count, offset, reg_width);
607 size_t count, u16 offset, u8 reg_width)
609 dev->ops->block_write(dev, buffer, count, offset, reg_width);
600 ssb_block_read(struct ssb_device *dev, void *buffer, size_t count, u16 offset, u8 reg_width) argument
606 ssb_block_write(struct ssb_device *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
/linux-master/drivers/pwm/
H A Dpwm-mediatek.c122 u32 clkdiv = 0, cnt_period, cnt_duty, reg_width = PWMDWIDTH, local
159 reg_width = PWM45DWIDTH_FIXUP;
165 pwm_mediatek_writel(pc, pwm->hwpwm, reg_width, cnt_period);

Completed in 231 milliseconds

12