/drivers/net/wireless/ti/wl1251/ |
D | io.c | 122 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()
|
/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/gpu/drm/loongson/ |
D | loongson_device.c | 44 .reg_size = 8, 49 .reg_size = 8, 53 .reg_size = 8, 76 .reg_size = 8, 81 .reg_size = 8, 85 .reg_size = 8,
|
D | lsdc_gfxpll.c | 157 this->mmio = ioremap(this->reg_base, this->reg_size); in loongson_gfxpll_init() 186 this->reg_size = gfx->gfxpll.reg_size; in loongson_gfxpll_create()
|
/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-sdw.c | 24 const void *reg_buf, size_t reg_size, in regmap_sdw_gather_write() argument 35 const void *reg_buf, size_t reg_size, in regmap_sdw_read() argument
|
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/virt/geniezone/ |
D | gzvm_vcpu.c | 69 u64 reg_size; in gzvm_vcpu_update_one_reg() local 76 reg_size = (reg.id & GZVM_REG_SIZE_MASK) >> GZVM_REG_SIZE_SHIFT; in gzvm_vcpu_update_one_reg() 77 reg_size = BIT(reg_size); in gzvm_vcpu_update_one_reg() 79 if (reg_size != 1 && reg_size != 2 && reg_size != 4 && reg_size != 8) in gzvm_vcpu_update_one_reg() 84 if (copy_from_user(&data, reg_addr, reg_size)) in gzvm_vcpu_update_one_reg()
|
/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()
|
D | i2c-mux-mlxcpld.c | 68 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()
|
/drivers/iio/adc/ |
D | ad_sigma_delta.c | 442 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()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | i2c.c | 416 int num, chunk_size, reg_size, i, j; in mlxsw_i2c_cmd() local 426 reg_size = mlxsw_i2c_get_reg_size(in_mbox); in mlxsw_i2c_cmd() 427 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd() 428 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd() 436 err = mlxsw_i2c_write(dev, reg_size, in_mbox, num, status); in mlxsw_i2c_cmd() 447 reg_size = MLXSW_I2C_MAX_DATA_SIZE; in mlxsw_i2c_cmd() 448 num = DIV_ROUND_UP(reg_size, mlxsw_i2c->block_size); in mlxsw_i2c_cmd() 464 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd() 465 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd() 489 reg_size -= chunk_size; in mlxsw_i2c_cmd()
|
/drivers/net/wireless/ath/ath12k/ |
D | hal.c | 533 s->reg_size[0] = HAL_REO2_RING_BASE_LSB(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath12k_hal_srng_create_config_qcn9274() 534 s->reg_size[1] = HAL_REO2_RING_HP - HAL_REO1_RING_HP; in ath12k_hal_srng_create_config_qcn9274() 543 s->reg_size[0] = HAL_SW2REO1_RING_BASE_LSB(ab) - HAL_SW2REO_RING_BASE_LSB(ab); in ath12k_hal_srng_create_config_qcn9274() 544 s->reg_size[1] = HAL_SW2REO1_RING_HP - HAL_SW2REO_RING_HP; in ath12k_hal_srng_create_config_qcn9274() 557 s->reg_size[0] = HAL_TCL2_RING_BASE_LSB - HAL_TCL1_RING_BASE_LSB; in ath12k_hal_srng_create_config_qcn9274() 558 s->reg_size[1] = HAL_TCL2_RING_HP - HAL_TCL1_RING_HP; in ath12k_hal_srng_create_config_qcn9274() 571 s->reg_size[0] = HAL_SEQ_WCSS_UMAC_CE1_SRC_REG - in ath12k_hal_srng_create_config_qcn9274() 573 s->reg_size[1] = HAL_SEQ_WCSS_UMAC_CE1_SRC_REG - in ath12k_hal_srng_create_config_qcn9274() 579 s->reg_size[0] = HAL_SEQ_WCSS_UMAC_CE1_DST_REG - in ath12k_hal_srng_create_config_qcn9274() 581 s->reg_size[1] = HAL_SEQ_WCSS_UMAC_CE1_DST_REG - in ath12k_hal_srng_create_config_qcn9274() [all …]
|
/drivers/mfd/ |
D | rk8xx-spi.c | 63 static int rk806_spi_bus_read(void *context, const void *vreg, size_t reg_size, in rk806_spi_bus_read() argument 70 if (reg_size != RK806_ADDR_SIZE || in rk806_spi_bus_read() 76 memcpy(txbuf+1, vreg, reg_size); in rk806_spi_bus_read()
|
D | mc13xxx-spi.c | 60 static int mc13xxx_spi_read(void *context, const void *reg, size_t reg_size, in mc13xxx_spi_read() argument 77 if (val_size != 3 || reg_size != 1) in mc13xxx_spi_read()
|
/drivers/mtd/nand/raw/ |
D | mtk_nand.c | 120 u32 reg_size; member 198 poi = chip->oob_poi + (i + 1) * mtk_nand->fdm.reg_size; in oob_ptr() 202 poi = chip->oob_poi + i * mtk_nand->fdm.reg_size; in oob_ptr() 379 fmt |= mtk_nand->fdm.reg_size << PAGEFMT_FDM_SHIFT; in mtk_nfc_hw_runtime_config() 645 int size = chip->ecc.size + mtk_nand->fdm.reg_size; in mtk_nfc_sector_encode() 696 memcpy(mtk_oob_ptr(chip, i), oob_ptr(chip, i), fdm->reg_size); in mtk_nfc_format_subpage() 724 memcpy(mtk_oob_ptr(chip, i), oob_ptr(chip, i), fdm->reg_size); in mtk_nfc_format_page() 743 for (j = 0; j < fdm->reg_size; j++) in mtk_nfc_read_fdm() 763 vall |= (j < fdm->reg_size ? oobptr[j] : 0xff) in mtk_nfc_write_fdm() 766 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/net/wireless/ath/ath11k/ |
D | hal.c | 258 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() 1227 s->reg_size[0] = HAL_SEQ_WCSS_UMAC_CE1_SRC_REG(ab) - in ath11k_hal_srng_create_config() 1229 s->reg_size[1] = HAL_SEQ_WCSS_UMAC_CE1_SRC_REG(ab) - in ath11k_hal_srng_create_config() 1237 s->reg_size[0] = HAL_SEQ_WCSS_UMAC_CE1_DST_REG(ab) - in ath11k_hal_srng_create_config() [all …]
|
/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/gt/ |
D | intel_wopcm.c | 204 u32 reg_size = intel_uncore_read(uncore, GUC_WOPCM_SIZE); in __wopcm_regs_locked() local 206 if (!(reg_size & GUC_WOPCM_SIZE_LOCKED) || in __wopcm_regs_locked() 211 *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/iommu/intel/ |
D | dmar.c | 431 dmaru->reg_size = 1UL << (drhd->size + 12); in dmar_parse_one_drhd() 955 release_mem_region(iommu->reg_phys, iommu->reg_size); in unmap_iommu() 972 iommu->reg_size = drhd->reg_size; in map_iommu() 974 if (!request_mem_region(iommu->reg_phys, iommu->reg_size, iommu->name)) { in map_iommu() 980 iommu->reg = ioremap(iommu->reg_phys, iommu->reg_size); in map_iommu() 1000 if (map_size > iommu->reg_size) { in map_iommu() 1002 release_mem_region(iommu->reg_phys, iommu->reg_size); in map_iommu() 1003 iommu->reg_size = map_size; in map_iommu() 1004 if (!request_mem_region(iommu->reg_phys, iommu->reg_size, in map_iommu() 1010 iommu->reg = ioremap(iommu->reg_phys, iommu->reg_size); in map_iommu() [all …]
|