/linux-4.1.27/tools/perf/util/include/linux/ |
H A D | kernel.h | 99 * get the type for the ~ right in round_down (it needs to be 105 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
|
/linux-4.1.27/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.h | 182 return round_down(offset, 4); sunxi_mux_reg() 197 return round_down(offset, 4); sunxi_data_reg() 212 return round_down(offset, 4); sunxi_dlevel_reg() 227 return round_down(offset, 4); sunxi_pull_reg()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | init.c | 214 unsigned long start = round_down(mr[i].start, PMD_SIZE); adjust_range_page_size_mask() 227 unsigned long start = round_down(mr[i].start, PUD_SIZE); adjust_range_page_size_mask() 297 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); split_mem_range() 300 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) split_mem_range() 301 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); split_mem_range() 313 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); split_mem_range() 323 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); split_mem_range() 468 * when step_size is 0, round_down() returns 0 for start, and that get_new_step_size() 512 start = round_down(last_start - 1, step_size); memory_map_top_down()
|
H A D | numa_32.c | 55 start = round_down(start, PAGES_PER_SECTION); memory_present()
|
H A D | pgtable.c | 539 __FIXADDR_TOP = round_down(-reserve, 1 << PMD_SHIFT) - PAGE_SIZE; reserve_top_address()
|
/linux-4.1.27/drivers/s390/block/ |
H A D | scm_blk_cluster.c | 153 msb->scm_addr = round_down(addr, CLUSTER_SIZE); scm_prepare_cluster_request() 156 round_down(addr + (u64) blk_rq_bytes(req) - 1, scm_prepare_cluster_request()
|
/linux-4.1.27/lib/ |
H A D | find_bit.c | 43 start = round_down(start, BITS_PER_LONG); _find_next_bit() 161 start = round_down(start, BITS_PER_LONG); _find_next_bit_le()
|
H A D | assoc_array.c | 280 next_sc_level = round_down(next_sc_level, ASSOC_ARRAY_KEY_CHUNK_SIZE); assoc_array_walk()
|
/linux-4.1.27/arch/x86/platform/olpc/ |
H A D | olpc_ofw.c | 108 start = round_down((unsigned long)olpc_ofw_cif, OFW_BOUND); olpc_ofw_detect()
|
/linux-4.1.27/drivers/soc/tegra/fuse/ |
H A D | fuse-tegra.c | 49 val = fuse_readl(round_down(offset, 4)); fuse_readb()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | check.c | 97 end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE), setup_bios_corruption_check()
|
H A D | tboot.c | 186 mr->start = round_down(start, PAGE_SIZE); add_mac_region()
|
H A D | signal.c | 194 sp = round_down(sp, 16) - 8; align_sigframe()
|
/linux-4.1.27/drivers/media/platform/s5p-tv/ |
H A D | mixer_grp_layer.c | 168 dst->width = round_down(dst->width, 2); mxr_graph_fix_geometry() 169 dst->height = round_down(dst->height, 2); mxr_graph_fix_geometry()
|
/linux-4.1.27/net/ieee802154/6lowpan/ |
H A D | tx.c | 146 frag_len = round_down(payload_cap - LOWPAN_FRAG1_HEAD_SIZE - lowpan_xmit_fragmented() 163 frag_cap = round_down(payload_cap - LOWPAN_FRAGN_HEAD_SIZE, 8); lowpan_xmit_fragmented()
|
/linux-4.1.27/drivers/misc/eeprom/ |
H A D | sunxi_sid.c | 56 sid_key = ioread32be(sid_data->reg_base + round_down(offset, 4)); sunxi_sid_read_byte()
|
/linux-4.1.27/drivers/staging/fwserial/ |
H A D | dma_fifo.h | 121 tx_limit = round_down(tx_limit, fifo->align); dma_fifo_change_tx_limit()
|
H A D | dma_fifo.c | 87 fifo->tx_limit = max_t(int, round_down(tx_limit, align), align); dma_fifo_alloc()
|
/linux-4.1.27/mm/kasan/ |
H A D | report.c | 155 shadow_row = (void *)round_down((unsigned long)shadow, print_shadow_for_address()
|
/linux-4.1.27/drivers/firmware/efi/libstub/ |
H A D | efi-stub-helper.c | 188 if (round_down(end - size, align) < start) efi_high_alloc() 191 start = round_down(end - size, align); efi_high_alloc()
|
H A D | arm-stub.c | 391 paddr = round_down(in->phys_addr, SZ_64K); efi_get_virtmap()
|
/linux-4.1.27/arch/arm64/mm/ |
H A D | mmu.c | 310 unsigned long kernel_x_start = round_down(__pa(_stext), SECTION_SIZE); __map_memblock() 400 unsigned long aligned_start = round_down(__pa(_stext), fixup_executable()
|
/linux-4.1.27/drivers/atm/ |
H A D | horizon.c | 603 r == round_up ? "up" : r == round_down ? "down" : "nearest"); make_rate() 622 case round_down: make_rate() 655 case round_down: make_rate() 672 if (r == round_down) make_rate() 698 c, (r == round_up) ? "up" : (r == round_down) ? "down" : "nearest", tol); make_rate_with_tolerance() 2244 // unlimited one closes?? For the moment, round_down means hrz_open() 2246 r = round_down; hrz_open() 2252 r = round_down; hrz_open() 2285 pr = round_down; hrz_open() 2294 sr = round_down; hrz_open() 2300 sr = round_down; hrz_open()
|
H A D | ambassador.h | 659 round_down, enumerator in enum:__anon3403
|
H A D | horizon.h | 503 round_down, enumerator in enum:__anon3409
|
H A D | ambassador.c | 946 case round_down: { make_rate() 984 if (r == round_down) { make_rate() 1070 r = round_down; amb_open()
|
H A D | firestream.c | 989 is round_down -- REW */ fs_open()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | compat.h | 307 return (void __user *)round_down(sp - len, 16); arch_compat_alloc_user_space()
|
H A D | fpu-internal.h | 616 *buf_fx = sp = round_down(sp - frame_size, 64); alloc_mathframe()
|
/linux-4.1.27/drivers/media/platform/s5p-jpeg/ |
H A D | jpeg-core.c | 1448 r->width = round_down(ctx->out_q.w / ctx->scale_factor, 2); exynos3250_jpeg_try_downscale() 1449 r->height = round_down(ctx->out_q.h / ctx->scale_factor, 2); exynos3250_jpeg_try_downscale() 1501 r->width = round_down(r->width, w_step); exynos3250_jpeg_try_crop() 1502 r->height = round_down(r->height, h_step); exynos3250_jpeg_try_crop() 1503 r->left = round_down(r->left, 2); exynos3250_jpeg_try_crop() 1504 r->top = round_down(r->top, 2); exynos3250_jpeg_try_crop()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
H A D | fimc-m2m.c | 477 cr->c.left = round_down(cr->c.left, min_size); fimc_m2m_try_crop() 478 cr->c.top = round_down(cr->c.top, fimc->variant->hor_offs_align); fimc_m2m_try_crop()
|
H A D | fimc-lite.c | 631 r->left = round_down(r->left, fimc->dd->win_hor_offs_align); fimc_lite_try_crop() 651 r->left = round_down(r->left, fimc->dd->out_hor_offs_align); fimc_lite_try_compose()
|
H A D | fimc-capture.c | 721 r->left = round_down(r->left, var->hor_offs_align); fimc_capture_try_selection()
|
/linux-4.1.27/arch/arm/mm/ |
H A D | init.c | 386 start = round_down(start, MAX_ORDER_NR_PAGES); for_each_memblock() 736 start = round_down(start, PAGE_SIZE); free_initrd_mem()
|
H A D | mmu.c | 1145 memblock_limit = round_down(memblock_limit, PMD_SIZE); 1332 phys_addr_t kernel_x_start = round_down(__pa(_stext), SECTION_SIZE); map_lowmem()
|
/linux-4.1.27/arch/mips/mm/ |
H A D | tlb-r4k.c | 127 start = round_down(start, PAGE_SIZE << 1); local_flush_tlb_range()
|
/linux-4.1.27/mm/ |
H A D | page_ext.c | 115 offset = pfn - round_down(node_start_pfn(page_to_nid(page)), lookup_page_ext()
|
H A D | memblock.c | 162 cand = round_down(this_end - size, align); __memblock_find_range_top_down() 1479 end = round_down(orig_end, align); for_each_memblock()
|
H A D | truncate.c | 778 loff_t unmap_end = round_down(1 + lend, PAGE_SIZE) - 1; truncate_pagecache_range()
|
H A D | percpu.c | 337 if (!(prev & 1) && prev <= round_down(off, PAGE_SIZE)) pcpu_count_occupied_pages() 338 off = round_down(off, PAGE_SIZE); pcpu_count_occupied_pages()
|
H A D | shmem.c | 2067 loff_t unmap_end = round_down(offset + len, PAGE_SIZE) - 1; shmem_fallocate()
|
H A D | page_alloc.c | 6174 pfn = pfn - round_down(zone->zone_start_pfn, pageblock_nr_pages); pfn_to_bitidx()
|
/linux-4.1.27/drivers/media/platform/vsp1/ |
H A D | vsp1_video.c | 236 width = round_down(width, info->hsub); __vsp1_video_try_format() 237 height = round_down(height, info->vsub); __vsp1_video_try_format() 256 round_down(65535U, align)); __vsp1_video_try_format()
|
/linux-4.1.27/fs/btrfs/ |
H A D | file.c | 1439 lockstart = round_down(pos, root->sectorsize); check_can_nocow() 1642 lockstart = round_down(pos, root->sectorsize); __btrfs_buffered_write() 1787 start_pos = round_down(pos, root->sectorsize); btrfs_file_write_iter() 2297 lockend = round_down(offset + len, btrfs_punch_hole() 2564 alloc_start = round_down(offset, blocksize); btrfs_fallocate() 2735 lockstart = round_down(start, root->sectorsize); find_desired_extent()
|
H A D | extent_io.c | 4422 start = round_down(start, BTRFS_I(inode)->root->sectorsize); extent_fiemap()
|
H A D | extent-tree.c | 7190 num_bytes = round_down(num_bytes, root->sectorsize); btrfs_reserve_extent()
|
/linux-4.1.27/tools/perf/util/ |
H A D | symbol-elf.c | 1490 kci->stext = round_down(kci->stext, page_size); kcore_copy__calc_maps() 1492 kci->stext = round_down(kci->first_symbol, page_size); kcore_copy__calc_maps() 1501 kci->first_module = round_down(kci->first_module, page_size); kcore_copy__calc_maps()
|
H A D | callchain.c | 33 unsigned long max_size = round_down(USHRT_MAX, sizeof(u64)); get_stack_size()
|
/linux-4.1.27/drivers/firmware/ |
H A D | qcom_scm.c | 245 start = round_down(start, cacheline_size); qcom_scm_inv_range()
|
/linux-4.1.27/arch/x86/um/ |
H A D | signal.c | 510 round_down(stack_top - sizeof(struct rt_sigframe), 16); setup_signal_stack_si()
|
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/ |
H A D | sdio.c | 273 len = round_down(len, HIF_MBOX_BLOCK_SIZE); ath6kl_sdio_scat_rw() 416 len = round_down(len, HIF_MBOX_BLOCK_SIZE); ath6kl_sdio_read_write_sync()
|
/linux-4.1.27/drivers/clk/sunxi/ |
H A D | clk-sunxi.c | 313 u32 round_freq_6 = round_down(freq_mhz, 6); sun6i_a31_get_pll1_factors() 314 u32 round_freq_16 = round_down(freq_mhz, 16); sun6i_a31_get_pll1_factors()
|
/linux-4.1.27/drivers/clk/bcm/ |
H A D | clk-kona-setup.c | 34 limit = round_down(limit, sizeof(u32)); ccu_data_offsets_valid() 98 limit = round_down(limit, sizeof(u32)); peri_clk_data_offsets_valid()
|
/linux-4.1.27/include/linux/ |
H A D | kernel.h | 58 * get the type for the ~ right in round_down (it needs to be 64 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_bmap_util.c | 1208 ioffset = round_down(offset, rounding); xfs_free_file_space() 1369 error = xfs_alloc_file_space(ip, round_down(offset, blksize), xfs_zero_file_space() 1371 round_down(offset, blksize), xfs_zero_file_space()
|
H A D | xfs_log_recover.c | 183 blk_no = round_down(blk_no, log->l_sectBBsize); xlog_bread_noalign() 268 blk_no = round_down(blk_no, log->l_sectBBsize); xlog_bwrite() 1258 balign = round_down(start_block, sectbb); xlog_write_log_records() 1277 ealign = round_down(end_block, sectbb); xlog_write_log_records()
|
/linux-4.1.27/drivers/mfd/ |
H A D | rtsx_usb.c | 135 u16 rsp_len = round_down(len, 4); rtsx_usb_seq_read_register()
|
/linux-4.1.27/drivers/misc/mic/host/ |
H A D | mic_virtio.c | 88 dma_offset = daddr - round_down(daddr, dma_alignment); mic_virtio_copy_to_user()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_sysfs.c | 203 count = round_down(count, 4); i915_l3_read()
|
H A D | i915_gem.c | 572 start = round_down(start, 128); shmem_clflush_swizzled_range()
|
H A D | intel_display.c | 2547 u32 base_aligned = round_down(plane_config->base, PAGE_SIZE); intel_alloc_initial_plane_obj()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | odp.c | 272 (io_virt - round_down(io_virt, PAGE_SIZE)); pagefault_single_data_segment()
|
/linux-4.1.27/drivers/base/ |
H A D | node.c | 396 pfn = round_down(pfn + PAGES_PER_SECTION, register_mem_sect_under_node()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | f_mass_storage.c | 731 nread = round_down(nread, curlun->blksize); do_read() 904 amount = round_down(amount, curlun->blksize); do_write() 925 nwritten = round_down(nwritten, curlun->blksize); do_write() 1071 nread = round_down(nread, curlun->blksize); do_verify()
|
/linux-4.1.27/fs/nfs/blocklayout/ |
H A D | blocklayout.c | 713 end = round_down(NFS4_MAX_UINT64, PAGE_SIZE); bl_return_range()
|
/linux-4.1.27/arch/powerpc/kvm/ |
H A D | e500_mmu.c | 555 vfree((void *)(round_down((uintptr_t)vcpu_e500->gtlb_arch, free_gtlb()
|
/linux-4.1.27/arch/tile/mm/ |
H A D | init.c | 181 start = round_down(start, PMD_SIZE); page_table_range_init()
|
/linux-4.1.27/fs/ceph/ |
H A D | file.c | 1151 loff_t size = round_down(length, PAGE_CACHE_SIZE); ceph_zero_pagecache_range()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | mmci.c | 956 data->bytes_xfered = round_down(success, data->blksz); mmci_data_irq()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/ |
H A D | rx.c | 176 rxq->write_actual = round_down(rxq->write, 8); iwl_pcie_rxq_inc_wr_ptr()
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
H A D | omap_gem.c | 428 base_pgoff = round_down(pgoff, m << n_shift); fault_2d()
|
/linux-4.1.27/drivers/acpi/ |
H A D | osl.c | 400 pg_off = round_down(phys, PAGE_SIZE); acpi_os_map_iomem()
|
/linux-4.1.27/fs/ext4/ |
H A D | extents.c | 4765 end = round_down((offset + len), 1 << blkbits); ext4_zero_range() 4808 round_down(offset, 1 << blkbits) >> blkbits, ext4_zero_range() 4810 round_down(offset, 1 << blkbits)) >> blkbits, ext4_zero_range() 5460 ioffset = round_down(offset, PAGE_SIZE); ext4_collapse_range()
|
H A D | inode.c | 3651 last_block_offset = round_down((offset + length), sb->s_blocksize) - 1; ext4_punch_hole()
|
/linux-4.1.27/fs/ |
H A D | fs-writeback.c | 651 pages = round_down(pages + MIN_WRITEBACK_PAGES, writeback_chunk_size()
|
/linux-4.1.27/drivers/mtd/nand/gpmi-nand/ |
H A D | gpmi-nand.c | 117 return round_down(ecc_strength, 2); get_ecc_strength()
|
/linux-4.1.27/drivers/media/platform/coda/ |
H A D | coda-common.c | 1846 CODA_DOWN_DATA_SET(p[round_down(i, 4) + coda_hw_init()
|
/linux-4.1.27/fs/ubifs/ |
H A D | recovery.c | 714 min_io_unit = round_down(offs, c->min_io_size); ubifs_recover_leb()
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_output.c | 2402 free_space = round_down(free_space, 1 << tp->rx_opt.rcv_wscale); __tcp_select_window()
|
/linux-4.1.27/drivers/md/ |
H A D | md.c | 4451 mddev->resync_min = round_down(min, 8); min_sync_store()
|