Home
last modified time | relevance | path

Searched refs:writelen (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/mtd/devices/
H A Dmtd_dataflash.c306 unsigned int pageaddr, addr, offset, writelen; in dataflash_write() local
324 writelen = priv->page_size - offset; in dataflash_write()
326 writelen = len; in dataflash_write()
331 pageaddr, offset, writelen); in dataflash_write()
352 if (writelen != priv->page_size) { in dataflash_write()
380 x[1].len = writelen; in dataflash_write()
386 addr, writelen, status); in dataflash_write()
422 remaining = remaining - writelen; in dataflash_write()
425 writebuf += writelen; in dataflash_write()
426 *retlen += writelen; in dataflash_write()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-xgene-slimpro.c250 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_wr() argument
256 SLIMPRO_IIC_WRITE, protocol, addrlen, writelen); in slimpro_i2c_wr()
296 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_blkwr() argument
303 if (writelen > I2C_SMBUS_BLOCK_MAX) in slimpro_i2c_blkwr()
306 memcpy(ctx->dma_buffer, data, writelen); in slimpro_i2c_blkwr()
307 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, writelen, in slimpro_i2c_blkwr()
316 protocol, addrlen, writelen); in slimpro_i2c_blkwr()
327 dma_unmap_single(ctx->dev, paddr, writelen, DMA_TO_DEVICE); in slimpro_i2c_blkwr()
/linux/tools/firmware/
H A Dihex2fw.c276 uint16_t writelen = ALIGN(ihex_binrec_size(p), 4); in output_records() local
280 if (write(outfd, &p->addr, writelen) != writelen) in output_records()
/linux/drivers/usb/serial/
H A Diuu_phoenix.c57 int writelen; /* num of byte to write to device */ member
609 *buf_ptr++ = priv->writelen; in iuu_bulk_write()
611 memcpy(buf_ptr, priv->writebuf, priv->writelen); in iuu_bulk_write()
612 buf_len = priv->writelen; in iuu_bulk_write()
613 priv->writelen = 0; in iuu_bulk_write()
687 if (priv->writelen > 0) { in iuu_uart_read_callback()
706 count = min(count, 256 - priv->writelen); in iuu_uart_write()
711 memcpy(priv->writebuf + priv->writelen, buf, count); in iuu_uart_write()
712 priv->writelen += count; in iuu_uart_write()
/linux/fs/jffs2/
H A Dwrite.c342 uint32_t offset, uint32_t writelen, uint32_t *retlen) in jffs2_write_inode_range() argument
348 __func__, f->inocache->ino, offset, writelen); in jffs2_write_inode_range()
350 while(writelen) { in jffs2_write_inode_range()
360 writelen, offset); in jffs2_write_inode_range()
369 datalen = min_t(uint32_t, writelen, in jffs2_write_inode_range()
434 writelen -= datalen; in jffs2_write_inode_range()
H A Dnodelist.h406 uint32_t offset, uint32_t writelen, uint32_t *retlen);
/linux/drivers/mtd/nand/raw/
H A Dnand_base.c4443 uint32_t writelen = ops->len; in nand_do_write_ops() local
4454 if (!writelen) in nand_do_write_ops()
4465 if (nand_region_is_secured(chip, to, writelen)) in nand_do_write_ops()
4497 int part_pagewr = (column || writelen < mtd->writesize); in nand_do_write_ops()
4516 bytes = min_t(int, bytes - column, writelen); in nand_do_write_ops()
4537 writelen -= bytes; in nand_do_write_ops()
4538 if (!writelen) in nand_do_write_ops()
4554 ops->retlen = ops->len - writelen; in nand_do_write_ops()