Home
last modified time | relevance | path

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

1234

/linux-4.19.296/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()
/linux-4.19.296/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()
523 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()
813 ssize_t written; in lp_console_write() local
832 written = parport_write (port, s, canwrite); in lp_console_write()
834 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()
/linux-4.19.296/drivers/s390/char/
Dmonwriter.c220 size_t len, written; in monwrite_write() local
225 for (written = 0; written < count; ) { in monwrite_write()
227 len = min(count - written, monpriv->hdr_to_read); in monwrite_write()
230 if (copy_from_user(to, data + written, len)) { in monwrite_write()
235 written += len; in monwrite_write()
246 len = min(count - written, monpriv->data_to_read); in monwrite_write()
249 if (copy_from_user(to, data + written, len)) { in monwrite_write()
254 written += len; in monwrite_write()
264 return written; in monwrite_write()
Dsclp_con.c167 int written; in sclp_console_write() local
196 written = sclp_write(sclp_conbuf, (const unsigned char *) in sclp_console_write()
198 if (written == count) in sclp_console_write()
208 message += written; in sclp_console_write()
209 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.c192 size_t written; in tapechar_write() local
223 written = 0; in tapechar_write()
236 written += block_size - request->rescnt; in tapechar_write()
249 if (written > 0) in tapechar_write()
264 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()
437 raw->written -= req->len; in raw3215_irq()
454 raw->written -= req->len; in raw3215_irq()
473 BUG_ON(raw->written != 0); in raw3215_drop_line()
1039 int i, written; in tty3215_write() local
1044 written = count; in tty3215_write()
[all …]
Dsclp_vt220.c410 int written; in __sclp_vt220_write() local
438 written = sclp_vt220_add_msg(sclp_vt220_current_request, in __sclp_vt220_write()
440 overall_written += written; in __sclp_vt220_write()
441 if (written == count) in __sclp_vt220_write()
451 buf += written; in __sclp_vt220_write()
452 count -= written; in __sclp_vt220_write()
/linux-4.19.296/fs/ubifs/
Dtnc_commit.c116 int len, gap_remains, gap_pos, written, pad_len; in fill_gap() local
126 written = 0; in fill_gap()
144 written += 1; in fill_gap()
156 lnum, gap_start, gap_end, gap_end - gap_start, written, pad_len); in fill_gap()
159 return written; in fill_gap()
235 int lnum, dirt = 0, gap_start, gap_end, err, written, tot_written; in layout_leb_in_gaps() local
284 written = fill_gap(c, lnum, gap_start, gap_end, &dirt); in layout_leb_in_gaps()
285 if (written < 0) { in layout_leb_in_gaps()
287 return written; /* Error code */ in layout_leb_in_gaps()
289 tot_written += written; in layout_leb_in_gaps()
[all …]
/linux-4.19.296/lib/
Dtest_printf.c37 int ret, written; in do_test() local
66 written = min(bufsize-1, elen); in do_test()
67 if (test_buffer[written]) { in do_test()
73 if (memchr_inv(test_buffer + written + 1, FILL_CHAR, BUF_SIZE + PAD_SIZE - (written + 1))) { in do_test()
79 if (memcmp(test_buffer, expect, written)) { in do_test()
81 bufsize, fmt, test_buffer, written, expect); in do_test()
Dstring.c284 ssize_t written; in strscpy_pad() local
286 written = strscpy(dest, src, count); in strscpy_pad()
287 if (written < 0 || written == count - 1) in strscpy_pad()
288 return written; in strscpy_pad()
290 memset(dest + written + 1, 0, count - written - 1); in strscpy_pad()
292 return written; in strscpy_pad()
/linux-4.19.296/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()
/linux-4.19.296/drivers/parport/
Dieee1284_ops.c412 size_t written; in parport_ieee1284_ecp_write_data()
429 for (written = 0; written < len; written++, buf++) { in parport_ieee1284_ecp_write_data()
486 return written; in parport_ieee1284_ecp_write_data()
647 size_t written; in parport_ieee1284_ecp_write_addr()
665 for (written = 0; written < len; written++, buf++) { in parport_ieee1284_ecp_write_addr()
722 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 …]
/linux-4.19.296/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()
/linux-4.19.296/fs/xfs/
Dxfs_itable.h70 long *written); /* # of bytes written */
77 long *written); /* # of bytes written */
Dxfs_itable.c527 long *written) /* # of bytes written */ in xfs_inumbers_fmt() argument
531 *written = count * sizeof(*buffer); in xfs_inumbers_fmt()
594 long written; in xfs_inumbers() local
596 error = formatter(ubuffer, buffer, bufidx, &written); in xfs_inumbers()
599 ubuffer += written; in xfs_inumbers()
623 long written; in xfs_inumbers() local
625 error = formatter(ubuffer, buffer, bufidx, &written); in xfs_inumbers()
/linux-4.19.296/fs/ceph/
Dfile.c1133 int written = 0; in ceph_sync_write() local
1221 written += len; in ceph_sync_write()
1232 if (ret != -EOLDSNAPC && written > 0) { in ceph_sync_write()
1233 ret = written; in ceph_sync_write()
1393 ssize_t count, written = 0; in ceph_write_iter() local
1499 written = ceph_direct_read_write(iocb, &data, snapc, in ceph_write_iter()
1502 written = ceph_sync_write(iocb, &data, pos, snapc); in ceph_write_iter()
1503 if (written > 0) in ceph_write_iter()
1504 iov_iter_advance(from, written); in ceph_write_iter()
1514 written = generic_perform_write(file, from, pos); in ceph_write_iter()
[all …]
/linux-4.19.296/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c445 ssize_t written = 0; in hwicap_write() local
483 buf + written, in hwicap_write()
490 if (copy_from_user(kbuf, buf + written, len)) { in hwicap_write()
510 written += len; in hwicap_write()
515 buf + written, left)) { in hwicap_write()
517 written += left; in hwicap_write()
523 status = written; in hwicap_write()
/linux-4.19.296/fs/
Diomap.c53 loff_t written = 0, ret; in iomap_apply() local
87 written = actor(inode, pos, length, data, &iomap); in iomap_apply()
95 written > 0 ? written : 0, in iomap_apply()
99 return written ? written : ret; in iomap_apply()
811 ssize_t written = 0; in iomap_write_actor() local
877 written += copied; in iomap_write_actor()
883 return written ? written : status; in iomap_write_actor()
891 loff_t pos = iocb->ki_pos, ret = 0, written = 0; in iomap_file_buffered_write() local
899 written += ret; in iomap_file_buffered_write()
902 return written ? written : ret; in iomap_file_buffered_write()
[all …]
/linux-4.19.296/fs/ecryptfs/
Dcrypto.c906 static void write_ecryptfs_marker(char *page_virt, size_t *written) in write_ecryptfs_marker() argument
915 (*written) = MAGIC_ECRYPTFS_MARKER_SIZE_BYTES; in write_ecryptfs_marker()
920 size_t *written) in ecryptfs_write_crypt_stat_flags() argument
931 (*written) = 4; in ecryptfs_write_crypt_stat_flags()
1034 size_t *written) in ecryptfs_write_header_metadata() argument
1045 (*written) = 6; in ecryptfs_write_header_metadata()
1087 size_t written; in ecryptfs_write_headers_virt() local
1091 write_ecryptfs_marker((page_virt + offset), &written); in ecryptfs_write_headers_virt()
1092 offset += written; in ecryptfs_write_headers_virt()
1094 &written); in ecryptfs_write_headers_virt()
[all …]

1234