Home
last modified time | relevance | path

Searched refs:rounddown (Results 1 – 25 of 72) sorted by relevance

123

/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Dmm.c135 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 Drockchip-efuse.c112 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 Dstm32-romem.c84 roffset = rounddown(offset, 4); in stm32_bsec_read()
/linux/drivers/tty/vt/
H A Dselection.c284 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 Defx_reflash.c295 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 Dvmcore.c1138 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 Darm_scmi_powercap.c113 *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 Dmath.h85 #define rounddown(x, y) ( \ macro
/linux/block/
H A Dbadblocks.c860 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 Dtest_hexdump.c217 test_hexdump_overflow(buflen, rounddown(len, gs), rs, gs, ascii); in test_hexdump_overflow_set()
/linux/drivers/iio/adc/
H A Dti_am335x_adc.c245 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 Dalloc.c859 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 Dst7586.c122 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
/linux/drivers/cpufreq/
H A Dintel_pstate.c590 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 Dlanai.c2069 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 Dbmi.c461 u32 head_len = rounddown(length, 4); in ath10k_bmi_fast_download()
/linux/drivers/md/
H A Ddm-stripe.c470 max_hw_discard_sectors = rounddown(max_hw_discard_sectors, in stripe_io_hints()
/linux/drivers/s390/char/
H A Dsclp_mem.c364 size_align = rounddown(*start + *size, alignment) - start_align; in align_to_block_size()
/linux/drivers/comedi/drivers/
H A Dusbduxsigma.c531 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 Dleds-mt6370-flash.c430 retval = rounddown(retval - min, step) + min; in mt6370_clamp()
/linux/drivers/acpi/
H A Dfan_core.c456 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 Dindustrialio-buffer-dma.c577 n = rounddown(n, buffer->bytes_per_datum); in iio_dma_buffer_io()
/linux/drivers/dma/
H A Duniphier-xdmac.c306 tlen = rounddown(len, burst_size); in uniphier_xdmac_prep_dma_memcpy()
/linux/fs/xfs/scrub/
H A Dialloc_repair.c233 ir_startino = rounddown(ir_startino, XFS_INODES_PER_CHUNK); in xrep_ibt_cluster_record()
/linux/drivers/tee/
H A Dtee_shm.c434 start = rounddown(addr, PAGE_SIZE); in register_shm_helper()

123