Home
last modified time | relevance | path

Searched refs:writelen (Results 1 – 6 of 6) 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/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()