| /linux/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | mm.c | 135 e = rounddown(e, mm->block_size); in nvkm_mm_head() 209 e = rounddown(e, mm->block_size); in nvkm_mm_tail() 271 node->length = rounddown(offset + length, mm->block_size); in nvkm_mm_init()
|
| /linux/drivers/nvmem/ |
| H A D | rockchip-efuse.c | 112 addr_start = rounddown(offset, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3328_efuse_read() 165 addr_start = rounddown(offset, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3399_efuse_read()
|
| H A D | stm32-romem.c | 84 roffset = rounddown(offset, 4); in stm32_bsec_read()
|
| /linux/drivers/tty/vt/ |
| H A D | selection.c | 284 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection() 285 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | efx_reflash.c | 295 chunk = rounddown(EFX_NVRAM_ERASE_IDEAL_CHUNK_SIZE, align); in efx_reflash_erase_partition() 343 chunk = rounddown(write_max, align); in efx_reflash_write_partition()
|
| /linux/fs/proc/ |
| H A D | vmcore.c | 1138 start = rounddown(paddr, PAGE_SIZE); in process_ptload_program_headers_elf64() 1175 start = rounddown(paddr, PAGE_SIZE); in process_ptload_program_headers_elf32() 1414 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers() 1434 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers() 1585 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcore_reset_offsets_elf64()
|
| /linux/drivers/powercap/ |
| H A D | arm_scmi_powercap.c | 113 *norm = rounddown(*norm, spz->info->power_cap_step); in scmi_powercap_normalize_cap() 163 *norm = rounddown(*norm, spz->info->pai_step); in scmi_powercap_normalize_time()
|
| /linux/include/linux/ |
| H A D | math.h | 85 #define rounddown(x, y) ( \ macro
|
| /linux/block/ |
| H A D | badblocks.c | 860 rounddown(s, 1 << bb->shift); in _badblocks_set() 1075 rounddown(target, 1 << bb->shift); in _badblocks_clear() 1310 rounddown(s, 1 << bb->shift); in badblocks_check()
|
| /linux/lib/ |
| H A D | test_hexdump.c | 217 test_hexdump_overflow(buflen, rounddown(len, gs), rs, gs, ascii); in test_hexdump_overflow_set()
|
| /linux/drivers/iio/adc/ |
| H A D | ti_am335x_adc.c | 245 dma->fifo_thresh = rounddown(FIFO1_THRESHOLD + 1, in tiadc_start_dma() 249 dma->period_size = rounddown(DMA_BUFFER_SIZE / 2, in tiadc_start_dma()
|
| /linux/fs/nilfs2/ |
| H A D | alloc.c | 859 entry_start = rounddown(group_offset, epb); in nilfs_palloc_freev() 897 entry_start = rounddown(group_offset, epb); in nilfs_palloc_freev()
|
| /linux/drivers/gpu/drm/sitronix/ |
| H A D | st7586.c | 122 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
|
| /linux/drivers/cpufreq/ |
| H A D | intel_pstate.c | 590 cpu->pstate.turbo_freq = rounddown(cpu->pstate.turbo_pstate * scaling, in intel_pstate_hybrid_hwp_adjust() 592 cpu->pstate.max_freq = rounddown(cpu->pstate.max_pstate * scaling, in intel_pstate_hybrid_hwp_adjust() 895 freq = rounddown(freq, cpu->pstate.perf_ctl_scaling); in show_base_frequency() 1207 cpu->pstate.max_freq = rounddown(cpu->pstate.max_freq, in intel_pstate_get_hwp_cap() 1209 cpu->pstate.turbo_freq = rounddown(cpu->pstate.turbo_freq, in intel_pstate_get_hwp_cap()
|
| /linux/drivers/atm/ |
| H A D | lanai.c | 2069 int rounddown = 0; /* 1 = Round PCR down, i.e. round ICG _up_ */ in pcr_to_cbricg() local 2074 rounddown = 1; in pcr_to_cbricg() 2079 if (rounddown) in pcr_to_cbricg() 2085 pcr, rounddown ? 'Y' : 'N', icg); in pcr_to_cbricg()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | bmi.c | 461 u32 head_len = rounddown(length, 4); in ath10k_bmi_fast_download()
|
| /linux/drivers/md/ |
| H A D | dm-stripe.c | 470 max_hw_discard_sectors = rounddown(max_hw_discard_sectors, in stripe_io_hints()
|
| /linux/drivers/s390/char/ |
| H A D | sclp_mem.c | 364 size_align = rounddown(*start + *size, alignment) - start_align; in align_to_block_size()
|
| /linux/drivers/comedi/drivers/ |
| H A D | usbduxsigma.c | 531 tmp = rounddown(cmd->scan_begin_arg, high_speed ? 125000 : 1000000); in usbduxsigma_ai_cmdtest() 882 tmp = rounddown(cmd->scan_begin_arg, 1000000); in usbduxsigma_ao_cmdtest()
|
| /linux/drivers/leds/flash/ |
| H A D | leds-mt6370-flash.c | 430 retval = rounddown(retval - min, step) + min; in mt6370_clamp()
|
| /linux/drivers/acpi/ |
| H A D | fan_core.c | 456 lower = rounddown((u32)fst->speed - min_trip_distance, fan->fan_trip_granularity); in acpi_fan_dsm_update_trips_points()
|
| /linux/drivers/iio/buffer/ |
| H A D | industrialio-buffer-dma.c | 577 n = rounddown(n, buffer->bytes_per_datum); in iio_dma_buffer_io()
|
| /linux/drivers/dma/ |
| H A D | uniphier-xdmac.c | 306 tlen = rounddown(len, burst_size); in uniphier_xdmac_prep_dma_memcpy()
|
| /linux/fs/xfs/scrub/ |
| H A D | ialloc_repair.c | 233 ir_startino = rounddown(ir_startino, XFS_INODES_PER_CHUNK); in xrep_ibt_cluster_record()
|
| /linux/drivers/tee/ |
| H A D | tee_shm.c | 434 start = rounddown(addr, PAGE_SIZE); in register_shm_helper()
|