/u-boot/board/imgtec/boston/ |
A D | ddr.c | 35 return min_t(unsigned long, gd->ram_top, CKSEG0ADDR(256 << 20)); in board_get_usable_ram_top()
|
A D | dt.c | 17 mem_size[0] = min_t(u64, 256llu << 20, gd->ram_size); in ft_board_setup()
|
/u-boot/drivers/usb/host/ |
A D | r8a66597-hcd.c | 641 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 D | ohci-hcd.c | 1361 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 D | vim3.c | 112 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 D | musb_hcd.c | 644 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 D | rtc.c | 38 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 D | sf.c | 233 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 D | mt7621_spi.c | 151 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 D | nand.h | 625 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 D | stm32-fmc2-ebi.c | 533 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 D | at91sam9_wdt.c | 49 timeout = min_t(u64, timeout, WDT_MAX_TIMEOUT); in at91_wdt_start()
|
A D | ast_wdt.c | 29 timeout = min_t(u64, timeout, 4294967); in ast_wdt_start()
|
A D | imx_watchdog.c | 79 timeout = min_t(u64, timeout, TIMEOUT_MAX); in imx_watchdog_init()
|
A D | cdns_wdt.c | 149 timeout = min_t(u64, timeout, CDNS_WDT_MAX_TIMEOUT); in cdns_wdt_start()
|
/u-boot/common/ |
A D | lcd_console.c | 33 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 D | misc.c | 102 need = min_t(int, need, ubi->avail_pebs); in ubi_update_reserved()
|
/u-boot/board/solidrun/common/ |
A D | tlv_data.c | 26 len = min_t(unsigned int, tlv_entry->length, in store_product_name()
|
/u-boot/drivers/rng/ |
A D | msm_rng.c | 49 maxsize = min_t(size_t, MAX_HW_FIFO_SIZE, len); in msm_rng_read()
|
/u-boot/include/linux/ |
A D | kernel.h | 223 #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 D | denali.c | 957 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 D | sm.c | 88 min_t(size_t, size, SM_CHIP_ID_SIZE)); in meson_sm_get_serial()
|
/u-boot/drivers/tpm/ |
A D | tpm2_tis_spi.c | 94 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 D | tpm_tis_st33zp24_i2c.c | 286 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 D | onenand_base.c | 793 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 …]
|