Lines Matching defs:dev_t
1188 struct gpmc_device_timings dev_t;
1236 memset(&dev_t, 0, sizeof(dev_t));
1239 dev_t.t_avdp_w = max(t_avdp, t_cer) * 1000;
1240 dev_t.t_wpl = t_wpl * 1000;
1241 dev_t.t_wph = t_wph * 1000;
1242 dev_t.t_aavdh = t_aavdh * 1000;
1244 dev_t.ce_xdelay = true;
1245 dev_t.avd_xdelay = true;
1246 dev_t.oe_xdelay = true;
1247 dev_t.we_xdelay = true;
1248 dev_t.clk = min_gpmc_clk_period;
1249 dev_t.t_bacc = dev_t.clk;
1250 dev_t.t_ces = t_ces * 1000;
1251 dev_t.t_avds = t_avds * 1000;
1252 dev_t.t_avdh = t_avdh * 1000;
1253 dev_t.t_ach = t_ach * 1000;
1254 dev_t.cyc_iaa = (latency + 1);
1255 dev_t.t_cez_r = t_cez * 1000;
1256 dev_t.t_cez_w = dev_t.t_cez_r;
1257 dev_t.cyc_aavdh_oe = 1;
1258 dev_t.t_rdyo = t_rdyo * 1000 + min_gpmc_clk_period;
1260 gpmc_calc_timings(t, s, &dev_t);
1539 struct gpmc_device_timings *dev_t,
1545 temp = dev_t->t_avdp_r;
1552 temp = max_t(u32, temp, gpmc_t->clk_activation + dev_t->t_avdh);
1558 temp = dev_t->t_oeasu; /* XXX: remove this ? */
1560 temp = max_t(u32, temp, gpmc_t->clk_activation + dev_t->t_ach);
1562 gpmc_ticks_to_ps(dev_t->cyc_aavdh_oe));
1571 temp = max_t(u32, dev_t->t_iaa, dev_t->cyc_iaa * gpmc_t->sync_clk);
1573 if (dev_t->cyc_oe)
1575 gpmc_ticks_to_ps(dev_t->cyc_oe));
1582 temp = max_t(u32, dev_t->t_cez_r, dev_t->t_oez);
1586 if (dev_t->t_ce_rdyz)
1587 temp = max_t(u32, temp, gpmc_t->cs_rd_off + dev_t->t_ce_rdyz);
1594 struct gpmc_device_timings *dev_t,
1600 temp = dev_t->t_avdp_w;
1603 gpmc_t->clk_activation + dev_t->t_avdh);
1609 temp = max_t(u32, dev_t->t_weasu,
1610 gpmc_t->clk_activation + dev_t->t_rdyo);
1616 gpmc_t->adv_wr_off + dev_t->t_aavdh);
1618 gpmc_ticks_to_ps(dev_t->cyc_aavdh_we));
1624 gpmc_t->we_on = gpmc_round_ps_to_ticks(dev_t->t_weasu);
1633 temp = gpmc_t->we_on + dev_t->t_wpl;
1637 gpmc_t->we_on + gpmc_ticks_to_ps(dev_t->cyc_wpl));
1641 dev_t->t_wph);
1644 temp = gpmc_round_ps_to_sync_clk(dev_t->t_cez_w, gpmc_t->sync_clk);
1647 if (dev_t->t_ce_rdyz)
1649 gpmc_t->cs_wr_off + dev_t->t_ce_rdyz);
1656 struct gpmc_device_timings *dev_t,
1662 temp = dev_t->t_avdp_r;
1668 temp = dev_t->t_oeasu;
1670 temp = max_t(u32, temp, gpmc_t->adv_rd_off + dev_t->t_aavdh);
1674 temp = max_t(u32, dev_t->t_iaa, /* XXX: remove t_iaa in async ? */
1675 gpmc_t->oe_on + dev_t->t_oe);
1676 temp = max_t(u32, temp, gpmc_t->cs_on + dev_t->t_ce);
1677 temp = max_t(u32, temp, gpmc_t->adv_on + dev_t->t_aa);
1684 temp = max_t(u32, dev_t->t_rd_cycle,
1685 gpmc_t->cs_rd_off + dev_t->t_cez_r);
1686 temp = max_t(u32, temp, gpmc_t->oe_off + dev_t->t_oez);
1693 struct gpmc_device_timings *dev_t,
1699 temp = dev_t->t_avdp_w;
1705 temp = dev_t->t_weasu;
1707 temp = max_t(u32, temp, gpmc_t->adv_wr_off + dev_t->t_aavdh);
1709 gpmc_ticks_to_ps(dev_t->cyc_aavdh_we));
1715 gpmc_t->we_on = gpmc_round_ps_to_ticks(dev_t->t_weasu);
1720 temp = gpmc_t->we_on + dev_t->t_wpl;
1724 dev_t->t_wph);
1727 temp = max_t(u32, dev_t->t_wr_cycle,
1728 gpmc_t->cs_wr_off + dev_t->t_cez_w);
1735 struct gpmc_device_timings *dev_t)
1739 gpmc_t->sync_clk = gpmc_calc_divider(dev_t->clk) *
1743 dev_t->t_bacc,
1746 temp = max_t(u32, dev_t->t_ces, dev_t->t_avds);
1752 if (dev_t->ce_xdelay)
1754 if (dev_t->avd_xdelay)
1756 if (dev_t->oe_xdelay)
1758 if (dev_t->we_xdelay)
1765 struct gpmc_device_timings *dev_t,
1771 gpmc_t->cs_on = gpmc_round_ps_to_ticks(dev_t->t_ceasu);
1774 temp = dev_t->t_avdasu;
1775 if (dev_t->t_ce_avd)
1777 gpmc_t->cs_on + dev_t->t_ce_avd);
1781 gpmc_calc_sync_common_timings(gpmc_t, dev_t);
1817 struct gpmc_device_timings *dev_t)
1828 gpmc_calc_common_timings(gpmc_t, dev_t, sync);
1831 gpmc_calc_sync_read_timings(gpmc_t, dev_t, mux);
1833 gpmc_calc_async_read_timings(gpmc_t, dev_t, mux);
1836 gpmc_calc_sync_write_timings(gpmc_t, dev_t, mux);
1838 gpmc_calc_async_write_timings(gpmc_t, dev_t, mux);