Lines Matching defs:tx

32  * o  AAL0 is stubbed in but the actual rx/tx path isn't written yet:
245 } tx;
284 DECLARE_BITMAP(backlog_vccs, NUM_VCI); /* VCCs with tx backlog */
731 dma_addr_t dmaaddr = lvcc->tx.buf.dmaaddr;
739 (lvcc->tx.atmvcc->qos.txtp.traffic_class == ATM_CBR) ?
744 TXADDR1_SET_SIZE(lanai_buf_size_cardorder(&lvcc->tx.buf)),
785 while ((skb = skb_dequeue(&lvcc->tx.backlog)) != NULL)
786 lanai_free_skb(lvcc->tx.atmvcc, skb);
796 (((lanai_buf_size(&lvcc->tx.buf) / 1024) * HZ) >> 7);
801 (lvcc->tx.atmvcc->qos.txtp.traffic_class != ATM_CBR ||
812 lvcc->tx.atmvcc->dev->number, lvcc->vci);
818 /* 15.2.2 - clear out all tx registers */
1145 /* space left in tx buffer in bytes */
1150 r -= ((unsigned long) lvcc->tx.buf.ptr) -
1151 ((unsigned long) lvcc->tx.buf.start);
1154 r += lanai_buf_size(&lvcc->tx.buf);
1161 return !skb_queue_empty(&lvcc->tx.backlog);
1175 APRINTK((((unsigned long) lvcc->tx.buf.ptr) & 15) == 0,
1176 "vcc_tx_add_aal5_descriptor: bad ptr=%p\n", lvcc->tx.buf.ptr);
1177 lvcc->tx.buf.ptr += 4; /* Hope the values REALLY don't matter */
1178 pos = ((unsigned char *) lvcc->tx.buf.ptr) -
1179 (unsigned char *) lvcc->tx.buf.start;
1183 lvcc->tx.buf.start, lvcc->tx.buf.ptr, lvcc->tx.buf.end);
1184 pos = (pos + len) & (lanai_buf_size(&lvcc->tx.buf) - 1);
1188 lvcc->tx.buf.start, lvcc->tx.buf.ptr, lvcc->tx.buf.end);
1189 lvcc->tx.buf.ptr[-1] =
1191 ((lvcc->tx.atmvcc->atm_options & ATM_ATMOPT_CLP) ?
1193 if (lvcc->tx.buf.ptr >= lvcc->tx.buf.end)
1194 lvcc->tx.buf.ptr = lvcc->tx.buf.start;
1201 APRINTK((((unsigned long) lvcc->tx.buf.ptr) & 15) == 8,
1202 "vcc_tx_add_aal5_trailer: bad ptr=%p\n", lvcc->tx.buf.ptr);
1203 lvcc->tx.buf.ptr += 2;
1204 lvcc->tx.buf.ptr[-2] = cpu_to_be32((uu << 24) | (cpi << 16) | len);
1205 if (lvcc->tx.buf.ptr >= lvcc->tx.buf.end)
1206 lvcc->tx.buf.ptr = lvcc->tx.buf.start;
1214 e = ((unsigned char *) lvcc->tx.buf.ptr) + n;
1215 m = e - (unsigned char *) lvcc->tx.buf.end;
1218 memcpy(lvcc->tx.buf.ptr, src, n - m);
1220 memcpy(lvcc->tx.buf.start, src + n - m, m);
1221 e = ((unsigned char *) lvcc->tx.buf.start) + m;
1223 lvcc->tx.buf.ptr = (u32 *) e;
1232 e = ((unsigned char *) lvcc->tx.buf.ptr) + n;
1233 m = e - (unsigned char *) lvcc->tx.buf.end;
1236 memset(lvcc->tx.buf.ptr, 0, n - m);
1238 memset(lvcc->tx.buf.start, 0, m);
1239 e = ((unsigned char *) lvcc->tx.buf.start) + m;
1241 lvcc->tx.buf.ptr = (u32 *) e;
1248 int i, ptr = ((unsigned char *) lvcc->tx.buf.ptr) -
1249 (unsigned char *) lvcc->tx.buf.start;
1252 ptr, lvcc->vci, lvcc->tx.buf.start, lvcc->tx.buf.ptr,
1253 lvcc->tx.buf.end);
1305 lanai_free_skb(lvcc->tx.atmvcc, skb);
1306 atomic_inc(&lvcc->tx.atmvcc->stats->tx);
1320 skb = skb_dequeue(&lvcc->tx.backlog);
1326 skb_queue_head(&lvcc->tx.backlog, skb);
1352 skb_queue_tail(&lvcc->tx.backlog, skb);
1369 /* Remember to increment lvcc->tx.atmvcc->stats->tx */
1370 lanai_free_skb(lvcc->tx.atmvcc, skb);
1482 skb_queue_head_init(&lvcc->tx.backlog);
1524 lvcc->tx.unqueue = vcc_tx_unqueue_aal0;
1528 lvcc->tx.unqueue = vcc_tx_unqueue_aal5;
1532 return lanai_get_sized_buffer(lanai, &lvcc->tx.buf, max_sdu,
1646 if (unlikely(lvcc->tx.atmvcc == NULL)) {
1654 lvcc->tx.endptr = SERVICE_GET_END(s);
1715 lvcc->tx.unqueue(lanai, lvcc, lvcc->tx.endptr);
1762 if (lvcc == NULL || lvcc->tx.atmvcc == NULL ||
1768 lvcc->tx.unqueue(lanai, lvcc, endptr);
2018 lvcc->tx.atmvcc != NULL && lvcc->tx.atmvcc != atmvcc)
2306 if (lvcc->tx.atmvcc == atmvcc) {
2313 lanai_buf_deallocate(&lvcc->tx.buf, lanai->pci);
2314 lvcc->tx.atmvcc = NULL;
2374 APRINTK(lvcc->tx.atmvcc == NULL, "tx.atmvcc!=NULL, vci=%d\n",
2379 lvcc->tx.atmvcc = atmvcc;
2394 if (atmvcc == lvcc->tx.atmvcc) {
2413 lvcc->tx.atmvcc != atmvcc))
2537 if (lvcc->tx.atmvcc != NULL)
2540 lvcc->tx.atmvcc->qos.aal == ATM_AAL5 ? 5 : 0,
2541 lanai_buf_size(&lvcc->tx.buf),
2542 lvcc->tx.atmvcc == lanai->cbrvcc ? 'C' : 'U',