| /drivers/spi/ |
| A D | iproc_qspi.c | 221 while (bytes) { in bspi_read_via_raf() 231 bytes -= 4; in bspi_read_via_raf() 240 bytes--; in bspi_read_via_raf() 260 while (bytes > 0) { in bspi_read() 274 bytes -= trans; in bspi_read() 359 while (bytes) { in mspi_exec() 369 bytes -= chunk; in mspi_exec() 382 bytes -= chunk; in mspi_exec() 439 uint bytes; in mspi_xfer() local 446 bytes = bitlen / 8; in mspi_xfer() [all …]
|
| A D | spi-qup.c | 362 unsigned int read_bytes = bytes; in __qup_spi_blsp_spi_read() 375 writel(bytes, priv->base + QUP_MX_INPUT_CNT); in __qup_spi_blsp_spi_read() 420 while (bytes) { in qup_spi_blsp_spi_read() 421 length = (bytes < MAX_COUNT_SIZE) ? bytes : MAX_COUNT_SIZE; in qup_spi_blsp_spi_read() 428 bytes -= length; in qup_spi_blsp_spi_read() 443 unsigned int write_len = bytes; in __qup_blsp_spi_write() 444 unsigned int read_len = bytes; in __qup_blsp_spi_write() 454 writel(bytes, priv->base + QUP_MX_INPUT_CNT); in __qup_blsp_spi_write() 533 while (bytes) { in qup_spi_blsp_spi_write() 534 length = (bytes < MAX_COUNT_SIZE) ? bytes : MAX_COUNT_SIZE; in qup_spi_blsp_spi_write() [all …]
|
| A D | ath79_spi.c | 65 u32 bytes = bitlen / 8; in ath79_spi_xfer() local 74 bytes++; in ath79_spi_xfer() 77 while (bytes > 0) { in ath79_spi_xfer() 78 bytes--; in ath79_spi_xfer() 83 if (restbits && !bytes) { in ath79_spi_xfer() 118 if (!bytes) in ath79_spi_xfer() 123 if (restbits && !bytes) in ath79_spi_xfer()
|
| A D | npcm_fiu_spi.c | 201 int bytes = bitlen / 8; in npcm_fiu_spi_xfer() local 208 while (bytes) { in npcm_fiu_spi_xfer() 209 len = (bytes > CHUNK_SIZE) ? CHUNK_SIZE : bytes; in npcm_fiu_spi_xfer() 221 bytes -= len; in npcm_fiu_spi_xfer() 319 u32 bytes, len, addr; in npcm_fiu_exec_op() local 325 bytes = op->data.nbytes; in npcm_fiu_exec_op() 327 if (!bytes) { in npcm_fiu_exec_op() 346 while (bytes) { in npcm_fiu_exec_op() 347 len = (bytes > CHUNK_SIZE) ? CHUNK_SIZE : bytes; in npcm_fiu_exec_op() 356 bytes -= len; in npcm_fiu_exec_op()
|
| A D | tegra20_slink.c | 257 int bytes; in tegra30_spi_xfer() local 262 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra30_spi_xfer() 265 for (i = 0; i < bytes; ++i) in tegra30_spi_xfer() 267 dout += bytes; in tegra30_spi_xfer() 270 num_bytes -= bytes; in tegra30_spi_xfer() 274 (bytes - 1) * 8 + overflow - 1); in tegra30_spi_xfer() 277 bytes * 8 - 1); in tegra30_spi_xfer() 305 for (i = bytes - 1; i >= 0; --i) { in tegra30_spi_xfer() 309 din += bytes; in tegra30_spi_xfer()
|
| A D | tegra210_qspi.c | 278 int bytes; in tegra210_qspi_xfer() local 281 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra210_qspi_xfer() 284 memcpy((void *)&tmpdout, (void *)dout, bytes); in tegra210_qspi_xfer() 285 dout += bytes; in tegra210_qspi_xfer() 286 num_bytes -= bytes; in tegra210_qspi_xfer() 299 (bytes * 8 - 1) << QSPI_CMD1_BITLEN_SHIFT); in tegra210_qspi_xfer() 351 memcpy(din, &tmpdin, bytes); in tegra210_qspi_xfer() 352 din += bytes; in tegra210_qspi_xfer() 353 num_bytes -= bytes; in tegra210_qspi_xfer()
|
| A D | tegra114_spi.c | 256 int bytes; in tegra114_spi_xfer() local 260 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra114_spi_xfer() 263 for (i = 0; i < bytes; ++i) in tegra114_spi_xfer() 265 dout += bytes; in tegra114_spi_xfer() 268 num_bytes -= bytes; in tegra114_spi_xfer() 275 (bytes * 8 - 1) << SPI_CMD1_BIT_LEN_SHIFT); in tegra114_spi_xfer() 318 for (i = bytes - 1; i >= 0; --i) { in tegra114_spi_xfer() 322 din += bytes; in tegra114_spi_xfer()
|
| A D | tegra20_sflash.c | 241 int bytes; in tegra20_sflash_xfer() local 246 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra20_sflash_xfer() 249 for (i = 0; i < bytes; ++i) in tegra20_sflash_xfer() 253 num_bytes -= bytes; in tegra20_sflash_xfer() 255 dout += bytes; in tegra20_sflash_xfer() 258 bytes * 8 - 1); in tegra20_sflash_xfer() 285 for (i = bytes - 1; i >= 0; --i) { in tegra20_sflash_xfer() 289 din += bytes; in tegra20_sflash_xfer()
|
| A D | adi_spi3.c | 399 uint bytes, uint32_t mio_mode) in adi_spi_fifo_mio_xfer() argument 413 while (bytes--) { in adi_spi_fifo_mio_xfer() 425 while (bytes--) { in adi_spi_fifo_mio_xfer() 445 uint bytes) in adi_spi_fifo_1x_xfer() argument 457 while (bytes--) { in adi_spi_fifo_1x_xfer() 473 const u8 *tx, u8 *rx, uint bytes) in adi_spi_fifo_xfer() argument 477 return adi_spi_fifo_1x_xfer(priv, tx, rx, bytes); in adi_spi_fifo_xfer() 479 return adi_spi_fifo_mio_xfer(priv, tx, rx, bytes, SPI_CTL_MIO_DUAL); in adi_spi_fifo_xfer() 496 uint bytes = bitlen / 8; in adi_spi_xfer() local 500 priv->bus_num, slave_plat->cs[0], bitlen, bytes, flags); in adi_spi_xfer() [all …]
|
| A D | altera_spi.c | 92 unsigned int bytes = bitlen / 8; in altera_spi_xfer() local 98 dev_seq(bus), slave_plat->cs[0], bitlen, bytes, flags); in altera_spi_xfer() 115 while (bytes--) { in altera_spi_xfer()
|
| /drivers/mtd/ubi/ |
| A D | upd.c | 83 long long bytes) in clear_update_marker() argument 96 vol->used_bytes = bytes; in clear_update_marker() 97 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker() 123 long long bytes) in ubi_start_update() argument 146 if (bytes == 0) { in ubi_start_update() 160 vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1, in ubi_start_update() 162 vol->upd_bytes = bytes; in ubi_start_update() 182 vol->vol_id, req->lnum, req->bytes); in ubi_start_leb_change() 183 if (req->bytes == 0) in ubi_start_leb_change() 186 vol->upd_bytes = req->bytes; in ubi_start_leb_change() [all …]
|
| /drivers/i2c/ |
| A D | qup_i2c.c | 261 bool last, u8 *buffer, unsigned int bytes) in qup_i2c_blsp_read() argument 271 bytes + READ_RX_TAGS_LEN); in qup_i2c_blsp_read() 276 bytes << 24); in qup_i2c_blsp_read() 279 QUP_TAG_V2_DATARD << 16 | bytes << 24); in qup_i2c_blsp_read() 297 if (bytes > 1) in qup_i2c_blsp_read() 300 for (i = 2; i < bytes; i += 4) { in qup_i2c_blsp_read() 304 if ((i + j) == bytes) in qup_i2c_blsp_read() 317 unsigned int bytes) in qup_i2c_blsp_write() argument 344 bytes << 24); in qup_i2c_blsp_write() 347 QUP_TAG_V2_DATAWR << 16 | bytes << 24); in qup_i2c_blsp_write() [all …]
|
| /drivers/block/ |
| A D | blkcache.c | 79 lbaint_t bytes; in blkcache_fill() local 89 bytes = blksz * blkcnt; in blkcache_fill() 97 if (node->blkcnt * node->blksz < bytes) { in blkcache_fill() 109 node->cache = malloc(bytes); in blkcache_fill() 124 memcpy(node->cache, buffer, bytes); in blkcache_fill()
|
| /drivers/mtd/nand/raw/ |
| A D | omap_gpmc.c | 420 for (i = 0; i < chip->ecc.bytes; i++) in omap_calculate_ecc_bch() 426 ecc_code[chip->ecc.bytes - 1] = 0x0; in omap_calculate_ecc_bch() 612 for (i = 0; i < ecc->bytes; i++) { in omap_correct_data_bch() 632 for (i = 0; i < ecc->bytes; i++) in omap_correct_data_bch() 639 memset(read_ecc, 0xFF, ecc->bytes); in omap_correct_data_bch() 712 int eccbytes = chip->ecc.bytes; in omap_read_page_bch() 870 nand->ecc.bytes = 3; in omap_select_ecc_scheme() 907 nand->ecc.bytes = 13; in omap_select_ecc_scheme() 916 if (i % nand->ecc.bytes) in omap_select_ecc_scheme() 949 nand->ecc.bytes = 14; in omap_select_ecc_scheme() [all …]
|
| A D | mxc_nand.c | 408 bufpoi += chip->ecc.bytes; 410 length -= chip->ecc.bytes; 446 int eccbytes = chip->ecc.bytes; 491 int eccbytes = chip->ecc.bytes; 741 uint8_t bytes[2]; member 794 uint8_t bytes[2]; member 800 nfc_word[2].bytes[0] = nfc_word[0].bytes[1]; 801 nfc_word[2].bytes[1] = nfc_word[1].bytes[0]; 856 uint8_t bytes[4]; member 922 uint8_t bytes[4]; member [all …]
|
| A D | sunxi_nand.c | 846 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_read_chunk() 881 oob, ecc->bytes + 4, in sunxi_nfc_hw_ecc_read_chunk() 985 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_write_chunk() 1024 int oob_off = i * (ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_page() 1062 int oob_off = i * (ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_subpage() 1090 int oob_off = i * (ecc->bytes + 4); in sunxi_nfc_hw_ecc_write_page() 1441 ecc->bytes = ALIGN(ecc->bytes, 2); in sunxi_nand_hw_common_ecc_ctrl_init() 1495 ecc->bytes; in sunxi_nand_hw_ecc_ctrl_init() 1507 for (j = 0; j < ecc->bytes; j++) in sunxi_nand_hw_ecc_ctrl_init() 1517 ecc->bytes; in sunxi_nand_hw_ecc_ctrl_init() [all …]
|
| A D | nand_bch.c | 50 memset(code, 0, chip->ecc.bytes); in nand_bch_calculate_ecc() 54 for (i = 0; i < chip->ecc.bytes; i++) in nand_bch_calculate_ecc() 120 unsigned int eccbytes = nand->ecc.bytes; in nand_bch_init() 125 nand->ecc.bytes = eccbytes; in nand_bch_init()
|
| A D | nand_base.c | 2255 size_t bytes = 0; in nand_transfer_oob() local 2273 oob += bytes; in nand_transfer_oob() 2447 buf += bytes; in nand_do_read_ops() 2450 buf += bytes; in nand_do_read_ops() 2455 readlen -= bytes; in nand_do_read_ops() 3179 oob += bytes; in nand_fill_oob() 3270 bytes = min_t(int, bytes - column, writelen); in nand_do_write_ops() 3296 buf += bytes; in nand_do_write_ops() 5067 ecc->bytes = 3; in nand_scan_tail() 5096 ecc->bytes = 0; in nand_scan_tail() [all …]
|
| A D | cortina_nand.c | 556 printf("pdata[%x]:%x =>", ((i / chip->ecc.bytes) * in ca_do_bch_correction() 570 printf("pdata[%x]:%x =>", ((i / chip->ecc.bytes) * in ca_do_bch_correction() 601 i += chip->ecc.bytes, eccsteps--) { in ca_do_bch_decode() 602 ecc_end_pos = ecc_code + chip->ecc.bytes; in ca_do_bch_decode() 604 for (j = 0, k = 0; j < chip->ecc.bytes; j += 4, k++) { in ca_do_bch_decode() 626 step = i / chip->ecc.bytes; in ca_do_bch_decode() 652 chip->ecc.bytes, in ca_do_bch_decode() 693 i += chip->ecc.bytes, eccsteps--, n++) { in ca_do_bch_encode() 695 for (j = 0; j < chip->ecc.bytes; j += 4, gen_index++) { in ca_do_bch_encode() 1255 pr_err("oob_sz: %d\n", nand->ecc.bytes); in nand_config_oob_layout() [all …]
|
| /drivers/mtd/spi/ |
| A D | sandbox.c | 322 int bytes = bitlen / 8; in sandbox_sf_xfer() local 326 sandbox_sf_state_name(sbsf->state), bytes); in sandbox_sf_xfer() 340 while (pos < bytes) { in sandbox_sf_xfer() 403 cnt = bytes - pos; in sandbox_sf_xfer() 415 cnt = bytes - pos; in sandbox_sf_xfer() 421 cnt = bytes - pos; in sandbox_sf_xfer() 427 pos = bytes; in sandbox_sf_xfer() 441 cnt = bytes - pos; in sandbox_sf_xfer() 472 cnt = bytes - pos; in sandbox_sf_xfer() 498 return pos == bytes ? 0 : -EIO; in sandbox_sf_xfer()
|
| /drivers/rtc/ |
| A D | abx80x.c | 126 u8 *val, unsigned int bytes, bool write) in abx80x_rtc_xfer() argument 130 if (offset + bytes > ABX8XX_RAM_SIZE) in abx80x_rtc_xfer() 133 while (bytes) { in abx80x_rtc_xfer() 140 len = min(lower + bytes, ABX8XX_SRAM_WIN_SIZE) - lower; in abx80x_rtc_xfer() 155 bytes -= len; in abx80x_rtc_xfer() 162 unsigned int bytes) in abx80x_rtc_read() argument 164 return abx80x_rtc_xfer(dev, offset, val, bytes, false); in abx80x_rtc_read() 168 const u8 *val, unsigned int bytes) in abx80x_rtc_write() argument 170 return abx80x_rtc_xfer(dev, offset, (u8 *)val, bytes, true); in abx80x_rtc_write()
|
| /drivers/w1-eeprom/ |
| A D | Kconfig | 26 This device has 128 bytes of data memory, organized as 4 pages of 27 32 bytes and 8 out of band status bytes that may be used to redirect
|
| /drivers/usb/isp1760/ |
| A D | isp1760-hcd.c | 394 bytes -= 4; in bank_reads8() 401 bytes -= 4; in bank_reads8() 407 if (!bytes) in bank_reads8() 424 bytes--; in bank_reads8() 457 bytes -= 2; in isp1763_mem_read() 462 if (bytes <= 0) in isp1763_mem_read() 489 bytes -= 4; in isp1760_mem_write() 496 bytes -= 4; in isp1760_mem_write() 502 if (!bytes) in isp1760_mem_write() 526 bytes -= 2; in isp1763_mem_write() [all …]
|
| /drivers/firmware/arm-ffa/ |
| A D | arm-ffa-uclass.c | 359 u64 bytes; in ffa_alloc_rxtx_buffers() local 365 bytes = uc_priv->pair.rxtx_min_pages * SZ_4K; in ffa_alloc_rxtx_buffers() 373 uc_priv->pair.rxbuf = memalign(bytes, bytes); in ffa_alloc_rxtx_buffers() 381 uc_priv->pair.txbuf = memalign(bytes, bytes); in ffa_alloc_rxtx_buffers() 392 memset(uc_priv->pair.rxbuf, 0, bytes); in ffa_alloc_rxtx_buffers() 393 memset(uc_priv->pair.txbuf, 0, bytes); in ffa_alloc_rxtx_buffers()
|
| /drivers/pci/ |
| A D | pcie_mediatek_gen3.c | 37 #define PCIE_CFG_BYTE_EN(bytes) (((bytes) << 16) & GENMASK(19, 16)) argument 113 int bytes; in mtk_pcie_config_tlp_header() local 119 bytes = (GENMASK(size - 1, 0) & 0xf) << (where & 0x3); in mtk_pcie_config_tlp_header() 121 val = PCIE_CFG_FORCE_BYTE_EN | PCIE_CFG_BYTE_EN(bytes) | in mtk_pcie_config_tlp_header()
|