/Linux-v5.4/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-v5.4/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 …]
|
D | time.c | 463 s32 rem; in ns_to_timespec() local 468 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec() 469 if (unlikely(rem < 0)) { in ns_to_timespec() 471 rem += NSEC_PER_SEC; in ns_to_timespec() 473 ts.tv_nsec = rem; in ns_to_timespec() 554 s32 rem; in ns_to_timespec64() local 559 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec64() 560 if (unlikely(rem < 0)) { in ns_to_timespec64() 562 rem += NSEC_PER_SEC; in ns_to_timespec64() 564 ts.tv_nsec = rem; in ns_to_timespec64() [all …]
|
/Linux-v5.4/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() 98 u8 rem = size % 4; in nvkm_falcon_v1_load_dmem() local 106 size -= rem; in nvkm_falcon_v1_load_dmem() [all …]
|
/Linux-v5.4/tools/perf/util/ |
D | tsc.c | 9 u64 t, quot, rem; in perf_time_to_tsc() local 13 rem = t % tc->time_mult; in perf_time_to_tsc() 15 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc() 20 u64 quot, rem; in tsc_to_perf_time() local 23 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time() 25 ((rem * tc->time_mult) >> tc->time_shift); in tsc_to_perf_time()
|
/Linux-v5.4/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-v5.4/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()
|
/Linux-v5.4/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-v5.4/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 …]
|
/Linux-v5.4/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)))
|
/Linux-v5.4/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-v5.4/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 …]
|
/Linux-v5.4/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-v5.4/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()
|
/Linux-v5.4/fs/proc/ |
D | uptime.c | 15 u32 rem; in uptime_proc_show() local 23 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in uptime_proc_show() 24 idle.tv_nsec = rem; in uptime_proc_show()
|
/Linux-v5.4/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()
|
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object_blt.c | 24 u64 rem; in intel_emit_vma_fill_blt() local 47 rem = vma->size; in intel_emit_vma_fill_blt() 51 u32 size = min_t(u64, rem, block_size); in intel_emit_vma_fill_blt() 76 rem -= size; in intel_emit_vma_fill_blt() 77 } while (rem); in intel_emit_vma_fill_blt() 207 u64 count, rem; in intel_emit_vma_copy_blt() local 231 rem = src->size; in intel_emit_vma_copy_blt() 236 size = min_t(u64, rem, block_size); in intel_emit_vma_copy_blt() 275 rem -= size; in intel_emit_vma_copy_blt() 276 } while (rem); in intel_emit_vma_copy_blt()
|
/Linux-v5.4/samples/bpf/ |
D | hash_func01.h | 13 int rem; in SuperFastHash() local 17 rem = len & 3; in SuperFastHash() 31 switch (rem) { in SuperFastHash()
|
/Linux-v5.4/drivers/net/dsa/sja1105/ |
D | sja1105_tas.c | 267 s32 rem; in sja1105_tas_check_conflicts() local 278 div_s64_rem(max_cycle_time, min_cycle_time, &rem); in sja1105_tas_check_conflicts() 279 if (rem) in sja1105_tas_check_conflicts() 286 div_s64_rem(offload->base_time, offload->cycle_time, &rem); in sja1105_tas_check_conflicts() 287 rbt1 = rem; in sja1105_tas_check_conflicts() 289 div_s64_rem(admin->base_time, admin->cycle_time, &rem); in sja1105_tas_check_conflicts() 290 rbt2 = rem; in sja1105_tas_check_conflicts()
|
/Linux-v5.4/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()
|
/Linux-v5.4/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 362 rem = prz->buffer_size - start; in persistent_ram_write_user() 363 if (unlikely(rem < c)) { in persistent_ram_write_user() 364 ret = persistent_ram_update_user(prz, s, start, rem); in persistent_ram_write_user() [all …]
|
/Linux-v5.4/arch/mips/kernel/ |
D | binfmt_elfn32.c | 93 u32 rem; in jiffies_to_old_timeval32() local 94 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_old_timeval32() 95 value->tv_usec = rem / NSEC_PER_USEC; in jiffies_to_old_timeval32()
|
D | binfmt_elfo32.c | 98 u32 rem; in jiffies_to_old_timeval32() local 99 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_old_timeval32() 100 value->tv_usec = rem / NSEC_PER_USEC; in jiffies_to_old_timeval32()
|
/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_tc.c | 96 u32 off, data, mask, real_off, rem; in tc_fill_entry() local 122 rem = off % 4; in tc_fill_entry() 128 if (rem) { in tc_fill_entry() 136 entry->val.match_en = (mask << (rem * 8)) & in tc_fill_entry() 137 GENMASK(31, rem * 8); in tc_fill_entry() 138 entry->val.match_data = (data << (rem * 8)) & in tc_fill_entry() 139 GENMASK(31, rem * 8); in tc_fill_entry() 143 frag->val.match_en = (mask >> (rem * 8)) & in tc_fill_entry() 144 GENMASK(rem * 8 - 1, 0); in tc_fill_entry() 145 frag->val.match_data = (data >> (rem * 8)) & in tc_fill_entry() [all …]
|