Lines Matching +full:1000 +full:ns
299 rate /= 1000; in gpmc_get_fclk_period()
343 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks()
411 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns()
427 * tick format: gpmc,name = <value> /‍* x ns -- y ns; x ticks *‍/
428 * Where x ns -- y ns result in the same tick value.
460 /* DTS tick format for timings in ns */ in get_gpmc_timing_reg()
467 pr_info("gpmc,%s = <%u>; /* %u ns - %u ns; %i ticks%s*/\n", in get_gpmc_timing_reg()
544 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 0, 3, "cs-on-ns"); in gpmc_cs_show_timings()
545 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 8, 12, "cs-rd-off-ns"); in gpmc_cs_show_timings()
546 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 16, 20, "cs-wr-off-ns"); in gpmc_cs_show_timings()
548 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 0, 3, "adv-on-ns"); in gpmc_cs_show_timings()
549 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 8, 12, "adv-rd-off-ns"); in gpmc_cs_show_timings()
550 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 16, 20, "adv-wr-off-ns"); in gpmc_cs_show_timings()
552 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 4, 6, "adv-aad-mux-on-ns"); in gpmc_cs_show_timings()
554 "adv-aad-mux-rd-off-ns"); in gpmc_cs_show_timings()
556 "adv-aad-mux-wr-off-ns"); in gpmc_cs_show_timings()
559 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 0, 3, "oe-on-ns"); in gpmc_cs_show_timings()
560 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 8, 12, "oe-off-ns"); in gpmc_cs_show_timings()
562 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 4, 6, "oe-aad-mux-on-ns"); in gpmc_cs_show_timings()
563 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 13, 15, "oe-aad-mux-off-ns"); in gpmc_cs_show_timings()
565 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 16, 19, "we-on-ns"); in gpmc_cs_show_timings()
566 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 24, 28, "we-off-ns"); in gpmc_cs_show_timings()
568 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 0, 4, "rd-cycle-ns"); in gpmc_cs_show_timings()
569 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 8, 12, "wr-cycle-ns"); in gpmc_cs_show_timings()
570 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 16, 20, "access-ns"); in gpmc_cs_show_timings()
572 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 24, 27, "page-burst-access-ns"); in gpmc_cs_show_timings()
574 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 0, 3, "bus-turnaround-ns"); in gpmc_cs_show_timings()
575 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 8, 11, "cycle2cycle-delay-ns"); in gpmc_cs_show_timings()
579 "wait-monitoring-ns", GPMC_CD_CLK); in gpmc_cs_show_timings()
582 "clk-activation-ns", GPMC_CD_FCLK); in gpmc_cs_show_timings()
584 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 16, 19, "wr-data-mux-bus-ns"); in gpmc_cs_show_timings()
585 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 24, 28, "wr-access-ns"); in gpmc_cs_show_timings()
604 * @time: Timing parameter in ns.
626 pr_err("%s: GPMC CS%d: %s %d ns, %d ticks > %d ticks\n", in set_gpmc_timing_reg()
634 pr_info("GPMC CS%d: %-17s: %3d ticks, %3lu ns (was %3i ticks) %3d ns\n", in set_gpmc_timing_reg()
635 cs, name, ticks, gpmc_get_clk_period(cs, cd) * ticks / 1000, in set_gpmc_timing_reg()
657 * @wait_monitoring: WAITMONITORINGTIME in ns.
728 pr_err("%s: waitmonitoringtime %3d ns too large for greatest gpmcfclkdivider.\n", in gpmc_cs_set_timings()
842 pr_info("GPMC CS%d CLK period is %lu ns (div %d)\n", in gpmc_cs_set_timings()
843 cs, (div * gpmc_get_fclk_period()) / 1000, div); in gpmc_cs_set_timings()
1243 dev_t.t_avdp_w = max(t_avdp, t_cer) * 1000; in gpmc_omap_onenand_calc_sync_timings()
1244 dev_t.t_wpl = t_wpl * 1000; in gpmc_omap_onenand_calc_sync_timings()
1245 dev_t.t_wph = t_wph * 1000; in gpmc_omap_onenand_calc_sync_timings()
1246 dev_t.t_aavdh = t_aavdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1254 dev_t.t_ces = t_ces * 1000; in gpmc_omap_onenand_calc_sync_timings()
1255 dev_t.t_avds = t_avds * 1000; in gpmc_omap_onenand_calc_sync_timings()
1256 dev_t.t_avdh = t_avdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1257 dev_t.t_ach = t_ach * 1000; in gpmc_omap_onenand_calc_sync_timings()
1259 dev_t.t_cez_r = t_cez * 1000; in gpmc_omap_onenand_calc_sync_timings()
1262 dev_t.t_rdyo = t_rdyo * 1000 + min_gpmc_clk_period; in gpmc_omap_onenand_calc_sync_timings()
1795 * has to be modified to handle timings in ps instead of ns
1799 t->cs_on /= 1000; in gpmc_convert_ps_to_ns()
1800 t->cs_rd_off /= 1000; in gpmc_convert_ps_to_ns()
1801 t->cs_wr_off /= 1000; in gpmc_convert_ps_to_ns()
1802 t->adv_on /= 1000; in gpmc_convert_ps_to_ns()
1803 t->adv_rd_off /= 1000; in gpmc_convert_ps_to_ns()
1804 t->adv_wr_off /= 1000; in gpmc_convert_ps_to_ns()
1805 t->we_on /= 1000; in gpmc_convert_ps_to_ns()
1806 t->we_off /= 1000; in gpmc_convert_ps_to_ns()
1807 t->oe_on /= 1000; in gpmc_convert_ps_to_ns()
1808 t->oe_off /= 1000; in gpmc_convert_ps_to_ns()
1809 t->page_burst_access /= 1000; in gpmc_convert_ps_to_ns()
1810 t->access /= 1000; in gpmc_convert_ps_to_ns()
1811 t->rd_cycle /= 1000; in gpmc_convert_ps_to_ns()
1812 t->wr_cycle /= 1000; in gpmc_convert_ps_to_ns()
1813 t->bus_turnaround /= 1000; in gpmc_convert_ps_to_ns()
1814 t->cycle2cycle_delay /= 1000; in gpmc_convert_ps_to_ns()
1815 t->wait_monitoring /= 1000; in gpmc_convert_ps_to_ns()
1816 t->clk_activation /= 1000; in gpmc_convert_ps_to_ns()
1817 t->wr_access /= 1000; in gpmc_convert_ps_to_ns()
1818 t->wr_data_mux_bus /= 1000; in gpmc_convert_ps_to_ns()
2076 of_property_read_u32(np, "gpmc,cs-on-ns", &gpmc_t->cs_on); in gpmc_read_timings_dt()
2077 of_property_read_u32(np, "gpmc,cs-rd-off-ns", &gpmc_t->cs_rd_off); in gpmc_read_timings_dt()
2078 of_property_read_u32(np, "gpmc,cs-wr-off-ns", &gpmc_t->cs_wr_off); in gpmc_read_timings_dt()
2081 of_property_read_u32(np, "gpmc,adv-on-ns", &gpmc_t->adv_on); in gpmc_read_timings_dt()
2082 of_property_read_u32(np, "gpmc,adv-rd-off-ns", &gpmc_t->adv_rd_off); in gpmc_read_timings_dt()
2083 of_property_read_u32(np, "gpmc,adv-wr-off-ns", &gpmc_t->adv_wr_off); in gpmc_read_timings_dt()
2084 of_property_read_u32(np, "gpmc,adv-aad-mux-on-ns", in gpmc_read_timings_dt()
2086 of_property_read_u32(np, "gpmc,adv-aad-mux-rd-off-ns", in gpmc_read_timings_dt()
2088 of_property_read_u32(np, "gpmc,adv-aad-mux-wr-off-ns", in gpmc_read_timings_dt()
2092 of_property_read_u32(np, "gpmc,we-on-ns", &gpmc_t->we_on); in gpmc_read_timings_dt()
2093 of_property_read_u32(np, "gpmc,we-off-ns", &gpmc_t->we_off); in gpmc_read_timings_dt()
2096 of_property_read_u32(np, "gpmc,oe-on-ns", &gpmc_t->oe_on); in gpmc_read_timings_dt()
2097 of_property_read_u32(np, "gpmc,oe-off-ns", &gpmc_t->oe_off); in gpmc_read_timings_dt()
2098 of_property_read_u32(np, "gpmc,oe-aad-mux-on-ns", in gpmc_read_timings_dt()
2100 of_property_read_u32(np, "gpmc,oe-aad-mux-off-ns", in gpmc_read_timings_dt()
2104 of_property_read_u32(np, "gpmc,page-burst-access-ns", in gpmc_read_timings_dt()
2106 of_property_read_u32(np, "gpmc,access-ns", &gpmc_t->access); in gpmc_read_timings_dt()
2107 of_property_read_u32(np, "gpmc,rd-cycle-ns", &gpmc_t->rd_cycle); in gpmc_read_timings_dt()
2108 of_property_read_u32(np, "gpmc,wr-cycle-ns", &gpmc_t->wr_cycle); in gpmc_read_timings_dt()
2109 of_property_read_u32(np, "gpmc,bus-turnaround-ns", in gpmc_read_timings_dt()
2111 of_property_read_u32(np, "gpmc,cycle2cycle-delay-ns", in gpmc_read_timings_dt()
2113 of_property_read_u32(np, "gpmc,wait-monitoring-ns", in gpmc_read_timings_dt()
2115 of_property_read_u32(np, "gpmc,clk-activation-ns", in gpmc_read_timings_dt()
2119 of_property_read_u32(np, "gpmc,wr-access-ns", &gpmc_t->wr_access); in gpmc_read_timings_dt()
2120 of_property_read_u32(np, "gpmc,wr-data-mux-bus-ns", in gpmc_read_timings_dt()