Lines Matching refs:ip

41 #define ReadHSCX(h, o)		(h->ip->read_reg(h->ip->hw, h->off + o))
42 #define WriteHSCX(h, o, v) (h->ip->write_reg(h->ip->hw, h->off + o, v))
43 #define ReadIPAC(ip, o) (ip->read_reg(ip->hw, o)) argument
44 #define WriteIPAC(ip, o, v) (ip->write_reg(ip->hw, o, v)) argument
901 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr, in waitforCEC()
904 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr); in waitforCEC()
921 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr, in waitforXFW()
924 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr); in waitforXFW()
930 if (hx->ip->type & IPAC_TYPE_IPACX) in hscx_cmdr()
944 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
956 hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
961 if (hscx->ip->type & IPAC_TYPE_IPACX) in hscx_empty_fifo()
962 hscx->ip->read_fifo(hscx->ip->hw, in hscx_empty_fifo()
965 hscx->ip->read_fifo(hscx->ip->hw, in hscx_empty_fifo()
972 hscx->bch.nr, hscx->ip->name, count); in hscx_empty_fifo()
1001 pr_debug("%s: B%1d %d/%d/%d\n", hscx->ip->name, hscx->bch.nr, in hscx_fill_fifo()
1005 if (hscx->ip->type & IPAC_TYPE_IPACX) in hscx_fill_fifo()
1006 hscx->ip->write_fifo(hscx->ip->hw, in hscx_fill_fifo()
1010 hscx->ip->write_fifo(hscx->ip->hw, in hscx_fill_fifo()
1017 hscx->bch.nr, hscx->ip->name, count); in hscx_fill_fifo()
1045 if (hx->ip->type & IPAC_TYPE_IPACX) in ipac_rme()
1049 pr_debug("%s: B%1d RSTAB %02x\n", hx->ip->name, hx->bch.nr, rstab); in ipac_rme()
1055 hx->ip->name, hx->bch.nr); in ipac_rme()
1060 hx->ip->name, hx->bch.nr, in ipac_rme()
1066 hx->ip->name, hx->bch.nr); in ipac_rme()
1071 if (hx->ip->type & IPAC_TYPE_IPACX) in ipac_rme()
1083 hx->ip->name, hx->bch.nr, hx->bch.rx_skb->len); in ipac_rme()
1096 if (hx->ip->type & IPAC_TYPE_IPACX) in ipac_irq()
1098 else if (hx->ip->type & IPAC_TYPE_IPAC) { in ipac_irq()
1103 pr_debug("%s: B%1d EXIRB %02x\n", hx->ip->name, in ipac_irq()
1108 ipac_irq(&hx->ip->hscx[0], ista); in ipac_irq()
1111 pr_debug("%s: B%1d EXIRB %02x\n", hx->ip->name, in ipac_irq()
1119 pr_debug("%s: B%1d EXIRB %02x\n", hx->ip->name, in ipac_irq()
1128 pr_debug("%s: B%1d ISTAB %02x\n", hx->ip->name, hx->bch.nr, istab); in ipac_irq()
1143 pr_debug("%s: B%1d RFO error\n", hx->ip->name, hx->bch.nr); in ipac_irq()
1157 pr_debug("%s: B%1d XDU error at len %d\n", hx->ip->name, in ipac_irq()
1231 pr_debug("%s: HSCX %c protocol %x-->%x ch %d\n", hscx->ip->name, in hscx_mode()
1233 if (hscx->ip->type & IPAC_TYPE_IPACX) { in hscx_mode()
1235 WriteIPAC(hscx->ip, ISACX_BCHA_TSDP_BC1, 0x80); in hscx_mode()
1236 WriteIPAC(hscx->ip, ISACX_BCHA_CR, 0x88); in hscx_mode()
1238 WriteIPAC(hscx->ip, ISACX_BCHB_TSDP_BC1, 0x81); in hscx_mode()
1239 WriteIPAC(hscx->ip, ISACX_BCHB_CR, 0x88); in hscx_mode()
1265 pr_info("%s: protocol not known %x\n", hscx->ip->name, in hscx_mode()
1269 } else if (hscx->ip->type & IPAC_TYPE_IPAC) { /* IPAC */ in hscx_mode()
1301 pr_info("%s: protocol not known %x\n", hscx->ip->name, in hscx_mode()
1305 } else if (hscx->ip->type & IPAC_TYPE_HSCX) { /* HSCX */ in hscx_mode()
1337 pr_info("%s: protocol not known %x\n", hscx->ip->name, in hscx_mode()
1358 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_l2l1()
1364 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_l2l1()
1367 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_l2l1()
1372 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_l2l1()
1378 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_l2l1()
1381 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_l2l1()
1388 hx->ip->name, __func__, hh->prim, hh->id); in hscx_l2l1()
1410 pr_debug("%s: %s cmd:%x %p\n", hx->ip->name, __func__, cmd, arg); in hscx_bctrl()
1415 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_bctrl()
1418 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_bctrl()
1421 module_put(hx->ip->owner); in hscx_bctrl()
1429 hx->ip->name, __func__, cmd); in hscx_bctrl()
1455 if (hx->ip->type & IPAC_TYPE_HSCX) { in hscx_init()
1458 pr_debug("%s: HSCX VSTR %02x\n", hx->ip->name, val); in hscx_init()
1460 pr_notice("%s: HSCX version %s\n", hx->ip->name, in hscx_init()
1624 ipac->hscx[i].ip = ipac; in mISDNipac_init()