Searched refs:floor (Results 1 - 25 of 26) sorted by relevance

12

/linux-master/include/linux/
H A Drandom.h94 * Returns a random integer in the interval (floor, U32_MAX], with uniform
95 * distribution, suitable for all uses. Fastest when floor is a constant, but
96 * still fast for variable floor as well.
98 static inline u32 get_random_u32_above(u32 floor) argument
100 BUILD_BUG_ON_MSG(__builtin_constant_p(floor) && floor == U32_MAX,
101 "get_random_u32_above() must take floor < U32_MAX");
102 return floor + 1 + get_random_u32_below(U32_MAX - floor);
106 * Returns a random integer in the interval [floor, cei
110 get_random_u32_inclusive(u32 floor, u32 ceil) argument
[all...]
H A Dhugetlb.h420 unsigned long floor, unsigned long ceiling)
418 hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
H A Dmm.h2391 unsigned long end, unsigned long floor, unsigned long ceiling);
/linux-master/arch/powerpc/mm/
H A Dhugetlbpage.c306 unsigned long floor, unsigned long ceiling,
309 if ((start & mask) < floor)
321 unsigned long floor, unsigned long ceiling)
334 if (range_is_outside_limits(start, end, floor, ceiling, pdmask))
349 unsigned long floor, unsigned long ceiling)
353 if (range_is_outside_limits(addr, end, floor, ceiling, PMD_MASK))
363 unsigned long floor, unsigned long ceiling)
385 hugetlb_free_pte_range(tlb, pmd, addr, end, floor, ceiling);
400 addr, next, floor, ceiling);
403 if (range_is_outside_limits(start, end, floor, ceilin
305 range_is_outside_limits(unsigned long start, unsigned long end, unsigned long floor, unsigned long ceiling, unsigned long mask) argument
319 free_hugepd_range(struct mmu_gather *tlb, hugepd_t *hpdp, int pdshift, unsigned long start, unsigned long end, unsigned long floor, unsigned long ceiling) argument
347 hugetlb_free_pte_range(struct mmu_gather *tlb, pmd_t *pmd, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
361 hugetlb_free_pmd_range(struct mmu_gather *tlb, pud_t *pud, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
412 hugetlb_free_pud_range(struct mmu_gather *tlb, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
458 hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
[all...]
/linux-master/drivers/mtd/devices/
H A Ddocg3.c808 * read operation, the floor 0 is selected. Therefore, if the systems halts, the
809 * reboot will boot on floor 0, where the IPL is.
1466 int floor; local
1469 floor = attr->attr.name[1] - '0';
1470 if (floor < 0 || floor >= DOC_MAX_NBFLOORS)
1473 return docg3_floors[floor]->priv;
1559 int floor; local
1563 for (floor = 0;
1564 floor < DOC_MAX_NBFLOOR
1589 int floor, i; local
1725 doc_dbg_register(struct mtd_info *floor) argument
1805 doc_probe_device(struct docg3_cascade *cascade, int floor, struct device *dev) argument
1920 int floor, i; local
1976 int ret, floor; local
2053 int floor; local
[all...]
/linux-master/include/asm-generic/
H A Dhugetlb.h71 unsigned long floor, unsigned long ceiling)
73 free_pgd_range(tlb, addr, end, floor, ceiling);
69 hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
/linux-master/arch/sparc/mm/
H A Dhugetlbpage.c434 unsigned long floor, unsigned long ceiling)
453 if (start < floor)
471 unsigned long floor, unsigned long ceiling)
486 hugetlb_free_pmd_range(tlb, pud, addr, next, floor,
491 if (start < floor)
509 unsigned long floor, unsigned long ceiling)
516 if (addr < floor) {
537 hugetlb_free_pud_range(tlb, p4d, addr, next, floor, ceiling);
432 hugetlb_free_pmd_range(struct mmu_gather *tlb, pud_t *pud, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
469 hugetlb_free_pud_range(struct mmu_gather *tlb, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
507 hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
/linux-master/arch/powerpc/include/asm/
H A Dhugetlb.h35 unsigned long end, unsigned long floor,
/linux-master/arch/sparc/include/asm/
H A Dhugetlb.h55 unsigned long end, unsigned long floor,
/linux-master/drivers/counter/
H A Di8254.c233 struct counter_count *const count, u64 *const floor)
242 *floor = (priv->preset[count->id] == 0) ? 0 : 1;
246 *floor = (priv->preset[count->id] % 2 || priv->preset[count->id] == 0) ? 0 : 2;
249 *floor = 0;
232 i8254_count_floor_read(struct counter_device *const counter, struct counter_count *const count, u64 *const floor) argument
H A D104-quad-8.c700 struct counter_count *count, u64 *floor)
702 /* Only a floor of 0 is supported */
703 *floor = 0;
699 quad8_count_floor_read(struct counter_device *counter, struct counter_count *count, u64 *floor) argument
/linux-master/arch/arm64/mm/
H A Dmmu.c821 unsigned long floor, unsigned long ceiling,
825 if (start < floor)
972 unsigned long end, unsigned long floor,
989 if (!pgtable_range_aligned(start, end, floor, ceiling, PMD_MASK))
995 * handled by the floor/ceiling check.
1009 unsigned long end, unsigned long floor,
1023 free_empty_pte_table(pmdp, addr, next, floor, ceiling);
1029 if (!pgtable_range_aligned(start, end, floor, ceiling, PUD_MASK))
1035 * handled by the floor/ceiling check.
1049 unsigned long end, unsigned long floor,
820 pgtable_range_aligned(unsigned long start, unsigned long end, unsigned long floor, unsigned long ceiling, unsigned long mask) argument
971 free_empty_pte_table(pmd_t *pmdp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
1008 free_empty_pmd_table(pud_t *pudp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
1048 free_empty_pud_table(p4d_t *p4dp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
1088 free_empty_p4d_table(pgd_t *pgdp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
1128 free_empty_tables(unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
[all...]
/linux-master/drivers/iio/light/
H A Dlv0104cs.c278 int floor, ceil, mid; local
283 floor = lv0104cs_calibscales[i].val * 1000000
287 mid = (floor + ceil) / 2;
290 if (calibscale >= floor && calibscale < mid) {
/linux-master/include/linux/mtd/
H A Ddoc2000.h161 char floor, chip; member in struct:Nand
/linux-master/drivers/hv/
H A Dhv_balloon.c1177 * managing we need to compute a floor below which we should not
1297 unsigned long floor; local
1306 floor = compute_balloon_floor();
1308 /* Refuse to balloon below the floor. */
1309 if (avail_pages < num_pages || avail_pages - num_pages < floor) {
1312 "Balloon floor reached.");
1314 num_pages = avail_pages > floor ? (avail_pages - floor) : 0;
/linux-master/drivers/gpu/drm/amd/display/dc/dml2/
H A Ddisplay_mode_util.c120 //return (dml_float_t) (floor(x / granularity) * granularity);
187 double floor = dml_floor(val, 1); local
189 if (val - floor >= round_pt)
192 return floor;
/linux-master/mm/
H A Dmemory.c198 unsigned long floor, unsigned long ceiling)
214 if (start < floor)
232 unsigned long floor, unsigned long ceiling)
244 free_pmd_range(tlb, pud, addr, next, floor, ceiling);
248 if (start < floor)
266 unsigned long floor, unsigned long ceiling)
278 free_pud_range(tlb, p4d, addr, next, floor, ceiling);
282 if (start < floor)
302 unsigned long floor, unsigned long ceiling)
317 * The rule is that addr 0 and floor
196 free_pmd_range(struct mmu_gather *tlb, pud_t *pud, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
230 free_pud_range(struct mmu_gather *tlb, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
264 free_p4d_range(struct mmu_gather *tlb, pgd_t *pgd, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
300 free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) argument
362 free_pgtables(struct mmu_gather *tlb, struct ma_state *mas, struct vm_area_struct *vma, unsigned long floor, unsigned long ceiling, bool mm_wr_locked) argument
[all...]
H A Dinternal.h207 struct vm_area_struct *start_vma, unsigned long floor,
H A Dhugetlb.c5271 unsigned long floor = addr & PUD_MASK; local
5272 unsigned long ceil = floor + PUD_SIZE;
5274 if (floor >= vma->vm_start && ceil <= vma->vm_end)
5275 hugetlb_unshare_pmds(vma, floor, ceil);
/linux-master/tools/perf/util/
H A Dstat-display.c667 fmt = floor(sc) != sc ? "%'*.2f " : "%'*.0f ";
669 fmt = floor(sc) != sc ? "%*.2f " : "%*.0f ";
688 const char *fmt = floor(sc) != sc ? "%.2f%s" : "%.0f%s";
/linux-master/drivers/media/tuners/
H A Dmt2063.c353 /* Implement ceiling, floor functions. */
355 #define floor(n, d) (((n) < 0) ? (-((-(n))/(d))) - ((n)%(d) != 0) : (n)/(d)) macro
606 /* floor function */
608 floor((s32) (pNode->min_ - f_Center), (s32) f_Step);
/linux-master/samples/bpf/
H A Dxdp_sample_user.c584 if (val - floor(val) < 0.5)
585 return floor(val);
/linux-master/crypto/
H A Dtestmgr.c893 u32 floor, u32 ceil)
895 return floor + prandom_u32_below(rng, ceil - floor + 1);
892 prandom_u32_inclusive(struct rnd_state *rng, u32 floor, u32 ceil) argument
/linux-master/arch/x86/crypto/
H A Daesni-intel_avx-x86_64.S963 ## b = floor(a/16)
1911 ## b = floor(a/16)
/linux-master/kernel/sched/
H A Dfair.c674 /* sign flips effective floor / ceil */
1434 unsigned int scan, floor; local
1439 floor = 1000 / windows;
1442 return max_t(unsigned int, floor, scan);
1473 /* Watch for min being lower than max due to floor calculations */
3947 * of a group with small tg->shares value. It is a floor value which is
11748 * reasonable floor to avoid funnies with rq->avg_idle.

Completed in 387 milliseconds

12