/linux-6.6.21/net/rds/ |
D | page.c | 71 struct rds_page_remainder *rem; in rds_page_remainder_alloc() local 90 rem = &per_cpu(rds_page_remainders, get_cpu()); in rds_page_remainder_alloc() 95 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc() 97 __free_page(rem->r_page); 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() 109 rem->r_offset += ALIGN(bytes, 8); in rds_page_remainder_alloc() 110 if (rem->r_offset >= PAGE_SIZE) { in rds_page_remainder_alloc() [all …]
|
/linux-6.6.21/lib/crypto/mpi/ |
D | mpi-div.c | 17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den); 18 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor); 20 void mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_r() argument 29 if (rem == divisor) { in mpi_fdiv_r() 34 mpi_tdiv_r(rem, dividend, divisor); in mpi_fdiv_r() 36 if (((divisor_sign?1:0) ^ (dividend->sign?1:0)) && rem->nlimbs) in mpi_fdiv_r() 37 mpi_add(rem, rem, divisor); in mpi_fdiv_r() 50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_qr() argument 55 if (quot == divisor || rem == divisor) { in mpi_fdiv_qr() 60 mpi_tdiv_qr(quot, rem, dividend, divisor); in mpi_fdiv_qr() [all …]
|
/linux-6.6.21/kernel/time/ |
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.6.21/drivers/gpu/drm/nouveau/nvkm/falcon/ |
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.6.21/lib/math/ |
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.6.21/arch/s390/lib/ |
D | uaccess.c | 36 unsigned long rem; in raw_copy_from_user_key() local 66 : [size] "+&a" (size), [from] "+&a" (from), [to] "+&a" (to), [rem] "=&a" (rem) in raw_copy_from_user_key() 98 unsigned long rem; in raw_copy_to_user_key() local 128 : [size] "+&a" (size), [to] "+&a" (to), [from] "+&a" (from), [rem] "=&a" (rem) in raw_copy_to_user_key() 153 unsigned long rem; in __clear_user() local 180 : [size] "+&a" (size), [to] "+&a" (to), [rem] "=&a" (rem) in __clear_user()
|
/linux-6.6.21/tools/testing/selftests/timens/ |
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.6.21/drivers/gpu/drm/msm/ |
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.6.21/drivers/platform/surface/aggregator/ |
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.6.21/drivers/misc/mei/ |
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.6.21/arch/mips/lib/ |
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 379 beq rem, len, .Lcopy_bytes\@ 389 bne rem, len, 1b 408 SLL rem, len, 3 # rem = number of bits to keep 410 SUB bits, bits, rem # bits = number of bits to discard 425 #define match rem 443 and rem, len, (4*NBYTES-1) # rem = len % 4*NBYTES [all …]
|
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 568 SUB bits, bits, rem # bits = number of bits to discard 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 [all …]
|
/linux-6.6.21/tools/perf/util/ |
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.6.21/arch/m68k/mac/ |
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.6.21/arch/sh/lib/ |
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.6.21/include/drm/ |
D | drm_fixed.h | 163 u64 rem; in drm_fixp_from_fraction() local 166 u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); in drm_fixp_from_fraction() 173 rem <<= 1; in drm_fixp_from_fraction() 175 if (rem >= b_abs) { in drm_fixp_from_fraction() 177 rem -= b_abs; in drm_fixp_from_fraction() 184 u64 summand = (rem << 1) >= b_abs; in drm_fixp_from_fraction()
|
/linux-6.6.21/drivers/net/ethernet/rocker/ |
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.6.21/fs/proc/ |
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.6.21/arch/arm64/crypto/ |
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()
|
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.6.21/samples/bpf/ |
D | hash_func01.h | 13 int rem; in SuperFastHash() local 17 rem = len & 3; in SuperFastHash() 31 switch (rem) { in SuperFastHash()
|
/linux-6.6.21/net/openvswitch/ |
D | flow_netlink.c | 56 int rem; in actions_may_change_flow() local 58 nla_for_each_nested(nla, actions, rem) { in actions_may_change_flow() 475 int rem; in __parse_flow_nlattrs() local 478 nla_for_each_nested(nla, attr, rem) { in __parse_flow_nlattrs() 512 if (rem) { in __parse_flow_nlattrs() 513 OVS_NLERR(log, "Message has %d unknown bytes.", rem); in __parse_flow_nlattrs() 590 int rem; in vxlan_tun_opt_from_nlattr() local 597 nla_for_each_nested(a, attr, rem) { in vxlan_tun_opt_from_nlattr() 624 if (rem) { in vxlan_tun_opt_from_nlattr() 626 rem); in vxlan_tun_opt_from_nlattr() [all …]
|
/linux-6.6.21/fs/pstore/ |
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() 362 ret = persistent_ram_update_user(prz, s, start, rem); in persistent_ram_write_user() [all …]
|
/linux-6.6.21/tools/lib/bpf/ |
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.6.21/drivers/gpu/drm/i915/gt/ |
D | gen8_ppgtt.c | 506 unsigned int rem = sg_dma_len(iter->sg); in xehpsdv_ppgtt_insert_huge() local 529 rem >= I915_GTT_PAGE_SIZE_2M && in xehpsdv_ppgtt_insert_huge() 562 rem >= I915_GTT_PAGE_SIZE_64K && in xehpsdv_ppgtt_insert_huge() 574 GEM_BUG_ON(rem < page_size); in xehpsdv_ppgtt_insert_huge() 584 rem -= page_size; in xehpsdv_ppgtt_insert_huge() 590 rem = sg_dma_len(iter->sg); in xehpsdv_ppgtt_insert_huge() 591 if (!rem) in xehpsdv_ppgtt_insert_huge() 595 iter->max = iter->dma + rem; in xehpsdv_ppgtt_insert_huge() 600 } while (rem >= page_size && index < max); in xehpsdv_ppgtt_insert_huge() 614 unsigned int rem = sg_dma_len(iter->sg); in gen8_ppgtt_insert_huge() local [all …]
|