Home
last modified time | relevance | path

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

12345

/drivers/mtd/devices/
Dbcm47xxsflash.c123 int written = 0; in bcm47xxsflash_write_st() local
142 written++; in bcm47xxsflash_write_st()
152 written++; in bcm47xxsflash_write_st()
161 return written; in bcm47xxsflash_write_st()
171 int written = 0; in bcm47xxsflash_write_at() local
197 written++; in bcm47xxsflash_write_at()
204 return written; in bcm47xxsflash_write_at()
211 int written; in bcm47xxsflash_write() local
219 written = bcm47xxsflash_write_st(mtd, to, len, buf); in bcm47xxsflash_write()
222 written = bcm47xxsflash_write_at(mtd, to, len, buf); in bcm47xxsflash_write()
[all …]
/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.c183 ssize_t written, sz; in write_mem() local
193 written = 0; in write_mem()
203 written += sz; in write_mem()
225 if (written) in write_mem()
233 written += sz - copied; in write_mem()
234 if (written) in write_mem()
243 written += sz; in write_mem()
248 *ppos += written; in write_mem()
249 return written; in write_mem()
498 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()
774 ssize_t written; in lp_console_write() local
793 written = parport_write (port, s, canwrite); in lp_console_write()
795 if (written <= 0) in lp_console_write()
[all …]
Dnwflash.c147 int written; in flash_write() local
179 written = 0; in flash_write()
220 count - written); in flash_write()
225 rc = write_block(p, buf, count - written); in flash_write()
250 written += rc; in flash_write()
254 printk(KERN_DEBUG "flash_write: written 0x%X bytes OK.\n", written); in flash_write()
259 return written; in flash_write()
/drivers/mtd/tests/
Dtorturetest.c85 static void report_corrupt(unsigned char *read, unsigned char *written);
158 size_t written; in write_pattern() local
166 err = mtd_write(mtd, addr, len, &written, buf); in write_pattern()
169 " bytes\n", err, ebnum, written); in write_pattern()
172 if (written != len) { in write_pattern()
174 " reported\n", written, len); in write_pattern()
378 static void print_bufs(unsigned char *read, unsigned char *written, int start,
385 static void report_corrupt(unsigned char *read, unsigned char *written) in report_corrupt() argument
397 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
409 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
[all …]
Dsubpagetest.c58 size_t written; in write_eraseblock() local
63 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
64 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
67 if (written != subpgsize) { in write_eraseblock()
69 pr_err(" written: %#zx\n", written); in write_eraseblock()
77 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
78 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
81 if (written != subpgsize) { in write_eraseblock()
83 pr_err(" written: %#zx\n", written); in write_eraseblock()
93 size_t written; in write_eraseblock2() local
[all …]
Dmtd_test.c103 size_t written; in mtdtest_write() local
106 err = mtd_write(mtd, addr, size, &written, buf); in mtdtest_write()
107 if (!err && written != size) in mtdtest_write()
/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.c166 int written; in sclp_console_write() local
195 written = sclp_write(sclp_conbuf, (const unsigned char *) in sclp_console_write()
197 if (written == count) in sclp_console_write()
207 message += written; in sclp_console_write()
208 count -= written; in sclp_console_write()
Dsclp_tty.c176 int written; in sclp_tty_write_string() local
201 written = sclp_write(sclp_ttybuf, str, count); in sclp_tty_write_string()
202 overall_written += written; in sclp_tty_write_string()
203 if (written == count) in sclp_tty_write_string()
215 str += written; in sclp_tty_write_string()
216 count -= written; in sclp_tty_write_string()
Dtape_char.c191 size_t written; in tapechar_write() local
222 written = 0; in tapechar_write()
235 written += block_size - request->rescnt; in tapechar_write()
248 if (written > 0) in tapechar_write()
263 return rc ? rc : written; in tapechar_write()
Dcon3215.c85 int written; /* number of bytes in write requests */ member
177 if (raw->count <= raw->written) in raw3215_mk_write_req()
188 raw->written -= req->len; in raw3215_mk_write_req()
192 req->start = (raw->head - raw->count + raw->written) & in raw3215_mk_write_req()
210 raw->written += len; in raw3215_mk_write_req()
438 raw->written -= req->len; in raw3215_irq()
455 raw->written -= req->len; in raw3215_irq()
474 BUG_ON(raw->written != 0); in raw3215_drop_line()
1040 int i, written; in tty3215_write() local
1045 written = count; in tty3215_write()
[all …]
/drivers/ata/
Dlibata-transport.c490 int written; member
499 arg->written += sprintf(arg->buf + arg->written, in ata_show_ering()
502 arg->written += get_ata_err_names(ent->err_mask, in ata_show_ering()
503 arg->buf + arg->written); in ata_show_ering()
515 return arg.written; in show_ata_dev_ering()
526 int written = 0, i = 0; in show_ata_dev_id() local
531 written += snprintf(buf+written, 20, "%04x%c", in show_ata_dev_id()
535 return written; in show_ata_dev_id()
545 int written = 0, i = 0; in show_ata_dev_gscr() local
550 written += snprintf(buf+written, 20, "%08x%c", in show_ata_dev_gscr()
[all …]
/drivers/nfc/nxp-nci/
Dfirmware.c115 remaining_len = fw_info->frame_size - fw_info->written; in nxp_nci_fw_send_chunk()
127 memcpy(skb_put(skb, chunk_len), fw_info->data + fw_info->written, in nxp_nci_fw_send_chunk()
151 if (fw_info->written == 0) { in nxp_nci_fw_send()
165 fw_info->written += r; in nxp_nci_fw_send()
196 if (fw_info->written == fw_info->frame_size) { in nxp_nci_fw_work()
199 fw_info->written = 0; in nxp_nci_fw_work()
246 fw_info->written = 0; in nxp_nci_fw_download()
/drivers/usb/misc/sisusbvga/
Dsisusb_con.c373 ssize_t written; in sisusbcon_putc() local
387 (long)SISUSB_HADDR(x, y), 2, &written); in sisusbcon_putc()
398 ssize_t written; in sisusbcon_putcs() local
423 (long)SISUSB_HADDR(x, y), count * 2, &written); in sisusbcon_putcs()
434 ssize_t written; in sisusbcon_clear() local
478 (long)SISUSB_HADDR(x, y), length, &written); in sisusbcon_clear()
489 ssize_t written; in sisusbcon_bmove() local
512 (long)SISUSB_HADDR(dx, dy), length, &written); in sisusbcon_bmove()
522 ssize_t written; in sisusbcon_switch() local
562 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 …]
Dparport_pc.c334 size_t written = 0; in parport_pc_epp_write_data() local
347 for (; written < length; written++) { in parport_pc_epp_write_data()
356 return written; in parport_pc_epp_write_data()
388 size_t written = 0; in parport_pc_epp_write_addr() local
398 for (; written < length; written++) { in parport_pc_epp_write_addr()
407 return written; in parport_pc_epp_write_addr()
428 size_t written; in parport_pc_ecpepp_write_data() local
433 written = parport_pc_epp_write_data(port, buf, length, flags); in parport_pc_ecpepp_write_data()
436 return written; in parport_pc_ecpepp_write_data()
457 size_t written; in parport_pc_ecpepp_write_addr() local
[all …]
/drivers/usb/misc/
Duss720.c503 size_t written = 0; in parport_uss720_epp_write_data()
507 for (; written < length; written++) { in parport_uss720_epp_write_data()
519 return written; in parport_uss720_epp_write_data()
561 size_t written = 0; in parport_uss720_epp_write_addr() local
565 for (; written < length; written++) { in parport_uss720_epp_write_addr()
577 return written; in parport_uss720_epp_write_addr()
618 size_t written = 0; in parport_uss720_ecp_write_addr() local
622 for (; written < len; written++) { in parport_uss720_ecp_write_addr()
628 return written; in parport_uss720_ecp_write_addr()
/drivers/tty/vt/
Dvc_screen.c380 long attr, size, written; in vcs_write() local
410 written = 0; in vcs_write()
432 if (written) in vcs_write()
445 if (written) in vcs_write()
544 written += orig_count; in vcs_write()
550 *ppos += written; in vcs_write()
551 ret = written; in vcs_write()
552 if (written) in vcs_write()
/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/tty/hvc/
Dhvc_iucv.c222 int written; in hvc_iucv_write() local
241 written = 0; in hvc_iucv_write()
258 written = -EIO; in hvc_iucv_write()
269 written = min_t(int, rb->mbuf->datalen - rb->offset, count); in hvc_iucv_write()
270 memcpy(buf, rb->mbuf->data + rb->offset, written); in hvc_iucv_write()
271 if (written < (rb->mbuf->datalen - rb->offset)) { in hvc_iucv_write()
272 rb->offset += written; in hvc_iucv_write()
298 return written; in hvc_iucv_write()
318 int written; in hvc_iucv_get_chars() local
329 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()
260 written = length; in ahd_proc_write_seeprom()
268 return (written); in ahd_proc_write_seeprom()

12345