/linux-4.1.27/arch/m68k/math-emu/ |
H A D | fp_log.c | 25 extern struct fp_ext *fp_fadd(struct fp_ext *dest, const struct fp_ext *src); 26 extern struct fp_ext *fp_fdiv(struct fp_ext *dest, const struct fp_ext *src); 29 fp_fsqrt(struct fp_ext *dest, struct fp_ext *src) fp_fsqrt() argument 36 fp_monadic_check(dest, src); fp_fsqrt() 38 if (IS_ZERO(dest)) fp_fsqrt() 39 return dest; fp_fsqrt() 41 if (dest->sign) { fp_fsqrt() 42 fp_set_nan(dest); fp_fsqrt() 43 return dest; fp_fsqrt() 45 if (IS_INF(dest)) fp_fsqrt() 46 return dest; fp_fsqrt() 60 exp = dest->exp; fp_fsqrt() 61 dest->exp = 0x3FFF; fp_fsqrt() 63 dest->exp++; fp_fsqrt() 64 fp_copy_ext(&src2, dest); fp_fsqrt() 73 fp_fadd(dest, &fp_one); fp_fsqrt() 74 dest->exp--; /* * 1/2 */ fp_fsqrt() 91 fp_fdiv(&tmp, dest); fp_fsqrt() 92 fp_fadd(dest, &tmp); fp_fsqrt() 93 dest->exp--; fp_fsqrt() 96 dest->exp += (exp - 0x3FFF) / 2; fp_fsqrt() 98 return dest; fp_fsqrt() 102 fp_fetoxm1(struct fp_ext *dest, struct fp_ext *src) fp_fetoxm1() argument 106 fp_monadic_check(dest, src); fp_fetoxm1() 108 return dest; fp_fetoxm1() 112 fp_fetox(struct fp_ext *dest, struct fp_ext *src) fp_fetox() argument 116 fp_monadic_check(dest, src); fp_fetox() 118 return dest; fp_fetox() 122 fp_ftwotox(struct fp_ext *dest, struct fp_ext *src) fp_ftwotox() argument 126 fp_monadic_check(dest, src); fp_ftwotox() 128 return dest; fp_ftwotox() 132 fp_ftentox(struct fp_ext *dest, struct fp_ext *src) fp_ftentox() argument 136 fp_monadic_check(dest, src); fp_ftentox() 138 return dest; fp_ftentox() 142 fp_flogn(struct fp_ext *dest, struct fp_ext *src) fp_flogn() argument 146 fp_monadic_check(dest, src); fp_flogn() 148 return dest; fp_flogn() 152 fp_flognp1(struct fp_ext *dest, struct fp_ext *src) fp_flognp1() argument 156 fp_monadic_check(dest, src); fp_flognp1() 158 return dest; fp_flognp1() 162 fp_flog10(struct fp_ext *dest, struct fp_ext *src) fp_flog10() argument 166 fp_monadic_check(dest, src); fp_flog10() 168 return dest; fp_flog10() 172 fp_flog2(struct fp_ext *dest, struct fp_ext *src) fp_flog2() argument 176 fp_monadic_check(dest, src); fp_flog2() 178 return dest; fp_flog2() 182 fp_fgetexp(struct fp_ext *dest, struct fp_ext *src) fp_fgetexp() argument 186 fp_monadic_check(dest, src); fp_fgetexp() 188 if (IS_INF(dest)) { fp_fgetexp() 189 fp_set_nan(dest); fp_fgetexp() 190 return dest; fp_fgetexp() 192 if (IS_ZERO(dest)) fp_fgetexp() 193 return dest; fp_fgetexp() 195 fp_conv_long2ext(dest, (int)dest->exp - 0x3FFF); fp_fgetexp() 197 fp_normalize_ext(dest); fp_fgetexp() 199 return dest; fp_fgetexp() 203 fp_fgetman(struct fp_ext *dest, struct fp_ext *src) fp_fgetman() argument 207 fp_monadic_check(dest, src); fp_fgetman() 209 if (IS_ZERO(dest)) fp_fgetman() 210 return dest; fp_fgetman() 212 if (IS_INF(dest)) fp_fgetman() 213 return dest; fp_fgetman() 215 dest->exp = 0x3FFF; fp_fgetman() 217 return dest; fp_fgetman()
|
H A D | fp_trig.c | 22 fp_fsin(struct fp_ext *dest, struct fp_ext *src) fp_fsin() argument 26 fp_monadic_check(dest, src); fp_fsin() 28 return dest; fp_fsin() 32 fp_fcos(struct fp_ext *dest, struct fp_ext *src) fp_fcos() argument 36 fp_monadic_check(dest, src); fp_fcos() 38 return dest; fp_fcos() 42 fp_ftan(struct fp_ext *dest, struct fp_ext *src) fp_ftan() argument 46 fp_monadic_check(dest, src); fp_ftan() 48 return dest; fp_ftan() 52 fp_fasin(struct fp_ext *dest, struct fp_ext *src) fp_fasin() argument 56 fp_monadic_check(dest, src); fp_fasin() 58 return dest; fp_fasin() 62 fp_facos(struct fp_ext *dest, struct fp_ext *src) fp_facos() argument 66 fp_monadic_check(dest, src); fp_facos() 68 return dest; fp_facos() 72 fp_fatan(struct fp_ext *dest, struct fp_ext *src) fp_fatan() argument 76 fp_monadic_check(dest, src); fp_fatan() 78 return dest; fp_fatan() 82 fp_fsinh(struct fp_ext *dest, struct fp_ext *src) fp_fsinh() argument 86 fp_monadic_check(dest, src); fp_fsinh() 88 return dest; fp_fsinh() 92 fp_fcosh(struct fp_ext *dest, struct fp_ext *src) fp_fcosh() argument 96 fp_monadic_check(dest, src); fp_fcosh() 98 return dest; fp_fcosh() 102 fp_ftanh(struct fp_ext *dest, struct fp_ext *src) fp_ftanh() argument 106 fp_monadic_check(dest, src); fp_ftanh() 108 return dest; fp_ftanh() 112 fp_fatanh(struct fp_ext *dest, struct fp_ext *src) fp_fatanh() argument 116 fp_monadic_check(dest, src); fp_fatanh() 118 return dest; fp_fatanh() 122 fp_fsincos0(struct fp_ext *dest, struct fp_ext *src) fp_fsincos0() argument 126 return dest; fp_fsincos0() 130 fp_fsincos1(struct fp_ext *dest, struct fp_ext *src) fp_fsincos1() argument 134 return dest; fp_fsincos1() 138 fp_fsincos2(struct fp_ext *dest, struct fp_ext *src) fp_fsincos2() argument 142 return dest; fp_fsincos2() 146 fp_fsincos3(struct fp_ext *dest, struct fp_ext *src) fp_fsincos3() argument 150 return dest; fp_fsincos3() 154 fp_fsincos4(struct fp_ext *dest, struct fp_ext *src) fp_fsincos4() argument 158 return dest; fp_fsincos4() 162 fp_fsincos5(struct fp_ext *dest, struct fp_ext *src) fp_fsincos5() argument 166 return dest; fp_fsincos5() 170 fp_fsincos6(struct fp_ext *dest, struct fp_ext *src) fp_fsincos6() argument 174 return dest; fp_fsincos6() 178 fp_fsincos7(struct fp_ext *dest, struct fp_ext *src) fp_fsincos7() argument 182 return dest; fp_fsincos7()
|
H A D | fp_arith.c | 34 fp_fabs(struct fp_ext *dest, struct fp_ext *src) fp_fabs() argument 38 fp_monadic_check(dest, src); fp_fabs() 40 dest->sign = 0; fp_fabs() 42 return dest; fp_fabs() 46 fp_fneg(struct fp_ext *dest, struct fp_ext *src) fp_fneg() argument 50 fp_monadic_check(dest, src); fp_fneg() 52 dest->sign = !dest->sign; fp_fneg() 54 return dest; fp_fneg() 63 fp_fadd(struct fp_ext *dest, struct fp_ext *src) fp_fadd() argument 69 fp_dyadic_check(dest, src); fp_fadd() 71 if (IS_INF(dest)) { fp_fadd() 73 if (IS_INF(src) && (src->sign != dest->sign)) fp_fadd() 74 fp_set_nan(dest); fp_fadd() 75 return dest; fp_fadd() 78 fp_copy_ext(dest, src); fp_fadd() 79 return dest; fp_fadd() 82 if (IS_ZERO(dest)) { fp_fadd() 84 if (src->sign != dest->sign) { fp_fadd() 86 dest->sign = 1; fp_fadd() 88 dest->sign = 0; fp_fadd() 91 fp_copy_ext(dest, src); fp_fadd() 92 return dest; fp_fadd() 95 dest->lowmant = src->lowmant = 0; fp_fadd() 97 if ((diff = dest->exp - src->exp) > 0) fp_fadd() 100 fp_denormalize(dest, diff); fp_fadd() 102 if (dest->sign == src->sign) { fp_fadd() 103 if (fp_addmant(dest, src)) fp_fadd() 104 if (!fp_addcarry(dest)) fp_fadd() 105 return dest; fp_fadd() 107 if (dest->mant.m64 < src->mant.m64) { fp_fadd() 108 fp_submant(dest, src, dest); fp_fadd() 109 dest->sign = !dest->sign; fp_fadd() 111 fp_submant(dest, dest, src); fp_fadd() 114 return dest; fp_fadd() 123 fp_fsub(struct fp_ext *dest, struct fp_ext *src) fp_fsub() argument 128 return fp_fadd(dest, src); fp_fsub() 133 fp_fcmp(struct fp_ext *dest, struct fp_ext *src) fp_fcmp() argument 137 FPDATA->temp[1] = *dest; fp_fcmp() 143 fp_ftst(struct fp_ext *dest, struct fp_ext *src) fp_ftst() argument 147 (void)dest; fp_ftst() 153 fp_fmul(struct fp_ext *dest, struct fp_ext *src) fp_fmul() argument 160 fp_dyadic_check(dest, src); fp_fmul() 163 dest->sign = src->sign ^ dest->sign; fp_fmul() 166 if (IS_INF(dest)) { fp_fmul() 168 fp_set_nan(dest); fp_fmul() 169 return dest; fp_fmul() 172 if (IS_ZERO(dest)) fp_fmul() 173 fp_set_nan(dest); fp_fmul() 175 fp_copy_ext(dest, src); fp_fmul() 176 return dest; fp_fmul() 182 if (IS_ZERO(dest) || IS_ZERO(src)) { fp_fmul() 183 dest->exp = 0; fp_fmul() 184 dest->mant.m64 = 0; fp_fmul() 185 dest->lowmant = 0; fp_fmul() 187 return dest; fp_fmul() 190 exp = dest->exp + src->exp - 0x3ffe; fp_fmul() 195 if ((long)dest->mant.m32[0] >= 0) fp_fmul() 196 exp -= fp_overnormalize(dest); fp_fmul() 201 fp_multiplymant(&temp, dest, src); fp_fmul() 207 fp_putmant128(dest, &temp, 1); fp_fmul() 209 fp_putmant128(dest, &temp, 0); fp_fmul() 212 fp_set_ovrflw(dest); fp_fmul() 213 return dest; fp_fmul() 215 dest->exp = exp; fp_fmul() 218 fp_denormalize(dest, -exp); fp_fmul() 221 return dest; fp_fmul() 228 of src / dest, the result is actually dest / src. */ 231 fp_fdiv(struct fp_ext *dest, struct fp_ext *src) fp_fdiv() argument 238 fp_dyadic_check(dest, src); fp_fdiv() 241 dest->sign = src->sign ^ dest->sign; fp_fdiv() 244 if (IS_INF(dest)) { fp_fdiv() 247 fp_set_nan(dest); fp_fdiv() 249 return dest; fp_fdiv() 253 dest->exp = 0; fp_fdiv() 254 dest->mant.m64 = 0; fp_fdiv() 255 dest->lowmant = 0; fp_fdiv() 257 return dest; fp_fdiv() 261 if (IS_ZERO(dest)) { fp_fdiv() 264 fp_set_nan(dest); fp_fdiv() 266 return dest; fp_fdiv() 271 dest->exp = 0x7fff; fp_fdiv() 272 dest->mant.m64 = 0; fp_fdiv() 274 return dest; fp_fdiv() 277 exp = dest->exp - src->exp + 0x3fff; fp_fdiv() 282 if ((long)dest->mant.m32[0] >= 0) fp_fdiv() 283 exp -= fp_overnormalize(dest); fp_fdiv() 288 fp_dividemant(&temp, dest, src); fp_fdiv() 294 fp_putmant128(dest, &temp, 32); fp_fdiv() 296 fp_putmant128(dest, &temp, 31); fp_fdiv() 299 fp_set_ovrflw(dest); fp_fdiv() 300 return dest; fp_fdiv() 302 dest->exp = exp; fp_fdiv() 305 fp_denormalize(dest, -exp); fp_fdiv() 308 return dest; fp_fdiv() 312 fp_fsglmul(struct fp_ext *dest, struct fp_ext *src) fp_fsglmul() argument 318 fp_dyadic_check(dest, src); fp_fsglmul() 321 dest->sign = src->sign ^ dest->sign; fp_fsglmul() 324 if (IS_INF(dest)) { fp_fsglmul() 326 fp_set_nan(dest); fp_fsglmul() 327 return dest; fp_fsglmul() 330 if (IS_ZERO(dest)) fp_fsglmul() 331 fp_set_nan(dest); fp_fsglmul() 333 fp_copy_ext(dest, src); fp_fsglmul() 334 return dest; fp_fsglmul() 340 if (IS_ZERO(dest) || IS_ZERO(src)) { fp_fsglmul() 341 dest->exp = 0; fp_fsglmul() 342 dest->mant.m64 = 0; fp_fsglmul() 343 dest->lowmant = 0; fp_fsglmul() 345 return dest; fp_fsglmul() 348 exp = dest->exp + src->exp - 0x3ffe; fp_fsglmul() 351 fp_mul64(dest->mant.m32[0], dest->mant.m32[1], fp_fsglmul() 352 dest->mant.m32[0] & 0xffffff00, fp_fsglmul() 356 fp_set_ovrflw(dest); fp_fsglmul() 357 return dest; fp_fsglmul() 359 dest->exp = exp; fp_fsglmul() 362 fp_denormalize(dest, -exp); fp_fsglmul() 365 return dest; fp_fsglmul() 369 fp_fsgldiv(struct fp_ext *dest, struct fp_ext *src) fp_fsgldiv() argument 376 fp_dyadic_check(dest, src); fp_fsgldiv() 379 dest->sign = src->sign ^ dest->sign; fp_fsgldiv() 382 if (IS_INF(dest)) { fp_fsgldiv() 385 fp_set_nan(dest); fp_fsgldiv() 387 return dest; fp_fsgldiv() 391 dest->exp = 0; fp_fsgldiv() 392 dest->mant.m64 = 0; fp_fsgldiv() 393 dest->lowmant = 0; fp_fsgldiv() 395 return dest; fp_fsgldiv() 399 if (IS_ZERO(dest)) { fp_fsgldiv() 402 fp_set_nan(dest); fp_fsgldiv() 404 return dest; fp_fsgldiv() 409 dest->exp = 0x7fff; fp_fsgldiv() 410 dest->mant.m64 = 0; fp_fsgldiv() 412 return dest; fp_fsgldiv() 415 exp = dest->exp - src->exp + 0x3fff; fp_fsgldiv() 417 dest->mant.m32[0] &= 0xffffff00; fp_fsgldiv() 421 if (dest->mant.m32[0] >= src->mant.m32[0]) { fp_fsgldiv() 422 fp_sub64(dest->mant, src->mant); fp_fsgldiv() 423 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); fp_fsgldiv() 424 dest->mant.m32[0] = 0x80000000 | (quot >> 1); fp_fsgldiv() 425 dest->mant.m32[1] = (quot & 1) | rem; /* only for rounding */ fp_fsgldiv() 427 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); fp_fsgldiv() 428 dest->mant.m32[0] = quot; fp_fsgldiv() 429 dest->mant.m32[1] = rem; /* only for rounding */ fp_fsgldiv() 434 fp_set_ovrflw(dest); fp_fsgldiv() 435 return dest; fp_fsgldiv() 437 dest->exp = exp; fp_fsgldiv() 440 fp_denormalize(dest, -exp); fp_fsgldiv() 443 return dest; fp_fsgldiv() 452 static void fp_roundint(struct fp_ext *dest, int mode) fp_roundint() argument 457 if (!fp_normalize_ext(dest)) fp_roundint() 461 if (IS_INF(dest) || IS_ZERO(dest)) fp_roundint() 465 oldmant = dest->mant; fp_roundint() 466 switch (dest->exp) { fp_roundint() 468 dest->mant.m64 = 0; fp_roundint() 471 dest->mant.m32[0] &= 0xffffffffU << (0x401e - dest->exp); fp_roundint() 472 dest->mant.m32[1] = 0; fp_roundint() 473 if (oldmant.m64 == dest->mant.m64) fp_roundint() 477 dest->mant.m32[1] &= 0xffffffffU << (0x403e - dest->exp); fp_roundint() 478 if (oldmant.m32[1] == dest->mant.m32[1]) fp_roundint() 500 switch (dest->exp) { fp_roundint() 512 mask = 1 << (0x401d - dest->exp); fp_roundint() 517 if (!(oldmant.m32[0] << (dest->exp - 0x3ffd)) && fp_roundint() 530 mask = 1 << (0x403d - dest->exp); fp_roundint() 535 if (!(oldmant.m32[1] << (dest->exp - 0x401d))) fp_roundint() 545 if (dest->sign ^ (mode - FPCR_ROUND_RM)) fp_roundint() 550 switch (dest->exp) { fp_roundint() 552 dest->exp = 0x3fff; fp_roundint() 553 dest->mant.m64 = 1ULL << 63; fp_roundint() 556 mask = 1 << (0x401e - dest->exp); fp_roundint() 557 if (dest->mant.m32[0] += mask) fp_roundint() 559 dest->mant.m32[0] = 0x80000000; fp_roundint() 560 dest->exp++; fp_roundint() 563 mask = 1 << (0x403e - dest->exp); fp_roundint() 564 if (dest->mant.m32[1] += mask) fp_roundint() 566 if (dest->mant.m32[0] += 1) fp_roundint() 568 dest->mant.m32[0] = 0x80000000; fp_roundint() 569 dest->exp++; fp_roundint() 579 modrem_kernel(struct fp_ext *dest, struct fp_ext *src, int mode) modrem_kernel() argument 583 fp_dyadic_check(dest, src); modrem_kernel() 586 if (IS_INF(dest) || IS_ZERO(src)) { modrem_kernel() 587 fp_set_nan(dest); modrem_kernel() 588 return dest; modrem_kernel() 590 if (IS_ZERO(dest) || IS_INF(src)) modrem_kernel() 591 return dest; modrem_kernel() 594 fp_copy_ext(&tmp, dest); modrem_kernel() 598 fp_fsub(dest, &tmp); modrem_kernel() 601 fp_set_quotient((dest->mant.m64 & 0x7f) | (dest->sign << 7)); modrem_kernel() 602 return dest; modrem_kernel() 610 fmod(src,dest) = (dest - (src * floor(dest / src))) */ 613 fp_fmod(struct fp_ext *dest, struct fp_ext *src) fp_fmod() argument 616 return modrem_kernel(dest, src, FPCR_ROUND_RZ); fp_fmod() 621 frem(src,dest) = (dest - (src * round(dest / src))) 625 fp_frem(struct fp_ext *dest, struct fp_ext *src) fp_frem() argument 628 return modrem_kernel(dest, src, FPCR_ROUND_RN); fp_frem() 632 fp_fint(struct fp_ext *dest, struct fp_ext *src) fp_fint() argument 636 fp_copy_ext(dest, src); fp_fint() 638 fp_roundint(dest, FPDATA->rnd); fp_fint() 640 return dest; fp_fint() 644 fp_fintrz(struct fp_ext *dest, struct fp_ext *src) fp_fintrz() argument 648 fp_copy_ext(dest, src); fp_fintrz() 650 fp_roundint(dest, FPCR_ROUND_RZ); fp_fintrz() 652 return dest; fp_fintrz() 656 fp_fscale(struct fp_ext *dest, struct fp_ext *src) fp_fscale() argument 662 fp_dyadic_check(dest, src); fp_fscale() 666 fp_set_nan(dest); fp_fscale() 667 return dest; fp_fscale() 669 if (IS_INF(dest)) fp_fscale() 670 return dest; fp_fscale() 673 if (IS_ZERO(src) || IS_ZERO(dest)) fp_fscale() 674 return dest; fp_fscale() 678 fp_set_ovrflw(dest); fp_fscale() 679 return dest; fp_fscale() 689 scale += dest->exp; fp_fscale() 692 fp_set_ovrflw(dest); fp_fscale() 695 fp_denormalize(dest, -scale); fp_fscale() 697 dest->exp = scale; fp_fscale() 699 return dest; fp_fscale()
|
H A D | fp_arith.h | 22 fp_fabs(struct fp_ext *dest, struct fp_ext *src); 24 fp_fneg(struct fp_ext *dest, struct fp_ext *src); 28 fp_fadd(struct fp_ext *dest, struct fp_ext *src); 30 fp_fsub(struct fp_ext *dest, struct fp_ext *src); 32 fp_fcmp(struct fp_ext *dest, struct fp_ext *src); 34 fp_ftst(struct fp_ext *dest, struct fp_ext *src); 36 fp_fmul(struct fp_ext *dest, struct fp_ext *src); 38 fp_fdiv(struct fp_ext *dest, struct fp_ext *src); 42 fp_fmod(struct fp_ext *dest, struct fp_ext *src); 44 fp_frem(struct fp_ext *dest, struct fp_ext *src); 46 fp_fint(struct fp_ext *dest, struct fp_ext *src); 48 fp_fintrz(struct fp_ext *dest, struct fp_ext *src); 50 fp_fscale(struct fp_ext *dest, struct fp_ext *src);
|
H A D | multi_arith.h | 82 static inline int fp_addmant(struct fp_ext *dest, struct fp_ext *src) fp_addmant() argument 87 asm volatile ("add.b %1,%0" : "=d,g" (dest->lowmant) fp_addmant() 88 : "g,d" (src->lowmant), "0,0" (dest->lowmant)); fp_addmant() 89 asm volatile ("addx.l %1,%0" : "=d" (dest->mant.m32[1]) fp_addmant() 90 : "d" (src->mant.m32[1]), "0" (dest->mant.m32[1])); fp_addmant() 91 asm volatile ("addx.l %1,%0" : "=d" (dest->mant.m32[0]) fp_addmant() 92 : "d" (src->mant.m32[0]), "0" (dest->mant.m32[0])); fp_addmant() 115 static inline void fp_submant(struct fp_ext *dest, struct fp_ext *src1, fp_submant() argument 119 asm volatile ("sub.b %1,%0" : "=d,g" (dest->lowmant) fp_submant() 121 asm volatile ("subx.l %1,%0" : "=d" (dest->mant.m32[1]) fp_submant() 123 asm volatile ("subx.l %1,%0" : "=d" (dest->mant.m32[0]) fp_submant() 140 #define fp_addx96(dest, src) ({ \ 142 asm volatile ("add.l %1,%0" : "=d,g" (dest->m32[2]) \ 143 : "g,d" (temp.m32[1]), "0,0" (dest->m32[2])); \ 144 asm volatile ("addx.l %1,%0" : "=d" (dest->m32[1]) \ 145 : "d" (temp.m32[0]), "0" (dest->m32[1])); \ 146 asm volatile ("addx.l %1,%0" : "=d" (dest->m32[0]) \ 147 : "d" (0), "0" (dest->m32[0])); \ 149 #define fp_sub64(dest, src) ({ \ 150 asm ("sub.l %1,%0" : "=d,dm" (dest.m32[1]) \ 151 : "dm,d" (src.m32[1]), "0,0" (dest.m32[1])); \ 152 asm ("subx.l %1,%0" : "=d" (dest.m32[0]) \ 153 : "d" (src.m32[0]), "0" (dest.m32[0])); \ 155 #define fp_sub96c(dest, srch, srcm, srcl) ({ \ 157 asm ("sub.l %1,%0" : "=d,dm" (dest.m32[2]) \ 158 : "dm,d" (srcl), "0,0" (dest.m32[2])); \ 159 asm ("subx.l %1,%0" : "=d" (dest.m32[1]) \ 160 : "d" (srcm), "0" (dest.m32[1])); \ 161 asm ("subx.l %2,%1; scs %0" : "=d" (carry), "=d" (dest.m32[0]) \ 162 : "d" (srch), "1" (dest.m32[0])); \ 166 static inline void fp_multiplymant(union fp_mant128 *dest, struct fp_ext *src1, fp_multiplymant() argument 171 fp_mul64(dest->m32[0], dest->m32[1], src1->mant.m32[0], src2->mant.m32[0]); fp_multiplymant() 172 fp_mul64(dest->m32[2], dest->m32[3], src1->mant.m32[1], src2->mant.m32[1]); fp_multiplymant() 175 fp_addx96(dest, temp); fp_multiplymant() 178 fp_addx96(dest, temp); fp_multiplymant() 181 static inline void fp_dividemant(union fp_mant128 *dest, struct fp_ext *src, fp_dividemant() argument 186 unsigned long *mantp = dest->m32; fp_dividemant() 190 /* the algorithm below requires dest to be smaller than div, fp_dividemant() 244 static inline void fp_putmant128(struct fp_ext *dest, union fp_mant128 *src, fp_putmant128() argument 251 dest->mant.m64 = src->m64[0]; fp_putmant128() 252 dest->lowmant = src->m32[2] >> 24; fp_putmant128() 254 dest->lowmant |= 1; fp_putmant128() 260 : "=d" (dest->mant.m32[1]) : "0" (src->m32[1])); fp_putmant128() 262 : "=d" (dest->mant.m32[0]) : "0" (src->m32[0])); fp_putmant128() 263 dest->lowmant = tmp >> 24; fp_putmant128() 265 dest->lowmant |= 1; fp_putmant128() 269 : "=d" (dest->mant.m32[0]) fp_putmant128() 272 : "=d" (dest->mant.m32[1]) : "0" (src->m32[2])); fp_putmant128() 275 dest->lowmant = tmp >> 24; fp_putmant128() 277 dest->lowmant |= 1; fp_putmant128() 280 dest->mant.m32[0] = src->m32[1]; fp_putmant128() 281 dest->mant.m32[1] = src->m32[2]; fp_putmant128() 282 dest->lowmant = src->m32[3] >> 24; fp_putmant128() 284 dest->lowmant |= 1; fp_putmant128()
|
H A D | fp_emu.h | 74 #define fp_copy_ext(dest, src) ({ \ 75 *dest = *src; \ 78 #define fp_monadic_check(dest, src) ({ \ 79 fp_copy_ext(dest, src); \ 80 if (!fp_normalize_ext(dest)) \ 81 return dest; \ 84 #define fp_dyadic_check(dest, src) ({ \ 85 if (!fp_normalize_ext(dest)) \ 86 return dest; \ 88 fp_copy_ext(dest, src); \ 89 return dest; \ 96 #define fp_set_nan(dest) ({ \ 98 *dest = fp_QNaN; \ 102 #define fp_set_ovrflw(dest) ({ \ 104 dest->exp = 0x7fff; \ 105 dest->mant.m64 = 0; \ 118 #define fp_conv_long2ext(dest, src) ({ \ 119 register struct fp_ext *__dest asm ("a0") = dest; \
|
/linux-4.1.27/arch/m68k/lib/ |
H A D | memmove.c | 10 void *memmove(void *dest, const void *src, size_t n) memmove() argument 12 void *xdest = dest; memmove() 18 if (dest < src) { memmove() 19 if ((long)dest & 1) { memmove() 20 char *cdest = dest; memmove() 23 dest = cdest; memmove() 27 if (n > 2 && (long)dest & 2) { memmove() 28 short *sdest = dest; memmove() 31 dest = sdest; memmove() 37 long *ldest = dest; memmove() 43 dest = ldest; memmove() 47 short *sdest = dest; memmove() 50 dest = sdest; memmove() 54 char *cdest = dest; memmove() 59 dest = (char *)dest + n; memmove() 61 if ((long)dest & 1) { memmove() 62 char *cdest = dest; memmove() 65 dest = cdest; memmove() 69 if (n > 2 && (long)dest & 2) { memmove() 70 short *sdest = dest; memmove() 73 dest = sdest; memmove() 79 long *ldest = dest; memmove() 85 dest = ldest; memmove() 89 short *sdest = dest; memmove() 92 dest = sdest; memmove() 96 char *cdest = dest; memmove()
|
/linux-4.1.27/tools/perf/util/include/asm/ |
H A D | uaccess.h | 4 #define __get_user(src, dest) \ 6 (src) = *dest; \
|
/linux-4.1.27/arch/x86/boot/compressed/ |
H A D | string.c | 4 void *memcpy(void *dest, const void *src, size_t n) memcpy() argument 12 : "0" (n >> 2), "g" (n & 3), "1" (dest), "2" (src) memcpy() 15 return dest; memcpy() 18 void *memcpy(void *dest, const void *src, size_t n) memcpy() argument 26 : "0" (n >> 3), "g" (n & 7), "1" (dest), "2" (src) memcpy() 29 return dest; memcpy()
|
/linux-4.1.27/include/linux/ |
H A D | fs_stack.h | 11 extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src); 15 static inline void fsstack_copy_attr_atime(struct inode *dest, fsstack_copy_attr_atime() argument 18 dest->i_atime = src->i_atime; fsstack_copy_attr_atime() 21 static inline void fsstack_copy_attr_times(struct inode *dest, fsstack_copy_attr_times() argument 24 dest->i_atime = src->i_atime; fsstack_copy_attr_times() 25 dest->i_mtime = src->i_mtime; fsstack_copy_attr_times() 26 dest->i_ctime = src->i_ctime; fsstack_copy_attr_times()
|
H A D | capability.h | 120 kernel_cap_t dest; cap_combine() local 121 CAP_BOP_ALL(dest, a, b, |); cap_combine() 122 return dest; cap_combine() 128 kernel_cap_t dest; cap_intersect() local 129 CAP_BOP_ALL(dest, a, b, &); cap_intersect() 130 return dest; cap_intersect() 136 kernel_cap_t dest; cap_drop() local 137 CAP_BOP_ALL(dest, a, drop, &~); cap_drop() 138 return dest; cap_drop() 143 kernel_cap_t dest; cap_invert() local 144 CAP_UOP_ALL(dest, c, ~); cap_invert() 145 return dest; cap_invert() 167 kernel_cap_t dest; cap_issubset() local 168 dest = cap_drop(a, set); cap_issubset() 169 return cap_isclear(dest); cap_issubset()
|
H A D | ucs2_string.h | 15 unsigned long ucs2_as_utf8(u8 *dest, const ucs2_char_t *src,
|
H A D | ipmi-fru.h | 102 static inline char *fru_strcpy(char *dest, struct fru_type_length *tl) fru_strcpy() argument 105 memcpy(dest, tl->data, len); fru_strcpy() 106 dest[len] = '\0'; fru_strcpy() 107 return dest; fru_strcpy()
|
H A D | lz4.h | 63 * dest : output buffer address of the decompressed data 71 unsigned char *dest, size_t actual_dest_len); 77 * dest : output buffer address of the decompressed data 86 unsigned char *dest, size_t *dest_len);
|
/linux-4.1.27/net/netfilter/ipvs/ |
H A D | ip_vs_sh.c | 60 struct ip_vs_dest __rcu *dest; /* real server (cache) */ member in struct:ip_vs_sh_bucket 79 static inline bool is_unavailable(struct ip_vs_dest *dest) is_unavailable() argument 81 return atomic_read(&dest->weight) <= 0 || is_unavailable() 82 dest->flags & IP_VS_DEST_F_OVERLOAD; is_unavailable() 112 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); ip_vs_sh_get() local 114 return (!dest || is_unavailable(dest)) ? NULL : dest; ip_vs_sh_get() 130 struct ip_vs_dest *dest; ip_vs_sh_get_fallback() local 132 /* first try the dest it's supposed to go to */ ip_vs_sh_get_fallback() 134 dest = rcu_dereference(s->buckets[ihash].dest); ip_vs_sh_get_fallback() 135 if (!dest) ip_vs_sh_get_fallback() 137 if (!is_unavailable(dest)) ip_vs_sh_get_fallback() 138 return dest; ip_vs_sh_get_fallback() 141 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); ip_vs_sh_get_fallback() 143 /* if the original dest is unavailable, loop around the table ip_vs_sh_get_fallback() 144 * starting from ihash to find a new dest ip_vs_sh_get_fallback() 149 dest = rcu_dereference(s->buckets[hash].dest); ip_vs_sh_get_fallback() 150 if (!dest) ip_vs_sh_get_fallback() 152 if (!is_unavailable(dest)) ip_vs_sh_get_fallback() 153 return dest; ip_vs_sh_get_fallback() 156 IP_VS_DBG_ADDR(dest->af, &dest->addr), ip_vs_sh_get_fallback() 157 ntohs(dest->port), roffset); ip_vs_sh_get_fallback() 172 struct ip_vs_dest *dest; ip_vs_sh_reassign() local 181 dest = rcu_dereference_protected(b->dest, 1); ip_vs_sh_reassign() 182 if (dest) ip_vs_sh_reassign() 183 ip_vs_dest_put(dest); ip_vs_sh_reassign() 185 RCU_INIT_POINTER(b->dest, NULL); ip_vs_sh_reassign() 190 dest = list_entry(p, struct ip_vs_dest, n_list); ip_vs_sh_reassign() 191 ip_vs_dest_hold(dest); ip_vs_sh_reassign() 192 RCU_INIT_POINTER(b->dest, dest); ip_vs_sh_reassign() 194 IP_VS_DBG_BUF(6, "assigned i: %d dest: %s weight: %d\n", ip_vs_sh_reassign() 195 i, IP_VS_DBG_ADDR(dest->af, &dest->addr), ip_vs_sh_reassign() 196 atomic_read(&dest->weight)); ip_vs_sh_reassign() 198 /* Don't move to next dest until filling weight */ ip_vs_sh_reassign() 199 if (++d_count >= atomic_read(&dest->weight)) { ip_vs_sh_reassign() 218 struct ip_vs_dest *dest; ip_vs_sh_flush() local 222 dest = rcu_dereference_protected(b->dest, 1); ip_vs_sh_flush() 223 if (dest) { ip_vs_sh_flush() 224 ip_vs_dest_put(dest); ip_vs_sh_flush() 225 RCU_INIT_POINTER(b->dest, NULL); ip_vs_sh_flush() 268 struct ip_vs_dest *dest) ip_vs_sh_dest_changed() 322 struct ip_vs_dest *dest; ip_vs_sh_schedule() local 334 dest = ip_vs_sh_get_fallback(svc, s, &iph->saddr, port); ip_vs_sh_schedule() 336 dest = ip_vs_sh_get(svc, s, &iph->saddr, port); ip_vs_sh_schedule() 338 if (!dest) { ip_vs_sh_schedule() 345 IP_VS_DBG_ADDR(dest->af, &dest->addr), ip_vs_sh_schedule() 346 ntohs(dest->port)); ip_vs_sh_schedule() 348 return dest; ip_vs_sh_schedule() 267 ip_vs_sh_dest_changed(struct ip_vs_service *svc, struct ip_vs_dest *dest) ip_vs_sh_dest_changed() argument
|
H A D | ip_vs_rr.c | 13 * Wensong Zhang : changed the ip_vs_rr_schedule to return dest 18 * Wensong Zhang : added any dest with weight=0 is quiesced 38 static int ip_vs_rr_del_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest) ip_vs_rr_del_dest() argument 44 /* dest is already unlinked, so p->prev is not valid but ip_vs_rr_del_dest() 47 if (p == &dest->n_list) ip_vs_rr_del_dest() 62 struct ip_vs_dest *dest, *last; ip_vs_rr_schedule() local 69 last = dest = list_entry(p, struct ip_vs_dest, n_list); ip_vs_rr_schedule() 72 list_for_each_entry_continue_rcu(dest, ip_vs_rr_schedule() 75 if (!(dest->flags & IP_VS_DEST_F_OVERLOAD) && ip_vs_rr_schedule() 76 atomic_read(&dest->weight) > 0) ip_vs_rr_schedule() 79 if (dest == last) ip_vs_rr_schedule() 83 /* Previous dest could be unlinked, do not loop forever. ip_vs_rr_schedule() 94 svc->sched_data = &dest->n_list; ip_vs_rr_schedule() 98 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port), ip_vs_rr_schedule() 99 atomic_read(&dest->activeconns), ip_vs_rr_schedule() 100 atomic_read(&dest->refcnt), atomic_read(&dest->weight)); ip_vs_rr_schedule() 102 return dest; ip_vs_rr_schedule()
|
H A D | ip_vs_wlc.c | 13 * Wensong Zhang : changed the ip_vs_wlc_schedule to return dest 18 * Wensong Zhang : added any dest with weight=0 is quiesced 37 struct ip_vs_dest *dest, *least; ip_vs_wlc_schedule() local 43 * We calculate the load of each dest server as follows: ip_vs_wlc_schedule() 44 * (dest overhead) / dest->weight ip_vs_wlc_schedule() 55 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { ip_vs_wlc_schedule() 56 if (!(dest->flags & IP_VS_DEST_F_OVERLOAD) && ip_vs_wlc_schedule() 57 atomic_read(&dest->weight) > 0) { ip_vs_wlc_schedule() 58 least = dest; ip_vs_wlc_schedule() 70 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { ip_vs_wlc_schedule() 71 if (dest->flags & IP_VS_DEST_F_OVERLOAD) ip_vs_wlc_schedule() 73 doh = ip_vs_dest_conn_overhead(dest); ip_vs_wlc_schedule() 74 if ((__s64)loh * atomic_read(&dest->weight) > ip_vs_wlc_schedule() 76 least = dest; ip_vs_wlc_schedule()
|
H A D | ip_vs_dh.c | 54 struct ip_vs_dest __rcu *dest; /* real server (cache) */ member in struct:ip_vs_dh_bucket 94 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); ip_vs_dh_get() 107 struct ip_vs_dest *dest; ip_vs_dh_reassign() local 114 dest = rcu_dereference_protected(b->dest, 1); ip_vs_dh_reassign() 115 if (dest) ip_vs_dh_reassign() 116 ip_vs_dest_put(dest); ip_vs_dh_reassign() 118 RCU_INIT_POINTER(b->dest, NULL); ip_vs_dh_reassign() 123 dest = list_entry(p, struct ip_vs_dest, n_list); ip_vs_dh_reassign() 124 ip_vs_dest_hold(dest); ip_vs_dh_reassign() 125 RCU_INIT_POINTER(b->dest, dest); ip_vs_dh_reassign() 142 struct ip_vs_dest *dest; ip_vs_dh_flush() local 146 dest = rcu_dereference_protected(b->dest, 1); ip_vs_dh_flush() 147 if (dest) { ip_vs_dh_flush() 148 ip_vs_dest_put(dest); ip_vs_dh_flush() 149 RCU_INIT_POINTER(b->dest, NULL); ip_vs_dh_flush() 192 struct ip_vs_dest *dest) ip_vs_dh_dest_changed() 204 * If the dest flags is set with IP_VS_DEST_F_OVERLOAD, 207 static inline int is_overloaded(struct ip_vs_dest *dest) is_overloaded() argument 209 return dest->flags & IP_VS_DEST_F_OVERLOAD; is_overloaded() 220 struct ip_vs_dest *dest; ip_vs_dh_schedule() local 226 dest = ip_vs_dh_get(svc->af, s, &iph->daddr); ip_vs_dh_schedule() 227 if (!dest ip_vs_dh_schedule() 228 || !(dest->flags & IP_VS_DEST_F_AVAILABLE) ip_vs_dh_schedule() 229 || atomic_read(&dest->weight) <= 0 ip_vs_dh_schedule() 230 || is_overloaded(dest)) { ip_vs_dh_schedule() 237 IP_VS_DBG_ADDR(dest->af, &dest->addr), ip_vs_dh_schedule() 238 ntohs(dest->port)); ip_vs_dh_schedule() 240 return dest; ip_vs_dh_schedule() 191 ip_vs_dh_dest_changed(struct ip_vs_service *svc, struct ip_vs_dest *dest) ip_vs_dh_dest_changed() argument
|
H A D | ip_vs_wrr.c | 12 * Wensong Zhang : changed the ip_vs_wrr_schedule to return dest 49 * weight changes, it is possible some dest weight to be reduced 50 * below di, bad if it is the only available dest. 66 struct ip_vs_dest *cl; /* current dest or head */ 76 struct ip_vs_dest *dest; ip_vs_wrr_gcd_weight() local 80 list_for_each_entry(dest, &svc->destinations, n_list) { ip_vs_wrr_gcd_weight() 81 weight = atomic_read(&dest->weight); ip_vs_wrr_gcd_weight() 98 struct ip_vs_dest *dest; ip_vs_wrr_max_weight() local 101 list_for_each_entry(dest, &svc->destinations, n_list) { ip_vs_wrr_max_weight() 102 new_weight = atomic_read(&dest->weight); ip_vs_wrr_max_weight() 144 struct ip_vs_dest *dest) ip_vs_wrr_dest_changed() 168 struct ip_vs_dest *dest, *last, *stop = NULL; ip_vs_wrr_schedule() local 175 dest = mark->cl; ip_vs_wrr_schedule() 179 last = dest; ip_vs_wrr_schedule() 182 list_for_each_entry_continue_rcu(dest, ip_vs_wrr_schedule() 185 if (!(dest->flags & IP_VS_DEST_F_OVERLOAD) && ip_vs_wrr_schedule() 186 atomic_read(&dest->weight) >= mark->cw) ip_vs_wrr_schedule() 188 if (dest == stop) ip_vs_wrr_schedule() 194 /* Stop if we tried last pass from first dest: ip_vs_wrr_schedule() 219 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port), ip_vs_wrr_schedule() 220 atomic_read(&dest->activeconns), ip_vs_wrr_schedule() 221 atomic_read(&dest->refcnt), ip_vs_wrr_schedule() 222 atomic_read(&dest->weight)); ip_vs_wrr_schedule() 223 mark->cl = dest; ip_vs_wrr_schedule() 227 return dest; ip_vs_wrr_schedule() 230 mark->cl = dest; ip_vs_wrr_schedule() 231 dest = NULL; ip_vs_wrr_schedule() 236 mark->cl = dest; ip_vs_wrr_schedule() 237 dest = NULL; ip_vs_wrr_schedule() 143 ip_vs_wrr_dest_changed(struct ip_vs_service *svc, struct ip_vs_dest *dest) ip_vs_wrr_dest_changed() argument
|
H A D | ip_vs_nq.c | 44 ip_vs_nq_dest_overhead(struct ip_vs_dest *dest) ip_vs_nq_dest_overhead() argument 50 return atomic_read(&dest->activeconns) + 1; ip_vs_nq_dest_overhead() 61 struct ip_vs_dest *dest, *least = NULL; ip_vs_nq_schedule() local 67 * We calculate the load of each dest server as follows: ip_vs_nq_schedule() 68 * (server expected overhead) / dest->weight ip_vs_nq_schedule() 79 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { ip_vs_nq_schedule() 81 if (dest->flags & IP_VS_DEST_F_OVERLOAD || ip_vs_nq_schedule() 82 !atomic_read(&dest->weight)) ip_vs_nq_schedule() 85 doh = ip_vs_nq_dest_overhead(dest); ip_vs_nq_schedule() 88 if (atomic_read(&dest->activeconns) == 0) { ip_vs_nq_schedule() 89 least = dest; ip_vs_nq_schedule() 95 ((__s64)loh * atomic_read(&dest->weight) > ip_vs_nq_schedule() 97 least = dest; ip_vs_nq_schedule()
|
H A D | ip_vs_lc.c | 13 * Wensong Zhang : added any dest with weight=0 is quiesced 32 struct ip_vs_dest *dest, *least = NULL; ip_vs_lc_schedule() local 46 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { ip_vs_lc_schedule() 47 if ((dest->flags & IP_VS_DEST_F_OVERLOAD) || ip_vs_lc_schedule() 48 atomic_read(&dest->weight) == 0) ip_vs_lc_schedule() 50 doh = ip_vs_dest_conn_overhead(dest); ip_vs_lc_schedule() 52 least = dest; ip_vs_lc_schedule()
|
H A D | ip_vs_lblcr.c | 12 * Julian Anastasov : Added the missing (dest->weight>0) 92 struct ip_vs_dest *dest; /* destination server */ member in struct:ip_vs_dest_set_elem 104 struct ip_vs_dest *dest, bool check) ip_vs_dest_set_insert() 110 if (e->dest == dest) ip_vs_dest_set_insert() 119 ip_vs_dest_hold(dest); ip_vs_dest_set_insert() 120 e->dest = dest; ip_vs_dest_set_insert() 133 ip_vs_dest_put_and_free(e->dest); ip_vs_lblcr_elem_rcu_free() 138 ip_vs_dest_set_erase(struct ip_vs_dest_set *set, struct ip_vs_dest *dest) ip_vs_dest_set_erase() argument 143 if (e->dest == dest) { ip_vs_dest_set_erase() 168 struct ip_vs_dest *dest, *least; ip_vs_dest_set_min() local 173 least = e->dest; ip_vs_dest_set_min() 188 dest = e->dest; ip_vs_dest_set_min() 189 if (dest->flags & IP_VS_DEST_F_OVERLOAD) ip_vs_dest_set_min() 192 doh = ip_vs_dest_conn_overhead(dest); ip_vs_dest_set_min() 193 if (((__s64)loh * atomic_read(&dest->weight) > ip_vs_dest_set_min() 195 && (dest->flags & IP_VS_DEST_F_AVAILABLE)) { ip_vs_dest_set_min() 196 least = dest; ip_vs_dest_set_min() 217 struct ip_vs_dest *dest, *most; ip_vs_dest_set_max() local 225 most = e->dest; ip_vs_dest_set_max() 236 dest = e->dest; ip_vs_dest_set_max() 237 doh = ip_vs_dest_conn_overhead(dest); ip_vs_dest_set_max() 239 if (((__s64)moh * atomic_read(&dest->weight) < ip_vs_dest_set_max() 241 && (atomic_read(&dest->weight) > 0)) { ip_vs_dest_set_max() 242 most = dest; ip_vs_dest_set_max() 365 u16 af, struct ip_vs_dest *dest) ip_vs_lblcr_new() 379 /* initialize its dest set */ ip_vs_lblcr_new() 383 ip_vs_dest_set_insert(&en->set, dest, false); ip_vs_lblcr_new() 389 ip_vs_dest_set_insert(&en->set, dest, true); ip_vs_lblcr_new() 568 struct ip_vs_dest *dest, *least; __ip_vs_lblcr_schedule() local 573 * (dest overhead) / dest->weight __ip_vs_lblcr_schedule() 583 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { __ip_vs_lblcr_schedule() 584 if (dest->flags & IP_VS_DEST_F_OVERLOAD) __ip_vs_lblcr_schedule() 587 if (atomic_read(&dest->weight) > 0) { __ip_vs_lblcr_schedule() 588 least = dest; __ip_vs_lblcr_schedule() 599 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { __ip_vs_lblcr_schedule() 600 if (dest->flags & IP_VS_DEST_F_OVERLOAD) __ip_vs_lblcr_schedule() 603 doh = ip_vs_dest_conn_overhead(dest); __ip_vs_lblcr_schedule() 604 if ((__s64)loh * atomic_read(&dest->weight) > __ip_vs_lblcr_schedule() 606 least = dest; __ip_vs_lblcr_schedule() 628 is_overloaded(struct ip_vs_dest *dest, struct ip_vs_service *svc) is_overloaded() argument 630 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { is_overloaded() 652 struct ip_vs_dest *dest; ip_vs_lblcr_schedule() local 663 dest = ip_vs_dest_set_min(&en->set); ip_vs_lblcr_schedule() 681 if (dest && !is_overloaded(dest, svc)) ip_vs_lblcr_schedule() 685 dest = __ip_vs_lblcr_schedule(svc); ip_vs_lblcr_schedule() 686 if (!dest) { ip_vs_lblcr_schedule() 694 ip_vs_dest_set_insert(&en->set, dest, true); ip_vs_lblcr_schedule() 700 dest = __ip_vs_lblcr_schedule(svc); ip_vs_lblcr_schedule() 701 if (!dest) { ip_vs_lblcr_schedule() 706 /* If we fail to create a cache entry, we'll just use the valid dest */ ip_vs_lblcr_schedule() 709 ip_vs_lblcr_new(tbl, &iph->daddr, svc->af, dest); ip_vs_lblcr_schedule() 715 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); ip_vs_lblcr_schedule() 717 return dest; ip_vs_lblcr_schedule() 103 ip_vs_dest_set_insert(struct ip_vs_dest_set *set, struct ip_vs_dest *dest, bool check) ip_vs_dest_set_insert() argument 364 ip_vs_lblcr_new(struct ip_vs_lblcr_table *tbl, const union nf_inet_addr *daddr, u16 af, struct ip_vs_dest *dest) ip_vs_lblcr_new() argument
|
H A D | ip_vs_fo.c | 29 struct ip_vs_dest *dest, *hweight = NULL; ip_vs_fo_schedule() local 37 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { ip_vs_fo_schedule() 38 if (!(dest->flags & IP_VS_DEST_F_OVERLOAD) && ip_vs_fo_schedule() 39 atomic_read(&dest->weight) > hw) { ip_vs_fo_schedule() 40 hweight = dest; ip_vs_fo_schedule() 41 hw = atomic_read(&dest->weight); ip_vs_fo_schedule()
|
H A D | ip_vs_ctl.c | 460 __ip_vs_bind_svc(struct ip_vs_dest *dest, struct ip_vs_service *svc) __ip_vs_bind_svc() argument 463 rcu_assign_pointer(dest->svc, svc); __ip_vs_bind_svc() 516 static void ip_vs_rs_hash(struct netns_ipvs *ipvs, struct ip_vs_dest *dest) ip_vs_rs_hash() argument 520 if (dest->in_rs_table) ip_vs_rs_hash() 527 hash = ip_vs_rs_hashkey(dest->af, &dest->addr, dest->port); ip_vs_rs_hash() 529 hlist_add_head_rcu(&dest->d_list, &ipvs->rs_table[hash]); ip_vs_rs_hash() 530 dest->in_rs_table = 1; ip_vs_rs_hash() 534 static void ip_vs_rs_unhash(struct ip_vs_dest *dest) ip_vs_rs_unhash() argument 539 if (dest->in_rs_table) { ip_vs_rs_unhash() 540 hlist_del_rcu(&dest->d_list); ip_vs_rs_unhash() 541 dest->in_rs_table = 0; ip_vs_rs_unhash() 551 struct ip_vs_dest *dest; ip_vs_has_real_service() local 557 hlist_for_each_entry_rcu(dest, &ipvs->rs_table[hash], d_list) { ip_vs_has_real_service() 558 if (dest->port == dport && ip_vs_has_real_service() 559 dest->af == af && ip_vs_has_real_service() 560 ip_vs_addr_equal(af, &dest->addr, daddr) && ip_vs_has_real_service() 561 (dest->protocol == protocol || dest->vfwmark)) { ip_vs_has_real_service() 579 struct ip_vs_dest *dest; ip_vs_lookup_dest() local 584 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { ip_vs_lookup_dest() 585 if ((dest->af == dest_af) && ip_vs_lookup_dest() 586 ip_vs_addr_equal(dest_af, &dest->addr, daddr) && ip_vs_lookup_dest() 587 (dest->port == dport)) { ip_vs_lookup_dest() 589 return dest; ip_vs_lookup_dest() 611 struct ip_vs_dest *dest; ip_vs_find_dest() local 620 dest = ip_vs_lookup_dest(svc, dest_af, daddr, port); ip_vs_find_dest() 621 if (!dest) ip_vs_find_dest() 622 dest = ip_vs_lookup_dest(svc, dest_af, daddr, port ^ dport); ip_vs_find_dest() 623 return dest; ip_vs_find_dest() 636 /* Release dest_dst and dst_cache for dest in user context */ __ip_vs_dst_cache_reset() 637 static void __ip_vs_dst_cache_reset(struct ip_vs_dest *dest) __ip_vs_dst_cache_reset() argument 641 old = rcu_dereference_protected(dest->dest_dst, 1); __ip_vs_dst_cache_reset() 643 RCU_INIT_POINTER(dest->dest_dst, NULL); __ip_vs_dst_cache_reset() 649 * Lookup dest by {svc,addr,port} in the destination trash. 652 * The reason to add the destination trash is when the dest is temporary 653 * down (either by administrator or by monitor program), the dest can be 654 * picked back from the trash, the remaining connections to the dest can 655 * continue, and the counting information of the dest is also useful for 662 struct ip_vs_dest *dest; ip_vs_trash_get_dest() local 669 list_for_each_entry(dest, &ipvs->dest_trash, t_list) { ip_vs_trash_get_dest() 671 "dest->refcnt=%d\n", ip_vs_trash_get_dest() 672 dest->vfwmark, ip_vs_trash_get_dest() 673 IP_VS_DBG_ADDR(dest->af, &dest->addr), ip_vs_trash_get_dest() 674 ntohs(dest->port), ip_vs_trash_get_dest() 675 atomic_read(&dest->refcnt)); ip_vs_trash_get_dest() 676 if (dest->af == dest_af && ip_vs_trash_get_dest() 677 ip_vs_addr_equal(dest_af, &dest->addr, daddr) && ip_vs_trash_get_dest() 678 dest->port == dport && ip_vs_trash_get_dest() 679 dest->vfwmark == svc->fwmark && ip_vs_trash_get_dest() 680 dest->protocol == svc->protocol && ip_vs_trash_get_dest() 682 (ip_vs_addr_equal(svc->af, &dest->vaddr, &svc->addr) && ip_vs_trash_get_dest() 683 dest->vport == svc->port))) { ip_vs_trash_get_dest() 685 list_del(&dest->t_list); ip_vs_trash_get_dest() 686 ip_vs_dest_hold(dest); ip_vs_trash_get_dest() 691 dest = NULL; ip_vs_trash_get_dest() 696 return dest; ip_vs_trash_get_dest() 699 static void ip_vs_dest_free(struct ip_vs_dest *dest) ip_vs_dest_free() argument 701 struct ip_vs_service *svc = rcu_dereference_protected(dest->svc, 1); ip_vs_dest_free() 703 __ip_vs_dst_cache_reset(dest); ip_vs_dest_free() 705 free_percpu(dest->stats.cpustats); ip_vs_dest_free() 706 ip_vs_dest_put_and_free(dest); ip_vs_dest_free() 720 struct ip_vs_dest *dest, *nxt; ip_vs_trash_cleanup() local 725 list_for_each_entry_safe(dest, nxt, &ipvs->dest_trash, t_list) { ip_vs_trash_cleanup() 726 list_del(&dest->t_list); ip_vs_trash_cleanup() 727 ip_vs_dest_free(dest); ip_vs_trash_cleanup() 788 __ip_vs_update_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest, __ip_vs_update_dest() argument 797 BUG_ON(!add && udest->af != dest->af); __ip_vs_update_dest() 803 atomic_set(&dest->weight, udest->weight); __ip_vs_update_dest() 815 ip_vs_rs_hash(ipvs, dest); __ip_vs_update_dest() 817 atomic_set(&dest->conn_flags, conn_flags); __ip_vs_update_dest() 820 old_svc = rcu_dereference_protected(dest->svc, 1); __ip_vs_update_dest() 822 __ip_vs_bind_svc(dest, svc); __ip_vs_update_dest() 825 ip_vs_zero_stats(&dest->stats); __ip_vs_update_dest() 826 __ip_vs_bind_svc(dest, svc); __ip_vs_update_dest() 831 /* set the dest status flags */ __ip_vs_update_dest() 832 dest->flags |= IP_VS_DEST_F_AVAILABLE; __ip_vs_update_dest() 834 if (udest->u_threshold == 0 || udest->u_threshold > dest->u_threshold) __ip_vs_update_dest() 835 dest->flags &= ~IP_VS_DEST_F_OVERLOAD; __ip_vs_update_dest() 836 dest->u_threshold = udest->u_threshold; __ip_vs_update_dest() 837 dest->l_threshold = udest->l_threshold; __ip_vs_update_dest() 839 dest->af = udest->af; __ip_vs_update_dest() 841 spin_lock_bh(&dest->dst_lock); __ip_vs_update_dest() 842 __ip_vs_dst_cache_reset(dest); __ip_vs_update_dest() 843 spin_unlock_bh(&dest->dst_lock); __ip_vs_update_dest() 846 ip_vs_start_estimator(svc->net, &dest->stats); __ip_vs_update_dest() 847 list_add_rcu(&dest->n_list, &svc->destinations); __ip_vs_update_dest() 851 sched->add_dest(svc, dest); __ip_vs_update_dest() 855 sched->upd_dest(svc, dest); __ip_vs_update_dest() 867 struct ip_vs_dest *dest; ip_vs_new_dest() local 887 dest = kzalloc(sizeof(struct ip_vs_dest), GFP_KERNEL); ip_vs_new_dest() 888 if (dest == NULL) ip_vs_new_dest() 891 dest->stats.cpustats = alloc_percpu(struct ip_vs_cpu_stats); ip_vs_new_dest() 892 if (!dest->stats.cpustats) ip_vs_new_dest() 897 ip_vs_dest_stats = per_cpu_ptr(dest->stats.cpustats, i); for_each_possible_cpu() 901 dest->af = udest->af; 902 dest->protocol = svc->protocol; 903 dest->vaddr = svc->addr; 904 dest->vport = svc->port; 905 dest->vfwmark = svc->fwmark; 906 ip_vs_addr_copy(udest->af, &dest->addr, &udest->addr); 907 dest->port = udest->port; 909 atomic_set(&dest->activeconns, 0); 910 atomic_set(&dest->inactconns, 0); 911 atomic_set(&dest->persistconns, 0); 912 atomic_set(&dest->refcnt, 1); 914 INIT_HLIST_NODE(&dest->d_list); 915 spin_lock_init(&dest->dst_lock); 916 spin_lock_init(&dest->stats.lock); 917 __ip_vs_update_dest(svc, dest, udest, 1); 919 *dest_p = dest; 925 kfree(dest); 936 struct ip_vs_dest *dest; ip_vs_add_dest() local 958 dest = ip_vs_lookup_dest(svc, udest->af, &daddr, dport); ip_vs_add_dest() 961 if (dest != NULL) { ip_vs_add_dest() 962 IP_VS_DBG(1, "%s(): dest already exists\n", __func__); ip_vs_add_dest() 967 * Check if the dest already exists in the trash and ip_vs_add_dest() 970 dest = ip_vs_trash_get_dest(svc, udest->af, &daddr, dport); ip_vs_add_dest() 972 if (dest != NULL) { ip_vs_add_dest() 974 "dest->refcnt=%d, service %u/%s:%u\n", ip_vs_add_dest() 976 atomic_read(&dest->refcnt), ip_vs_add_dest() 977 dest->vfwmark, ip_vs_add_dest() 978 IP_VS_DBG_ADDR(svc->af, &dest->vaddr), ip_vs_add_dest() 979 ntohs(dest->vport)); ip_vs_add_dest() 981 __ip_vs_update_dest(svc, dest, udest, 1); ip_vs_add_dest() 985 * Allocate and initialize the dest structure ip_vs_add_dest() 987 ret = ip_vs_new_dest(svc, udest, &dest); ip_vs_add_dest() 1001 struct ip_vs_dest *dest; ip_vs_edit_dest() local 1022 dest = ip_vs_lookup_dest(svc, udest->af, &daddr, dport); ip_vs_edit_dest() 1025 if (dest == NULL) { ip_vs_edit_dest() 1026 IP_VS_DBG(1, "%s(): dest doesn't exist\n", __func__); ip_vs_edit_dest() 1030 __ip_vs_update_dest(svc, dest, udest, 0); ip_vs_edit_dest() 1039 static void __ip_vs_del_dest(struct net *net, struct ip_vs_dest *dest, __ip_vs_del_dest() argument 1044 ip_vs_stop_estimator(net, &dest->stats); __ip_vs_del_dest() 1049 ip_vs_rs_unhash(dest); __ip_vs_del_dest() 1052 IP_VS_DBG_BUF(3, "Moving dest %s:%u into trash, dest->refcnt=%d\n", __ip_vs_del_dest() 1053 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port), __ip_vs_del_dest() 1054 atomic_read(&dest->refcnt)); __ip_vs_del_dest() 1058 /* dest lives in trash without reference */ __ip_vs_del_dest() 1059 list_add(&dest->t_list, &ipvs->dest_trash); __ip_vs_del_dest() 1060 dest->idle_start = 0; __ip_vs_del_dest() 1062 ip_vs_dest_put(dest); __ip_vs_del_dest() 1070 struct ip_vs_dest *dest, __ip_vs_unlink_dest() 1073 dest->flags &= ~IP_VS_DEST_F_AVAILABLE; __ip_vs_unlink_dest() 1078 list_del_rcu(&dest->n_list); __ip_vs_unlink_dest() 1081 if (dest->af != svc->af) __ip_vs_unlink_dest() 1089 sched->del_dest(svc, dest); __ip_vs_unlink_dest() 1100 struct ip_vs_dest *dest; ip_vs_del_dest() local 1107 dest = ip_vs_lookup_dest(svc, udest->af, &udest->addr, dport); ip_vs_del_dest() 1110 if (dest == NULL) { ip_vs_del_dest() 1116 * Unlink dest from the service ip_vs_del_dest() 1118 __ip_vs_unlink_dest(svc, dest, 1); ip_vs_del_dest() 1123 __ip_vs_del_dest(svc->net, dest, false); ip_vs_del_dest() 1134 struct ip_vs_dest *dest, *next; ip_vs_dest_trash_expire() local 1138 list_for_each_entry_safe(dest, next, &ipvs->dest_trash, t_list) { ip_vs_dest_trash_expire() 1139 if (atomic_read(&dest->refcnt) > 0) ip_vs_dest_trash_expire() 1141 if (dest->idle_start) { ip_vs_dest_trash_expire() 1142 if (time_before(now, dest->idle_start + ip_vs_dest_trash_expire() 1146 dest->idle_start = max(1UL, now); ip_vs_dest_trash_expire() 1150 dest->vfwmark, ip_vs_dest_trash_expire() 1151 IP_VS_DBG_ADDR(dest->af, &dest->addr), ip_vs_dest_trash_expire() 1152 ntohs(dest->port)); ip_vs_dest_trash_expire() 1153 list_del(&dest->t_list); ip_vs_dest_trash_expire() 1154 ip_vs_dest_free(dest); ip_vs_dest_trash_expire() 1381 struct ip_vs_dest *dest, *nxt; __ip_vs_del_service() local 1406 list_for_each_entry_safe(dest, nxt, &svc->destinations, n_list) { __ip_vs_del_service() 1407 __ip_vs_unlink_dest(svc, dest, 0); __ip_vs_del_service() 1408 __ip_vs_del_dest(svc->net, dest, cleanup); __ip_vs_del_service() 1506 ip_vs_forget_dev(struct ip_vs_dest *dest, struct net_device *dev) ip_vs_forget_dev() argument 1510 spin_lock_bh(&dest->dst_lock); ip_vs_forget_dev() 1511 dest_dst = rcu_dereference_protected(dest->dest_dst, 1); ip_vs_forget_dev() 1513 IP_VS_DBG_BUF(3, "Reset dev:%s dest %s:%u ,dest->refcnt=%d\n", ip_vs_forget_dev() 1515 IP_VS_DBG_ADDR(dest->af, &dest->addr), ip_vs_forget_dev() 1516 ntohs(dest->port), ip_vs_forget_dev() 1517 atomic_read(&dest->refcnt)); ip_vs_forget_dev() 1518 __ip_vs_dst_cache_reset(dest); ip_vs_forget_dev() 1520 spin_unlock_bh(&dest->dst_lock); ip_vs_forget_dev() 1533 struct ip_vs_dest *dest; ip_vs_dst_event() local 1544 list_for_each_entry(dest, &svc->destinations, ip_vs_dst_event() 1546 ip_vs_forget_dev(dest, dev); ip_vs_dst_event() 1553 list_for_each_entry(dest, &svc->destinations, ip_vs_dst_event() 1555 ip_vs_forget_dev(dest, dev); ip_vs_dst_event() 1563 list_for_each_entry(dest, &ipvs->dest_trash, t_list) { ip_vs_dst_event() 1564 ip_vs_forget_dev(dest, dev); ip_vs_dst_event() 1577 struct ip_vs_dest *dest; ip_vs_zero_service() local 1579 list_for_each_entry(dest, &svc->destinations, n_list) { ip_vs_zero_service() 1580 ip_vs_zero_stats(&dest->stats); ip_vs_zero_service() 1998 const struct ip_vs_dest *dest; ip_vs_info_seq_show() local 2031 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { ip_vs_info_seq_show() 2033 if (dest->af == AF_INET6) ip_vs_info_seq_show() 2037 &dest->addr.in6, ip_vs_info_seq_show() 2038 ntohs(dest->port), ip_vs_info_seq_show() 2039 ip_vs_fwd_name(atomic_read(&dest->conn_flags)), ip_vs_info_seq_show() 2040 atomic_read(&dest->weight), ip_vs_info_seq_show() 2041 atomic_read(&dest->activeconns), ip_vs_info_seq_show() 2042 atomic_read(&dest->inactconns)); ip_vs_info_seq_show() 2048 ntohl(dest->addr.ip), ip_vs_info_seq_show() 2049 ntohs(dest->port), ip_vs_info_seq_show() 2050 ip_vs_fwd_name(atomic_read(&dest->conn_flags)), ip_vs_info_seq_show() 2051 atomic_read(&dest->weight), ip_vs_info_seq_show() 2052 atomic_read(&dest->activeconns), ip_vs_info_seq_show() 2053 atomic_read(&dest->inactconns)); ip_vs_info_seq_show() 2532 struct ip_vs_dest *dest; __ip_vs_get_dest_entries() local 2537 list_for_each_entry(dest, &svc->destinations, n_list) { __ip_vs_get_dest_entries() 2544 if (dest->af != svc->af) __ip_vs_get_dest_entries() 2547 entry.addr = dest->addr.ip; __ip_vs_get_dest_entries() 2548 entry.port = dest->port; __ip_vs_get_dest_entries() 2549 entry.conn_flags = atomic_read(&dest->conn_flags); __ip_vs_get_dest_entries() 2550 entry.weight = atomic_read(&dest->weight); __ip_vs_get_dest_entries() 2551 entry.u_threshold = dest->u_threshold; __ip_vs_get_dest_entries() 2552 entry.l_threshold = dest->l_threshold; __ip_vs_get_dest_entries() 2553 entry.activeconns = atomic_read(&dest->activeconns); __ip_vs_get_dest_entries() 2554 entry.inactconns = atomic_read(&dest->inactconns); __ip_vs_get_dest_entries() 2555 entry.persistconns = atomic_read(&dest->persistconns); __ip_vs_get_dest_entries() 2556 ip_vs_copy_stats(&kstats, &dest->stats); __ip_vs_get_dest_entries() 3112 static int ip_vs_genl_fill_dest(struct sk_buff *skb, struct ip_vs_dest *dest) ip_vs_genl_fill_dest() argument 3121 if (nla_put(skb, IPVS_DEST_ATTR_ADDR, sizeof(dest->addr), &dest->addr) || ip_vs_genl_fill_dest() 3122 nla_put_be16(skb, IPVS_DEST_ATTR_PORT, dest->port) || ip_vs_genl_fill_dest() 3124 (atomic_read(&dest->conn_flags) & ip_vs_genl_fill_dest() 3127 atomic_read(&dest->weight)) || ip_vs_genl_fill_dest() 3128 nla_put_u32(skb, IPVS_DEST_ATTR_U_THRESH, dest->u_threshold) || ip_vs_genl_fill_dest() 3129 nla_put_u32(skb, IPVS_DEST_ATTR_L_THRESH, dest->l_threshold) || ip_vs_genl_fill_dest() 3131 atomic_read(&dest->activeconns)) || ip_vs_genl_fill_dest() 3133 atomic_read(&dest->inactconns)) || ip_vs_genl_fill_dest() 3135 atomic_read(&dest->persistconns)) || ip_vs_genl_fill_dest() 3136 nla_put_u16(skb, IPVS_DEST_ATTR_ADDR_FAMILY, dest->af)) ip_vs_genl_fill_dest() 3138 ip_vs_copy_stats(&kstats, &dest->stats); ip_vs_genl_fill_dest() 3153 static int ip_vs_genl_dump_dest(struct sk_buff *skb, struct ip_vs_dest *dest, ip_vs_genl_dump_dest() argument 3164 if (ip_vs_genl_fill_dest(skb, dest) < 0) ip_vs_genl_dump_dest() 3181 struct ip_vs_dest *dest; ip_vs_genl_dump_dests() local 3198 list_for_each_entry(dest, &svc->destinations, n_list) { ip_vs_genl_dump_dests() 3201 if (ip_vs_genl_dump_dest(skb, dest, cb) < 0) { ip_vs_genl_dump_dests() 1069 __ip_vs_unlink_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest, int svcupd) __ip_vs_unlink_dest() argument
|
H A D | ip_vs_sed.c | 48 ip_vs_sed_dest_overhead(struct ip_vs_dest *dest) ip_vs_sed_dest_overhead() argument 54 return atomic_read(&dest->activeconns) + 1; ip_vs_sed_dest_overhead() 65 struct ip_vs_dest *dest, *least; ip_vs_sed_schedule() local 71 * We calculate the load of each dest server as follows: ip_vs_sed_schedule() 72 * (server expected overhead) / dest->weight ip_vs_sed_schedule() 83 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { ip_vs_sed_schedule() 84 if (!(dest->flags & IP_VS_DEST_F_OVERLOAD) && ip_vs_sed_schedule() 85 atomic_read(&dest->weight) > 0) { ip_vs_sed_schedule() 86 least = dest; ip_vs_sed_schedule() 98 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { ip_vs_sed_schedule() 99 if (dest->flags & IP_VS_DEST_F_OVERLOAD) ip_vs_sed_schedule() 101 doh = ip_vs_sed_dest_overhead(dest); ip_vs_sed_schedule() 102 if ((__s64)loh * atomic_read(&dest->weight) > ip_vs_sed_schedule() 104 least = dest; ip_vs_sed_schedule()
|
H A D | ip_vs_lblc.c | 96 struct ip_vs_dest *dest; /* real server (cache) */ member in struct:ip_vs_lblc_entry 139 ip_vs_dest_put_and_free(en->dest); ip_vs_lblc_rcu_free() 202 u16 af, struct ip_vs_dest *dest) ip_vs_lblc_new() 208 if (en->dest == dest) ip_vs_lblc_new() 220 ip_vs_dest_hold(dest); ip_vs_lblc_new() 221 en->dest = dest; ip_vs_lblc_new() 405 struct ip_vs_dest *dest, *least; __ip_vs_lblc_schedule() local 410 * (dest overhead) / dest->weight __ip_vs_lblc_schedule() 420 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { __ip_vs_lblc_schedule() 421 if (dest->flags & IP_VS_DEST_F_OVERLOAD) __ip_vs_lblc_schedule() 423 if (atomic_read(&dest->weight) > 0) { __ip_vs_lblc_schedule() 424 least = dest; __ip_vs_lblc_schedule() 435 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { __ip_vs_lblc_schedule() 436 if (dest->flags & IP_VS_DEST_F_OVERLOAD) __ip_vs_lblc_schedule() 439 doh = ip_vs_dest_conn_overhead(dest); __ip_vs_lblc_schedule() 440 if ((__s64)loh * atomic_read(&dest->weight) > __ip_vs_lblc_schedule() 442 least = dest; __ip_vs_lblc_schedule() 464 is_overloaded(struct ip_vs_dest *dest, struct ip_vs_service *svc) is_overloaded() argument 466 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { is_overloaded() 488 struct ip_vs_dest *dest = NULL; ip_vs_lblc_schedule() local 508 dest = en->dest; ip_vs_lblc_schedule() 509 if ((dest->flags & IP_VS_DEST_F_AVAILABLE) && ip_vs_lblc_schedule() 510 atomic_read(&dest->weight) > 0 && !is_overloaded(dest, svc)) ip_vs_lblc_schedule() 515 dest = __ip_vs_lblc_schedule(svc); ip_vs_lblc_schedule() 516 if (!dest) { ip_vs_lblc_schedule() 521 /* If we fail to create a cache entry, we'll just use the valid dest */ ip_vs_lblc_schedule() 524 ip_vs_lblc_new(tbl, &iph->daddr, svc->af, dest); ip_vs_lblc_schedule() 530 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); ip_vs_lblc_schedule() 532 return dest; ip_vs_lblc_schedule() 201 ip_vs_lblc_new(struct ip_vs_lblc_table *tbl, const union nf_inet_addr *daddr, u16 af, struct ip_vs_dest *dest) ip_vs_lblc_new() argument
|
H A D | ip_vs_conn.c | 263 * p->vaddr, p->vport: pkt dest address (load balancer) 402 * p->vaddr, p->vport: pkt dest address (foreign host) */ ip_vs_conn_out_get() 552 static inline int ip_vs_dest_totalconns(struct ip_vs_dest *dest) ip_vs_dest_totalconns() argument 554 return atomic_read(&dest->activeconns) ip_vs_dest_totalconns() 555 + atomic_read(&dest->inactconns); ip_vs_dest_totalconns() 563 ip_vs_bind_dest(struct ip_vs_conn *cp, struct ip_vs_dest *dest) ip_vs_bind_dest() argument 568 /* if dest is NULL, then return directly */ ip_vs_bind_dest() 569 if (!dest) ip_vs_bind_dest() 572 /* Increase the refcnt counter of the dest */ ip_vs_bind_dest() 573 ip_vs_dest_hold(dest); ip_vs_bind_dest() 575 conn_flags = atomic_read(&dest->conn_flags); ip_vs_bind_dest() 586 /* connections inherit forwarding method from dest */ ip_vs_bind_dest() 591 cp->dest = dest; ip_vs_bind_dest() 593 IP_VS_DBG_BUF(7, "Bind-dest %s c:%s:%d v:%s:%d " ip_vs_bind_dest() 595 "dest->refcnt:%d\n", ip_vs_bind_dest() 602 atomic_read(&dest->refcnt)); ip_vs_bind_dest() 611 atomic_inc(&dest->activeconns); ip_vs_bind_dest() 613 atomic_inc(&dest->inactconns); ip_vs_bind_dest() 617 atomic_inc(&dest->persistconns); ip_vs_bind_dest() 620 if (dest->u_threshold != 0 && ip_vs_bind_dest() 621 ip_vs_dest_totalconns(dest) >= dest->u_threshold) ip_vs_bind_dest() 622 dest->flags |= IP_VS_DEST_F_OVERLOAD; ip_vs_bind_dest() 632 struct ip_vs_dest *dest; ip_vs_try_bind_dest() local 641 dest = ip_vs_find_dest(ip_vs_conn_net(cp), cp->af, cp->af, &cp->daddr, ip_vs_try_bind_dest() 644 if (dest) { ip_vs_try_bind_dest() 648 if (cp->dest) { ip_vs_try_bind_dest() 655 * but better to reassign them always when binding dest */ ip_vs_try_bind_dest() 659 ip_vs_bind_dest(cp, dest); ip_vs_try_bind_dest() 685 struct ip_vs_dest *dest = cp->dest; ip_vs_unbind_dest() local 687 if (!dest) ip_vs_unbind_dest() 690 IP_VS_DBG_BUF(7, "Unbind-dest %s c:%s:%d v:%s:%d " ip_vs_unbind_dest() 692 "dest->refcnt:%d\n", ip_vs_unbind_dest() 699 atomic_read(&dest->refcnt)); ip_vs_unbind_dest() 706 atomic_dec(&dest->inactconns); ip_vs_unbind_dest() 708 atomic_dec(&dest->activeconns); ip_vs_unbind_dest() 713 atomic_dec(&dest->persistconns); ip_vs_unbind_dest() 716 if (dest->l_threshold != 0) { ip_vs_unbind_dest() 717 if (ip_vs_dest_totalconns(dest) < dest->l_threshold) ip_vs_unbind_dest() 718 dest->flags &= ~IP_VS_DEST_F_OVERLOAD; ip_vs_unbind_dest() 719 } else if (dest->u_threshold != 0) { ip_vs_unbind_dest() 720 if (ip_vs_dest_totalconns(dest) * 4 < dest->u_threshold * 3) ip_vs_unbind_dest() 721 dest->flags &= ~IP_VS_DEST_F_OVERLOAD; ip_vs_unbind_dest() 723 if (dest->flags & IP_VS_DEST_F_OVERLOAD) ip_vs_unbind_dest() 724 dest->flags &= ~IP_VS_DEST_F_OVERLOAD; ip_vs_unbind_dest() 727 ip_vs_dest_put(dest); ip_vs_unbind_dest() 731 struct ip_vs_dest *dest) expire_quiescent_template() 735 (atomic_read(&dest->weight) == 0); expire_quiescent_template() 748 struct ip_vs_dest *dest = ct->dest; ip_vs_check_template() local 752 * Checking the dest server status. ip_vs_check_template() 754 if ((dest == NULL) || ip_vs_check_template() 755 !(dest->flags & IP_VS_DEST_F_AVAILABLE) || ip_vs_check_template() 756 expire_quiescent_template(ipvs, dest)) { ip_vs_check_template() 757 IP_VS_DBG_BUF(9, "check_template: dest not available for " ip_vs_check_template() 875 struct ip_vs_dest *dest, __u32 fwmark) ip_vs_conn_new() 939 cp->dest = NULL; ip_vs_conn_new() 940 ip_vs_bind_dest(cp, dest); ip_vs_conn_new() 730 expire_quiescent_template(struct netns_ipvs *ipvs, struct ip_vs_dest *dest) expire_quiescent_template() argument 873 ip_vs_conn_new(const struct ip_vs_conn_param *p, int dest_af, const union nf_inet_addr *daddr, __be16 dport, unsigned int flags, struct ip_vs_dest *dest, __u32 fwmark) ip_vs_conn_new() argument
|
H A D | ip_vs_xmit.c | 50 IP_VS_RT_MODE_LOCAL = 1, /* Allow local dest */ 51 IP_VS_RT_MODE_NON_LOCAL = 2, /* Allow non-local dest */ 74 __ip_vs_dst_set(struct ip_vs_dest *dest, struct ip_vs_dest_dst *dest_dst, __ip_vs_dst_set() argument 79 old = rcu_dereference_protected(dest->dest_dst, __ip_vs_dst_set() 80 lockdep_is_held(&dest->dst_lock)); __ip_vs_dst_set() 86 rcu_assign_pointer(dest->dest_dst, dest_dst); __ip_vs_dst_set() 93 __ip_vs_dst_check(struct ip_vs_dest *dest) __ip_vs_dst_check() argument 95 struct ip_vs_dest_dst *dest_dst = rcu_dereference(dest->dest_dst); __ip_vs_dst_check() 146 IP_VS_DBG_RL("ip_route_output error, dest: %pI4\n", &daddr); do_output_route4() 259 __ip_vs_get_out_rt(int skb_af, struct sk_buff *skb, struct ip_vs_dest *dest, __ip_vs_get_out_rt() argument 269 if (dest) { __ip_vs_get_out_rt() 270 dest_dst = __ip_vs_dst_check(dest); __ip_vs_get_out_rt() 275 spin_lock_bh(&dest->dst_lock); __ip_vs_get_out_rt() 277 __ip_vs_dst_set(dest, NULL, NULL, 0); __ip_vs_get_out_rt() 278 spin_unlock_bh(&dest->dst_lock); __ip_vs_get_out_rt() 281 rt = do_output_route4(net, dest->addr.ip, rt_mode, __ip_vs_get_out_rt() 284 __ip_vs_dst_set(dest, NULL, NULL, 0); __ip_vs_get_out_rt() 285 spin_unlock_bh(&dest->dst_lock); __ip_vs_get_out_rt() 289 __ip_vs_dst_set(dest, dest_dst, &rt->dst, 0); __ip_vs_get_out_rt() 290 spin_unlock_bh(&dest->dst_lock); __ip_vs_get_out_rt() 292 &dest->addr.ip, &dest_dst->dst_saddr.ip, __ip_vs_get_out_rt() 394 IP_VS_DBG_RL("ip6_route_output error, dest: %pI6\n", daddr); __ip_vs_route_output_v6() 402 __ip_vs_get_out_rt_v6(int skb_af, struct sk_buff *skb, struct ip_vs_dest *dest, __ip_vs_get_out_rt_v6() argument 413 if (dest) { __ip_vs_get_out_rt_v6() 414 dest_dst = __ip_vs_dst_check(dest); __ip_vs_get_out_rt_v6() 421 spin_lock_bh(&dest->dst_lock); __ip_vs_get_out_rt_v6() 423 __ip_vs_dst_set(dest, NULL, NULL, 0); __ip_vs_get_out_rt_v6() 424 spin_unlock_bh(&dest->dst_lock); __ip_vs_get_out_rt_v6() 427 dst = __ip_vs_route_output_v6(net, &dest->addr.in6, __ip_vs_get_out_rt_v6() 431 __ip_vs_dst_set(dest, NULL, NULL, 0); __ip_vs_get_out_rt_v6() 432 spin_unlock_bh(&dest->dst_lock); __ip_vs_get_out_rt_v6() 438 __ip_vs_dst_set(dest, dest_dst, &rt->dst, cookie); __ip_vs_get_out_rt_v6() 439 spin_unlock_bh(&dest->dst_lock); __ip_vs_get_out_rt_v6() 441 &dest->addr.in6, &dest_dst->dst_saddr.in6, __ip_vs_get_out_rt_v6() 698 local = __ip_vs_get_out_rt(cp->af, skb, cp->dest, cp->daddr.ip, ip_vs_nat_xmit() 786 local = __ip_vs_get_out_rt_v6(cp->af, skb, cp->dest, &cp->daddr.in6, ip_vs_nat_xmit_v6() 976 local = __ip_vs_get_out_rt(cp->af, skb, cp->dest, cp->daddr.ip, ip_vs_tunnel_xmit() 1070 local = __ip_vs_get_out_rt_v6(cp->af, skb, cp->dest, &cp->daddr.in6, ip_vs_tunnel_xmit_v6() 1157 local = __ip_vs_get_out_rt(cp->af, skb, cp->dest, cp->daddr.ip, ip_vs_dr_xmit() 1196 local = __ip_vs_get_out_rt_v6(cp->af, skb, cp->dest, &cp->daddr.in6, ip_vs_dr_xmit_v6() 1264 local = __ip_vs_get_out_rt(cp->af, skb, cp->dest, cp->daddr.ip, rt_mode, ip_vs_icmp_xmit() 1356 local = __ip_vs_get_out_rt_v6(cp->af, skb, cp->dest, &cp->daddr.in6, ip_vs_icmp_xmit_v6()
|
H A D | ip_vs_core.c | 114 struct ip_vs_dest *dest = cp->dest; ip_vs_in_stats() local 117 if (dest && (dest->flags & IP_VS_DEST_F_AVAILABLE)) { ip_vs_in_stats() 121 s = this_cpu_ptr(dest->stats.cpustats); ip_vs_in_stats() 128 svc = rcu_dereference(dest->svc); ip_vs_in_stats() 148 struct ip_vs_dest *dest = cp->dest; ip_vs_out_stats() local 151 if (dest && (dest->flags & IP_VS_DEST_F_AVAILABLE)) { ip_vs_out_stats() 155 s = this_cpu_ptr(dest->stats.cpustats); ip_vs_out_stats() 162 svc = rcu_dereference(dest->svc); ip_vs_out_stats() 185 s = this_cpu_ptr(cp->dest->stats.cpustats); ip_vs_conn_stats() 240 struct ip_vs_dest *dest; ip_vs_sched_persist() local 258 IP_VS_DBG_BUF(6, "p-schedule: src %s:%u dest %s:%u " ip_vs_sched_persist() 317 * No template found or the dest of the connection ip_vs_sched_persist() 325 dest = sched->schedule(svc, skb, iph); ip_vs_sched_persist() 327 dest = NULL; ip_vs_sched_persist() 329 if (!dest) { ip_vs_sched_persist() 330 IP_VS_DBG(1, "p-schedule: no dest found.\n"); ip_vs_sched_persist() 337 dport = dest->port; ip_vs_sched_persist() 343 ct = ip_vs_conn_new(¶m, dest->af, &dest->addr, dport, ip_vs_sched_persist() 344 IP_VS_CONN_F_TEMPLATE, dest, skb->mark); ip_vs_sched_persist() 354 dest = ct->dest; ip_vs_sched_persist() 359 if (dport == svc->port && dest->port) ip_vs_sched_persist() 360 dport = dest->port; ip_vs_sched_persist() 372 cp = ip_vs_conn_new(¶m, dest->af, &dest->addr, dport, flags, dest, ip_vs_sched_persist() 420 struct ip_vs_dest *dest; ip_vs_schedule() local 479 dest = sched->schedule(svc, skb, iph); ip_vs_schedule() 481 dest = NULL; ip_vs_schedule() 483 if (dest == NULL) { ip_vs_schedule() 484 IP_VS_DBG(1, "Schedule: no dest found.\n"); ip_vs_schedule() 501 cp = ip_vs_conn_new(&p, dest->af, &dest->addr, ip_vs_schedule() 502 dest->port ? dest->port : pptr[1], ip_vs_schedule() 503 flags, dest, skb->mark); ip_vs_schedule() 939 /* The embedded headers contain source and dest in reverse order */ ip_vs_out_icmp() 1003 /* The embedded headers contain source and dest in reverse order */ ip_vs_out_icmp_v6() 1422 /* The embedded headers contain source and dest in reverse order. ip_vs_in_icmp() 1447 struct ip_vs_dest *dest = cp->dest; ip_vs_in_icmp() local 1464 if (dest) { ip_vs_in_icmp() 1468 dest_dst = rcu_dereference(dest->dest_dst); ip_vs_in_icmp() 1575 /* The embedded headers contain source and dest in reverse order ip_vs_in_icmp_v6() 1694 ((unlikely(sysctl_expire_nodest_conn(ipvs)) && cp->dest && ip_vs_in() 1695 unlikely(!atomic_read(&cp->dest->weight))) || ip_vs_in() 1730 if (cp->dest && !(cp->dest->flags & IP_VS_DEST_F_AVAILABLE)) { ip_vs_in()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | atafb_mfb.c | 28 u8 *src, *dest; atafb_mfb_copyarea() local 33 dest = (u8 *)info->screen_base + dy * (width >> 3); atafb_mfb_copyarea() 34 fb_memmove(dest, src, height * (width >> 3)); atafb_mfb_copyarea() 37 dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3); atafb_mfb_copyarea() 39 fb_memmove(dest, src, width >> 3); atafb_mfb_copyarea() 41 dest += next_line; atafb_mfb_copyarea() 45 dest = (u8 *)info->screen_base + (dy + height - 1) * next_line + (dx >> 3); atafb_mfb_copyarea() 47 fb_memmove(dest, src, width >> 3); atafb_mfb_copyarea() 49 dest -= next_line; atafb_mfb_copyarea() 57 u8 *dest; atafb_mfb_fillrect() local 60 dest = (u8 *)info->screen_base + sy * next_line + (sx >> 3); atafb_mfb_fillrect() 64 fb_memset255(dest, height * (width >> 3)); atafb_mfb_fillrect() 66 fb_memclear(dest, height * (width >> 3)); atafb_mfb_fillrect() 68 for (rows = height; rows--; dest += next_line) { atafb_mfb_fillrect() 70 fb_memset255(dest, width >> 3); atafb_mfb_fillrect() 72 fb_memclear_small(dest, width >> 3); atafb_mfb_fillrect() 81 u8 *dest; atafb_mfb_linefill() local 84 dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3); atafb_mfb_linefill() 88 *dest++ = *data++; atafb_mfb_linefill()
|
H A D | atafb_iplan2p8.c | 245 u32 *dest; atafb_iplan2p8_fillrect() local 249 dest = (u32 *)(info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL)); atafb_iplan2p8_fillrect() 251 u8 *dest8 = (u8 *)dest + 1; atafb_iplan2p8_fillrect() 259 dest += BPL / 2; atafb_iplan2p8_fillrect() 266 u32 *d = dest; atafb_iplan2p8_fillrect() 272 dest += rows * BPL / 2; atafb_iplan2p8_fillrect() 277 u8 *dest8 = (u8 *)dest; atafb_iplan2p8_fillrect() 292 u32 *dest; atafb_iplan2p8_linefill() local 297 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); atafb_iplan2p8_linefill() 299 fill8_2col((u8 *)dest + 1, fgcolor, bgcolor, *data++); atafb_iplan2p8_linefill() 300 dest += BPL / 2; atafb_iplan2p8_linefill() 311 *dest++ = (m & fgm[0]) ^ bgm[0]; atafb_iplan2p8_linefill() 312 *dest++ = (m & fgm[1]) ^ bgm[1]; atafb_iplan2p8_linefill() 313 *dest++ = (m & fgm[2]) ^ bgm[2]; atafb_iplan2p8_linefill() 314 *dest++ = (m & fgm[3]) ^ bgm[3]; atafb_iplan2p8_linefill() 322 fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); atafb_iplan2p8_linefill()
|
H A D | atafb_iplan2p4.c | 210 u32 *dest; atafb_iplan2p4_fillrect() local 214 dest = (u32 *)(info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL)); atafb_iplan2p4_fillrect() 216 u8 *dest8 = (u8 *)dest + 1; atafb_iplan2p4_fillrect() 224 dest += BPL / 2; atafb_iplan2p4_fillrect() 231 u32 *d = dest; atafb_iplan2p4_fillrect() 237 dest += rows * BPL / 2; atafb_iplan2p4_fillrect() 242 u8 *dest8 = (u8 *)dest; atafb_iplan2p4_fillrect() 257 u32 *dest; atafb_iplan2p4_linefill() local 262 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); atafb_iplan2p4_linefill() 264 fill8_2col((u8 *)dest + 1, fgcolor, bgcolor, *data++); atafb_iplan2p4_linefill() 265 dest += BPL / 2; atafb_iplan2p4_linefill() 276 *dest++ = (m & fgm[0]) ^ bgm[0]; atafb_iplan2p4_linefill() 277 *dest++ = (m & fgm[1]) ^ bgm[1]; atafb_iplan2p4_linefill() 285 fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); atafb_iplan2p4_linefill()
|
H A D | atafb_iplan2p2.c | 196 u32 *dest; atafb_iplan2p2_fillrect() local 200 dest = (u32 *)(info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL)); atafb_iplan2p2_fillrect() 202 u8 *dest8 = (u8 *)dest + 1; atafb_iplan2p2_fillrect() 210 dest += BPL / 2; atafb_iplan2p2_fillrect() 217 u32 *d = dest; atafb_iplan2p2_fillrect() 223 dest += rows * BPL / 2; atafb_iplan2p2_fillrect() 228 u8 *dest8 = (u8 *)dest; atafb_iplan2p2_fillrect() 243 u32 *dest; atafb_iplan2p2_linefill() local 248 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); atafb_iplan2p2_linefill() 250 fill8_2col((u8 *)dest + 1, fgcolor, bgcolor, *data++); atafb_iplan2p2_linefill() 251 dest += BPL / 2; atafb_iplan2p2_linefill() 262 *dest++ = (m & fgm[0]) ^ bgm[0]; atafb_iplan2p2_linefill() 270 fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); atafb_iplan2p2_linefill()
|
H A D | dnfb.c | 152 uint start_mask, end_mask, dest; dnfb_copyarea() local 160 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); dnfb_copyarea() 187 out_8(AP_CONTROL_3A, 0xc | (dest >> 16)); dnfb_copyarea() 196 *src = dest; dnfb_copyarea() 198 dest += incr; dnfb_copyarea() 202 *src = dest; dnfb_copyarea() 204 dest += incr; dnfb_copyarea() 208 *src = dest; dnfb_copyarea() 209 dest += incr; dnfb_copyarea() 213 *src = dest; dnfb_copyarea() 214 dest += incr; dnfb_copyarea() 218 dest += (y_delta / 16); dnfb_copyarea()
|
H A D | hgafb.c | 244 void __iomem *dest = hga_vram; hga_show_logo() 250 writeb(~*(logo++),(dest + HGA_ROWADDR(y) + x + 40)); hga_show_logo() 459 u8 __iomem *dest; hgafb_fillrect() local 464 dest = rowaddr(info, y) + (rect->dx >> 3); hgafb_fillrect() 467 memset_io(dest, rect->color, (rect->width >> 3)); hgafb_fillrect() 470 fb_writeb(~(fb_readb(dest)), dest); hgafb_fillrect() 480 u8 __iomem *dest; hgafb_copyarea() local 488 dest = rowaddr(info, y2) + (area->dx >> 3); hgafb_copyarea() 489 memmove(dest, src, (area->width >> 3)); hgafb_copyarea() 499 dest = rowaddr(info, y2) + (area->dx >> 3); hgafb_copyarea() 500 memmove(dest, src, (area->width >> 3)); hgafb_copyarea() 509 u8 __iomem *dest; hgafb_imageblit() local 518 dest = rowaddr(info, y) + ((image->dx + x)>> 3); hgafb_imageblit() 519 fb_writeb(d, dest); hgafb_imageblit()
|
/linux-4.1.27/arch/sparc/lib/ |
H A D | U3copy_from_user.S | 15 #define LOAD(type,addr,dest) type##a [addr] %asi, dest
|
H A D | csum_copy_from_user.S | 19 #define LOAD(type,addr,dest) type##a [addr] %asi, dest
|
H A D | NG2copy_from_user.S | 23 #define LOAD(type,addr,dest) type##a [addr] %asi, dest 24 #define LOAD_BLK(addr,dest) ldda [addr] ASI_BLK_AIUS_4V, dest
|
H A D | U1copy_from_user.S | 15 #define LOAD(type,addr,dest) type##a [addr] %asi, dest 16 #define LOAD_BLK(addr,dest) ldda [addr] ASI_BLK_AIUS, dest
|
H A D | GENcopy_from_user.S | 19 #define LOAD(type,addr,dest) type##a [addr] ASI_AIUS, dest
|
H A D | NG4copy_from_user.S | 19 #define LOAD(type,addr,dest) type##a [addr] %asi, dest
|
H A D | NG4clear_page.S | 16 NG4clear_page: /* %o0=dest */ 17 NG4clear_user_page: /* %o0=dest, %o1=vaddr */
|
H A D | NGcopy_from_user.S | 19 #define LOAD(type,addr,dest) type##a [addr] ASI_AIUS, dest
|
H A D | U1memcpy.S | 38 #define LOAD(type,addr,dest) type [addr], dest 42 #define LOAD_BLK(addr,dest) ldda [addr] ASI_BLK_P, dest 75 #define MAIN_LOOP_CHUNK(src, dest, fdest, fsrc, len, jmptgt) \ 77 EX_ST(STORE_BLK(%fsrc, %dest)); \ 81 add %dest, 0x40, %dest; \ 83 #define LOOP_CHUNK1(src, dest, len, branch_dest) \ 84 MAIN_LOOP_CHUNK(src, dest, f0, f48, len, branch_dest) 85 #define LOOP_CHUNK2(src, dest, len, branch_dest) \ 86 MAIN_LOOP_CHUNK(src, dest, f16, f48, len, branch_dest) 87 #define LOOP_CHUNK3(src, dest, len, branch_dest) \ 88 MAIN_LOOP_CHUNK(src, dest, f32, f48, len, branch_dest) 91 #define STORE_SYNC(dest, fsrc) \ 92 EX_ST(STORE_BLK(%fsrc, %dest)); \ 93 add %dest, 0x40, %dest; \ 96 #define STORE_JUMP(dest, fsrc, target) \ 97 EX_ST(STORE_BLK(%fsrc, %dest)); \ 98 add %dest, 0x40, %dest; \ 102 #define FINISH_VISCHUNK(dest, f0, f1, left) \ 106 EX_ST(STORE(std, %f48, %dest)); \ 107 add %dest, 8, %dest; 109 #define UNEVEN_VISCHUNK_LAST(dest, f0, f1, left) \ 114 #define UNEVEN_VISCHUNK(dest, f0, f1, left) \ 115 UNEVEN_VISCHUNK_LAST(dest, f0, f1, left) \
|
H A D | GENmemcpy.S | 25 #define LOAD(type,addr,dest) type [addr], dest
|
H A D | clear_page.S | 29 _clear_page: /* %o0=dest */ 38 clear_user_page: /* %o0=dest, %o1=vaddr */
|
/linux-4.1.27/include/uapi/linux/netfilter/ |
H A D | xt_addrtype.h | 32 __u16 dest; /* dest-type mask */ member in struct:xt_addrtype_info_v1 39 __u16 dest; /* dest-type mask */ member in struct:xt_addrtype_info
|
H A D | xt_tcpudp.h | 18 #define XT_TCP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */ 32 #define XT_UDP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */
|
/linux-4.1.27/arch/mips/boot/compressed/ |
H A D | string.c | 9 void *memcpy(void *dest, const void *src, size_t n) memcpy() argument 13 char *d = dest; memcpy() 17 return dest; memcpy()
|
/linux-4.1.27/drivers/crypto/caam/ |
H A D | desc_constr.h | 310 #define APPEND_MATH(op, desc, dest, src_0, src_1, len) \ 311 append_cmd(desc, CMD_MATH | MATH_FUN_##op | MATH_DEST_##dest | \ 314 #define append_math_add(desc, dest, src0, src1, len) \ 315 APPEND_MATH(ADD, desc, dest, src0, src1, len) 316 #define append_math_sub(desc, dest, src0, src1, len) \ 317 APPEND_MATH(SUB, desc, dest, src0, src1, len) 318 #define append_math_add_c(desc, dest, src0, src1, len) \ 319 APPEND_MATH(ADDC, desc, dest, src0, src1, len) 320 #define append_math_sub_b(desc, dest, src0, src1, len) \ 321 APPEND_MATH(SUBB, desc, dest, src0, src1, len) 322 #define append_math_and(desc, dest, src0, src1, len) \ 323 APPEND_MATH(AND, desc, dest, src0, src1, len) 324 #define append_math_or(desc, dest, src0, src1, len) \ 325 APPEND_MATH(OR, desc, dest, src0, src1, len) 326 #define append_math_xor(desc, dest, src0, src1, len) \ 327 APPEND_MATH(XOR, desc, dest, src0, src1, len) 328 #define append_math_lshift(desc, dest, src0, src1, len) \ 329 APPEND_MATH(LSHIFT, desc, dest, src0, src1, len) 330 #define append_math_rshift(desc, dest, src0, src1, len) \ 331 APPEND_MATH(RSHIFT, desc, dest, src0, src1, len) 332 #define append_math_ldshift(desc, dest, src0, src1, len) \ 333 APPEND_MATH(SHLD, desc, dest, src0, src1, len) 336 #define APPEND_MATH_IMM_u32(op, desc, dest, src_0, src_1, data) \ 338 APPEND_MATH(op, desc, dest, src_0, src_1, CAAM_CMD_SZ); \ 342 #define append_math_add_imm_u32(desc, dest, src0, src1, data) \ 343 APPEND_MATH_IMM_u32(ADD, desc, dest, src0, src1, data) 344 #define append_math_sub_imm_u32(desc, dest, src0, src1, data) \ 345 APPEND_MATH_IMM_u32(SUB, desc, dest, src0, src1, data) 346 #define append_math_add_c_imm_u32(desc, dest, src0, src1, data) \ 347 APPEND_MATH_IMM_u32(ADDC, desc, dest, src0, src1, data) 348 #define append_math_sub_b_imm_u32(desc, dest, src0, src1, data) \ 349 APPEND_MATH_IMM_u32(SUBB, desc, dest, src0, src1, data) 350 #define append_math_and_imm_u32(desc, dest, src0, src1, data) \ 351 APPEND_MATH_IMM_u32(AND, desc, dest, src0, src1, data) 352 #define append_math_or_imm_u32(desc, dest, src0, src1, data) \ 353 APPEND_MATH_IMM_u32(OR, desc, dest, src0, src1, data) 354 #define append_math_xor_imm_u32(desc, dest, src0, src1, data) \ 355 APPEND_MATH_IMM_u32(XOR, desc, dest, src0, src1, data) 356 #define append_math_lshift_imm_u32(desc, dest, src0, src1, data) \ 357 APPEND_MATH_IMM_u32(LSHIFT, desc, dest, src0, src1, data) 358 #define append_math_rshift_imm_u32(desc, dest, src0, src1, data) \ 359 APPEND_MATH_IMM_u32(RSHIFT, desc, dest, src0, src1, data) 362 #define APPEND_MATH_IMM_u64(op, desc, dest, src_0, src_1, data) \ 365 APPEND_MATH(op, desc, dest, src_0, src_1, CAAM_CMD_SZ * 2 | \ 373 #define append_math_add_imm_u64(desc, dest, src0, src1, data) \ 374 APPEND_MATH_IMM_u64(ADD, desc, dest, src0, src1, data) 375 #define append_math_sub_imm_u64(desc, dest, src0, src1, data) \ 376 APPEND_MATH_IMM_u64(SUB, desc, dest, src0, src1, data) 377 #define append_math_add_c_imm_u64(desc, dest, src0, src1, data) \ 378 APPEND_MATH_IMM_u64(ADDC, desc, dest, src0, src1, data) 379 #define append_math_sub_b_imm_u64(desc, dest, src0, src1, data) \ 380 APPEND_MATH_IMM_u64(SUBB, desc, dest, src0, src1, data) 381 #define append_math_and_imm_u64(desc, dest, src0, src1, data) \ 382 APPEND_MATH_IMM_u64(AND, desc, dest, src0, src1, data) 383 #define append_math_or_imm_u64(desc, dest, src0, src1, data) \ 384 APPEND_MATH_IMM_u64(OR, desc, dest, src0, src1, data) 385 #define append_math_xor_imm_u64(desc, dest, src0, src1, data) \ 386 APPEND_MATH_IMM_u64(XOR, desc, dest, src0, src1, data) 387 #define append_math_lshift_imm_u64(desc, dest, src0, src1, data) \ 388 APPEND_MATH_IMM_u64(LSHIFT, desc, dest, src0, src1, data) 389 #define append_math_rshift_imm_u64(desc, dest, src0, src1, data) \ 390 APPEND_MATH_IMM_u64(RSHIFT, desc, dest, src0, src1, data)
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | string.h | 5 extern char *strcpy(char *dest, const char *src); 6 extern char *strncpy(char *dest, const char *src, size_t n); 7 extern char *strcat(char *dest, const char *src); 15 extern void *memmove(void *dest, const void *src, unsigned long n); 16 extern void *memcpy(void *dest, const void *src, unsigned long n);
|
/linux-4.1.27/arch/x86/kernel/apic/ |
H A D | htirq.c | 24 static void target_ht_irq(unsigned int irq, unsigned int dest, u8 vector) target_ht_irq() argument 33 msg.address_lo |= HT_IRQ_LOW_VECTOR(vector) | HT_IRQ_LOW_DEST_ID(dest); target_ht_irq() 34 msg.address_hi |= HT_IRQ_HIGH_DEST_ID(dest); target_ht_irq() 43 unsigned int dest; ht_set_affinity() local 46 ret = apic_set_affinity(data, mask, &dest); ht_set_affinity() 50 target_ht_irq(data->irq, dest, cfg->vector); ht_set_affinity() 68 unsigned dest; arch_setup_ht_irq() local 80 apic->target_cpus(), &dest); arch_setup_ht_irq() 84 msg.address_hi = HT_IRQ_HIGH_DEST_ID(dest); arch_setup_ht_irq() 88 HT_IRQ_LOW_DEST_ID(dest) | arch_setup_ht_irq()
|
H A D | msi.c | 24 unsigned int irq, unsigned int dest, native_compose_msi_msg() 32 msg->address_hi |= MSI_ADDR_EXT_DEST_ID(dest); native_compose_msi_msg() 42 MSI_ADDR_DEST_ID(dest); native_compose_msi_msg() 58 unsigned dest; msi_compose_msg() local 69 apic->target_cpus(), &dest); msi_compose_msg() 73 x86_msi.compose_msi_msg(pdev, irq, dest, msg, hpet_id); msi_compose_msg() 83 unsigned int dest; msi_set_affinity() local 86 ret = apic_set_affinity(data, mask, &dest); msi_set_affinity() 95 msg.address_lo |= MSI_ADDR_DEST_ID(dest); msi_set_affinity() 184 unsigned int dest, irq = data->irq; dmar_msi_set_affinity() local 188 ret = apic_set_affinity(data, mask, &dest); dmar_msi_set_affinity() 197 msg.address_lo |= MSI_ADDR_DEST_ID(dest); dmar_msi_set_affinity() 198 msg.address_hi = MSI_ADDR_BASE_HI | MSI_ADDR_EXT_DEST_ID(dest); dmar_msi_set_affinity() 240 unsigned int dest; hpet_msi_set_affinity() local 243 ret = apic_set_affinity(data, mask, &dest); hpet_msi_set_affinity() 252 msg.address_lo |= MSI_ADDR_DEST_ID(dest); hpet_msi_set_affinity() 23 native_compose_msi_msg(struct pci_dev *pdev, unsigned int irq, unsigned int dest, struct msi_msg *msg, u8 hpet_id) native_compose_msi_msg() argument
|
H A D | x2apic_cluster.c | 33 u32 dest; __x2apic_send_IPI_mask() local 55 dest = 0; for_each_cpu() 60 dest |= per_cpu(x86_cpu_to_logical_apicid, i); for_each_cpu_and() 63 if (!dest) 66 __x2apic_send_IPI_dest(dest, vector, apic->dest_logical); 103 u32 dest = 0; x2apic_cpu_mask_to_apicid_and() local 110 dest = per_cpu(x86_cpu_to_logical_apicid, i); for_each_cpu_and() 115 if (!dest) 123 dest |= per_cpu(x86_cpu_to_logical_apicid, i); for_each_cpu_and() 126 *apicid = dest;
|
/linux-4.1.27/arch/parisc/math-emu/ |
H A D | hppa.h | 28 #define Shiftdouble(left,right,amount,dest) \ 29 /* int left, right, amount, dest; */ \ 30 dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount)) 33 #define Variableshiftdouble(left,right,amount,dest) \ 34 /* unsigned int left, right; int amount, dest; */ \ 35 if (amount == 0) dest = right; \ 36 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \ 40 #define Variable_shift_double(left,right,amount,dest) \ 41 /* unsigned int left, right; int amount, dest; */ \ 42 dest = (left << (32-(amount))) | ((unsigned) right >> (amount))
|
H A D | cnv_float.h | 52 #define Sgl_to_dbl_exponent(src_exponent,dest) \ 53 Deposit_dexponent(dest,src_exponent+(DBL_BIAS-SGL_BIAS)) 98 #define Dbl_to_sgl_exponent(src_exponent,dest) \ 99 dest = src_exponent + (SGL_BIAS - DBL_BIAS) 101 #define Dbl_to_sgl_mantissa(srcA,srcB,dest,inexact,guard,sticky,odd) \ 102 Shiftdouble(Dmantissap1(srcA),Dmantissap2(srcB),29,dest); \ 108 #define Dbl_to_sgl_denormalized(srcA,srcB,exp,dest,inexact,guard,sticky,odd,tiny) \ 116 Shiftdouble(Dmantissap1(srcA),Dmantissap2(srcB),29,dest); \ 117 odd = dest << 31; \ 122 dest++; \ 123 if (Sgl_isone_hidden(dest)) \ 125 dest--; \ 130 dest++; \ 131 if (Sgl_isone_hidden(dest)) \ 133 dest--; \ 138 dest++; \ 139 if (Sgl_isone_hidden(dest)) \ 141 dest--; \ 150 dest >>= 1; \ 152 Shiftdouble(Dallp1(srcA),Dallp2(srcB),30,dest); \ 153 odd = dest << 31; \ 160 if (exp == -2) dest = Dallp1(srcA); \ 161 else Variable_shift_double(Dallp1(srcA),Dallp2(srcB),30-exp,dest); \ 162 odd = dest << 31; \ 168 dest = Dallp1(srcA) >> (- 2 - exp); \ 173 odd = dest << 31; \ 176 dest = 0; \ 290 #define Dint_copytoptr(srcA,srcB,dest) \ 291 dest->wd0 = Dintp1(srcA); \ 292 dest->wd1 = Dintp2(srcB) 316 #define Duint_copytoptr(srcA,srcB,dest) \ 317 Dint_copytoptr(srcA,srcB,dest) 368 #define Suint_from_dbl_mantissa(srcA,srcB,exponent,dest) \ 369 Shiftdouble(Dallp1(srcA),Dallp2(srcB),21,dest); \ 370 dest = (unsigned)dest >> 31 - exponent
|
H A D | sgl_float.h | 152 #define Sgl_copytoint_exponentmantissa(source,dest) \ 153 dest = Sexponentmantissa(source) 160 #define Sgl_set_mantissa(dest,value) Deposit_smantissa(dest,value) 161 #define Sgl_set_exponentmantissa(dest,value) \ 162 Deposit_sexponentmantissa(dest,value) 255 #define Sgl_makequietnan(dest) \ 256 Sall(dest) = ((SGL_EMAX+SGL_BIAS)+1)<< (32-(1+SGL_EXP_LENGTH)) \ 258 #define Sgl_makesignalingnan(dest) \ 259 Sall(dest) = ((SGL_EMAX+SGL_BIAS)+1)<< (32-(1+SGL_EXP_LENGTH)) \ 333 #define Sgl_copyfromptr(srcptr,dest) dest = *srcptr 422 #define Sglext_copytoint_exponentmantissa(src,dest) \ 423 Sgl_copytoint_exponentmantissa(src,dest)
|
/linux-4.1.27/arch/blackfin/lib/ |
H A D | strcpy.S | 9 /* void *strcpy(char *dest, const char *src); 10 * R0 = address (dest) 13 * Returns a pointer to the destination string dest
|
H A D | strncpy.S | 10 /* void *strncpy(char *dest, const char *src, size_t n); 11 * R0 = address (dest) 14 * Returns a pointer (R0) to the destination string dest 44 /* if src is shorter than n, we need to null pad bytes in dest
|
H A D | strncmp.S | 10 * R0 = address (dest) 13 * Returns a pointer to the destination string dest
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | msidef.h | 48 #define MSI_ADDR_DEST_ID(dest) (((dest) << MSI_ADDR_DEST_ID_SHIFT) & \ 50 #define MSI_ADDR_EXT_DEST_ID(dest) ((dest) & 0xffffff00)
|
H A D | x2apic.h | 23 __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest) __x2apic_send_IPI_dest() argument 25 unsigned long cfg = __prepare_ICR(0, vector, dest); __x2apic_send_IPI_dest()
|
H A D | ipi.h | 34 unsigned int dest) __prepare_ICR() 36 unsigned int icr = shortcut | dest; __prepare_ICR() 61 __default_send_IPI_shortcut(unsigned int shortcut, int vector, unsigned int dest) __default_send_IPI_shortcut() argument 80 cfg = __prepare_ICR(shortcut, vector, dest); __default_send_IPI_shortcut() 93 __default_send_IPI_dest_field(unsigned int mask, int vector, unsigned int dest) __default_send_IPI_dest_field() argument 114 cfg = __prepare_ICR(0, vector, dest); __default_send_IPI_dest_field() 33 __prepare_ICR(unsigned int shortcut, int vector, unsigned int dest) __prepare_ICR() argument
|
H A D | string_64.h | 60 void *memmove(void *dest, const void *src, size_t count); 61 void *__memmove(void *dest, const void *src, size_t count); 65 char *strcpy(char *dest, const char *src); 66 char *strcat(char *dest, const char *src);
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | string.h | 8 void * memcpy(void * dest,const void *src,size_t count);
|
H A D | irq.h | 47 extern int cpu_check_affinity(struct irq_data *d, const struct cpumask *dest);
|
/linux-4.1.27/lib/ |
H A D | ucs2_string.c | 75 * copy at most maxlength bytes of whole utf8 characters to dest from the 82 ucs2_as_utf8(u8 *dest, const ucs2_char_t *src, unsigned long maxlength) ucs2_as_utf8() argument 95 dest[j++] = 0xe0 | (c & 0xf000) >> 12; ucs2_as_utf8() 96 dest[j++] = 0x80 | (c & 0x0fc0) >> 6; ucs2_as_utf8() 97 dest[j++] = 0x80 | (c & 0x003f); ucs2_as_utf8() 102 dest[j++] = 0xc0 | (c & 0x7c0) >> 6; ucs2_as_utf8() 103 dest[j++] = 0x80 | (c & 0x03f); ucs2_as_utf8() 106 dest[j++] = c & 0x7f; ucs2_as_utf8() 110 dest[j] = '\0'; ucs2_as_utf8()
|
H A D | string.c | 79 * @dest: Where to copy the string to 83 char *strcpy(char *dest, const char *src) strcpy() argument 85 char *tmp = dest; strcpy() 87 while ((*dest++ = *src++) != '\0') strcpy() 97 * @dest: Where to copy the string to 105 * count, the remainder of @dest will be padded with %NUL. 108 char *strncpy(char *dest, const char *src, size_t count) strncpy() argument 110 char *tmp = dest; strncpy() 118 return dest; strncpy() 126 * @dest: Where to copy the string to 135 size_t strlcpy(char *dest, const char *src, size_t size) strlcpy() argument 141 memcpy(dest, src, len); strlcpy() 142 dest[len] = '\0'; strlcpy() 152 * @dest: The string to be appended to 156 char *strcat(char *dest, const char *src) strcat() argument 158 char *tmp = dest; strcat() 160 while (*dest) strcat() 161 dest++; strcat() 162 while ((*dest++ = *src++) != '\0') strcat() 172 * @dest: The string to be appended to 179 char *strncat(char *dest, const char *src, size_t count) strncat() argument 181 char *tmp = dest; strncat() 184 while (*dest) strncat() 185 dest++; strncat() 186 while ((*dest++ = *src++) != 0) { strncat() 188 *dest = '\0'; strncat() 201 * @dest: The string to be appended to 205 size_t strlcat(char *dest, const char *src, size_t count) strlcat() argument 207 size_t dsize = strlen(dest); strlcat() 214 dest += dsize; strlcat() 218 memcpy(dest, src, len); strlcat() 219 dest[len] = 0; strlcat() 617 * @dest: Where to copy to 624 void *memcpy(void *dest, const void *src, size_t count) memcpy() argument 626 char *tmp = dest; memcpy() 631 return dest; memcpy() 639 * @dest: Where to copy to 645 void *memmove(void *dest, const void *src, size_t count) memmove() argument 650 if (dest <= src) { memmove() 651 tmp = dest; memmove() 656 tmp = dest; memmove() 663 return dest; memmove()
|
/linux-4.1.27/fs/udf/ |
H A D | udftime.c | 88 udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src) udf_disk_stamp_to_time() argument 109 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; udf_disk_stamp_to_time() 110 dest->tv_sec -= offset * 60; udf_disk_stamp_to_time() 113 dest->tv_sec += (((yday * 24) + src.hour) * 60 + src.minute) * 60 + src.second; udf_disk_stamp_to_time() 114 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + udf_disk_stamp_to_time() 116 return dest; udf_disk_stamp_to_time() 120 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts) udf_time_to_disk_stamp() argument 128 if (!dest) udf_time_to_disk_stamp() 131 dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF)); udf_time_to_disk_stamp() 136 dest->hour = rem / SECS_PER_HOUR; udf_time_to_disk_stamp() 138 dest->minute = rem / 60; udf_time_to_disk_stamp() 139 dest->second = rem % 60; udf_time_to_disk_stamp() 154 dest->year = cpu_to_le16(y); udf_time_to_disk_stamp() 159 dest->month = y + 1; udf_time_to_disk_stamp() 160 dest->day = days + 1; udf_time_to_disk_stamp() 162 dest->centiseconds = ts.tv_nsec / 10000000; udf_time_to_disk_stamp() 163 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - udf_time_to_disk_stamp() 164 dest->centiseconds * 10000) / 100; udf_time_to_disk_stamp() 165 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - udf_time_to_disk_stamp() 166 dest->hundredsOfMicroseconds * 100); udf_time_to_disk_stamp() 167 return dest; udf_time_to_disk_stamp()
|
H A D | unicode.c | 34 static int udf_char_to_ustr(struct ustr *dest, const uint8_t *src, int strlen) udf_char_to_ustr() argument 36 if ((!dest) || (!src) || (!strlen) || (strlen > UDF_NAME_LEN - 2)) udf_char_to_ustr() 39 memset(dest, 0, sizeof(struct ustr)); udf_char_to_ustr() 40 memcpy(dest->u_name, src, strlen); udf_char_to_ustr() 41 dest->u_cmpID = 0x08; udf_char_to_ustr() 42 dest->u_len = strlen; udf_char_to_ustr() 50 int udf_build_ustr(struct ustr *dest, dstring *ptr, int size) udf_build_ustr() argument 54 if (!dest || !ptr || !size) udf_build_ustr() 58 usesize = min_t(size_t, ptr[size - 1], sizeof(dest->u_name)); udf_build_ustr() 60 dest->u_cmpID = ptr[0]; udf_build_ustr() 61 dest->u_len = usesize; udf_build_ustr() 62 memcpy(dest->u_name, ptr + 1, usesize); udf_build_ustr() 63 memset(dest->u_name + usesize, 0, sizeof(dest->u_name) - usesize); udf_build_ustr() 71 static int udf_build_ustr_exact(struct ustr *dest, dstring *ptr, int exactsize) udf_build_ustr_exact() argument 73 if ((!dest) || (!ptr) || (!exactsize)) udf_build_ustr_exact() 76 memset(dest, 0, sizeof(struct ustr)); udf_build_ustr_exact() 77 dest->u_cmpID = ptr[0]; udf_build_ustr_exact() 78 dest->u_len = exactsize - 1; udf_build_ustr_exact() 79 memcpy(dest->u_name, ptr + 1, exactsize - 1); udf_build_ustr_exact()
|
/linux-4.1.27/drivers/video/fbdev/sis/ |
H A D | sis_accel.c | 43 0x00, /* dest = 0; 0, GXclear, 0 */ 44 0x88, /* dest &= src; DSa, GXand, 0x1 */ 45 0x44, /* dest = src & ~dest; SDna, GXandReverse, 0x2 */ 46 0xCC, /* dest = src; S, GXcopy, 0x3 */ 47 0x22, /* dest &= ~src; DSna, GXandInverted, 0x4 */ 48 0xAA, /* dest = dest; D, GXnoop, 0x5 */ 49 0x66, /* dest = ^src; DSx, GXxor, 0x6 */ 50 0xEE, /* dest |= src; DSo, GXor, 0x7 */ 51 0x11, /* dest = ~src & ~dest; DSon, GXnor, 0x8 */ 52 0x99, /* dest ^= ~src ; DSxn, GXequiv, 0x9 */ 53 0x55, /* dest = ~dest; Dn, GXInvert, 0xA */ 54 0xDD, /* dest = src|~dest ; SDno, GXorReverse, 0xB */ 55 0x33, /* dest = ~src; Sn, GXcopyInverted, 0xC */ 56 0xBB, /* dest |= ~src; DSno, GXorInverted, 0xD */ 57 0x77, /* dest = ~src|~dest; DSan, GXnand, 0xE */ 58 0xFF, /* dest = 0xFF; 1, GXset, 0xF */ 63 0x00, /* dest = 0; 0, GXclear, 0 */ 64 0xA0, /* dest &= src; DPa, GXand, 0x1 */ 65 0x50, /* dest = src & ~dest; PDna, GXandReverse, 0x2 */ 66 0xF0, /* dest = src; P, GXcopy, 0x3 */ 67 0x0A, /* dest &= ~src; DPna, GXandInverted, 0x4 */ 68 0xAA, /* dest = dest; D, GXnoop, 0x5 */ 69 0x5A, /* dest = ^src; DPx, GXxor, 0x6 */ 70 0xFA, /* dest |= src; DPo, GXor, 0x7 */ 71 0x05, /* dest = ~src & ~dest; DPon, GXnor, 0x8 */ 72 0xA5, /* dest ^= ~src ; DPxn, GXequiv, 0x9 */ 73 0x55, /* dest = ~dest; Dn, GXInvert, 0xA */ 74 0xF5, /* dest = src|~dest ; PDno, GXorReverse, 0xB */ 75 0x0F, /* dest = ~src; Pn, GXcopyInverted, 0xC */ 76 0xAF, /* dest |= ~src; DPno, GXorInverted, 0xD */ 77 0x5F, /* dest = ~src|~dest; DPan, GXnand, 0xE */ 78 0xFF, /* dest = 0xFF; 1, GXset, 0xF */
|
/linux-4.1.27/arch/tile/lib/ |
H A D | memmove.c | 19 void *memmove(void *dest, const void *src, size_t n) memmove() argument 21 if ((const char *)src >= (char *)dest + n memmove() 22 || (char *)dest >= (const char *)src + n) { memmove() 26 return memcpy(dest, src, n); memmove() 35 if (src < dest) { memmove() 38 out = (uint8_t *)dest + n - 1; memmove() 43 out = (uint8_t *)dest; memmove() 61 return dest; memmove()
|
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | module.c | 32 void *dest; module_frob_arch_sections() local 44 dest = l1_inst_sram_alloc(s->sh_size); module_frob_arch_sections() 45 mod->arch.text_l1 = dest; module_frob_arch_sections() 46 if (dest == NULL) { module_frob_arch_sections() 50 dma_memcpy(dest, (void *)s->sh_addr, s->sh_size); module_frob_arch_sections() 56 dest = l1_data_sram_alloc(s->sh_size); module_frob_arch_sections() 57 mod->arch.data_a_l1 = dest; module_frob_arch_sections() 58 if (dest == NULL) { module_frob_arch_sections() 62 memcpy(dest, (void *)s->sh_addr, s->sh_size); module_frob_arch_sections() 68 dest = l1_data_sram_zalloc(s->sh_size); module_frob_arch_sections() 69 mod->arch.bss_a_l1 = dest; module_frob_arch_sections() 70 if (dest == NULL) { module_frob_arch_sections() 77 dest = l1_data_B_sram_alloc(s->sh_size); module_frob_arch_sections() 78 mod->arch.data_b_l1 = dest; module_frob_arch_sections() 79 if (dest == NULL) { module_frob_arch_sections() 83 memcpy(dest, (void *)s->sh_addr, s->sh_size); module_frob_arch_sections() 87 dest = l1_data_B_sram_alloc(s->sh_size); module_frob_arch_sections() 88 mod->arch.bss_b_l1 = dest; module_frob_arch_sections() 89 if (dest == NULL) { module_frob_arch_sections() 93 memset(dest, 0, s->sh_size); module_frob_arch_sections() 99 dest = l2_sram_alloc(s->sh_size); module_frob_arch_sections() 100 mod->arch.text_l2 = dest; module_frob_arch_sections() 101 if (dest == NULL) { module_frob_arch_sections() 105 memcpy(dest, (void *)s->sh_addr, s->sh_size); module_frob_arch_sections() 111 dest = l2_sram_alloc(s->sh_size); module_frob_arch_sections() 112 mod->arch.data_l2 = dest; module_frob_arch_sections() 113 if (dest == NULL) { module_frob_arch_sections() 117 memcpy(dest, (void *)s->sh_addr, s->sh_size); module_frob_arch_sections() 123 dest = l2_sram_zalloc(s->sh_size); module_frob_arch_sections() 124 mod->arch.bss_l2 = dest; module_frob_arch_sections() 125 if (dest == NULL) { module_frob_arch_sections() 134 s->sh_addr = (unsigned long)dest; module_frob_arch_sections()
|
H A D | sys_bfin.c | 37 asmlinkage void *sys_dma_memcpy(void *dest, const void *src, size_t len) sys_dma_memcpy() argument 39 return safe_dma_memcpy(dest, src, len); sys_dma_memcpy()
|
/linux-4.1.27/arch/x86/math-emu/ |
H A D | reg_add_sub.c | 30 FPU_REG * dest, int deststnr, int control_w); 39 FPU_REG *dest = &st(deststnr); FPU_add() local 43 u_char saved_sign = getsign(dest); FPU_add() 55 FPU_u_add(a, b, dest, control_w, signa, expa, expb); FPU_add() 71 FPU_u_sub(a, b, dest, control_w, signa, FPU_add() 75 FPU_u_sub(b, a, dest, control_w, signb, FPU_add() 80 setsign(dest, ((control_w & CW_RC) != RC_DOWN) FPU_add() 87 setsign(dest, saved_sign); FPU_add() 124 dest, deststnr, control_w); FPU_add() 127 /* Subtract b from a. (a-b) -> dest */ FPU_sub() 131 FPU_REG *dest; FPU_sub() local 158 dest = &st(deststnr); FPU_sub() 159 saved_sign = getsign(dest); FPU_sub() 185 FPU_u_sub(a, b, dest, control_w, signa, FPU_sub() 191 setsign(dest, ((control_w & CW_RC) != RC_DOWN) FPU_sub() 197 FPU_u_sub(b, a, dest, control_w, sign, expb, FPU_sub() 203 FPU_u_add(a, b, dest, control_w, SIGN_POS, expa, FPU_sub() 208 FPU_u_add(a, b, dest, control_w, SIGN_NEG, expa, FPU_sub() 218 setsign(dest, saved_sign); FPU_sub() 266 dest, deststnr, control_w); FPU_sub() 272 FPU_REG * dest, int deststnr, int control_w) add_sub_specials() 287 setsign(dest, ((control_w & CW_RC) != RC_DOWN) add_sub_specials() 290 setsign(dest, signa); /* signa may differ from the sign of a. */ add_sub_specials() 293 reg_copy(b, dest); add_sub_specials() 296 addexponent(dest, 1); add_sub_specials() 300 setsign(dest, signb); /* signb may differ from the sign of b. */ add_sub_specials() 305 reg_copy(a, dest); add_sub_specials() 308 addexponent(dest, 1); add_sub_specials() 312 setsign(dest, signa); /* signa may differ from the sign of a. */ add_sub_specials() 318 setsign(dest, signa); /* signa may differ from the sign of a. */ add_sub_specials() 325 setsign(dest, signb); /* signb may differ from the sign of b. */ add_sub_specials() 270 add_sub_specials(FPU_REG const *a, u_char taga, u_char signa, FPU_REG const *b, u_char tagb, u_char signb, FPU_REG * dest, int deststnr, int control_w) add_sub_specials() argument
|
H A D | reg_mul.c | 32 FPU_REG *dest = a; FPU_mul() local 34 u_char saved_sign = getsign(dest); FPU_mul() 42 FPU_u_mul(a, b, dest, control_w, sign, FPU_mul() 45 setsign(dest, saved_sign); FPU_mul() 66 tag = FPU_u_mul(&x, &y, dest, control_w, sign, FPU_mul() 69 setsign(dest, saved_sign); FPU_mul() 86 setsign(dest, sign); FPU_mul() 100 setsign(dest, sign); FPU_mul() 104 setsign(dest, sign); FPU_mul()
|
H A D | reg_divide.c | 31 FPU_REG *dest; FPU_div() local 71 dest = &st(deststnr); FPU_div() 72 saved_sign = getsign(dest); FPU_div() 80 tag = FPU_u_div(&x, &y, dest, control_w, sign); FPU_div() 102 tag = FPU_u_div(&x, &y, dest, control_w, sign); FPU_div() 118 setsign(dest, sign); FPU_div() 162 setsign(dest, sign); FPU_div() 171 setsign(dest, sign); FPU_div()
|
H A D | poly.h | 36 asmlinkage void mul_Xsig_Xsig(Xsig *dest, const Xsig *mult); 41 asmlinkage void div_Xsig(Xsig *x1, const Xsig *x2, const Xsig *dest); 72 /* Add the 12 byte Xsig x2 to Xsig dest, with no checks for overflow. */ add_Xsig_Xsig() 73 static inline void add_Xsig_Xsig(Xsig *dest, const Xsig *x2) add_Xsig_Xsig() argument 79 (*dest):"g"(dest), "g"(x2) add_Xsig_Xsig() 83 /* Add the 12 byte Xsig x2 to Xsig dest, adjust exp if overflow occurs. */ 87 static inline void add_two_Xsig(Xsig *dest, const Xsig *x2, long int *exp) add_two_Xsig() argument 97 "0: xorl %%eax,%%eax;\n" "1:\n":"=g" (*exp), "=g"(*dest) add_two_Xsig() 98 :"g"(dest), "g"(x2), "g"(exp) add_two_Xsig()
|
H A D | poly_l2.c | 106 FPU_REG * st0_ptr, FPU_REG * st1_ptr, FPU_REG * dest) poly_l2p1() 125 significand(dest) = XSIG_LL(accumulator); poly_l2p1() 126 setexponent16(dest, exponent); poly_l2p1() 128 tag = FPU_round(dest, 1, 0, FULL_PRECISION, sign0 ^ sign1); poly_l2p1() 153 if (exponent(dest) <= EXP_UNDER) poly_l2p1() 105 poly_l2p1(u_char sign0, u_char sign1, FPU_REG * st0_ptr, FPU_REG * st1_ptr, FPU_REG * dest) poly_l2p1() argument
|
H A D | errors.c | 414 FPU_REG *dest = &st(deststnr); real_2op_NaN() local 415 FPU_REG const *a = dest; real_2op_NaN() 485 dest->sigh |= 0x40000000; real_2op_NaN() 512 FPU_REG *dest = &st(deststnr); FPU_divide_by_zero() local 518 setsign(dest, sign); FPU_divide_by_zero() 571 asmlinkage __visible int arith_overflow(FPU_REG *dest) arith_overflow() argument 578 reg_copy(&CONST_INF, dest); arith_overflow() 582 addexponent(dest, (-3 * (1 << 13))); arith_overflow() 599 asmlinkage __visible int arith_underflow(FPU_REG *dest) arith_underflow() argument 605 if (exponent16(dest) <= EXP_UNDER - 63) { arith_underflow() 606 reg_copy(&CONST_Z, dest); arith_underflow() 610 stdexp(dest); arith_underflow() 614 addexponent(dest, (3 * (1 << 13)) + EXTENDED_Ebias); arith_underflow()
|
/linux-4.1.27/arch/s390/lib/ |
H A D | string.c | 65 * @dest: Where to copy the string to 68 * returns a pointer to @dest 70 char *strcpy(char *dest, const char *src) strcpy() argument 73 char *ret = dest; strcpy() 77 : "+&a" (dest), "+&a" (src) : "d" (r0) strcpy() 85 * @dest: Where to copy the string to 94 size_t strlcpy(char *dest, const char *src, size_t size) strlcpy() argument 100 dest[len] = '\0'; strlcpy() 101 memcpy(dest, src, len); strlcpy() 109 * @dest: Where to copy the string to 116 char *strncpy(char *dest, const char *src, size_t n) strncpy() argument 119 memset(dest + len, 0, n - len); strncpy() 120 memcpy(dest, src, len); strncpy() 121 return dest; strncpy() 127 * @dest: The string to be appended to 130 * returns a pointer to @dest 132 char *strcat(char *dest, const char *src) strcat() argument 136 char *ret = dest; strcat() 142 : "=&a" (dummy), "+a" (dest), "+a" (src) strcat() 150 * @dest: The string to be appended to 154 size_t strlcat(char *dest, const char *src, size_t n) strlcat() argument 156 size_t dsize = __strend(dest) - dest; strlcat() 161 dest += dsize; strlcat() 165 dest[len] = '\0'; strlcat() 166 memcpy(dest, src, len); strlcat() 174 * @dest: The string to be appended to 178 * returns a pointer to @dest 183 char *strncat(char *dest, const char *src, size_t n) strncat() argument 186 char *p = __strend(dest); strncat() 190 return dest; strncat()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | process.c | 292 dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti) dump_elf_thread() argument 297 dest[ 0] = pt->r0; dump_elf_thread() 298 dest[ 1] = pt->r1; dump_elf_thread() 299 dest[ 2] = pt->r2; dump_elf_thread() 300 dest[ 3] = pt->r3; dump_elf_thread() 301 dest[ 4] = pt->r4; dump_elf_thread() 302 dest[ 5] = pt->r5; dump_elf_thread() 303 dest[ 6] = pt->r6; dump_elf_thread() 304 dest[ 7] = pt->r7; dump_elf_thread() 305 dest[ 8] = pt->r8; dump_elf_thread() 306 dest[ 9] = sw->r9; dump_elf_thread() 307 dest[10] = sw->r10; dump_elf_thread() 308 dest[11] = sw->r11; dump_elf_thread() 309 dest[12] = sw->r12; dump_elf_thread() 310 dest[13] = sw->r13; dump_elf_thread() 311 dest[14] = sw->r14; dump_elf_thread() 312 dest[15] = sw->r15; dump_elf_thread() 313 dest[16] = pt->r16; dump_elf_thread() 314 dest[17] = pt->r17; dump_elf_thread() 315 dest[18] = pt->r18; dump_elf_thread() 316 dest[19] = pt->r19; dump_elf_thread() 317 dest[20] = pt->r20; dump_elf_thread() 318 dest[21] = pt->r21; dump_elf_thread() 319 dest[22] = pt->r22; dump_elf_thread() 320 dest[23] = pt->r23; dump_elf_thread() 321 dest[24] = pt->r24; dump_elf_thread() 322 dest[25] = pt->r25; dump_elf_thread() 323 dest[26] = pt->r26; dump_elf_thread() 324 dest[27] = pt->r27; dump_elf_thread() 325 dest[28] = pt->r28; dump_elf_thread() 326 dest[29] = pt->gp; dump_elf_thread() 327 dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp; dump_elf_thread() 328 dest[31] = pt->pc; dump_elf_thread() 333 dest[32] = ti->pcb.unique; dump_elf_thread() 338 dump_elf_task(elf_greg_t *dest, struct task_struct *task) dump_elf_task() argument 340 dump_elf_thread(dest, task_pt_regs(task), task_thread_info(task)); dump_elf_task() 346 dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task) dump_elf_task_fp() argument 349 memcpy(dest, sw->fp, 32 * 8); dump_elf_task_fp()
|
/linux-4.1.27/net/netfilter/ |
H A D | nft_meta.c | 34 u32 *dest = ®s->data[priv->dreg]; nft_meta_get_eval() local 38 *dest = skb->len; nft_meta_get_eval() 41 *dest = 0; nft_meta_get_eval() 42 *(__be16 *)dest = skb->protocol; nft_meta_get_eval() 45 *dest = pkt->ops->pf; nft_meta_get_eval() 48 *dest = pkt->tprot; nft_meta_get_eval() 51 *dest = skb->priority; nft_meta_get_eval() 54 *dest = skb->mark; nft_meta_get_eval() 59 *dest = in->ifindex; nft_meta_get_eval() 64 *dest = out->ifindex; nft_meta_get_eval() 69 strncpy((char *)dest, in->name, IFNAMSIZ); nft_meta_get_eval() 74 strncpy((char *)dest, out->name, IFNAMSIZ); nft_meta_get_eval() 79 *dest = 0; nft_meta_get_eval() 80 *(u16 *)dest = in->type; nft_meta_get_eval() 85 *dest = 0; nft_meta_get_eval() 86 *(u16 *)dest = out->type; nft_meta_get_eval() 99 *dest = from_kuid_munged(&init_user_ns, nft_meta_get_eval() 113 *dest = from_kgid_munged(&init_user_ns, nft_meta_get_eval() 123 *dest = dst->tclassid; nft_meta_get_eval() 129 *dest = skb->secmark; nft_meta_get_eval() 134 *dest = skb->pkt_type; nft_meta_get_eval() 141 *dest = PACKET_MULTICAST; nft_meta_get_eval() 143 *dest = PACKET_BROADCAST; nft_meta_get_eval() 147 *dest = PACKET_MULTICAST; nft_meta_get_eval() 149 *dest = PACKET_BROADCAST; nft_meta_get_eval() 157 *dest = raw_smp_processor_id(); nft_meta_get_eval() 162 *dest = in->group; nft_meta_get_eval() 167 *dest = out->group; nft_meta_get_eval() 172 *dest = skb->sk->sk_classid; nft_meta_get_eval()
|
H A D | nft_ct.c | 38 u32 *dest = ®s->data[priv->dreg]; nft_ct_get_eval() local 57 *dest = state; nft_ct_get_eval() 68 *dest = CTINFO2DIR(ctinfo); nft_ct_get_eval() 71 *dest = ct->status; nft_ct_get_eval() 75 *dest = ct->mark; nft_ct_get_eval() 80 *dest = ct->secmark; nft_ct_get_eval() 87 *dest = jiffies_to_msecs(diff); nft_ct_get_eval() 98 strncpy((char *)dest, helper->name, NF_CT_HELPER_NAME_LEN); nft_ct_get_eval() 106 memset(dest, 0, NF_CT_LABELS_MAX_SIZE); nft_ct_get_eval() 111 memcpy(dest, labels->bits, size); nft_ct_get_eval() 113 memset(((char *) dest) + size, 0, nft_ct_get_eval() 125 *dest = nf_ct_l3num(ct); nft_ct_get_eval() 128 memcpy(dest, tuple->src.u3.all, nft_ct_get_eval() 132 memcpy(dest, tuple->dst.u3.all, nft_ct_get_eval() 136 *dest = nf_ct_protonum(ct); nft_ct_get_eval() 139 *dest = (__force __u16)tuple->src.u.all; nft_ct_get_eval() 142 *dest = (__force __u16)tuple->dst.u.all; nft_ct_get_eval()
|
H A D | xt_addrtype.c | 112 if (ret && info->dest) addrtype_mt6() 113 ret &= match_type6(net, dev, &iph->daddr, info->dest) ^ addrtype_mt6() 136 if (info->dest) addrtype_mt_v0() 137 ret &= match_type(net, NULL, iph->daddr, info->dest) ^ addrtype_mt_v0() 165 if (ret && info->dest) addrtype_mt_v1() 166 ret &= match_type(net, dev, iph->daddr, info->dest) ^ addrtype_mt_v1() 200 if ((info->source | info->dest) & XT_ADDRTYPE_BLACKHOLE) { addrtype_mt_checkentry_v1() 204 if ((info->source | info->dest) >= XT_ADDRTYPE_PROHIBIT) { addrtype_mt_checkentry_v1() 208 if ((info->source | info->dest) & XT_ADDRTYPE_BROADCAST) { addrtype_mt_checkentry_v1()
|
H A D | nft_exthdr.c | 33 u32 *dest = ®s->data[priv->dreg]; nft_exthdr_eval() local 42 dest[priv->len / NFT_REG32_SIZE] = 0; nft_exthdr_eval() 43 if (skb_copy_bits(pkt->skb, offset, dest, priv->len) < 0) nft_exthdr_eval()
|
H A D | nft_payload.c | 26 u32 *dest = ®s->data[priv->dreg]; nft_payload_eval() local 46 dest[priv->len / NFT_REG32_SIZE] = 0; nft_payload_eval() 47 if (skb_copy_bits(skb, offset, dest, priv->len) < 0) nft_payload_eval()
|
/linux-4.1.27/arch/hexagon/mm/ |
H A D | uaccess.c | 35 __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) __clear_user_hexagon() argument 40 uncleared = __copy_to_user_hexagon(dest, &empty_zero_page, __clear_user_hexagon() 45 dest += PAGE_SIZE; __clear_user_hexagon() 48 count = __copy_to_user_hexagon(dest, &empty_zero_page, count); __clear_user_hexagon() 53 unsigned long clear_user_hexagon(void __user *dest, unsigned long count) clear_user_hexagon() argument 55 if (!access_ok(VERIFY_WRITE, dest, count)) clear_user_hexagon() 58 return __clear_user_hexagon(dest, count); clear_user_hexagon()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_compat.h | 38 lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) lpfc_memcpy_to_slim() argument 45 dest32 = (uint32_t __iomem *) dest; lpfc_memcpy_to_slim() 60 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) lpfc_memcpy_from_slim() argument 67 dest32 = (uint32_t *) dest; lpfc_memcpy_from_slim() 83 lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) lpfc_memcpy_to_slim() argument 86 __iowrite32_copy(dest, src, bytes / sizeof(uint32_t)); lpfc_memcpy_to_slim() 90 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) lpfc_memcpy_from_slim() argument 92 /* actually returns 1 byte past dest */ lpfc_memcpy_from_slim() 93 memcpy_fromio( dest, src, bytes); lpfc_memcpy_from_slim()
|
/linux-4.1.27/arch/alpha/lib/ |
H A D | ev6-memcpy.S | 33 mov $16, $0 # E : copy dest to return 35 xor $16, $17, $1 # E : are source and dest alignments the same? 39 /* source and dest are same mod 8 address */ 45 * source and dest are same misalignment. move a byte at a time 55 addq $16, 1, $16 # E : dest++ 73 addq $16, 8, $16 # E : dest += 8 111 addq $16, 32, $16 # E : dest += 32 bytes 123 addq $16, 32, $16 # E : dest += 32 151 addq $16, 8, $16 # E : dest += 8 170 addq $16, 1, $16 # E : dest++ 181 mov $0, $4 # E : dest temp 182 and $0, 7, $1 # E : dest alignment mod8 193 addq $4, 1, $4 # E : dest++ 194 and $4, 7, $1 # E : dest 0mod8 yet? 197 /* Source has unknown alignment, but dest is known to be 0mod8 */ 215 addq $4, 8, $4 # E : dest += 8 233 addq $4, 1, $4 # E : dest++
|
H A D | memmove.S | 25 cmpule $4,$17,$1 /* dest + n <= src */ 26 cmpule $5,$16,$2 /* dest >= src + n */ 33 and $2,7,$2 /* Test for src/dest co-alignment. */ 36 bne $3,$memmove_up /* dest < src */
|
H A D | memcpy.c | 151 void * memcpy(void * dest, const void *src, size_t n) memcpy() argument 153 if (!(((unsigned long) dest ^ (unsigned long) src) & 7)) { memcpy() 154 __memcpy_aligned_up ((unsigned long) dest, (unsigned long) src, memcpy() 156 return dest; memcpy() 158 __memcpy_unaligned_up ((unsigned long) dest, (unsigned long) src, n); memcpy() 159 return dest; memcpy()
|
H A D | ev6-stxncpy.S | 154 and a0, 7, t0 # E : find dest misalignment 156 addq a2, t0, a2 # E : bias count by dest misalignment (stall) 169 beq t0, stxncpy_aligned # U : avoid loading dest word if not needed 192 t0 == the first dest word, unmasked 194 t6 == bytemask that is -1 in dest word bytes */ 297 and t12, 0x80, t6 # E : avoid dest word load if we can (stall) 305 zap t1, t8, t1 # U : kill dest bytes <= null 339 and a0, 7, t4 # E : find dest misalignment 353 subq a1, t4, a1 # E : sub dest misalignment from src addr 355 /* If source misalignment is larger than dest misalignment, we need 365 andnot t2, t6, t2 # E : dest mask for a single word copy 377 that we'll need at least one byte of that original dest word.) */
|
H A D | stxncpy.S | 122 and a0, 7, t0 # .. e1 : find dest misalignment 124 addq a2, t0, a2 # .. e1 : bias count by dest misalignment 137 beq t0, stxncpy_aligned # avoid loading dest word if not needed 153 t0 == the first dest word, unmasked 155 t6 == bytemask that is -1 in dest word bytes */ 254 and t12, 0x80, t6 # e0 : avoid dest word load if we can 261 zap t1, t8, t1 # e0 : kill dest bytes <= null 294 and a0, 7, t4 # .. e1 : find dest misalignment 306 subq a1, t4, a1 # .. e1 : sub dest misalignment from src addr 308 /* If source misalignment is larger than dest misalignment, we need 318 andnot t2, t6, t2 # e0 : dest mask for a single word copy 328 that we'll need at least one byte of that original dest word.) */
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | uaccess.h | 12 long strncpy_from_user(char *dest, const char __user *src, long count);
|
/linux-4.1.27/net/6lowpan/ |
H A D | nhc_udp.c | 35 fail |= lowpan_fetch_skb(skb, &uh.dest, sizeof(uh.dest)); udp_uncompress() 40 uh.dest = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); udp_uncompress() 45 fail |= lowpan_fetch_skb(skb, &uh.dest, sizeof(uh.dest)); udp_uncompress() 50 uh.dest = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val & 0x0f)); udp_uncompress() 57 ntohs(uh.source), ntohs(uh.dest)); udp_uncompress() 97 ((ntohs(uh->dest) & LOWPAN_NHC_UDP_4BIT_MASK) == udp_compress() 104 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + udp_compress() 107 } else if ((ntohs(uh->dest) & LOWPAN_NHC_UDP_8BIT_MASK) == udp_compress() 109 pr_debug("UDP header: remove 8 bits of dest\n"); udp_compress() 116 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_8BIT_PORT; udp_compress() 128 lowpan_push_hc_data(hc_ptr, &uh->dest, sizeof(uh->dest)); udp_compress() 137 lowpan_push_hc_data(hc_ptr, &uh->dest, sizeof(uh->dest)); udp_compress()
|
/linux-4.1.27/fs/ |
H A D | stack.c | 63 void fsstack_copy_attr_all(struct inode *dest, const struct inode *src) fsstack_copy_attr_all() argument 65 dest->i_mode = src->i_mode; fsstack_copy_attr_all() 66 dest->i_uid = src->i_uid; fsstack_copy_attr_all() 67 dest->i_gid = src->i_gid; fsstack_copy_attr_all() 68 dest->i_rdev = src->i_rdev; fsstack_copy_attr_all() 69 dest->i_atime = src->i_atime; fsstack_copy_attr_all() 70 dest->i_mtime = src->i_mtime; fsstack_copy_attr_all() 71 dest->i_ctime = src->i_ctime; fsstack_copy_attr_all() 72 dest->i_blkbits = src->i_blkbits; fsstack_copy_attr_all() 73 dest->i_flags = src->i_flags; fsstack_copy_attr_all() 74 set_nlink(dest, src->i_nlink); fsstack_copy_attr_all()
|
/linux-4.1.27/drivers/isdn/sc/ |
H A D | shmem.c | 27 void memcpy_toshmem(int card, void *dest, const void *src, size_t n) memcpy_toshmem() argument 31 unsigned long dest_rem = ((unsigned long) dest) % 0x4000; memcpy_toshmem() 44 ch = (unsigned long) dest / SRAM_PAGESIZE; memcpy_toshmem() 60 sc_adapter[card]->rambase + ((unsigned long) dest % 0x4000)); memcpy_toshmem() 66 void memcpy_fromshmem(int card, void *dest, const void *src, size_t n) memcpy_fromshmem() argument 94 memcpy_fromio(dest, (void *)(sc_adapter[card]->rambase + memcpy_fromshmem() 101 sc_adapter[card]->rambase + ((unsigned long) src %0x4000), (unsigned long) dest); */ memcpy_fromshmem() 105 void memset_shmem(int card, void *dest, int c, size_t n) 122 ch = (unsigned long) dest / SRAM_PAGESIZE; 133 ((unsigned long) dest % 0x4000), c, n);
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_doorbell.h | 54 static inline void mthca_write64_raw(__be64 val, void __iomem *dest) mthca_write64_raw() argument 56 __raw_writeq((__force u64) val, dest); mthca_write64_raw() 59 static inline void mthca_write64(u32 hi, u32 lo, void __iomem *dest, mthca_write64() argument 62 __raw_writeq((__force u64) cpu_to_be64((u64) hi << 32 | lo), dest); mthca_write64() 82 static inline void mthca_write64_raw(__be64 val, void __iomem *dest) mthca_write64_raw() argument 84 __raw_writel(((__force u32 *) &val)[0], dest); mthca_write64_raw() 85 __raw_writel(((__force u32 *) &val)[1], dest + 4); mthca_write64_raw() 88 static inline void mthca_write64(u32 hi, u32 lo, void __iomem *dest, mthca_write64() argument 97 __raw_writel(hi, dest); mthca_write64() 98 __raw_writel(lo, dest + 4); mthca_write64()
|
/linux-4.1.27/arch/sparc/prom/ |
H A D | printf.c | 33 char *dest; prom_write() local 35 dest = console_write_buf; prom_write() 42 *dest++ = '\r'; prom_write() 45 *dest++ = ch; prom_write() 49 dest = console_write_buf; prom_write()
|
/linux-4.1.27/arch/x86/lib/ |
H A D | string_32.c | 17 char *strcpy(char *dest, const char *src) strcpy() argument 25 : "0" (src), "1" (dest) : "memory"); strcpy() 26 return dest; strcpy() 32 char *strncpy(char *dest, const char *src, size_t count) strncpy() argument 45 : "0" (src), "1" (dest), "2" (count) : "memory"); strncpy() 46 return dest; strncpy() 52 char *strcat(char *dest, const char *src) strcat() argument 63 : "0" (src), "1" (dest), "2" (0), "3" (0xffffffffu) : "memory"); strcat() 64 return dest; strcat() 70 char *strncat(char *dest, const char *src, size_t count) strncat() argument 86 : "0" (src), "1" (dest), "2" (0), "3" (0xffffffffu), "g" (count) strncat() 88 return dest; strncat()
|
H A D | memcpy_32.c | 23 __visible void *memmove(void *dest, const void *src, size_t n) memmove() argument 26 char *ret = dest; memmove() 202 "2" (dest) memmove()
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | string.h | 19 extern void *memset(void *dest, int ch, size_t count); 20 extern void *memcpy(void *dest, const void *src, size_t count); 21 extern void *memmove(void *dest, const void *src, size_t count);
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | string.h | 15 extern char *strcpy(char *dest, const char *src); 18 extern char *strncpy(char *dest, const char *src, size_t n); 35 extern void *memmove(void *dest, const void *src, size_t count);
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | string.h | 24 static inline char *strncpy(char *dest, const char *src, size_t n) strncpy() argument 26 char *xdest = dest; strncpy() 35 : "+a" (dest), "+a" (src), "+d" (n) strncpy()
|
H A D | math-emu.h | 169 .macro fp_get_pc dest 170 move.l (FPS_PC+4,%sp),\dest 177 .macro fp_get_instr_data f,s,dest,label variable 178 getuser \f,%sp@(FPS_PC+4)@(0),\dest,\label,%sp@(FPS_PC+4) 182 .macro fp_get_instr_word dest,label,addr 183 fp_get_instr_data w,2,\dest,\label,\addr variable 186 .macro fp_get_instr_long dest,label,addr 187 fp_get_instr_data l,4,\dest,\label,\addr variable 195 .macro getuser size,src,dest,label,addr variable 197 .Lu1\@: moves\size \src,\dest 211 .macro putuser size,src,dest,label,addr variable 213 .Lu1\@: moves\size \src,\dest 236 .macro getuser.\m src,dest,label,addr variable 237 getuser .\m,\src,\dest,\label,\addr variable 239 .macro putuser.\m src,dest,label,addr variable 240 putuser .\m,\src,\dest,\label,\addr variable
|
/linux-4.1.27/arch/ia64/sn/kernel/ |
H A D | bte.c | 62 * bte_copy(src, dest, len, mode, notification) 64 * Use the block transfer engine to move kernel memory from src to dest 69 * dest - physical address of the transfer destination. 70 * len - number of bytes to transfer from source to dest. 77 * NOTE: This function requires src, dest, and len to 80 bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification) bte_copy() argument 95 src, dest, len, mode, notification)); bte_copy() 103 BUG_ON(dest & L1_CACHE_MASK); bte_copy() 113 nasid_to_try[0] = NASID_GET(dest); bte_copy() 123 nasid_to_try[1] = NASID_GET(dest); bte_copy() 195 BTE_PRINTKV(("IBDA = 0x%lx)\n", dest)); bte_copy() 196 BTE_DEST_STORE(bte, dest); bte_copy() 247 * bte_unaligned_copy(src, dest, len, mode) 250 * memory from src to dest using the assigned mode. 254 * dest - physical address of the transfer destination. 255 * len - number of bytes to transfer from source to dest. 259 * NOTE: If the source, dest, and len are all cache line aligned, 262 bte_result_t bte_unaligned_copy(u64 src, u64 dest, u64 len, u64 mode) bte_unaligned_copy() argument 289 destFirstCacheOffset = dest & L1_CACHE_MASK; bte_unaligned_copy() 320 headBcopyDest = dest; bte_unaligned_copy() 338 footBcopyDest = dest + len - footBcopyLen; bte_unaligned_copy() 367 (dest + bte_unaligned_copy() 387 headBcopyDest = dest; bte_unaligned_copy()
|
/linux-4.1.27/arch/m32r/kernel/ |
H A D | align.c | 84 int dest = REG1(insn); emu_addi() local 87 val = get_reg(regs, dest); emu_addi() 89 set_reg(regs, dest, val); emu_addi() 105 int dest = REG1(insn); emu_add() local 109 val = get_reg(regs, dest); emu_add() 111 set_reg(regs, dest, val); emu_add() 118 int dest = REG1(insn); emu_addx() local 122 tmp = get_reg(regs, dest); emu_addx() 125 set_reg(regs, dest, val); emu_addx() 138 int dest = REG1(insn); emu_and() local 141 val = get_reg(regs, dest); emu_and() 143 set_reg(regs, dest, val); emu_and() 221 int dest = REG1(insn); emu_or() local 224 val = get_reg(regs, dest); emu_or() 226 set_reg(regs, dest, val); emu_or() 233 int dest = REG1(insn); emu_sub() local 236 val = get_reg(regs, dest); emu_sub() 238 set_reg(regs, dest, val); emu_sub() 245 int dest = REG1(insn); emu_subx() local 248 val = tmp = get_reg(regs, dest); emu_subx() 251 set_reg(regs, dest, val); emu_subx() 264 int dest = REG1(insn); emu_xor() local 267 val = (unsigned int)get_reg(regs, dest); emu_xor() 269 set_reg(regs, dest, val); emu_xor() 276 int dest = REG1(insn); emu_mul() local 279 reg1 = get_reg(regs, dest); emu_mul() 287 set_reg(regs, dest, reg1); emu_mul() 449 * ld : ?010 dest 1100 src 450 * 0010 dest 1110 src : ld Rdest, @Rsrc+ 451 * ldh : ?010 dest 1010 src 452 * lduh : ?010 dest 1011 src
|
/linux-4.1.27/arch/mips/netlogic/xlr/ |
H A D | fmn.c | 45 #define COP2_CC_INIT_CPU_DEST(dest, conf) \ 47 nlm_write_c2_cc##dest(0, conf[(dest * 8) + 0]); \ 48 nlm_write_c2_cc##dest(1, conf[(dest * 8) + 1]); \ 49 nlm_write_c2_cc##dest(2, conf[(dest * 8) + 2]); \ 50 nlm_write_c2_cc##dest(3, conf[(dest * 8) + 3]); \ 51 nlm_write_c2_cc##dest(4, conf[(dest * 8) + 4]); \ 52 nlm_write_c2_cc##dest(5, conf[(dest * 8) + 5]); \ 53 nlm_write_c2_cc##dest(6, conf[(dest * 8) + 6]); \ 54 nlm_write_c2_cc##dest(7, conf[(dest * 8) + 7]); \
|
/linux-4.1.27/drivers/mtd/maps/ |
H A D | tsunami_flash.c | 32 unsigned char *dest; tsunami_flash_copy_from() local 33 dest = addr; tsunami_flash_copy_from() 35 *dest = tsunami_tig_readb(offset); tsunami_flash_copy_from() 37 dest++; tsunami_flash_copy_from()
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | string_64.h | 10 extern void *memcpy(void *dest, const void *src, size_t count);
|
/linux-4.1.27/arch/s390/mm/ |
H A D | maccess.c | 70 static int __memcpy_real(void *dest, void *src, size_t count) __memcpy_real() argument 72 register unsigned long _dest asm("2") = (unsigned long) dest; __memcpy_real() 85 "+d" (_len2), "=m" (*((long *) dest)) __memcpy_real() 94 int memcpy_real(void *dest, void *src, size_t count) memcpy_real() argument 103 rc = __memcpy_real(dest, src, count); memcpy_real() 111 void memcpy_absolute(void *dest, void *src, size_t count) memcpy_absolute() argument 122 memcpy(dest, src, count); memcpy_absolute() 126 memcpy(dest, src, count); memcpy_absolute() 135 int copy_to_user_real(void __user *dest, void *src, unsigned long count) copy_to_user_real() argument 148 if (copy_to_user(dest + offs, buf, size)) copy_to_user_real()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | io.c | 154 void _memcpy_fromio(void *dest, const volatile void __iomem *src, _memcpy_fromio() argument 160 while(n && (!IO_CHECK_ALIGN(vsrc, 4) || !IO_CHECK_ALIGN(dest, 4))) { _memcpy_fromio() 161 *((u8 *)dest) = *((volatile u8 *)vsrc); _memcpy_fromio() 164 dest++; _memcpy_fromio() 168 *((u32 *)dest) = *((volatile u32 *)vsrc); _memcpy_fromio() 171 dest += 4; _memcpy_fromio() 175 *((u8 *)dest) = *((volatile u8 *)vsrc); _memcpy_fromio() 178 dest++; _memcpy_fromio() 185 void _memcpy_toio(volatile void __iomem *dest, const void *src, unsigned long n) _memcpy_toio() argument 187 void *vdest = (void __force *) dest; _memcpy_toio()
|
/linux-4.1.27/crypto/async_tx/ |
H A D | async_xor.c | 113 do_sync_xor(struct page *dest, struct page **src_list, unsigned int offset, do_sync_xor() argument 133 dest_buf = page_address(dest) + offset; do_sync_xor() 153 * @dest: destination page 162 * xor_blocks always uses the dest as a source so the 163 * ASYNC_TX_XOR_ZERO_DST flag must be set to not include dest data in 168 * src_list note: if the dest is also a source it must be at index zero. 173 async_xor(struct page *dest, struct page **src_list, unsigned int offset, async_xor() argument 177 &dest, 1, src_list, async_xor() 204 unmap->addr[j] = dma_map_page(device->dev, dest, offset, len, async_xor() 218 /* in the sync case the dest is an implied source async_xor() 219 * (assumes the dest is the first source) async_xor() 229 do_sync_xor(dest, src_list, offset, src_cnt, len, submit); async_xor() 242 xor_val_chan(struct async_submit_ctl *submit, struct page *dest, xor_val_chan() argument 248 return async_tx_find_channel(submit, DMA_XOR_VAL, &dest, 1, src_list, xor_val_chan() 254 * @dest: destination page used if the xor is performed synchronously 264 * src_list note: if the dest is also a source it must be at index zero. 269 async_xor_val(struct page *dest, struct page **src_list, unsigned int offset, async_xor_val() argument 273 struct dma_chan *chan = xor_val_chan(submit, dest, src_list, src_cnt, len); async_xor_val() 328 tx = async_xor(dest, src_list, offset, src_cnt, len, submit); async_xor_val() 332 *result = !page_is_zero(dest, offset, len) << SUM_CHECK_P; async_xor_val()
|
H A D | async_memcpy.c | 35 * @dest: destination page 37 * @dest_offset: offset into 'dest' to start transaction 45 async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset, async_memcpy() argument 50 &dest, 1, &src, 1, len); async_memcpy() 70 unmap->addr[1] = dma_map_page(device->dev, dest, dest_offset, len, async_memcpy() 91 dest_buf = kmap_atomic(dest) + dest_offset; async_memcpy()
|
/linux-4.1.27/arch/c6x/kernel/ |
H A D | module.c | 17 static inline int fixup_pcr(u32 *ip, Elf32_Addr dest, u32 maskbits, int shift) fixup_pcr() argument 21 long delta = ((long)dest - ep) >> 2; fixup_pcr() 31 pr_debug("REL PCR_S%d[%p] dest[%p] opcode[%08x]\n", fixup_pcr() 32 maskbits, ip, (void *)dest, opcode); fixup_pcr() 37 maskbits, ip, (void *)dest); fixup_pcr()
|
/linux-4.1.27/include/linux/mlx5/ |
H A D | doorbell.h | 49 static inline void mlx5_write64(__be32 val[2], void __iomem *dest, mlx5_write64() argument 52 __raw_writeq(*(u64 *)val, dest); mlx5_write64() 66 static inline void mlx5_write64(__be32 val[2], void __iomem *dest, mlx5_write64() argument 72 __raw_writel((__force u32) val[0], dest); mlx5_write64() 73 __raw_writel((__force u32) val[1], dest + 4); mlx5_write64()
|
/linux-4.1.27/drivers/scsi/sym53c8xx_2/ |
H A D | sym_misc.h | 105 struct sym_quehead *dest) sym_que_move() 111 first->blink = dest; sym_que_move() 112 dest->flink = first; sym_que_move() 114 last->flink = dest; sym_que_move() 115 dest->blink = last; sym_que_move() 119 dest->flink = dest; sym_que_move() 120 dest->blink = dest; sym_que_move() 104 sym_que_move(struct sym_quehead *orig, struct sym_quehead *dest) sym_que_move() argument
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | cps-vec.S | 29 * Set dest to non-zero if the core supports the MT ASE, else zero. If 32 .macro has_mt dest, nomt 33 mfc0 \dest, CP0_CONFIG 34 bgez \dest, \nomt 35 mfc0 \dest, CP0_CONFIG, 1 36 bgez \dest, \nomt 37 mfc0 \dest, CP0_CONFIG, 2 38 bgez \dest, \nomt 39 mfc0 \dest, CP0_CONFIG, 3 40 andi \dest, \dest, MIPS_CONF3_MT 41 beqz \dest, \nomt 464 .macro psstate dest 469 la \dest, __per_cpu_offset 470 addu $1, $1, \dest 472 la \dest, cps_cpu_state 473 addu \dest, \dest, $1
|
/linux-4.1.27/arch/s390/boot/compressed/ |
H A D | misc.c | 83 void *memcpy(void *dest, const void *src, size_t n) memcpy() argument 86 char *d = dest; memcpy() 90 return dest; memcpy() 93 void *memmove(void *dest, const void *src, size_t n) memmove() argument 96 char *d = dest; memmove() 107 return dest; memmove()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | sgiarcs.h | 375 #define ARC_CALL0(dest) \ 377 long __vec = (long) romvec->dest; \ 389 #define ARC_CALL1(dest, a1) \ 392 long __vec = (long) romvec->dest; \ 404 #define ARC_CALL2(dest, a1, a2) \ 408 long __vec = (long) romvec->dest; \ 420 #define ARC_CALL3(dest, a1, a2, a3) \ 425 long __vec = (long) romvec->dest; \ 437 #define ARC_CALL4(dest, a1, a2, a3, a4) \ 443 long __vec = (long) romvec->dest; \ 456 #define ARC_CALL5(dest, a1, a2, a3, a4, a5) \ 463 long __vec = (long) romvec->dest; \ 483 #define ARC_CALL0(dest) \ 485 long (*__vec)(void) = (void *) romvec->dest; \ 491 #define ARC_CALL1(dest, a1) \ 494 long (*__vec)(long) = (void *) romvec->dest; \ 500 #define ARC_CALL2(dest, a1, a2) \ 504 long (*__vec)(long, long) = (void *) romvec->dest; \ 510 #define ARC_CALL3(dest, a1, a2, a3) \ 515 long (*__vec)(long, long, long) = (void *) romvec->dest; \ 521 #define ARC_CALL4(dest, a1, a2, a3, a4) \ 527 long (*__vec)(long, long, long, long) = (void *) romvec->dest; \ 533 #define ARC_CALL5(dest, a1, a2, a3, a4, a5) \ 541 __vec = (void *) romvec->dest; \
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | q931.c | 24 iecpy(u_char *dest, u_char *iestart, int ieoffset) iecpy() argument 32 *dest++ = *p++; iecpy() 33 *dest++ = '\0'; iecpy() 201 prbits(char *dest, u_char b, int start, int len) prbits() argument 203 char *dp = dest; prbits() 213 return (dp - dest); prbits() 445 prcause(char *dest, u_char *p) prcause() argument 448 char *dp = dest; prcause() 484 return (dp - dest); prcause() 522 prcause_1tr6(char *dest, u_char *p) prcause_1tr6() argument 524 char *dp = dest; prcause_1tr6() 530 return (dp - dest); prcause_1tr6() 552 return (dp - dest); prcause_1tr6() 557 prchident(char *dest, u_char *p) prchident() argument 559 char *dp = dest; prchident() 565 return (dp - dest); prchident() 569 prcalled(char *dest, u_char *p) prcalled() argument 572 char *dp = dest; prcalled() 583 return (dp - dest); prcalled() 586 prcalling(char *dest, u_char *p) prcalling() argument 589 char *dp = dest; prcalling() 608 return (dp - dest); prcalling() 613 prbearer(char *dest, u_char *p) prbearer() argument 615 char *dp = dest, ch; prbearer() 655 return (dp - dest); prbearer() 661 prbearer_ni1(char *dest, u_char *p) prbearer_ni1() argument 663 char *dp = dest; prbearer_ni1() 714 return (dp - dest); prbearer_ni1() 718 general(char *dest, u_char *p) general() argument 720 char *dp = dest; general() 741 return (dp - dest); general() 745 general_ni1(char *dest, u_char *p) general_ni1() argument 747 char *dp = dest; general_ni1() 768 return (dp - dest); general_ni1() 772 prcharge(char *dest, u_char *p) prcharge() argument 774 char *dp = dest; prcharge() 786 return (dp - dest); prcharge() 789 prtext(char *dest, u_char *p) prtext() argument 791 char *dp = dest; prtext() 801 return (dp - dest); prtext() 805 prfeatureind(char *dest, u_char *p) prfeatureind() argument 807 char *dp = dest; prfeatureind() 837 return (dp - dest); prfeatureind() 871 disptext_ni1(char *dest, u_char *p) disptext_ni1() argument 873 char *dp = dest; disptext_ni1() 880 return (dp - dest); disptext_ni1() 907 return (dp - dest); disptext_ni1() 910 display(char *dest, u_char *p) display() argument 912 char *dp = dest; display() 935 return (dp - dest); display() 939 prfacility(char *dest, u_char *p) prfacility() argument 941 char *dp = dest; prfacility() 965 return (dp - dest); prfacility()
|
/linux-4.1.27/arch/powerpc/lib/ |
H A D | feature-fixups.c | 44 static int patch_alt_instruction(unsigned int *src, unsigned int *dest, patch_alt_instruction() argument 56 instr = translate_branch(dest, src); patch_alt_instruction() 62 patch_instruction(dest, instr); patch_alt_instruction() 69 unsigned int *start, *end, *alt_start, *alt_end, *src, *dest; patch_feature_section() local 83 dest = start; patch_feature_section() 85 for (; src < alt_end; src++, dest++) { patch_feature_section() 86 if (patch_alt_instruction(src, dest, alt_start, alt_end)) patch_feature_section() 90 for (; dest < end; dest++) patch_feature_section() 91 patch_instruction(dest, PPC_INST_NOP); patch_feature_section() 119 unsigned int *dest; do_lwsync_fixups() local 128 dest = (void *)start + *start; do_lwsync_fixups() 129 patch_instruction(dest, PPC_INST_LWSYNC); do_lwsync_fixups() 136 int *src, *dest; do_final_fixups() local 143 dest = (int *)KERNELBASE; do_final_fixups() 147 patch_instruction(dest, *src); do_final_fixups() 149 dest++; do_final_fixups()
|
H A D | vmx-helper.c | 70 void *exit_vmx_copy(void *dest) exit_vmx_copy() argument 73 return dest; exit_vmx_copy()
|
/linux-4.1.27/net/bridge/ |
H A D | br_input.c | 125 const unsigned char *dest = eth_hdr(skb)->h_dest; br_handle_frame_finish() local 145 if (!is_broadcast_ether_addr(dest) && is_multicast_ether_addr(dest) && br_handle_frame_finish() 165 if (is_broadcast_ether_addr(dest)) { br_handle_frame_finish() 168 } else if (is_multicast_ether_addr(dest)) { br_handle_frame_finish() 184 } else if ((dst = __br_fdb_get(br, dest, vid)) && br_handle_frame_finish() 230 const unsigned char *dest = eth_hdr(skb)->h_dest; br_handle_frame() local 245 if (unlikely(is_link_local_ether_addr(dest))) { br_handle_frame() 261 switch (dest[5]) { br_handle_frame() 266 fwd_mask & (1u << dest[5])) br_handle_frame() 276 if (fwd_mask & (1u << dest[5])) br_handle_frame() 299 dest = eth_hdr(skb)->h_dest; br_handle_frame() 303 if (ether_addr_equal(p->br->dev->dev_addr, dest)) br_handle_frame()
|
H A D | br_stp_bpdu.c | 62 static inline void br_set_ticks(unsigned char *dest, int j) br_set_ticks() argument 66 put_unaligned_be16(ticks, dest); br_set_ticks() 144 const unsigned char *dest = eth_hdr(skb)->h_dest; br_stp_rcv() local 173 if (!ether_addr_equal(dest, br->group_addr)) br_stp_rcv()
|
/linux-4.1.27/net/mac802154/ |
H A D | rx.c | 55 switch (mac_cb(skb)->dest.mode) { ieee802154_subif_frame() 57 if (mac_cb(skb)->dest.mode != IEEE802154_ADDR_NONE) ieee802154_subif_frame() 65 if (mac_cb(skb)->dest.pan_id != span && ieee802154_subif_frame() 66 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) ieee802154_subif_frame() 68 else if (mac_cb(skb)->dest.extended_addr == wpan_dev->extended_addr) ieee802154_subif_frame() 74 if (mac_cb(skb)->dest.pan_id != span && ieee802154_subif_frame() 75 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) ieee802154_subif_frame() 77 else if (mac_cb(skb)->dest.short_addr == sshort) ieee802154_subif_frame() 79 else if (mac_cb(skb)->dest.short_addr == ieee802154_subif_frame() 87 pr_debug("invalid dest mode\n"); ieee802154_subif_frame() 156 ieee802154_print_addr("destination", &hdr->dest); ieee802154_parse_frame_start() 160 cb->dest = hdr->dest; ieee802154_parse_frame_start()
|
/linux-4.1.27/arch/m68k/fpsp040/ |
H A D | bugfix.S | 80 | /* Make sure that the cmdreg3b dest reg is not going to 130 | /* Make sure that the cmdreg3b dest reg is not going to 186 | cu src equal to xu dest or equal to nu dest. If so, go to 187 | op0. Else, or if opclass2, check for cu dest equal to 188 | xu dest or equal to nu dest. If so, go to tst_opcl. Else, 201 bfextu CMDREG3B(%a6){#6:#3},%d1 |get 3rd dest 205 | Check for cu dest equal to nu dest. If so, go and fix the 208 bfextu CMDREG1B(%a6){#6:#3},%d0 |get 1st dest 209 cmpb %d0,%d1 |cmp 1st dest with 3rd dest 214 bfextu CMDREG2B(%a6){#6:#3},%d1 |get 2nd dest 215 cmpb %d0,%d1 |cmp 1st dest with 2nd dest 218 cmpb %d0,%d1 |cmp 1st src with 2nd dest 247 | dest and the dest of the xu. We must clear the instruction in 285 bfextu CMDREG2B(%a6){#6:#3},%d0 |get dest register no 356 | Check for cu dest equal to nu dest or equal to xu dest, with 360 bfextu CMDREG1B(%a6){#6:#3},%d0 |get 1st dest 361 bfextu CMDREG3B(%a6){#6:#3},%d1 |get 3rd dest 362 cmpb %d0,%d1 |cmp 1st dest with 3rd dest 364 bfextu CMDREG2B(%a6){#6:#3},%d1 |get 2nd dest 365 cmpb %d0,%d1 |cmp 1st dest with 2nd dest 369 | dest and the dest of the xu. We must clear the instruction in 411 bfextu CMDREG2B(%a6){#6:#3},%d0 |get dest register no
|
H A D | x_snan.S | 10 | If the dest data format is s, d, or x, then the SNAN bit in the NAN 12 | necessary) is transferred to the dest. If the dest format is b, w, 13 | or l, then garbage is written to the dest (actually the upper 32 bits 19 | out, the dest. is not modified, and the exception is posted. 177 movel %a0,%a1 |load dest addr into a1 199 movel %a0,%a1 |load dest addr into a1 220 movel %a0,%a1 |load dest addr into a1 261 btstb #6,FPTEMP_HI(%a6) |check if dest nan is an snan
|
H A D | x_unfl.S | 64 | Clear dirty bit on dest resister in the frame before branching 67 bfextu CMDREG3B(%a6){#6:#3},%d0 |get dest reg no 68 bclrb %d0,FPR_DIRTY_BITS(%a6) |clr dest dirty bit 98 | Clear dirty bit on dest resister in the frame before branching 101 bfextu CMDREG3B(%a6){#6:#3},%d0 |get dest reg no 102 bclrb %d0,FPR_DIRTY_BITS(%a6) |clr dest dirty bit 119 | Clear dirty bit on dest resister in the frame before branching 122 bfextu CMDREG3B(%a6){#6:#3},%d0 |get dest reg no 123 bclrb %d0,FPR_DIRTY_BITS(%a6) |clr dest dirty bit
|
H A D | x_ovfl.S | 79 bfextu CMDREG3B(%a6){#6:#3},%d0 |get dest reg no 80 bclrb %d0,FPR_DIRTY_BITS(%a6) |clr dest dirty bit 109 bfextu CMDREG3B(%a6){#6:#3},%d0 |get dest reg no 110 bclrb %d0,FPR_DIRTY_BITS(%a6) |clr dest dirty bit 127 | Clear dirty bit on dest resister in the frame before branching 130 bfextu CMDREG3B(%a6){#6:#3},%d0 |get dest reg no 131 bclrb %d0,FPR_DIRTY_BITS(%a6) |clr dest dirty bit
|
H A D | x_store.S | 42 bfextu %d0{#6:#3},%d0 |isolate dest. reg from cmdreg3b 87 bsrl g_dfmtou |returns dest format in d0 91 cmpil #0,%d0 |if dest format is extended 93 cmpil #1,%d0 |if dest format is single 167 exg %a0,%a1 |a0=supervisor source, a1=user dest 231 exg %a0,%a1 |a0=supervisor source, a1=user dest 251 exg %a0,%a1 |a0=supervisor source, a1=user dest
|
H A D | sto_res.S | 39 subl %d0,%d1 |d1 = 7- (dest. reg. no.) 72 subl %d0,%d1 |d1 = 7- (dest. reg. no.)
|
/linux-4.1.27/include/linux/raid/ |
H A D | xor.h | 7 void *dest, void **srcs);
|
/linux-4.1.27/include/linux/decompress/ |
H A D | unxz.h | 14 long (*fill)(void *dest, unsigned long size),
|
/linux-4.1.27/arch/unicore32/boot/compressed/ |
H A D | misc.c | 43 void *memcpy(void *dest, const void *src, size_t n) memcpy() argument 46 unsigned char *d = (unsigned char *)dest, *s = (unsigned char *)src; memcpy() 74 return dest; memcpy()
|
/linux-4.1.27/fs/reiserfs/ |
H A D | ibalance.c | 36 /* define dest, src, dest parent, dest position */ internal_define_dest_src_infos() 60 /* dest position is analog of dest->b_item_order */ internal_define_dest_src_infos() 292 * dest 294 * from src to tail of dest 296 * from src to head of dest 305 * buffer dest. internal_copy_pointers_items() 307 struct buffer_head *dest = dest_bi->bi_bh; internal_copy_pointers_items() local 316 RFALSE(dest == NULL || src == NULL, internal_copy_pointers_items() 317 "src (%p) or dest (%p) buffer is 0", src, dest); internal_copy_pointers_items() 323 RFALSE(cpy_num - 1 + B_NR_ITEMS(dest) > (int)MAX_NR_KEY(dest), internal_copy_pointers_items() 324 "cpy_num (%d) + item number in dest (%d) can not be > MAX_NR_KEY(%d)", internal_copy_pointers_items() 325 cpy_num, B_NR_ITEMS(dest), MAX_NR_KEY(dest)); internal_copy_pointers_items() 331 blkh = B_BLK_HEAD(dest); internal_copy_pointers_items() 343 dc = B_N_CHILD(dest, dest_order); internal_copy_pointers_items() 351 key = internal_key(dest, dest_order); internal_copy_pointers_items() 365 do_balance_mark_internal_dirty(dest_bi->tb, dest, 0); internal_copy_pointers_items() 368 check_internal(dest); internal_copy_pointers_items() 389 * buffer dest. 428 /* Insert n_src'th key of buffer src before n_dest'th key of buffer dest. */ internal_insert_key() 434 struct buffer_head *dest = dest_bi->bi_bh; internal_insert_key() local 439 RFALSE(dest == NULL || src == NULL, internal_insert_key() 440 "source(%p) or dest(%p) buffer is 0", src, dest); internal_insert_key() 442 "source(%d) or dest(%d) key number less than 0", internal_insert_key() 444 RFALSE(dest_position_before > B_NR_ITEMS(dest) || internal_insert_key() 446 "invalid position in dest (%d (key number %d)) or in src (%d (key number %d))", internal_insert_key() 447 dest_position_before, B_NR_ITEMS(dest), internal_insert_key() 449 RFALSE(B_FREE_SPACE(dest) < KEY_SIZE, internal_insert_key() 450 "no enough free space (%d) in dest buffer", B_FREE_SPACE(dest)); internal_insert_key() 452 blkh = B_BLK_HEAD(dest); internal_insert_key() 456 key = internal_key(dest, dest_position_before); internal_insert_key() 468 do_balance_mark_internal_dirty(dest_bi->tb, dest, 0); internal_insert_key() 481 * Insert d_key'th (delimiting) key from buffer cfl to tail of dest. 483 * buffer src to buffer dest. 507 * insert delimiting key from common father of dest and internal_shift_left() 508 * src to node dest into position B_NR_ITEM(dest) internal_shift_left() 555 * Insert d_key'th (delimiting) key from buffer cfr to head of dest. 556 * Copy n node pointers and n - 1 items from buffer src to buffer dest. 580 * insert delimiting key from common father of dest internal_shift_right() 581 * and src to dest node into position 0 internal_shift_right()
|
H A D | lbalance.c | 12 * copy copy_count entries from source directory item to dest buffer 19 struct buffer_head *dest = dest_bi->bi_bh; leaf_copy_dir_entries() local 52 /* when copy last to first, dest buffer can contain 0 items */ leaf_copy_dir_entries() 55 LAST_TO_FIRST) ? ((B_NR_ITEMS(dest)) ? 0 : -1) : (B_NR_ITEMS(dest) leaf_copy_dir_entries() 59 * if there are no items in dest or the first/last item in leaf_copy_dir_entries() 60 * dest is not item of the same directory leaf_copy_dir_entries() 66 leaf_key(dest, leaf_copy_dir_entries() 69 /* create new item in dest */ leaf_copy_dir_entries() 101 /* insert item into dest buffer */ leaf_copy_dir_entries() 104 LAST_TO_FIRST) ? 0 : B_NR_ITEMS(dest), leaf_copy_dir_entries() 110 FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - leaf_copy_dir_entries() 117 (last_first == FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - 1) : 0; leaf_copy_dir_entries() 121 FIRST_TO_LAST) ? ih_entry_count(item_head(dest, leaf_copy_dir_entries() 138 struct buffer_head *dest = dest_bi->bi_bh; leaf_copy_boundary_item() local 144 dest_nr_item = B_NR_ITEMS(dest); leaf_copy_boundary_item() 154 dih = item_head(dest, dest_nr_item - 1); leaf_copy_boundary_item() 166 /* copy all entries to dest */ leaf_copy_boundary_item() 197 * item of dest buffer. Both are of the same file leaf_copy_boundary_item() 222 dih = item_head(dest, 0); leaf_copy_boundary_item() 285 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size, leaf_copy_boundary_item() 288 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size); leaf_copy_boundary_item() 292 dest->b_size)); leaf_copy_boundary_item() 304 * copy cpy_mun items from buffer src to buffer dest 306 * from first-th item in src to tail of dest 308 * from first-th item in src to head of dest 314 struct buffer_head *dest; leaf_copy_items_entirely() local 330 dest = dest_bi->bi_bh; leaf_copy_items_entirely() 332 RFALSE(!dest, "vs-10130: can not copy negative amount of items"); leaf_copy_items_entirely() 337 blkh = B_BLK_HEAD(dest); leaf_copy_items_entirely() 342 * we will insert items before 0-th or nr-th item in dest buffer. leaf_copy_items_entirely() 348 ih = item_head(dest, dest_before); leaf_copy_items_entirely() 352 B_FREE_SPACE(dest), cpy_num * IH_SIZE); leaf_copy_items_entirely() 364 j = location = (dest_before == 0) ? dest->b_size : ih_location(ih - 1); leaf_copy_items_entirely() 379 memmove(dest->b_data + last_loc, leaf_copy_items_entirely() 380 dest->b_data + last_loc + j - last_inserted_loc, leaf_copy_items_entirely() 384 memcpy(dest->b_data + last_inserted_loc, leaf_copy_items_entirely() 392 do_balance_mark_leaf_dirty(dest_bi->tb, dest, 0); leaf_copy_items_entirely() 397 RFALSE(dc_block_number(t_dc) != dest->b_blocknr, leaf_copy_items_entirely() 399 (long unsigned)dest->b_blocknr, leaf_copy_items_entirely() 418 struct buffer_head *dest = dest_bi->bi_bh; leaf_item_bottle() local 455 leaf_insert_into_buf(dest_bi, B_NR_ITEMS(dest), &n_ih, leaf_item_bottle() 497 dest->b_size); leaf_item_bottle() 524 struct buffer_head *dest; leaf_copy_items() local 527 dest = dest_bi->bi_bh; leaf_copy_items() 528 RFALSE(!dest || !src, "vs-10210: !dest || !src"); leaf_copy_items() 638 /* define dest, src, dest parent, dest position */ leaf_define_dest_src_infos() 707 "vs-10260: mode==%d, source (%p) or dest (%p) buffer is initialized incorrectly", leaf_define_dest_src_infos() 1342 /* first byte of dest item */ leaf_paste_entries()
|
/linux-4.1.27/arch/frv/include/asm/ |
H A D | math-emu.h | 169 .macro fp_get_pc dest 170 move.l (FPS_PC+4,%sp),\dest 177 .macro fp_get_instr_data f,s,dest,label variable 178 getuser \f,%sp@(FPS_PC+4)@(0),\dest,\label,%sp@(FPS_PC+4) 182 .macro fp_get_instr_word dest,label,addr 183 fp_get_instr_data w,2,\dest,\label,\addr variable 186 .macro fp_get_instr_long dest,label,addr 187 fp_get_instr_data l,4,\dest,\label,\addr variable 195 .macro getuser size,src,dest,label,addr variable 197 .Lu1\@: moves\size \src,\dest 211 .macro putuser size,src,dest,label,addr variable 213 .Lu1\@: moves\size \src,\dest
|
/linux-4.1.27/arch/m32r/boot/compressed/ |
H A D | misc.c | 42 void *memcpy(void *dest, const void *src, size_t n) memcpy() argument 44 char *d = dest; memcpy() 49 return dest; memcpy()
|
/linux-4.1.27/arch/blackfin/mm/ |
H A D | isram-driver.c | 36 * dest can be in this special L1 memory area. 133 * The isram_memcpy() function copies n bytes from memory area src to memory area dest. 134 * The isram_memcpy() function returns a pointer to dest. 135 * Either dest or src can be in L1 instruction sram. 137 void *isram_memcpy(void *dest, const void *src, size_t n) isram_memcpy() argument 145 dest_byte = (unsigned char *)dest; isram_memcpy() 147 dest_in_l1 = isram_check_addr(dest, n); isram_memcpy() 171 data_out = isram_read(dest + count); isram_memcpy() 175 data_out &= ~((uint64_t)0xff << ADDR2OFFSET(dest + count)); isram_memcpy() 176 data_out |= ((uint64_t)byte << ADDR2OFFSET(dest + count)); isram_memcpy() 178 if (ADDR2LAST(dest + count)) { isram_memcpy() 180 isram_write(dest + count, data_out); isram_memcpy() 183 /* dest in L2 or L3 - so just dereference */ isram_memcpy() 190 isram_write(dest + count, data_out); isram_memcpy() 192 return dest; isram_memcpy()
|
/linux-4.1.27/include/linux/mlx4/ |
H A D | doorbell.h | 55 static inline void mlx4_write64(__be32 val[2], void __iomem *dest, mlx4_write64() argument 58 __raw_writeq(*(u64 *) val, dest); mlx4_write64() 73 static inline void mlx4_write64(__be32 val[2], void __iomem *dest, mlx4_write64() argument 79 __raw_writel((__force u32) val[0], dest); mlx4_write64() 80 __raw_writel((__force u32) val[1], dest + 4); mlx4_write64()
|
/linux-4.1.27/lib/lz4/ |
H A D | lz4_decompress.c | 55 static int lz4_uncompress(const char *source, char *dest, int osize) lz4_uncompress() argument 59 BYTE *op = (BYTE *) dest; lz4_uncompress() 104 if (unlikely(ref < (BYTE *const) dest)) lz4_uncompress() 169 static int lz4_uncompress_unknownoutputsize(const char *source, char *dest, lz4_uncompress_unknownoutputsize() argument 177 BYTE *op = (BYTE *) dest; lz4_uncompress_unknownoutputsize() 224 if (ref < (BYTE * const) dest) lz4_uncompress_unknownoutputsize() 286 return (int) (((char *) op) - dest); lz4_uncompress_unknownoutputsize() 294 unsigned char *dest, size_t actual_dest_len) lz4_decompress() 299 input_len = lz4_uncompress(src, dest, actual_dest_len); lz4_decompress() 313 unsigned char *dest, size_t *dest_len) lz4_decompress_unknownoutputsize() 318 out_len = lz4_uncompress_unknownoutputsize(src, dest, src_len, lz4_decompress_unknownoutputsize() 293 lz4_decompress(const unsigned char *src, size_t *src_len, unsigned char *dest, size_t actual_dest_len) lz4_decompress() argument 312 lz4_decompress_unknownoutputsize(const unsigned char *src, size_t src_len, unsigned char *dest, size_t *dest_len) lz4_decompress_unknownoutputsize() argument
|
H A D | lz4_compress.c | 46 * Compress 'isize' bytes from 'source' into an output buffer 'dest' of 49 * return : the number of bytes written in buffer 'dest', or 0 if the 54 char *dest, lz4_compressctx() 70 u8 *op = (u8 *) dest; lz4_compressctx() 219 if (((char *)op - dest) + lastrun + 1 lz4_compressctx() 235 return (int)(((char *)op) - dest); lz4_compressctx() 240 char *dest, lz4_compress64kctx() 252 u8 *op = (u8 *) dest; lz4_compress64kctx() 415 return (int)(((char *)op) - dest); lz4_compress64kctx() 52 lz4_compressctx(void *ctx, const char *source, char *dest, int isize, int maxoutputsize) lz4_compressctx() argument 238 lz4_compress64kctx(void *ctx, const char *source, char *dest, int isize, int maxoutputsize) lz4_compress64kctx() argument
|
/linux-4.1.27/sound/pci/cs46xx/ |
H A D | cs46xx_lib.h | 120 u32 * scb_data, u32 dest); 133 u16 child_scb_addr, u32 dest, 139 u16 sample_buffer_addr, u32 dest, 147 u16 sample_buffer_addr, u32 dest, 153 u16 src_delay_buffer_addr, u32 dest, 158 u16 mix_buffer_addr, u32 dest, 164 u16 vari_buffer_addr0, u16 vari_buffer_addr1, u32 dest, 169 u32 dest, u16 hfg_scb_address, u16 asynch_buffer_address, 173 cs46xx_dsp_create_spio_write_scb(struct snd_cs46xx * chip, char * scb_name, u32 dest, 178 u16 mix_buffer_addr, u16 writeback_spb, u32 dest, 183 u32 dest, u16 snoop_buffer_address,
|
H A D | dsp_spos_scb_lib.c | 291 _dsp_create_generic_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 dest, _dsp_create_generic_scb() argument 313 scb = cs46xx_dsp_create_scb(chip,name,scb_data,dest); _dsp_create_generic_scb() 370 u32 dest, char * task_entry_name, cs46xx_dsp_create_generic_scb() 385 return _dsp_create_generic_scb (chip,name,scb_data,dest,task_entry, cs46xx_dsp_create_generic_scb() 426 u32 dest, struct dsp_scb_descriptor * parent_scb, cs46xx_dsp_create_codec_out_scb() 455 dest,"S16_CODECOUTPUTTASK",parent_scb, cs46xx_dsp_create_codec_out_scb() 464 u32 dest, struct dsp_scb_descriptor * parent_scb, cs46xx_dsp_create_codec_in_scb() 500 dest,"S16_CODECINPUTTASK",parent_scb, cs46xx_dsp_create_codec_in_scb() 508 u16 sample_buffer_addr, u32 dest, cs46xx_dsp_create_pcm_reader_scb() 544 DMA_RQ_C1_DEST_MOD32 + /* dest buffer(PCMreaderBuf) is 32 dwords*/ cs46xx_dsp_create_pcm_reader_scb() 575 ((dest >> 4) << RSCONFIG_STREAM_NUM_SHIFT) + /* stream number = SCBaddr/16 */ cs46xx_dsp_create_pcm_reader_scb() 577 RSCONFIG_MODULO_32, /* dest buffer(PCMreaderBuf) is 32 dwords (256 bytes) */ cs46xx_dsp_create_pcm_reader_scb() 602 dest,ins->null_algorithm,parent_scb, cs46xx_dsp_create_pcm_reader_scb() 614 u16 src_delay_buffer_addr, u32 dest, cs46xx_dsp_create_src_task_scb() 701 dest,"DMAREADER",parent_scb, cs46xx_dsp_create_src_task_scb() 705 dest,ins->s16_up,parent_scb, cs46xx_dsp_create_src_task_scb() 718 u16 buffer_addr, u32 dest, 759 dest,"FILTERTASK",parent_scb, 768 u16 mix_buffer_addr, u32 dest, cs46xx_dsp_create_mix_only_scb() 800 dest,"S16_MIX",parent_scb, cs46xx_dsp_create_mix_only_scb() 808 u16 mix_buffer_addr, u16 writeback_spb, u32 dest, cs46xx_dsp_create_mix_to_ostream_scb() 840 ((dest >> 4) << RSCONFIG_STREAM_NUM_SHIFT) + cs46xx_dsp_create_mix_to_ostream_scb() 853 dest,"S16_MIX_TO_OSTREAM",parent_scb, cs46xx_dsp_create_mix_to_ostream_scb() 864 u32 dest, cs46xx_dsp_create_vari_decimate_scb() 897 dest,"VARIDECIMATE",parent_scb, cs46xx_dsp_create_vari_decimate_scb() 905 cs46xx_dsp_create_pcm_serial_input_scb(struct snd_cs46xx * chip, char * scb_name, u32 dest, cs46xx_dsp_create_pcm_serial_input_scb() argument 941 dest,"PCMSERIALINPUTTASK",parent_scb, cs46xx_dsp_create_pcm_serial_input_scb() 948 cs46xx_dsp_create_asynch_fg_tx_scb(struct snd_cs46xx * chip, char * scb_name, u32 dest, cs46xx_dsp_create_asynch_fg_tx_scb() argument 973 0,dest + AFGTxAccumPhi, cs46xx_dsp_create_asynch_fg_tx_scb() 987 dest,"ASYNCHFGTXCODE",parent_scb, cs46xx_dsp_create_asynch_fg_tx_scb() 995 cs46xx_dsp_create_asynch_fg_rx_scb(struct snd_cs46xx * chip, char * scb_name, u32 dest, cs46xx_dsp_create_asynch_fg_rx_scb() argument 1019 0,dest, cs46xx_dsp_create_asynch_fg_rx_scb() 1036 dest,"ASYNCHFGRXCODE",parent_scb, cs46xx_dsp_create_asynch_fg_rx_scb() 1045 cs46xx_dsp_create_output_snoop_scb(struct snd_cs46xx * chip, char * scb_name, u32 dest, 1079 dest,"OUTPUTSNOOP",parent_scb, 1087 cs46xx_dsp_create_spio_write_scb(struct snd_cs46xx * chip, char * scb_name, u32 dest, cs46xx_dsp_create_spio_write_scb() argument 1116 dest,"SPIOWRITE",parent_scb, cs46xx_dsp_create_spio_write_scb() 1123 cs46xx_dsp_create_magic_snoop_scb(struct snd_cs46xx * chip, char * scb_name, u32 dest, cs46xx_dsp_create_magic_snoop_scb() argument 1152 dest,"MAGICSNOOPTASK",parent_scb, cs46xx_dsp_create_magic_snoop_scb() 369 cs46xx_dsp_create_generic_scb(struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 dest, char * task_entry_name, struct dsp_scb_descriptor * parent_scb, int scb_child_type) cs46xx_dsp_create_generic_scb() argument 424 cs46xx_dsp_create_codec_out_scb(struct snd_cs46xx * chip, char * codec_name, u16 channel_disp, u16 fifo_addr, u16 child_scb_addr, u32 dest, struct dsp_scb_descriptor * parent_scb, int scb_child_type) cs46xx_dsp_create_codec_out_scb() argument 462 cs46xx_dsp_create_codec_in_scb(struct snd_cs46xx * chip, char * codec_name, u16 channel_disp, u16 fifo_addr, u16 sample_buffer_addr, u32 dest, struct dsp_scb_descriptor * parent_scb, int scb_child_type) cs46xx_dsp_create_codec_in_scb() argument 507 cs46xx_dsp_create_pcm_reader_scb(struct snd_cs46xx * chip, char * scb_name, u16 sample_buffer_addr, u32 dest, int virtual_channel, u32 playback_hw_addr, struct dsp_scb_descriptor * parent_scb, int scb_child_type) cs46xx_dsp_create_pcm_reader_scb() argument 611 cs46xx_dsp_create_src_task_scb(struct snd_cs46xx * chip, char * scb_name, int rate, u16 src_buffer_addr, u16 src_delay_buffer_addr, u32 dest, struct dsp_scb_descriptor * parent_scb, int scb_child_type, int pass_through) cs46xx_dsp_create_src_task_scb() argument 767 cs46xx_dsp_create_mix_only_scb(struct snd_cs46xx * chip, char * scb_name, u16 mix_buffer_addr, u32 dest, struct dsp_scb_descriptor * parent_scb, int scb_child_type) cs46xx_dsp_create_mix_only_scb() argument 807 cs46xx_dsp_create_mix_to_ostream_scb(struct snd_cs46xx * chip, char * scb_name, u16 mix_buffer_addr, u16 writeback_spb, u32 dest, struct dsp_scb_descriptor * parent_scb, int scb_child_type) cs46xx_dsp_create_mix_to_ostream_scb() argument 861 cs46xx_dsp_create_vari_decimate_scb(struct snd_cs46xx * chip,char * scb_name, u16 vari_buffer_addr0, u16 vari_buffer_addr1, u32 dest, struct dsp_scb_descriptor * parent_scb, int scb_child_type) cs46xx_dsp_create_vari_decimate_scb() argument
|
/linux-4.1.27/net/ax25/ |
H A D | ax25_in.c | 190 ax25_address src, dest, *next_digi = NULL; ax25_rcv() local 210 if (ax25_addr_parse(skb->data, skb->len, &src, &dest, &dp, &type, &dama) == NULL) ax25_rcv() 225 if (ax25cmp(&dest, dev_addr) == 0 && dp.lastrepeat + 1 == dp.ndigi) ax25_rcv() 229 if (!mine && ax25_listen_mine(&dest, dev) && dp.lastrepeat + 1 == dp.ndigi) ax25_rcv() 236 ax25_send_to_raw(&dest, skb, skb->data[1]); ax25_rcv() 238 if (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) ax25_rcv() 264 sk = ax25_get_socket(&dest, &src, SOCK_DGRAM); ax25_rcv() 307 if ((ax25 = ax25_find_cb(&dest, &src, &reverse_dp, dev)) != NULL) { ax25_rcv() 332 ax25_return_dm(dev, &src, &dest, &dp); ax25_rcv() 340 sk = ax25_find_listener(&dest, 0, dev, SOCK_SEQPACKET); ax25_rcv() 349 ax25_return_dm(dev, &src, &dest, &dp); ax25_rcv() 370 ax25_return_dm(dev, &src, &dest, &dp); ax25_rcv() 377 ax25->source_addr = dest; ax25_rcv()
|
H A D | ax25_addr.c | 160 ax25_address *src, ax25_address *dest, ax25_digi *digi, int *flags, ax25_addr_parse() 180 if (dest != NULL) ax25_addr_parse() 181 memcpy(dest, buf + 0, AX25_ADDR_LEN); ax25_addr_parse() 219 const ax25_address *dest, const ax25_digi *d, int flag, int modulus) ax25_addr_build() 224 memcpy(buf, dest, AX25_ADDR_LEN); ax25_addr_build() 159 ax25_addr_parse(const unsigned char *buf, int len, ax25_address *src, ax25_address *dest, ax25_digi *digi, int *flags, int *dama) ax25_addr_parse() argument 218 ax25_addr_build(unsigned char *buf, const ax25_address *src, const ax25_address *dest, const ax25_digi *d, int flag, int modulus) ax25_addr_build() argument
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
H A D | gelic_udbg.c | 60 u8 dest[6]; member in struct:ethhdr 80 u32 dest; member in struct:iphdr 85 u16 dest; member in struct:udphdr 176 memset(&h_eth->dest, 0xff, 6); gelic_debug_init() 203 h_ip->dest = 0xffffffff; gelic_debug_init() 208 h_udp->dest = GELIC_DEBUG_PORT; gelic_debug_init()
|
/linux-4.1.27/net/rds/ |
H A D | tcp_connect.c | 79 struct sockaddr_in src, dest; rds_tcp_conn_connect() local 99 dest.sin_family = AF_INET; rds_tcp_conn_connect() 100 dest.sin_addr.s_addr = (__force u32)conn->c_faddr; rds_tcp_conn_connect() 101 dest.sin_port = (__force u16)htons(RDS_TCP_PORT); rds_tcp_conn_connect() 108 ret = sock->ops->connect(sock, (struct sockaddr *)&dest, sizeof(dest), rds_tcp_conn_connect()
|
/linux-4.1.27/arch/openrisc/include/asm/ |
H A D | elf.h | 47 extern void dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt); 48 #define ELF_CORE_COPY_REGS(dest, regs) dump_elf_thread(dest, regs);
|
/linux-4.1.27/arch/m68k/amiga/ |
H A D | pcmcia.c | 43 unsigned char id, *dest; pcmcia_copy_tuple() local 46 dest = tuple; pcmcia_copy_tuple() 56 *dest++ = gayle_attribute[pos+(cnt<<1)]; pcmcia_copy_tuple()
|
/linux-4.1.27/net/rose/ |
H A D | rose_loopback.c | 70 rose_address *dest; rose_loopback_timer() local 89 dest = (rose_address *)(skb->data + ROSE_CALL_REQ_DEST_ADDR_OFF); rose_loopback_timer() 102 if ((dev = rose_dev_get(dest)) != NULL) { rose_loopback_timer()
|
/linux-4.1.27/arch/x86/include/asm/uv/ |
H A D | uv_irq.h | 25 dest : 32; member in struct:uv_IO_APIC_route_entry
|
/linux-4.1.27/arch/nios2/boot/compressed/ |
H A D | head.S | 42 /* move code, r1: src, r2: dest, r3: last dest */ 47 stw r8, 0(r2) /* stort a word to dest [r2] */ 49 addi r2, r2, 4 /* inc the dest addr */
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | irq.h | 29 extern void set_irq_affinity_info (unsigned int irq, int dest, int redir);
|
/linux-4.1.27/arch/arm/mach-davinci/ |
H A D | pm.c | 34 static void davinci_sram_push(void *dest, void *src, unsigned int size) davinci_sram_push() argument 36 memcpy(dest, src, size); davinci_sram_push() 37 flush_icache_range((unsigned long)dest, (unsigned long)(dest + size)); davinci_sram_push()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | iosapic.c | 143 unsigned int dest; /* destination CPU physical ID */ member in struct:iosapic_intr_info 217 set_rte (unsigned int gsi, unsigned int irq, unsigned int dest, int mask) set_rte() argument 226 DBG(KERN_DEBUG"IOSAPIC: routing vector %d to 0x%x\n", vector, dest); set_rte() 240 set_irq_affinity_info(irq, (int)(dest & 0xffff), redir); set_rte() 249 /* dest contains both id and eid */ set_rte() 250 high32 = (dest << IOSAPIC_DEST_SHIFT); set_rte() 255 iosapic_intr_info[irq].dest = dest; set_rte() 333 int cpu, dest, rte_index; iosapic_set_affinity() local 347 dest = cpu_physical_id(cpu); iosapic_set_affinity() 352 set_irq_affinity_info(irq, dest, redir); iosapic_set_affinity() 354 /* dest contains both id and eid */ iosapic_set_affinity() 355 high32 = dest << IOSAPIC_DEST_SHIFT; iosapic_set_affinity() 368 iosapic_intr_info[irq].dest = dest; iosapic_set_affinity() 632 return iosapic_intr_info[irq].dest; get_target_cpu() 720 unsigned int dest; iosapic_register_intr() local 755 dest = get_target_cpu(gsi, irq); iosapic_register_intr() 771 set_rte(gsi, irq, dest, mask); iosapic_register_intr() 776 cpu_logical_id(dest), dest, irq_to_vector(irq)); iosapic_register_intr() 791 unsigned int dest; iosapic_unregister_intr() local 831 dest = iosapic_intr_info[irq].dest; iosapic_unregister_intr() 836 cpu_logical_id(dest), dest, irq_to_vector(irq)); iosapic_unregister_intr() 844 iosapic_intr_info[irq].dest = 0; iosapic_unregister_intr() 868 unsigned int dest = ((id << 8) | eid) & 0xffff; iosapic_register_platform_intr() local 908 cpu_logical_id(dest), dest, vector); iosapic_register_platform_intr() 910 set_rte(gsi, irq, dest, mask); iosapic_register_platform_intr() 921 unsigned int dest = cpu_physical_id(smp_processor_id()); iosapic_override_isa_irq() local 932 cpu_logical_id(dest), dest, vector); iosapic_override_isa_irq() 934 set_rte(gsi, irq, dest, 1); iosapic_override_isa_irq()
|
H A D | msi_ia64.c | 172 unsigned dest; msi_compose_msg() local 174 dest = cpu_physical_id(cpumask_first_and(&(irq_to_domain(irq)), msi_compose_msg() 182 MSI_ADDR_DEST_ID_CPU(dest); msi_compose_msg()
|
/linux-4.1.27/drivers/video/fbdev/i810/ |
H A D | i810_accel.c | 149 * @dest: address of first pixel to write to 162 int xdir, int src, int dest, int rop, source_copy_blit() 172 PUT_RING(dest); source_copy_blit() 184 * @dest: address of first pixel to write to 195 static inline void color_blit(int width, int height, int pitch, int dest, color_blit() argument 206 PUT_RING(dest); color_blit() 219 * @dest: address of first byte of pixel; 237 int dest, const u32 *src, int bg, mono_src_copy_imm_blit() 247 PUT_RING(dest); mono_src_copy_imm_blit() 301 u32 dx, dy, width, height, dest, rop = 0, color = 0; i810fb_fillrect() local 321 dest = info->fix.smem_start + (dy * info->fix.line_length) + dx; i810fb_fillrect() 322 color_blit(width, height, info->fix.line_length, dest, rop, color, i810fb_fillrect() 329 u32 sx, sy, dx, dy, pitch, width, height, src, dest, xdir; i810fb_copyarea() local 361 dest = info->fix.smem_start + (dy * info->fix.line_length) + dx; i810fb_copyarea() 363 source_copy_blit(width, height, pitch, xdir, src, dest, i810fb_copyarea() 161 source_copy_blit(int dwidth, int dheight, int dpitch, int xdir, int src, int dest, int rop, int blit_bpp, struct fb_info *info) source_copy_blit() argument 235 mono_src_copy_imm_blit(int dwidth, int dheight, int dpitch, int dsize, int blit_bpp, int rop, int dest, const u32 *src, int bg, int fg, struct fb_info *info) mono_src_copy_imm_blit() argument
|
/linux-4.1.27/sound/core/seq/ |
H A D | seq_clientmgr.c | 498 struct snd_seq_client *dest; get_event_dest_client() local 500 dest = snd_seq_client_use_ptr(event->dest.client); get_event_dest_client() 501 if (dest == NULL) get_event_dest_client() 503 if (! dest->accept_input) get_event_dest_client() 505 if ((dest->filter & SNDRV_SEQ_FILTER_USE_EVENT) && get_event_dest_client() 506 ! test_bit(event->type, dest->event_filter)) get_event_dest_client() 508 if (filter && !(dest->filter & filter)) get_event_dest_client() 511 return dest; /* ok - accessible */ get_event_dest_client() 513 snd_seq_client_unlock(dest); get_event_dest_client() 548 bounce_ev.dest.client = client->number; bounce_error_event() 549 bounce_ev.dest.port = event->source.port; bounce_error_event() 550 bounce_ev.data.quote.origin = event->dest; bounce_error_event() 601 struct snd_seq_client *dest = NULL; snd_seq_deliver_single_event() local 608 dest = get_event_dest_client(event, filter); snd_seq_deliver_single_event() 609 if (dest == NULL) snd_seq_deliver_single_event() 611 dest_port = snd_seq_port_use_ptr(dest, event->dest.port); snd_seq_deliver_single_event() 625 switch (dest->type) { snd_seq_deliver_single_event() 627 if (dest->data.user.fifo) snd_seq_deliver_single_event() 628 result = snd_seq_fifo_event_in(dest->data.user.fifo, event); snd_seq_deliver_single_event() 645 if (dest) snd_seq_deliver_single_event() 646 snd_seq_client_unlock(dest); snd_seq_deliver_single_event() 684 event->dest = subs->info.dest; deliver_to_subscribers() 729 event->dest.port = port->addr.port; port_broadcast_event() 744 event->dest.port = SNDRV_SEQ_ADDRESS_BROADCAST; /* restore */ port_broadcast_event() 756 int dest; broadcast_event() local 759 addr = event->dest; /* save */ broadcast_event() 761 for (dest = 0; dest < SNDRV_SEQ_MAX_CLIENTS; dest++) { broadcast_event() 763 if (dest == client->number) broadcast_event() 765 event->dest.client = dest; broadcast_event() 766 event->dest.port = addr.port; broadcast_event() 782 event->dest = addr; /* restore */ broadcast_event() 814 event->dest.client, event->dest.port); snd_seq_deliver_event() 819 event->dest.client == SNDRV_SEQ_ADDRESS_SUBSCRIBERS) snd_seq_deliver_event() 823 event->dest.client == SNDRV_SEQ_ADDRESS_BROADCAST) snd_seq_deliver_event() 825 else if (event->dest.client >= SNDRV_SEQ_MAX_CLIENTS) snd_seq_deliver_event() 827 else if (event->dest.port == SNDRV_SEQ_ADDRESS_BROADCAST) snd_seq_deliver_event() 928 event->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; snd_seq_client_enqueue_event() 933 event->dest.client = SNDRV_SEQ_ADDRESS_BROADCAST; snd_seq_client_enqueue_event() 937 if (event->dest.client == SNDRV_SEQ_ADDRESS_SUBSCRIBERS) { snd_seq_client_enqueue_event() 1396 client->number != subs->dest.client) { check_subscription_permission() 1413 if (client->number != subs->dest.client) { check_subscription_permission() 1432 event.data.connect.dest = info->dest; snd_seq_client_notify_subscription() 1453 if ((receiver = snd_seq_client_use_ptr(subs.dest.client)) == NULL) snd_seq_ioctl_subscribe_port() 1459 if ((dport = snd_seq_port_use_ptr(receiver, subs.dest.port)) == NULL) snd_seq_ioctl_subscribe_port() 1498 if ((receiver = snd_seq_client_use_ptr(subs.dest.client)) == NULL) snd_seq_ioctl_unsubscribe_port() 1504 if ((dport = snd_seq_port_use_ptr(receiver, subs.dest.port)) == NULL) snd_seq_ioctl_unsubscribe_port() 1999 p = snd_seq_port_get_subscription(&sport->c_src, &subs.dest); snd_seq_ioctl_get_subscription() 2063 subs.addr = s->info.dest; snd_seq_ioctl_query_subs() 2479 is_src ? s->info.dest.client : s->info.sender.client, snd_seq_info_dump_subscribers() 2480 is_src ? s->info.dest.port : s->info.sender.port); snd_seq_info_dump_subscribers()
|
/linux-4.1.27/arch/x86/platform/uv/ |
H A D | uv_irq.c | 138 unsigned int dest; arch_enable_uv_irq() local 147 err = apic->cpu_mask_to_apicid_and(eligible_cpu, eligible_cpu, &dest); arch_enable_uv_irq() 167 entry->dest = dest; arch_enable_uv_irq() 202 unsigned int dest; uv_set_irq_affinity() local 207 if (apic_set_affinity(data, mask, &dest)) uv_set_irq_affinity() 219 entry->dest = dest; uv_set_irq_affinity()
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | sclp.h | 59 int sclp_sdias_copy(void *dest, int blk_num, int nr_blks); 69 int memcpy_hsa(void *dest, unsigned long src, size_t count, int mode);
|
H A D | os_info.h | 41 int copy_from_oldmem(void *dest, void *src, size_t count);
|
/linux-4.1.27/arch/powerpc/net/ |
H A D | bpf_jit.h | 228 #define PPC_JMP(dest) EMIT(PPC_INST_BRANCH | \ 229 (((dest) - (ctx->idx * 4)) & 0x03fffffc)) 231 #define PPC_BCC_SHORT(cond, dest) EMIT(PPC_INST_BRANCH_COND | \ 233 (((dest) - (ctx->idx * 4)) & \ 281 #define PPC_BCC(cond, dest) do { \ 282 if (is_nearbranch((dest) - (ctx->idx * 4))) { \ 283 PPC_BCC_SHORT(cond, dest); \ 288 PPC_JMP(dest); \
|
/linux-4.1.27/net/802/ |
H A D | p8022.c | 29 unsigned char *dest) p8022_request() 31 llc_build_and_send_ui_pkt(dl->sap, skb, dest, dl->sap->laddr.lsap); p8022_request() 28 p8022_request(struct datalink_proto *dl, struct sk_buff *skb, unsigned char *dest) p8022_request() argument
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | visor.c | 559 #define COPY_PORT(dest, src) \ treo_attach() 564 dest->read_urbs[i] = src->read_urbs[i]; \ treo_attach() 565 dest->read_urbs[i]->context = dest; \ treo_attach() 566 dest->bulk_in_buffers[i] = src->bulk_in_buffers[i]; \ treo_attach() 568 dest->read_urb = src->read_urb; \ treo_attach() 569 dest->bulk_in_endpointAddress = src->bulk_in_endpointAddress;\ treo_attach() 570 dest->bulk_in_buffer = src->bulk_in_buffer; \ treo_attach() 571 dest->bulk_in_size = src->bulk_in_size; \ treo_attach() 572 dest->interrupt_in_urb = src->interrupt_in_urb; \ treo_attach() 573 dest->interrupt_in_urb->context = dest; \ treo_attach() 574 dest->interrupt_in_endpointAddress = \ treo_attach() 576 dest->interrupt_in_buffer = src->interrupt_in_buffer; \ treo_attach()
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
H A D | iohelper.h | 98 #define ASSIGN_FUNC(typ, name, dest) do { \ 99 dest.read_reg = &Read##name##_##typ; \ 100 dest.write_reg = &Write##name##_##typ; \ 101 dest.read_fifo = &ReadFiFo##name##_##typ; \ 102 dest.write_fifo = &WriteFiFo##name##_##typ; \
|
/linux-4.1.27/crypto/ |
H A D | xor.c | 31 xor_blocks(unsigned int src_count, unsigned int bytes, void *dest, void **srcs) xor_blocks() argument 37 active_template->do_2(bytes, dest, p1); xor_blocks() 43 active_template->do_3(bytes, dest, p1, p2); xor_blocks() 49 active_template->do_4(bytes, dest, p1, p2, p3); xor_blocks() 54 active_template->do_5(bytes, dest, p1, p2, p3, p4); xor_blocks()
|
/linux-4.1.27/ipc/ |
H A D | msgutil.c | 153 int store_msg(void __user *dest, struct msg_msg *msg, size_t len) store_msg() argument 159 if (copy_to_user(dest, msg + 1, alen)) store_msg() 164 dest = (char __user *)dest + alen; store_msg() 166 if (copy_to_user(dest, seg + 1, alen)) store_msg()
|
/linux-4.1.27/arch/sh/kernel/cpu/sh5/ |
H A D | unwind.c | 82 u8 src, dest, disp; lookup_prev_stack_frame() local 90 dest = (op >> 4) & 0x3f; lookup_prev_stack_frame() 112 if (src == 15 && disp == 63 && dest == 14) lookup_prev_stack_frame() 118 if (src != 15 || dest != 15) lookup_prev_stack_frame() 130 switch (dest) { lookup_prev_stack_frame() 151 if (dest >= 63) { lookup_prev_stack_frame() 152 printk(KERN_NOTICE "%s: Invalid dest reg %d " lookup_prev_stack_frame() 155 dest, op); lookup_prev_stack_frame() 161 regcache[dest] = lookup_prev_stack_frame() 167 if (src != 15 || dest != 15) lookup_prev_stack_frame()
|
/linux-4.1.27/sound/usb/6fire/ |
H A D | pcm.c | 205 u32 *dest = (u32 *) (alsa_rt->dma_area + sub->dma_off usb6fire_pcm_capture() local 229 memcpy(dest, src, bytes_per_frame); usb6fire_pcm_capture() 230 dest += alsa_rt->channels; usb6fire_pcm_capture() 234 if (dest == dest_end) { usb6fire_pcm_capture() 236 dest = (u32 *) alsa_rt->dma_area; usb6fire_pcm_capture() 255 u32 *dest; usb6fire_pcm_playback() local 259 dest = (u32 *) (urb->buffer - 1); usb6fire_pcm_playback() 261 dest = (u32 *) (urb->buffer); usb6fire_pcm_playback() 275 dest++; /* skip leading 4 bytes of every frame */ usb6fire_pcm_playback() 277 memcpy(dest, src, bytes_per_frame); usb6fire_pcm_playback() 279 dest += rt->out_n_analog; usb6fire_pcm_playback() 302 u8 *dest; usb6fire_pcm_in_urb_handler() local 358 dest = out_urb->buffer; usb6fire_pcm_in_urb_handler() 363 *(dest++) = 0xaa; usb6fire_pcm_in_urb_handler() 364 *(dest++) = 0xaa; usb6fire_pcm_in_urb_handler() 365 *(dest++) = frame_count; usb6fire_pcm_in_urb_handler() 366 *(dest++) = 0x00; usb6fire_pcm_in_urb_handler() 371 dest += 3; /* skip sample data */ usb6fire_pcm_in_urb_handler() 372 *(dest++) = 0x40; usb6fire_pcm_in_urb_handler()
|
/linux-4.1.27/drivers/video/console/ |
H A D | mdacon.c | 423 u16 *dest = MDA_ADDR(x, y); mdacon_putcs() local 426 scr_writew(mda_convert_attr(scr_readw(s++)), dest++); mdacon_putcs() 433 u16 *dest = MDA_ADDR(x, y); mdacon_clear() local 440 scr_memsetw(dest, eattr, height*width*2); mdacon_clear() 442 for (; height > 0; height--, dest+=mda_num_columns) mdacon_clear() 443 scr_memsetw(dest, eattr, width*2); mdacon_clear() 450 u16 *src, *dest; mdacon_bmove() local 460 dest = MDA_ADDR(dx, dy); mdacon_bmove() 463 scr_memmovew(dest, src, width*2); mdacon_bmove() 465 dest += mda_num_columns; mdacon_bmove() 469 dest = MDA_ADDR(dx, dy+height-1); mdacon_bmove() 472 scr_memmovew(dest, src, width*2); mdacon_bmove() 474 dest -= mda_num_columns; mdacon_bmove()
|
/linux-4.1.27/arch/s390/crypto/ |
H A D | crypt_s390.h | 158 * @dest: address of destination memory area 168 u8 *dest, const u8 *src, long src_len) crypt_s390_km() 174 register u8 *__dest asm("4") = dest; crypt_s390_km() 194 * @dest: address of destination memory area 204 u8 *dest, const u8 *src, long src_len) crypt_s390_kmc() 210 register u8 *__dest asm("4") = dest; crypt_s390_kmc() 334 * @dest: address of destination memory area 344 static inline int crypt_s390_kmctr(long func, void *param, u8 *dest, crypt_s390_kmctr() argument 351 register u8 *__dest asm("4") = dest; crypt_s390_kmctr() 373 * @dest: address of destination memory area 382 * bytes stored in dest buffer for generate function 385 u8 *dest, long dest_len, crypt_s390_ppno() 390 register u8 *__dest asm("2") = dest; /* buf for recv random bytes */ crypt_s390_ppno() 167 crypt_s390_km(long func, void *param, u8 *dest, const u8 *src, long src_len) crypt_s390_km() argument 203 crypt_s390_kmc(long func, void *param, u8 *dest, const u8 *src, long src_len) crypt_s390_kmc() argument 384 crypt_s390_ppno(long func, void *param, u8 *dest, long dest_len, const u8 *seed, long seed_len) crypt_s390_ppno() argument
|
/linux-4.1.27/net/sctp/ |
H A D | bind_addr.c | 55 /* Copy 'src' to 'dest' taking 'scope' into account. Omit addresses 58 int sctp_bind_addr_copy(struct net *net, struct sctp_bind_addr *dest, sctp_bind_addr_copy() argument 67 dest->port = src->port; sctp_bind_addr_copy() 71 error = sctp_copy_one_addr(net, dest, &addr->a, scope, sctp_bind_addr_copy() 81 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) { sctp_bind_addr_copy() 83 error = sctp_copy_one_addr(net, dest, &addr->a, sctp_bind_addr_copy() 93 sctp_bind_addr_clean(dest); sctp_bind_addr_copy() 103 int sctp_bind_addr_dup(struct sctp_bind_addr *dest, sctp_bind_addr_dup() argument 111 dest->port = src->port; sctp_bind_addr_dup() 114 error = sctp_add_bind_addr(dest, &addr->a, 1, gfp); sctp_bind_addr_dup() 437 static int sctp_copy_one_addr(struct net *net, struct sctp_bind_addr *dest, sctp_copy_one_addr() argument 445 error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags); sctp_copy_one_addr() 456 error = sctp_add_bind_addr(dest, addr, SCTP_ADDR_SRC, sctp_copy_one_addr()
|
/linux-4.1.27/arch/ia64/lib/ |
H A D | memcpy_mck.S | 9 * for memcpy: return dest 83 // check dest alignment 87 mov saved_in0=in0 // save dest pointer 93 cmp.ne p13,p0=0,r28 // check dest alignment 100 add dst1=1,in0 // dest odd index 107 // both dest and src are aligned on 8-byte boundary 123 add dst_pre_mem=0,in0 // prefetch dest pointer 139 add dst1=8,dst0 // 2nd dest pointer 179 add dst0=dst0,r21 // setting up dest pointer 273 // dest is on 8-byte boundary, src is not. We need to do 304 add dst_pre_mem=0,dst0 // prefetch dest pointer 315 shladd dst1=r22,3,dst0 // 2nd dest pointer 399 mov dst0=dst1 // dest pointer 410 add dst1=1,dst0 // second dest pointer 453 /* Align dest to nearest 8-byte boundary. We know we have at 455 * Actual number of byte to crawl depend on the dest alignment. 460 * dst0 - dest even index 461 * dst1 - dest odd index
|
H A D | memset.S | 6 Return: dest 9 in0: dest 23 #define dest in0 define 60 lfetch.nt1 [dest] // 65 mov ret0 = dest // return value 70 and ptr2 = -(MIN1+1), dest // aligned address 71 and tmp = MIN1, dest // prepare to check for correct alignment 72 tbit.nz p_y, p_n = dest, 0 // Do we have an odd address? (M_B_U) 74 mov ptr1 = dest
|
/linux-4.1.27/drivers/gpu/host1x/ |
H A D | intr.c | 70 struct list_head *dest; remove_completed_waiters() local 77 dest = completed + waiter->action; list_for_each_entry_safe() 81 !list_empty(dest)) { list_for_each_entry_safe() 82 prev = list_entry(dest->prev, list_for_each_entry_safe() 86 dest = NULL; list_for_each_entry_safe() 91 if (atomic_inc_return(&waiter->state) == WLS_HANDLED || !dest) { list_for_each_entry_safe() 95 list_move_tail(&waiter->list, dest); list_for_each_entry_safe()
|
/linux-4.1.27/drivers/media/common/b2c2/ |
H A D | flexcop-sram.c | 30 int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, flexcop_sram_set_dest() argument 40 deb_sram("sram dest: %x target: %x\n", dest, target); flexcop_sram_set_dest() 42 if (dest & FC_SRAM_DEST_NET) flexcop_sram_set_dest() 44 if (dest & FC_SRAM_DEST_CAI) flexcop_sram_set_dest() 46 if (dest & FC_SRAM_DEST_CAO) flexcop_sram_set_dest() 48 if (dest & FC_SRAM_DEST_MEDIA) flexcop_sram_set_dest()
|
/linux-4.1.27/arch/openrisc/kernel/ |
H A D | process.c | 245 void dump_elf_thread(elf_greg_t *dest, struct pt_regs* regs) dump_elf_thread() argument 247 dest[0] = 0; /* r0 */ dump_elf_thread() 248 memcpy(dest+1, regs->gpr+1, 31*sizeof(unsigned long)); dump_elf_thread() 249 dest[32] = regs->pc; dump_elf_thread() 250 dest[33] = regs->sr; dump_elf_thread() 251 dest[34] = 0; dump_elf_thread() 252 dest[35] = 0; dump_elf_thread()
|
/linux-4.1.27/scripts/ |
H A D | sign-file | 7 "Usage: scripts/sign-file [-v] <hash algo> <key> <x509> <module> [<dest>]\n" . 8 " scripts/sign-file [-v] -s <raw sig> <hash algo> <x509> <module> [<dest>]\n"; 30 my ($dest, $keep_orig); 32 $dest = $ARGV[0]; 35 $dest = $module . "~"; 407 open(FD, ">$dest") || die $dest; 417 close FD || die $dest; 420 rename($dest, $module) || die $module;
|
/linux-4.1.27/drivers/misc/cxl/ |
H A D | pci.c | 32 #define CXL_READ_VSEC_LENGTH(dev, vsec, dest) \ 34 pci_read_config_word(dev, vsec + 0x6, dest); \ 35 *dest >>= 4; \ 37 #define CXL_READ_VSEC_NAFUS(dev, vsec, dest) \ 38 pci_read_config_byte(dev, vsec + 0x8, dest) 40 #define CXL_READ_VSEC_STATUS(dev, vsec, dest) \ 41 pci_read_config_byte(dev, vsec + 0x9, dest) 53 #define CXL_READ_VSEC_MODE_CONTROL(dev, vsec, dest) \ 54 pci_read_config_byte(dev, vsec + 0xa, dest) 63 #define CXL_READ_VSEC_PSL_REVISION(dev, vsec, dest) \ 64 pci_read_config_word(dev, vsec + 0xc, dest) 65 #define CXL_READ_VSEC_CAIA_MINOR(dev, vsec, dest) \ 66 pci_read_config_byte(dev, vsec + 0xe, dest) 67 #define CXL_READ_VSEC_CAIA_MAJOR(dev, vsec, dest) \ 68 pci_read_config_byte(dev, vsec + 0xf, dest) 69 #define CXL_READ_VSEC_BASE_IMAGE(dev, vsec, dest) \ 70 pci_read_config_word(dev, vsec + 0x10, dest) 72 #define CXL_READ_VSEC_IMAGE_STATE(dev, vsec, dest) \ 73 pci_read_config_byte(dev, vsec + 0x13, dest) 80 #define CXL_READ_VSEC_AFU_DESC_OFF(dev, vsec, dest) \ 81 pci_read_config_dword(dev, vsec + 0x20, dest) 82 #define CXL_READ_VSEC_AFU_DESC_SIZE(dev, vsec, dest) \ 83 pci_read_config_dword(dev, vsec + 0x24, dest) 84 #define CXL_READ_VSEC_PS_OFF(dev, vsec, dest) \ 85 pci_read_config_dword(dev, vsec + 0x28, dest) 86 #define CXL_READ_VSEC_PS_SIZE(dev, vsec, dest) \ 87 pci_read_config_dword(dev, vsec + 0x2c, dest)
|
/linux-4.1.27/tools/perf/util/ |
H A D | path.c | 29 size_t __weak strlcpy(char *dest, const char *src, size_t size) strlcpy() argument 36 memcpy(dest, src, len); strlcpy() 37 dest[len] = '\0'; strlcpy()
|
H A D | callchain.h | 180 static inline void callchain_cursor_snapshot(struct callchain_cursor *dest, callchain_cursor_snapshot() argument 183 *dest = *src; callchain_cursor_snapshot() 185 dest->first = src->curr; callchain_cursor_snapshot() 186 dest->nr -= src->pos; callchain_cursor_snapshot()
|
/linux-4.1.27/arch/ia64/sn/kernel/sn2/ |
H A D | sn_hwperf.c | 236 struct sn_hwperf_object_info *dest; sn_hwperf_get_nearest_node_objdata() local 289 dest = sn_hwperf_findobj_id(objbuf, nobj, ptdata[j].conn_id); sn_hwperf_get_nearest_node_objdata() 290 if (dest && SN_HWPERF_IS_ROUTER(dest)) sn_hwperf_get_nearest_node_objdata() 291 router = dest; sn_hwperf_get_nearest_node_objdata() 292 if (!dest || SN_HWPERF_FOREIGN(dest) || sn_hwperf_get_nearest_node_objdata() 293 !SN_HWPERF_IS_NODE(dest) || SN_HWPERF_IS_IONODE(dest)) { sn_hwperf_get_nearest_node_objdata() 296 c = sn_hwperf_obj_to_cnode(dest); sn_hwperf_get_nearest_node_objdata() 321 dest = sn_hwperf_findobj_id(objbuf, nobj, sn_hwperf_get_nearest_node_objdata() 323 if (!dest || dest->id == node || sn_hwperf_get_nearest_node_objdata() 324 SN_HWPERF_FOREIGN(dest) || sn_hwperf_get_nearest_node_objdata() 325 !SN_HWPERF_IS_NODE(dest) || sn_hwperf_get_nearest_node_objdata() 326 SN_HWPERF_IS_IONODE(dest)) { sn_hwperf_get_nearest_node_objdata() 329 c = sn_hwperf_obj_to_cnode(dest); sn_hwperf_get_nearest_node_objdata()
|
/linux-4.1.27/drivers/net/arcnet/ |
H A D | arc-rawmode.c | 154 * FIXME: fill in the last byte of the dest ipaddr here to better build_header() 157 pkt->hard.dest = 0; build_header() 161 pkt->hard.dest = daddr; build_header() 200 lp->lastload_dest = hard->dest; prepare_tx()
|
H A D | rfc1051.c | 100 if (pkt->hard.dest == 0) type_trans() 104 if (pkt->hard.dest != dev->dev_addr[0]) type_trans() 205 * FIXME: fill in the last byte of the dest ipaddr here to better build_header() 208 pkt->hard.dest = 0; build_header() 212 pkt->hard.dest = daddr; build_header() 248 lp->lastload_dest = hard->dest; prepare_tx()
|
/linux-4.1.27/drivers/media/pci/ttpci/ |
H A D | av7110_av.h | 10 extern int av7110_pes_play(void *dest, struct dvb_ringbuffer *buf, int dlen);
|
/linux-4.1.27/include/uapi/linux/ |
H A D | udp.h | 24 __be16 dest; member in struct:udphdr
|
/linux-4.1.27/arch/nios2/kernel/ |
H A D | head.S | 134 loop_move: /* r1: src, r2: dest, r3: last dest */ 136 stw r8, 0(r2) /* store a word to dest [r2] */ 139 addi r2, r2, 4 /* inc the dest addr */
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | thread_info.h | 26 #define CURRENT_THREAD_INFO(dest, sp) stringify_in_c(clrrdi dest, sp, THREAD_SHIFT) 28 #define CURRENT_THREAD_INFO(dest, sp) stringify_in_c(rlwinm dest, sp, 0, 0, 31-THREAD_SHIFT)
|
/linux-4.1.27/arch/arc/include/asm/ |
H A D | string.h | 33 extern char *strcpy(char *dest, const char *src);
|
/linux-4.1.27/kernel/trace/ |
H A D | trace_probe.c | 86 void FETCH_FUNC_NAME(reg, type)(struct pt_regs *regs, void *offset, void *dest) \ 88 *(type *)dest = (type)regs_get_register(regs, \ 99 void *dummy, void *dest) \ DEFINE_BASIC_FETCH_FUNCS() 101 *(type *)dest = (type)regs_return_value(regs); \ DEFINE_BASIC_FETCH_FUNCS() 119 void *data, void *dest) \ 126 dprm->fetch(regs, (void *)addr, dest); \ 128 *(type *)dest = 0; \ 135 void *data, void *dest) DEFINE_BASIC_FETCH_FUNCS() 143 dprm->fetch_size(regs, (void *)addr, dest); DEFINE_BASIC_FETCH_FUNCS() 145 *(string_size *)dest = 0; DEFINE_BASIC_FETCH_FUNCS() 177 void *data, void *dest) \ 186 *(type *)dest = buf; \ 265 static void fetch_kernel_stack_address(struct pt_regs *regs, void *dummy, void *dest) fetch_kernel_stack_address() argument 267 *(unsigned long *)dest = kernel_stack_pointer(regs); fetch_kernel_stack_address() 271 static void fetch_user_stack_address(struct pt_regs *regs, void *dummy, void *dest) fetch_user_stack_address() argument 273 *(unsigned long *)dest = user_stack_pointer(regs); fetch_user_stack_address()
|
/linux-4.1.27/include/linux/ceph/ |
H A D | osdmap.h | 132 static inline void ceph_oid_copy(struct ceph_object_id *dest, ceph_oid_copy() argument 135 BUG_ON(src->name_len > sizeof(dest->name)); ceph_oid_copy() 136 memcpy(dest->name, src->name, src->name_len); ceph_oid_copy() 137 dest->name_len = src->name_len; ceph_oid_copy()
|
/linux-4.1.27/arch/x86/boot/tools/ |
H A D | build.c | 337 FILE *file, *dest; main() local 348 dest = fopen(argv[4], "w"); main() 349 if (!dest) main() 406 if (fwrite(buf, 1, i, dest) != i) main() 411 if (fwrite(kernel, 1, sz, dest) != sz) main() 417 if (fwrite("\0", 1, 1, dest) != 1) main() 424 if (fwrite(buf, 1, 4, dest) != 4) main() 428 if (fclose(dest)) main()
|
/linux-4.1.27/arch/mips/include/asm/netlogic/xlr/ |
H A D | msidef.h | 81 #define MSI_ADDR_DEST_ID(dest) (((dest) << MSI_ADDR_DEST_ID_SHIFT) & \
|
/linux-4.1.27/net/ipv4/netfilter/ |
H A D | ipt_SYNPROXY.c | 93 nth->source = th->dest; synproxy_send_client_synack() 94 nth->dest = th->source; synproxy_send_client_synack() 135 nth->dest = th->dest; synproxy_send_server_syn() 179 nth->source = th->dest; synproxy_send_server_ack() 180 nth->dest = th->source; synproxy_send_server_ack() 218 nth->dest = th->dest; synproxy_send_client_ack()
|
/linux-4.1.27/security/ |
H A D | lsm_audit.c | 68 ad->u.net->dport = th->dest; ipv4_skb_to_auditdata() 77 ad->u.net->dport = uh->dest; ipv4_skb_to_auditdata() 94 ad->u.net->dport = sh->dest; ipv4_skb_to_auditdata() 144 ad->u.net->dport = th->dest; ipv6_skb_to_auditdata() 155 ad->u.net->dport = uh->dest; ipv6_skb_to_auditdata() 176 ad->u.net->dport = sh->dest; ipv6_skb_to_auditdata() 350 "daddr", "dest"); dump_common_audit_data() 358 "daddr", "dest"); dump_common_audit_data()
|
/linux-4.1.27/sound/soc/intel/common/ |
H A D | sst-dsp.c | 58 static inline void _sst_memcpy_toio_32(volatile u32 __iomem *dest, _sst_memcpy_toio_32() argument 64 writel(src[i], dest + i); _sst_memcpy_toio_32() 67 static inline void _sst_memcpy_fromio_32(u32 *dest, _sst_memcpy_fromio_32() argument 73 dest[i] = readl(src + i); _sst_memcpy_fromio_32() 77 void __iomem *dest, void *src, size_t bytes) sst_memcpy_toio_32() 79 _sst_memcpy_toio_32(dest, src, bytes); sst_memcpy_toio_32() 83 void sst_memcpy_fromio_32(struct sst_dsp *sst, void *dest, sst_memcpy_fromio_32() argument 86 _sst_memcpy_fromio_32(dest, src, bytes); sst_memcpy_fromio_32() 76 sst_memcpy_toio_32(struct sst_dsp *sst, void __iomem *dest, void *src, size_t bytes) sst_memcpy_toio_32() argument
|
/linux-4.1.27/include/linux/mfd/ |
H A D | smsc.h | 43 unsigned int *dest) smsc_read() 47 return regmap_read(smsc->regmap, reg, dest); smsc_read() 42 smsc_read(struct device *child, unsigned int reg, unsigned int *dest) smsc_read() argument
|