Home
last modified time | relevance | path

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

12

/openbmc/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))
/openbmc/linux/drivers/pwm/
H A Dpwm-keembay.c156 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply()
162 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply()
H A Dpwm-raspberrypi-poe.c114 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.c466 state->duty_cycle = DIV_ROUND_DOWN_ULL(duty * state->period, PCA9685_COUNTER_RANGE); in pca9685_pwm_get_state()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Duser_pages.c41 DIV_ROUND_DOWN_ULL(rlimit(RLIMIT_MEMLOCK), PAGE_SIZE); in hfi1_can_pin_pages()
/openbmc/u-boot/include/linux/
H A Dkernel.h65 #define DIV_ROUND_DOWN_ULL(ll, d) \ macro
68 #define DIV_ROUND_UP_ULL(ll, d) DIV_ROUND_DOWN_ULL((ll) + (d) - 1, (d))
/openbmc/linux/lib/dim/
H A Ddim.c77 curr_stats->cpe_ratio = DIV_ROUND_DOWN_ULL( in dim_calc_stats()
/openbmc/linux/drivers/reset/
H A Dreset-brcmstb.c101 priv->rcdev.nr_resets = DIV_ROUND_DOWN_ULL(resource_size(res), in brcmstb_reset_probe()
/openbmc/linux/drivers/clk/mstar/
H A Dclk-msc313-cpupll.c123 return DIV_ROUND_DOWN_ULL(prescaled, reg); in msc313_cpupll_frequencyforreg()
/openbmc/linux/drivers/clk/zynqmp/
H A Ddivider.c57 down = DIV_ROUND_DOWN_ULL((u64)parent_rate, rate); in zynqmp_divider_get_val()
/openbmc/linux/net/ceph/
H A Dstriper.c232 DIV_ROUND_DOWN_ULL(objoff, l->stripe_unit); in ceph_extent_to_file()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/clk/xilinx/
H A Dclk-xlnx-clock-wizard.c399 rate_div = DIV_ROUND_DOWN_ULL(parent_rate * 1000, rate); in clk_wzrd_dynamic_reconfig_f()
/openbmc/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c512 page_id = DIV_ROUND_DOWN_ULL(abs_phys_addr, dram_page_size); in hl_mmu_pa_page_with_offset()
/openbmc/linux/drivers/mtd/spi-nor/
H A Dcore.c1195 *first = DIV_ROUND_DOWN_ULL(start, bank_size); in spi_nor_offset_to_banks()
1196 *last = DIV_ROUND_DOWN_ULL(start + len - 1, bank_size); in spi_nor_offset_to_banks()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Ddenali.c958 t_x = DIV_ROUND_DOWN_ULL(1000000000000ULL, denali->clk_x_rate); in denali_setup_data_interface()
/openbmc/linux/drivers/mtd/nand/raw/
H A Ddenali.c782 t_x = DIV_ROUND_DOWN_ULL(1000000000000ULL, denali->clk_x_rate); in denali_setup_interface()
/openbmc/linux/sound/soc/codecs/
H A Dpcm512x.c846 pcm512x->real_pll = DIV_ROUND_DOWN_ULL((u64)K * pllin_rate, 10000 * P); in pcm512x_find_pll_coeff()
/openbmc/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()
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs_ioctl.c74 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, prop->dram_page_size) * in hw_ip_info()
H A Ddevice.c55 bar_base_addr = DIV_ROUND_DOWN_ULL(addr, prop->dram_pci_bar_size) * in hl_set_dram_bar()
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A Dcore.c2611 DIV_ROUND_DOWN_ULL(stats->tx_unicast, stats->tx_cnt) : 0; in rtw89_traffic_stats_calc()
2613 DIV_ROUND_DOWN_ULL(stats->rx_unicast, stats->rx_cnt) : 0; in rtw89_traffic_stats_calc()

12