Home
last modified time | relevance | path

Searched refs:min_t (Results 1 – 25 of 75) sorted by relevance

123

/u-boot/board/imgtec/boston/
A Dddr.c35 return min_t(unsigned long, gd->ram_top, CKSEG0ADDR(256 << 20)); in board_get_usable_ram_top()
A Ddt.c17 mem_size[0] = min_t(u64, 256llu << 20, gd->ram_size); in ft_board_setup()
/u-boot/drivers/usb/host/
A Dr8a66597-hcd.c641 len = min_t(unsigned int, in r8a66597_submit_rh_msg()
643 min_t(unsigned int, in r8a66597_submit_rh_msg()
649 len = min_t(unsigned int, in r8a66597_submit_rh_msg()
651 min_t(unsigned int, in r8a66597_submit_rh_msg()
658 len = min_t(unsigned int, in r8a66597_submit_rh_msg()
660 min_t(unsigned int, in r8a66597_submit_rh_msg()
666 len = min_t(unsigned int, in r8a66597_submit_rh_msg()
668 min_t(unsigned int, in r8a66597_submit_rh_msg()
706 len = min_t(unsigned int, leni, in r8a66597_submit_rh_msg()
707 min_t(unsigned int, data[0], wLength)); in r8a66597_submit_rh_msg()
[all …]
A Dohci-hcd.c1361 len = min_t(unsigned int, in ohci_submit_rh_msg()
1363 min_t(unsigned int, in ohci_submit_rh_msg()
1368 len = min_t(unsigned int, in ohci_submit_rh_msg()
1370 min_t(unsigned int, in ohci_submit_rh_msg()
1376 len = min_t(unsigned int, in ohci_submit_rh_msg()
1378 min_t(unsigned int, in ohci_submit_rh_msg()
1385 len = min_t(unsigned int, in ohci_submit_rh_msg()
1387 min_t(unsigned int, in ohci_submit_rh_msg()
1429 len = min_t(unsigned int, leni, in ohci_submit_rh_msg()
1430 min_t(unsigned int, databuf[0], wLength)); in ohci_submit_rh_msg()
[all …]
/u-boot/board/amlogic/vim3/
A Dvim3.c112 memcpy(data, ptmp, min_t(unsigned int, 2 * sizeof(u32), len)); in meson_ft_board_setup()
115 min_t(unsigned int, 2 * sizeof(u32), len)); in meson_ft_board_setup()
/u-boot/drivers/usb/musb/
A Dmusb_hcd.c644 len = min_t(unsigned int, in musb_submit_rh_msg()
645 leni, min_t(unsigned int, in musb_submit_rh_msg()
652 len = min_t(unsigned int, in musb_submit_rh_msg()
653 leni, min_t(unsigned int, in musb_submit_rh_msg()
660 len = min_t(unsigned int, in musb_submit_rh_msg()
661 leni, min_t(unsigned int, in musb_submit_rh_msg()
668 len = min_t(unsigned int, in musb_submit_rh_msg()
669 leni, min_t(unsigned int, in musb_submit_rh_msg()
699 len = min_t(unsigned int, leni, in musb_submit_rh_msg()
700 min_t(unsigned int, data_buf[0], wLength)); in musb_submit_rh_msg()
[all …]
/u-boot/cmd/
A Drtc.c38 r = min_t(int, len, sizeof(buf)); in do_rtc_read()
87 len = min_t(int, slen / 2, sizeof(buf)); in do_rtc_write()
A Dsf.c233 todo = min_t(size_t, end - buf, flash->sector_size); in spi_flash_update()
470 min_t(uint, len - i, 0x40), 0); in spi_flash_test()
495 min_t(uint, len - i, 0x40), 0); in spi_flash_test()
498 min_t(uint, len - i, 0x40), 0); in spi_flash_test()
/u-boot/drivers/spi/
A Dmt7621_spi.c151 rx_len = min_t(size_t, len, MT7621_RX_FIFO_LEN); in mt7621_spi_read()
181 tx_len = min_t(size_t, len, MT7621_TX_FIFO_LEN); in mt7621_spi_write()
183 opcode_len = min_t(size_t, tx_len, 4); in mt7621_spi_write()
/u-boot/include/linux/mtd/
A Dnand.h625 iter->req.datalen = min_t(unsigned int, in nanddev_io_iter_init()
629 iter->req.ooblen = min_t(unsigned int, in nanddev_io_iter_init()
651 iter->req.datalen = min_t(unsigned int, nand->memorg.pagesize, in nanddev_io_iter_next_page()
653 iter->req.ooblen = min_t(unsigned int, iter->oobbytes_per_page, in nanddev_io_iter_next_page()
/u-boot/drivers/memory/
A Dstm32-fmc2-ebi.c533 val = min_t(u32, setup, FMC2_BCR_NBLSET_MAX); in stm32_fmc2_ebi_set_bl_setup()
558 val = min_t(u32, setup, FMC2_BXTR_ADDSET_MAX); in stm32_fmc2_ebi_set_address_setup()
612 val = setup ? min_t(u32, setup - 1, FMC2_BXTR_BUSTURN_MAX) : 0; in stm32_fmc2_ebi_set_bus_turnaround()
631 val = setup ? min_t(u32, setup - 1, FMC2_BXTR_DATAHLD_MAX) : 0; in stm32_fmc2_ebi_set_data_hold()
633 val = min_t(u32, setup, FMC2_BXTR_DATAHLD_MAX); in stm32_fmc2_ebi_set_data_hold()
659 val = setup > 1 ? min_t(u32, setup - 2, FMC2_BTR_DATLAT_MAX) : 0; in stm32_fmc2_ebi_set_data_latency()
680 new_val = min_t(u32, setup - 1, FMC2_PCSCNTR_CSCOUNT_MAX); in stm32_fmc2_ebi_set_max_low_pulse()
/u-boot/drivers/watchdog/
A Dat91sam9_wdt.c49 timeout = min_t(u64, timeout, WDT_MAX_TIMEOUT); in at91_wdt_start()
A Dast_wdt.c29 timeout = min_t(u64, timeout, 4294967); in ast_wdt_start()
A Dimx_watchdog.c79 timeout = min_t(u64, timeout, TIMEOUT_MAX); in imx_watchdog_init()
A Dcdns_wdt.c149 timeout = min_t(u64, timeout, CDNS_WDT_MAX_TIMEOUT); in cdns_wdt_start()
/u-boot/common/
A Dlcd_console.c33 cons.curr_col = min_t(short, col, cons.cols - 1); in lcd_position_cursor()
34 cons.curr_row = min_t(short, row, cons.rows - 1); in lcd_position_cursor()
/u-boot/drivers/mtd/ubi/
A Dmisc.c102 need = min_t(int, need, ubi->avail_pebs); in ubi_update_reserved()
/u-boot/board/solidrun/common/
A Dtlv_data.c26 len = min_t(unsigned int, tlv_entry->length, in store_product_name()
/u-boot/drivers/rng/
A Dmsm_rng.c49 maxsize = min_t(size_t, MAX_HW_FIFO_SIZE, len); in msm_rng_read()
/u-boot/include/linux/
A Dkernel.h223 #define min_t(type, x, y) ({ \ macro
243 #define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi)
/u-boot/drivers/mtd/nand/raw/
A Ddenali.c957 acc_clks = min_t(int, acc_clks, ACC_CLKS__VALUE); in denali_setup_data_interface()
966 re_2_we = min_t(int, re_2_we, RE_2_WE__VALUE); in denali_setup_data_interface()
975 re_2_re = min_t(int, re_2_re, RE_2_RE__VALUE); in denali_setup_data_interface()
989 we_2_re = min_t(int, we_2_re, TWHR2_AND_WE_2_RE__WE_2_RE); in denali_setup_data_interface()
1004 addr_2_data = min_t(int, addr_2_data, addr_2_data_mask); in denali_setup_data_interface()
1014 rdwr_en_hi = min_t(int, rdwr_en_hi, RDWR_EN_HI_CNT__VALUE); in denali_setup_data_interface()
1027 rdwr_en_lo = min_t(int, rdwr_en_lo, RDWR_EN_LO_CNT__VALUE); in denali_setup_data_interface()
1038 cs_setup = min_t(int, cs_setup, CS_SETUP_CNT__VALUE); in denali_setup_data_interface()
/u-boot/arch/arm/mach-meson/
A Dsm.c88 min_t(size_t, size, SM_CHIP_ID_SIZE)); in meson_sm_get_serial()
/u-boot/drivers/tpm/
A Dtpm2_tis_spi.c94 transfer_len = min_t(u16, len, MAX_SPI_FRAMESIZE); in tpm_tis_spi_xfer()
353 len = min_t(int, burstcnt, count - size); in tpm_tis_spi_recv_data()
457 size = min_t(int, len - i - 1, burstcnt); in tpm_tis_spi_send()
A Dtpm_tis_st33zp24_i2c.c286 len = min_t(int, burstcnt, count - size); in st33zp24_i2c_recv_data()
383 size = min_t(int, len - i - 1, burstcnt); in st33zp24_i2c_send()
/u-boot/drivers/mtd/onenand/
A Donenand_base.c793 int ed = min_t(int,free_end,readend); in onenand_transfer_auto_oob()
901 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
932 thisooblen = min_t(int, thisooblen, ooblen - oobread); in onenand_read_ops_nolock()
963 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
1047 thislen = min_t(int, thislen, len); in onenand_read_oob_nolock()
1245 thislen = min_t(int, thislen, len); in onenand_bbt_read_oob()
1327 thislen = min_t(int, this->writesize, len); in onenand_verify()
1395 int ed = min_t(int,free_end,writeend); in onenand_fill_auto_oob()
1452 thislen = min_t(int, mtd->writesize - column, len - written); in onenand_write_ops_nolock()
1453 thisooblen = min_t(int, oobsize - oobcolumn, ooblen - oobwritten); in onenand_write_ops_nolock()
[all …]

Completed in 83 milliseconds

123