Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/
Dio.c122 u32 reg_start, u32 reg_size) in wl1251_set_partition() argument
129 reg_start, reg_size); in wl1251_set_partition()
133 if ((mem_size + reg_size) > HW_ACCESS_MEMORY_MAX_RANGE) { in wl1251_set_partition()
136 mem_size = HW_ACCESS_MEMORY_MAX_RANGE - reg_size; in wl1251_set_partition()
140 reg_start, reg_size); in wl1251_set_partition()
153 reg_start, reg_size); in wl1251_set_partition()
155 ((reg_start + reg_size) > mem_start)) { in wl1251_set_partition()
160 reg_size = mem_start - reg_start; in wl1251_set_partition()
164 reg_start, reg_size); in wl1251_set_partition()
170 partition[1].size = reg_size; in wl1251_set_partition()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/i2c/muxes/
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()
187 mux->data.reg_size = resource_size(res); in i2c_mux_reg_probe()
195 if (mux->data.reg_size != 4 && mux->data.reg_size != 2 && in i2c_mux_reg_probe()
196 mux->data.reg_size != 1) { in i2c_mux_reg_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Di2c.c399 int num, chunk_size, reg_size, i, j; in mlxsw_i2c_cmd() local
409 reg_size = mlxsw_i2c_get_reg_size(in_mbox); in mlxsw_i2c_cmd()
410 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd()
411 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd()
419 err = mlxsw_i2c_write(dev, reg_size, in_mbox, num, status); in mlxsw_i2c_cmd()
430 reg_size = MLXSW_I2C_MAX_DATA_SIZE; in mlxsw_i2c_cmd()
431 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd()
447 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd()
448 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd()
472 reg_size -= chunk_size; in mlxsw_i2c_cmd()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/aarch64/
Dget-reg-list.c167 const char *reg_size = NULL; in print_reg() local
174 reg_size = "KVM_REG_SIZE_U8"; in print_reg()
177 reg_size = "KVM_REG_SIZE_U16"; in print_reg()
180 reg_size = "KVM_REG_SIZE_U32"; in print_reg()
183 reg_size = "KVM_REG_SIZE_U64"; in print_reg()
186 reg_size = "KVM_REG_SIZE_U128"; in print_reg()
189 reg_size = "KVM_REG_SIZE_U256"; in print_reg()
192 reg_size = "KVM_REG_SIZE_U512"; in print_reg()
195 reg_size = "KVM_REG_SIZE_U1024"; in print_reg()
198 reg_size = "KVM_REG_SIZE_U2048"; in print_reg()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dad_sigma_delta.c399 unsigned int reg_size; in ad_sd_trigger_handler() local
402 reg_size = indio_dev->channels[0].scan_type.realbits + in ad_sd_trigger_handler()
404 reg_size = DIV_ROUND_UP(reg_size, 8); in ad_sd_trigger_handler()
411 switch (reg_size) { in ad_sd_trigger_handler()
415 ad_sd_read_reg_raw(sigma_delta, data_reg, reg_size, &data[0]); in ad_sd_trigger_handler()
420 ad_sd_read_reg_raw(sigma_delta, data_reg, reg_size, &data[1]); in ad_sd_trigger_handler()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Dintel_wopcm.c199 u32 reg_size = intel_uncore_read(uncore, GUC_WOPCM_SIZE); in __wopcm_regs_locked() local
201 if (!(reg_size & GUC_WOPCM_SIZE_LOCKED) || in __wopcm_regs_locked()
206 *guc_wopcm_size = reg_size & GUC_WOPCM_SIZE_MASK; in __wopcm_regs_locked()
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/
Dsensors.c28 __le32 reg_size; member
86 u32 reg_size; member
110 si->reg_size = le32_to_cpu(attr->reg_size); in scmi_sensor_attributes_get()
/kernel/linux/linux-5.10/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()
Dsprd-sc27xx-spi.c107 const void *reg, size_t reg_size, in sprd_pmic_spi_read() argument
116 if (reg_size != sizeof(u32) || val_size != sizeof(u32)) in sprd_pmic_spi_read()
/kernel/linux/linux-5.10/include/linux/platform_data/
Di2c-mux-reg.h37 resource_size_t reg_size; member
Dasoc-ti-mcbsp.h23 u8 reg_size; member
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dhal.c97 .reg_size = {
116 .reg_size = {
136 .reg_size = {
181 .reg_size = {
311 ring_num * srng_config->reg_size[HAL_SRNG_REG_GRP_R0]; in ath11k_hal_ce_dst_setup()
998 (ring_num * srng_config->reg_size[i]); in ath11k_hal_srng_setup()
1124 target_reg += srng_config->reg_size[HAL_HP_OFFSET_IN_REG_START] * in ath11k_hal_srng_update_shadow_config()
1205 s->reg_size[0] = HAL_REO2_RING_BASE_LSB(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath11k_hal_srng_create_config()
1206 s->reg_size[1] = HAL_REO2_RING_HP(ab) - HAL_REO1_RING_HP(ab); in ath11k_hal_srng_create_config()
1227 s->reg_size[0] = HAL_TCL2_RING_BASE_LSB(ab) - HAL_TCL1_RING_BASE_LSB(ab); in ath11k_hal_srng_create_config()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Dencx24j600-regmap.c262 const void *reg_buf, size_t reg_size, in regmap_encx24j600_read() argument
267 if (reg_size != 1) { in regmap_encx24j600_read()
268 pr_err("%s: reg=%02x reg_size=%zu\n", __func__, reg, reg_size); in regmap_encx24j600_read()

123