Home
last modified time | relevance | path

Searched refs:DIV_ROUND_DOWN_ULL (Results 1 – 25 of 28) sorted by relevance

12

/linux/include/linux/
H A Dmath.h39 #define DIV_ROUND_DOWN_ULL(ll, d) \ macro
43 DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d))
/linux/drivers/pwm/
H A Dpwm-keembay.c155 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 Dpwm-raspberrypi-poe.c113 duty_cycle = DIV_ROUND_DOWN_ULL(state->duty_cycle * RPI_PWM_MAX_DUTY, in raspberrypi_pwm_apply()
H A Dpwm-sl28cpld.c76 (DIV_ROUND_DOWN_ULL((duty_cycle), NSEC_PER_SEC / SL28CPLD_PWM_CLK))
H A Dpwm-pca9685.c470 state->duty_cycle = DIV_ROUND_DOWN_ULL(duty * state->period, PCA9685_COUNTER_RANGE); in pca9685_pwm_get_state()
/linux/drivers/infiniband/hw/hfi1/
H A Duser_pages.c41 DIV_ROUND_DOWN_ULL(rlimit(RLIMIT_MEMLOCK), PAGE_SIZE); in hfi1_can_pin_pages()
/linux/drivers/reset/
H A Dreset-brcmstb.c100 priv->rcdev.nr_resets = DIV_ROUND_DOWN_ULL(resource_size(res), in brcmstb_reset_probe()
/linux/drivers/clk/mstar/
H A Dclk-msc313-cpupll.c123 return DIV_ROUND_DOWN_ULL(prescaled, reg); in msc313_cpupll_frequencyforreg()
/linux/drivers/clk/zynqmp/
H A Ddivider.c57 down = DIV_ROUND_DOWN_ULL((u64)parent_rate, rate); in zynqmp_divider_get_val()
/linux/net/ceph/
H A Dstriper.c232 DIV_ROUND_DOWN_ULL(objoff, l->stripe_unit); in ceph_extent_to_file()
/linux/drivers/gpu/drm/
H A Ddrm_rect.c74 return DIV_ROUND_DOWN_ULL(tmp, dst); in clip_scaled()
H A Ddrm_vblank.c1015 vblank_start = DIV_ROUND_DOWN_ULL( in drm_crtc_next_vblank_start()
/linux/drivers/gpu/drm/mcde/
H A Dmcde_dsi.c604 bpl = DIV_ROUND_DOWN_ULL(bpl, 1000000); /* microseconds */ in mcde_dsi_setup_video_mode()
605 bpl = DIV_ROUND_DOWN_ULL(bpl, 1000000); /* seconds */ in mcde_dsi_setup_video_mode()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.h262 DIV_ROUND_DOWN_ULL((IDPF_CTLQ_MAX_BUF_LEN - IDPF_RX_PTYPE_HDR_SZ), \
/linux/drivers/gpu/drm/bridge/imx/
H A Dimx93-mipi-dsi.c251 max_n = DIV_ROUND_DOWN_ULL((u64)fin, MHZ(2)); in dphy_pll_get_configure_from_opts()
/linux/drivers/gpu/drm/tiny/
H A Dbochs.c585 if (mode->vdisplay > DIV_ROUND_DOWN_ULL(bochs->fb_size, pitch)) in bochs_mode_config_mode_valid()
/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c513 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 Dcore.c1207 *first = DIV_ROUND_DOWN_ULL(start, bank_size); in spi_nor_offset_to_banks()
1208 *last = DIV_ROUND_DOWN_ULL(start + len - 1, bank_size); in spi_nor_offset_to_banks()
/linux/sound/soc/codecs/
H A Dpcm512x.c847 pcm512x->real_pll = DIV_ROUND_DOWN_ULL((u64)K * pllin_rate, 10000 * P); in pcm512x_find_pll_coeff()
/linux/drivers/mtd/nand/raw/
H A Ddenali.c782 t_x = DIV_ROUND_DOWN_ULL(1000000000000ULL, denali->clk_x_rate); in denali_setup_interface()
/linux/drivers/gpu/drm/bridge/cadence/
H A Dcdns-dsi-core.c813 tx_byte_period = DIV_ROUND_DOWN_ULL((u64)NSEC_PER_SEC * 8, in cdns_dsi_bridge_enable()
/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs_ioctl.c79 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, prop->dram_page_size) * in hw_ip_info()
H A Dmemory.c1346 DIV_ROUND_DOWN_ULL(vaddr - prop->dram_base_address, in unmap_device_va()
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0.c2573 DIV_ROUND_DOWN_ULL(exclusion_ranges[i].start, HZ_PER_MHZ); in smu_v13_0_set_wbrf_exclusion_ranges()
/linux/drivers/gpu/drm/display/
H A Ddrm_dp_helper.c4431 return DIV_ROUND_DOWN_ULL(mul_u32_u32(max_link_rate * 10 * max_lanes, in drm_dp_max_dprx_data_rate()

12