• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/wlags49_h2/

Lines Matching defs:lp

142 int wl_pci_dma_alloc( struct pci_dev *pdev, struct wl_private *lp );
143 int wl_pci_dma_free( struct pci_dev *pdev, struct wl_private *lp );
144 int wl_pci_dma_alloc_tx_packet( struct pci_dev *pdev, struct wl_private *lp,
146 int wl_pci_dma_free_tx_packet( struct pci_dev *pdev, struct wl_private *lp,
148 int wl_pci_dma_alloc_rx_packet( struct pci_dev *pdev, struct wl_private *lp,
150 int wl_pci_dma_free_rx_packet( struct pci_dev *pdev, struct wl_private *lp,
152 int wl_pci_dma_alloc_desc_and_buf( struct pci_dev *pdev, struct wl_private *lp,
154 int wl_pci_dma_free_desc_and_buf( struct pci_dev *pdev, struct wl_private *lp,
156 int wl_pci_dma_alloc_desc( struct pci_dev *pdev, struct wl_private *lp,
158 int wl_pci_dma_free_desc( struct pci_dev *pdev, struct wl_private *lp,
160 int wl_pci_dma_alloc_buf( struct pci_dev *pdev, struct wl_private *lp,
162 int wl_pci_dma_free_buf( struct pci_dev *pdev, struct wl_private *lp,
165 void wl_pci_dma_hcf_reclaim_rx( struct wl_private *lp );
504 struct wl_private *lp = NULL;
577 lp = dev->priv;
579 if( lp->hcfCtx.IFB_BusType == CFG_NIC_BUS_TYPE_CARDBUS ||
580 lp->hcfCtx.IFB_BusType == CFG_NIC_BUS_TYPE_PCI ) {
671 * lp - the device's private adapter structure
679 int wl_pci_dma_alloc( struct pci_dev *pdev, struct wl_private *lp )
688 // lp->dma.tx_rsc_ind = lp->dma.rx_rsc_ind = 0;
692 // status = wl_pci_dma_alloc_tx_packet( pdev, lp, &lp->dma.tx_packet[i] );
694 // DBG_PRINT( "lp->dma.tx_packet[%d] : 0x%p\n", i, lp->dma.tx_packet[i] );
695 // DBG_PRINT( "lp->dma.tx_packet[%d]->next_desc_addr : 0x%p\n", i, lp->dma.tx_packet[i]->next_desc_addr );
696 // lp->dma.tx_rsc_ind++;
703 // status = wl_pci_dma_alloc_desc( pdev, lp, &lp->dma.tx_reclaim_desc );
704 // DBG_PRINT( "lp->dma.tx_reclaim_desc: 0x%p\n", lp->dma.tx_reclaim_desc );
709 // status = wl_pci_dma_alloc_rx_packet( pdev, lp, &lp->dma.rx_packet[i] );
711 // DBG_PRINT( "lp->dma.rx_packet[%d] : 0x%p\n", i, lp->dma.rx_packet[i] );
712 // DBG_PRINT( "lp->dma.rx_packet[%d]->next_desc_addr : 0x%p\n", i, lp->dma.rx_packet[i]->next_desc_addr );
713 // lp->dma.rx_rsc_ind++;
721 // status = wl_pci_dma_alloc_desc( pdev, lp, &lp->dma.rx_reclaim_desc );
722 // DBG_PRINT( "lp->dma.rx_reclaim_desc: 0x%p\n", lp->dma.rx_reclaim_desc );
725 // lp->dma.status = status; //;?all useages of dma.status have been commented out
742 * lp - the device's private adapter structure
750 int wl_pci_dma_free( struct pci_dev *pdev, struct wl_private *lp )
762 //if( lp->dma.status == 0 )
764 // wl_pci_dma_hcf_reclaim( lp );
769 if( lp->dma.rx_packet[i] ) {
770 status = wl_pci_dma_free_rx_packet( pdev, lp, &lp->dma.rx_packet[i] );
776 lp->dma.rx_rsc_ind = 0;
778 if( lp->dma.rx_reclaim_desc ) {
779 status = wl_pci_dma_free_desc( pdev, lp, &lp->dma.rx_reclaim_desc );
787 if( lp->dma.tx_packet[i] ) {
788 status = wl_pci_dma_free_tx_packet( pdev, lp, &lp->dma.tx_packet[i] );
794 lp->dma.tx_rsc_ind = 0;
796 if( lp->dma.tx_reclaim_desc ) {
797 status = wl_pci_dma_free_desc( pdev, lp, &lp->dma.tx_reclaim_desc );
822 * lp - the device's private adapter structure
831 int wl_pci_dma_alloc_tx_packet( struct pci_dev *pdev, struct wl_private *lp,
841 // status = wl_pci_dma_alloc_desc_and_buf( pdev, lp, desc,
845 // status = wl_pci_dma_alloc_desc_and_buf( pdev, lp,
868 * lp - the device's private adapter structure
877 int wl_pci_dma_free_tx_packet( struct pci_dev *pdev, struct wl_private *lp,
890 status = wl_pci_dma_free_desc_and_buf( pdev, lp, &(*desc)->next_desc_addr );
893 status = wl_pci_dma_free_desc_and_buf( pdev, lp, desc );
913 * lp - the device's private adapter structure
922 int wl_pci_dma_alloc_rx_packet( struct pci_dev *pdev, struct wl_private *lp,
935 // status = wl_pci_dma_alloc_desc( pdev, lp, desc );
938 // status = wl_pci_dma_alloc_buf( pdev, lp, *desc, HCF_MAX_PACKET_SIZE );
941 // status = wl_pci_dma_alloc_desc( pdev, lp, &p );
973 * lp - the device's private adapter structure
982 int wl_pci_dma_free_rx_packet( struct pci_dev *pdev, struct wl_private *lp,
1000 status = wl_pci_dma_free_desc( pdev, lp, &p );
1007 status = wl_pci_dma_free_desc_and_buf( pdev, lp, desc );
1025 * lp - the device's private adapter structure
1034 int wl_pci_dma_alloc_desc_and_buf( struct pci_dev *pdev, struct wl_private *lp,
1044 // status = wl_pci_dma_alloc_desc( pdev, lp, desc );
1047 // status = wl_pci_dma_alloc_buf( pdev, lp, *desc, size );
1065 * lp - the device's private adapter structure
1074 int wl_pci_dma_free_desc_and_buf( struct pci_dev *pdev, struct wl_private *lp,
1087 status = wl_pci_dma_free_buf( pdev, lp, *desc );
1090 status = wl_pci_dma_free_desc( pdev, lp, desc );
1108 * lp - the device's private adapter structure
1116 int wl_pci_dma_alloc_desc( struct pci_dev *pdev, struct wl_private *lp,
1155 * lp - the device's private adapter structure
1163 int wl_pci_dma_free_desc( struct pci_dev *pdev, struct wl_private *lp,
1193 * lp - the device's private adapter structure
1201 int wl_pci_dma_alloc_buf( struct pci_dev *pdev, struct wl_private *lp,
1244 * lp - the device's private adapter structure
1252 int wl_pci_dma_free_buf( struct pci_dev *pdev, struct wl_private *lp,
1293 * lp - the device's private adapter structure
1301 void wl_pci_dma_hcf_supply( struct wl_private *lp )
1309 //if( lp->dma.status == 0 );
1312 if( lp->dma.tx_reclaim_desc ) {
1313 DBG_PRINT( "lp->dma.tx_reclaim_desc: 0x%p\n", lp->dma.tx_reclaim_desc );
1314 hcf_dma_tx_put( &lp->hcfCtx, lp->dma.tx_reclaim_desc, 0 );
1315 lp->dma.tx_reclaim_desc = NULL;
1316 DBG_PRINT( "lp->dma.tx_reclaim_desc: 0x%p\n", lp->dma.tx_reclaim_desc );
1318 if( lp->dma.rx_reclaim_desc ) {
1319 DBG_PRINT( "lp->dma.rx_reclaim_desc: 0x%p\n", lp->dma.rx_reclaim_desc );
1320 hcf_dma_rx_put( &lp->hcfCtx, lp->dma.rx_reclaim_desc );
1321 lp->dma.rx_reclaim_desc = NULL;
1322 DBG_PRINT( "lp->dma.rx_reclaim_desc: 0x%p\n", lp->dma.rx_reclaim_desc );
1326 DBG_PRINT( "lp->dma.rx_packet[%d]: 0x%p\n", i, lp->dma.rx_packet[i] );
1327 hcf_dma_rx_put( &lp->hcfCtx, lp->dma.rx_packet[i] );
1328 lp->dma.rx_packet[i] = NULL;
1329 DBG_PRINT( "lp->dma.rx_packet[%d]: 0x%p\n", i, lp->dma.rx_packet[i] );
1356 * lp - the device's private adapter structure
1364 void wl_pci_dma_hcf_reclaim( struct wl_private *lp )
1372 wl_pci_dma_hcf_reclaim_rx( lp );
1374 DBG_PRINT( "rx_packet[%d] 0x%p\n", i, lp->dma.rx_packet[i] );
1375 // if( lp->dma.rx_packet[i] == NULL ) {
1380 wl_pci_dma_hcf_reclaim_tx( lp );
1382 DBG_PRINT( "tx_packet[%d] 0x%p\n", i, lp->dma.tx_packet[i] );
1383 // if( lp->dma.tx_packet[i] == NULL ) {
1403 * lp - the device's private adapter structure
1411 void wl_pci_dma_hcf_reclaim_rx( struct wl_private *lp )
1420 //if( lp->dma.status == 0 )
1422 while ( ( p = hcf_dma_rx_get( &lp->hcfCtx ) ) != NULL ) {
1426 lp->dma.rx_reclaim_desc = p;
1431 if( lp->dma.rx_packet[i] == NULL ) {
1436 lp->dma.rx_packet[i] = p;
1437 lp->dma.rx_rsc_ind++;
1438 DBG_PRINT( "rx_packet[%d] 0x%p\n", i, lp->dma.rx_packet[i] );
1455 * lp - a pointer to the device's wl_private structure.
1462 DESC_STRCT * wl_pci_dma_get_tx_packet( struct wl_private *lp )
1469 if( lp->dma.tx_packet[i] ) {
1475 desc = lp->dma.tx_packet[i];
1477 lp->dma.tx_packet[i] = NULL;
1478 lp->dma.tx_rsc_ind--;
1497 * lp - a pointer to the device's wl_private structure.
1505 void wl_pci_dma_put_tx_packet( struct wl_private *lp, DESC_STRCT *desc )
1511 if( lp->dma.tx_packet[i] == NULL ) {
1517 lp->dma.tx_packet[i] = desc;
1518 lp->dma.tx_rsc_ind++;
1534 * lp - the device's private adapter structure
1542 void wl_pci_dma_hcf_reclaim_tx( struct wl_private *lp )
1551 //if( lp->dma.status == 0 )
1553 while ( ( p = hcf_dma_tx_get( &lp->hcfCtx ) ) != NULL ) {
1558 lp->dma.tx_reclaim_desc = p;
1563 if( lp->dma.tx_packet[i] == NULL ) {
1568 lp->dma.tx_packet[i] = p;
1569 lp->dma.tx_rsc_ind++;
1570 DBG_PRINT( "tx_packet[%d] 0x%p\n", i, lp->dma.tx_packet[i] );
1574 if( lp->netif_queue_on == FALSE ) {
1575 netif_wake_queue( lp->dev );
1576 WL_WDS_NETIF_WAKE_QUEUE( lp );
1577 lp->netif_queue_on = TRUE;