Lines Matching full:cid

224 #define he_writel_tsr0(dev, val, cid) \  argument
225 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 0)
226 #define he_readl_tsr0(dev, cid) \ argument
227 he_readl_tcm(dev, CONFIG_TSRA | (cid << 3) | 0)
229 #define he_writel_tsr1(dev, val, cid) \ argument
230 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 1)
232 #define he_writel_tsr2(dev, val, cid) \ argument
233 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 2)
235 #define he_writel_tsr3(dev, val, cid) \ argument
236 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 3)
238 #define he_writel_tsr4(dev, val, cid) \ argument
239 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 4)
249 #define he_writel_tsr4_upper(dev, val, cid) \ argument
250 he_writel_internal(dev, val, CONFIG_TSRA | (cid << 3) | 4, \
256 #define he_readl_tsr4(dev, cid) \ argument
257 he_readl_tcm(dev, CONFIG_TSRA | (cid << 3) | 4)
259 #define he_writel_tsr5(dev, val, cid) \ argument
260 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 5)
262 #define he_writel_tsr6(dev, val, cid) \ argument
263 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 6)
265 #define he_writel_tsr7(dev, val, cid) \ argument
266 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 7)
269 #define he_writel_tsr8(dev, val, cid) \ argument
270 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 0)
272 #define he_writel_tsr9(dev, val, cid) \ argument
273 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 1)
275 #define he_writel_tsr10(dev, val, cid) \ argument
276 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 2)
278 #define he_writel_tsr11(dev, val, cid) \ argument
279 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 3)
282 #define he_writel_tsr12(dev, val, cid) \ argument
283 he_writel_tcm(dev, val, CONFIG_TSRC | (cid << 1) | 0)
285 #define he_writel_tsr13(dev, val, cid) \ argument
286 he_writel_tcm(dev, val, CONFIG_TSRC | (cid << 1) | 1)
289 #define he_writel_tsr14(dev, val, cid) \ argument
290 he_writel_tcm(dev, val, CONFIG_TSRD | cid)
292 #define he_writel_tsr14_upper(dev, val, cid) \ argument
293 he_writel_internal(dev, val, CONFIG_TSRD | cid, \
301 #define he_writel_rsr0(dev, val, cid) \ argument
302 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 0)
303 #define he_readl_rsr0(dev, cid) \ argument
304 he_readl_rcm(dev, 0x00000 | (cid << 3) | 0)
306 #define he_writel_rsr1(dev, val, cid) \ argument
307 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 1)
309 #define he_writel_rsr2(dev, val, cid) \ argument
310 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 2)
312 #define he_writel_rsr3(dev, val, cid) \ argument
313 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 3)
315 #define he_writel_rsr4(dev, val, cid) \ argument
316 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 4)
318 #define he_writel_rsr5(dev, val, cid) \ argument
319 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 5)
321 #define he_writel_rsr6(dev, val, cid) \ argument
322 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 6)
324 #define he_writel_rsr7(dev, val, cid) \ argument
325 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 7)
328 __find_vcc(struct he_dev *he_dev, unsigned cid) in __find_vcc() argument
336 vpi = cid >> he_dev->vcibits; in __find_vcc()
337 vci = cid & ((1 << he_dev->vcibits) - 1); in __find_vcc()
1644 unsigned cid, lastcid = -1; in he_service_rbrq() local
1657 HPRINTK("%p rbrq%d 0x%x len=%d cid=0x%x %s%s%s%s%s%s\n", in he_service_rbrq()
1672 cid = RBRQ_CID(he_dev->rbrq_head); in he_service_rbrq()
1673 if (cid != lastcid) in he_service_rbrq()
1674 vcc = __find_vcc(he_dev, cid); in he_service_rbrq()
1675 lastcid = cid; in he_service_rbrq()
1678 hprintk("vcc/he_vcc == NULL (cid 0x%x)\n", cid); in he_service_rbrq()
1689 hprintk("HBUF_ERR! (cid 0x%x)\n", cid); in he_service_rbrq()
1701 HPRINTK("wake_up rx_waitq (cid 0x%x)\n", cid); in he_service_rbrq()
1759 …printk("pdu_len (%d) > vcc->qos.rxtp.max_sdu (%d)! cid 0x%x\n", skb->len, vcc->qos.rxtp.max_sdu, in he_service_rbrq()
1834 HPRINTK("wake_up(tx_waitq) cid 0x%x\n", in he_service_tbrq()
2050 __enqueue_tpd(struct he_dev *he_dev, struct he_tpd *tpd, unsigned cid) in __enqueue_tpd() argument
2054 HPRINTK("tpdrq %p cid 0x%x -> tpdrq_tail %p\n", in __enqueue_tpd()
2055 tpd, cid, he_dev->tpdrq_tail); in __enqueue_tpd()
2076 hprintk("tpdrq full (cid 0x%x)\n", cid); in __enqueue_tpd()
2105 he_dev->tpdrq_tail->cid = cid; in __enqueue_tpd()
2121 unsigned cid, rsr0, rsr1, rsr4, tsr0, tsr0_aal, tsr4, period, reg, clock; in he_open() local
2132 cid = he_mkcid(he_dev, vpi, vci); in he_open()
2158 HPRINTK("open tx cid 0x%x pcr_goal %d\n", cid, pcr_goal); in he_open()
2175 tsr0 = he_readl_tsr0(he_dev, cid); in he_open()
2179 hprintk("cid 0x%x not idle (tsr0 = 0x%x)\n", cid, tsr0); in he_open()
2244 he_writel_tsr0(he_dev, tsr0, cid); in he_open()
2245 he_writel_tsr4(he_dev, tsr4 | 1, cid); in he_open()
2247 TSR1_PCR(rate_to_atmf(pcr_goal)), cid); in he_open()
2248 he_writel_tsr2(he_dev, TSR2_ACR(rate_to_atmf(pcr_goal)), cid); in he_open()
2249 he_writel_tsr9(he_dev, TSR9_OPEN_CONN, cid); in he_open()
2251 he_writel_tsr3(he_dev, 0x0, cid); in he_open()
2252 he_writel_tsr5(he_dev, 0x0, cid); in he_open()
2253 he_writel_tsr6(he_dev, 0x0, cid); in he_open()
2254 he_writel_tsr7(he_dev, 0x0, cid); in he_open()
2255 he_writel_tsr8(he_dev, 0x0, cid); in he_open()
2256 he_writel_tsr10(he_dev, 0x0, cid); in he_open()
2257 he_writel_tsr11(he_dev, 0x0, cid); in he_open()
2258 he_writel_tsr12(he_dev, 0x0, cid); in he_open()
2259 he_writel_tsr13(he_dev, 0x0, cid); in he_open()
2260 he_writel_tsr14(he_dev, 0x0, cid); in he_open()
2261 (void) he_readl_tsr0(he_dev, cid); /* flush posted writes */ in he_open()
2268 HPRINTK("open rx cid 0x%x (rx_waitq %p)\n", cid, in he_open()
2285 rsr0 = he_readl_rsr0(he_dev, cid); in he_open()
2289 hprintk("cid 0x%x not idle (rsr0 = 0x%x)\n", cid, rsr0); in he_open()
2304 he_writel_rsr4(he_dev, rsr4, cid); in he_open()
2305 he_writel_rsr1(he_dev, rsr1, cid); in he_open()
2309 rsr0 | RSR0_START_PDU | RSR0_OPEN_CONN | aal, cid); in he_open()
2310 (void) he_readl_rsr0(he_dev, cid); /* flush posted writes */ in he_open()
2334 unsigned cid; in he_close() local
2342 cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_close()
2347 HPRINTK("close rx cid 0x%x\n", cid); in he_close()
2355 HPRINTK("close cid 0x%x RCC_BUSY\n", cid); in he_close()
2362 he_writel_rsr0(he_dev, RSR0_CLOSE_CONN, cid); in he_close()
2363 (void) he_readl_rsr0(he_dev, cid); /* flush posted writes */ in he_close()
2364 he_writel_mbox(he_dev, cid, RXCON_CLOSE); in he_close()
2373 hprintk("close rx timeout cid 0x%x\n", cid); in he_close()
2375 HPRINTK("close rx cid 0x%x complete\n", cid); in he_close()
2383 HPRINTK("close tx cid 0x%x\n", cid); in he_close()
2404 hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse); in he_close()
2409 he_writel_tsr4_upper(he_dev, TSR4_FLUSH_CONN, cid); in he_close()
2416 | TSR1_PCR(0), cid); in he_close()
2419 he_writel_tsr14_upper(he_dev, TSR14_DELETE, cid); in he_close()
2422 (void) he_readl_tsr4(he_dev, cid); /* flush posted writes */ in he_close()
2426 hprintk("close tx he_alloc_tpd failed cid 0x%x\n", cid); in he_close()
2436 __enqueue_tpd(he_dev, tpd, cid); in he_close()
2447 hprintk("close tx timeout cid 0x%x\n", cid); in he_close()
2451 while (!((tsr4 = he_readl_tsr4(he_dev, cid)) & TSR4_SESSION_ENDED)) { in he_close()
2452 HPRINTK("close tx cid 0x%x !TSR4_SESSION_ENDED (tsr4 = 0x%x)\n", cid, tsr4); in he_close()
2456 while (TSR0_CONN_STATE(tsr0 = he_readl_tsr0(he_dev, cid)) != 0) { in he_close()
2457 HPRINTK("close tx cid 0x%x TSR0_CONN_STATE != 0 (tsr0 = 0x%x)\n", cid, tsr0); in he_close()
2477 HPRINTK("close tx cid 0x%x complete\n", cid); in he_close()
2490 unsigned cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_send() local
2565 __enqueue_tpd(he_dev, tpd, cid); in he_send()
2599 __enqueue_tpd(he_dev, tpd, cid); in he_send()