Searched refs:txx9_priv (Results 1 - 1 of 1) sorted by relevance

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

Completed in 86 milliseconds