Home
last modified time | relevance | path

Searched refs:reg_size (Results 1 – 25 of 86) sorted by relevance

1234

/linux-6.1.9/drivers/net/wireless/ti/wl1251/
Dio.c122 u32 reg_start, u32 reg_size) in wl1251_set_partition() argument
135 reg_start, reg_size); in wl1251_set_partition()
139 if ((mem_size + reg_size) > HW_ACCESS_MEMORY_MAX_RANGE) { in wl1251_set_partition()
142 mem_size = HW_ACCESS_MEMORY_MAX_RANGE - reg_size; in wl1251_set_partition()
146 reg_start, reg_size); in wl1251_set_partition()
159 reg_start, reg_size); in wl1251_set_partition()
161 ((reg_start + reg_size) > mem_start)) { in wl1251_set_partition()
166 reg_size = mem_start - reg_start; in wl1251_set_partition()
170 reg_start, reg_size); in wl1251_set_partition()
176 partition->reg.size = reg_size; in wl1251_set_partition()
/linux-6.1.9/drivers/input/rmi4/
Drmi_f12.c86 if (item->reg_size > sizeof(buf)) { in rmi_f12_read_sensor_tuning()
89 sizeof(buf), item->reg_size); in rmi_f12_read_sensor_tuning()
94 item->reg_size); in rmi_f12_read_sensor_tuning()
260 control_size = min(item->reg_size, 3UL); in rmi_f12_write_control_regs()
440 data_offset += item->reg_size; in rmi_f12_probe()
446 data_offset += item->reg_size; in rmi_f12_probe()
449 sensor->attn_size += item->reg_size; in rmi_f12_probe()
454 data_offset += item->reg_size; in rmi_f12_probe()
458 data_offset += item->reg_size; in rmi_f12_probe()
462 data_offset += item->reg_size; in rmi_f12_probe()
[all …]
Drmi_driver.c645 int reg_size = struct_buf[offset]; in rmi_read_register_desc() local
648 if (reg_size == 0) { in rmi_read_register_desc()
649 reg_size = struct_buf[offset] | in rmi_read_register_desc()
654 if (reg_size == 0) { in rmi_read_register_desc()
655 reg_size = struct_buf[offset] | in rmi_read_register_desc()
663 item->reg_size = reg_size; in rmi_read_register_desc()
681 item->reg, item->reg_size, item->num_subpackets); in rmi_read_register_desc()
715 size += item->reg_size; in rmi_register_desc_calc_size()
/linux-6.1.9/drivers/base/regmap/
Dregmap-spmi.c17 const void *reg, size_t reg_size, in regmap_spmi_base_read() argument
23 BUG_ON(reg_size != 1); in regmap_spmi_base_read()
32 const void *reg, size_t reg_size, in regmap_spmi_base_gather_write() argument
39 BUG_ON(reg_size != 1); in regmap_spmi_base_gather_write()
106 const void *reg, size_t reg_size, in regmap_spmi_ext_read() argument
113 BUG_ON(reg_size != 2); in regmap_spmi_ext_read()
150 const void *reg, size_t reg_size, in regmap_spmi_ext_gather_write() argument
157 BUG_ON(reg_size != 2); in regmap_spmi_ext_gather_write()
Dregmap-i2c.c139 const void *reg, size_t reg_size, in regmap_i2c_gather_write() argument
155 xfer[0].len = reg_size; in regmap_i2c_gather_write()
173 const void *reg, size_t reg_size, in regmap_i2c_read() argument
183 xfer[0].len = reg_size; in regmap_i2c_read()
223 size_t reg_size, void *val, in regmap_i2c_smbus_i2c_read() argument
230 if (reg_size != 1 || val_size < 1) in regmap_i2c_smbus_i2c_read()
264 size_t reg_size, void *val, in regmap_i2c_smbus_i2c_read_reg16() argument
271 if (reg_size != 2) in regmap_i2c_smbus_i2c_read_reg16()
Dregmap-i3c.c25 const void *reg, size_t reg_size, in regmap_i3c_read() argument
33 xfers[0].len = reg_size; in regmap_i3c_read()
Dregmap-spi.c92 const void *reg, size_t reg_size, in regmap_spi_read() argument
98 return spi_write_then_read(spi, reg, reg_size, val, val_size); in regmap_spi_read()
/linux-6.1.9/tools/testing/selftests/arm64/abi/
Dsyscall-abi.c131 size_t reg_size = sve_vl; in check_z() local
139 uint8_t *in = &z_in[reg_size * i]; in check_z()
140 uint8_t *out = &z_out[reg_size * i]; in check_z()
148 if (memcmp(z_zero, out, reg_size) != 0) { in check_z()
164 if (reg_size > SVE_Z_SHARED_BYTES && in check_z()
166 reg_size - SVE_Z_SHARED_BYTES) != 0)) { in check_z()
190 size_t reg_size = sve_vq_from_vl(sve_vl) * 2; /* 1 bit per VL byte */ in check_p() local
199 for (i = 0; i < SVE_NUM_PREGS * reg_size; i++) in check_p()
237 size_t reg_size = sve_vq_from_vl(sve_vl) * 2; /* 1 bit per VL byte */ in check_ffr() local
249 for (i = 0; i < reg_size; i++) in check_ffr()
[all …]
/linux-6.1.9/arch/sparc/kernel/
Dauxio_32.c69 r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1; in auxio_probe()
70 auxio_register = of_ioremap(&r, 0, auxregs[0].reg_size, "auxio"); in auxio_probe()
133 r.end = regs.phys_addr + regs.reg_size - 1; in auxio_power_probe()
135 (u8 __iomem *)of_ioremap(&r, 0, regs.reg_size, "auxpower"); in auxio_power_probe()
/linux-6.1.9/drivers/i2c/muxes/
Di2c-mux-mlxcpld.c68 switch (mux->pdata.reg_size) { in mlxcpld_mux_reg_write()
80 msg.len = mux->pdata.reg_size + 1; in mlxcpld_mux_reg_write()
94 if (mux->pdata.reg_size == 1) in mlxcpld_mux_select_chan()
129 switch (pdata->reg_size) { in mlxcpld_mux_probe()
Di2c-mux-reg.c34 switch (mux->data.reg_size) { in i2c_mux_reg_set()
140 mux->data.reg_size = resource_size(&res); in i2c_mux_reg_probe_dt()
191 mux->data.reg_size = resource_size(res); in i2c_mux_reg_probe()
194 if (mux->data.reg_size != 4 && mux->data.reg_size != 2 && in i2c_mux_reg_probe()
195 mux->data.reg_size != 1) { in i2c_mux_reg_probe()
/linux-6.1.9/drivers/iio/adc/
Dad_sigma_delta.c442 unsigned int reg_size; in ad_sd_trigger_handler() local
445 reg_size = indio_dev->channels[0].scan_type.realbits + in ad_sd_trigger_handler()
447 reg_size = DIV_ROUND_UP(reg_size, 8); in ad_sd_trigger_handler()
456 transfer_size = reg_size + 1; in ad_sd_trigger_handler()
458 transfer_size = reg_size; in ad_sd_trigger_handler()
460 switch (reg_size) { in ad_sd_trigger_handler()
464 status_pos = reg_size; in ad_sd_trigger_handler()
473 status_pos = reg_size + 1; in ad_sd_trigger_handler()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Di2c.c415 int num, chunk_size, reg_size, i, j; in mlxsw_i2c_cmd() local
425 reg_size = mlxsw_i2c_get_reg_size(in_mbox); in mlxsw_i2c_cmd()
426 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd()
427 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd()
435 err = mlxsw_i2c_write(dev, reg_size, in_mbox, num, status); in mlxsw_i2c_cmd()
446 reg_size = MLXSW_I2C_MAX_DATA_SIZE; in mlxsw_i2c_cmd()
447 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd()
463 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd()
464 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd()
488 reg_size -= chunk_size; in mlxsw_i2c_cmd()
/linux-6.1.9/drivers/pinctrl/
Dpinctrl-mcp23s08_spi.c42 const void *reg, size_t reg_size, in mcp23sxx_spi_gather_write() argument
49 { .tx_buf = reg, .len = reg_size, }, in mcp23sxx_spi_gather_write()
60 static int mcp23sxx_spi_read(void *context, const void *reg, size_t reg_size, in mcp23sxx_spi_read() argument
67 if (reg_size != 1) in mcp23sxx_spi_read()
/linux-6.1.9/drivers/mtd/nand/raw/
Dmtk_nand.c121 u32 reg_size; member
199 poi = chip->oob_poi + (i + 1) * mtk_nand->fdm.reg_size; in oob_ptr()
203 poi = chip->oob_poi + i * mtk_nand->fdm.reg_size; in oob_ptr()
380 fmt |= mtk_nand->fdm.reg_size << PAGEFMT_FDM_SHIFT; in mtk_nfc_hw_runtime_config()
646 int size = chip->ecc.size + mtk_nand->fdm.reg_size; in mtk_nfc_sector_encode()
697 memcpy(mtk_oob_ptr(chip, i), oob_ptr(chip, i), fdm->reg_size); in mtk_nfc_format_subpage()
725 memcpy(mtk_oob_ptr(chip, i), oob_ptr(chip, i), fdm->reg_size); in mtk_nfc_format_page()
744 for (j = 0; j < fdm->reg_size; j++) in mtk_nfc_read_fdm()
764 vall |= (j < fdm->reg_size ? oobptr[j] : 0xff) in mtk_nfc_write_fdm()
767 valm |= (j < fdm->reg_size ? oobptr[j] : 0xff) in mtk_nfc_write_fdm()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Dget-reg-list.c234 const char *reg_size = NULL; in print_reg() local
241 reg_size = "KVM_REG_SIZE_U8"; in print_reg()
244 reg_size = "KVM_REG_SIZE_U16"; in print_reg()
247 reg_size = "KVM_REG_SIZE_U32"; in print_reg()
250 reg_size = "KVM_REG_SIZE_U64"; in print_reg()
253 reg_size = "KVM_REG_SIZE_U128"; in print_reg()
256 reg_size = "KVM_REG_SIZE_U256"; in print_reg()
259 reg_size = "KVM_REG_SIZE_U512"; in print_reg()
262 reg_size = "KVM_REG_SIZE_U1024"; in print_reg()
265 reg_size = "KVM_REG_SIZE_U2048"; in print_reg()
[all …]
/linux-6.1.9/drivers/irqchip/
Dirq-crossbar.c197 u32 max = 0, entry, reg_size; in crossbar_of_init() local
275 of_property_read_u32(node, "ti,reg-size", &reg_size); in crossbar_of_init()
277 switch (reg_size) { in crossbar_of_init()
303 reserved += reg_size; in crossbar_of_init()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dhal.c258 ring_num * srng_config->reg_size[HAL_SRNG_REG_GRP_R0]; in ath11k_hal_ce_dst_setup()
982 (ring_num * srng_config->reg_size[i]); in ath11k_hal_srng_setup()
1108 target_reg += srng_config->reg_size[HAL_HP_OFFSET_IN_REG_START] * in ath11k_hal_srng_update_shadow_config()
1189 s->reg_size[0] = HAL_REO2_RING_BASE_LSB(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath11k_hal_srng_create_config()
1190 s->reg_size[1] = HAL_REO2_RING_HP(ab) - HAL_REO1_RING_HP(ab); in ath11k_hal_srng_create_config()
1211 s->reg_size[0] = HAL_TCL2_RING_BASE_LSB(ab) - HAL_TCL1_RING_BASE_LSB(ab); in ath11k_hal_srng_create_config()
1212 s->reg_size[1] = HAL_TCL2_RING_HP - HAL_TCL1_RING_HP; in ath11k_hal_srng_create_config()
1225 s->reg_size[0] = HAL_SEQ_WCSS_UMAC_CE1_SRC_REG(ab) - in ath11k_hal_srng_create_config()
1227 s->reg_size[1] = HAL_SEQ_WCSS_UMAC_CE1_SRC_REG(ab) - in ath11k_hal_srng_create_config()
1233 s->reg_size[0] = HAL_SEQ_WCSS_UMAC_CE1_DST_REG(ab) - in ath11k_hal_srng_create_config()
[all …]
/linux-6.1.9/drivers/iio/pressure/
Dbmp280-spi.c32 size_t reg_size, void *val, size_t val_size) in bmp280_regmap_spi_read() argument
37 return spi_write_then_read(spi, reg, reg_size, val, val_size); in bmp280_regmap_spi_read()
/linux-6.1.9/drivers/gpu/drm/i915/
Dintel_wopcm.c200 u32 reg_size = intel_uncore_read(uncore, GUC_WOPCM_SIZE); in __wopcm_regs_locked() local
202 if (!(reg_size & GUC_WOPCM_SIZE_LOCKED) || in __wopcm_regs_locked()
207 *guc_wopcm_size = reg_size & GUC_WOPCM_SIZE_MASK; in __wopcm_regs_locked()
/linux-6.1.9/drivers/mfd/
Dmc13xxx-spi.c61 static int mc13xxx_spi_read(void *context, const void *reg, size_t reg_size, in mc13xxx_spi_read() argument
78 if (val_size != 3 || reg_size != 1) in mc13xxx_spi_read()
/linux-6.1.9/arch/sparc/include/asm/
Dopenprom.h196 unsigned int reg_size; /* How many bytes does this register take up? */ member
201 unsigned long reg_size; member
/linux-6.1.9/include/linux/platform_data/
Dmlxcpld.h25 u8 reg_size; member
Di2c-mux-reg.h37 resource_size_t reg_size; member
Dasoc-ti-mcbsp.h23 u8 reg_size; member

1234