/linux-4.4.14/arch/x86/mm/ |
D | init.c | 217 unsigned long start = round_down(mr[i].start, PMD_SIZE); in adjust_range_page_size_mask() 230 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask() 300 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 303 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) in split_mem_range() 304 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 316 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 326 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 515 start = round_down(last_start - 1, step_size); in memory_map_top_down()
|
D | numa_32.c | 55 start = round_down(start, PAGES_PER_SECTION); in memory_present()
|
D | pgtable.c | 539 __FIXADDR_TOP = round_down(-reserve, 1 << PMD_SHIFT) - PAGE_SIZE; in reserve_top_address()
|
/linux-4.4.14/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.h | 183 return round_down(offset, 4); in sunxi_mux_reg() 198 return round_down(offset, 4); in sunxi_data_reg() 213 return round_down(offset, 4); in sunxi_dlevel_reg() 228 return round_down(offset, 4); in sunxi_pull_reg()
|
/linux-4.4.14/lib/ |
D | find_bit.c | 43 start = round_down(start, BITS_PER_LONG); in _find_next_bit() 161 start = round_down(start, BITS_PER_LONG); in _find_next_bit_le()
|
D | assoc_array.c | 280 next_sc_level = round_down(next_sc_level, ASSOC_ARRAY_KEY_CHUNK_SIZE); in assoc_array_walk()
|
/linux-4.4.14/drivers/firmware/efi/libstub/ |
D | arm64-stub.c | 35 preferred_offset = round_down(dram_base, SZ_2M) + TEXT_OFFSET; in handle_kernel_image()
|
D | efi-stub-helper.c | 188 if (round_down(end - size, align) < start) in efi_high_alloc() 191 start = round_down(end - size, align); in efi_high_alloc()
|
D | arm-stub.c | 391 paddr = round_down(in->phys_addr, SZ_64K); in efi_get_virtmap()
|
/linux-4.4.14/arch/arm64/mm/ |
D | mmu.c | 316 unsigned long kernel_x_start = round_down(__pa(_stext), SWAPPER_BLOCK_SIZE); in __map_memblock() 406 unsigned long aligned_start = round_down(__pa(_stext), in fixup_executable() 682 create_mapping(round_down(dt_phys, SWAPPER_BLOCK_SIZE), dt_virt_base, in fixmap_remap_fdt() 693 create_mapping(round_down(dt_phys, SWAPPER_BLOCK_SIZE), dt_virt_base, in fixmap_remap_fdt()
|
/linux-4.4.14/drivers/staging/fwserial/ |
D | dma_fifo.h | 121 tx_limit = round_down(tx_limit, fifo->align); in dma_fifo_change_tx_limit()
|
D | dma_fifo.c | 87 fifo->tx_limit = max_t(int, round_down(tx_limit, align), align); in dma_fifo_alloc()
|
/linux-4.4.14/drivers/media/platform/s5p-tv/ |
D | mixer_grp_layer.c | 168 dst->width = round_down(dst->width, 2); in mxr_graph_fix_geometry() 169 dst->height = round_down(dst->height, 2); in mxr_graph_fix_geometry()
|
/linux-4.4.14/drivers/media/platform/vsp1/ |
D | vsp1_rwpf.c | 207 sel->r.width = round_down(sel->r.width, 2); in vsp1_rwpf_set_selection() 208 sel->r.height = round_down(sel->r.height, 2); in vsp1_rwpf_set_selection()
|
D | vsp1_video.c | 236 width = round_down(width, info->hsub); in __vsp1_video_try_format() 237 height = round_down(height, info->vsub); in __vsp1_video_try_format() 256 round_down(65535U, align)); in __vsp1_video_try_format()
|
/linux-4.4.14/drivers/s390/block/ |
D | scm_blk_cluster.c | 153 msb->scm_addr = round_down(addr, CLUSTER_SIZE); in scm_prepare_cluster_request() 156 round_down(addr + (u64) blk_rq_bytes(req) - 1, in scm_prepare_cluster_request()
|
/linux-4.4.14/arch/x86/platform/olpc/ |
D | olpc_ofw.c | 108 start = round_down((unsigned long)olpc_ofw_cif, OFW_BOUND); in olpc_ofw_detect()
|
/linux-4.4.14/net/ieee802154/6lowpan/ |
D | tx.c | 160 frag_len = round_down(payload_cap - LOWPAN_FRAG1_HEAD_SIZE - in lowpan_xmit_fragmented() 178 frag_cap = round_down(payload_cap - LOWPAN_FRAGN_HEAD_SIZE, 8); in lowpan_xmit_fragmented()
|
/linux-4.4.14/drivers/atm/ |
D | horizon.c | 603 r == round_up ? "up" : r == round_down ? "down" : "nearest"); in make_rate() 622 case round_down: in make_rate() 655 case round_down: in make_rate() 672 if (r == round_down) in make_rate() 698 c, (r == round_up) ? "up" : (r == round_down) ? "down" : "nearest", tol); in make_rate_with_tolerance() 2246 r = round_down; in hrz_open() 2252 r = round_down; in hrz_open() 2285 pr = round_down; in hrz_open() 2294 sr = round_down; in hrz_open() 2300 sr = round_down; in hrz_open()
|
D | horizon.h | 503 round_down, enumerator
|
D | ambassador.h | 659 round_down, enumerator
|
D | ambassador.c | 946 case round_down: { in make_rate() 984 if (r == round_down) { in make_rate() 1070 r = round_down; in amb_open()
|
/linux-4.4.14/tools/include/linux/ |
D | kernel.h | 105 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
|
/linux-4.4.14/drivers/crypto/nx/ |
D | nx-842.c | 212 dlen = round_down(dlen, c->multiple); in compress() 217 dlen = round_down(dlen, c->multiple); in compress() 391 dlen = round_down(dlen, c->multiple); in decompress()
|
D | nx-842-powernv.c | 127 len = round_down(len, DDE_BUFFER_LAST_MULT); in setup_ddl()
|
D | nx-842-pseries.c | 56 *len = round_down(*len, nx842_pseries_constraints.multiple); in check_constraints()
|
/linux-4.4.14/arch/x86/kernel/ |
D | check.c | 98 end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE), in setup_bios_corruption_check()
|
D | tboot.c | 186 mr->start = round_down(start, PAGE_SIZE); in add_mac_region()
|
D | signal.c | 196 sp = round_down(sp, 16) - 8; in align_sigframe()
|
/linux-4.4.14/block/partitions/ |
D | mac.c | 53 datasize = round_down(secsize, 512); in mac_partition()
|
/linux-4.4.14/drivers/nvmem/ |
D | sunxi_sid.c | 51 sid_key = ioread32be(sid->base + round_down(offset, 4)); in sunxi_sid_read_byte()
|
D | core.c | 76 count = round_down(count, nvmem->word_size); in bin_attr_nvmem_read() 101 count = round_down(count, nvmem->word_size); in bin_attr_nvmem_write()
|
/linux-4.4.14/lib/842/ |
D | 842_decompress.c | 174 u64 index, offset, total = round_down(p->out - p->ostart, 8); in __do_index() 186 u64 section = round_down(total, fsize); in __do_index()
|
/linux-4.4.14/arch/arm/mm/ |
D | init.c | 388 start = round_down(start, MAX_ORDER_NR_PAGES); in free_unused_memmap() 769 start = round_down(start, PAGE_SIZE); in free_initrd_mem()
|
D | mmu.c | 1193 memblock_limit = round_down(memblock_limit, PMD_SIZE); in sanity_check_meminfo() 1386 phys_addr_t kernel_x_start = round_down(__pa(_stext), SECTION_SIZE); in map_lowmem()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | compat.h | 307 return (void __user *)round_down(sp - len, 16); in arch_compat_alloc_user_space()
|
/linux-4.4.14/mm/kasan/ |
D | report.c | 173 shadow_row = (void *)round_down((unsigned long)shadow, in print_shadow_for_address()
|
/linux-4.4.14/drivers/soc/tegra/fuse/ |
D | fuse-tegra.c | 48 val = fuse->read(fuse, round_down(offset, 4)); in fuse_readb()
|
/linux-4.4.14/mm/ |
D | page_ext.c | 119 offset = pfn - round_down(node_start_pfn(page_to_nid(page)), in lookup_page_ext()
|
D | truncate.c | 782 loff_t unmap_end = round_down(1 + lend, PAGE_SIZE) - 1; in truncate_pagecache_range()
|
D | memblock.c | 173 cand = round_down(this_end - size, align); in __memblock_find_range_top_down() 1586 end = round_down(orig_end, align); in memblock_trim_memory()
|
D | percpu.c | 337 if (!(prev & 1) && prev <= round_down(off, PAGE_SIZE)) in pcpu_count_occupied_pages() 338 off = round_down(off, PAGE_SIZE); in pcpu_count_occupied_pages()
|
D | shmem.c | 2083 loff_t unmap_end = round_down(offset + len, PAGE_SIZE) - 1; in shmem_fallocate()
|
D | page_alloc.c | 6441 pfn = pfn - round_down(zone->zone_start_pfn, pageblock_nr_pages); in pfn_to_bitidx()
|
/linux-4.4.14/drivers/clk/bcm/ |
D | clk-kona-setup.c | 32 limit = round_down(limit, sizeof(u32)); in ccu_data_offsets_valid() 96 limit = round_down(limit, sizeof(u32)); in peri_clk_data_offsets_valid()
|
/linux-4.4.14/drivers/firmware/ |
D | qcom_scm-32.c | 237 start = round_down(start, cacheline_size); in qcom_scm_inv_range()
|
/linux-4.4.14/arch/x86/kernel/fpu/ |
D | signal.c | 369 *buf_fx = sp = round_down(sp - frame_size, 64); in fpu__alloc_mathframe()
|
/linux-4.4.14/fs/btrfs/ |
D | file.c | 1449 lockstart = round_down(pos, root->sectorsize); in check_can_nocow() 1631 __pos = round_down(pos, root->sectorsize) + in __btrfs_buffered_write() 1658 lockstart = round_down(pos, root->sectorsize); in __btrfs_buffered_write() 1803 start_pos = round_down(pos, root->sectorsize); in btrfs_file_write_iter() 2320 lockend = round_down(offset + len, in btrfs_punch_hole() 2644 alloc_start = round_down(offset, blocksize); in btrfs_fallocate() 2848 lockstart = round_down(start, root->sectorsize); in find_desired_extent()
|
D | qgroup.c | 2623 BUG_ON(num_bytes != round_down(num_bytes, root->nodesize)); in btrfs_qgroup_reserve_meta() 2649 BUG_ON(num_bytes != round_down(num_bytes, root->nodesize)); in btrfs_qgroup_free_meta()
|
D | extent-tree.c | 1958 len = round_down(len, 1 << 9); in btrfs_issue_discard() 4142 round_down(start, root->sectorsize); in btrfs_check_data_free_space() 4143 start = round_down(start, root->sectorsize); in btrfs_check_data_free_space() 4175 round_down(start, root->sectorsize); in btrfs_free_reserved_data_space_noquota() 4176 start = round_down(start, root->sectorsize); in btrfs_free_reserved_data_space_noquota() 7556 num_bytes = round_down(num_bytes, root->sectorsize); in btrfs_reserve_extent()
|
D | inode.c | 4635 round_down(from, PAGE_CACHE_SIZE), PAGE_CACHE_SIZE); in btrfs_truncate_page() 4643 round_down(from, PAGE_CACHE_SIZE), in btrfs_truncate_page()
|
D | extent_io.c | 4494 start = round_down(start, BTRFS_I(inode)->root->sectorsize); in extent_fiemap()
|
/linux-4.4.14/arch/mips/mm/ |
D | tlb-r4k.c | 127 start = round_down(start, PAGE_SIZE << 1); in local_flush_tlb_range()
|
/linux-4.4.14/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 1702 r->width = round_down(ctx->out_q.w / ctx->scale_factor, 2); in exynos3250_jpeg_try_downscale() 1703 r->height = round_down(ctx->out_q.h / ctx->scale_factor, 2); in exynos3250_jpeg_try_downscale() 1755 r->width = round_down(r->width, w_step); in exynos3250_jpeg_try_crop() 1756 r->height = round_down(r->height, h_step); in exynos3250_jpeg_try_crop() 1757 r->left = round_down(r->left, 2); in exynos3250_jpeg_try_crop() 1758 r->top = round_down(r->top, 2); in exynos3250_jpeg_try_crop()
|
/linux-4.4.14/drivers/clk/sunxi/ |
D | clk-sunxi.c | 314 u32 round_freq_6 = round_down(freq_mhz, 6); in sun6i_a31_get_pll1_factors() 315 u32 round_freq_16 = round_down(freq_mhz, 16); in sun6i_a31_get_pll1_factors()
|
/linux-4.4.14/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 478 cr->c.left = round_down(cr->c.left, min_size); in fimc_m2m_try_crop() 479 cr->c.top = round_down(cr->c.top, fimc->variant->hor_offs_align); in fimc_m2m_try_crop()
|
D | fimc-lite.c | 628 r->left = round_down(r->left, fimc->dd->win_hor_offs_align); in fimc_lite_try_crop() 648 r->left = round_down(r->left, fimc->dd->out_hor_offs_align); in fimc_lite_try_compose()
|
D | fimc-capture.c | 717 r->left = round_down(r->left, var->hor_offs_align); in fimc_capture_try_selection()
|
/linux-4.4.14/fs/xfs/ |
D | xfs_bmap_util.c | 1246 ioffset = round_down(offset, rounding); in xfs_free_file_space() 1407 error = xfs_alloc_file_space(ip, round_down(offset, blksize), in xfs_zero_file_space() 1409 round_down(offset, blksize), in xfs_zero_file_space()
|
D | xfs_log_recover.c | 183 blk_no = round_down(blk_no, log->l_sectBBsize); in xlog_bread_noalign() 268 blk_no = round_down(blk_no, log->l_sectBBsize); in xlog_bwrite() 1258 balign = round_down(start_block, sectbb); in xlog_write_log_records() 1277 ealign = round_down(end_block, sectbb); in xlog_write_log_records()
|
/linux-4.4.14/tools/perf/util/ |
D | symbol-elf.c | 1508 kci->stext = round_down(kci->stext, page_size); in kcore_copy__calc_maps() 1510 kci->stext = round_down(kci->first_symbol, page_size); in kcore_copy__calc_maps() 1519 kci->first_module = round_down(kci->first_module, page_size); in kcore_copy__calc_maps()
|
D | util.c | 455 unsigned long max_size = round_down(USHRT_MAX, sizeof(u64)); in get_stack_size()
|
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/ |
D | sdio.c | 273 len = round_down(len, HIF_MBOX_BLOCK_SIZE); in ath6kl_sdio_scat_rw() 416 len = round_down(len, HIF_MBOX_BLOCK_SIZE); in ath6kl_sdio_read_write_sync()
|
/linux-4.4.14/drivers/md/ |
D | raid5-cache.c | 1079 if (cp >= rdev->sectors || round_down(cp, BLOCK_SECTORS) != cp) in r5l_load_log() 1120 log->device_size = round_down(rdev->sectors, BLOCK_SECTORS); in r5l_load_log()
|
D | md.c | 4562 mddev->resync_min = round_down(min, 8); in min_sync_store()
|
/linux-4.4.14/drivers/base/ |
D | node.c | 400 pfn = round_down(pfn + PAGES_PER_SECTION, in register_mem_sect_under_node()
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 731 nread = round_down(nread, curlun->blksize); in do_read() 904 amount = round_down(amount, curlun->blksize); in do_write() 925 nwritten = round_down(nwritten, curlun->blksize); in do_write() 1071 nread = round_down(nread, curlun->blksize); in do_verify()
|
/linux-4.4.14/drivers/infiniband/hw/mlx5/ |
D | odp.c | 265 (io_virt - round_down(io_virt, PAGE_SIZE)); in pagefault_single_data_segment()
|
/linux-4.4.14/include/linux/ |
D | kernel.h | 64 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
|
/linux-4.4.14/arch/x86/um/ |
D | signal.c | 509 round_down(stack_top - sizeof(struct rt_sigframe), 16); in setup_signal_stack_si()
|
/linux-4.4.14/arch/tile/mm/ |
D | init.c | 181 start = round_down(start, PMD_SIZE); in page_table_range_init()
|
/linux-4.4.14/drivers/mfd/ |
D | rtsx_usb.c | 135 u16 rsp_len = round_down(len, 4); in rtsx_usb_seq_read_register()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | i915_sysfs.c | 173 count = round_down(count, 4); in i915_l3_read()
|
D | i915_gem.c | 554 start = round_down(start, 128); in shmem_clflush_swizzled_range()
|
D | intel_display.c | 2536 u32 base_aligned = round_down(plane_config->base, PAGE_SIZE); in intel_alloc_initial_plane_obj()
|
/linux-4.4.14/fs/nfs/blocklayout/ |
D | blocklayout.c | 708 end = round_down(NFS4_MAX_UINT64, PAGE_SIZE); in bl_return_range()
|
/linux-4.4.14/fs/ext4/ |
D | extents.c | 4788 end = round_down((offset + len), 1 << blkbits); in ext4_zero_range() 4831 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range() 4833 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range() 5524 ioffset = round_down(offset, PAGE_SIZE); in ext4_collapse_range() 5673 ioffset = round_down(offset, PAGE_SIZE); in ext4_insert_range()
|
D | inode.c | 3693 last_block_offset = round_down((offset + length), sb->s_blocksize) - 1; in ext4_punch_hole()
|
/linux-4.4.14/drivers/misc/mic/host/ |
D | mic_virtio.c | 87 dma_offset = daddr - round_down(daddr, dma_alignment); in mic_virtio_copy_to_user()
|
/linux-4.4.14/arch/powerpc/kvm/ |
D | e500_mmu.c | 555 vfree((void *)(round_down((uintptr_t)vcpu_e500->gtlb_arch, in free_gtlb()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/pcie/ |
D | rx.c | 203 rxq->write_actual = round_down(rxq->write, 8); in iwl_pcie_rxq_inc_wr_ptr()
|
/linux-4.4.14/fs/ubifs/ |
D | recovery.c | 714 min_io_unit = round_down(offs, c->min_io_size); in ubifs_recover_leb()
|
/linux-4.4.14/drivers/acpi/ |
D | osl.c | 397 pg_off = round_down(phys, PAGE_SIZE); in acpi_os_map_iomem()
|
/linux-4.4.14/drivers/gpu/drm/omapdrm/ |
D | omap_gem.c | 428 base_pgoff = round_down(pgoff, m << n_shift); in fault_2d()
|
/linux-4.4.14/fs/hugetlbfs/ |
D | inode.c | 522 hole_end = round_down(offset + len, hpage_size); in hugetlbfs_punch_hole()
|
/linux-4.4.14/fs/ceph/ |
D | file.c | 1242 loff_t size = round_down(length, PAGE_CACHE_SIZE); in ceph_zero_pagecache_range()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | init.c | 275 rcd->egrbufs.count = round_down(rcvtids, in hfi1_create_ctxtdata()
|
/linux-4.4.14/drivers/misc/cxl/ |
D | pci.c | 782 aligned_start = round_down(off, 8); in cxl_afu_read_err_buffer()
|
/linux-4.4.14/fs/ |
D | fs-writeback.c | 1425 pages = round_down(pages + MIN_WRITEBACK_PAGES, in writeback_chunk_size()
|
/linux-4.4.14/drivers/mmc/host/ |
D | mmci.c | 956 data->bytes_xfered = round_down(success, data->blksz); in mmci_data_irq()
|
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/ |
D | gpmi-nand.c | 117 return round_down(ecc_strength, 2); in get_ecc_strength()
|
/linux-4.4.14/drivers/ntb/ |
D | ntb_transport.c | 2009 max_size = round_down(max_size, 1 << copy_align); in ntb_transport_max_size()
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_ialloc.c | 764 args.max_agbno = round_down(args.mp->m_sb.sb_agblocks, in xfs_ialloc_ag_alloc()
|
/linux-4.4.14/drivers/media/platform/coda/ |
D | coda-common.c | 1865 CODA_DOWN_DATA_SET(p[round_down(i, 4) + in coda_hw_init()
|
/linux-4.4.14/net/ipv4/ |
D | tcp_output.c | 2396 free_space = round_down(free_space, 1 << tp->rx_opt.rcv_wscale); in __tcp_select_window()
|
/linux-4.4.14/drivers/nvme/host/ |
D | pci.c | 1478 mem_per_q = round_down(mem_per_q, dev->page_size); in nvme_cmb_qdepth()
|