Home
last modified time | relevance | path

Searched refs:written (Results 1 – 25 of 104) sorted by relevance

12345

/drivers/mtd/devices/
Dbcm47xxsflash.c132 int written = 0; in bcm47xxsflash_write_st() local
151 written++; in bcm47xxsflash_write_st()
161 written++; in bcm47xxsflash_write_st()
170 return written; in bcm47xxsflash_write_st()
180 int written = 0; in bcm47xxsflash_write_at() local
206 written++; in bcm47xxsflash_write_at()
213 return written; in bcm47xxsflash_write_at()
220 int written; in bcm47xxsflash_write() local
228 written = bcm47xxsflash_write_st(mtd, to, len, buf); in bcm47xxsflash_write()
231 written = bcm47xxsflash_write_at(mtd, to, len, buf); in bcm47xxsflash_write()
[all …]
/drivers/mtd/tests/
Dtorturetest.c73 static void report_corrupt(unsigned char *read, unsigned char *written);
146 size_t written; in write_pattern() local
154 err = mtd_write(mtd, addr, len, &written, buf); in write_pattern()
157 " bytes\n", err, ebnum, written); in write_pattern()
160 if (written != len) { in write_pattern()
162 " reported\n", written, len); in write_pattern()
364 static void print_bufs(unsigned char *read, unsigned char *written, int start,
371 static void report_corrupt(unsigned char *read, unsigned char *written) in report_corrupt() argument
383 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
395 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
[all …]
Dsubpagetest.c45 size_t written; in write_eraseblock() local
50 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
51 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
54 if (written != subpgsize) { in write_eraseblock()
56 pr_err(" written: %#zx\n", written); in write_eraseblock()
64 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
65 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
68 if (written != subpgsize) { in write_eraseblock()
70 pr_err(" written: %#zx\n", written); in write_eraseblock()
80 size_t written; in write_eraseblock2() local
[all …]
Dmtd_test.c99 size_t written; in mtdtest_write() local
102 err = mtd_write(mtd, addr, size, &written, buf); in mtdtest_write()
103 if (!err && written != size) in mtdtest_write()
/drivers/net/ethernet/qualcomm/
Dqca_uart.c131 int written; in qcauart_transmit() local
151 written = serdev_device_write_buf(qca->serdev, qca->tx_head, in qcauart_transmit()
153 if (written > 0) { in qcauart_transmit()
154 qca->tx_left -= written; in qcauart_transmit()
155 qca->tx_head += written; in qcauart_transmit()
204 int written; in qcauart_netdev_xmit() local
236 written = serdev_device_write_buf(qca->serdev, qca->tx_buffer, in qcauart_netdev_xmit()
238 if (written > 0) { in qcauart_netdev_xmit()
239 qca->tx_left = (pos - qca->tx_buffer) - written; in qcauart_netdev_xmit()
240 qca->tx_head = qca->tx_buffer + written; in qcauart_netdev_xmit()
[all …]
/drivers/char/
Dmem.c202 ssize_t written, sz; in write_mem() local
212 written = 0; in write_mem()
222 written += sz; in write_mem()
244 if (written) in write_mem()
252 written += sz - copied; in write_mem()
253 if (written) in write_mem()
262 written += sz; in write_mem()
267 *ppos += written; in write_mem()
268 return written; in write_mem()
485 size_t written = 0; in read_iter_zero() local
[all …]
Dlp.c306 ssize_t written; in lp_write() local
344 written = parport_write(port, kbuf, copy_size); in lp_write()
345 if (written > 0) { in lp_write()
346 copy_size -= written; in lp_write()
347 count -= written; in lp_write()
348 buf += written; in lp_write()
349 retv += written; in lp_write()
817 ssize_t written; in lp_console_write() local
836 written = parport_write(port, s, canwrite); in lp_console_write()
838 if (written <= 0) in lp_console_write()
[all …]
Dnwflash.c148 int written; in flash_write() local
180 written = 0; in flash_write()
221 count - written); in flash_write()
226 rc = write_block(p, buf, count - written); in flash_write()
251 written += rc; in flash_write()
255 printk(KERN_DEBUG "flash_write: written 0x%X bytes OK.\n", written); in flash_write()
260 return written; in flash_write()
/drivers/s390/char/
Dmonwriter.c223 size_t len, written; in monwrite_write() local
228 for (written = 0; written < count; ) { in monwrite_write()
230 len = min(count - written, monpriv->hdr_to_read); in monwrite_write()
233 if (copy_from_user(to, data + written, len)) { in monwrite_write()
238 written += len; in monwrite_write()
249 len = min(count - written, monpriv->data_to_read); in monwrite_write()
252 if (copy_from_user(to, data + written, len)) { in monwrite_write()
257 written += len; in monwrite_write()
267 return written; in monwrite_write()
Dsclp_con.c166 int written; in sclp_console_write() local
193 written = sclp_write(sclp_conbuf, (const unsigned char *) in sclp_console_write()
195 if (written == count) in sclp_console_write()
205 message += written; in sclp_console_write()
206 count -= written; in sclp_console_write()
Dsclp_tty.c175 int written; in sclp_tty_write_string() local
200 written = sclp_write(sclp_ttybuf, str, count); in sclp_tty_write_string()
201 overall_written += written; in sclp_tty_write_string()
202 if (written == count) in sclp_tty_write_string()
214 str += written; in sclp_tty_write_string()
215 count -= written; in sclp_tty_write_string()
/drivers/tty/serial/
Dtegra-tcu.c66 unsigned int written = 0, i = 0; in tegra_tcu_write() local
72 value |= TCU_MBOX_BYTE(written++, '\n'); in tegra_tcu_write()
76 value |= TCU_MBOX_BYTE(written++, '\r'); in tegra_tcu_write()
79 value |= TCU_MBOX_BYTE(written++, s[i++]); in tegra_tcu_write()
82 if (written == 3) { in tegra_tcu_write()
84 value = written = 0; in tegra_tcu_write()
88 if (written) in tegra_tcu_write()
89 tegra_tcu_write_one(tcu, value, written); in tegra_tcu_write()
/drivers/ata/
Dlibata-transport.c506 int written; member
516 arg->written += sprintf(arg->buf + arg->written, in ata_show_ering()
519 arg->written += get_ata_err_names(ent->err_mask, in ata_show_ering()
520 arg->buf + arg->written); in ata_show_ering()
532 return arg.written; in show_ata_dev_ering()
543 int written = 0, i = 0; in show_ata_dev_id() local
548 written += scnprintf(buf+written, 20, "%04x%c", in show_ata_dev_id()
552 return written; in show_ata_dev_id()
562 int written = 0, i = 0; in show_ata_dev_gscr() local
567 written += scnprintf(buf+written, 20, "%08x%c", in show_ata_dev_gscr()
[all …]
/drivers/nfc/nxp-nci/
Dfirmware.c102 remaining_len = fw_info->frame_size - fw_info->written; in nxp_nci_fw_send_chunk()
114 skb_put_data(skb, fw_info->data + fw_info->written, chunk_len); in nxp_nci_fw_send_chunk()
136 if (fw_info->written == 0) { in nxp_nci_fw_send()
150 fw_info->written += r; in nxp_nci_fw_send()
181 if (fw_info->written == fw_info->frame_size) { in nxp_nci_fw_work()
184 fw_info->written = 0; in nxp_nci_fw_work()
231 fw_info->written = 0; in nxp_nci_fw_download()
/drivers/parport/
Dieee1284_ops.c396 size_t written; in parport_ieee1284_ecp_write_data()
413 for (written = 0; written < len; written++, buf++) { in parport_ieee1284_ecp_write_data()
469 return written; in parport_ieee1284_ecp_write_data()
626 size_t written; in parport_ieee1284_ecp_write_addr()
644 for (written = 0; written < len; written++, buf++) { in parport_ieee1284_ecp_write_addr()
700 return written; in parport_ieee1284_ecp_write_addr()
Dparport_ip32.c1143 size_t written; in parport_ip32_epp_write() local
1153 written = len; in parport_ip32_epp_write()
1156 for (written = 0; written < len; written++) { in parport_ip32_epp_write()
1165 return written; in parport_ip32_epp_write()
1432 size_t written; in parport_ip32_fifo_write_block_dma() local
1454 written = len - parport_ip32_dma_get_residue(); in parport_ip32_fifo_write_block_dma()
1458 return written; in parport_ip32_fifo_write_block_dma()
1473 size_t written = 0; in parport_ip32_fifo_write_block() local
1477 written = (p->modes & PARPORT_MODE_DMA) ? in parport_ip32_fifo_write_block()
1480 return written; in parport_ip32_fifo_write_block()
[all …]
/drivers/xen/xenbus/
Dxenbus_comms.c335 unsigned int written; in process_writes() member
350 state.written = 0; in process_writes()
364 err = xb_write(base + state.written, len - state.written); in process_writes()
367 state.written += err; in process_writes()
368 if (state.written != len) in process_writes()
372 state.written = 0; in process_writes()
/drivers/usb/misc/
Duss720.c485 size_t written = 0; in parport_uss720_epp_write_data()
489 for (; written < length; written++) { in parport_uss720_epp_write_data()
501 return written; in parport_uss720_epp_write_data()
543 size_t written = 0; in parport_uss720_epp_write_addr() local
547 for (; written < length; written++) { in parport_uss720_epp_write_addr()
559 return written; in parport_uss720_epp_write_addr()
600 size_t written = 0; in parport_uss720_ecp_write_addr() local
604 for (; written < len; written++) { in parport_uss720_ecp_write_addr()
610 return written; in parport_uss720_ecp_write_addr()
/drivers/gnss/
Dcore.c127 size_t written = 0; in gnss_write() local
146 size_t n = count - written; in gnss_write()
172 written += ret; in gnss_write()
175 if (written == count) in gnss_write()
179 if (written) in gnss_write()
180 ret = written; in gnss_write()
/drivers/tty/vt/
Dvc_screen.c596 unsigned int written; in vcs_write() local
632 written = 0; in vcs_write()
652 if (written) in vcs_write()
665 if (written) in vcs_write()
672 if (written) in vcs_write()
694 written += this_round; in vcs_write()
700 *ppos += written; in vcs_write()
701 ret = written; in vcs_write()
702 if (written) in vcs_write()
/drivers/scsi/libsas/
Dsas_host_smp.c118 int written; in sas_host_smp_write_gpio() local
125 written = i->dft->lldd_write_gpio(sas_ha, reg_type, reg_index, in sas_host_smp_write_gpio()
128 if (written < 0) { in sas_host_smp_write_gpio()
130 written = 0; in sas_host_smp_write_gpio()
134 return written; in sas_host_smp_write_gpio()
/drivers/gpu/drm/
Ddrm_sysfs.c226 int written = 0; in modes_show() local
230 written += scnprintf(buf + written, PAGE_SIZE - written, "%s\n", in modes_show()
235 return written; in modes_show()
/drivers/tty/hvc/
Dhvc_iucv.c223 int written; in hvc_iucv_write() local
242 written = 0; in hvc_iucv_write()
259 written = -EIO; in hvc_iucv_write()
270 written = min_t(int, rb->mbuf->datalen - rb->offset, count); in hvc_iucv_write()
271 memcpy(buf, rb->mbuf->data + rb->offset, written); in hvc_iucv_write()
272 if (written < (rb->mbuf->datalen - rb->offset)) { in hvc_iucv_write()
273 rb->offset += written; in hvc_iucv_write()
299 return written; in hvc_iucv_write()
319 int written; in hvc_iucv_get_chars() local
330 written = hvc_iucv_write(priv, buf, count, &has_more_data); in hvc_iucv_get_chars()
[all …]
/drivers/scsi/aic7xxx/
Daic79xx_proc.c215 int written; in ahd_proc_write_seeprom() local
218 written = -EINVAL; in ahd_proc_write_seeprom()
261 written = length; in ahd_proc_write_seeprom()
269 return (written); in ahd_proc_write_seeprom()
/drivers/firmware/meson/
Dmeson_sm.c195 u32 written; in meson_sm_call_write() local
208 if (meson_sm_call(fw, cmd_index, &written, arg0, arg1, arg2, arg3, arg4) < 0) in meson_sm_call_write()
211 if (!written) in meson_sm_call_write()
214 return written; in meson_sm_call_write()

12345