Lines Matching defs:cfg
112 printf("%s: %d", m->cfg->name, m->block_dev.devnum);
145 struct mmc *mmc_create(const struct mmc_config *cfg, void *priv)
153 if (mmc->cfg) {
158 mmc->cfg = cfg;
168 struct mmc *mmc_create(const struct mmc_config *cfg, void *priv)
174 if (cfg == NULL || cfg->f_min == 0 ||
175 cfg->f_max == 0 || cfg->b_max == 0)
179 if (cfg->ops == NULL || cfg->ops->send_cmd == NULL)
187 mmc->cfg = cfg;
205 bdesc->part_type = mmc->cfg->part_type;