/linux-4.4.14/arch/parisc/lib/ |
H A D | memset.c | 31 long int dstp = (long int) dstpp; memset() local 47 while (dstp % OPSIZ != 0) memset() 49 ((unsigned char *) dstp)[0] = c; memset() 50 dstp += 1; memset() 58 ((op_t *) dstp)[0] = cccc; memset() 59 ((op_t *) dstp)[1] = cccc; memset() 60 ((op_t *) dstp)[2] = cccc; memset() 61 ((op_t *) dstp)[3] = cccc; memset() 62 ((op_t *) dstp)[4] = cccc; memset() 63 ((op_t *) dstp)[5] = cccc; memset() 64 ((op_t *) dstp)[6] = cccc; memset() 65 ((op_t *) dstp)[7] = cccc; memset() 66 dstp += 8 * OPSIZ; memset() 75 ((op_t *) dstp)[0] = cccc; memset() 76 dstp += OPSIZ; memset() 85 ((unsigned char *) dstp)[0] = c; memset() 86 dstp += 1; memset()
|
H A D | memcpy.c | 279 static noinline unsigned long pa_memcpy_internal(void *dstp, const void *srcp, pa_memcpy_internal() argument 289 dst = (unsigned long)dstp; pa_memcpy_internal() 291 pcd = (unsigned char *)dstp; 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() 480 reference = (unsigned long) dstp; pa_memcpy()
|
/linux-4.4.14/tools/testing/selftests/powerpc/copyloops/ |
H A D | validate.c | 20 char *srcp, *dstp; do_one() local 25 dstp = dst + MIN_REDZONE + dst_off; do_one() 31 ret = COPY_LOOP(dstp, srcp, len); do_one() 32 if (ret && ret != (unsigned long)dstp) { 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() 44 printf("%02x ", dstp[i]); do_one() 49 if (memcmp(dst, redzone, dstp - dst)) { do_one() 51 dstp, srcp, len); do_one() 55 if (memcmp(dstp+len, redzone, dst+BUFLEN-(dstp+len))) { do_one() 57 dstp, srcp, len); do_one()
|
/linux-4.4.14/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 85 ((op_t *) dstp)[0] = a0; _wordcopy_fwd_aligned() 86 ((op_t *) dstp)[1] = a1; _wordcopy_fwd_aligned() 87 ((op_t *) dstp)[2] = a2; _wordcopy_fwd_aligned() 88 ((op_t *) dstp)[3] = a3; _wordcopy_fwd_aligned() 89 ((op_t *) dstp)[4] = a4; _wordcopy_fwd_aligned() 90 ((op_t *) dstp)[5] = a5; _wordcopy_fwd_aligned() 91 ((op_t *) dstp)[6] = a6; _wordcopy_fwd_aligned() 92 ((op_t *) dstp)[7] = a7; _wordcopy_fwd_aligned() 95 dstp += 8 * OPSIZ; _wordcopy_fwd_aligned() 99 *(op_t *)dstp = *(op_t *)srcp; _wordcopy_fwd_aligned() 102 dstp += OPSIZ; _wordcopy_fwd_aligned() 112 static void _wordcopy_fwd_dest_aligned(long int dstp, long int srcp, _wordcopy_fwd_dest_aligned() argument 137 ((op_t *) dstp)[0] = MERGE(ap, sh_1, a0, sh_2); _wordcopy_fwd_dest_aligned() 138 ((op_t *) dstp)[1] = MERGE(a0, sh_1, a1, sh_2); _wordcopy_fwd_dest_aligned() 139 ((op_t *) dstp)[2] = MERGE(a1, sh_1, a2, sh_2); _wordcopy_fwd_dest_aligned() 140 ((op_t *) dstp)[3] = MERGE(a2, sh_1, a3, sh_2); _wordcopy_fwd_dest_aligned() 144 dstp += 4 * OPSIZ; _wordcopy_fwd_dest_aligned() 151 ((op_t *) dstp)[0] = MERGE(ap, sh_1, a0, sh_2); _wordcopy_fwd_dest_aligned() 155 dstp += OPSIZ; _wordcopy_fwd_dest_aligned() 162 unsigned long int dstp = (long int) dstpp; memcpy() local 170 len -= (-dstp) % OPSIZ; memcpy() 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() 196 unsigned long int dstp = (long int) dstpp; memcpyb() local 199 BYTE_COPY_FWD(dstp, srcp, len); memcpyb()
|
/linux-4.4.14/include/linux/ |
H A D | cpumask.h | 268 * @dstp: the cpumask pointer 270 static inline void cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) cpumask_set_cpu() argument 272 set_bit(cpumask_check(cpu), cpumask_bits(dstp)); cpumask_set_cpu() 278 * @dstp: the cpumask pointer 280 static inline void cpumask_clear_cpu(int cpu, struct cpumask *dstp) cpumask_clear_cpu() argument 282 clear_bit(cpumask_check(cpu), cpumask_bits(dstp)); cpumask_clear_cpu() 327 * @dstp: the cpumask pointer 329 static inline void cpumask_setall(struct cpumask *dstp) cpumask_setall() argument 331 bitmap_fill(cpumask_bits(dstp), nr_cpumask_bits); cpumask_setall() 336 * @dstp: the cpumask pointer 338 static inline void cpumask_clear(struct cpumask *dstp) cpumask_clear() argument 340 bitmap_zero(cpumask_bits(dstp), nr_cpumask_bits); cpumask_clear() 344 * cpumask_and - *dstp = *src1p & *src2p 345 * @dstp: the cpumask result 349 * If *@dstp is empty, returns 0, else returns 1 351 static inline int cpumask_and(struct cpumask *dstp, cpumask_and() argument 355 return bitmap_and(cpumask_bits(dstp), cpumask_bits(src1p), cpumask_and() 360 * cpumask_or - *dstp = *src1p | *src2p 361 * @dstp: the cpumask result 365 static inline void cpumask_or(struct cpumask *dstp, const struct cpumask *src1p, cpumask_or() argument 368 bitmap_or(cpumask_bits(dstp), cpumask_bits(src1p), cpumask_or() 373 * cpumask_xor - *dstp = *src1p ^ *src2p 374 * @dstp: the cpumask result 378 static inline void cpumask_xor(struct cpumask *dstp, cpumask_xor() argument 382 bitmap_xor(cpumask_bits(dstp), cpumask_bits(src1p), cpumask_xor() 387 * cpumask_andnot - *dstp = *src1p & ~*src2p 388 * @dstp: the cpumask result 392 * If *@dstp is empty, returns 0, else returns 1 394 static inline int cpumask_andnot(struct cpumask *dstp, cpumask_andnot() argument 398 return bitmap_andnot(cpumask_bits(dstp), cpumask_bits(src1p), cpumask_andnot() 403 * cpumask_complement - *dstp = ~*srcp 404 * @dstp: the cpumask result 407 static inline void cpumask_complement(struct cpumask *dstp, cpumask_complement() argument 410 bitmap_complement(cpumask_bits(dstp), cpumask_bits(srcp), cpumask_complement() 480 * cpumask_shift_right - *dstp = *srcp >> n 481 * @dstp: the cpumask result 485 static inline void cpumask_shift_right(struct cpumask *dstp, cpumask_shift_right() argument 488 bitmap_shift_right(cpumask_bits(dstp), cpumask_bits(srcp), n, cpumask_shift_right() 493 * cpumask_shift_left - *dstp = *srcp << n 494 * @dstp: the cpumask result 498 static inline void cpumask_shift_left(struct cpumask *dstp, cpumask_shift_left() argument 501 bitmap_shift_left(cpumask_bits(dstp), cpumask_bits(srcp), n, cpumask_shift_left() 506 * cpumask_copy - *dstp = *srcp 507 * @dstp: the result 510 static inline void cpumask_copy(struct cpumask *dstp, cpumask_copy() argument 513 bitmap_copy(cpumask_bits(dstp), cpumask_bits(srcp), nr_cpumask_bits); cpumask_copy() 552 * @dstp: the cpumask to set. 557 struct cpumask *dstp) cpumask_parse_user() 559 return bitmap_parse_user(buf, len, cpumask_bits(dstp), nr_cpu_ids); cpumask_parse_user() 566 * @dstp: the cpumask to set. 571 struct cpumask *dstp) cpumask_parselist_user() 573 return bitmap_parselist_user(buf, len, cpumask_bits(dstp), cpumask_parselist_user() 580 * @dstp: the cpumask to set. 584 static inline int cpumask_parse(const char *buf, struct cpumask *dstp) cpumask_parse() argument 589 return bitmap_parse(buf, len, cpumask_bits(dstp), nr_cpu_ids); cpumask_parse() 595 * @dstp: the cpumask to set. 599 static inline int cpulist_parse(const char *buf, struct cpumask *dstp) cpulist_parse() argument 601 return bitmap_parselist(buf, cpumask_bits(dstp), nr_cpu_ids); cpulist_parse() 556 cpumask_parse_user(const char __user *buf, int len, struct cpumask *dstp) cpumask_parse_user() argument 570 cpumask_parselist_user(const char __user *buf, int len, struct cpumask *dstp) cpumask_parselist_user() argument
|
H A D | nodemask.h | 116 static __always_inline void __node_set(int node, volatile nodemask_t *dstp) __node_set() argument 118 set_bit(node, dstp->bits); __node_set() 122 static inline void __node_clear(int node, volatile nodemask_t *dstp) __node_clear() argument 124 clear_bit(node, dstp->bits); __node_clear() 128 static inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits) __nodes_setall() argument 130 bitmap_fill(dstp->bits, nbits); __nodes_setall() 134 static inline void __nodes_clear(nodemask_t *dstp, unsigned int nbits) __nodes_clear() argument 136 bitmap_zero(dstp->bits, nbits); __nodes_clear() 151 static inline void __nodes_and(nodemask_t *dstp, const nodemask_t *src1p, __nodes_and() argument 154 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_and() 159 static inline void __nodes_or(nodemask_t *dstp, const nodemask_t *src1p, __nodes_or() argument 162 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_or() 167 static inline void __nodes_xor(nodemask_t *dstp, const nodemask_t *src1p, __nodes_xor() argument 170 bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_xor() 175 static inline void __nodes_andnot(nodemask_t *dstp, const nodemask_t *src1p, __nodes_andnot() argument 178 bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_andnot() 183 static inline void __nodes_complement(nodemask_t *dstp, __nodes_complement() argument 186 bitmap_complement(dstp->bits, srcp->bits, nbits); __nodes_complement() 233 static inline void __nodes_shift_right(nodemask_t *dstp, __nodes_shift_right() argument 236 bitmap_shift_right(dstp->bits, srcp->bits, n, nbits); __nodes_shift_right() 241 static inline void __nodes_shift_left(nodemask_t *dstp, __nodes_shift_left() argument 244 bitmap_shift_left(dstp->bits, srcp->bits, n, nbits); __nodes_shift_left() 315 nodemask_t *dstp, int nbits) __nodemask_parse_user() 317 return bitmap_parse_user(buf, len, dstp->bits, nbits); __nodemask_parse_user() 321 static inline int __nodelist_parse(const char *buf, nodemask_t *dstp, int nbits) __nodelist_parse() argument 323 return bitmap_parselist(buf, dstp->bits, nbits); __nodelist_parse() 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() 344 static inline void __nodes_onto(nodemask_t *dstp, const nodemask_t *origp, __nodes_onto() argument 347 bitmap_onto(dstp->bits, origp->bits, relmapp->bits, nbits); __nodes_onto() 352 static inline void __nodes_fold(nodemask_t *dstp, const nodemask_t *origp, __nodes_fold() argument 355 bitmap_fold(dstp->bits, origp->bits, sz, nbits); __nodes_fold() 314 __nodemask_parse_user(const char __user *buf, int len, nodemask_t *dstp, int nbits) __nodemask_parse_user() argument
|
H A D | dmaengine.h | 1039 __dma_cap_set(enum dma_transaction_type tx_type, dma_cap_mask_t *dstp) __dma_cap_set() argument 1041 set_bit(tx_type, dstp->bits); __dma_cap_set() 1046 __dma_cap_clear(enum dma_transaction_type tx_type, dma_cap_mask_t *dstp) __dma_cap_clear() argument 1048 clear_bit(tx_type, dstp->bits); __dma_cap_clear() 1052 static inline void __dma_cap_zero(dma_cap_mask_t *dstp) __dma_cap_zero() argument 1054 bitmap_zero(dstp->bits, DMA_TX_TYPE_END); __dma_cap_zero()
|
/linux-4.4.14/crypto/ |
H A D | eseqiv.c | 76 struct page *dstp; eseqiv_givencrypt() local 95 dstp = sg_page(odst); eseqiv_givencrypt() 97 vdst = PageHighMem(dstp) ? NULL : page_address(dstp) + odst->offset; eseqiv_givencrypt()
|
/linux-4.4.14/arch/x86/include/asm/uv/ |
H A D | uv_bau.h | 708 static inline int bau_uvhub_isset(int uvhub, struct pnmask *dstp) bau_uvhub_isset() argument 710 return constant_test_bit(uvhub, &dstp->bits[0]); bau_uvhub_isset() 712 static inline void bau_uvhub_set(int pnode, struct pnmask *dstp) bau_uvhub_set() argument 714 __set_bit(pnode, &dstp->bits[0]); bau_uvhub_set() 716 static inline void bau_uvhubs_clear(struct pnmask *dstp, bau_uvhubs_clear() argument 719 bitmap_zero(&dstp->bits[0], nbits); bau_uvhubs_clear() 721 static inline int bau_uvhub_weight(struct pnmask *dstp) bau_uvhub_weight() argument 723 return bitmap_weight((unsigned long *)&dstp->bits[0], bau_uvhub_weight() 727 static inline void bau_cpubits_clear(struct bau_local_cpumask *dstp, int nbits) bau_cpubits_clear() argument 729 bitmap_zero(&dstp->bits, nbits); bau_cpubits_clear()
|
/linux-4.4.14/arch/tile/include/asm/ |
H A D | smp.h | 127 static inline int __cpulist_parse_crop(const char *buf, struct cpumask *dstp, __cpulist_parse_crop() argument 130 return bitmap_parselist_crop(buf, cpumask_bits(dstp), nbits); __cpulist_parse_crop()
|
/linux-4.4.14/drivers/cpufreq/ |
H A D | qoriq-cpufreq.c | 126 struct cpumask *dstp = policy->cpus; set_affected_cpus() local 139 cpumask_set_cpu(i, dstp); for_each_present_cpu()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
H A D | qp.c | 391 u8 *dstp, *srcp; build_immd() local 396 dstp = (u8 *)immdp->data; build_immd() 404 if (dstp == (u8 *)&sq->queue[sq->size]) build_immd() 405 dstp = (u8 *)sq->queue; build_immd() 406 if (rem <= (u8 *)&sq->queue[sq->size] - dstp) build_immd() 409 len = (u8 *)&sq->queue[sq->size] - dstp; build_immd() 410 memcpy(dstp, srcp, len); build_immd() 411 dstp += len; build_immd() 418 memset(dstp, 0, len); build_immd()
|
/linux-4.4.14/net/ipv6/ |
H A D | raw.c | 613 struct flowi6 *fl6, struct dst_entry **dstp, rawv6_send_hdrinc() 621 struct rt6_info *rt = (struct rt6_info *)*dstp; rawv6_send_hdrinc() 643 *dstp = NULL; rawv6_send_hdrinc() 612 rawv6_send_hdrinc(struct sock *sk, struct msghdr *msg, int length, struct flowi6 *fl6, struct dst_entry **dstp, unsigned int flags) rawv6_send_hdrinc() argument
|
/linux-4.4.14/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 1136 u32 *dstp; bnx2i_cpy_scsi_cdb() local 1145 dstp = (u32 *) cmd->req.cdb; bnx2i_cpy_scsi_cdb() 1148 *dstp = cpu_to_be32(dword); bnx2i_cpy_scsi_cdb() 1150 dstp++; bnx2i_cpy_scsi_cdb() 1154 *dstp = cpu_to_be32(dword); bnx2i_cpy_scsi_cdb()
|
/linux-4.4.14/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 2738 struct mcp_kreq_ether_send __iomem *dstp, *dst; myri10ge_submit_req() local 2747 dst = dstp = &tx->lanai[idx]; myri10ge_submit_req() 2752 myri10ge_pio_copy(dstp, srcp, 2 * sizeof(*src)); myri10ge_submit_req() 2755 dstp += 2; myri10ge_submit_req() 2765 myri10ge_pio_copy(dstp, srcp, sizeof(*src)); myri10ge_submit_req()
|