Home
last modified time | relevance | path

Searched refs:reg_len (Results 1 – 24 of 24) sorted by relevance

/drivers/base/regmap/
Dregmap-spi.c37 const void *reg, size_t reg_len, in regmap_spi_gather_write() argument
43 struct spi_transfer t[2] = { { .tx_buf = reg, .len = reg_len, }, in regmap_spi_gather_write()
54 const void *reg, size_t reg_len, in regmap_spi_async_write() argument
65 async->t[0].len = reg_len; in regmap_spi_async_write()
Dregmap-spi-avmm.c585 const void *reg_buf, size_t reg_len, in regmap_spi_avmm_gather_write() argument
588 if (reg_len != SPI_AVMM_REG_SIZE) in regmap_spi_avmm_gather_write()
609 const void *reg_buf, size_t reg_len, in regmap_spi_avmm_read() argument
612 if (reg_len != SPI_AVMM_REG_SIZE) in regmap_spi_avmm_read()
Dregmap-debugfs.c437 int i, reg_len; in regmap_access_show() local
439 reg_len = regmap_calc_reg_len(map->max_register); in regmap_access_show()
447 seq_printf(s, "%.*x: %c %c %c %c\n", reg_len, i, in regmap_access_show()
/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-regmap.c25 const void *reg, size_t reg_len, in mcp251xfd_regmap_nocrc_gather_write() argument
41 reg_len != sizeof(buf_tx->cmd.cmd)) in mcp251xfd_regmap_nocrc_gather_write()
140 const void *reg, size_t reg_len, in mcp251xfd_regmap_nocrc_read() argument
155 reg_len != sizeof(buf_tx->cmd.cmd)) in mcp251xfd_regmap_nocrc_read()
190 const void *reg_p, size_t reg_len, in mcp251xfd_regmap_crc_gather_write() argument
209 reg_len != sizeof(buf_tx->cmd.cmd) + in mcp251xfd_regmap_crc_gather_write()
274 const void *reg_p, size_t reg_len, in mcp251xfd_regmap_crc_read() argument
290 reg_len != sizeof(buf_tx->cmd.cmd) + in mcp251xfd_regmap_crc_read()
/drivers/media/i2c/ccs/
Dccs-data-defs.h76 u8 reg_len; member
91 u8 reg_len; member
100 u8 reg_len; member
Dccs-data.c235 switch (r->reg_len >> CCS_DATA_BLOCK_REGS_SEL_SHIFT) { in ccs_data_parse_regs()
237 addr += r->reg_len & CCS_DATA_BLOCK_REGS_ADDR_MASK; in ccs_data_parse_regs()
238 len = ((r->reg_len & CCS_DATA_BLOCK_REGS_LEN_MASK) in ccs_data_parse_regs()
252 addr += ((u16)(r2->reg_len & in ccs_data_parse_regs()
255 len = ((r2->reg_len & CCS_DATA_BLOCK_REGS_2_LEN_MASK) in ccs_data_parse_regs()
271 len = (r3->reg_len & CCS_DATA_BLOCK_REGS_3_LEN_MASK) + 1; in ccs_data_parse_regs()
/drivers/gpio/
Dgpio-creg-snps.c84 u32 reg_len = 0; in creg_gpio_validate() local
99 reg_len += hcg->layout->shift[i] + hcg->layout->bit_per_gpio[i]; in creg_gpio_validate()
103 if (reg_len > 32) in creg_gpio_validate()
/drivers/hwmon/
Dltc2992.c187 static int ltc2992_read_reg(struct ltc2992_state *st, u8 addr, const u8 reg_len) in ltc2992_read_reg() argument
194 ret = regmap_bulk_read(st->regmap, addr, regvals, reg_len); in ltc2992_read_reg()
199 for (i = 0; i < reg_len; i++) in ltc2992_read_reg()
200 val |= regvals[reg_len - i - 1] << (i * 8); in ltc2992_read_reg()
205 static int ltc2992_write_reg(struct ltc2992_state *st, u8 addr, const u8 reg_len, u32 val) in ltc2992_write_reg() argument
210 for (i = 0; i < reg_len; i++) in ltc2992_write_reg()
211 regvals[reg_len - i - 1] = (val >> (i * 8)) & 0xFF; in ltc2992_write_reg()
213 return regmap_bulk_write(st->regmap, addr, regvals, reg_len); in ltc2992_write_reg()
/drivers/net/can/m_can/
Dtcan4x5x-regmap.c18 const void *reg, size_t reg_len, in tcan4x5x_regmap_gather_write() argument
47 const void *reg_buf, size_t reg_len, in tcan4x5x_regmap_read() argument
/drivers/bus/mhi/host/
Dinit.c520 if (val >= mhi_cntrl->reg_len - (8 * MHI_DEV_WAKE_DB)) { in mhi_init_mmio()
522 val, mhi_cntrl->reg_len - (8 * MHI_DEV_WAKE_DB)); in mhi_init_mmio()
543 if (val >= mhi_cntrl->reg_len - (8 * mhi_cntrl->total_ev_rings)) { in mhi_init_mmio()
545 val, mhi_cntrl->reg_len - (8 * mhi_cntrl->total_ev_rings)); in mhi_init_mmio()
905 !mhi_cntrl->irq || !mhi_cntrl->reg_len) in mhi_register_controller()
1098 if (bhi_off >= mhi_cntrl->reg_len) { in mhi_prepare_for_power_up()
1100 bhi_off, mhi_cntrl->reg_len); in mhi_prepare_for_power_up()
1114 if (bhie_off >= mhi_cntrl->reg_len) { in mhi_prepare_for_power_up()
1117 bhie_off, mhi_cntrl->reg_len); in mhi_prepare_for_power_up()
Dpci_generic.c612 mhi_cntrl->reg_len = pci_resource_len(pdev, bar_num); in mhi_pci_claim()
/drivers/net/wireless/ath/ath6kl/
Ddebug.c942 unsigned long int reg_len; in ath6kl_regdump_open() local
954 reg_len = n_reg * REG_OUTPUT_LEN_PER_LINE; in ath6kl_regdump_open()
956 reg_len += REGTYPE_STR_LEN; in ath6kl_regdump_open()
958 buf = vmalloc(reg_len); in ath6kl_regdump_open()
971 len += scnprintf(buf + len, reg_len - len, in ath6kl_regdump_open()
977 len += scnprintf(buf + len, reg_len - len, in ath6kl_regdump_open()
987 len += scnprintf(buf + len, reg_len - len, in ath6kl_regdump_open()
/drivers/ata/
Dpata_octeon_cf.c841 int n_addr, n_size, reg_len; in octeon_cf_probe() local
872 reg_prop = of_find_property(node, "reg", &reg_len); in octeon_cf_probe()
873 if (!reg_prop || reg_len < sizeof(__be32)) in octeon_cf_probe()
921 if (reg_len < (n_addr + n_size + 1) * sizeof(__be32)) in octeon_cf_probe()
/drivers/net/dsa/microchip/
Dksz8863_smi.c22 static int ksz8863_mdio_read(void *ctx, const void *reg_buf, size_t reg_len, in ksz8863_mdio_read() argument
/drivers/net/wireless/ath/ath11k/
Dmhi.c333 mhi_ctrl->reg_len = ab->mem_len; in ath11k_mhi_register()
/drivers/net/ethernet/mellanox/mlx4/
Dfw.c2917 u16 reg_len, void *reg_data) in mlx4_ACCESS_REG() argument
2941 reg_len = min(reg_len, (u16)(sizeof(inbuf->reg_data))); in mlx4_ACCESS_REG()
2943 cpu_to_be16(((reg_len/4 + 1) & MLX4_ACCESS_REG_LEN_MASK) | in mlx4_ACCESS_REG()
2946 memcpy(inbuf->reg_data, reg_data, reg_len); in mlx4_ACCESS_REG()
2961 memcpy(reg_data, outbuf->reg_data, reg_len); in mlx4_ACCESS_REG()
/drivers/net/ethernet/amd/
Damd8111e.c1743 unsigned long reg_addr, reg_len; in amd8111e_probe_one() local
1782 reg_len = pci_resource_len(pdev, 0); in amd8111e_probe_one()
1803 lp->mmio = devm_ioremap(&pdev->dev, reg_addr, reg_len); in amd8111e_probe_one()
/drivers/media/dvb-frontends/
Drtl2830.c743 size_t reg_len, const void *val, in rtl2830_regmap_gather_write() argument
/drivers/net/ethernet/micrel/
Dksz884x.c6841 unsigned long reg_len; in pcidev_init() local
6862 reg_len = pci_resource_len(pdev, 0); in pcidev_init()
6866 if (!request_mem_region(reg_base, reg_len, DRV_NAME)) in pcidev_init()
6881 hw->io = ioremap(reg_base, reg_len); in pcidev_init()
7005 dev->mem_end = dev->mem_start + reg_len - 1; in pcidev_init()
7052 release_mem_region(reg_base, reg_len); in pcidev_init()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1350 int reg_len; in bnxt_get_regs_len() local
1355 reg_len = BNXT_PXP_REG_LEN; in bnxt_get_regs_len()
1358 reg_len += sizeof(struct pcie_ctx_hw_stats); in bnxt_get_regs_len()
1360 return reg_len; in bnxt_get_regs_len()
/drivers/net/dsa/qca/
Dar9331.c862 static int ar9331_mdio_read(void *ctx, const void *reg_buf, size_t reg_len, in ar9331_mdio_read() argument
/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c809 u16 reg_len, bool enable_string_tlv) in mlxsw_emad_alloc() argument
814 emad_len = (reg_len + sizeof(u32) + MLXSW_EMAD_ETH_HDR_LEN + in mlxsw_emad_alloc()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c480 void *reg, unsigned int reg_len, in xgbe_phy_i2c_read() argument
491 i2c_op.len = reg_len; in xgbe_phy_i2c_read()
/drivers/infiniband/hw/mlx4/
Dqp.c3281 fseg->reg_len = cpu_to_be64(mr->ibmr.length); in set_reg_seg()