Home
last modified time | relevance | path

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

/drivers/mtd/devices/
Dmtd_dataflash.c307 unsigned int pageaddr, addr, offset, writelen; in dataflash_write() local
325 writelen = priv->page_size - offset; in dataflash_write()
327 writelen = len; in dataflash_write()
332 pageaddr, offset, writelen); in dataflash_write()
353 if (writelen != priv->page_size) { in dataflash_write()
381 x[1].len = writelen; in dataflash_write()
387 dev_name(&spi->dev), addr, writelen, status); in dataflash_write()
423 remaining = remaining - writelen; in dataflash_write()
426 writebuf += writelen; in dataflash_write()
427 *retlen += writelen; in dataflash_write()
[all …]
/drivers/i2c/busses/
Di2c-xgene-slimpro.c170 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_wr() argument
177 SLIMPRO_IIC_WRITE, protocol, addrlen, writelen); in slimpro_i2c_wr()
234 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_blkwr() argument
241 memcpy(ctx->dma_buffer, data, writelen); in slimpro_i2c_blkwr()
242 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, writelen, in slimpro_i2c_blkwr()
252 protocol, addrlen, writelen); in slimpro_i2c_blkwr()
269 dma_unmap_single(ctx->dev, paddr, writelen, DMA_TO_DEVICE); in slimpro_i2c_blkwr()
/drivers/net/irda/
Dirtty-sir.c186 int writelen; in irtty_do_write() local
195 writelen = tty_write_room(tty); in irtty_do_write()
196 if (writelen > len) in irtty_do_write()
197 writelen = len; in irtty_do_write()
198 return tty->ops->write(tty, ptr, writelen); in irtty_do_write()
/drivers/usb/serial/
Diuu_phoenix.c62 int writelen; /* num of byte to write to device */ member
631 *buf_ptr++ = priv->writelen; in iuu_bulk_write()
633 memcpy(buf_ptr, priv->writebuf, priv->writelen); in iuu_bulk_write()
634 buf_len = priv->writelen; in iuu_bulk_write()
635 priv->writelen = 0; in iuu_bulk_write()
713 if (priv->writelen > 0) { in iuu_uart_read_callback()
732 count = min(count, 256 - priv->writelen); in iuu_uart_write()
737 memcpy(priv->writebuf + priv->writelen, buf, count); in iuu_uart_write()
738 priv->writelen += count; in iuu_uart_write()
/drivers/staging/wlan-ng/
Dhfa384x_usb.c1992 u32 writelen; in hfa384x_drvr_flashdl_write() local
2059 writelen = burnlen - (j * HFA384x_USB_RWMEM_MAXLEN); in hfa384x_drvr_flashdl_write()
2060 writelen = writelen > HFA384x_USB_RWMEM_MAXLEN ? in hfa384x_drvr_flashdl_write()
2061 HFA384x_USB_RWMEM_MAXLEN : writelen; in hfa384x_drvr_flashdl_write()
2066 writebuf, writelen); in hfa384x_drvr_flashdl_write()
/drivers/mtd/nand/
Dnand_base.c2544 uint32_t writelen = ops->len; in nand_do_write_ops() local
2556 if (!writelen) in nand_do_write_ops()
2594 int cached = writelen > bytes && page != blockmask; in nand_do_write_ops()
2597 int part_pagewr = (column || writelen < mtd->writesize); in nand_do_write_ops()
2612 bytes = min_t(int, bytes - column, writelen); in nand_do_write_ops()
2633 writelen -= bytes; in nand_do_write_ops()
2634 if (!writelen) in nand_do_write_ops()
2650 ops->retlen = ops->len - writelen; in nand_do_write_ops()
/drivers/net/wireless/
Dairo.c4511 int writelen; member
4642 priv->writelen = max_t(int, priv->writelen, *offset); in proc_write()
4798 if ( !data->writelen ) return; in proc_config_on_close()
5100 char *end = p + data->writelen; in proc_SSID_on_close()
5102 if (!data->writelen) in proc_SSID_on_close()
5135 if ( !data->writelen ) return; in proc_APList_on_close()
5140 for( i = 0; i < 4 && data->writelen >= (i+1)*6*3; i++ ) { in proc_APList_on_close()
5274 if ( !data->writelen ) return; in proc_wepkey_on_close()
5331 data->writelen = 0; in proc_wepkey_open()
5376 data->writelen = 0; in proc_SSID_open()
[all …]