| /linux/include/linux/ |
| H A D | math.h | 51 #define DIV_ROUND_DOWN_ULL(ll, d) \ macro 55 DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d))
|
| /linux/drivers/pwm/ |
| H A D | pwm-keembay.c | 155 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply() 161 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply()
|
| H A D | pwm-raspberrypi-poe.c | 113 duty_cycle = DIV_ROUND_DOWN_ULL(state->duty_cycle * RPI_PWM_MAX_DUTY, in raspberrypi_pwm_apply()
|
| H A D | pwm-sl28cpld.c | 76 (DIV_ROUND_DOWN_ULL((duty_cycle), NSEC_PER_SEC / SL28CPLD_PWM_CLK))
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | user_pages.c | 41 DIV_ROUND_DOWN_ULL(rlimit(RLIMIT_MEMLOCK), PAGE_SIZE); in hfi1_can_pin_pages()
|
| /linux/drivers/gpu/drm/meson/ |
| H A D | meson_vclk.c | 627 pll_freq = DIV_ROUND_DOWN_ULL(pll_freq, 2); in meson_hdmi_pll_get_m() 629 return DIV_ROUND_DOWN_ULL(pll_freq, XTAL_FREQ); in meson_hdmi_pll_get_m() 1076 hdmi_tx_div = DIV_ROUND_DOWN_ULL(vclk_freq, dac_freq); in meson_vclk_setup() 1084 venc_div = DIV_ROUND_DOWN_ULL(vclk_freq, venc_freq); in meson_vclk_setup()
|
| /linux/drivers/reset/ |
| H A D | reset-brcmstb.c | 100 priv->rcdev.nr_resets = DIV_ROUND_DOWN_ULL(resource_size(res), in brcmstb_reset_probe()
|
| /linux/drivers/clk/mstar/ |
| H A D | clk-msc313-cpupll.c | 123 return DIV_ROUND_DOWN_ULL(prescaled, reg); in msc313_cpupll_frequencyforreg()
|
| /linux/drivers/clk/zynqmp/ |
| H A D | divider.c | 57 down = DIV_ROUND_DOWN_ULL((u64)parent_rate, rate); in zynqmp_divider_get_val()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_rect.c | 74 return DIV_ROUND_DOWN_ULL(tmp, dst); in clip_scaled()
|
| H A D | drm_vblank.c | 1030 vblank_start = DIV_ROUND_DOWN_ULL( in drm_crtc_next_vblank_start()
|
| /linux/net/ceph/ |
| H A D | striper.c | 232 DIV_ROUND_DOWN_ULL(objoff, l->stripe_unit); in ceph_extent_to_file()
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_txrx.h | 239 DIV_ROUND_DOWN_ULL((IDPF_CTLQ_MAX_BUF_LEN - IDPF_RX_PTYPE_HDR_SZ), \
|
| /linux/drivers/gpu/drm/bridge/imx/ |
| H A D | imx93-mipi-dsi.c | 251 max_n = DIV_ROUND_DOWN_ULL((u64)fin, MHZ(2)); in dphy_pll_get_configure_from_opts()
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | sar.c | 672 linear = DIV_ROUND_DOWN_ULL(tas->total_txpwr, tas->window_size * PERCENT); in rtw89_tas_rolling_average()
|
| /linux/drivers/accel/habanalabs/common/mmu/ |
| H A D | mmu.c | 513 page_id = DIV_ROUND_DOWN_ULL(abs_phys_addr, dram_page_size); in hl_mmu_pa_page_with_offset()
|
| /linux/drivers/mtd/spi-nor/ |
| H A D | core.c | 1202 *first = DIV_ROUND_DOWN_ULL(start, bank_size); in spi_nor_offset_to_banks() 1203 *last = DIV_ROUND_DOWN_ULL(start + len - 1, bank_size); in spi_nor_offset_to_banks()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | denali.c | 782 t_x = DIV_ROUND_DOWN_ULL(1000000000000ULL, denali->clk_x_rate); in denali_setup_interface()
|
| H A D | cadence-nand-controller.c | 2407 u32 clk_period = DIV_ROUND_DOWN_ULL(1000000000000ULL, in cadence_nand_setup_sdr_interface() 2691 u32 clk_period = DIV_ROUND_DOWN_ULL(1000000000000ULL, in cadence_nand_setup_nvddr_interface()
|
| H A D | nand_base.c | 4979 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in find_full_id_nand() 5243 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in nand_detect()
|
| /linux/drivers/clk/xilinx/ |
| H A D | clk-xlnx-clock-wizard.c | 748 rate_div = DIV_ROUND_DOWN_ULL(parent_rate * 1000, rate); in clk_wzrd_dynamic_reconfig_f()
|
| /linux/drivers/gpu/drm/bridge/cadence/ |
| H A D | cdns-dsi-core.c | 803 tx_byte_period = DIV_ROUND_DOWN_ULL((u64)NSEC_PER_SEC * 8, in cdns_dsi_bridge_atomic_pre_enable()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | habanalabs_ioctl.c | 77 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, prop->dram_page_size) * in hw_ip_info()
|
| H A D | memory.c | 1346 DIV_ROUND_DOWN_ULL(vaddr - prop->dram_base_address, in unmap_device_va()
|
| /linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
| H A D | smu_v13_0.c | 2474 DIV_ROUND_DOWN_ULL(exclusion_ranges[i].start, HZ_PER_MHZ); in smu_v13_0_set_wbrf_exclusion_ranges()
|