Home
last modified time | relevance | path

Searched refs:kaddr (Results 1 – 10 of 10) sorted by relevance

/net/sunrpc/
Dsocklib.c103 char *kaddr; in xdr_partial_copy_from_skb() local
117 kaddr = kmap_atomic(*ppage); in xdr_partial_copy_from_skb()
122 ret = copy_actor(desc, kaddr + base, len); in xdr_partial_copy_from_skb()
127 ret = copy_actor(desc, kaddr, len); in xdr_partial_copy_from_skb()
130 kunmap_atomic(kaddr); in xdr_partial_copy_from_skb()
Dxdr.c123 char *kaddr; in xdr_terminate_string() local
125 kaddr = kmap_atomic(buf->pages[0]); in xdr_terminate_string()
126 kaddr[buf->page_base + len] = '\0'; in xdr_terminate_string()
127 kunmap_atomic(kaddr); in xdr_terminate_string()
735 void *kaddr; in xdr_set_page_base() local
748 kaddr = page_address(*xdr->page_ptr); in xdr_set_page_base()
751 xdr->p = (__be32*)(kaddr + pgoff); in xdr_set_page_base()
756 xdr->end = (__be32*)(kaddr + pgend); in xdr_set_page_base()
Dcache.c837 static ssize_t cache_do_downcall(char *kaddr, const char __user *buf, in cache_do_downcall() argument
844 if (copy_from_user(kaddr, buf, count)) in cache_do_downcall()
846 kaddr[count] = '\0'; in cache_do_downcall()
847 ret = cd->cache_parse(cd, kaddr, count); in cache_do_downcall()
873 char *kaddr; in cache_downcall() local
883 kaddr = kmap(page); in cache_downcall()
884 ret = cache_do_downcall(kaddr, buf, count, cd); in cache_downcall()
/net/netfilter/
Dxt_ipvs.c31 static bool ipvs_mt_addrcmp(const union nf_inet_addr *kaddr, in ipvs_mt_addrcmp() argument
37 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in ipvs_mt_addrcmp()
40 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in ipvs_mt_addrcmp()
Dxt_conntrack.c29 conntrack_addrcmp(const union nf_inet_addr *kaddr, in conntrack_addrcmp() argument
34 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in conntrack_addrcmp()
36 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp()
/net/ceph/
Dmessenger.c532 void *kaddr; in ceph_tcp_recvpage() local
537 kaddr = kmap(page); in ceph_tcp_recvpage()
538 BUG_ON(!kaddr); in ceph_tcp_recvpage()
539 ret = ceph_tcp_recvmsg(sock, kaddr + page_offset, length); in ceph_tcp_recvpage()
1482 char *kaddr; in ceph_crc32c_page() local
1484 kaddr = kmap(page); in ceph_crc32c_page()
1485 BUG_ON(kaddr == NULL); in ceph_crc32c_page()
1486 crc = crc32c(crc, kaddr + page_offset, length); in ceph_crc32c_page()
/net/
Dsocket.c192 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument
198 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel()
200 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel()
220 static int move_addr_to_user(struct sockaddr_storage *kaddr, int klen, in move_addr_to_user() argument
235 if (audit_sockaddr(klen, kaddr)) in move_addr_to_user()
237 if (copy_to_user(uaddr, kaddr, len)) in move_addr_to_user()
/net/ipv4/
Dip_output.c775 char *kaddr; in csum_page() local
777 kaddr = kmap(page); in csum_page()
778 csum = csum_partial(kaddr + offset, copy, 0); in csum_page()
/net/core/
Dsock.c2186 char *kaddr = kmap(page); in sock_no_sendpage() local
2187 iov.iov_base = kaddr + offset; in sock_no_sendpage()
/net/packet/
Daf_packet.c3984 void *kaddr = rb->pg_vec[i].buffer; in packet_mmap() local
3988 page = pgv_to_page(kaddr); in packet_mmap()
3993 kaddr += PAGE_SIZE; in packet_mmap()