Lines Matching defs:tchip
119 struct tango_chip *tchip = to_tango_chip(chip);
121 writel_relaxed(tchip->timing1, nfc->reg_base + NFC_TIMING1);
122 writel_relaxed(tchip->timing2, nfc->reg_base + NFC_TIMING2);
123 writel_relaxed(tchip->xfer_cfg, nfc->reg_base + NFC_XFER_CFG);
124 writel_relaxed(tchip->pkt_0_cfg, nfc->reg_base + NFC_PKT_0_CFG);
125 writel_relaxed(tchip->pkt_n_cfg, nfc->reg_base + NFC_PKT_N_CFG);
126 writel_relaxed(tchip->bb_cfg, nfc->reg_base + NFC_BB_CFG);
142 struct tango_chip *tchip = to_tango_chip(chip);
147 writeb_relaxed(instr->ctx.cmd.opcode, tchip->base + PBUS_CMD);
152 tchip->base + PBUS_ADDR);
155 ioread8_rep(tchip->base + PBUS_DATA, instr->ctx.data.buf.in,
159 iowrite8_rep(tchip->base + PBUS_DATA, instr->ctx.data.buf.out,
359 struct tango_chip *tchip = to_tango_chip(chip);
361 ioread8_rep(tchip->base + PBUS_DATA, *buf, len);
374 struct tango_chip *tchip = to_tango_chip(chip);
376 iowrite8_rep(tchip->base + PBUS_DATA, *buf, len);
522 struct tango_chip *tchip = to_tango_chip(chip);
542 tchip->timing1 = TIMING(Trdy, Textw, Twc, Twpw);
543 tchip->timing2 = TIMING(Tacc, Thold, Trpw, Textr);
578 struct tango_chip *tchip;
582 tchip = devm_kzalloc(dev, sizeof(*tchip), GFP_KERNEL);
583 if (!tchip)
600 chip = &tchip->nand_chip;
608 tchip->base = nfc->pbus_base + (cs * 256);
618 tchip->xfer_cfg = XFER_CFG(cs, 1, ecc->steps, METADATA_SIZE);
619 tchip->pkt_0_cfg = PKT_CFG(ecc->size + METADATA_SIZE, ecc->strength);
620 tchip->pkt_n_cfg = PKT_CFG(ecc->size, ecc->strength);
621 tchip->bb_cfg = BB_CFG(mtd->writesize, BBM_SIZE);
629 nfc->chips[cs] = tchip;