Lines Matching refs:txx9_priv

78 	struct txx9ndfmc_priv *txx9_priv = nand_get_controller_data(chip);  in mtd_to_platdev()  local
79 return txx9_priv->dev; in mtd_to_platdev()
133 struct txx9ndfmc_priv *txx9_priv = nand_get_controller_data(chip); in txx9ndfmc_cmd_ctrl() local
134 struct platform_device *dev = txx9_priv->dev; in txx9ndfmc_cmd_ctrl()
145 if (txx9_priv->cs >= 0 && (ctrl & NAND_NCE)) { in txx9ndfmc_cmd_ctrl()
147 mcr |= TXX9_NDFMCR_CS(txx9_priv->cs); in txx9ndfmc_cmd_ctrl()
316 struct txx9ndfmc_priv *txx9_priv; in txx9ndfmc_probe() local
322 txx9_priv = kzalloc(sizeof(struct txx9ndfmc_priv), in txx9ndfmc_probe()
324 if (!txx9_priv) in txx9ndfmc_probe()
326 chip = &txx9_priv->chip; in txx9ndfmc_probe()
338 nand_set_controller_data(chip, txx9_priv); in txx9ndfmc_probe()
339 txx9_priv->dev = dev; in txx9ndfmc_probe()
342 txx9_priv->cs = i; in txx9ndfmc_probe()
343 txx9_priv->mtdname = kasprintf(GFP_KERNEL, "%s.%u", in txx9ndfmc_probe()
346 txx9_priv->cs = -1; in txx9ndfmc_probe()
347 txx9_priv->mtdname = kstrdup(dev_name(&dev->dev), in txx9ndfmc_probe()
350 if (!txx9_priv->mtdname) { in txx9ndfmc_probe()
351 kfree(txx9_priv); in txx9ndfmc_probe()
359 kfree(txx9_priv->mtdname); in txx9ndfmc_probe()
360 kfree(txx9_priv); in txx9ndfmc_probe()
363 mtd->name = txx9_priv->mtdname; in txx9ndfmc_probe()
382 struct txx9ndfmc_priv *txx9_priv; in txx9ndfmc_remove() local
387 txx9_priv = nand_get_controller_data(chip); in txx9ndfmc_remove()
392 kfree(txx9_priv->mtdname); in txx9ndfmc_remove()
393 kfree(txx9_priv); in txx9ndfmc_remove()