/drivers/net/wireless/ti/wl1251/ |
D | io.c | 122 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()
|
/drivers/input/rmi4/ |
D | rmi_f12.c | 86 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 …]
|
D | rmi_driver.c | 645 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()
|
/drivers/base/regmap/ |
D | regmap-spmi.c | 17 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()
|
D | regmap-i2c.c | 139 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()
|
D | regmap-i3c.c | 25 const void *reg, size_t reg_size, in regmap_i3c_read() argument 33 xfers[0].len = reg_size; in regmap_i3c_read()
|
D | regmap-spi.c | 92 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()
|
/drivers/i2c/muxes/ |
D | i2c-mux-reg.c | 34 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()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | i2c.c | 400 int num, chunk_size, reg_size, i, j; in mlxsw_i2c_cmd() local 410 reg_size = mlxsw_i2c_get_reg_size(in_mbox); in mlxsw_i2c_cmd() 411 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd() 412 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd() 420 err = mlxsw_i2c_write(dev, reg_size, in_mbox, num, status); in mlxsw_i2c_cmd() 431 reg_size = MLXSW_I2C_MAX_DATA_SIZE; in mlxsw_i2c_cmd() 432 num = DIV_ROUND_UP(reg_size, mlxsw_i2c->block_size); in mlxsw_i2c_cmd() 448 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd() 449 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd() 473 reg_size -= chunk_size; in mlxsw_i2c_cmd()
|
/drivers/iio/adc/ |
D | ad_sigma_delta.c | 399 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()
|
/drivers/mtd/nand/raw/ |
D | mtk_nand.c | 121 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 …]
|
/drivers/pinctrl/ |
D | pinctrl-mcp23s08_spi.c | 42 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()
|
/drivers/irqchip/ |
D | irq-crossbar.c | 197 u32 max = 0, entry, reg_size; in crossbar_of_init() local 275 of_property_read_u32(node, "ti,reg-size", ®_size); in crossbar_of_init() 277 switch (reg_size) { in crossbar_of_init() 303 reserved += reg_size; in crossbar_of_init()
|
/drivers/gpu/drm/i915/ |
D | intel_wopcm.c | 199 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()
|
/drivers/iio/pressure/ |
D | bmp280-spi.c | 32 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()
|
/drivers/net/wireless/ath/ath11k/ |
D | hal.c | 97 .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 …]
|
/drivers/mfd/ |
D | mc13xxx-spi.c | 61 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()
|
D | sprd-sc27xx-spi.c | 107 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()
|
D | retu-mfd.c | 189 static int retu_regmap_read(void *context, const void *reg, size_t reg_size, in retu_regmap_read() argument 196 BUG_ON(reg_size != 1 || val_size != 2); in retu_regmap_read()
|
/drivers/gpu/drm/hisilicon/kirin/ |
D | kirin_drm_ade.c | 350 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_dump_regs() local 355 reg_size = RD_CH_SIZE(ch); in ade_rdma_dump_regs() 366 val = readl(base + reg_size); in ade_rdma_dump_regs() 553 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_set() local 566 reg_size = RD_CH_SIZE(ch); in ade_rdma_set() 576 writel((in_h << 16) | stride, base + reg_size); in ade_rdma_set()
|
/drivers/iommu/intel/ |
D | dmar.c | 951 release_mem_region(iommu->reg_phys, iommu->reg_size); in unmap_iommu() 967 iommu->reg_size = VTD_PAGE_SIZE; in map_iommu() 969 if (!request_mem_region(iommu->reg_phys, iommu->reg_size, iommu->name)) { in map_iommu() 975 iommu->reg = ioremap(iommu->reg_phys, iommu->reg_size); in map_iommu() 997 if (map_size > iommu->reg_size) { in map_iommu() 999 release_mem_region(iommu->reg_phys, iommu->reg_size); in map_iommu() 1000 iommu->reg_size = map_size; in map_iommu() 1001 if (!request_mem_region(iommu->reg_phys, iommu->reg_size, in map_iommu() 1007 iommu->reg = ioremap(iommu->reg_phys, iommu->reg_size); in map_iommu() 1020 release_mem_region(iommu->reg_phys, iommu->reg_size); in map_iommu()
|
/drivers/net/ethernet/microchip/ |
D | encx24j600-regmap.c | 262 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()
|
/drivers/media/pci/solo6x10/ |
D | solo6x10-disp.c | 164 u16 val, int reg_size) in solo_dma_vin_region() argument 177 for (i = 0; i < reg_size; i += size) { in solo_dma_vin_region()
|
/drivers/rtc/ |
D | rtc-pcf2127.c | 716 const void *reg, size_t reg_size, in pcf2127_i2c_gather_write() argument 724 if (WARN_ON(reg_size != 1)) in pcf2127_i2c_gather_write() 744 static int pcf2127_i2c_read(void *context, const void *reg, size_t reg_size, in pcf2127_i2c_read() argument 751 if (WARN_ON(reg_size != 1)) in pcf2127_i2c_read()
|
/drivers/tty/serial/ |
D | apbuart.h | 19 unsigned int reg_size; member
|