/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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() 58 extra & (BIT(rem * 8) - 1)); in nvkm_falcon_v1_load_imem() 71 u8 rem = size % 4; in nvkm_falcon_v1_load_dmem() local 74 size -= rem; in nvkm_falcon_v1_load_dmem() 84 if (rem) { in nvkm_falcon_v1_load_dmem() 88 extra & (BIT(rem * 8) - 1)); in nvkm_falcon_v1_load_dmem()
|
/linux-6.3-rc2/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() 188 u64 res = 0, div, rem; in mul_u64_u64_div_u64() local 208 div = div64_u64_rem(b, c, &rem); in mul_u64_u64_div_u64() 210 b = rem; in mul_u64_u64_div_u64()
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/include/drm/ |
A D | drm_fixed.h | 157 u64 rem; in drm_fixp_from_fraction() local 160 u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); in drm_fixp_from_fraction() 167 rem <<= 1; in drm_fixp_from_fraction() 169 if (rem >= b_abs) { in drm_fixp_from_fraction() 171 rem -= b_abs; in drm_fixp_from_fraction() 178 u64 summand = (rem << 1) >= b_abs; in drm_fixp_from_fraction()
|
/linux-6.3-rc2/fs/proc/ |
A D | uptime.c | 17 u32 rem; in uptime_proc_show() local 31 idle.tv_sec = div_u64_rem(idle_nsec, NSEC_PER_SEC, &rem); in uptime_proc_show() 32 idle.tv_nsec = rem; in uptime_proc_show()
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | gen8_ppgtt.c | 500 rem >= I915_GTT_PAGE_SIZE_2M && in xehpsdv_ppgtt_insert_huge() 545 GEM_BUG_ON(rem < page_size); in xehpsdv_ppgtt_insert_huge() 555 rem -= page_size; in xehpsdv_ppgtt_insert_huge() 561 rem = sg_dma_len(iter->sg); in xehpsdv_ppgtt_insert_huge() 562 if (!rem) in xehpsdv_ppgtt_insert_huge() 566 iter->max = iter->dma + rem; in xehpsdv_ppgtt_insert_huge() 602 rem >= I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge() 632 rem -= page_size; in gen8_ppgtt_insert_huge() 638 rem = sg_dma_len(iter->sg); in gen8_ppgtt_insert_huge() 639 if (!rem) in gen8_ppgtt_insert_huge() [all …]
|
/linux-6.3-rc2/fs/pstore/ |
A D | ram_core.c | 319 int rem; in persistent_ram_write() local 332 rem = prz->buffer_size - start; in persistent_ram_write() 333 if (unlikely(rem < c)) { in persistent_ram_write() 334 persistent_ram_update(prz, s, start, rem); in persistent_ram_write() 335 s += rem; in persistent_ram_write() 336 c -= rem; in persistent_ram_write() 349 int rem, ret = 0, c = count; in persistent_ram_write_user() local 361 rem = prz->buffer_size - start; in persistent_ram_write_user() 362 if (unlikely(rem < c)) { in persistent_ram_write_user() 364 s += rem; in persistent_ram_write_user() [all …]
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | nlattr.h | 75 #define libbpf_nla_for_each_attr(pos, head, len, rem) \ argument 76 for (pos = head, rem = len; \ 77 nla_ok(pos, rem); \ 78 pos = nla_next(pos, &(rem)))
|
/linux-6.3-rc2/net/openvswitch/ |
A D | flow_netlink.c | 54 int rem; in actions_may_change_flow() local 472 int rem; in __parse_flow_nlattrs() local 587 int rem; in vxlan_tun_opt_from_nlattr() local 623 rem); in vxlan_tun_opt_from_nlattr() 674 int rem; in ip_tun_from_nlattr() local 807 rem); in ip_tun_from_nlattr() 1296 int rem; in nsh_hdr_from_nlattr() local 1350 int rem; in nsh_key_from_nlattr() local 1391 int rem; in nsh_key_put_from_nlattr() local 1761 int rem; in nlattr_set() local [all …]
|
/linux-6.3-rc2/tools/include/linux/ |
A D | math64.h | 66 u64 quot, rem; in mul_u64_u64_div64() local 69 rem = a % c; in mul_u64_u64_div64() 71 return quot * b + (rem * b) / c; in mul_u64_u64_div64()
|