/linux-4.1.27/tools/testing/selftests/powerpc/copyloops/ |
H A D | validate.c | 20 char *srcp, *dstp; do_one() local 24 srcp = src + MIN_REDZONE + src_off; do_one() 29 memcpy(srcp, fill, len); do_one() 31 ret = COPY_LOOP(dstp, srcp, len); do_one() 33 printf("(%p,%p,%ld) returned %ld\n", dstp, srcp, len, ret); do_one() 37 if (memcmp(dstp, srcp, len)) { do_one() 38 printf("(%p,%p,%ld) miscompare\n", dstp, srcp, len); do_one() 41 printf("%02x ", srcp[i]); do_one() 51 dstp, srcp, len); do_one() 57 dstp, srcp, len); do_one()
|
/linux-4.1.27/arch/nios2/lib/ |
H A D | memcpy.c | 72 static void _wordcopy_fwd_aligned(long int dstp, long int srcp, size_t len) _wordcopy_fwd_aligned() argument 77 a0 = ((op_t *) srcp)[0]; _wordcopy_fwd_aligned() 78 a1 = ((op_t *) srcp)[1]; _wordcopy_fwd_aligned() 79 a2 = ((op_t *) srcp)[2]; _wordcopy_fwd_aligned() 80 a3 = ((op_t *) srcp)[3]; _wordcopy_fwd_aligned() 81 a4 = ((op_t *) srcp)[4]; _wordcopy_fwd_aligned() 82 a5 = ((op_t *) srcp)[5]; _wordcopy_fwd_aligned() 83 a6 = ((op_t *) srcp)[6]; _wordcopy_fwd_aligned() 84 a7 = ((op_t *) srcp)[7]; _wordcopy_fwd_aligned() 94 srcp += 8 * OPSIZ; _wordcopy_fwd_aligned() 99 *(op_t *)dstp = *(op_t *)srcp; _wordcopy_fwd_aligned() 101 srcp += OPSIZ; _wordcopy_fwd_aligned() 112 static void _wordcopy_fwd_dest_aligned(long int dstp, long int srcp, _wordcopy_fwd_dest_aligned() argument 119 aligned srcp to make it aligned for copy. */ _wordcopy_fwd_dest_aligned() 121 sh_1 = 8 * (srcp % OPSIZ); _wordcopy_fwd_dest_aligned() 126 srcp &= -OPSIZ; _wordcopy_fwd_dest_aligned() 127 ap = ((op_t *) srcp)[0]; _wordcopy_fwd_dest_aligned() 128 srcp += OPSIZ; _wordcopy_fwd_dest_aligned() 133 a0 = ((op_t *) srcp)[0]; _wordcopy_fwd_dest_aligned() 134 a1 = ((op_t *) srcp)[1]; _wordcopy_fwd_dest_aligned() 135 a2 = ((op_t *) srcp)[2]; _wordcopy_fwd_dest_aligned() 136 a3 = ((op_t *) srcp)[3]; _wordcopy_fwd_dest_aligned() 143 srcp += 4 * OPSIZ; _wordcopy_fwd_dest_aligned() 150 a0 = ((op_t *) srcp)[0]; _wordcopy_fwd_dest_aligned() 154 srcp += OPSIZ; _wordcopy_fwd_dest_aligned() 163 unsigned long int srcp = (long int) srcpp; memcpy() local 171 BYTE_COPY_FWD(dstp, srcp, (-dstp) % OPSIZ); memcpy() 176 /* PAGE_COPY_FWD_MAYBE (dstp, srcp, len, len); */ memcpy() 183 WORD_COPY_FWD(dstp, srcp, len, len); memcpy() 189 BYTE_COPY_FWD(dstp, srcp, len); memcpy() 197 unsigned long int srcp = (long int) srcpp; memcpyb() local 199 BYTE_COPY_FWD(dstp, srcp, len); memcpyb()
|
/linux-4.1.27/include/linux/ |
H A D | cpumask.h | 124 static inline unsigned int cpumask_first(const struct cpumask *srcp) cpumask_first() argument 130 static inline unsigned int cpumask_next(int n, const struct cpumask *srcp) cpumask_next() argument 135 static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp) cpumask_next_zero() argument 141 const struct cpumask *srcp, cpumask_next_and() 168 * @srcp: the cpumask pointer 172 static inline unsigned int cpumask_first(const struct cpumask *srcp) cpumask_first() argument 174 return find_first_bit(cpumask_bits(srcp), nr_cpumask_bits); cpumask_first() 180 * @srcp: the cpumask pointer 184 static inline unsigned int cpumask_next(int n, const struct cpumask *srcp) cpumask_next() argument 189 return find_next_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1); cpumask_next() 195 * @srcp: the cpumask pointer 199 static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp) cpumask_next_zero() argument 204 return find_next_zero_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1); cpumask_next_zero() 403 * cpumask_complement - *dstp = ~*srcp 405 * @srcp: the input to invert 408 const struct cpumask *srcp) cpumask_complement() 410 bitmap_complement(cpumask_bits(dstp), cpumask_bits(srcp), cpumask_complement() 453 * cpumask_empty - *srcp == 0 454 * @srcp: the cpumask to that all cpus < nr_cpu_ids are clear. 456 static inline bool cpumask_empty(const struct cpumask *srcp) cpumask_empty() argument 458 return bitmap_empty(cpumask_bits(srcp), nr_cpumask_bits); cpumask_empty() 462 * cpumask_full - *srcp == 0xFFFFFFFF... 463 * @srcp: the cpumask to that all cpus < nr_cpu_ids are set. 465 static inline bool cpumask_full(const struct cpumask *srcp) cpumask_full() argument 467 return bitmap_full(cpumask_bits(srcp), nr_cpumask_bits); cpumask_full() 471 * cpumask_weight - Count of bits in *srcp 472 * @srcp: the cpumask to count bits (< nr_cpu_ids) in. 474 static inline unsigned int cpumask_weight(const struct cpumask *srcp) cpumask_weight() argument 476 return bitmap_weight(cpumask_bits(srcp), nr_cpumask_bits); cpumask_weight() 480 * cpumask_shift_right - *dstp = *srcp >> n 482 * @srcp: the input to shift 486 const struct cpumask *srcp, int n) cpumask_shift_right() 488 bitmap_shift_right(cpumask_bits(dstp), cpumask_bits(srcp), n, cpumask_shift_right() 493 * cpumask_shift_left - *dstp = *srcp << n 495 * @srcp: the input to shift 499 const struct cpumask *srcp, int n) cpumask_shift_left() 501 bitmap_shift_left(cpumask_bits(dstp), cpumask_bits(srcp), n, cpumask_shift_left() 506 * cpumask_copy - *dstp = *srcp 508 * @srcp: the input cpumask 511 const struct cpumask *srcp) cpumask_copy() 513 bitmap_copy(cpumask_bits(dstp), cpumask_bits(srcp), nr_cpumask_bits); cpumask_copy() 517 * cpumask_any - pick a "random" cpu from *srcp 518 * @srcp: the input cpumask 522 #define cpumask_any(srcp) cpumask_first(srcp) 140 cpumask_next_and(int n, const struct cpumask *srcp, const struct cpumask *andp) cpumask_next_and() argument 407 cpumask_complement(struct cpumask *dstp, const struct cpumask *srcp) cpumask_complement() argument 485 cpumask_shift_right(struct cpumask *dstp, const struct cpumask *srcp, int n) cpumask_shift_right() argument 498 cpumask_shift_left(struct cpumask *dstp, const struct cpumask *srcp, int n) cpumask_shift_left() argument 510 cpumask_copy(struct cpumask *dstp, const struct cpumask *srcp) cpumask_copy() argument
|
H A D | nodemask.h | 184 const nodemask_t *srcp, unsigned int nbits) __nodes_complement() 186 bitmap_complement(dstp->bits, srcp->bits, nbits); __nodes_complement() 214 static inline int __nodes_empty(const nodemask_t *srcp, unsigned int nbits) __nodes_empty() argument 216 return bitmap_empty(srcp->bits, nbits); __nodes_empty() 220 static inline int __nodes_full(const nodemask_t *srcp, unsigned int nbits) __nodes_full() argument 222 return bitmap_full(srcp->bits, nbits); __nodes_full() 226 static inline int __nodes_weight(const nodemask_t *srcp, unsigned int nbits) __nodes_weight() argument 228 return bitmap_weight(srcp->bits, nbits); __nodes_weight() 234 const nodemask_t *srcp, int n, int nbits) __nodes_shift_right() 236 bitmap_shift_right(dstp->bits, srcp->bits, n, nbits); __nodes_shift_right() 242 const nodemask_t *srcp, int n, int nbits) __nodes_shift_left() 244 bitmap_shift_left(dstp->bits, srcp->bits, n, nbits); __nodes_shift_left() 251 static inline int __first_node(const nodemask_t *srcp) __first_node() argument 253 return min_t(int, MAX_NUMNODES, find_first_bit(srcp->bits, MAX_NUMNODES)); __first_node() 257 static inline int __next_node(int n, const nodemask_t *srcp) __next_node() argument 259 return min_t(int,MAX_NUMNODES,find_next_bit(srcp->bits, MAX_NUMNODES, n+1)); __next_node() 336 static inline void __nodes_remap(nodemask_t *dstp, const nodemask_t *srcp, __nodes_remap() argument 339 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); __nodes_remap() 183 __nodes_complement(nodemask_t *dstp, const nodemask_t *srcp, unsigned int nbits) __nodes_complement() argument 233 __nodes_shift_right(nodemask_t *dstp, const nodemask_t *srcp, int n, int nbits) __nodes_shift_right() argument 241 __nodes_shift_left(nodemask_t *dstp, const nodemask_t *srcp, int n, int nbits) __nodes_shift_left() argument
|
H A D | dmaengine.h | 952 __dma_has_cap(enum dma_transaction_type tx_type, dma_cap_mask_t *srcp) __dma_has_cap() argument 954 return test_bit(tx_type, srcp->bits); __dma_has_cap()
|
/linux-4.1.27/sound/synth/emux/ |
H A D | emux_effect.c | 182 unsigned char *srcp, *origp; snd_emux_send_effect() local 214 srcp = (unsigned char*)&vp->reg.parm + offset; snd_emux_send_effect() 217 *srcp = *origp; snd_emux_send_effect() 218 effect_set_byte(srcp, chan, type); snd_emux_send_effect() 220 *(unsigned short*)srcp = *(unsigned short*)origp; snd_emux_send_effect() 221 effect_set_word((unsigned short*)srcp, chan, type); snd_emux_send_effect() 237 unsigned char *srcp; snd_emux_setup_effect() local 255 srcp = (unsigned char*)&vp->reg.parm + offset; snd_emux_setup_effect() 257 effect_set_byte(srcp, chan, i); snd_emux_setup_effect() 259 effect_set_word((unsigned short*)srcp, chan, i); snd_emux_setup_effect()
|
/linux-4.1.27/net/sunrpc/xprtrdma/ |
H A D | rpc_rdma.c | 308 unsigned char *srcp, *destp; rpcrdma_inline_pullup() local 352 srcp = kmap_atomic(ppages[i]); rpcrdma_inline_pullup() 353 memcpy(destp, srcp+page_base, curlen); rpcrdma_inline_pullup() 354 kunmap_atomic(srcp); rpcrdma_inline_pullup() 611 rpcrdma_inline_fixup(struct rpc_rqst *rqst, char *srcp, int copy_len, int pad) rpcrdma_inline_fixup() argument 624 dprintk("RPC: %s: srcp 0x%p len %d hdrlen %d\n", rpcrdma_inline_fixup() 625 __func__, srcp, copy_len, curlen); rpcrdma_inline_fixup() 628 rqst->rq_rcv_buf.head[0].iov_base = srcp; rpcrdma_inline_fixup() 629 srcp += curlen; rpcrdma_inline_fixup() 647 " srcp 0x%p len %d curlen %d\n", rpcrdma_inline_fixup() 648 __func__, i, srcp, copy_len, curlen); rpcrdma_inline_fixup() 650 memcpy(destp + page_base, srcp, curlen); rpcrdma_inline_fixup() 653 srcp += curlen; rpcrdma_inline_fixup() 665 if (rqst->rq_rcv_buf.tail[0].iov_base != srcp) rpcrdma_inline_fixup() 666 memmove(rqst->rq_rcv_buf.tail[0].iov_base, srcp, curlen); rpcrdma_inline_fixup() 667 dprintk("RPC: %s: tail srcp 0x%p len %d curlen %d\n", rpcrdma_inline_fixup() 668 __func__, srcp, copy_len, curlen); rpcrdma_inline_fixup()
|
H A D | svc_rdma_recvfrom.c | 377 char *srcp, *destp; rdma_copy_tail() local 381 srcp = head->arg.head[0].iov_base + position; rdma_copy_tail() 393 *destp++ = *srcp++; rdma_copy_tail() 406 *destp++ = *srcp++; rdma_copy_tail()
|
/linux-4.1.27/crypto/ |
H A D | eseqiv.c | 75 struct page *srcp; eseqiv_givencrypt() local 94 srcp = sg_page(osrc); eseqiv_givencrypt() 96 vsrc = PageHighMem(srcp) ? NULL : page_address(srcp) + osrc->offset; eseqiv_givencrypt()
|
H A D | authenc.c | 492 struct page *srcp; crypto_authenc_iverify() local 495 srcp = sg_page(src); crypto_authenc_iverify() 496 vsrc = PageHighMem(srcp) ? NULL : page_address(srcp) + src->offset; crypto_authenc_iverify()
|
H A D | authencesn.c | 569 struct page *srcp; crypto_authenc_esn_iverify() local 572 srcp = sg_page(src); crypto_authenc_esn_iverify() 573 vsrc = PageHighMem(srcp) ? NULL : page_address(srcp) + src->offset; crypto_authenc_esn_iverify()
|
H A D | gcm.c | 1131 struct page *srcp; crypto_rfc4543_crypt() local 1150 srcp = sg_page(src); crypto_rfc4543_crypt() 1151 vsrc = PageHighMem(srcp) ? NULL : page_address(srcp) + src->offset; crypto_rfc4543_crypt()
|
/linux-4.1.27/include/net/ |
H A D | transp_v6.h | 48 __u16 srcp, __u16 destp, int bucket);
|
/linux-4.1.27/arch/parisc/lib/ |
H A D | memcpy.c | 176 aligned srcp to make it aligned for copy. */ copy_dstaligned() 279 static noinline unsigned long pa_memcpy_internal(void *dstp, const void *srcp, pa_memcpy_internal() argument 288 src = (unsigned long)srcp; pa_memcpy_internal() 290 pcs = (unsigned char *)srcp; pa_memcpy_internal() 293 /* prefetch_src((const void *)srcp); */ pa_memcpy_internal() 463 static unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len) pa_memcpy() argument 468 ret = pa_memcpy_internal(dstp, srcp, len); pa_memcpy() 478 reference = (unsigned long) srcp; pa_memcpy()
|
/linux-4.1.27/net/ipv6/ |
H A D | ping.c | 208 __u16 srcp = ntohs(inet->inet_sport); ping_v6_seq_show() local 210 ip6_dgram_sock_seq_show(seq, v, srcp, destp, bucket); ping_v6_seq_show()
|
H A D | tcp_ipv6.c | 1681 __u16 destp, srcp; get_tcp6_sock() local 1692 srcp = ntohs(inet->inet_sport); get_tcp6_sock() 1713 src->s6_addr32[2], src->s6_addr32[3], srcp, get_tcp6_sock() 1741 __u16 destp, srcp; get_timewait6_sock() local 1746 srcp = ntohs(tw->tw_sport); get_timewait6_sock() 1753 src->s6_addr32[2], src->s6_addr32[3], srcp, get_timewait6_sock()
|
H A D | datagram.c | 963 __u16 srcp, __u16 destp, int bucket) ip6_dgram_sock_seq_show() 974 src->s6_addr32[2], src->s6_addr32[3], srcp, ip6_dgram_sock_seq_show() 962 ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, __u16 srcp, __u16 destp, int bucket) ip6_dgram_sock_seq_show() argument
|
H A D | raw.c | 1239 __u16 srcp = inet_sk(sp)->inet_num; raw6_seq_show() local 1240 ip6_dgram_sock_seq_show(seq, v, srcp, 0, raw6_seq_show()
|
H A D | udp.c | 1473 __u16 srcp = ntohs(inet->inet_sport); udp6_seq_show() local 1475 ip6_dgram_sock_seq_show(seq, v, srcp, destp, bucket); udp6_seq_show()
|
/linux-4.1.27/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 1135 u8 *srcp; bnx2i_cpy_scsi_cdb() local 1144 srcp = (u8 *) sc->cmnd; bnx2i_cpy_scsi_cdb() 1147 memcpy(&dword, (const void *) srcp, 4); bnx2i_cpy_scsi_cdb() 1149 srcp += 4; bnx2i_cpy_scsi_cdb() 1153 dword = (u32) srcp[0] | ((u32) srcp[1] << 8); bnx2i_cpy_scsi_cdb()
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_ipv4.c | 2198 __u16 srcp = ntohs(inet->inet_sport); get_tcp4_sock() local 2227 i, src, srcp, dest, destp, sk->sk_state, get_tcp4_sock() 2251 __u16 destp, srcp; get_timewait4_sock() local 2256 srcp = ntohs(tw->tw_sport); get_timewait4_sock() 2260 i, src, srcp, dest, destp, tw->tw_substate, 0, 0, get_timewait4_sock()
|
H A D | ping.c | 1110 __u16 srcp = ntohs(inet->inet_sport); ping_v4_format_sock() local 1114 bucket, src, srcp, dest, destp, sp->sk_state, ping_v4_format_sock()
|
H A D | raw.c | 1015 srcp = inet->inet_num; raw_sock_seq_show() local 1019 i, src, srcp, dest, destp, sp->sk_state, raw_sock_seq_show()
|
H A D | udp.c | 2421 __u16 srcp = ntohs(inet->inet_sport); udp4_format_sock() local 2425 bucket, src, srcp, dest, destp, sp->sk_state, udp4_format_sock()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
H A D | qp.c | 367 u8 *dstp, *srcp; build_immd() local 376 srcp = (u8 *)(unsigned long)wr->sg_list[i].addr; build_immd() 386 memcpy(dstp, srcp, len); build_immd() 388 srcp += len; build_immd()
|
/linux-4.1.27/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 2739 struct mcp_kreq_ether_send *srcp; myri10ge_submit_req() local 2748 srcp = src; myri10ge_submit_req() 2752 myri10ge_pio_copy(dstp, srcp, 2 * sizeof(*src)); myri10ge_submit_req() 2754 srcp += 2; myri10ge_submit_req() 2765 myri10ge_pio_copy(dstp, srcp, sizeof(*src)); myri10ge_submit_req()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_sli.c | 9475 * @srcp: Source memory pointer. 9486 lpfc_sli_pcimem_bcopy(void *srcp, void *destp, uint32_t cnt) lpfc_sli_pcimem_bcopy() argument 9488 uint32_t *src = srcp; lpfc_sli_pcimem_bcopy() 9505 * @srcp: Source memory pointer. 9514 lpfc_sli_bemem_bcopy(void *srcp, void *destp, uint32_t cnt) lpfc_sli_bemem_bcopy() argument 9516 uint32_t *src = srcp; lpfc_sli_bemem_bcopy()
|