Lines Matching refs:txx9_priv
83 struct txx9ndfmc_priv *txx9_priv = chip->priv; in mtd_to_platdev() local
84 return txx9_priv->dev; in mtd_to_platdev()
139 struct txx9ndfmc_priv *txx9_priv = chip->priv; in txx9ndfmc_cmd_ctrl() local
140 struct platform_device *dev = txx9_priv->dev; in txx9ndfmc_cmd_ctrl()
151 if (txx9_priv->cs >= 0 && (ctrl & NAND_NCE)) { in txx9ndfmc_cmd_ctrl()
153 mcr |= TXX9_NDFMCR_CS(txx9_priv->cs); in txx9ndfmc_cmd_ctrl()
314 struct txx9ndfmc_priv *txx9_priv; in txx9ndfmc_probe() local
320 txx9_priv = kzalloc(sizeof(struct txx9ndfmc_priv), in txx9ndfmc_probe()
322 if (!txx9_priv) in txx9ndfmc_probe()
324 chip = &txx9_priv->chip; in txx9ndfmc_probe()
325 mtd = &txx9_priv->mtd; in txx9ndfmc_probe()
346 chip->priv = txx9_priv; in txx9ndfmc_probe()
347 txx9_priv->dev = dev; in txx9ndfmc_probe()
350 txx9_priv->cs = i; in txx9ndfmc_probe()
351 txx9_priv->mtdname = kasprintf(GFP_KERNEL, "%s.%u", in txx9ndfmc_probe()
354 txx9_priv->cs = -1; in txx9ndfmc_probe()
355 txx9_priv->mtdname = kstrdup(dev_name(&dev->dev), in txx9ndfmc_probe()
358 if (!txx9_priv->mtdname) { in txx9ndfmc_probe()
359 kfree(txx9_priv); in txx9ndfmc_probe()
367 kfree(txx9_priv->mtdname); in txx9ndfmc_probe()
368 kfree(txx9_priv); in txx9ndfmc_probe()
371 mtd->name = txx9_priv->mtdname; in txx9ndfmc_probe()
390 struct txx9ndfmc_priv *txx9_priv; in txx9ndfmc_remove() local
395 txx9_priv = chip->priv; in txx9ndfmc_remove()
398 kfree(txx9_priv->mtdname); in txx9ndfmc_remove()
399 kfree(txx9_priv); in txx9ndfmc_remove()