Home
last modified time | relevance | path

Searched refs:copied (Results 1 – 25 of 30) sorted by relevance

12

/drivers/scsi/
Dlibiscsi_tcp.c155 segment->copied = 0; in iscsi_tcp_segment_splice_digest()
178 unsigned copied) in iscsi_tcp_segment_done() argument
183 debug_tcp("copied %u %u size %u %s\n", segment->copied, copied, in iscsi_tcp_segment_done()
185 if (segment->hash && copied) { in iscsi_tcp_segment_done()
194 sg_set_page(&sg, sg_page(segment->sg), copied, in iscsi_tcp_segment_done()
195 segment->copied + segment->sg_offset + in iscsi_tcp_segment_done()
198 sg_init_one(&sg, segment->data + segment->copied, in iscsi_tcp_segment_done()
199 copied); in iscsi_tcp_segment_done()
200 crypto_hash_update(segment->hash, &sg, copied); in iscsi_tcp_segment_done()
203 segment->copied += copied; in iscsi_tcp_segment_done()
[all …]
Discsi_tcp.c213 unsigned int copied = 0; in iscsi_sw_tcp_xmit_segment() local
222 offset = segment->copied; in iscsi_sw_tcp_xmit_segment()
246 if (copied || r == -EAGAIN) in iscsi_sw_tcp_xmit_segment()
250 copied += r; in iscsi_sw_tcp_xmit_segment()
252 return copied; in iscsi_sw_tcp_xmit_segment()
/drivers/char/
Dtty_buffer.c248 int copied = 0; in tty_insert_flip_string() local
250 int space = tty_buffer_request_room(tty, size - copied); in tty_insert_flip_string()
258 copied += space; in tty_insert_flip_string()
262 } while (unlikely(size > copied)); in tty_insert_flip_string()
263 return copied; in tty_insert_flip_string()
284 int copied = 0; in tty_insert_flip_string_flags() local
286 int space = tty_buffer_request_room(tty, size - copied); in tty_insert_flip_string_flags()
294 copied += space; in tty_insert_flip_string_flags()
299 } while (unlikely(size > copied)); in tty_insert_flip_string_flags()
300 return copied; in tty_insert_flip_string_flags()
Dmem.c192 unsigned long copied; in write_mem() local
240 copied = copy_from_user(ptr, buf, sz); in write_mem()
241 if (copied) { in write_mem()
242 written += sz - copied; in write_mem()
527 unsigned long copied; in do_write_kmem() local
564 copied = copy_from_user(ptr, buf, sz); in do_write_kmem()
565 if (copied) { in do_write_kmem()
566 written += sz - copied; in do_write_kmem()
Dsx.c1123 int copied = 0; in sx_receive_chars() local
1163 copied += c; in sx_receive_chars()
1165 if (copied) { in sx_receive_chars()
1171 copied, (int)(tv.tv_sec % 60), (int)tv.tv_usec, in sx_receive_chars()
/drivers/gpu/drm/
Ddrm_crtc.c1002 int copied = 0, i; in drm_mode_getresources() local
1044 copied = 0; in drm_mode_getresources()
1047 if (put_user(fb->base.id, fb_id + copied)) { in drm_mode_getresources()
1051 copied++; in drm_mode_getresources()
1058 copied = 0; in drm_mode_getresources()
1064 if (put_user(crtc->base.id, crtc_id + copied)) { in drm_mode_getresources()
1068 copied++; in drm_mode_getresources()
1073 crtc_id + copied)) { in drm_mode_getresources()
1077 copied++; in drm_mode_getresources()
1085 copied = 0; in drm_mode_getresources()
[all …]
/drivers/serial/
Dsh-sci.c415 int i, count, copied = 0; in sci_receive_chars() local
488 copied += count; in sci_receive_chars()
492 if (copied) { in sci_receive_chars()
532 int copied = 0; in sci_handle_errors() local
539 copied++; in sci_handle_errors()
560 copied++; in sci_handle_errors()
566 copied++; in sci_handle_errors()
575 copied++; in sci_handle_errors()
580 if (copied) in sci_handle_errors()
583 return copied; in sci_handle_errors()
[all …]
/drivers/isdn/pcbit/
Dlayer2.c94 frame->copied = 0; in pcbit_l2_write()
175 if (frame->copied == 0) { in pcbit_transmit()
229 flen = 2 + (frame->skb->len - frame->copied); in pcbit_transmit()
242 cp_len = frame->skb->len - frame->copied; in pcbit_transmit()
246 memcpy_topcbit(dev, frame->skb->data + frame->copied, in pcbit_transmit()
248 frame->copied += cp_len; in pcbit_transmit()
256 if (frame->skb == NULL || frame->copied == frame->skb->len) { in pcbit_transmit()
439 frame->copied += tt; in pcbit_receive()
441 if (frame->copied == frame->hdr_len + frame->dt_len) { in pcbit_receive()
619 frame->copied = 0; in pcbit_l2_err_recover()
Dlayer2.h120 unsigned int copied; member
/drivers/s390/char/
Dvmur.c483 size_t len, copied, res; in diag14_read() local
503 copied = 0; in diag14_read()
512 if (reclen && (copied == 0) && (*offs < PAGE_SIZE)) in diag14_read()
514 len = min(count - copied, PAGE_SIZE - res); in diag14_read()
515 if (copy_to_user(ubuf + copied, buf + res, len)) { in diag14_read()
520 copied += len; in diag14_read()
521 } while (copied != count); in diag14_read()
523 *offs += copied; in diag14_read()
524 rc = copied; in diag14_read()
/drivers/char/rio/
Driointr.c521 int copied = 0; in RIOReceive() local
623 copied += transCount; in RIOReceive()
639 if (copied) { in RIOReceive()
640 …O_DEBUG_REC, "port %d: pushing tty flip buffer: %d total bytes copied.\n", PortP->PortNum, copied); in RIOReceive()
/drivers/video/
Dtgafb.c1156 unsigned long i, copied, left; local
1195 copied = 32 - (dalign + (dpos & 31));
1196 if (copied == 32)
1197 copied = 0;
1198 xincr_first = (copied + 7) & -8;
1199 smask_first = dmask_first = (1ul << copied) - 1;
1202 if (need_prime && copied > 24)
1203 copied -= 8;
1204 left = width - copied;
1207 if (copied > width) {
/drivers/isdn/mISDN/
Dsocket.c120 int copied, err; in mISDN_sock_recvmsg() local
158 copied = skb->len + MISDN_HEADER_LEN; in mISDN_sock_recvmsg()
159 if (len < copied) { in mISDN_sock_recvmsg()
169 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in mISDN_sock_recvmsg()
175 return err ? : copied; in mISDN_sock_recvmsg()
/drivers/block/
Dloop.c227 unsigned size, copied; in do_lo_send_aops() local
244 copied = size; in do_lo_send_aops()
246 copied = 0; in do_lo_send_aops()
248 ret = pagecache_write_end(file, mapping, pos, size, copied, in do_lo_send_aops()
250 if (ret < 0 || ret != copied) in do_lo_send_aops()
256 bv_offs += copied; in do_lo_send_aops()
257 len -= copied; in do_lo_send_aops()
260 pos += copied; in do_lo_send_aops()
/drivers/net/benet/
Dbe_main.c284 u32 wrb_cnt, u32 copied, bool stopped) in be_tx_stats_update() argument
289 stats->be_tx_bytes += copied; in be_tx_stats_update()
369 u32 i, copied = 0; in make_tx_wrbs() local
389 copied += len; in make_tx_wrbs()
402 copied += frag->size; in make_tx_wrbs()
415 wrb_cnt, copied); in make_tx_wrbs()
418 return copied; in make_tx_wrbs()
426 u32 wrb_cnt = 0, copied = 0; in be_xmit() local
432 copied = make_tx_wrbs(adapter, skb, wrb_cnt, dummy_wrb); in be_xmit()
451 be_tx_stats_update(adapter, wrb_cnt, copied, stopped); in be_xmit()
/drivers/scsi/cxgb3i/
Dcxgb3i_offload.c1672 void cxgb3i_c3cn_rx_credits(struct s3_conn *c3cn, int copied) in cxgb3i_c3cn_rx_credits() argument
1715 int err, copied = 0; in cxgb3i_c3cn_send_pdus() local
1761 copied += skb->len; in cxgb3i_c3cn_send_pdus()
1769 return copied; in cxgb3i_c3cn_send_pdus()
1772 if (copied == 0 && err == -EPIPE) in cxgb3i_c3cn_send_pdus()
1773 copied = c3cn->err ? c3cn->err : -EPIPE; in cxgb3i_c3cn_send_pdus()
/drivers/s390/crypto/
Dzcrypt_api.c372 int rc, copied; in zcrypt_rsa_crt() local
384 copied = 0; in zcrypt_rsa_crt()
399 if (copied == 0) { in zcrypt_rsa_crt()
409 copied = 1; in zcrypt_rsa_crt()
/drivers/net/wireless/hostap/
Dhostap_proc.c275 int start_bytes, left, copy, copied; in prism2_io_debug_proc_read() local
284 copied = 0; in prism2_io_debug_proc_read()
/drivers/staging/meilhaus/
Dme4600_ai.c2837 int copied = 0; in ai_read_data() local
2857 copied = empty_space; in ai_read_data()
2873 copied += j; in ai_read_data()
2875 return copied; in ai_read_data()
3282 int copied = 0; in ai_read_data_pooling() local
3302 copied); in ai_read_data_pooling()
3306 copied); in ai_read_data_pooling()
3310 return (!status) ? copied : -ME_ERRNO_RING_BUFFER_OVERFLOW; in ai_read_data_pooling()
Dme6000_ao.c3088 int copied; in ao_get_data_from_user() local
3093 copied = (count < empty_space) ? count : empty_space; in ao_get_data_from_user()
3094 for (i = 0; i < copied; i++) { //Copy from user to buffer in ao_get_data_from_user()
3108 PINFO("idx=%d BUFFER LOADED %d values\n", instance->ao_idx, copied); in ao_get_data_from_user()
3109 return copied; in ao_get_data_from_user()
/drivers/atm/
Dnicstarmac.copyright26 * as needed. This means that data must always be copied to create
/drivers/media/video/
Dov511.c3322 int b, read = 0, allzero, copied = 0; in ov511_move_data() local
3341 if (frame->bytes_recvd + copied + 32 <= max_raw) in ov511_move_data()
3344 + frame->bytes_recvd + copied, in ov511_move_data()
3346 copied += 32; in ov511_move_data()
3354 frame->bytes_recvd += copied; in ov511_move_data()
3480 int b, read = 0, allzero, copied = 0; in ov518_move_data() local
3494 if (frame->bytes_recvd + copied + 8 <= max_raw) in ov518_move_data()
3497 + frame->bytes_recvd + copied, in ov518_move_data()
3499 copied += 8; in ov518_move_data()
3506 frame->bytes_recvd += copied; in ov518_move_data()
/drivers/s390/net/
Dnetiucv.c1168 int copied = 0; in netiucv_transmit_skb() local
1181 copied = 1; in netiucv_transmit_skb()
1210 if (copied) in netiucv_transmit_skb()
1222 if (copied) in netiucv_transmit_skb()
/drivers/isdn/capi/
Dcapi.c688 size_t copied; in capi_read() local
716 copied = skb->len; in capi_read()
720 return copied; in capi_read()
/drivers/usb/musb/
DKconfig143 All data is copied between memory and FIFO by the CPU.

12