Home
last modified time | relevance | path

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

/drivers/mtd/devices/
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 …]
/drivers/i2c/busses/
Di2c-xgene-slimpro.c258 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_wr() argument
264 SLIMPRO_IIC_WRITE, protocol, addrlen, writelen); in slimpro_i2c_wr()
304 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_blkwr() argument
311 if (writelen > I2C_SMBUS_BLOCK_MAX) in slimpro_i2c_blkwr()
314 memcpy(ctx->dma_buffer, data, writelen); in slimpro_i2c_blkwr()
315 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, writelen, in slimpro_i2c_blkwr()
324 protocol, addrlen, writelen); in slimpro_i2c_blkwr()
335 dma_unmap_single(ctx->dev, paddr, writelen, DMA_TO_DEVICE); in slimpro_i2c_blkwr()
/drivers/usb/serial/
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()
/drivers/staging/wlan-ng/
Dhfa384x_usb.c1787 u32 writelen; in hfa384x_drvr_flashdl_write() local
1854 writelen = burnlen - (j * HFA384x_USB_RWMEM_MAXLEN); in hfa384x_drvr_flashdl_write()
1855 writelen = writelen > HFA384x_USB_RWMEM_MAXLEN ? in hfa384x_drvr_flashdl_write()
1856 HFA384x_USB_RWMEM_MAXLEN : writelen; in hfa384x_drvr_flashdl_write()
1861 writebuf, writelen); in hfa384x_drvr_flashdl_write()
/drivers/net/wireless/cisco/
Dairo.c4535 int writelen; member
4667 priv->writelen = max_t(int, priv->writelen, *offset); in proc_write()
4827 if (!data->writelen) return; in proc_config_on_close()
5129 char *end = p + data->writelen; in proc_SSID_on_close()
5131 if (!data->writelen) in proc_SSID_on_close()
5165 if (!data->writelen) return; in proc_APList_on_close()
5170 for (i = 0; i < 4 && data->writelen >= (i + 1) * 6 * 3; i++) in proc_APList_on_close()
5294 if (!data->writelen) return; in proc_wepkey_on_close()
5361 data->writelen = 0; in proc_wepkey_open()
5406 data->writelen = 0; in proc_SSID_open()
[all …]
/drivers/mtd/nand/raw/
Dnand_base.c4424 uint32_t writelen = ops->len; in nand_do_write_ops() local
4435 if (!writelen) in nand_do_write_ops()
4446 if (nand_region_is_secured(chip, to, writelen)) in nand_do_write_ops()
4478 int part_pagewr = (column || writelen < mtd->writesize); in nand_do_write_ops()
4497 bytes = min_t(int, bytes - column, writelen); in nand_do_write_ops()
4518 writelen -= bytes; in nand_do_write_ops()
4519 if (!writelen) in nand_do_write_ops()
4535 ops->retlen = ops->len - writelen; in nand_do_write_ops()