Home
last modified time | relevance | path

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

1234

/drivers/isdn/hardware/eicon/
Dmntfunc.c246 int written = 0; in maint_read_write() local
268 pbuf[written++] = (byte) size; in maint_read_write()
269 pbuf[written++] = (byte) (size >> 8); in maint_read_write()
270 pbuf[written++] = 0; in maint_read_write()
271 pbuf[written++] = 0; in maint_read_write()
275 memcpy(&pbuf[written], pmsg, size); in maint_read_write()
277 written += size; in maint_read_write()
280 pbuf[written++] = 0; in maint_read_write()
281 pbuf[written++] = 0; in maint_read_write()
282 pbuf[written++] = 0; in maint_read_write()
[all …]
Distream.c78 int written = 0, to_write = -1; in diva_istream_write() local
106 written += to_write; in diva_istream_write()
134 return (written); in diva_istream_write()
/drivers/char/
Dmem.c158 ssize_t written, sz; in write_mem() local
165 written = 0; in write_mem()
175 written += sz; in write_mem()
192 if (written) in write_mem()
200 written += sz - copied; in write_mem()
201 if (written) in write_mem()
209 written += sz; in write_mem()
212 *ppos += written; in write_mem()
213 return written; in write_mem()
481 ssize_t written, sz; in do_write_kmem() local
[all …]
Dlp.c301 ssize_t written; in lp_write() local
339 written = parport_write (port, kbuf, copy_size); in lp_write()
340 if (written > 0) { in lp_write()
341 copy_size -= written; in lp_write()
342 count -= written; in lp_write()
343 buf += written; in lp_write()
344 retv += written; in lp_write()
769 ssize_t written; in lp_console_write() local
788 written = parport_write (port, s, canwrite); in lp_console_write()
790 if (written <= 0) in lp_console_write()
[all …]
Ddcc_tty.c43 int written; in dcc_poll_locked() local
52 : "=r" (written) in dcc_poll_locked()
55 if (written) { in dcc_poll_locked()
224 int written; in dcc_console_write()
225 written = dcc_write(b, count); in dcc_console_write()
226 if (written) { in dcc_console_write()
227 b += written; in dcc_console_write()
228 count -= written; in dcc_console_write()
Dnwflash.c148 int written; in flash_write() local
180 written = 0; in flash_write()
224 count - written); in flash_write()
229 rc = write_block(p, buf, count - written); in flash_write()
254 written += rc; in flash_write()
258 printk(KERN_DEBUG "flash_write: written 0x%X bytes OK.\n", written); in flash_write()
268 return written; in flash_write()
/drivers/mtd/tests/
Dmtd_subpagetest.c118 size_t written; in write_eraseblock() local
123 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
124 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
127 if (written != subpgsize) { in write_eraseblock()
129 printk(PRINT_PREF " written: %#zx\n", written); in write_eraseblock()
137 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
138 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
141 if (written != subpgsize) { in write_eraseblock()
143 printk(PRINT_PREF " written: %#zx\n", written); in write_eraseblock()
153 size_t written; in write_eraseblock2() local
[all …]
Dmtd_torturetest.c82 static void report_corrupt(unsigned char *read, unsigned char *written);
184 size_t written; in write_pattern() local
192 err = mtd_write(mtd, addr, len, &written, buf); in write_pattern()
195 " bytes\n", err, ebnum, written); in write_pattern()
198 if (written != len) { in write_pattern()
200 " reported\n", written, len); in write_pattern()
421 static void print_bufs(unsigned char *read, unsigned char *written, int start,
428 static void report_corrupt(unsigned char *read, unsigned char *written) in report_corrupt() argument
440 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
452 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
[all …]
Dmtd_speedtest.c142 size_t written; in write_eraseblock() local
146 err = mtd_write(mtd, addr, mtd->erasesize, &written, iobuf); in write_eraseblock()
147 if (err || written != mtd->erasesize) { in write_eraseblock()
158 size_t written; in write_eraseblock_by_page() local
164 err = mtd_write(mtd, addr, pgsize, &written, buf); in write_eraseblock_by_page()
165 if (err || written != pgsize) { in write_eraseblock_by_page()
181 size_t written, sz = pgsize * 2; in write_eraseblock_by_2pages() local
187 err = mtd_write(mtd, addr, sz, &written, buf); in write_eraseblock_by_2pages()
188 if (err || written != sz) { in write_eraseblock_by_2pages()
199 err = mtd_write(mtd, addr, pgsize, &written, buf); in write_eraseblock_by_2pages()
[all …]
Dmtd_pagetest.c98 size_t written; in write_eraseblock() local
103 err = mtd_write(mtd, addr, mtd->erasesize, &written, writebuf); in write_eraseblock()
104 if (err || written != mtd->erasesize) in write_eraseblock()
305 size_t read, written; in erasecrosstest() local
331 err = mtd_write(mtd, addr0, pgsize, &written, writebuf); in erasecrosstest()
332 if (err || written != pgsize) { in erasecrosstest()
364 err = mtd_write(mtd, addr0, pgsize, &written, writebuf); in erasecrosstest()
365 if (err || written != pgsize) { in erasecrosstest()
401 size_t read, written; in erasetest() local
421 err = mtd_write(mtd, addr0, pgsize, &written, writebuf); in erasetest()
[all …]
/drivers/ata/
Dlibata-transport.c489 int written; member
498 arg->written += sprintf(arg->buf + arg->written, in ata_show_ering()
501 arg->written += get_ata_err_names(ent->err_mask, in ata_show_ering()
502 arg->buf + arg->written); in ata_show_ering()
514 return arg.written; in show_ata_dev_ering()
525 int written = 0, i = 0; in show_ata_dev_id() local
530 written += snprintf(buf+written, 20, "%04x%c", in show_ata_dev_id()
534 return written; in show_ata_dev_id()
544 int written = 0, i = 0; in show_ata_dev_gscr() local
549 written += snprintf(buf+written, 20, "%08x%c", in show_ata_dev_gscr()
[all …]
/drivers/s390/char/
Dmonwriter.c219 size_t len, written; in monwrite_write() local
224 for (written = 0; written < count; ) { in monwrite_write()
226 len = min(count - written, monpriv->hdr_to_read); in monwrite_write()
229 if (copy_from_user(to, data + written, len)) { in monwrite_write()
234 written += len; in monwrite_write()
245 len = min(count - written, monpriv->data_to_read); in monwrite_write()
248 if (copy_from_user(to, data + written, len)) { in monwrite_write()
253 written += len; in monwrite_write()
263 return written; in monwrite_write()
Dsclp_con.c141 int written; in sclp_console_write() local
166 written = sclp_write(sclp_conbuf, (const unsigned char *) in sclp_console_write()
168 if (written == count) in sclp_console_write()
178 message += written; in sclp_console_write()
179 count -= written; in sclp_console_write()
Dsclp_tty.c179 int written; in sclp_tty_write_string() local
204 written = sclp_write(sclp_ttybuf, str, count); in sclp_tty_write_string()
205 overall_written += written; in sclp_tty_write_string()
206 if (written == count) in sclp_tty_write_string()
218 str += written; in sclp_tty_write_string()
219 count -= written; in sclp_tty_write_string()
Dsclp_vt220.c388 int written; in __sclp_vt220_write() local
412 written = sclp_vt220_add_msg(sclp_vt220_current_request, in __sclp_vt220_write()
414 overall_written += written; in __sclp_vt220_write()
415 if (written == count) in __sclp_vt220_write()
425 buf += written; in __sclp_vt220_write()
426 count -= written; in __sclp_vt220_write()
/drivers/staging/mei/
Dmei-amt-version.c178 ssize_t written; in mei_send_msg() local
187 written = write(me->fd, buffer, len); in mei_send_msg()
188 if (written < 0) { in mei_send_msg()
191 written, strerror(errno)); in mei_send_msg()
208 rc = written; in mei_send_msg()
376 ssize_t written; in amt_host_if_call() local
387 written = mei_send_msg(&acmd->mei_cl, in amt_host_if_call()
389 if (written != command_sz) in amt_host_if_call()
/drivers/usb/misc/sisusbvga/
Dsisusb_con.c370 ssize_t written; in sisusbcon_putc() local
383 (long)SISUSB_HADDR(x, y), 2, &written); in sisusbcon_putc()
394 ssize_t written; in sisusbcon_putcs() local
418 (long)SISUSB_HADDR(x, y), count * 2, &written); in sisusbcon_putcs()
429 ssize_t written; in sisusbcon_clear() local
472 (long)SISUSB_HADDR(x, y), length, &written); in sisusbcon_clear()
483 ssize_t written; in sisusbcon_bmove() local
505 (long)SISUSB_HADDR(dx, dy), length, &written); in sisusbcon_bmove()
515 ssize_t written; in sisusbcon_switch() local
554 length, &written); in sisusbcon_switch()
[all …]
/drivers/parport/
Dieee1284_ops.c411 size_t written; in parport_ieee1284_ecp_write_data()
428 for (written = 0; written < len; written++, buf++) { in parport_ieee1284_ecp_write_data()
485 return written; in parport_ieee1284_ecp_write_data()
646 size_t written; in parport_ieee1284_ecp_write_addr()
664 for (written = 0; written < len; written++, buf++) { in parport_ieee1284_ecp_write_addr()
721 return written; in parport_ieee1284_ecp_write_addr()
Dparport_ip32.c1153 size_t written; in parport_ip32_epp_write() local
1163 written = len; in parport_ip32_epp_write()
1166 for (written = 0; written < len; written++) { in parport_ip32_epp_write()
1175 return written; in parport_ip32_epp_write()
1443 size_t written; in parport_ip32_fifo_write_block_dma() local
1465 written = len - parport_ip32_dma_get_residue(); in parport_ip32_fifo_write_block_dma()
1469 return written; in parport_ip32_fifo_write_block_dma()
1484 size_t written = 0; in parport_ip32_fifo_write_block() local
1488 written = (p->modes & PARPORT_MODE_DMA) ? in parport_ip32_fifo_write_block()
1491 return written; in parport_ip32_fifo_write_block()
[all …]
/drivers/message/i2o/
DREADME.ioctl6 Originally written by Deepak Saxena(deepak@plexity.net)
72 the data is written into *(hrt->reslen).
82 buffer length is written into *(hrt->reslen)
101 the data is written into *(lct->reslen).
111 buffer length is written into *(lct->reslen)
133 sent through the ops->opbuf buffer, and the result list is written
135 written is placed into *(ops->reslen).
139 The return value is the size in bytes of the data written into
146 buffer length is written into *(ops->reslen)
174 sent through the ops->opbuf buffer, and the result list is written
[all …]
/drivers/usb/misc/
Duss720.c496 size_t written = 0; in parport_uss720_epp_write_data()
500 for (; written < length; written++) { in parport_uss720_epp_write_data()
512 return written; in parport_uss720_epp_write_data()
554 size_t written = 0; in parport_uss720_epp_write_addr() local
558 for (; written < length; written++) { in parport_uss720_epp_write_addr()
570 return written; in parport_uss720_epp_write_addr()
611 size_t written = 0; in parport_uss720_ecp_write_addr() local
615 for (; written < len; written++) { in parport_uss720_ecp_write_addr()
621 return written; in parport_uss720_ecp_write_addr()
/drivers/tty/vt/
Dvc_screen.c395 long attr, size, written; in vcs_write() local
425 written = 0; in vcs_write()
447 if (written) in vcs_write()
460 if (written) in vcs_write()
559 written += orig_count; in vcs_write()
565 *ppos += written; in vcs_write()
566 ret = written; in vcs_write()
567 if (written) in vcs_write()
/drivers/tty/hvc/
Dhvc_iucv.c220 int written; in hvc_iucv_write() local
239 written = 0; in hvc_iucv_write()
256 written = -EIO; in hvc_iucv_write()
267 written = min_t(int, rb->mbuf->datalen - rb->offset, count); in hvc_iucv_write()
268 memcpy(buf, rb->mbuf->data + rb->offset, written); in hvc_iucv_write()
269 if (written < (rb->mbuf->datalen - rb->offset)) { in hvc_iucv_write()
270 rb->offset += written; in hvc_iucv_write()
296 return written; in hvc_iucv_write()
316 int written; in hvc_iucv_get_chars() local
327 written = hvc_iucv_write(priv, buf, count, &has_more_data); in hvc_iucv_get_chars()
[all …]
/drivers/scsi/libsas/
Dsas_host_smp.c121 int written; in sas_host_smp_write_gpio() local
128 written = i->dft->lldd_write_gpio(sas_ha, reg_type, reg_index, in sas_host_smp_write_gpio()
131 if (written < 0) { in sas_host_smp_write_gpio()
133 written = 0; in sas_host_smp_write_gpio()
137 return written; in sas_host_smp_write_gpio()
/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c415 ssize_t written = 0; in hwicap_write() local
453 buf + written, in hwicap_write()
460 if (copy_from_user(kbuf, buf + written, len)) { in hwicap_write()
480 written += len; in hwicap_write()
485 buf + written, left)) { in hwicap_write()
487 written += left; in hwicap_write()
493 status = written; in hwicap_write()

1234