Lines Matching defs:rpd
344 fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.rpd);
1015 fore200e_push_rpd(struct fore200e* fore200e, struct atm_vcc* vcc, struct rpd* rpd)
1033 cell_header = (rpd->atm_header.gfc << ATM_HDR_GFC_SHIFT) |
1034 (rpd->atm_header.vpi << ATM_HDR_VPI_SHIFT) |
1035 (rpd->atm_header.vci << ATM_HDR_VCI_SHIFT) |
1036 (rpd->atm_header.plt << ATM_HDR_PTI_SHIFT) |
1037 rpd->atm_header.clp;
1043 for (i = 0; i < rpd->nseg; i++)
1044 pdu_len += rpd->rsd[ i ].length;
1063 for (i = 0; i < rpd->nseg; i++) {
1066 buffer = FORE200E_HDL2BUF(rpd->rsd[ i ].handle);
1069 fore200e->bus->dma_sync_for_cpu(fore200e, buffer->data.dma_addr, rpd->rsd[ i ].length, DMA_FROM_DEVICE);
1071 memcpy(skb_put(skb, rpd->rsd[ i ].length), buffer->data.align_addr, rpd->rsd[ i ].length);
1074 fore200e->bus->dma_sync_for_device(fore200e, buffer->data.dma_addr, rpd->rsd[ i ].length, DMA_FROM_DEVICE);
1109 fore200e_collect_rpd(struct fore200e* fore200e, struct rpd* rpd)
1115 for (i = 0; i < rpd->nseg; i++) {
1118 buffer = FORE200E_HDL2BUF(rpd->rsd[ i ].handle);
1157 vc_map = FORE200E_VC_MAP(fore200e, entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1164 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1172 fore200e_push_rpd(fore200e, vcc, entry->rpd);
1177 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1184 fore200e_collect_rpd(fore200e, entry->rpd);
1186 /* rewrite the rpd address to ack the received PDU */
2156 &rxq->rpd,
2157 sizeof(struct rpd),
2173 rxq->host_entry[ i ].rpd =
2174 FORE200E_INDEX(rxq->rpd.align_addr, struct rpd, i);
2176 FORE200E_DMA_INDEX(rxq->rpd.dma_addr, struct rpd, i);
2184 fore200e->bus->write(FORE200E_DMA_INDEX(rxq->rpd.dma_addr, struct rpd, i),