Lines Matching refs:ip

28 #define ReadHSCX(h, o)		(h->ip->read_reg(h->ip->hw, h->off + o))
29 #define WriteHSCX(h, o, v) (h->ip->write_reg(h->ip->hw, h->off + o, v))
30 #define ReadIPAC(ip, o) (ip->read_reg(ip->hw, o)) argument
31 #define WriteIPAC(ip, o, v) (ip->write_reg(ip->hw, o, v)) argument
885 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr, in waitforCEC()
888 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr); in waitforCEC()
905 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr, in waitforXFW()
908 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr); in waitforXFW()
914 if (hx->ip->type & IPAC_TYPE_IPACX) in hscx_cmdr()
928 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
940 hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
945 if (hscx->ip->type & IPAC_TYPE_IPACX) in hscx_empty_fifo()
946 hscx->ip->read_fifo(hscx->ip->hw, in hscx_empty_fifo()
949 hscx->ip->read_fifo(hscx->ip->hw, in hscx_empty_fifo()
956 hscx->bch.nr, hscx->ip->name, count); in hscx_empty_fifo()
985 pr_debug("%s: B%1d %d/%d/%d\n", hscx->ip->name, hscx->bch.nr, in hscx_fill_fifo()
989 if (hscx->ip->type & IPAC_TYPE_IPACX) in hscx_fill_fifo()
990 hscx->ip->write_fifo(hscx->ip->hw, in hscx_fill_fifo()
994 hscx->ip->write_fifo(hscx->ip->hw, in hscx_fill_fifo()
1001 hscx->bch.nr, hscx->ip->name, count); in hscx_fill_fifo()
1028 if (hx->ip->type & IPAC_TYPE_IPACX) in ipac_rme()
1032 pr_debug("%s: B%1d RSTAB %02x\n", hx->ip->name, hx->bch.nr, rstab); in ipac_rme()
1038 hx->ip->name, hx->bch.nr); in ipac_rme()
1043 hx->ip->name, hx->bch.nr, in ipac_rme()
1049 hx->ip->name, hx->bch.nr); in ipac_rme()
1054 if (hx->ip->type & IPAC_TYPE_IPACX) in ipac_rme()
1066 hx->ip->name, hx->bch.nr, hx->bch.rx_skb->len); in ipac_rme()
1079 if (hx->ip->type & IPAC_TYPE_IPACX) in ipac_irq()
1081 else if (hx->ip->type & IPAC_TYPE_IPAC) { in ipac_irq()
1086 pr_debug("%s: B%1d EXIRB %02x\n", hx->ip->name, in ipac_irq()
1091 ipac_irq(&hx->ip->hscx[0], ista); in ipac_irq()
1094 pr_debug("%s: B%1d EXIRB %02x\n", hx->ip->name, in ipac_irq()
1102 pr_debug("%s: B%1d EXIRB %02x\n", hx->ip->name, in ipac_irq()
1111 pr_debug("%s: B%1d ISTAB %02x\n", hx->ip->name, hx->bch.nr, istab); in ipac_irq()
1126 pr_debug("%s: B%1d RFO error\n", hx->ip->name, hx->bch.nr); in ipac_irq()
1140 pr_debug("%s: B%1d XDU error at len %d\n", hx->ip->name, in ipac_irq()
1214 pr_debug("%s: HSCX %c protocol %x-->%x ch %d\n", hscx->ip->name, in hscx_mode()
1216 if (hscx->ip->type & IPAC_TYPE_IPACX) { in hscx_mode()
1218 WriteIPAC(hscx->ip, ISACX_BCHA_TSDP_BC1, 0x80); in hscx_mode()
1219 WriteIPAC(hscx->ip, ISACX_BCHA_CR, 0x88); in hscx_mode()
1221 WriteIPAC(hscx->ip, ISACX_BCHB_TSDP_BC1, 0x81); in hscx_mode()
1222 WriteIPAC(hscx->ip, ISACX_BCHB_CR, 0x88); in hscx_mode()
1248 pr_info("%s: protocol not known %x\n", hscx->ip->name, in hscx_mode()
1252 } else if (hscx->ip->type & IPAC_TYPE_IPAC) { /* IPAC */ in hscx_mode()
1284 pr_info("%s: protocol not known %x\n", hscx->ip->name, in hscx_mode()
1288 } else if (hscx->ip->type & IPAC_TYPE_HSCX) { /* HSCX */ in hscx_mode()
1320 pr_info("%s: protocol not known %x\n", hscx->ip->name, in hscx_mode()
1341 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_l2l1()
1347 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_l2l1()
1350 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_l2l1()
1355 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_l2l1()
1361 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_l2l1()
1364 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_l2l1()
1371 hx->ip->name, __func__, hh->prim, hh->id); in hscx_l2l1()
1393 pr_debug("%s: %s cmd:%x %p\n", hx->ip->name, __func__, cmd, arg); in hscx_bctrl()
1398 spin_lock_irqsave(hx->ip->hwlock, flags); in hscx_bctrl()
1401 spin_unlock_irqrestore(hx->ip->hwlock, flags); in hscx_bctrl()
1404 module_put(hx->ip->owner); in hscx_bctrl()
1412 hx->ip->name, __func__, cmd); in hscx_bctrl()
1438 if (hx->ip->type & IPAC_TYPE_HSCX) { in hscx_init()
1441 pr_debug("%s: HSCX VSTR %02x\n", hx->ip->name, val); in hscx_init()
1443 pr_notice("%s: HSCX version %s\n", hx->ip->name, in hscx_init()
1607 ipac->hscx[i].ip = ipac; in mISDNipac_init()