rem 1455 arch/arm/nwfpe/softfloat.c bits64 rem, term; rem 1485 arch/arm/nwfpe/softfloat.c rem = ( ( (bits64) aSig )<<32 ) - term; rem 1486 arch/arm/nwfpe/softfloat.c while ( (sbits64) rem < 0 ) { rem 1488 arch/arm/nwfpe/softfloat.c rem += ( ( (bits64) zSig )<<1 ) | 1; rem 1490 arch/arm/nwfpe/softfloat.c zSig |= ( rem != 0 ); rem 530 arch/arm/vfp/vfpdouble.c u64 rem, incr = 0; rem 536 arch/arm/vfp/vfpdouble.c rem = vdm.significand << (65 - shift); rem 548 arch/arm/vfp/vfpdouble.c if ((rem + incr) < rem) { rem 558 arch/arm/vfp/vfpdouble.c } else if (rem) rem 612 arch/arm/vfp/vfpdouble.c u64 rem, incr = 0; rem 615 arch/arm/vfp/vfpdouble.c rem = vdm.significand << (65 - shift); rem 627 arch/arm/vfp/vfpdouble.c if ((rem + incr) < rem && d < 0xffffffff) rem 632 arch/arm/vfp/vfpdouble.c } else if (rem) rem 378 arch/arm/vfp/vfpsingle.c s64 rem; rem 381 arch/arm/vfp/vfpsingle.c rem = ((u64)vsm.significand << 32) - term; rem 383 arch/arm/vfp/vfpsingle.c pr_debug("VFP: term=%016llx rem=%016llx\n", term, rem); rem 385 arch/arm/vfp/vfpsingle.c while (rem < 0) { rem 387 arch/arm/vfp/vfpsingle.c rem += ((u64)vsd.significand << 1) | 1; rem 389 arch/arm/vfp/vfpsingle.c vsd.significand |= rem != 0; rem 572 arch/arm/vfp/vfpsingle.c u32 rem, incr = 0; rem 578 arch/arm/vfp/vfpsingle.c rem = vsm.significand << (33 - shift); rem 590 arch/arm/vfp/vfpsingle.c if ((rem + incr) < rem) { rem 600 arch/arm/vfp/vfpsingle.c } else if (rem) rem 657 arch/arm/vfp/vfpsingle.c u32 rem, incr = 0; rem 661 arch/arm/vfp/vfpsingle.c rem = vsm.significand << (33 - shift); rem 673 arch/arm/vfp/vfpsingle.c if ((rem + incr) < rem && d < 0xffffffff) rem 678 arch/arm/vfp/vfpsingle.c } else if (rem) rem 568 arch/arm64/crypto/ghash-ce-glue.c int rem = walk.total - blocks * AES_BLOCK_SIZE; rem 578 arch/arm64/crypto/ghash-ce-glue.c if (rem < (2 * AES_BLOCK_SIZE)) { rem 581 arch/arm64/crypto/ghash-ce-glue.c if (rem > AES_BLOCK_SIZE) { rem 588 arch/arm64/crypto/ghash-ce-glue.c if (rem > AES_BLOCK_SIZE) rem 558 arch/m68k/mac/misc.c int days, rem, y, wday, yday; rem 561 arch/m68k/mac/misc.c days = div_u64_rem(time, SECS_PER_DAY, &rem); rem 562 arch/m68k/mac/misc.c rem += offset; rem 563 arch/m68k/mac/misc.c while (rem < 0) { rem 564 arch/m68k/mac/misc.c rem += SECS_PER_DAY; rem 567 arch/m68k/mac/misc.c while (rem >= SECS_PER_DAY) { rem 568 arch/m68k/mac/misc.c rem -= SECS_PER_DAY; rem 571 arch/m68k/mac/misc.c *hourp = rem / SECS_PER_HOUR; rem 572 arch/m68k/mac/misc.c rem %= SECS_PER_HOUR; rem 573 arch/m68k/mac/misc.c *minp = rem / SECS_PER_MINUTE; rem 574 arch/m68k/mac/misc.c *secp = rem % SECS_PER_MINUTE; rem 370 arch/m68k/math-emu/fp_arith.c unsigned long quot, rem; rem 421 arch/m68k/math-emu/fp_arith.c fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); rem 423 arch/m68k/math-emu/fp_arith.c dest->mant.m32[1] = (quot & 1) | rem; /* only for rounding */ rem 425 arch/m68k/math-emu/fp_arith.c fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); rem 427 arch/m68k/math-emu/fp_arith.c dest->mant.m32[1] = rem; /* only for rounding */ rem 130 arch/m68k/math-emu/multi_arith.h #define fp_div64(quot, rem, srch, srcl, div) \ rem 131 arch/m68k/math-emu/multi_arith.h asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \ rem 186 arch/m68k/math-emu/multi_arith.h unsigned long fix, rem, first, dummy; rem 215 arch/m68k/math-emu/multi_arith.h fp_div64(first, rem, 0, src->mant.m32[1], div->mant.m32[0]); rem 220 arch/m68k/math-emu/multi_arith.h fp_div64(first, rem, src->mant.m32[0], src->mant.m32[1], div->mant.m32[0]); rem 226 arch/m68k/math-emu/multi_arith.h fp_add64(tmp.m32[0], tmp.m32[1], 0, rem); rem 87 arch/mips/include/asm/octeon/cvmx-dbg-defs.h uint64_t rem:6; rem 95 arch/mips/include/asm/octeon/cvmx-dbg-defs.h uint64_t rem:6; rem 93 arch/mips/kernel/binfmt_elfn32.c u32 rem; rem 94 arch/mips/kernel/binfmt_elfn32.c value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); rem 95 arch/mips/kernel/binfmt_elfn32.c value->tv_usec = rem / NSEC_PER_USEC; rem 98 arch/mips/kernel/binfmt_elfo32.c u32 rem; rem 99 arch/mips/kernel/binfmt_elfo32.c value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); rem 100 arch/mips/kernel/binfmt_elfo32.c value->tv_usec = rem / NSEC_PER_USEC; rem 637 arch/powerpc/platforms/ps3/device-init.c unsigned long rem; rem 648 arch/powerpc/platforms/ps3/device-init.c rem = msleep_interruptible(100); rem 649 arch/powerpc/platforms/ps3/device-init.c if (rem) rem 62 arch/powerpc/sysdev/fsl_85xx_l2ctlr.c unsigned int rem; rem 83 arch/powerpc/sysdev/fsl_85xx_l2ctlr.c rem = l2cache_size % sram_params.sram_size; rem 85 arch/powerpc/sysdev/fsl_85xx_l2ctlr.c if (rem || (ways & (ways - 1))) { rem 124 arch/s390/kernel/time.c unsigned long long high, low, rem, sec, nsec; rem 131 arch/s390/kernel/time.c rem = do_div(sec, 1000000); rem 132 arch/s390/kernel/time.c nsec = (((low >> 32) + (rem << 32)) * 1000) >> 32; rem 13 arch/sh/lib/div64-generic.c uint32_t rem; rem 16 arch/sh/lib/div64-generic.c rem = *xp - q * y; rem 19 arch/sh/lib/div64-generic.c return rem; rem 650 arch/sparc/kernel/smp_64.c int this_cpu, tot_cpus, prev_sent, i, rem; rem 706 arch/sparc/kernel/smp_64.c rem = 0; rem 718 arch/sparc/kernel/smp_64.c cpu_list[rem++] = cpu; rem 723 arch/sparc/kernel/smp_64.c if (rem == 0) rem 727 arch/sparc/kernel/smp_64.c cnt = rem; rem 1220 arch/x86/kernel/tsc.c u64 tmp, res, rem; rem 1222 arch/x86/kernel/tsc.c rem = do_div(art, art_to_tsc_denominator); rem 1225 arch/x86/kernel/tsc.c tmp = rem * art_to_tsc_numerator; rem 1258 arch/x86/kernel/tsc.c u64 tmp, res, rem; rem 1260 arch/x86/kernel/tsc.c rem = do_div(art_ns, USEC_PER_SEC); rem 1263 arch/x86/kernel/tsc.c tmp = rem * tsc_khz; rem 71 arch/x86/lib/usercopy_64.c unsigned long rem = __memcpy_mcsafe(to, from, 1); rem 73 arch/x86/lib/usercopy_64.c if (rem) rem 224 arch/xtensa/platforms/iss/network.c char *dev_name = NULL, *mac_str = NULL, *rem = NULL; rem 234 arch/xtensa/platforms/iss/network.c rem = split_if_spec(init + 1, &mac_str, &dev_name); rem 235 arch/xtensa/platforms/iss/network.c if (rem != NULL) { rem 237 arch/xtensa/platforms/iss/network.c dev->name, rem); rem 488 block/partition-generic.c u32 rem; rem 490 block/partition-generic.c div_u64_rem(from, zone_sectors, &rem); rem 491 block/partition-generic.c if (rem) rem 494 block/partition-generic.c div_u64_rem(size, zone_sectors, &rem); rem 495 block/partition-generic.c if (rem) rem 117 crypto/tcrypt.c int k, rem; rem 120 crypto/tcrypt.c rem = PAGE_SIZE; rem 123 crypto/tcrypt.c rem = buflen % PAGE_SIZE; rem 130 crypto/tcrypt.c if (rem) rem 135 crypto/tcrypt.c if (rem) rem 136 crypto/tcrypt.c sg_set_buf(&sg[k + 1], xbuf[k], rem); rem 501 drivers/ata/libata-transport.c u32 rem; rem 503 drivers/ata/libata-transport.c seconds = div_u64_rem(ent->timestamp, HZ, &rem); rem 506 drivers/ata/libata-transport.c rem * NSEC_PER_SEC / HZ); rem 11 drivers/block/drbd/drbd_nla.c int rem; rem 21 drivers/block/drbd/drbd_nla.c nla_for_each_attr(nla, head, len, rem) { rem 1941 drivers/block/nbd.c int rem, fd; rem 1944 drivers/block/nbd.c rem) { rem 2124 drivers/block/nbd.c int rem, fd; rem 2127 drivers/block/nbd.c rem) { rem 89 drivers/char/agp/isoch.c u32 step, rem, rem_isoch, rem_async; rem 203 drivers/char/agp/isoch.c rem = target.n - tot_n; rem 224 drivers/char/agp/isoch.c master[ndevs-1].n += rem; rem 294 drivers/char/agp/isoch.c u32 trq, mrq, rem; rem 302 drivers/char/agp/isoch.c rem = mrq + (trq % ndevs); rem 309 drivers/char/agp/isoch.c mcmd |= ((cdev == ndevs - 1) ? rem : mrq) << 24; rem 221 drivers/clk/at91/clk-audio-pll.c unsigned long long tmp, rem; rem 227 drivers/clk/at91/clk-audio-pll.c rem = do_div(tmp, parent_rate); rem 233 drivers/clk/at91/clk-audio-pll.c tmp = rem * AUDIO_PLL_DIV_FRAC; rem 927 drivers/clk/bcm/clk-bcm2835.c u64 rem; rem 930 drivers/clk/bcm/clk-bcm2835.c rem = do_div(temp, rate); rem 934 drivers/clk/bcm/clk-bcm2835.c if (round_up && ((div & unused_frac_mask) != 0 || rem != 0)) rem 1439 drivers/clk/tegra/clk-tegra210.c unsigned long rem = p_rate - cf * cfg->n; rem 1441 drivers/clk/tegra/clk-tegra210.c if (rem || params->ssc_ctrl_reg) { rem 1442 drivers/clk/tegra/clk-tegra210.c u64 s = rem * PLL_SDM_COEFF; rem 722 drivers/crypto/bcm/cipher.c u16 rem = 0; rem 777 drivers/crypto/bcm/cipher.c rem = chunksize % blocksize; /* remainder */ rem 778 drivers/crypto/bcm/cipher.c if (rem) { rem 780 drivers/crypto/bcm/cipher.c chunksize -= rem; rem 783 drivers/crypto/bcm/cipher.c new_len = rem - rctx->hash_carry_len; rem 786 drivers/crypto/bcm/cipher.c rctx->hash_carry_len = rem; rem 298 drivers/crypto/mxs-dcp.c unsigned int i, len, clen, rem = 0, tlen = 0; rem 354 drivers/crypto/mxs-dcp.c rem = min(sg_dma_len(dst) - dst_off, rem 357 drivers/crypto/mxs-dcp.c memcpy(dst_buf + dst_off, out_tmp, rem); rem 358 drivers/crypto/mxs-dcp.c out_tmp += rem; rem 359 drivers/crypto/mxs-dcp.c dst_off += rem; rem 360 drivers/crypto/mxs-dcp.c actx->fill -= rem; rem 519 drivers/gpu/drm/drm_mm.c u64 rem; rem 522 drivers/gpu/drm/drm_mm.c rem = adj_start & remainder_mask; rem 524 drivers/gpu/drm/drm_mm.c div64_u64_rem(adj_start, alignment, &rem); rem 525 drivers/gpu/drm/drm_mm.c if (rem) { rem 526 drivers/gpu/drm/drm_mm.c adj_start -= rem; rem 765 drivers/gpu/drm/drm_mm.c u64 rem; rem 768 drivers/gpu/drm/drm_mm.c rem = adj_start & scan->remainder_mask; rem 770 drivers/gpu/drm/drm_mm.c div64_u64_rem(adj_start, scan->alignment, &rem); rem 771 drivers/gpu/drm/drm_mm.c if (rem) { rem 772 drivers/gpu/drm/drm_mm.c adj_start -= rem; rem 24 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c u64 rem; rem 47 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c rem = vma->size; rem 51 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c u32 size = min_t(u64, rem, block_size); rem 76 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c rem -= size; rem 77 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c } while (rem); rem 207 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c u64 count, rem; rem 231 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c rem = src->size; rem 236 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c size = min_t(u64, rem, block_size); rem 275 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c rem -= size; rem 276 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c } while (rem); rem 29 drivers/gpu/drm/i915/gem/selftests/huge_pages.c u64 rem) rem 36 drivers/gpu/drm/i915/gem/selftests/huge_pages.c if (HAS_PAGE_SIZES(i915, page_size) && rem >= page_size) rem 63 drivers/gpu/drm/i915/gem/selftests/huge_pages.c u64 rem; rem 74 drivers/gpu/drm/i915/gem/selftests/huge_pages.c rem = obj->base.size; rem 101 drivers/gpu/drm/i915/gem/selftests/huge_pages.c rem -= page_size; rem 102 drivers/gpu/drm/i915/gem/selftests/huge_pages.c if (!rem) { rem 108 drivers/gpu/drm/i915/gem/selftests/huge_pages.c } while ((rem - ((page_size-1) & page_mask)) >= page_size); rem 187 drivers/gpu/drm/i915/gem/selftests/huge_pages.c u64 rem; rem 199 drivers/gpu/drm/i915/gem/selftests/huge_pages.c rem = obj->base.size; rem 204 drivers/gpu/drm/i915/gem/selftests/huge_pages.c unsigned int page_size = get_largest_page_size(i915, rem); rem 205 drivers/gpu/drm/i915/gem/selftests/huge_pages.c unsigned int len = min(page_size * div_u64(rem, page_size), rem 219 drivers/gpu/drm/i915/gem/selftests/huge_pages.c rem -= len; rem 220 drivers/gpu/drm/i915/gem/selftests/huge_pages.c if (!rem) { rem 434 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c unsigned int rem = rem 437 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c err = cpu_check(obj, ncontexts++, rem); rem 441 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c dw += rem; rem 555 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c unsigned int rem = rem 558 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c err = cpu_check(obj, ncontexts++, rem); rem 562 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c dw += rem; rem 1125 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c unsigned int rem = rem 1129 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c num_writes = rem; rem 1137 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c dw += rem; rem 614 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c int rem = ARRAY_SIZE(execlists->inflight) - idx; rem 615 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c memmove(execlists->inflight, port, rem * sizeof(*port)); rem 1221 drivers/gpu/drm/i915/i915_gem_gtt.c dma_addr_t rem = iter->sg->length; rem 1238 drivers/gpu/drm/i915/i915_gem_gtt.c rem >= I915_GTT_PAGE_SIZE_2M && rem 1255 drivers/gpu/drm/i915/i915_gem_gtt.c (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || rem 1256 drivers/gpu/drm/i915/i915_gem_gtt.c rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)) rem 1268 drivers/gpu/drm/i915/i915_gem_gtt.c rem -= page_size; rem 1274 drivers/gpu/drm/i915/i915_gem_gtt.c rem = iter->sg->length; rem 1276 drivers/gpu/drm/i915/i915_gem_gtt.c iter->max = iter->dma + rem; rem 1280 drivers/gpu/drm/i915/i915_gem_gtt.c (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || rem 1281 drivers/gpu/drm/i915/i915_gem_gtt.c rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE))) rem 1287 drivers/gpu/drm/i915/i915_gem_gtt.c } while (rem >= page_size && index < I915_PDES); rem 829 drivers/gpu/drm/i915/i915_gpu_error.c char *buf, loff_t off, size_t rem) rem 836 drivers/gpu/drm/i915/i915_gpu_error.c if (!error || !rem) rem 873 drivers/gpu/drm/i915/i915_gpu_error.c len = min(len, rem); rem 882 drivers/gpu/drm/i915/i915_gpu_error.c rem -= len; rem 883 drivers/gpu/drm/i915/i915_gpu_error.c if (!rem) { rem 621 drivers/gpu/drm/i915/selftests/i915_buddy.c u64 rem; rem 640 drivers/gpu/drm/i915/selftests/i915_buddy.c rem = mm.size; rem 647 drivers/gpu/drm/i915/selftests/i915_buddy.c size = min(page_num * mm.chunk_size, rem); rem 687 drivers/gpu/drm/i915/selftests/i915_buddy.c rem -= size; rem 688 drivers/gpu/drm/i915/selftests/i915_buddy.c if (!rem) rem 64 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c typeof(obj->base.size) rem; rem 70 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c rem = round_up(obj->base.size, BIT(31)) >> 31; rem 71 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c if (sg_alloc_table(pages, rem, GFP)) { rem 77 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c rem = obj->base.size; rem 79 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c unsigned long len = min_t(typeof(rem), rem, BIT(31)); rem 87 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c rem -= len; rem 89 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c GEM_BUG_ON(rem); rem 263 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c u32 ref, rem; rem 287 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c rem = 0; rem 288 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c step_size = div_u64_rem(step_size, ssc_period + 1, &rem); rem 289 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c if (rem) rem 138 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c u32 rem; rem 161 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c rem = rate % VCO_REF_CLK_RATE; rem 162 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c if (rem) { rem 176 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c rem = div_fbx1000 % 1000; rem 177 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c frac_n_value = (rem << 16) / 1000; rem 183 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c rem = 0; rem 148 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c u32 rem; rem 150 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c rem = do_div(dividend, divisor); rem 151 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c if (rem > (divisor >> 1)) rem 228 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c u32 rem; rem 254 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c rem = do_div(frac_start, pll_divisor); rem 256 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c if (rem > (pll_divisor >> 1)) rem 456 drivers/gpu/drm/msm/msm_drv.h ktime_t rem = ktime_sub(*timeout, now); rem 457 drivers/gpu/drm/msm/msm_drv.h struct timespec ts = ktime_to_timespec(rem); rem 63 drivers/gpu/drm/msm/msm_perf.c int rem = sizeof(perf->buf); rem 68 drivers/gpu/drm/msm/msm_perf.c n = snprintf(ptr, rem, "%%BUSY"); rem 70 drivers/gpu/drm/msm/msm_perf.c rem -= n; rem 74 drivers/gpu/drm/msm/msm_perf.c n = snprintf(ptr, rem, "\t%s", perfcntr->name); rem 76 drivers/gpu/drm/msm/msm_perf.c rem -= n; rem 96 drivers/gpu/drm/msm/msm_perf.c n = snprintf(ptr, rem, "%3d.%d%%", val / 10, val % 10); rem 98 drivers/gpu/drm/msm/msm_perf.c rem -= n; rem 103 drivers/gpu/drm/msm/msm_perf.c n = snprintf(ptr, rem, "\t%5d.%02d", rem 106 drivers/gpu/drm/msm/msm_perf.c rem -= n; rem 110 drivers/gpu/drm/msm/msm_perf.c n = snprintf(ptr, rem, "\n"); rem 112 drivers/gpu/drm/msm/msm_perf.c rem -= n; rem 32 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c u8 rem = size % 4; rem 36 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c size -= rem; rem 51 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c if (rem) { rem 58 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c extra & (BIT(rem * 8) - 1)); rem 71 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c u8 rem = size % 4; rem 74 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c size -= rem; rem 84 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c if (rem) { rem 88 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c extra & (BIT(rem * 8) - 1)); rem 98 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c u8 rem = size % 4; rem 106 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c size -= rem; rem 116 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c if (rem) { rem 120 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c extra & (BIT(rem * 8) - 1)); rem 128 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c u8 rem = size % 4; rem 131 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c size -= rem; rem 141 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c if (rem) { rem 144 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c for (i = size; i < size + rem; i++) { rem 155 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c u8 rem = size % 4; rem 162 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c size -= rem; rem 172 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c if (rem) { rem 175 drivers/gpu/drm/nouveau/nvkm/falcon/v1.c for (i = size; i < size + rem; i++) { rem 231 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c u32 rem, rem_range; rem 254 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c rem = ((u32)n) & MASK(DFS_DET_RANGE); rem 257 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c rem = (rem << rem_range) - BIT(SDM_DIN_RANGE); rem 259 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c *sdm_din = (rem >> BITS_PER_BYTE) & MASK(GPCPLL_CFG2_SDM_DIN_WIDTH); rem 635 drivers/gpu/drm/rockchip/cdn-dp-reg.c u32 val, link_rate, rem; rem 663 drivers/gpu/drm/rockchip/cdn-dp-reg.c rem = do_div(symbol, 1000); rem 673 drivers/gpu/drm/rockchip/cdn-dp-reg.c (rem > 850) || (rem < 100)); rem 159 drivers/gpu/drm/selftests/test-drm_mm.c u64 rem; rem 164 drivers/gpu/drm/selftests/test-drm_mm.c div64_u64_rem(node->start, alignment, &rem); rem 165 drivers/gpu/drm/selftests/test-drm_mm.c return rem; rem 1996 drivers/gpu/drm/selftests/test-drm_mm.c int rem; rem 2016 drivers/gpu/drm/selftests/test-drm_mm.c rem = misalignment(node, n + count); rem 2017 drivers/gpu/drm/selftests/test-drm_mm.c node->start += n + count - rem; rem 2047 drivers/gpu/drm/selftests/test-drm_mm.c u64 rem; rem 2059 drivers/gpu/drm/selftests/test-drm_mm.c div64_u64_rem(node->start, node->size, &rem); rem 2060 drivers/gpu/drm/selftests/test-drm_mm.c if (rem) { rem 2062 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, node->start, node->size, rem); rem 672 drivers/gpu/drm/tegra/hdmi.c size_t rem = size - i, num = min_t(size_t, rem, 4); rem 677 drivers/gpu/drm/tegra/hdmi.c num = min_t(size_t, rem - num, 3); rem 2089 drivers/gpu/drm/tegra/sor.c size_t rem = size - i, num = min_t(size_t, rem, 4); rem 2094 drivers/gpu/drm/tegra/sor.c num = min_t(size_t, rem - num, 3); rem 246 drivers/hid/intel-ish-hid/ipc/ipc.c unsigned long rem; rem 305 drivers/hid/intel-ish-hid/ipc/ipc.c rem = length & 0x3; rem 306 drivers/hid/intel-ish-hid/ipc/ipc.c if (rem > 0) { rem 309 drivers/hid/intel-ish-hid/ipc/ipc.c memcpy(®, &r_buf[length >> 2], rem); rem 639 drivers/hid/intel-ish-hid/ishtp/client.c size_t rem; rem 678 drivers/hid/intel-ish-hid/ishtp/client.c rem = cl_msg->send_buf.size - cl->tx_offs; rem 685 drivers/hid/intel-ish-hid/ishtp/client.c if (rem <= dev->mtu) { rem 686 drivers/hid/intel-ish-hid/ishtp/client.c ishtp_hdr.length = rem; rem 1461 drivers/hwtracing/intel_th/msu.c unsigned long size = msc->nr_pages << PAGE_SHIFT, rem = len; rem 1467 drivers/hwtracing/intel_th/msu.c tocopy = min(rem, size - start); rem 1472 drivers/hwtracing/intel_th/msu.c rem -= tocopy; rem 1477 drivers/hwtracing/intel_th/msu.c if (rem) { rem 1478 drivers/hwtracing/intel_th/msu.c tocopy = min(rem, msc->single_sz - start); rem 1482 drivers/hwtracing/intel_th/msu.c rem -= tocopy; rem 1485 drivers/hwtracing/intel_th/msu.c return len - rem; rem 1488 drivers/hwtracing/intel_th/msu.c if (copy_to_user(buf, msc->base + start, rem)) rem 656 drivers/i2c/busses/i2c-qup.c u32 len = 0, blocks, rem; rem 664 drivers/i2c/busses/i2c-qup.c rem = msg->len - (blocks - 1) * limit; rem 668 drivers/i2c/busses/i2c-qup.c tlen = (i == (blocks - 1)) ? rem : limit; rem 700 drivers/i2c/busses/i2c-qup.c tlen = (i == (blocks - 1)) ? rem : limit; rem 223 drivers/iio/adc/stm32-dfsdm-core.c unsigned int spi_freq, rem; rem 270 drivers/iio/adc/stm32-dfsdm-core.c divider = div_u64_rem(clk_freq, spi_freq, &rem); rem 272 drivers/iio/adc/stm32-dfsdm-core.c if (rem) rem 285 drivers/iio/adc/stm32-dfsdm-core.c if (rem) { rem 288 drivers/iio/adc/stm32-dfsdm-core.c clk_freq, spi_freq, priv->spi_clk_out_div + 1, rem); rem 79 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int rem; rem 88 drivers/iio/common/hid-sensors/hid-sensor-attributes.c rem = dividend % divisor; rem 89 drivers/iio/common/hid-sensors/hid-sensor-attributes.c if (rem) { rem 90 drivers/iio/common/hid-sensors/hid-sensor-attributes.c while (rem <= divisor) { rem 91 drivers/iio/common/hid-sensors/hid-sensor-attributes.c rem *= 10; rem 94 drivers/iio/common/hid-sensors/hid-sensor-attributes.c *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); rem 313 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int rem; rem 338 drivers/iio/common/hid-sensors/hid-sensor-attributes.c rem = scale0 % divisor; rem 346 drivers/iio/common/hid-sensors/hid-sensor-attributes.c *val1 = rem * int_pow(10, 9 - exp) + res; rem 352 drivers/iio/humidity/hts221_core.c s32 rem, div, data; rem 368 drivers/iio/humidity/hts221_core.c tmp = div_s64_rem(tmp, 1000000000LL, &rem); rem 371 drivers/iio/humidity/hts221_core.c *val2 = rem; rem 381 drivers/iio/humidity/hts221_core.c s32 rem, div, data; rem 397 drivers/iio/humidity/hts221_core.c tmp = div_s64_rem(tmp, 1000000000LL, &rem); rem 400 drivers/iio/humidity/hts221_core.c *val2 = rem; rem 472 drivers/iio/pressure/dps310.c s64 rem = 0ULL; rem 534 drivers/iio/pressure/dps310.c rem += div64_s64((s64)rems[i] * 1000000000LL, denoms[i]); rem 536 drivers/iio/pressure/dps310.c pressure += div_s64(rem, 1000000000LL); rem 103 drivers/infiniband/core/addr.c int len, rem; rem 109 drivers/infiniband/core/addr.c nla_for_each_attr(curr, head, len, rem) { rem 930 drivers/infiniband/core/sa_query.c int len, rem; rem 949 drivers/infiniband/core/sa_query.c nla_for_each_attr(curr, head, len, rem) { rem 419 drivers/infiniband/hw/cxgb4/qp.c int rem, len; rem 427 drivers/infiniband/hw/cxgb4/qp.c rem = wr->sg_list[i].length; rem 428 drivers/infiniband/hw/cxgb4/qp.c while (rem) { rem 431 drivers/infiniband/hw/cxgb4/qp.c if (rem <= (u8 *)&sq->queue[sq->size] - dstp) rem 432 drivers/infiniband/hw/cxgb4/qp.c len = rem; rem 438 drivers/infiniband/hw/cxgb4/qp.c rem -= len; rem 827 drivers/infiniband/hw/cxgb4/qp.c int rem; rem 864 drivers/infiniband/hw/cxgb4/qp.c rem = pbllen; rem 867 drivers/infiniband/hw/cxgb4/qp.c rem -= sizeof(*p); rem 871 drivers/infiniband/hw/cxgb4/qp.c while (rem) { rem 873 drivers/infiniband/hw/cxgb4/qp.c rem -= sizeof(*p); rem 2223 drivers/infiniband/hw/i40iw/i40iw_cm.c __be32 rem[4] = { rem 2227 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->tcp_cntxt.loc_seq_num = secure_tcpv6_seq(loc, rem, rem 1401 drivers/input/keyboard/applespi.c unsigned int rem; rem 1428 drivers/input/keyboard/applespi.c rem = le16_to_cpu(packet->remaining); rem 1439 drivers/input/keyboard/applespi.c if (rem > 0 || off > 0) { rem 1447 drivers/input/keyboard/applespi.c if (off + rem > MAX_PKTS_PER_MSG * APPLESPI_PACKET_SIZE) { rem 1450 drivers/input/keyboard/applespi.c off + rem); rem 1464 drivers/input/keyboard/applespi.c if (rem > 0) rem 1028 drivers/media/dvb-frontends/af9013.c int ret, i, len, rem; rem 1075 drivers/media/dvb-frontends/af9013.c for (rem = firmware->size; rem > 0; rem -= LEN_MAX) { rem 1076 drivers/media/dvb-frontends/af9013.c len = min(LEN_MAX, rem); rem 1078 drivers/media/dvb-frontends/af9013.c 0x5100 + firmware->size - rem, rem 1079 drivers/media/dvb-frontends/af9013.c &firmware->data[firmware->size - rem], rem 614 drivers/media/dvb-frontends/m88ds3103.c int ret, len, rem; rem 674 drivers/media/dvb-frontends/m88ds3103.c for (rem = firmware->size; rem > 0; rem -= (dev->cfg->i2c_wr_max - 1)) { rem 675 drivers/media/dvb-frontends/m88ds3103.c len = min(dev->cfg->i2c_wr_max - 1, rem); rem 677 drivers/media/dvb-frontends/m88ds3103.c &firmware->data[firmware->size - rem], rem 398 drivers/media/dvb-frontends/mn88472.c int ret, len, rem; rem 435 drivers/media/dvb-frontends/mn88472.c for (rem = firmware->size; rem > 0; rem -= (dev->i2c_write_max - 1)) { rem 436 drivers/media/dvb-frontends/mn88472.c len = min(dev->i2c_write_max - 1, rem); rem 438 drivers/media/dvb-frontends/mn88472.c &firmware->data[firmware->size - rem], rem 229 drivers/media/i2c/cx25840/cx25840-ir.c u32 rem; rem 236 drivers/media/i2c/cx25840/cx25840-ir.c rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ rem 237 drivers/media/i2c/cx25840/cx25840-ir.c if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2) rem 248 drivers/media/i2c/cx25840/cx25840-ir.c u32 rem; rem 256 drivers/media/i2c/cx25840/cx25840-ir.c rem = do_div(n, d); rem 257 drivers/media/i2c/cx25840/cx25840-ir.c if (rem >= d / 2) rem 271 drivers/media/i2c/cx25840/cx25840-ir.c u32 rem; rem 278 drivers/media/i2c/cx25840/cx25840-ir.c rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => us */ rem 279 drivers/media/i2c/cx25840/cx25840-ir.c if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2) rem 295 drivers/media/i2c/cx25840/cx25840-ir.c u32 rem; rem 297 drivers/media/i2c/cx25840/cx25840-ir.c rem = do_div(clocks, 1000); /* /1000 = cycles */ rem 298 drivers/media/i2c/cx25840/cx25840-ir.c if (rem >= 1000 / 2) rem 268 drivers/media/pci/cx23885/cx23888-ir.c u32 rem; rem 275 drivers/media/pci/cx23885/cx23888-ir.c rem = do_div(n, CX23888_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ rem 276 drivers/media/pci/cx23885/cx23888-ir.c if (rem >= CX23888_IR_REFCLK_FREQ / 1000000 / 2) rem 284 drivers/media/pci/cx23885/cx23888-ir.c u32 rem; rem 291 drivers/media/pci/cx23885/cx23888-ir.c rem = do_div(n, CX23888_IR_REFCLK_FREQ / 1000000); /* / MHz => us */ rem 292 drivers/media/pci/cx23885/cx23888-ir.c if (rem >= CX23888_IR_REFCLK_FREQ / 1000000 / 2) rem 308 drivers/media/pci/cx23885/cx23888-ir.c u32 rem; rem 310 drivers/media/pci/cx23885/cx23888-ir.c rem = do_div(clocks, 1000); /* /1000 = cycles */ rem 311 drivers/media/pci/cx23885/cx23888-ir.c if (rem >= 1000 / 2) rem 796 drivers/media/pci/saa7164/saa7164-encoder.c int rem, cnt; rem 840 drivers/media/pci/saa7164/saa7164-encoder.c rem = ubuf->actual_size - ubuf->pos; rem 841 drivers/media/pci/saa7164/saa7164-encoder.c cnt = rem > count ? count : rem; rem 847 drivers/media/pci/saa7164/saa7164-encoder.c __func__, (int)count, cnt, rem, ubuf, ubuf->pos); rem 500 drivers/media/pci/saa7164/saa7164-vbi.c int rem, cnt; rem 544 drivers/media/pci/saa7164/saa7164-vbi.c rem = ubuf->actual_size - ubuf->pos; rem 545 drivers/media/pci/saa7164/saa7164-vbi.c cnt = rem > count ? count : rem; rem 551 drivers/media/pci/saa7164/saa7164-vbi.c __func__, (int)count, cnt, rem, ubuf, ubuf->pos); rem 2436 drivers/media/platform/am437x/am437x-vpfe.c struct device_node *rem; rem 2486 drivers/media/platform/am437x/am437x-vpfe.c rem = of_graph_get_remote_port_parent(endpoint); rem 2487 drivers/media/platform/am437x/am437x-vpfe.c if (!rem) { rem 2494 drivers/media/platform/am437x/am437x-vpfe.c &vpfe->notifier, of_fwnode_handle(rem), rem 2496 drivers/media/platform/am437x/am437x-vpfe.c of_node_put(rem); rem 60 drivers/media/platform/atmel/atmel-sama5d2-isc.c struct device_node *epn = NULL, *rem; rem 74 drivers/media/platform/atmel/atmel-sama5d2-isc.c rem = of_graph_get_remote_port_parent(epn); rem 75 drivers/media/platform/atmel/atmel-sama5d2-isc.c if (!rem) { rem 84 drivers/media/platform/atmel/atmel-sama5d2-isc.c of_node_put(rem); rem 93 drivers/media/platform/atmel/atmel-sama5d2-isc.c of_node_put(rem); rem 104 drivers/media/platform/atmel/atmel-sama5d2-isc.c of_node_put(rem); rem 125 drivers/media/platform/atmel/atmel-sama5d2-isc.c subdev_entity->asd->match.fwnode = of_fwnode_handle(rem); rem 1505 drivers/media/platform/davinci/vpif_capture.c struct device_node *rem = NULL; rem 1544 drivers/media/platform/davinci/vpif_capture.c rem = of_graph_get_remote_port_parent(endpoint); rem 1545 drivers/media/platform/davinci/vpif_capture.c if (!rem) { rem 1569 drivers/media/platform/davinci/vpif_capture.c of_node_put(rem); rem 1584 drivers/media/platform/davinci/vpif_capture.c dev_dbg(&pdev->dev, "Remote device %pOF found\n", rem); rem 1585 drivers/media/platform/davinci/vpif_capture.c sdinfo->name = rem->full_name; rem 1588 drivers/media/platform/davinci/vpif_capture.c &vpif_obj.notifier, of_fwnode_handle(rem), rem 1593 drivers/media/platform/davinci/vpif_capture.c of_node_put(rem); rem 1605 drivers/media/platform/davinci/vpif_capture.c of_node_put(rem); rem 388 drivers/media/platform/exynos4-is/media-dev.c struct device_node *rem, *ep, *np; rem 410 drivers/media/platform/exynos4-is/media-dev.c rem = of_graph_get_remote_port_parent(ep); rem 412 drivers/media/platform/exynos4-is/media-dev.c if (rem == NULL) { rem 432 drivers/media/platform/exynos4-is/media-dev.c endpoint.base.port, rem); rem 442 drivers/media/platform/exynos4-is/media-dev.c np = of_get_parent(rem); rem 451 drivers/media/platform/exynos4-is/media-dev.c of_node_put(rem); rem 456 drivers/media/platform/exynos4-is/media-dev.c fmd->sensor[index].asd.match.fwnode = of_fwnode_handle(rem); rem 461 drivers/media/platform/exynos4-is/media-dev.c of_node_put(rem); rem 232 drivers/media/platform/s3c-camif/camif-regs.c unsigned int div, rem; rem 241 drivers/media/platform/s3c-camif/camif-regs.c rem = nwords & (div - 1); rem 242 drivers/media/platform/s3c-camif/camif-regs.c if (rem == 0) { rem 247 drivers/media/platform/s3c-camif/camif-regs.c if (rem == div / 2 || rem == div / 4) { rem 249 drivers/media/platform/s3c-camif/camif-regs.c *rburst = rem; rem 1047 drivers/media/platform/vivid/vivid-ctrls.c u64 rem; rem 1096 drivers/media/platform/vivid/vivid-ctrls.c 0x100000000ULL * NSEC_PER_SEC, &rem); rem 1098 drivers/media/platform/vivid/vivid-ctrls.c (0x100000000ULL - 16) * NSEC_PER_SEC - rem; rem 292 drivers/media/rc/fintek-cir.c fintek->rem = (fintek->cmd & BUF_LEN_MASK); rem 293 drivers/media/rc/fintek-cir.c fit_dbg("%s: rem: 0x%02x", __func__, fintek->rem); rem 294 drivers/media/rc/fintek-cir.c if (fintek->rem) rem 300 drivers/media/rc/fintek-cir.c fintek->rem = fintek_cmdsize(fintek->cmd, sample); rem 304 drivers/media/rc/fintek-cir.c fintek->rem--; rem 307 drivers/media/rc/fintek-cir.c fintek->rem--; rem 321 drivers/media/rc/fintek-cir.c if ((fintek->parser_state != CMD_HEADER) && !fintek->rem) rem 94 drivers/media/rc/fintek-cir.h u8 cmd, rem; rem 483 drivers/media/rc/mceusb.c u8 cmd, rem; /* Remaining IR data bytes in packet */ rem 1274 drivers/media/rc/mceusb.c ir->rem = mceusb_cmd_datasize(ir->cmd, ir->buf_in[i]); rem 1276 drivers/media/rc/mceusb.c ir->rem + 2, false); rem 1277 drivers/media/rc/mceusb.c if (i + ir->rem < buf_len) rem 1282 drivers/media/rc/mceusb.c ir->rem--; rem 1304 drivers/media/rc/mceusb.c ir->rem--; rem 1323 drivers/media/rc/mceusb.c ir->rem = (ir->cmd & MCE_PACKET_LENGTH_MASK); rem 1325 drivers/media/rc/mceusb.c i, ir->rem + 1, false); rem 1326 drivers/media/rc/mceusb.c if (ir->rem) { rem 1343 drivers/media/rc/mceusb.c if (ir->parser_state != CMD_HEADER && !ir->rem) rem 1351 drivers/media/rc/mceusb.c if (ir->parser_state != PARSE_IRDATA || !ir->rem) rem 86 drivers/media/tuners/mt2060.c int rem, val_len; rem 99 drivers/media/tuners/mt2060.c for (rem = len - 1; rem > 0; rem -= priv->i2c_max_regs) { rem 100 drivers/media/tuners/mt2060.c val_len = min_t(int, rem, priv->i2c_max_regs); rem 102 drivers/media/tuners/mt2060.c xfer_buf[0] = buf[0] + len - 1 - rem; rem 103 drivers/media/tuners/mt2060.c memcpy(&xfer_buf[1], &buf[1 + len - 1 - rem], val_len); rem 293 drivers/media/usb/dvb-usb-v2/af9015.c int ret, i, rem; rem 307 drivers/media/usb/dvb-usb-v2/af9015.c for (rem = firmware->size; rem > 0; rem -= LEN_MAX) { rem 308 drivers/media/usb/dvb-usb-v2/af9015.c req.data_len = min(LEN_MAX, rem); rem 309 drivers/media/usb/dvb-usb-v2/af9015.c req.data = (u8 *)&firmware->data[firmware->size - rem]; rem 310 drivers/media/usb/dvb-usb-v2/af9015.c req.addr = 0x5100 + firmware->size - rem; rem 414 drivers/media/usb/hdpvr/hdpvr-video.c int rem, cnt; rem 488 drivers/media/usb/hdpvr/hdpvr-video.c rem = urb->actual_length - buf->pos; rem 489 drivers/media/usb/hdpvr/hdpvr-video.c cnt = rem > count ? count : rem; rem 1747 drivers/mfd/db8500-prcmu.c unsigned long rem; rem 1751 drivers/mfd/db8500-prcmu.c rem = rate; rem 1753 drivers/mfd/db8500-prcmu.c for (r = 7; (rem > 0) && (r > 0); r--) { rem 1772 drivers/mfd/db8500-prcmu.c if ((rate - d) < rem) { rem 1773 drivers/mfd/db8500-prcmu.c rem = (rate - d); rem 1906 drivers/mfd/db8500-prcmu.c unsigned long rem; rem 1911 drivers/mfd/db8500-prcmu.c rem = rate; rem 1913 drivers/mfd/db8500-prcmu.c for (r = 7; (rem > 0) && (r > 0); r--) { rem 1934 drivers/mfd/db8500-prcmu.c if ((rate - hwrate) < rem) { rem 1935 drivers/mfd/db8500-prcmu.c rem = (rate - hwrate); rem 171 drivers/misc/mei/dma-ring.c u32 rd_idx, rem, slots; rem 191 drivers/misc/mei/dma-ring.c rem = slots - (dbuf_depth - rd_idx); rem 194 drivers/misc/mei/dma-ring.c rem = slots; rem 197 drivers/misc/mei/dma-ring.c mei_dma_copy_from(dev, buf, rd_idx, rem); rem 248 drivers/misc/mei/dma-ring.c u32 wr_idx, rem, slots; rem 260 drivers/misc/mei/dma-ring.c rem = slots - (hbuf_depth - wr_idx); rem 263 drivers/misc/mei/dma-ring.c rem = slots; rem 266 drivers/misc/mei/dma-ring.c mei_dma_copy_to(dev, buf, wr_idx, rem); rem 523 drivers/misc/mei/hw-me.c unsigned long rem; rem 552 drivers/misc/mei/hw-me.c rem = data_len & 0x3; rem 553 drivers/misc/mei/hw-me.c if (rem > 0) { rem 556 drivers/misc/mei/hw-me.c memcpy(®, (const u8 *)data + data_len - rem, rem); rem 698 drivers/misc/mei/hw-txe.c unsigned long rem; rem 735 drivers/misc/mei/hw-txe.c rem = data_len & 0x3; rem 736 drivers/misc/mei/hw-txe.c if (rem > 0) { rem 739 drivers/misc/mei/hw-txe.c memcpy(®, (const u8 *)data + data_len - rem, rem); rem 818 drivers/misc/mei/hw-txe.c u32 rem; rem 825 drivers/misc/mei/hw-txe.c rem = len & 0x3; rem 837 drivers/misc/mei/hw-txe.c if (rem) { rem 839 drivers/misc/mei/hw-txe.c memcpy(reg_buf, ®, rem); rem 1809 drivers/mmc/core/core.c unsigned int from_new = *from, nr_new = nr, rem; rem 1819 drivers/mmc/core/core.c rem = from_new - temp; rem 1821 drivers/mmc/core/core.c if (nr_new > rem) rem 1822 drivers/mmc/core/core.c nr_new -= rem; rem 1828 drivers/mmc/core/core.c rem = from_new % card->erase_size; rem 1829 drivers/mmc/core/core.c if (rem) { rem 1830 drivers/mmc/core/core.c rem = card->erase_size - rem; rem 1831 drivers/mmc/core/core.c from_new += rem; rem 1832 drivers/mmc/core/core.c if (nr_new > rem) rem 1833 drivers/mmc/core/core.c nr_new -= rem; rem 1838 drivers/mmc/core/core.c rem = nr_new % card->erase_size; rem 1839 drivers/mmc/core/core.c if (rem) rem 1840 drivers/mmc/core/core.c nr_new -= rem; rem 1864 drivers/mmc/core/core.c unsigned int rem, to = from + nr; rem 1910 drivers/mmc/core/core.c rem = card->erase_size - (from % card->erase_size); rem 1911 drivers/mmc/core/core.c if ((arg & MMC_TRIM_ARGS) && (card->eg_boundary) && (nr > rem)) { rem 1912 drivers/mmc/core/core.c err = mmc_do_erase(card, from, from + rem - 1, arg); rem 1913 drivers/mmc/core/core.c from += rem; rem 156 drivers/mtd/devices/mtd_dataflash.c u32 rem; rem 161 drivers/mtd/devices/mtd_dataflash.c div_u64_rem(instr->len, priv->page_size, &rem); rem 162 drivers/mtd/devices/mtd_dataflash.c if (rem) rem 164 drivers/mtd/devices/mtd_dataflash.c div_u64_rem(instr->addr, priv->page_size, &rem); rem 165 drivers/mtd/devices/mtd_dataflash.c if (rem) rem 374 drivers/mtd/nand/raw/tango_nand.c int rem = page_size; /* bytes remaining until BBM area */ rem 381 drivers/mtd/nand/raw/tango_nand.c while (rem > pkt_size) { rem 384 drivers/mtd/nand/raw/tango_nand.c rem = page_size - pos; rem 387 drivers/mtd/nand/raw/tango_nand.c aux_read(chip, &buf, rem, &pos); rem 389 drivers/mtd/nand/raw/tango_nand.c aux_read(chip, &buf, pkt_size - rem, &pos); rem 401 drivers/mtd/nand/raw/tango_nand.c int rem = page_size; /* bytes remaining until BBM area */ rem 408 drivers/mtd/nand/raw/tango_nand.c while (rem > pkt_size) { rem 411 drivers/mtd/nand/raw/tango_nand.c rem = page_size - pos; rem 414 drivers/mtd/nand/raw/tango_nand.c aux_write(chip, &buf, rem, &pos); rem 416 drivers/mtd/nand/raw/tango_nand.c aux_write(chip, &buf, pkt_size - rem, &pos); rem 999 drivers/mtd/spi-nor/spi-nor.c u32 rem; rem 1022 drivers/mtd/spi-nor/spi-nor.c spi_nor_div_by_erase_size(erase, addr, &rem); rem 1023 drivers/mtd/spi-nor/spi-nor.c if (rem) rem 1243 drivers/mtd/spi-nor/spi-nor.c uint32_t rem; rem 1250 drivers/mtd/spi-nor/spi-nor.c div_u64_rem(instr->len, mtd->erasesize, &rem); rem 1251 drivers/mtd/spi-nor/spi-nor.c if (rem) rem 250 drivers/net/bonding/bond_netlink.c int i = 0, rem; rem 253 drivers/net/bonding/bond_netlink.c nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) { rem 267 drivers/net/dsa/sja1105/sja1105_tas.c s32 rem; rem 278 drivers/net/dsa/sja1105/sja1105_tas.c div_s64_rem(max_cycle_time, min_cycle_time, &rem); rem 279 drivers/net/dsa/sja1105/sja1105_tas.c if (rem) rem 286 drivers/net/dsa/sja1105/sja1105_tas.c div_s64_rem(offload->base_time, offload->cycle_time, &rem); rem 287 drivers/net/dsa/sja1105/sja1105_tas.c rbt1 = rem; rem 289 drivers/net/dsa/sja1105/sja1105_tas.c div_s64_rem(admin->base_time, admin->cycle_time, &rem); rem 290 drivers/net/dsa/sja1105/sja1105_tas.c rbt2 = rem; rem 1379 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c unsigned int i, j, rem; rem 1382 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c rem = eeprom->len; rem 1457 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c rem--; rem 1467 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c eeprom->len -= rem; rem 651 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int rem; rem 653 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c for (rem = frag_len; rem > 0; rem -= gro_size) { rem 654 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int len = rem > gro_size ? gro_size : rem; rem 6685 drivers/net/ethernet/broadcom/bnxt/bnxt.c int rem = ctx_pg->nr_pages % MAX_CTX_PAGES; rem 6687 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (rem) rem 6688 drivers/net/ethernet/broadcom/bnxt/bnxt.c rmem->nr_pages = rem; rem 11278 drivers/net/ethernet/broadcom/bnxt/bnxt.c int rem, rc = 0; rem 11287 drivers/net/ethernet/broadcom/bnxt/bnxt.c nla_for_each_nested(attr, br_spec, rem) { rem 202 drivers/net/ethernet/cadence/macb_ptp.c u32 rem = 0; rem 205 drivers/net/ethernet/cadence/macb_ptp.c bp->tsu_incr.ns = div_u64_rem(NSEC_PER_SEC, bp->tsu_rate, &rem); rem 206 drivers/net/ethernet/cadence/macb_ptp.c if (rem) { rem 207 drivers/net/ethernet/cadence/macb_ptp.c adj = rem; rem 818 drivers/net/ethernet/cavium/liquidio/octeon_console.c u32 i, rem; rem 880 drivers/net/ethernet/cavium/liquidio/octeon_console.c rem = image_len; rem 882 drivers/net/ethernet/cavium/liquidio/octeon_console.c while (rem) { rem 883 drivers/net/ethernet/cavium/liquidio/octeon_console.c if (rem < FBUF_SIZE) rem 884 drivers/net/ethernet/cavium/liquidio/octeon_console.c size = rem; rem 892 drivers/net/ethernet/cavium/liquidio/octeon_console.c rem -= (u32)size; rem 890 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c unsigned int rem = val % factor; rem 892 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (rem == 0) { rem 895 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c while (rem % 10 == 0) rem 896 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c rem /= 10; rem 897 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c snprintf(buf, len, "%u.%u", val / factor, rem); rem 7972 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int rem = naddr; rem 7978 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int fw_naddr = (rem < ARRAY_SIZE(c.u.exact) ? rem 7979 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c rem : ARRAY_SIZE(c.u.exact)); rem 8028 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c rem -= fw_naddr; rem 8059 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int rem = naddr; rem 8065 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int fw_naddr = (rem < ARRAY_SIZE(c.u.exact) rem 8066 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ? rem rem 8103 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c rem -= fw_naddr; rem 1533 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int rem = naddr; rem 1541 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int fw_naddr = (rem < ARRAY_SIZE(cmd.u.exact) rem 1542 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c ? rem rem 1589 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c rem -= fw_naddr; rem 1620 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int rem = naddr; rem 1626 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int fw_naddr = (rem < ARRAY_SIZE(cmd.u.exact) ? rem 1627 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c rem : ARRAY_SIZE(cmd.u.exact)); rem 1664 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c rem -= fw_naddr; rem 1769 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int rem = VI_VF_NUM_STATS; rem 1777 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c while (rem) { rem 1778 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int ix = VI_VF_NUM_STATS - rem; rem 1779 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int nstats = min(6U, rem); rem 1801 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c rem -= nstats; rem 4964 drivers/net/ethernet/emulex/benet/be_main.c int rem; rem 4975 drivers/net/ethernet/emulex/benet/be_main.c nla_for_each_nested(attr, br_spec, rem) { rem 4333 drivers/net/ethernet/intel/e1000e/netdev.c u64 time_delta, rem, temp; rem 4349 drivers/net/ethernet/intel/e1000e/netdev.c rem = incvalue ? do_div(temp, incvalue) : (time_delta != 0); rem 4353 drivers/net/ethernet/intel/e1000e/netdev.c if ((time_delta < E1000_82574_SYSTIM_EPSILON) && (rem == 0)) rem 12350 drivers/net/ethernet/intel/i40e/i40e_main.c int i, rem; rem 12364 drivers/net/ethernet/intel/i40e/i40e_main.c nla_for_each_nested(attr, br_spec, rem) { rem 4589 drivers/net/ethernet/intel/ice/ice_main.c int rem, v, err = 0; rem 4595 drivers/net/ethernet/intel/ice/ice_main.c nla_for_each_nested(attr, br_spec, rem) { rem 690 drivers/net/ethernet/intel/igb/e1000_nvm.c u8 q, hval, rem, result; rem 771 drivers/net/ethernet/intel/igb/e1000_nvm.c rem = eeprom_verl % NVM_HEX_CONV; rem 772 drivers/net/ethernet/intel/igb/e1000_nvm.c result = hval + rem; rem 10020 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int rem; rem 10029 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c nla_for_each_nested(attr, br_spec, rem) { rem 161 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c u32 esdp, tsauxc, clktiml, clktimh, trgttiml, trgttimh, rem; rem 201 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c div_u64_rem(ns, NS_PER_SEC, &rem); rem 206 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c rem = (NS_PER_SEC - rem); rem 209 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); rem 238 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c u32 esdp, tsauxc, freqout, trgttiml, trgttimh, rem, tssdp; rem 284 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c div_u64_rem(ns, NS_PER_SEC, &rem); rem 289 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c rem = (NS_PER_SEC - rem); rem 292 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); rem 4565 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int rem; rem 4571 drivers/net/ethernet/mellanox/mlx5/core/en_main.c nla_for_each_nested(attr, br_spec, rem) { rem 409 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c int count, rem, i, ret, index; rem 412 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c rem = size % sizeof(struct qlcnic_pm_func_cfg); rem 413 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (rem) rem 552 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c int count, rem, i, ret; rem 557 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c rem = size % sizeof(struct qlcnic_esw_func_cfg); rem 558 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (rem) rem 688 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c int i, count, rem, ret, index; rem 692 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c rem = size % sizeof(struct qlcnic_npar_func_cfg); rem 693 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (rem) rem 1842 drivers/net/ethernet/rocker/rocker_main.c int rem; rem 1847 drivers/net/ethernet/rocker/rocker_main.c rocker_tlv_for_each_nested(attr, attrs[ROCKER_TLV_TX_FRAGS], rem) { rem 20 drivers/net/ethernet/rocker/rocker_tlv.c int rem; rem 24 drivers/net/ethernet/rocker/rocker_tlv.c rocker_tlv_for_each(tlv, head, buf_len, rem) { rem 45 drivers/net/ethernet/rocker/rocker_tlv.h #define rocker_tlv_for_each(pos, head, len, rem) \ rem 46 drivers/net/ethernet/rocker/rocker_tlv.h for (pos = head, rem = len; \ rem 47 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_ok(pos, rem); \ rem 48 drivers/net/ethernet/rocker/rocker_tlv.h pos = rocker_tlv_next(pos, &(rem))) rem 50 drivers/net/ethernet/rocker/rocker_tlv.h #define rocker_tlv_for_each_nested(pos, tlv, rem) \ rem 52 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_len(tlv), rem) rem 96 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c u32 off, data, mask, real_off, rem; rem 122 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c rem = off % 4; rem 128 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c if (rem) { rem 136 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c entry->val.match_en = (mask << (rem * 8)) & rem 137 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c GENMASK(31, rem * 8); rem 138 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c entry->val.match_data = (data << (rem * 8)) & rem 139 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c GENMASK(31, rem * 8); rem 143 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->val.match_en = (mask >> (rem * 8)) & rem 144 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c GENMASK(rem * 8 - 1, 0); rem 145 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->val.match_data = (data >> (rem * 8)) & rem 146 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c GENMASK(rem * 8 - 1, 0); rem 1321 drivers/net/macvlan.c int ret, rem, len; rem 1360 drivers/net/macvlan.c nla_for_each_attr(nla, head, len, rem) { rem 3635 drivers/net/wireless/intel/iwlegacy/common.c s32 interval_tm, rem; rem 3665 drivers/net/wireless/intel/iwlegacy/common.c rem = do_div(tsf, interval_tm); rem 3666 drivers/net/wireless/intel/iwlegacy/common.c il->timing.beacon_init_val = cpu_to_le32(interval_tm - rem); rem 4886 drivers/net/wireless/intel/iwlegacy/common.c u32 rem; rem 4898 drivers/net/wireless/intel/iwlegacy/common.c rem = rem 4903 drivers/net/wireless/intel/iwlegacy/common.c return (quot << il->hw_params.beacon_time_tsf_bits) + rem; rem 89 drivers/net/wireless/intel/iwlwifi/dvm/devices.c u32 rem; rem 98 drivers/net/wireless/intel/iwlwifi/dvm/devices.c rem = (usec % interval) & iwl_beacon_time_mask_low(priv, rem 101 drivers/net/wireless/intel/iwlwifi/dvm/devices.c return (quot << IWLAGN_EXT_BEACON_TIME_POS) + rem; rem 281 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c s32 interval_tm, rem; rem 330 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c rem = do_div(tsf, interval_tm); rem 331 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c ctx->timing.beacon_init_val = cpu_to_le32(interval_tm - rem); rem 1254 drivers/net/wireless/intersil/orinoco/main.c int rem = sizeof(buf) - (ie - &buf[0]); rem 1256 drivers/net/wireless/intersil/orinoco/main.c if (wrqu.data.length > rem) rem 1257 drivers/net/wireless/intersil/orinoco/main.c wrqu.data.length = rem; rem 1285 drivers/net/wireless/intersil/orinoco/main.c int rem = sizeof(buf) - (ie - &buf[0]); rem 1287 drivers/net/wireless/intersil/orinoco/main.c if (wrqu.data.length > rem) rem 1288 drivers/net/wireless/intersil/orinoco/main.c wrqu.data.length = rem; rem 190 drivers/nvdimm/badrange.c u32 rem; rem 193 drivers/nvdimm/badrange.c end_sector = div_u64_rem(ns_offset + len, sector_size, &rem); rem 194 drivers/nvdimm/badrange.c if (rem) rem 815 drivers/nvdimm/namespace_devs.c resource_size_t n, rem = 0; rem 820 drivers/nvdimm/namespace_devs.c n = nd_pmem_available_dpa(nd_region, nd_mapping, &rem); rem 823 drivers/nvdimm/namespace_devs.c rem = scan_allocate(nd_region, nd_mapping, &label_id, n); rem 824 drivers/nvdimm/namespace_devs.c dev_WARN_ONCE(&nd_region->dev, rem, rem 826 drivers/nvdimm/namespace_devs.c (unsigned long long) n - rem, rem 828 drivers/nvdimm/namespace_devs.c return rem ? -ENXIO : 0; rem 880 drivers/nvdimm/namespace_devs.c resource_size_t rem = n; rem 895 drivers/nvdimm/namespace_devs.c rem = scan_allocate(nd_region, nd_mapping, rem 896 drivers/nvdimm/namespace_devs.c label_id, rem); rem 901 drivers/nvdimm/namespace_devs.c if (rem == 0) rem 905 drivers/nvdimm/namespace_devs.c dev_WARN_ONCE(&nd_region->dev, rem, rem 907 drivers/nvdimm/namespace_devs.c (unsigned long long) n - rem, rem 909 drivers/nvdimm/namespace_devs.c if (rem) rem 122 drivers/nvdimm/pmem.c unsigned long rem; rem 128 drivers/nvdimm/pmem.c rem = memcpy_mcsafe(mem + off, pmem_addr, chunk); rem 130 drivers/nvdimm/pmem.c if (rem) rem 90 drivers/platform/chrome/cros_usbpd_logger.c s32 rem; rem 161 drivers/platform/chrome/cros_usbpd_logger.c div_s64_rem(ktime_to_ms(tstamp), MSEC_PER_SEC, &rem); rem 164 drivers/platform/chrome/cros_usbpd_logger.c rt.tm_hour, rt.tm_min, rt.tm_sec, rem, rem 228 drivers/rtc/rtc-sc27xx.c int ret, rem; rem 231 drivers/rtc/rtc-sc27xx.c day = div_s64_rem(secs, 86400, &rem); rem 232 drivers/rtc/rtc-sc27xx.c hour = rem / 3600; rem 233 drivers/rtc/rtc-sc27xx.c rem -= hour * 3600; rem 234 drivers/rtc/rtc-sc27xx.c min = rem / 60; rem 235 drivers/rtc/rtc-sc27xx.c sec = rem - min * 60; rem 194 drivers/scsi/esas2r/esas2r_io.c u32 rem = 0; rem 217 drivers/scsi/esas2r/esas2r_io.c rem = len - SGE_LEN_MAX; rem 319 drivers/scsi/esas2r/esas2r_io.c if (rem) { rem 321 drivers/scsi/esas2r/esas2r_io.c len = rem; rem 322 drivers/scsi/esas2r/esas2r_io.c rem = 0; rem 378 drivers/scsi/esas2r/esas2r_io.c u32 rem = 0; rem 404 drivers/scsi/esas2r/esas2r_io.c rem = len - PRD_LEN_MAX; rem 504 drivers/scsi/esas2r/esas2r_io.c if (rem) { rem 506 drivers/scsi/esas2r/esas2r_io.c len = rem; rem 507 drivers/scsi/esas2r/esas2r_io.c rem = 0; rem 4990 drivers/scsi/pm8001/pm8001_hwi.c u32 value, rem, offset = 0, bar = 0; rem 5015 drivers/scsi/pm8001/pm8001_hwi.c rem = length & 3; rem 5049 drivers/scsi/pm8001/pm8001_hwi.c if (rem != 0) { rem 935 drivers/scsi/qla4xxx/ql4_os.c int rem = len; rem 941 drivers/scsi/qla4xxx/ql4_os.c nla_for_each_attr(attr, data, len, rem) { rem 2704 drivers/scsi/qla4xxx/ql4_os.c uint32_t rem = len; rem 2725 drivers/scsi/qla4xxx/ql4_os.c nla_for_each_attr(attr, data, len, rem) { rem 8092 drivers/scsi/qla4xxx/ql4_os.c uint32_t rem = len; rem 8095 drivers/scsi/qla4xxx/ql4_os.c nla_for_each_attr(attr, data, len, rem) { rem 5683 drivers/scsi/scsi_debug.c u8 rem; rem 5687 drivers/scsi/scsi_debug.c rem = ~oip->len_mask[k] & cmd[k]; rem 5688 drivers/scsi/scsi_debug.c if (rem) { rem 5689 drivers/scsi/scsi_debug.c for (j = 7; j >= 0; --j, rem <<= 1) { rem 5690 drivers/scsi/scsi_debug.c if (0x80 & rem) rem 2032 drivers/scsi/sg.c int k, num, rem; rem 2037 drivers/scsi/sg.c rem = size; rem 2041 drivers/scsi/sg.c if (rem <= num) { rem 2050 drivers/scsi/sg.c rem -= num; rem 178 drivers/scsi/sym53c8xx_2/sym_nvram.c char *rem; rem 187 drivers/scsi/sym53c8xx_2/sym_nvram.c case 0: rem = ""; break; rem 188 drivers/scsi/sym53c8xx_2/sym_nvram.c case 1: rem = " REMOVABLE=boot device"; break; rem 189 drivers/scsi/sym53c8xx_2/sym_nvram.c case 2: rem = " REMOVABLE=all"; break; rem 202 drivers/scsi/sym53c8xx_2/sym_nvram.c rem, boot_delay, tags); rem 446 drivers/spi/spi-orion.c unsigned int rem = count % 4; rem 453 drivers/spi/spi-orion.c if (rem) { rem 456 drivers/spi/spi-orion.c iowrite8_rep(vaddr, &buf[cnt], rem); rem 923 drivers/spi/spi-topcliff-pch.c int rem; rem 977 drivers/spi/spi-topcliff-pch.c rem = data->bpw_len % PCH_DMA_TRANS_SIZE; rem 980 drivers/spi/spi-topcliff-pch.c rem = PCH_DMA_TRANS_SIZE; rem 986 drivers/spi/spi-topcliff-pch.c rem = data->bpw_len; rem 989 drivers/spi/spi-topcliff-pch.c __func__, num, size, rem); rem 1012 drivers/spi/spi-topcliff-pch.c sg_set_page(sg, virt_to_page(dma->rx_buf_virt), rem, rem 1014 drivers/spi/spi-topcliff-pch.c sg_dma_len(sg) = rem; rem 1016 drivers/spi/spi-topcliff-pch.c sg->offset = size * (i - 1) + rem; rem 1050 drivers/spi/spi-topcliff-pch.c rem = data->bpw_len % PCH_DMA_TRANS_SIZE - head; rem 1053 drivers/spi/spi-topcliff-pch.c rem = data->bpw_len % PCH_DMA_TRANS_SIZE + rem 1060 drivers/spi/spi-topcliff-pch.c rem = data->bpw_len; rem 1080 drivers/spi/spi-topcliff-pch.c sg_set_page(sg, virt_to_page(dma->tx_buf_virt), rem, rem 1082 drivers/spi/spi-topcliff-pch.c sg_dma_len(sg) = rem; rem 637 drivers/staging/comedi/drivers/amplc_pci230.c unsigned int rem; rem 640 drivers/staging/comedi/drivers/amplc_pci230.c rem = do_div(div, timebase); rem 644 drivers/staging/comedi/drivers/amplc_pci230.c div += DIV_ROUND_CLOSEST(rem, timebase); rem 649 drivers/staging/comedi/drivers/amplc_pci230.c div += DIV_ROUND_UP(rem, timebase); rem 152 drivers/staging/greybus/loopback.c u64 avg, rem; \ rem 158 drivers/staging/greybus/loopback.c rem = do_div(avg, count); \ rem 159 drivers/staging/greybus/loopback.c rem *= 1000000; \ rem 160 drivers/staging/greybus/loopback.c do_div(rem, count); \ rem 161 drivers/staging/greybus/loopback.c return sprintf(buf, "%llu.%06u\n", avg, (u32)rem); \ rem 1596 drivers/staging/media/soc_camera/soc_camera.c struct device_node *epn = NULL, *rem; rem 1604 drivers/staging/media/soc_camera/soc_camera.c rem = of_graph_get_remote_port_parent(epn); rem 1605 drivers/staging/media/soc_camera/soc_camera.c if (!rem) { rem 1612 drivers/staging/media/soc_camera/soc_camera.c soc_of_bind(ici, epn, rem); rem 176 drivers/staging/most/video/video.c int const rem = mbo->processed_length - fh->offs; rem 177 drivers/staging/most/video/video.c int const cnt = rem < count ? rem : count; rem 191 drivers/staging/most/video/video.c if (cnt >= rem) { rem 322 drivers/staging/sm750fb/ddk750_chip.c unsigned int RN, quo, rem, fl_quo; rem 356 drivers/staging/sm750fb/ddk750_chip.c rem = RN % input;/* rem always small than 14318181 */ rem 357 drivers/staging/sm750fb/ddk750_chip.c fl_quo = rem * 10000 / input; rem 63 drivers/tty/serial/8250/8250_dwlib.c unsigned int quot, rem, base_baud = baud * 16; rem 67 drivers/tty/serial/8250/8250_dwlib.c rem = p->uartclk % base_baud; rem 68 drivers/tty/serial/8250/8250_dwlib.c *frac = DIV_ROUND_CLOSEST(rem << d->dlf_size, base_baud); rem 2039 drivers/tty/serial/imx.c unsigned int rem = uartclk % div; rem 2042 drivers/tty/serial/imx.c baud_raw += (rem * mul + div / 2) / div; rem 941 drivers/tty/serial/pch_uart.c int rem; rem 979 drivers/tty/serial/pch_uart.c rem = bytes % fifo_size; rem 983 drivers/tty/serial/pch_uart.c rem = bytes; rem 987 drivers/tty/serial/pch_uart.c __func__, num, size, rem); rem 1003 drivers/tty/serial/pch_uart.c rem, fifo_size * i); rem 1024 drivers/tty/serial/pch_uart.c sg_dma_len(sg) = rem; rem 956 drivers/usb/dwc3/ep0.c u32 rem; rem 964 drivers/usb/dwc3/ep0.c rem = req->request.length % maxpacket; rem 977 drivers/usb/dwc3/ep0.c maxpacket - rem, rem 1068 drivers/usb/dwc3/gadget.c unsigned int rem = length % maxp; rem 1081 drivers/usb/dwc3/gadget.c if (rem && usb_endpoint_dir_out(dep->endpoint.desc) && !chain) { rem 1094 drivers/usb/dwc3/gadget.c maxp - rem, false, 1, rem 1124 drivers/usb/dwc3/gadget.c unsigned int rem = length % maxp; rem 1126 drivers/usb/dwc3/gadget.c if ((!length || rem) && usb_endpoint_dir_out(dep->endpoint.desc)) { rem 1138 drivers/usb/dwc3/gadget.c __dwc3_prepare_one_trb(dep, trb, dwc->bounce_addr, maxp - rem, rem 364 drivers/usb/gadget/function/f_mass_storage.c unsigned int rem; rem 367 drivers/usb/gadget/function/f_mass_storage.c rem = length % common->bulk_out_maxpacket; rem 368 drivers/usb/gadget/function/f_mass_storage.c if (rem > 0) rem 369 drivers/usb/gadget/function/f_mass_storage.c length += common->bulk_out_maxpacket - rem; rem 1027 drivers/usb/gadget/function/f_ncm.c const int rem = le16_to_cpu(ntb_parameters.wNdpInPayloadRemainder); rem 1054 drivers/usb/gadget/function/f_ncm.c div + rem + skb->len + rem 1064 drivers/usb/gadget/function/f_ncm.c dgram_pad = ALIGN(ncb_len, div) + rem - ncb_len; rem 1112 drivers/usb/gadget/function/f_ncm.c dgram_pad = ALIGN(ncb_len, div) + rem - ncb_len; rem 3266 drivers/usb/host/oxu210hp-hcd.c int num, rem; rem 3279 drivers/usb/host/oxu210hp-hcd.c rem = urb->transfer_buffer_length % 4096; rem 3280 drivers/usb/host/oxu210hp-hcd.c if (rem != 0) rem 3332 drivers/usb/host/oxu210hp-hcd.c murb->transfer_buffer_length = rem > 0 ? rem : 4096; rem 148 drivers/usb/serial/quatech2.c int divisor, rem; rem 151 drivers/usb/serial/quatech2.c rem = MAX_BAUD_RATE % baudrate; rem 153 drivers/usb/serial/quatech2.c if (((rem * 2) >= baudrate) && (baudrate != 110)) rem 791 drivers/video/fbdev/controlfb.c unsigned long rem; rem 795 drivers/video/fbdev/controlfb.c rem = m % l; rem 796 drivers/video/fbdev/controlfb.c if (n && (n < 128) && rem < min) { rem 799 drivers/video/fbdev/controlfb.c min = rem; rem 376 fs/affs/amigaffs.c s32 rem; rem 381 fs/affs/amigaffs.c days = div_s64_rem(secs, 86400, &rem); rem 382 fs/affs/amigaffs.c minute = rem / 60; rem 383 fs/affs/amigaffs.c rem -= minute * 60; rem 387 fs/affs/amigaffs.c ds->ticks = cpu_to_be32(rem * 50); rem 1462 fs/f2fs/gc.c __u32 rem; rem 1469 fs/f2fs/gc.c div_u64_rem(block_count, BLKS_PER_SEC(sbi), &rem); rem 1470 fs/f2fs/gc.c if (rem) rem 1945 fs/fuse/dev.c size_t rem; rem 1962 fs/fuse/dev.c rem = 0; rem 1963 fs/fuse/dev.c for (idx = 0; idx < pipe->nrbufs && rem < len; idx++) rem 1964 fs/fuse/dev.c rem += pipe->bufs[(pipe->curbuf + idx) & (pipe->buffers - 1)].len; rem 1967 fs/fuse/dev.c if (rem < len) rem 1970 fs/fuse/dev.c rem = len; rem 1971 fs/fuse/dev.c while (rem) { rem 1980 fs/fuse/dev.c if (rem >= ibuf->len) { rem 1991 fs/fuse/dev.c obuf->len = rem; rem 1996 fs/fuse/dev.c rem -= obuf->len; rem 932 fs/jffs2/readinode.c int rem = to_read % c->wbuf_pagesize; rem 934 fs/jffs2/readinode.c if (rem) rem 935 fs/jffs2/readinode.c to_read += c->wbuf_pagesize - rem; rem 1010 fs/jffs2/readinode.c int end, rem; rem 1020 fs/jffs2/readinode.c rem = end % c->wbuf_pagesize; rem 1021 fs/jffs2/readinode.c if (rem) rem 1022 fs/jffs2/readinode.c end += c->wbuf_pagesize - rem; rem 323 fs/jfs/jfs_dmap.c s64 lblkno, rem; rem 351 fs/jfs/jfs_dmap.c for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { rem 369 fs/jfs/jfs_dmap.c nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); rem 417 fs/jfs/jfs_dmap.c s64 lblkno, rem, lastlblkno; rem 444 fs/jfs/jfs_dmap.c for (rem = nblocks; rem > 0; rem -= nblks, blkno += nblks) { rem 466 fs/jfs/jfs_dmap.c nblks = min(rem, (s64)BPERDMAP - dbitno); rem 3200 fs/jfs/jfs_dmap.c s64 lblkno, rem; rem 3213 fs/jfs/jfs_dmap.c for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { rem 3231 fs/jfs/jfs_dmap.c nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); rem 1324 fs/jfs/jfs_imap.c int nwords, rem, i, agno; rem 1490 fs/jfs/jfs_imap.c rem = diFindFree(inosmap, 0); rem 1491 fs/jfs/jfs_imap.c extno = (sword << L2EXTSPERSUM) + rem; rem 1492 fs/jfs/jfs_imap.c rem = diFindFree(le32_to_cpu(iagp->wmap[extno]), rem 1494 fs/jfs/jfs_imap.c if (rem >= INOSPEREXT) { rem 1507 fs/jfs/jfs_imap.c ino = (extno << L2INOSPEREXT) + rem; rem 1537 fs/jfs/jfs_imap.c rem = diFindFree(extsmap, 0); rem 1538 fs/jfs/jfs_imap.c extno = (sword << L2EXTSPERSUM) + rem; rem 1765 fs/jfs/jfs_imap.c int iagno, ino, rc, rem, extno, sword; rem 1814 fs/jfs/jfs_imap.c rem = diFindFree(le32_to_cpu(iagp->inosmap[sword]), 0); rem 1815 fs/jfs/jfs_imap.c if (rem >= EXTSPERSUM) { rem 1821 fs/jfs/jfs_imap.c extno = (sword << L2EXTSPERSUM) + rem; rem 1825 fs/jfs/jfs_imap.c rem = diFindFree(le32_to_cpu(iagp->wmap[extno]), 0); rem 1826 fs/jfs/jfs_imap.c if (rem >= INOSPEREXT) { rem 1835 fs/jfs/jfs_imap.c ino = (extno << L2INOSPEREXT) + rem; rem 1889 fs/jfs/jfs_imap.c int rem, iagno, sword, extno, rc; rem 1936 fs/jfs/jfs_imap.c rem = diFindFree(le32_to_cpu(iagp->extsmap[sword]), 0); rem 1937 fs/jfs/jfs_imap.c if (rem >= EXTSPERSUM) { rem 1943 fs/jfs/jfs_imap.c extno = (sword << L2EXTSPERSUM) + rem; rem 59 fs/nfs/filelayout/filelayout.c u32 rem; rem 63 fs/nfs/filelayout/filelayout.c div_u64_rem(offset, flseg->stripe_unit, &rem); rem 65 fs/nfs/filelayout/filelayout.c return stripe_no * flseg->stripe_unit + rem; rem 284 fs/overlayfs/namei.c size_t rem = d->name.len - 1; rem 293 fs/overlayfs/namei.c const char *s = d->name.name + d->name.len - rem; rem 303 fs/overlayfs/namei.c d->name.len - rem, next, &base); rem 311 fs/overlayfs/namei.c rem -= thislen + 1; rem 313 fs/overlayfs/namei.c if (WARN_ON(rem >= d->name.len)) rem 15 fs/proc/uptime.c u32 rem; rem 23 fs/proc/uptime.c idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); rem 24 fs/proc/uptime.c idle.tv_nsec = rem; rem 318 fs/pstore/ram_core.c int rem; rem 331 fs/pstore/ram_core.c rem = prz->buffer_size - start; rem 332 fs/pstore/ram_core.c if (unlikely(rem < c)) { rem 333 fs/pstore/ram_core.c persistent_ram_update(prz, s, start, rem); rem 334 fs/pstore/ram_core.c s += rem; rem 335 fs/pstore/ram_core.c c -= rem; rem 348 fs/pstore/ram_core.c int rem, ret = 0, c = count; rem 362 fs/pstore/ram_core.c rem = prz->buffer_size - start; rem 363 fs/pstore/ram_core.c if (unlikely(rem < c)) { rem 364 fs/pstore/ram_core.c ret = persistent_ram_update_user(prz, s, start, rem); rem 365 fs/pstore/ram_core.c s += rem; rem 366 fs/pstore/ram_core.c c -= rem; rem 1021 fs/xfs/libxfs/xfs_rtbitmap.c xfs_rtblock_t rem; rem 1035 fs/xfs/libxfs/xfs_rtbitmap.c rem = high_rec->ar_startext - rtstart; rem 1036 fs/xfs/libxfs/xfs_rtbitmap.c while (rem) { rem 1058 fs/xfs/libxfs/xfs_rtbitmap.c rem -= rtend - rtstart + 1; rem 224 fs/xfs/libxfs/xfs_sb.c uint32_t rem; rem 285 fs/xfs/libxfs/xfs_sb.c agcount = div_u64_rem(sbp->sb_dblocks, sbp->sb_agblocks, &rem); rem 286 fs/xfs/libxfs/xfs_sb.c if (rem) rem 156 include/drm/drm_fixed.h u64 rem; rem 159 include/drm/drm_fixed.h u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); rem 166 include/drm/drm_fixed.h rem <<= 1; rem 168 include/drm/drm_fixed.h if (rem >= b_abs) { rem 170 include/drm/drm_fixed.h rem -= b_abs; rem 177 include/drm/drm_fixed.h u64 summand = (rem << 1) >= b_abs; rem 335 include/linux/hrtimer.h ktime_t rem = ktime_sub(timer->node.expires, now); rem 342 include/linux/hrtimer.h rem -= hrtimer_resolution; rem 343 include/linux/hrtimer.h return rem; rem 173 include/linux/kernel.h typeof(x) rem = (x) % (denom); \ rem 174 include/linux/kernel.h (quot * (numer)) + ((rem * (numer)) / (denom)); \ rem 833 include/net/netlink.h #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ rem 835 include/net/netlink.h nlmsg_attrlen(nlh, hdrlen), rem) rem 999 include/net/netlink.h #define nlmsg_for_each_msg(pos, head, len, rem) \ rem 1000 include/net/netlink.h for (pos = head, rem = len; \ rem 1001 include/net/netlink.h nlmsg_ok(pos, rem); \ rem 1002 include/net/netlink.h pos = nlmsg_next(pos, &(rem))) rem 1840 include/net/netlink.h #define nla_for_each_attr(pos, head, len, rem) \ rem 1841 include/net/netlink.h for (pos = head, rem = len; \ rem 1842 include/net/netlink.h nla_ok(pos, rem); \ rem 1843 include/net/netlink.h pos = nla_next(pos, &(rem))) rem 1851 include/net/netlink.h #define nla_for_each_nested(pos, nla, rem) \ rem 1852 include/net/netlink.h nla_for_each_attr(pos, nla_data(nla), nla_len(nla), rem) rem 1859 include/net/netlink.h static inline bool nla_is_last(const struct nlattr *nla, int rem) rem 1861 include/net/netlink.h return nla->nla_len == rem; rem 747 kernel/debug/kdb/kdb_support.c unsigned int rem, h_offset; rem 775 kernel/debug/kdb/kdb_support.c rem = best->size - size; rem 777 kernel/debug/kdb/kdb_support.c if (best->next == 0 && bestprev == NULL && rem < dah_overhead) rem 779 kernel/debug/kdb/kdb_support.c if (rem >= dah_overhead) { rem 784 kernel/debug/kdb/kdb_support.c h->size = rem - dah_overhead; rem 6157 kernel/events/core.c unsigned int rem; rem 6179 kernel/events/core.c rem = __output_copy_user(handle, (void *) sp, dump_size); rem 6181 kernel/events/core.c dyn_size = dump_size - rem; rem 6183 kernel/events/core.c perf_output_skip(handle, rem); rem 382 kernel/locking/lockdep_proc.c s32 rem; rem 385 kernel/locking/lockdep_proc.c div = div_s64_rem(nr, 1000, &rem); rem 386 kernel/locking/lockdep_proc.c snprintf(buf, bufsiz, "%lld.%02d", (long long)div, (int)rem/10); rem 7324 kernel/sched/core.c u32 rem; rem 7337 kernel/sched/core.c percent = div_u64_rem(percent, POW10(UCLAMP_PERCENT_SHIFT), &rem); rem 7338 kernel/sched/core.c seq_printf(sf, "%llu.%0*u\n", percent, UCLAMP_PERCENT_SHIFT, rem); rem 757 kernel/time/alarmtimer.c ktime_t rem; rem 759 kernel/time/alarmtimer.c rem = ktime_sub(absexp, alarm_bases[type].gettime()); rem 761 kernel/time/alarmtimer.c if (rem <= 0) rem 763 kernel/time/alarmtimer.c rmt = ktime_to_timespec64(rem); rem 1295 kernel/time/hrtimer.c ktime_t rem; rem 1299 kernel/time/hrtimer.c rem = hrtimer_expires_remaining_adjusted(timer); rem 1301 kernel/time/hrtimer.c rem = hrtimer_expires_remaining(timer); rem 1304 kernel/time/hrtimer.c return rem; rem 1888 kernel/time/hrtimer.c ktime_t rem = hrtimer_expires_remaining(&t->timer); rem 1891 kernel/time/hrtimer.c if (rem <= 0) rem 1893 kernel/time/hrtimer.c rmt = ktime_to_timespec64(rem); rem 31 kernel/time/itimer.c ktime_t rem = __hrtimer_get_remaining(timer, true); rem 39 kernel/time/itimer.c if (rem <= 0) rem 40 kernel/time/itimer.c rem = NSEC_PER_USEC; rem 42 kernel/time/itimer.c rem = 0; rem 44 kernel/time/itimer.c return ktime_to_timeval(rem); rem 404 kernel/time/ntp.c s32 rem; rem 415 kernel/time/ntp.c div_s64_rem(secs, SECS_PER_DAY, &rem); rem 416 kernel/time/ntp.c ntp_next_leap_sec = secs + SECS_PER_DAY - rem; rem 419 kernel/time/ntp.c div_s64_rem(secs + 1, SECS_PER_DAY, &rem); rem 420 kernel/time/ntp.c ntp_next_leap_sec = secs + SECS_PER_DAY - rem; rem 463 kernel/time/time.c s32 rem; rem 468 kernel/time/time.c ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); rem 469 kernel/time/time.c if (unlikely(rem < 0)) { rem 471 kernel/time/time.c rem += NSEC_PER_SEC; rem 473 kernel/time/time.c ts.tv_nsec = rem; rem 554 kernel/time/time.c s32 rem; rem 559 kernel/time/time.c ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); rem 560 kernel/time/time.c if (unlikely(rem < 0)) { rem 562 kernel/time/time.c rem += NSEC_PER_SEC; rem 564 kernel/time/time.c ts.tv_nsec = rem; rem 663 kernel/time/time.c u32 rem; rem 665 kernel/time/time.c NSEC_PER_SEC, &rem); rem 666 kernel/time/time.c value->tv_nsec = rem; rem 700 kernel/time/time.c u32 rem; rem 703 kernel/time/time.c NSEC_PER_SEC, &rem); rem 704 kernel/time/time.c value->tv_usec = rem / NSEC_PER_USEC; rem 80 kernel/time/timeconv.c long days, rem, y; rem 85 kernel/time/timeconv.c rem = remainder; rem 86 kernel/time/timeconv.c rem += offset; rem 87 kernel/time/timeconv.c while (rem < 0) { rem 88 kernel/time/timeconv.c rem += SECS_PER_DAY; rem 91 kernel/time/timeconv.c while (rem >= SECS_PER_DAY) { rem 92 kernel/time/timeconv.c rem -= SECS_PER_DAY; rem 96 kernel/time/timeconv.c result->tm_hour = rem / SECS_PER_HOUR; rem 97 kernel/time/timeconv.c rem %= SECS_PER_HOUR; rem 98 kernel/time/timeconv.c result->tm_min = rem / 60; rem 99 kernel/time/timeconv.c result->tm_sec = rem % 60; rem 1000 kernel/time/timekeeping.c u64 tmp, rem; rem 1002 kernel/time/timekeeping.c tmp = div64_u64_rem(*base, div, &rem); rem 1005 kernel/time/timekeeping.c ((int)sizeof(u64)*8 - fls64(mult) < fls64(rem))) rem 1008 kernel/time/timekeeping.c rem *= mult; rem 1010 kernel/time/timekeeping.c do_div(rem, div); rem 1011 kernel/time/timekeeping.c *base = tmp + rem; rem 276 kernel/time/timer.c int rem; rem 289 kernel/time/timer.c rem = j % HZ; rem 298 kernel/time/timer.c if (rem < HZ/4 && !force_up) /* round down */ rem 299 kernel/time/timer.c j = j - rem; rem 301 kernel/time/timer.c j = j - rem + HZ; rem 6117 kernel/trace/trace.c tracing_fill_pipe_page(size_t rem, struct trace_iterator *iter) rem 6144 kernel/trace/trace.c if (rem < count) { rem 6145 kernel/trace/trace.c rem = 0; rem 6152 kernel/trace/trace.c rem -= count; rem 6154 kernel/trace/trace.c rem = 0; rem 6160 kernel/trace/trace.c return rem; rem 6181 kernel/trace/trace.c size_t rem; rem 6209 kernel/trace/trace.c for (i = 0, rem = len; i < spd.nr_pages_max && rem; i++) { rem 6214 kernel/trace/trace.c rem = tracing_fill_pipe_page(rem, iter); rem 447 lib/bch.c int rem, c, r, p, k, param[BCH_MAX_M]; rem 454 lib/bch.c rem = 0; rem 464 lib/bch.c rem = r+1; rem 468 lib/bch.c if (rem) { rem 471 lib/bch.c for (r = rem; r < m; r++) { rem 105 lib/bitmap.c unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; rem 114 lib/bitmap.c if (!rem || off + k + 1 >= lim) rem 120 lib/bitmap.c upper <<= (BITS_PER_LONG - rem); rem 125 lib/bitmap.c lower >>= rem; rem 151 lib/bitmap.c unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; rem 159 lib/bitmap.c if (rem && k > 0) rem 160 lib/bitmap.c lower = src[k - 1] >> (BITS_PER_LONG - rem); rem 163 lib/bitmap.c upper = src[k] << rem; rem 659 lib/iov_iter.c unsigned long rem; rem 661 lib/iov_iter.c rem = memcpy_mcsafe_to_page(pipe->bufs[idx].page, off, addr, rem 664 lib/iov_iter.c i->iov_offset = off + chunk - rem; rem 665 lib/iov_iter.c xfer += chunk - rem; rem 666 lib/iov_iter.c if (rem) rem 704 lib/iov_iter.c unsigned long rem, curr_addr, s_addr = (unsigned long) addr; rem 713 lib/iov_iter.c rem = memcpy_mcsafe_to_page(v.bv_page, v.bv_offset, rem 715 lib/iov_iter.c if (rem) { rem 717 lib/iov_iter.c bytes = curr_addr - s_addr - rem; rem 722 lib/iov_iter.c rem = memcpy_mcsafe(v.iov_base, (from += v.iov_len) - v.iov_len, rem 724 lib/iov_iter.c if (rem) { rem 726 lib/iov_iter.c bytes = curr_addr - s_addr - rem; rem 31 lib/math/div64.c uint64_t rem = *n; rem 34 lib/math/div64.c uint32_t high = rem >> 32; rem 41 lib/math/div64.c rem -= (uint64_t) (high*base) << 32; rem 44 lib/math/div64.c while ((int64_t)b > 0 && b < rem) { rem 50 lib/math/div64.c if (rem >= b) { rem 51 lib/math/div64.c rem -= b; rem 59 lib/math/div64.c return rem; rem 76 lib/nlattr.c int rem; rem 78 lib/nlattr.c nla_for_each_attr(entry, head, len, rem) { rem 364 lib/nlattr.c int rem; rem 369 lib/nlattr.c nla_for_each_attr(nla, head, len, rem) { rem 392 lib/nlattr.c if (unlikely(rem > 0)) { rem 394 lib/nlattr.c rem, current->comm); rem 494 lib/nlattr.c int rem; rem 496 lib/nlattr.c nla_for_each_attr(nla, head, len, rem) rem 112 lib/random32.c u32 rem = prandom_u32_state(state); rem 114 lib/random32.c *ptr++ = (u8) rem; rem 116 lib/random32.c rem >>= BITS_PER_BYTE; rem 3279 mm/slub.c unsigned int rem; rem 3281 mm/slub.c rem = slab_size % size; rem 3283 mm/slub.c if (rem <= slab_size / fract_leftover) rem 111 net/8021q/vlan_netlink.c int rem, err; rem 120 net/8021q/vlan_netlink.c nla_for_each_nested(attr, data[IFLA_VLAN_INGRESS_QOS], rem) { rem 126 net/8021q/vlan_netlink.c nla_for_each_nested(attr, data[IFLA_VLAN_EGRESS_QOS], rem) { rem 623 net/bridge/br_netlink.c int err = 0, rem; rem 625 net/bridge/br_netlink.c nla_for_each_nested(attr, af_spec, rem) { rem 8014 net/core/devlink.c int rem, err; rem 8025 net/core/devlink.c nla_for_each_attr(nlattr, (void *)msg->data, msg->len, rem) { rem 2142 net/core/rtnetlink.c int rem, err; rem 2144 net/core/rtnetlink.c nla_for_each_nested(af, tb[IFLA_AF_SPEC], rem) { rem 2225 net/core/rtnetlink.c int rem, len = 0; rem 2231 net/core/rtnetlink.c nla_for_each_nested(attr, tb[IFLA_VF_VLAN_LIST], rem) { rem 2592 net/core/rtnetlink.c int rem; rem 2594 net/core/rtnetlink.c nla_for_each_nested(attr, tb[IFLA_VFINFO_LIST], rem) { rem 2618 net/core/rtnetlink.c int rem; rem 2624 net/core/rtnetlink.c nla_for_each_nested(attr, tb[IFLA_VF_PORTS], rem) { rem 2668 net/core/rtnetlink.c int rem; rem 2670 net/core/rtnetlink.c nla_for_each_nested(af, tb[IFLA_AF_SPEC], rem) { rem 4557 net/core/rtnetlink.c int rem, err = -EOPNOTSUPP; rem 4576 net/core/rtnetlink.c nla_for_each_nested(attr, br_spec, rem) { rem 4634 net/core/rtnetlink.c int rem, err = -EOPNOTSUPP; rem 4653 net/core/rtnetlink.c nla_for_each_nested(attr, br_spec, rem) { rem 1485 net/dcb/dcbnl.c int rem; rem 1487 net/dcb/dcbnl.c nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) { rem 1546 net/dcb/dcbnl.c int rem; rem 1548 net/dcb/dcbnl.c nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) { rem 299 net/decnet/dn_fib.c int rem; rem 301 net/decnet/dn_fib.c nla_for_each_nested(attr, attrs[RTA_METRICS], rem) { rem 527 net/decnet/dn_nsp_out.c int ddl, unsigned char *dd, __le16 rem, __le16 loc) rem 533 net/decnet/dn_nsp_out.c if ((dst == NULL) || (rem == 0)) { rem 535 net/decnet/dn_nsp_out.c le16_to_cpu(rem), dst); rem 544 net/decnet/dn_nsp_out.c *(__le16 *)msg = rem; rem 1957 net/ipv4/devinet.c int err, rem; rem 1968 net/ipv4/devinet.c nla_for_each_nested(a, tb[IFLA_INET_CONF], rem) { rem 1986 net/ipv4/devinet.c int rem; rem 1995 net/ipv4/devinet.c nla_for_each_nested(a, tb[IFLA_INET_CONF], rem) rem 2671 net/ipv4/ipmr.c int ret, rem; rem 2689 net/ipv4/ipmr.c nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), rem) { rem 873 net/mac80211/tx.c int rem = skb->len - hdrlen - per_fragm; rem 875 net/mac80211/tx.c if (WARN_ON(rem < 0)) rem 880 net/mac80211/tx.c while (rem) { rem 883 net/mac80211/tx.c if (fraglen > rem) rem 884 net/mac80211/tx.c fraglen = rem; rem 885 net/mac80211/tx.c rem -= fraglen; rem 905 net/mac80211/tx.c if (rem) rem 1293 net/netfilter/ipset/ip_set_core.c int rem; rem 1296 net/netfilter/ipset/ip_set_core.c nlmsg_for_each_attr(attr, nlh, sizeof(struct nfgenmsg), rem) { rem 2733 net/netfilter/nf_tables_api.c int err, rem; rem 2802 net/netfilter/nf_tables_api.c nla_for_each_nested(tmp, nla[NFTA_RULE_EXPRESSIONS], rem) { rem 4337 net/netfilter/nf_tables_api.c int rem, err = 0; rem 4367 net/netfilter/nf_tables_api.c nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) { rem 4732 net/netfilter/nf_tables_api.c int rem, err; rem 4750 net/netfilter/nf_tables_api.c nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) { rem 4929 net/netfilter/nf_tables_api.c int rem, err = 0; rem 4952 net/netfilter/nf_tables_api.c nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) { rem 5681 net/netfilter/nf_tables_api.c int rem, n = 0, err; rem 5683 net/netfilter/nf_tables_api.c nla_for_each_nested(tmp, attr, rem) { rem 1141 net/nfc/netlink.c int rc = 0, rem; rem 1173 net/nfc/netlink.c nla_for_each_nested(attr, info->attrs[NFC_ATTR_LLC_SDP], rem) { rem 917 net/openvswitch/actions.c int rem; rem 923 net/openvswitch/actions.c for (a = nla_data(attr), rem = nla_len(attr); rem > 0; rem 924 net/openvswitch/actions.c a = nla_next(a, &rem)) { rem 973 net/openvswitch/actions.c int rem = nla_len(attr); rem 980 net/openvswitch/actions.c actions = nla_next(sample_arg, &rem); rem 990 net/openvswitch/actions.c return clone_execute(dp, skb, key, 0, actions, rem, last, rem 1004 net/openvswitch/actions.c int rem = nla_len(attr); rem 1010 net/openvswitch/actions.c actions = nla_next(clone_arg, &rem); rem 1012 net/openvswitch/actions.c return clone_execute(dp, skb, key, 0, actions, rem, last, rem 1151 net/openvswitch/actions.c int rem = nla_len(attr); rem 1164 net/openvswitch/actions.c actions = nla_next(cpl_arg, &rem); rem 1170 net/openvswitch/actions.c actions = nla_next(cpl_arg, &rem); rem 1171 net/openvswitch/actions.c actions = nla_next(actions, &rem); rem 1185 net/openvswitch/actions.c int rem; rem 1187 net/openvswitch/actions.c for (a = attr, rem = len; rem > 0; rem 1188 net/openvswitch/actions.c a = nla_next(a, &rem)) { rem 1200 net/openvswitch/actions.c if (nla_is_last(a, rem)) { rem 1249 net/openvswitch/actions.c bool last = nla_is_last(a, rem); rem 1272 net/openvswitch/actions.c bool last = nla_is_last(a, rem); rem 1332 net/openvswitch/actions.c bool last = nla_is_last(a, rem); rem 1342 net/openvswitch/actions.c bool last = nla_is_last(a, rem); rem 1364 net/openvswitch/conntrack.c int rem; rem 1369 net/openvswitch/conntrack.c nla_for_each_nested(a, attr, rem) { rem 1452 net/openvswitch/conntrack.c if (rem > 0) { rem 1453 net/openvswitch/conntrack.c OVS_NLERR(log, "NAT attribute has %d unknown bytes", rem); rem 1510 net/openvswitch/conntrack.c int rem; rem 1512 net/openvswitch/conntrack.c nla_for_each_nested(a, attr, rem) { rem 1620 net/openvswitch/conntrack.c if (rem > 0) { rem 1621 net/openvswitch/conntrack.c OVS_NLERR(log, "Conntrack attr has %d unknown bytes", rem); rem 1938 net/openvswitch/conntrack.c int rem; rem 1941 net/openvswitch/conntrack.c rem = NLA_ALIGN(nla_len(nla_zone_limit)); rem 1944 net/openvswitch/conntrack.c while (rem >= sizeof(*zone_limit)) { rem 1967 net/openvswitch/conntrack.c rem -= NLA_ALIGN(sizeof(*zone_limit)); rem 1972 net/openvswitch/conntrack.c if (rem) rem 1973 net/openvswitch/conntrack.c OVS_NLERR(true, "set zone limit has %d unknown bytes", rem); rem 1982 net/openvswitch/conntrack.c int rem; rem 1985 net/openvswitch/conntrack.c rem = NLA_ALIGN(nla_len(nla_zone_limit)); rem 1988 net/openvswitch/conntrack.c while (rem >= sizeof(*zone_limit)) { rem 2002 net/openvswitch/conntrack.c rem -= NLA_ALIGN(sizeof(*zone_limit)); rem 2007 net/openvswitch/conntrack.c if (rem) rem 2008 net/openvswitch/conntrack.c OVS_NLERR(true, "del zone limit has %d unknown bytes", rem); rem 2052 net/openvswitch/conntrack.c int rem, err; rem 2056 net/openvswitch/conntrack.c rem = NLA_ALIGN(nla_len(nla_zone_limit)); rem 2059 net/openvswitch/conntrack.c while (rem >= sizeof(*zone_limit)) { rem 2078 net/openvswitch/conntrack.c rem -= NLA_ALIGN(sizeof(*zone_limit)); rem 2083 net/openvswitch/conntrack.c if (rem) rem 2084 net/openvswitch/conntrack.c OVS_NLERR(true, "get zone limit has %d unknown bytes", rem); rem 54 net/openvswitch/flow_netlink.c int rem; rem 56 net/openvswitch/flow_netlink.c nla_for_each_nested(nla, actions, rem) { rem 467 net/openvswitch/flow_netlink.c int rem; rem 470 net/openvswitch/flow_netlink.c nla_for_each_nested(nla, attr, rem) { rem 497 net/openvswitch/flow_netlink.c if (rem) { rem 498 net/openvswitch/flow_netlink.c OVS_NLERR(log, "Message has %d unknown bytes.", rem); rem 575 net/openvswitch/flow_netlink.c int rem; rem 582 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { rem 609 net/openvswitch/flow_netlink.c if (rem) { rem 611 net/openvswitch/flow_netlink.c rem); rem 662 net/openvswitch/flow_netlink.c int rem; rem 664 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { rem 793 net/openvswitch/flow_netlink.c if (rem > 0) { rem 795 net/openvswitch/flow_netlink.c rem); rem 1284 net/openvswitch/flow_netlink.c int rem; rem 1294 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { rem 1338 net/openvswitch/flow_netlink.c int rem; rem 1342 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { rem 1379 net/openvswitch/flow_netlink.c int rem; rem 1389 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { rem 1461 net/openvswitch/flow_netlink.c if (rem > 0) { rem 1462 net/openvswitch/flow_netlink.c OVS_NLERR(log, "nsh attribute has %d unknown bytes.", rem); rem 1723 net/openvswitch/flow_netlink.c int rem; rem 1726 net/openvswitch/flow_netlink.c nla_for_each_nested(nla, attr, rem) { rem 2285 net/openvswitch/flow_netlink.c int rem; rem 2290 net/openvswitch/flow_netlink.c nla_for_each_attr(a, sf_acts->actions, sf_acts->actions_len, rem) { rem 2420 net/openvswitch/flow_netlink.c int rem, start, err; rem 2424 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { rem 2430 net/openvswitch/flow_netlink.c if (rem) rem 2959 net/openvswitch/flow_netlink.c int rem, err; rem 2961 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { rem 3105 net/openvswitch/flow_netlink.c bool last = nla_is_last(a, rem); rem 3175 net/openvswitch/flow_netlink.c bool last = nla_is_last(a, rem); rem 3187 net/openvswitch/flow_netlink.c bool last = nla_is_last(a, rem); rem 3210 net/openvswitch/flow_netlink.c if (rem > 0) rem 3240 net/openvswitch/flow_netlink.c int err = 0, rem = nla_len(attr); rem 3250 net/openvswitch/flow_netlink.c actions = nla_next(sample_arg, &rem); rem 3263 net/openvswitch/flow_netlink.c err = ovs_nla_put_actions(actions, rem, skb); rem 3281 net/openvswitch/flow_netlink.c int err = 0, rem = nla_len(attr); rem 3287 net/openvswitch/flow_netlink.c err = ovs_nla_put_actions(nla_data(attr), rem, skb); rem 3303 net/openvswitch/flow_netlink.c int err = 0, rem = nla_len(attr); rem 3323 net/openvswitch/flow_netlink.c a = nla_next(cpl_arg, &rem); rem 3342 net/openvswitch/flow_netlink.c a = nla_next(a, &rem); rem 3424 net/openvswitch/flow_netlink.c int rem, err; rem 3426 net/openvswitch/flow_netlink.c nla_for_each_attr(a, attr, len, rem) { rem 191 net/openvswitch/meter.c int rem; rem 201 net/openvswitch/meter.c nla_for_each_nested(nla, a[OVS_METER_ATTR_BANDS], rem) rem 223 net/openvswitch/meter.c nla_for_each_nested(nla, a[OVS_METER_ATTR_BANDS], rem) { rem 71 net/rds/page.c struct rds_page_remainder *rem; rem 90 net/rds/page.c rem = &per_cpu(rds_page_remainders, get_cpu()); rem 95 net/rds/page.c if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { rem 97 net/rds/page.c __free_page(rem->r_page); rem 98 net/rds/page.c rem->r_page = NULL; rem 102 net/rds/page.c if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) { rem 103 net/rds/page.c sg_set_page(scat, rem->r_page, bytes, rem->r_offset); rem 106 net/rds/page.c if (rem->r_offset != 0) rem 109 net/rds/page.c rem->r_offset += ALIGN(bytes, 8); rem 110 net/rds/page.c if (rem->r_offset >= PAGE_SIZE) { rem 111 net/rds/page.c __free_page(rem->r_page); rem 112 net/rds/page.c rem->r_page = NULL; rem 124 net/rds/page.c rem = &per_cpu(rds_page_remainders, get_cpu()); rem 133 net/rds/page.c if (rem->r_page) { rem 139 net/rds/page.c rem->r_page = page; rem 140 net/rds/page.c rem->r_offset = 0; rem 158 net/rds/page.c struct rds_page_remainder *rem; rem 160 net/rds/page.c rem = &per_cpu(rds_page_remainders, cpu); rem 163 net/rds/page.c if (rem->r_page) rem 164 net/rds/page.c __free_page(rem->r_page); rem 165 net/rds/page.c rem->r_page = NULL; rem 44 net/sched/act_pedit.c int rem; rem 55 net/sched/act_pedit.c nla_for_each_nested(ka, nla, rem) { rem 122 net/sched/act_tunnel_key.c int err, rem, opt_len, len = nla_len(nla), opts_len = 0; rem 130 net/sched/act_tunnel_key.c nla_for_each_attr(attr, head, len, rem) { rem 155 net/sched/act_tunnel_key.c if (rem > 0) { rem 548 net/sched/sch_gred.c int rem; rem 550 net/sched/sch_gred.c nla_for_each_nested(attr, vqs, rem) { rem 607 net/sched/sch_gred.c int rem, err; rem 614 net/sched/sch_gred.c nla_for_each_nested(attr, vqs, rem) { rem 627 net/sched/sch_gred.c if (rem > 0) { rem 144 net/sched/sch_mqprio.c int rem; rem 192 net/sched/sch_mqprio.c rem) { rem 208 net/sched/sch_mqprio.c rem) { rem 866 net/sched/sch_netem.c int rem; rem 868 net/sched/sch_netem.c nla_for_each_nested(la, attr, rem) { rem 830 net/sched/sch_taprio.c int err, rem; rem 836 net/sched/sch_taprio.c nla_for_each_nested(n, list, rem) { rem 125 net/tipc/netlink_compat.c u32 rem; rem 130 net/tipc/netlink_compat.c rem = tipc_skb_tailroom(skb); rem 137 net/tipc/netlink_compat.c n = vscnprintf(buf, rem, fmt, args); rem 205 net/tipc/netlink_compat.c int rem; rem 209 net/tipc/netlink_compat.c nlmsg_for_each_msg(nlmsg, nlmsg_hdr(buf), len, rem) { rem 1202 net/wireless/nl80211.c int rem, err, def = 0; rem 1205 net/wireless/nl80211.c nla_for_each_nested(key, keys, rem) { rem 1219 net/wireless/nl80211.c nla_for_each_nested(key, keys, rem) { rem 4242 net/wireless/nl80211.c int rem, i; rem 4275 net/wireless/nl80211.c nla_for_each_nested(tx_rates, info->attrs[NL80211_ATTR_TX_RATES], rem) { rem 11634 net/wireless/nl80211.c int rem, pat_len, mask_len, pkt_offset; rem 11640 net/wireless/nl80211.c rem) rem 11655 net/wireless/nl80211.c rem) { rem 11872 net/wireless/nl80211.c int rem, pat_len, mask_len, pkt_offset, n_patterns = 0; rem 11894 net/wireless/nl80211.c rem) rem 11908 net/wireless/nl80211.c rem) { rem 12282 net/wireless/nl80211.c int len = 0, n_entries = 0, rem; rem 12284 net/wireless/nl80211.c nla_for_each_nested(attr, filter_attr, rem) { rem 12300 net/wireless/nl80211.c int n_entries, rem, i; rem 12314 net/wireless/nl80211.c nla_for_each_nested(attr, attr_filter, rem) { rem 12482 net/wireless/nl80211.c int n_entries, rem, i = 0; rem 12504 net/wireless/nl80211.c nla_for_each_nested(attr, mac_attr, rem) rem 140 net/wireless/pmsr.c int err, rem; rem 191 net/wireless/pmsr.c nla_for_each_nested(treq, req[NL80211_PMSR_REQ_ATTR_DATA], rem) { rem 216 net/wireless/pmsr.c int count, rem, err, idx; rem 230 net/wireless/pmsr.c nla_for_each_nested(peer, peers, rem) { rem 266 net/wireless/pmsr.c nla_for_each_nested(peer, peers, rem) { rem 2308 net/wireless/scan.c int rem, i, sig; rem 2386 net/wireless/scan.c rem = ies->len; rem 2389 net/wireless/scan.c while (rem >= 2) { rem 2391 net/wireless/scan.c if (ie[1] > rem - 2) rem 2511 net/wireless/scan.c rem -= ie[1] + 2; rem 13 samples/bpf/hash_func01.h int rem; rem 17 samples/bpf/hash_func01.h rem = len & 3; rem 31 samples/bpf/hash_func01.h switch (rem) { rem 219 scripts/dtc/checks.c int rem, l; rem 229 scripts/dtc/checks.c rem = prop->val.len; rem 230 scripts/dtc/checks.c while (rem > 0) { rem 231 scripts/dtc/checks.c l = strnlen(str, rem); rem 232 scripts/dtc/checks.c if (l == rem) { rem 236 scripts/dtc/checks.c rem -= l + 1; rem 931 sound/pci/cmipci.c unsigned int reg, rem, tries; rem 938 sound/pci/cmipci.c rem = snd_cmipci_read_w(cm, reg); rem 939 sound/pci/cmipci.c if (rem < rec->dma_size) rem 942 sound/pci/cmipci.c dev_err(cm->card->dev, "invalid PCM pointer: %#x\n", rem); rem 945 sound/pci/cmipci.c ptr = (rec->dma_size - (rem + 1)) >> rec->shift; rem 355 sound/pci/hda/hda_controller.c u64 rem; rem 357 sound/pci/hda/hda_controller.c rem = do_div(base, den); rem 360 sound/pci/hda/hda_controller.c rem *= num; rem 362 sound/pci/hda/hda_controller.c do_div(rem, den); rem 364 sound/pci/hda/hda_controller.c return base + rem; rem 150 sound/soc/meson/axg-spdifin.c unsigned int reg, shift, rem; rem 152 sound/soc/meson/axg-spdifin.c rem = do_div(offset, num_per_reg); rem 155 sound/soc/meson/axg-spdifin.c shift = width * (num_per_reg - 1 - rem); rem 74 sound/soc/sof/trace.c unsigned long rem; rem 106 sound/soc/sof/trace.c rem = copy_to_user(buffer, ((u8 *)(dfse->buf) + lpos), count); rem 107 sound/soc/sof/trace.c if (rem) rem 1082 sound/soc/ti/davinci-mcasp.c int rem = sysclk_freq % bclk_freq; rem 1094 sound/soc/ti/davinci-mcasp.c rem = sysclk_freq % bclk_freq; rem 1101 sound/soc/ti/davinci-mcasp.c if (rem != 0) { rem 1106 sound/soc/ti/davinci-mcasp.c rem = rem - bclk_freq; rem 1109 sound/soc/ti/davinci-mcasp.c error_ppm = (div*1000000 + (int)div64_long(1000000LL*rem, rem 107 tools/lib/bpf/nlattr.c int rem, err; rem 111 tools/lib/bpf/nlattr.c libbpf_nla_for_each_attr(nla, head, len, rem) { rem 60 tools/lib/bpf/nlattr.h #define libbpf_nla_for_each_attr(pos, head, len, rem) \ rem 61 tools/lib/bpf/nlattr.h for (pos = head, rem = len; \ rem 62 tools/lib/bpf/nlattr.h nla_ok(pos, rem); \ rem 63 tools/lib/bpf/nlattr.h pos = nla_next(pos, &(rem))) rem 66 tools/perf/arch/x86/tests/rdpmc.c u64 quot, rem; rem 69 tools/perf/arch/x86/tests/rdpmc.c rem = cyc & (((u64)1 << time_shift) - 1); rem 71 tools/perf/arch/x86/tests/rdpmc.c ((rem * time_mult) >> time_shift); rem 78 tools/perf/arch/x86/tests/rdpmc.c rem = count % running; rem 79 tools/perf/arch/x86/tests/rdpmc.c count = quot * enabled + (rem * enabled) / running; rem 18 tools/perf/bench/mem-memcpy-x86-64-lib.c unsigned long rem = __memcpy_mcsafe(to, from, 1); rem 20 tools/perf/bench/mem-memcpy-x86-64-lib.c if (rem) rem 1284 tools/perf/util/auxtrace.c u64 rem = (0ULL - mm->len) % mm->len; rem 1286 tools/perf/util/auxtrace.c offset = head - size - rem; rem 2751 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c size_t *rem) rem 2763 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c *rem = len; rem 2987 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c size_t rem; rem 2994 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c !intel_pt_next_tsc(buf, len, &tsc, &rem)) rem 3064 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c size_t rem; rem 3066 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (!intel_pt_next_tsc(buf, len, &tsc, &rem)) rem 841 tools/perf/util/intel-pt.c u64 quot, rem; rem 844 tools/perf/util/intel-pt.c rem = ns % pt->tc.time_mult; rem 845 tools/perf/util/intel-pt.c return (quot << pt->tc.time_shift) + (rem << pt->tc.time_shift) / rem 9 tools/perf/util/tsc.c u64 t, quot, rem; rem 13 tools/perf/util/tsc.c rem = t % tc->time_mult; rem 15 tools/perf/util/tsc.c (rem << tc->time_shift) / tc->time_mult; rem 20 tools/perf/util/tsc.c u64 quot, rem; rem 23 tools/perf/util/tsc.c rem = cyc & (((u64)1 << tc->time_shift) - 1); rem 25 tools/perf/util/tsc.c ((rem * tc->time_mult) >> tc->time_shift); rem 3073 tools/testing/nvdimm/test/nfit.c size_t size, unsigned long rem) rem 3077 tools/testing/nvdimm/test/nfit.c for (i = 0; i < size - rem; i++) rem 3084 tools/testing/nvdimm/test/nfit.c for (i = size - rem; i < size; i++) rem 3110 tools/testing/nvdimm/test/nfit.c unsigned long expect, rem; rem 3139 tools/testing/nvdimm/test/nfit.c rem = __memcpy_mcsafe(dst, src, 512); rem 3141 tools/testing/nvdimm/test/nfit.c if (rem == expect && valid) rem 3147 tools/testing/nvdimm/test/nfit.c 512, i, rem, valid ? "valid" : "bad",