Searched refs:copylen (Results 1 – 7 of 7) sorted by relevance
/drivers/input/serio/ |
D | userio.c | 126 size_t nonwrap_len, copylen; in userio_char_read() local 143 copylen = min(nonwrap_len, count); in userio_char_read() 144 if (copylen) { in userio_char_read() 145 memcpy(buf, &userio->buf[userio->tail], copylen); in userio_char_read() 146 userio->tail = (userio->tail + copylen) % in userio_char_read() 172 if (copylen) in userio_char_read() 173 if (copy_to_user(user_buffer, buf, copylen)) in userio_char_read() 176 return copylen; in userio_char_read()
|
/drivers/net/ |
D | macvtap.c | 678 int copylen = 0; in macvtap_get_user() local 716 copylen = vnet_hdr.hdr_len ? in macvtap_get_user() 718 if (copylen > good_linear) in macvtap_get_user() 719 copylen = good_linear; in macvtap_get_user() 720 else if (copylen < ETH_HLEN) in macvtap_get_user() 721 copylen = ETH_HLEN; in macvtap_get_user() 722 linear = copylen; in macvtap_get_user() 724 iov_iter_advance(&i, copylen); in macvtap_get_user() 730 copylen = len; in macvtap_get_user() 738 skb = macvtap_alloc_skb(&q->sk, MACVTAP_RESERVE, copylen, in macvtap_get_user()
|
D | tun.c | 1191 int copylen; in tun_get_user() local 1246 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user() 1247 if (copylen > good_linear) in tun_get_user() 1248 copylen = good_linear; in tun_get_user() 1249 linear = copylen; in tun_get_user() 1250 iov_iter_advance(&i, copylen); in tun_get_user() 1256 copylen = len; in tun_get_user() 1263 skb = tun_alloc_skb(tfile, align, copylen, linear, noblock); in tun_get_user()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rx.c | 914 u32 copylen = len; in iwlagn_rx_noa_notification() local 920 copylen += 1 + 2; in iwlagn_rx_noa_notification() 932 copylen); in iwlagn_rx_noa_notification()
|
/drivers/net/wireless/zydas/ |
D | zd1201.c | 233 unsigned short infotype, framelen, copylen; in zd1201_usbrx() local 298 copylen = le16_to_cpu(*(__le16*)&data[i+2]); in zd1201_usbrx() 300 if (copylen+zd->rxlen > sizeof(zd->rxdata)) in zd1201_usbrx() 302 memcpy(zd->rxdata+zd->rxlen, data+i+4, copylen); in zd1201_usbrx() 303 zd->rxlen += copylen; in zd1201_usbrx()
|
/drivers/media/usb/usbvision/ |
D | usbvision-core.c | 1137 long copylen = 0; in usbvision_parse_data() local 1151 newstate = usbvision_parse_lines_420(usbvision, ©len); in usbvision_parse_data() 1153 newstate = usbvision_parse_lines_422(usbvision, ©len); in usbvision_parse_data() 1155 newstate = usbvision_parse_compress(usbvision, ©len); in usbvision_parse_data() 1187 frame->scanlength += copylen; in usbvision_parse_data()
|
/drivers/net/wireless/ |
D | rndis_wlan.c | 716 int resplen, respoffs, copylen; in rndis_query_oid() local 763 copylen = buflen - respoffs; in rndis_query_oid() 765 copylen = resplen; in rndis_query_oid() 768 if (copylen > *len) in rndis_query_oid() 769 copylen = *len; in rndis_query_oid() 771 memcpy(data, u.buf + respoffs, copylen); in rndis_query_oid()
|