Lines Matching refs:tchip

121 	struct tango_chip *tchip = to_tango_chip(mtd_to_nand(mtd));  in tango_cmd_ctrl()  local
124 writeb_relaxed(dat, tchip->base + PBUS_CMD); in tango_cmd_ctrl()
127 writeb_relaxed(dat, tchip->base + PBUS_ADDR); in tango_cmd_ctrl()
140 struct tango_chip *tchip = to_tango_chip(mtd_to_nand(mtd)); in tango_read_byte() local
142 return readb_relaxed(tchip->base + PBUS_DATA); in tango_read_byte()
147 struct tango_chip *tchip = to_tango_chip(mtd_to_nand(mtd)); in tango_read_buf() local
149 ioread8_rep(tchip->base + PBUS_DATA, buf, len); in tango_read_buf()
154 struct tango_chip *tchip = to_tango_chip(mtd_to_nand(mtd)); in tango_write_buf() local
156 iowrite8_rep(tchip->base + PBUS_DATA, buf, len); in tango_write_buf()
163 struct tango_chip *tchip = to_tango_chip(chip); in tango_select_chip() local
168 writel_relaxed(tchip->timing1, nfc->reg_base + NFC_TIMING1); in tango_select_chip()
169 writel_relaxed(tchip->timing2, nfc->reg_base + NFC_TIMING2); in tango_select_chip()
170 writel_relaxed(tchip->xfer_cfg, nfc->reg_base + NFC_XFER_CFG); in tango_select_chip()
171 writel_relaxed(tchip->pkt_0_cfg, nfc->reg_base + NFC_PKT_0_CFG); in tango_select_chip()
172 writel_relaxed(tchip->pkt_n_cfg, nfc->reg_base + NFC_PKT_N_CFG); in tango_select_chip()
173 writel_relaxed(tchip->bb_cfg, nfc->reg_base + NFC_BB_CFG); in tango_select_chip()
494 struct tango_chip *tchip = to_tango_chip(chip); in tango_set_timings() local
514 tchip->timing1 = TIMING(Trdy, Textw, Twc, Twpw); in tango_set_timings()
515 tchip->timing2 = TIMING(Tacc, Thold, Trpw, Textr); in tango_set_timings()
548 struct tango_chip *tchip; in chip_init() local
552 tchip = devm_kzalloc(dev, sizeof(*tchip), GFP_KERNEL); in chip_init()
553 if (!tchip) in chip_init()
570 chip = &tchip->nand_chip; in chip_init()
585 tchip->base = nfc->pbus_base + (cs * 256); in chip_init()
595 tchip->xfer_cfg = XFER_CFG(cs, 1, ecc->steps, METADATA_SIZE); in chip_init()
596 tchip->pkt_0_cfg = PKT_CFG(ecc->size + METADATA_SIZE, ecc->strength); in chip_init()
597 tchip->pkt_n_cfg = PKT_CFG(ecc->size, ecc->strength); in chip_init()
598 tchip->bb_cfg = BB_CFG(mtd->writesize, BBM_SIZE); in chip_init()
606 nfc->chips[cs] = tchip; in chip_init()