Lines Matching refs:dev_t
1128 struct gpmc_device_timings dev_t;
1176 memset(&dev_t, 0, sizeof(dev_t));
1179 dev_t.t_avdp_w = max(t_avdp, t_cer) * 1000;
1180 dev_t.t_wpl = t_wpl * 1000;
1181 dev_t.t_wph = t_wph * 1000;
1182 dev_t.t_aavdh = t_aavdh * 1000;
1184 dev_t.ce_xdelay = true;
1185 dev_t.avd_xdelay = true;
1186 dev_t.oe_xdelay = true;
1187 dev_t.we_xdelay = true;
1188 dev_t.clk = min_gpmc_clk_period;
1189 dev_t.t_bacc = dev_t.clk;
1190 dev_t.t_ces = t_ces * 1000;
1191 dev_t.t_avds = t_avds * 1000;
1192 dev_t.t_avdh = t_avdh * 1000;
1193 dev_t.t_ach = t_ach * 1000;
1194 dev_t.cyc_iaa = (latency + 1);
1195 dev_t.t_cez_r = t_cez * 1000;
1196 dev_t.t_cez_w = dev_t.t_cez_r;
1197 dev_t.cyc_aavdh_oe = 1;
1198 dev_t.t_rdyo = t_rdyo * 1000 + min_gpmc_clk_period;
1200 gpmc_calc_timings(t, s, &dev_t);
1490 struct gpmc_device_timings *dev_t,
1496 temp = dev_t->t_avdp_r;
1503 temp = max_t(u32, temp, gpmc_t->clk_activation + dev_t->t_avdh);
1509 temp = dev_t->t_oeasu; /* XXX: remove this ? */
1511 temp = max_t(u32, temp, gpmc_t->clk_activation + dev_t->t_ach);
1513 gpmc_ticks_to_ps(dev_t->cyc_aavdh_oe));
1522 temp = max_t(u32, dev_t->t_iaa, dev_t->cyc_iaa * gpmc_t->sync_clk);
1524 if (dev_t->cyc_oe)
1526 gpmc_ticks_to_ps(dev_t->cyc_oe));
1533 temp = max_t(u32, dev_t->t_cez_r, dev_t->t_oez);
1537 if (dev_t->t_ce_rdyz)
1538 temp = max_t(u32, temp, gpmc_t->cs_rd_off + dev_t->t_ce_rdyz);
1545 struct gpmc_device_timings *dev_t,
1551 temp = dev_t->t_avdp_w;
1554 gpmc_t->clk_activation + dev_t->t_avdh);
1560 temp = max_t(u32, dev_t->t_weasu,
1561 gpmc_t->clk_activation + dev_t->t_rdyo);
1567 gpmc_t->adv_wr_off + dev_t->t_aavdh);
1569 gpmc_ticks_to_ps(dev_t->cyc_aavdh_we));
1575 gpmc_t->we_on = gpmc_round_ps_to_ticks(dev_t->t_weasu);
1584 temp = gpmc_t->we_on + dev_t->t_wpl;
1588 gpmc_t->we_on + gpmc_ticks_to_ps(dev_t->cyc_wpl));
1592 dev_t->t_wph);
1595 temp = gpmc_round_ps_to_sync_clk(dev_t->t_cez_w, gpmc_t->sync_clk);
1598 if (dev_t->t_ce_rdyz)
1600 gpmc_t->cs_wr_off + dev_t->t_ce_rdyz);
1607 struct gpmc_device_timings *dev_t,
1613 temp = dev_t->t_avdp_r;
1619 temp = dev_t->t_oeasu;
1621 temp = max_t(u32, temp, gpmc_t->adv_rd_off + dev_t->t_aavdh);
1625 temp = max_t(u32, dev_t->t_iaa, /* XXX: remove t_iaa in async ? */
1626 gpmc_t->oe_on + dev_t->t_oe);
1627 temp = max_t(u32, temp, gpmc_t->cs_on + dev_t->t_ce);
1628 temp = max_t(u32, temp, gpmc_t->adv_on + dev_t->t_aa);
1635 temp = max_t(u32, dev_t->t_rd_cycle,
1636 gpmc_t->cs_rd_off + dev_t->t_cez_r);
1637 temp = max_t(u32, temp, gpmc_t->oe_off + dev_t->t_oez);
1644 struct gpmc_device_timings *dev_t,
1650 temp = dev_t->t_avdp_w;
1656 temp = dev_t->t_weasu;
1658 temp = max_t(u32, temp, gpmc_t->adv_wr_off + dev_t->t_aavdh);
1660 gpmc_ticks_to_ps(dev_t->cyc_aavdh_we));
1666 gpmc_t->we_on = gpmc_round_ps_to_ticks(dev_t->t_weasu);
1671 temp = gpmc_t->we_on + dev_t->t_wpl;
1675 dev_t->t_wph);
1678 temp = max_t(u32, dev_t->t_wr_cycle,
1679 gpmc_t->cs_wr_off + dev_t->t_cez_w);
1686 struct gpmc_device_timings *dev_t)
1690 gpmc_t->sync_clk = gpmc_calc_divider(dev_t->clk) *
1694 dev_t->t_bacc,
1697 temp = max_t(u32, dev_t->t_ces, dev_t->t_avds);
1703 if (dev_t->ce_xdelay)
1705 if (dev_t->avd_xdelay)
1707 if (dev_t->oe_xdelay)
1709 if (dev_t->we_xdelay)
1716 struct gpmc_device_timings *dev_t,
1722 gpmc_t->cs_on = gpmc_round_ps_to_ticks(dev_t->t_ceasu);
1725 temp = dev_t->t_avdasu;
1726 if (dev_t->t_ce_avd)
1728 gpmc_t->cs_on + dev_t->t_ce_avd);
1732 gpmc_calc_sync_common_timings(gpmc_t, dev_t);
1768 struct gpmc_device_timings *dev_t)
1779 gpmc_calc_common_timings(gpmc_t, dev_t, sync);
1782 gpmc_calc_sync_read_timings(gpmc_t, dev_t, mux);
1784 gpmc_calc_async_read_timings(gpmc_t, dev_t, mux);
1787 gpmc_calc_sync_write_timings(gpmc_t, dev_t, mux);
1789 gpmc_calc_async_write_timings(gpmc_t, dev_t, mux);