/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/lib/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 …]
|
/kernel/linux/linux-5.10/kernel/time/ |
D | timeconv.c | 80 long days, rem, y; in time64_to_tm() local 85 rem = remainder; in time64_to_tm() 86 rem += offset; in time64_to_tm() 87 while (rem < 0) { in time64_to_tm() 88 rem += SECS_PER_DAY; in time64_to_tm() 91 while (rem >= SECS_PER_DAY) { in time64_to_tm() 92 rem -= SECS_PER_DAY; in time64_to_tm() 96 result->tm_hour = rem / SECS_PER_HOUR; in time64_to_tm() 97 rem %= SECS_PER_HOUR; in time64_to_tm() 98 result->tm_min = rem / 60; in time64_to_tm() [all …]
|
/kernel/liteos_m/testsuites/unittest/xts/time/ |
D | sleep_test.c | 70 struct timespec rem = {0}; variable 71 int rt = clock_nanosleep(cid, 0, &req, &rem); 86 struct timespec rem = {0}; variable 90 rt = clock_nanosleep(id, 0, &req, &rem); 94 rt = clock_nanosleep(id, 0, &req, &rem); 98 rt = clock_nanosleep(CLOCK_REALTIME, flag, &req, &rem); 101 rt = clock_nanosleep(CLOCK_REALTIME, flag, &req, &rem); 104 rt = clock_nanosleep(CLOCK_REALTIME, flag, &req, &rem); 109 rt = clock_nanosleep(CLOCK_REALTIME, 0, &req, &rem); 113 rt = clock_nanosleep(CLOCK_REALTIME, 0, &req, &rem); [all …]
|
/kernel/linux/linux-5.10/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_emem() local 74 size -= rem; in nvkm_falcon_v1_load_emem() 84 if (rem) { in nvkm_falcon_v1_load_emem() 88 extra & (BIT(rem * 8) - 1)); in nvkm_falcon_v1_load_emem() 97 u8 rem = size % 4; in nvkm_falcon_v1_load_dmem() local 105 size -= rem; in nvkm_falcon_v1_load_dmem() [all …]
|
/kernel/linux/linux-5.10/lib/math/ |
D | div64.c | 31 uint64_t rem = *n; in __div64_32() local 34 uint32_t high = rem >> 32; in __div64_32() 41 rem -= (uint64_t) (high*base) << 32; in __div64_32() 44 while ((int64_t)b > 0 && b < rem) { in __div64_32() 50 if (rem >= b) { in __div64_32() 51 rem -= b; in __div64_32() 59 return rem; in __div64_32() 197 u64 res = 0, div, rem; in mul_u64_u64_div_u64() local 217 div = div64_u64_rem(b, c, &rem); in mul_u64_u64_div_u64() 219 b = rem; in mul_u64_u64_div_u64()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | tsc.c | 18 u64 t, quot, rem; in perf_time_to_tsc() local 22 rem = t % tc->time_mult; in perf_time_to_tsc() 24 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc() 29 u64 quot, rem; in tsc_to_perf_time() local 36 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time() 38 ((rem * tc->time_mult) >> tc->time_shift); in tsc_to_perf_time()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | nlattr.h | 60 #define libbpf_nla_for_each_attr(pos, head, len, rem) \ argument 61 for (pos = head, rem = len; \ 62 nla_ok(pos, rem); \ 63 pos = nla_next(pos, &(rem)))
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/m68k/mac/ |
D | misc.c | 558 int days, rem, y, wday, yday; in unmktime() local 561 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime() 562 rem += offset; in unmktime() 563 while (rem < 0) { in unmktime() 564 rem += SECS_PER_DAY; in unmktime() 567 while (rem >= SECS_PER_DAY) { in unmktime() 568 rem -= SECS_PER_DAY; in unmktime() 571 *hourp = rem / SECS_PER_HOUR; in unmktime() 572 rem %= SECS_PER_HOUR; in unmktime() 573 *minp = rem / SECS_PER_MINUTE; in unmktime() [all …]
|
/kernel/linux/linux-5.10/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)
|
/kernel/linux/linux-5.10/include/drm/ |
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()
|
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/ |
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()
|
/kernel/linux/linux-5.10/fs/proc/ |
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()
|
/kernel/linux/linux-5.10/drivers/media/platform/atmel/ |
D | atmel-sama5d2-isc.c | 60 struct device_node *epn = NULL, *rem; in isc_parse_dt() local 74 rem = of_graph_get_remote_port_parent(epn); in isc_parse_dt() 75 if (!rem) { in isc_parse_dt() 84 of_node_put(rem); in isc_parse_dt() 93 of_node_put(rem); in isc_parse_dt() 104 of_node_put(rem); in isc_parse_dt() 125 subdev_entity->asd->match.fwnode = of_fwnode_handle(rem); in isc_parse_dt()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | hash_func01.h | 13 int rem; in SuperFastHash() local 17 rem = len & 3; in SuperFastHash() 31 switch (rem) { in SuperFastHash()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object_blt.c | 26 u64 rem; in intel_emit_vma_fill_blt() local 63 rem = vma->size; in intel_emit_vma_fill_blt() 67 u32 size = min_t(u64, rem, block_size); in intel_emit_vma_fill_blt() 92 rem -= size; in intel_emit_vma_fill_blt() 93 } while (rem); in intel_emit_vma_fill_blt() 247 u64 count, rem; in intel_emit_vma_copy_blt() local 285 rem = src->size; in intel_emit_vma_copy_blt() 290 size = min_t(u64, rem, block_size); in intel_emit_vma_copy_blt() 330 rem -= size; in intel_emit_vma_copy_blt() 331 } while (rem); in intel_emit_vma_copy_blt()
|
/kernel/linux/linux-5.10/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 79 int rem; in simple_div() local 88 rem = dividend % divisor; in simple_div() 89 if (rem) { in simple_div() 90 while (rem <= divisor) { in simple_div() 91 rem *= 10; in simple_div() 94 *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); in simple_div() 313 int rem; in adjust_exponent_nano() local 338 rem = scale0 % divisor; in adjust_exponent_nano() 346 *val1 = rem * int_pow(10, 9 - exp) + res; in adjust_exponent_nano()
|
/kernel/linux/linux-5.10/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 …]
|