Lines Matching refs:pDesc
335 static bool device_alloc_rx_buf(PSDevice pDevice, PSRxDesc pDesc);
337 static void device_free_tx_buf(PSDevice pDevice, PSTxDesc pDesc);
1380 PSRxDesc pDesc;
1384 pDesc = &(pDevice->aRD0Ring[i]);
1385 pDesc->pRDInfo = alloc_rd_info();
1386 ASSERT(pDesc->pRDInfo);
1387 if (!device_alloc_rx_buf(pDevice, pDesc)) {
1391 pDesc->next = &(pDevice->aRD0Ring[(i+1) % pDevice->sOpts.nRxDescs0]);
1392 pDesc->pRDInfo->curr_desc = cpu_to_le32(curr);
1393 pDesc->next_desc = cpu_to_le32(curr + sizeof(SRxDesc));
1405 PSRxDesc pDesc;
1409 pDesc = &(pDevice->aRD1Ring[i]);
1410 pDesc->pRDInfo = alloc_rd_info();
1411 ASSERT(pDesc->pRDInfo);
1412 if (!device_alloc_rx_buf(pDevice, pDesc)) {
1416 pDesc->next = &(pDevice->aRD1Ring[(i+1) % pDevice->sOpts.nRxDescs1]);
1417 pDesc->pRDInfo->curr_desc = cpu_to_le32(curr);
1418 pDesc->next_desc = cpu_to_le32(curr + sizeof(SRxDesc));
1450 PSRxDesc pDesc =&(pDevice->aRD0Ring[i]);
1451 PDEVICE_RD_INFO pRDInfo =pDesc->pRDInfo;
1458 kfree((void *)pDesc->pRDInfo);
1468 PSRxDesc pDesc=&(pDevice->aRD1Ring[i]);
1469 PDEVICE_RD_INFO pRDInfo=pDesc->pRDInfo;
1476 kfree((void *)pDesc->pRDInfo);
1499 PSTxDesc pDesc;
1503 pDesc = &(pDevice->apTD0Rings[i]);
1504 pDesc->pTDInfo = alloc_td_info();
1505 ASSERT(pDesc->pTDInfo);
1507 pDesc->pTDInfo->buf = pDevice->tx0_bufs + (i)*PKT_BUF_SZ;
1508 pDesc->pTDInfo->buf_dma = pDevice->tx_bufs_dma0 + (i)*PKT_BUF_SZ;
1510 pDesc->next =&(pDevice->apTD0Rings[(i+1) % pDevice->sOpts.nTxDescs[0]]);
1511 pDesc->pTDInfo->curr_desc = cpu_to_le32(curr);
1512 pDesc->next_desc = cpu_to_le32(curr+sizeof(STxDesc));
1524 PSTxDesc pDesc;
1529 pDesc=&(pDevice->apTD1Rings[i]);
1530 pDesc->pTDInfo = alloc_td_info();
1531 ASSERT(pDesc->pTDInfo);
1533 pDesc->pTDInfo->buf=pDevice->tx1_bufs+(i)*PKT_BUF_SZ;
1534 pDesc->pTDInfo->buf_dma=pDevice->tx_bufs_dma1+(i)*PKT_BUF_SZ;
1536 pDesc->next=&(pDevice->apTD1Rings[(i+1) % pDevice->sOpts.nTxDescs[1]]);
1537 pDesc->pTDInfo->curr_desc = cpu_to_le32(curr);
1538 pDesc->next_desc = cpu_to_le32(curr+sizeof(STxDesc));
1551 PSTxDesc pDesc=&(pDevice->apTD0Rings[i]);
1552 PDEVICE_TD_INFO pTDInfo=pDesc->pTDInfo;
1561 kfree((void *)pDesc->pTDInfo);
1569 PSTxDesc pDesc=&(pDevice->apTD1Rings[i]);
1570 PDEVICE_TD_INFO pTDInfo=pDesc->pTDInfo;
1579 kfree((void *)pDesc->pTDInfo);
1806 static void device_free_tx_buf(PSDevice pDevice, PSTxDesc pDesc) {
1807 PDEVICE_TD_INFO pTDInfo=pDesc->pTDInfo;