Lines Matching refs:txx9_priv

79 	struct txx9ndfmc_priv *txx9_priv = nand_get_controller_data(chip);  in mtd_to_platdev()  local
80 return txx9_priv->dev; in mtd_to_platdev()
134 struct txx9ndfmc_priv *txx9_priv = nand_get_controller_data(chip); in txx9ndfmc_cmd_ctrl() local
135 struct platform_device *dev = txx9_priv->dev; in txx9ndfmc_cmd_ctrl()
146 if (txx9_priv->cs >= 0 && (ctrl & NAND_NCE)) { in txx9ndfmc_cmd_ctrl()
148 mcr |= TXX9_NDFMCR_CS(txx9_priv->cs); in txx9ndfmc_cmd_ctrl()
319 struct txx9ndfmc_priv *txx9_priv; in txx9ndfmc_probe() local
325 txx9_priv = kzalloc(sizeof(struct txx9ndfmc_priv), in txx9ndfmc_probe()
327 if (!txx9_priv) in txx9ndfmc_probe()
329 chip = &txx9_priv->chip; in txx9ndfmc_probe()
341 nand_set_controller_data(chip, txx9_priv); in txx9ndfmc_probe()
342 txx9_priv->dev = dev; in txx9ndfmc_probe()
345 txx9_priv->cs = i; in txx9ndfmc_probe()
346 txx9_priv->mtdname = kasprintf(GFP_KERNEL, "%s.%u", in txx9ndfmc_probe()
349 txx9_priv->cs = -1; in txx9ndfmc_probe()
350 txx9_priv->mtdname = kstrdup(dev_name(&dev->dev), in txx9ndfmc_probe()
353 if (!txx9_priv->mtdname) { in txx9ndfmc_probe()
354 kfree(txx9_priv); in txx9ndfmc_probe()
362 kfree(txx9_priv->mtdname); in txx9ndfmc_probe()
363 kfree(txx9_priv); in txx9ndfmc_probe()
366 mtd->name = txx9_priv->mtdname; in txx9ndfmc_probe()
385 struct txx9ndfmc_priv *txx9_priv; in txx9ndfmc_remove() local
390 txx9_priv = nand_get_controller_data(chip); in txx9ndfmc_remove()
395 kfree(txx9_priv->mtdname); in txx9ndfmc_remove()
396 kfree(txx9_priv); in txx9ndfmc_remove()