/linux/net/rds/ |
A D | page.c | 95 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc() 98 rem->r_page = NULL; in rds_page_remainder_alloc() 102 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc() 103 sg_set_page(scat, rem->r_page, bytes, rem->r_offset); in rds_page_remainder_alloc() 106 if (rem->r_offset != 0) in rds_page_remainder_alloc() 112 rem->r_page = NULL; in rds_page_remainder_alloc() 133 if (rem->r_page) { in rds_page_remainder_alloc() 139 rem->r_page = page; in rds_page_remainder_alloc() 140 rem->r_offset = 0; in rds_page_remainder_alloc() 163 if (rem->r_page) in rds_page_exit() [all …]
|
/linux/lib/mpi/ |
A D | mpi-div.c | 29 if (rem == divisor) { in mpi_fdiv_r() 37 mpi_add(rem, rem, divisor); in mpi_fdiv_r() 64 mpi_add(rem, rem, divisor); in mpi_fdiv_qr() 102 mpi_resize(rem, rsize); in mpi_tdiv_qr() 106 if (num != rem) { in mpi_tdiv_qr() 107 rem->nlimbs = num->nlimbs; in mpi_tdiv_qr() 108 rem->sign = num->sign; in mpi_tdiv_qr() 127 rp = rem->d; in mpi_tdiv_qr() 142 rem->nlimbs = rsize; in mpi_tdiv_qr() 228 rem->nlimbs = rsize; in mpi_tdiv_qr() [all …]
|
/linux/kernel/time/ |
A D | timeconv.c | 52 long days, rem; in time64_to_tm() local 56 rem = remainder; in time64_to_tm() 57 rem += offset; in time64_to_tm() 58 while (rem < 0) { in time64_to_tm() 59 rem += SECS_PER_DAY; in time64_to_tm() 62 while (rem >= SECS_PER_DAY) { in time64_to_tm() 63 rem -= SECS_PER_DAY; in time64_to_tm() 67 result->tm_hour = rem / SECS_PER_HOUR; in time64_to_tm() 68 rem %= SECS_PER_HOUR; in time64_to_tm() 69 result->tm_min = rem / 60; in time64_to_tm() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/falcon/ |
A D | v1.c | 32 u8 rem = size % 4; in nvkm_falcon_v1_load_imem() local 36 size -= rem; in nvkm_falcon_v1_load_imem() 51 if (rem) { in nvkm_falcon_v1_load_imem() 74 size -= rem; in nvkm_falcon_v1_load_emem() 84 if (rem) { in nvkm_falcon_v1_load_emem() 105 size -= rem; in nvkm_falcon_v1_load_dmem() 115 if (rem) { in nvkm_falcon_v1_load_dmem() 130 size -= rem; in nvkm_falcon_v1_read_emem() 140 if (rem) { in nvkm_falcon_v1_read_emem() 162 size -= rem; in nvkm_falcon_v1_read_dmem() [all …]
|
/linux/lib/math/ |
A D | div64.c | 33 uint64_t rem = *n; in __div64_32() local 36 uint32_t high = rem >> 32; in __div64_32() 43 rem -= (uint64_t) (high*base) << 32; in __div64_32() 46 while ((int64_t)b > 0 && b < rem) { in __div64_32() 52 if (rem >= b) { in __div64_32() 53 rem -= b; in __div64_32() 61 return rem; in __div64_32() 199 u64 res = 0, div, rem; in mul_u64_u64_div_u64() local 219 div = div64_u64_rem(b, c, &rem); in mul_u64_u64_div_u64() 221 b = rem; in mul_u64_u64_div_u64()
|
/linux/tools/testing/selftests/timens/ |
A D | clock_nanosleep.c | 26 struct timespec *now, *rem; member 36 clock_nanosleep(args->clockid, args->abs ? TIMER_ABSTIME : 0, args->now, args->rem); in call_nanosleep() 43 struct timespec now = {}, rem; in run_test() local 44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid}; in run_test() 104 if (rem.tv_sec < 3300 || rem.tv_sec > 3900) { in run_test() 106 clockid, abs, rem.tv_sec); in run_test()
|
/linux/drivers/gpu/drm/msm/ |
A D | msm_perf.c | 63 int rem = sizeof(perf->buf); in refill_buf() local 68 n = snprintf(ptr, rem, "%%BUSY"); in refill_buf() 70 rem -= n; in refill_buf() 74 n = snprintf(ptr, rem, "\t%s", perfcntr->name); in refill_buf() 76 rem -= n; in refill_buf() 96 n = snprintf(ptr, rem, "%3d.%d%%", val / 10, val % 10); in refill_buf() 98 rem -= n; in refill_buf() 103 n = snprintf(ptr, rem, "\t%5d.%02d", in refill_buf() 106 rem -= n; in refill_buf() 110 n = snprintf(ptr, rem, "\n"); in refill_buf() [all …]
|
/linux/drivers/platform/surface/aggregator/ |
A D | ssh_parser.c | 69 bool sshp_find_syn(const struct ssam_span *src, struct ssam_span *rem) in sshp_find_syn() argument 75 rem->ptr = src->ptr + i; in sshp_find_syn() 76 rem->len = src->len - i; in sshp_find_syn() 82 rem->ptr = src->ptr + src->len - 1; in sshp_find_syn() 83 rem->len = 1; in sshp_find_syn() 87 rem->ptr = src->ptr + src->len; in sshp_find_syn() 88 rem->len = 0; in sshp_find_syn()
|
/linux/drivers/misc/mei/ |
A D | dma-ring.c | 171 u32 rd_idx, rem, slots; in mei_dma_ring_read() local 191 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read() 194 rem = slots; in mei_dma_ring_read() 197 mei_dma_copy_from(dev, buf, rd_idx, rem); in mei_dma_ring_read() 248 u32 wr_idx, rem, slots; in mei_dma_ring_write() local 260 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write() 263 rem = slots; in mei_dma_ring_write() 266 mei_dma_copy_to(dev, buf, wr_idx, rem); in mei_dma_ring_write()
|
/linux/arch/mips/lib/ |
A D | memcpy.S | 284 #define rem t8 macro 319 and rem, len, (8*NBYTES-1) # rem = len % (8*NBYTES) 346 bne len, rem, 1b 356 and rem, len, (NBYTES-1) # rem = len % NBYTES 389 bne rem, len, 1b 408 SLL rem, len, 3 # rem = number of bits to keep 425 #define match rem 443 and rem, len, (4*NBYTES-1) # rem = len % 4*NBYTES 474 bne len, rem, 1b 479 and rem, len, NBYTES-1 # rem = len % NBYTES [all …]
|
A D | csum_partial.S | 508 #define rem t7 macro 512 and rem, len, (NBYTES-1) # rem = len % NBYTES 538 beq rem, len, .Lcopy_bytes\@ 548 bne rem, len, 1b 566 SLL rem, len, 3 # rem = number of bits to keep 586 #define match rem 606 and rem, len, (4*NBYTES-1) # rem = len % 4*NBYTES 637 bne len, rem, 1b 642 and rem, len, NBYTES-1 # rem = len % NBYTES 643 beq rem, len, .Lcopy_bytes\@ [all …]
|
/linux/arch/m68k/mac/ |
A D | misc.c | 557 int days, rem, y, wday, yday; in unmktime() local 560 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime() 561 rem += offset; in unmktime() 562 while (rem < 0) { in unmktime() 563 rem += SECS_PER_DAY; in unmktime() 566 while (rem >= SECS_PER_DAY) { in unmktime() 567 rem -= SECS_PER_DAY; in unmktime() 570 *hourp = rem / SECS_PER_HOUR; in unmktime() 571 rem %= SECS_PER_HOUR; in unmktime() 572 *minp = rem / SECS_PER_MINUTE; in unmktime() [all …]
|
/linux/tools/perf/util/ |
A D | tsc.c | 20 u64 t, quot, rem; in perf_time_to_tsc() local 24 rem = t % tc->time_mult; in perf_time_to_tsc() 26 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc() 31 u64 quot, rem; in tsc_to_perf_time() local 38 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time() 40 ((rem * tc->time_mult) >> tc->time_shift); in tsc_to_perf_time()
|
/linux/include/drm/ |
A D | drm_fixed.h | 156 u64 rem; in drm_fixp_from_fraction() local 159 u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); in drm_fixp_from_fraction() 166 rem <<= 1; in drm_fixp_from_fraction() 168 if (rem >= b_abs) { in drm_fixp_from_fraction() 170 rem -= b_abs; in drm_fixp_from_fraction() 177 u64 summand = (rem << 1) >= b_abs; in drm_fixp_from_fraction()
|
/linux/drivers/net/ethernet/rocker/ |
A D | rocker_tlv.h | 45 #define rocker_tlv_for_each(pos, head, len, rem) \ argument 46 for (pos = head, rem = len; \ 47 rocker_tlv_ok(pos, rem); \ 48 pos = rocker_tlv_next(pos, &(rem))) 50 #define rocker_tlv_for_each_nested(pos, tlv, rem) \ argument 52 rocker_tlv_len(tlv), rem)
|
/linux/tools/perf/arch/x86/tests/ |
A D | rdpmc.c | 66 u64 quot, rem; in mmap_read_self() local 69 rem = cyc & (((u64)1 << time_shift) - 1); in mmap_read_self() 71 ((rem * time_mult) >> time_shift); in mmap_read_self() 78 rem = count % running; in mmap_read_self() 79 count = quot * enabled + (rem * enabled) / running; in mmap_read_self()
|
/linux/arch/sh/lib/ |
A D | div64-generic.c | 13 uint32_t rem; in __div64_32() local 16 rem = *xp - q * y; in __div64_32() 19 return rem; in __div64_32()
|
/linux/fs/pstore/ |
A D | ram_core.c | 318 int rem; in persistent_ram_write() local 331 rem = prz->buffer_size - start; in persistent_ram_write() 332 if (unlikely(rem < c)) { in persistent_ram_write() 333 persistent_ram_update(prz, s, start, rem); in persistent_ram_write() 334 s += rem; in persistent_ram_write() 335 c -= rem; in persistent_ram_write() 348 int rem, ret = 0, c = count; in persistent_ram_write_user() local 360 rem = prz->buffer_size - start; in persistent_ram_write_user() 361 if (unlikely(rem < c)) { in persistent_ram_write_user() 363 s += rem; in persistent_ram_write_user() [all …]
|
/linux/arch/arm64/crypto/ |
A D | sha512-ce-glue.c | 38 int rem; in __sha512_ce_transform() local 41 rem = sha512_ce_transform(sst, src, blocks); in __sha512_ce_transform() 43 src += (blocks - rem) * SHA512_BLOCK_SIZE; in __sha512_ce_transform() 44 blocks = rem; in __sha512_ce_transform()
|
A D | sha1-ce-glue.c | 39 int rem; in __sha1_ce_transform() local 42 rem = sha1_ce_transform(container_of(sst, struct sha1_ce_state, in __sha1_ce_transform() 45 src += (blocks - rem) * SHA1_BLOCK_SIZE; in __sha1_ce_transform() 46 blocks = rem; in __sha1_ce_transform()
|
/linux/fs/proc/ |
A D | uptime.c | 16 u32 rem; in uptime_proc_show() local 30 idle.tv_sec = div_u64_rem(idle_nsec, NSEC_PER_SEC, &rem); in uptime_proc_show() 31 idle.tv_nsec = rem; in uptime_proc_show()
|
/linux/tools/lib/bpf/ |
A D | nlattr.h | 73 #define libbpf_nla_for_each_attr(pos, head, len, rem) \ argument 74 for (pos = head, rem = len; \ 75 nla_ok(pos, rem); \ 76 pos = nla_next(pos, &(rem)))
|
/linux/samples/bpf/ |
A D | hash_func01.h | 13 int rem; in SuperFastHash() local 17 rem = len & 3; in SuperFastHash() 31 switch (rem) { in SuperFastHash()
|
/linux/net/openvswitch/ |
A D | flow_netlink.c | 54 int rem; in actions_may_change_flow() local 469 int rem; in __parse_flow_nlattrs() local 577 int rem; in vxlan_tun_opt_from_nlattr() local 613 rem); in vxlan_tun_opt_from_nlattr() 664 int rem; in ip_tun_from_nlattr() local 797 rem); in ip_tun_from_nlattr() 1286 int rem; in nsh_hdr_from_nlattr() local 1340 int rem; in nsh_key_from_nlattr() local 1381 int rem; in nsh_key_put_from_nlattr() local 1740 int rem; in nlattr_set() local [all …]
|
/linux/drivers/iio/common/hid-sensors/ |
A D | hid-sensor-attributes.c | 74 int rem; in simple_div() local 83 rem = dividend % divisor; in simple_div() 84 if (rem) { in simple_div() 85 while (rem <= divisor) { in simple_div() 86 rem *= 10; in simple_div() 89 *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); in simple_div() 362 int rem; in adjust_exponent_nano() local 387 rem = scale0 % divisor; in adjust_exponent_nano() 395 *val1 = rem * int_pow(10, 9 - exp) + res; in adjust_exponent_nano()
|