Home
last modified time | relevance | path

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

/drivers/mtd/devices/
Dmtd_dataflash.c314 unsigned int pageaddr, addr, offset, writelen; in dataflash_write() local
332 writelen = priv->page_size - offset; in dataflash_write()
334 writelen = len; in dataflash_write()
339 pageaddr, offset, writelen); in dataflash_write()
360 if (writelen != priv->page_size) { in dataflash_write()
388 x[1].len = writelen; in dataflash_write()
394 addr, writelen, status); in dataflash_write()
430 remaining = remaining - writelen; in dataflash_write()
433 writebuf += writelen; in dataflash_write()
434 *retlen += writelen; in dataflash_write()
[all …]
/drivers/i2c/busses/
Di2c-xgene-slimpro.c257 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_wr() argument
263 SLIMPRO_IIC_WRITE, protocol, addrlen, writelen); in slimpro_i2c_wr()
303 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_blkwr() argument
310 if (writelen > I2C_SMBUS_BLOCK_MAX) in slimpro_i2c_blkwr()
313 memcpy(ctx->dma_buffer, data, writelen); in slimpro_i2c_blkwr()
314 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, writelen, in slimpro_i2c_blkwr()
323 protocol, addrlen, writelen); in slimpro_i2c_blkwr()
334 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.c1808 u32 writelen; in hfa384x_drvr_flashdl_write() local
1875 writelen = burnlen - (j * HFA384x_USB_RWMEM_MAXLEN); in hfa384x_drvr_flashdl_write()
1876 writelen = writelen > HFA384x_USB_RWMEM_MAXLEN ? in hfa384x_drvr_flashdl_write()
1877 HFA384x_USB_RWMEM_MAXLEN : writelen; in hfa384x_drvr_flashdl_write()
1882 writebuf, writelen); in hfa384x_drvr_flashdl_write()
/drivers/net/wireless/cisco/
Dairo.c4536 int writelen; member
4668 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.c4249 uint32_t writelen = ops->len; in nand_do_write_ops() local
4260 if (!writelen) in nand_do_write_ops()
4271 if (nand_region_is_secured(chip, to, writelen)) in nand_do_write_ops()
4303 int part_pagewr = (column || writelen < mtd->writesize); in nand_do_write_ops()
4322 bytes = min_t(int, bytes - column, writelen); in nand_do_write_ops()
4343 writelen -= bytes; in nand_do_write_ops()
4344 if (!writelen) in nand_do_write_ops()
4360 ops->retlen = ops->len - writelen; in nand_do_write_ops()