Searched refs:TO_CYCLES (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/mtd/nand/raw/ |
D | pl35x-nand-controller.c | 101 #define TO_CYCLES(ps, period_ns) (DIV_ROUND_UP((ps) / 1000, period_ns)) macro 808 val = TO_CYCLES(sdr->tRC_min, period_ns); in pl35x_nfc_setup_interface() 816 val = TO_CYCLES(sdr->tWC_min, period_ns); in pl35x_nfc_setup_interface() 827 val = TO_CYCLES(sdr->tWP_min, period_ns); in pl35x_nfc_setup_interface() 832 val = TO_CYCLES(sdr->tCLR_min, period_ns); in pl35x_nfc_setup_interface() 837 val = TO_CYCLES(sdr->tAR_min, period_ns); in pl35x_nfc_setup_interface() 842 val = TO_CYCLES(sdr->tRR_min, period_ns); in pl35x_nfc_setup_interface()
|
D | marvell_nand.c | 462 #define TO_CYCLES(ps, period_ns) (DIV_ROUND_UP(ps / 1000, period_ns)) macro 2382 nfc_tmg.tRP = TO_CYCLES(DIV_ROUND_UP(sdr->tRC_min, 2), period_ns) - 1; in marvell_nfc_setup_interface() 2384 nfc_tmg.tWP = TO_CYCLES(DIV_ROUND_UP(sdr->tWC_min, 2), period_ns) - 1; in marvell_nfc_setup_interface() 2386 nfc_tmg.tCS = TO_CYCLES(sdr->tCS_min, period_ns); in marvell_nfc_setup_interface() 2387 nfc_tmg.tCH = TO_CYCLES(sdr->tCH_min, period_ns) - 1; in marvell_nfc_setup_interface() 2388 nfc_tmg.tADL = TO_CYCLES(sdr->tADL_min, period_ns); in marvell_nfc_setup_interface() 2398 nfc_tmg.tAR = TO_CYCLES(sdr->tAR_min, period_ns); in marvell_nfc_setup_interface() 2404 nfc_tmg.tWHR = TO_CYCLES(max_t(int, sdr->tWHR_min, sdr->tCCS_min), in marvell_nfc_setup_interface() 2406 nfc_tmg.tRHW = TO_CYCLES(max_t(int, sdr->tRHW_min, sdr->tCCS_min), in marvell_nfc_setup_interface() 2414 nfc_tmg.tR = TO_CYCLES(sdr->tWB_max, period_ns); in marvell_nfc_setup_interface()
|
/Linux-v6.1/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 29 #define TO_CYCLES(duration, period) DIV_ROUND_UP_ULL(duration, period) macro 886 addr_setup_cycles = TO_CYCLES(sdr->tALS_min, period_ps); in gpmi_nfc_compute_timings() 887 data_setup_cycles = TO_CYCLES(sdr->tDS_min, period_ps); in gpmi_nfc_compute_timings() 888 data_hold_cycles = TO_CYCLES(sdr->tDH_min, period_ps); in gpmi_nfc_compute_timings() 890 busy_timeout_cycles = TO_CYCLES(busy_timeout_ps, period_ps); in gpmi_nfc_compute_timings()
|