Lines Matching refs:dev_t

1198 	struct gpmc_device_timings dev_t;  in gpmc_omap_onenand_calc_sync_timings()  local
1246 memset(&dev_t, 0, sizeof(dev_t)); in gpmc_omap_onenand_calc_sync_timings()
1249 dev_t.t_avdp_w = max(t_avdp, t_cer) * 1000; in gpmc_omap_onenand_calc_sync_timings()
1250 dev_t.t_wpl = t_wpl * 1000; in gpmc_omap_onenand_calc_sync_timings()
1251 dev_t.t_wph = t_wph * 1000; in gpmc_omap_onenand_calc_sync_timings()
1252 dev_t.t_aavdh = t_aavdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1254 dev_t.ce_xdelay = true; in gpmc_omap_onenand_calc_sync_timings()
1255 dev_t.avd_xdelay = true; in gpmc_omap_onenand_calc_sync_timings()
1256 dev_t.oe_xdelay = true; in gpmc_omap_onenand_calc_sync_timings()
1257 dev_t.we_xdelay = true; in gpmc_omap_onenand_calc_sync_timings()
1258 dev_t.clk = min_gpmc_clk_period; in gpmc_omap_onenand_calc_sync_timings()
1259 dev_t.t_bacc = dev_t.clk; in gpmc_omap_onenand_calc_sync_timings()
1260 dev_t.t_ces = t_ces * 1000; in gpmc_omap_onenand_calc_sync_timings()
1261 dev_t.t_avds = t_avds * 1000; in gpmc_omap_onenand_calc_sync_timings()
1262 dev_t.t_avdh = t_avdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1263 dev_t.t_ach = t_ach * 1000; in gpmc_omap_onenand_calc_sync_timings()
1264 dev_t.cyc_iaa = (latency + 1); in gpmc_omap_onenand_calc_sync_timings()
1265 dev_t.t_cez_r = t_cez * 1000; in gpmc_omap_onenand_calc_sync_timings()
1266 dev_t.t_cez_w = dev_t.t_cez_r; in gpmc_omap_onenand_calc_sync_timings()
1267 dev_t.cyc_aavdh_oe = 1; in gpmc_omap_onenand_calc_sync_timings()
1268 dev_t.t_rdyo = t_rdyo * 1000 + min_gpmc_clk_period; in gpmc_omap_onenand_calc_sync_timings()
1270 gpmc_calc_timings(t, s, &dev_t); in gpmc_omap_onenand_calc_sync_timings()
1566 struct gpmc_device_timings *dev_t, in gpmc_calc_sync_read_timings() argument
1572 temp = dev_t->t_avdp_r; in gpmc_calc_sync_read_timings()
1579 temp = max_t(u32, temp, gpmc_t->clk_activation + dev_t->t_avdh); in gpmc_calc_sync_read_timings()
1585 temp = dev_t->t_oeasu; /* XXX: remove this ? */ in gpmc_calc_sync_read_timings()
1587 temp = max_t(u32, temp, gpmc_t->clk_activation + dev_t->t_ach); in gpmc_calc_sync_read_timings()
1589 gpmc_ticks_to_ps(dev_t->cyc_aavdh_oe)); in gpmc_calc_sync_read_timings()
1598 temp = max_t(u32, dev_t->t_iaa, dev_t->cyc_iaa * gpmc_t->sync_clk); in gpmc_calc_sync_read_timings()
1600 if (dev_t->cyc_oe) in gpmc_calc_sync_read_timings()
1602 gpmc_ticks_to_ps(dev_t->cyc_oe)); in gpmc_calc_sync_read_timings()
1609 temp = max_t(u32, dev_t->t_cez_r, dev_t->t_oez); in gpmc_calc_sync_read_timings()
1613 if (dev_t->t_ce_rdyz) in gpmc_calc_sync_read_timings()
1614 temp = max_t(u32, temp, gpmc_t->cs_rd_off + dev_t->t_ce_rdyz); in gpmc_calc_sync_read_timings()
1621 struct gpmc_device_timings *dev_t, in gpmc_calc_sync_write_timings() argument
1627 temp = dev_t->t_avdp_w; in gpmc_calc_sync_write_timings()
1630 gpmc_t->clk_activation + dev_t->t_avdh); in gpmc_calc_sync_write_timings()
1636 temp = max_t(u32, dev_t->t_weasu, in gpmc_calc_sync_write_timings()
1637 gpmc_t->clk_activation + dev_t->t_rdyo); in gpmc_calc_sync_write_timings()
1643 gpmc_t->adv_wr_off + dev_t->t_aavdh); in gpmc_calc_sync_write_timings()
1645 gpmc_ticks_to_ps(dev_t->cyc_aavdh_we)); in gpmc_calc_sync_write_timings()
1651 gpmc_t->we_on = gpmc_round_ps_to_ticks(dev_t->t_weasu); in gpmc_calc_sync_write_timings()
1660 temp = gpmc_t->we_on + dev_t->t_wpl; in gpmc_calc_sync_write_timings()
1664 gpmc_t->we_on + gpmc_ticks_to_ps(dev_t->cyc_wpl)); in gpmc_calc_sync_write_timings()
1668 dev_t->t_wph); in gpmc_calc_sync_write_timings()
1671 temp = gpmc_round_ps_to_sync_clk(dev_t->t_cez_w, gpmc_t->sync_clk); in gpmc_calc_sync_write_timings()
1674 if (dev_t->t_ce_rdyz) in gpmc_calc_sync_write_timings()
1676 gpmc_t->cs_wr_off + dev_t->t_ce_rdyz); in gpmc_calc_sync_write_timings()
1683 struct gpmc_device_timings *dev_t, in gpmc_calc_async_read_timings() argument
1689 temp = dev_t->t_avdp_r; in gpmc_calc_async_read_timings()
1695 temp = dev_t->t_oeasu; in gpmc_calc_async_read_timings()
1697 temp = max_t(u32, temp, gpmc_t->adv_rd_off + dev_t->t_aavdh); in gpmc_calc_async_read_timings()
1701 temp = max_t(u32, dev_t->t_iaa, /* XXX: remove t_iaa in async ? */ in gpmc_calc_async_read_timings()
1702 gpmc_t->oe_on + dev_t->t_oe); in gpmc_calc_async_read_timings()
1703 temp = max_t(u32, temp, gpmc_t->cs_on + dev_t->t_ce); in gpmc_calc_async_read_timings()
1704 temp = max_t(u32, temp, gpmc_t->adv_on + dev_t->t_aa); in gpmc_calc_async_read_timings()
1711 temp = max_t(u32, dev_t->t_rd_cycle, in gpmc_calc_async_read_timings()
1712 gpmc_t->cs_rd_off + dev_t->t_cez_r); in gpmc_calc_async_read_timings()
1713 temp = max_t(u32, temp, gpmc_t->oe_off + dev_t->t_oez); in gpmc_calc_async_read_timings()
1720 struct gpmc_device_timings *dev_t, in gpmc_calc_async_write_timings() argument
1726 temp = dev_t->t_avdp_w; in gpmc_calc_async_write_timings()
1732 temp = dev_t->t_weasu; in gpmc_calc_async_write_timings()
1734 temp = max_t(u32, temp, gpmc_t->adv_wr_off + dev_t->t_aavdh); in gpmc_calc_async_write_timings()
1736 gpmc_ticks_to_ps(dev_t->cyc_aavdh_we)); in gpmc_calc_async_write_timings()
1742 gpmc_t->we_on = gpmc_round_ps_to_ticks(dev_t->t_weasu); in gpmc_calc_async_write_timings()
1747 temp = gpmc_t->we_on + dev_t->t_wpl; in gpmc_calc_async_write_timings()
1751 dev_t->t_wph); in gpmc_calc_async_write_timings()
1754 temp = max_t(u32, dev_t->t_wr_cycle, in gpmc_calc_async_write_timings()
1755 gpmc_t->cs_wr_off + dev_t->t_cez_w); in gpmc_calc_async_write_timings()
1762 struct gpmc_device_timings *dev_t) in gpmc_calc_sync_common_timings() argument
1766 gpmc_t->sync_clk = gpmc_calc_divider(dev_t->clk) * in gpmc_calc_sync_common_timings()
1770 dev_t->t_bacc, in gpmc_calc_sync_common_timings()
1773 temp = max_t(u32, dev_t->t_ces, dev_t->t_avds); in gpmc_calc_sync_common_timings()
1779 if (dev_t->ce_xdelay) in gpmc_calc_sync_common_timings()
1781 if (dev_t->avd_xdelay) in gpmc_calc_sync_common_timings()
1783 if (dev_t->oe_xdelay) in gpmc_calc_sync_common_timings()
1785 if (dev_t->we_xdelay) in gpmc_calc_sync_common_timings()
1792 struct gpmc_device_timings *dev_t, in gpmc_calc_common_timings() argument
1798 gpmc_t->cs_on = gpmc_round_ps_to_ticks(dev_t->t_ceasu); in gpmc_calc_common_timings()
1801 temp = dev_t->t_avdasu; in gpmc_calc_common_timings()
1802 if (dev_t->t_ce_avd) in gpmc_calc_common_timings()
1804 gpmc_t->cs_on + dev_t->t_ce_avd); in gpmc_calc_common_timings()
1808 gpmc_calc_sync_common_timings(gpmc_t, dev_t); in gpmc_calc_common_timings()
1844 struct gpmc_device_timings *dev_t) in gpmc_calc_timings() argument
1855 gpmc_calc_common_timings(gpmc_t, dev_t, sync); in gpmc_calc_timings()
1858 gpmc_calc_sync_read_timings(gpmc_t, dev_t, mux); in gpmc_calc_timings()
1860 gpmc_calc_async_read_timings(gpmc_t, dev_t, mux); in gpmc_calc_timings()
1863 gpmc_calc_sync_write_timings(gpmc_t, dev_t, mux); in gpmc_calc_timings()
1865 gpmc_calc_async_write_timings(gpmc_t, dev_t, mux); in gpmc_calc_timings()