Home
last modified time | relevance | path

Searched refs:clamp_val (Results 1 – 5 of 5) sorted by relevance

/u-boot/drivers/memory/
A Dstm32-fmc2-ebi.c556 val = clamp_val(setup, 1, FMC2_BXTR_ADDSET_MAX); in stm32_fmc2_ebi_set_address_setup()
576 val = clamp_val(setup, 1, FMC2_BXTR_ADDHLD_MAX); in stm32_fmc2_ebi_set_address_hold()
594 val = clamp_val(setup, 1, FMC2_BXTR_DATAST_MAX); in stm32_fmc2_ebi_set_data_setup()
646 val = setup ? clamp_val(setup - 1, 1, FMC2_BTR_CLKDIV_MAX) : 1; in stm32_fmc2_ebi_set_clk_period()
/u-boot/drivers/mtd/nand/raw/
A Dstm32_fmc2_nand.c626 tims->twait = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings()
642 tims->tset_mem = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings()
660 tims->thold_mem = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings()
683 tims->tset_att = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings()
722 tims->thold_att = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings()
/u-boot/include/linux/
A Dkernel.h256 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi) macro
/u-boot/drivers/usb/mtu3/
A Dmtu3_gadget.c80 interval = clamp_val(interval, 1, 16) - 1; in mtu3_ep_enable()
92 interval = clamp_val(interval, 1, 16) - 1; in mtu3_ep_enable()
/u-boot/drivers/usb/host/
A Dxhci.c304 interval = clamp_val(interval, min_exponent, max_exponent); in xhci_microframes_to_exponent()
337 interval = clamp_val(endpt_desc->bInterval, 1, 16) - 1; in xhci_parse_exponent_interval()

Completed in 20 milliseconds