Lines Matching refs:tpl

180 static void 	tms380tr_write_tpl_status(TPL *tpl, unsigned int Status);
630 TPL *tpl; in tms380tr_hardware_send_packet() local
682 tpl = tp->TplFree; /* Get the "free" TPL */ in tms380tr_hardware_send_packet()
683 tpl->BusyFlag = 1; /* Mark TPL as busy */ in tms380tr_hardware_send_packet()
684 tp->TplFree = tpl->NextTPLPtr; in tms380tr_hardware_send_packet()
687 tpl->Skb = skb; in tms380tr_hardware_send_packet()
688 tpl->DMABuff = dmabuf; in tms380tr_hardware_send_packet()
689 tpl->FragList[0].DataCount = cpu_to_be16((unsigned short)length); in tms380tr_hardware_send_packet()
690 tpl->FragList[0].DataAddr = htonl(newbuf); in tms380tr_hardware_send_packet()
693 tpl->FrameSize = cpu_to_be16((unsigned short)length); in tms380tr_hardware_send_packet()
694 tpl->MData = buf; in tms380tr_hardware_send_packet()
697 tms380tr_write_tpl_status(tpl, TX_VALID | TX_START_FRAME in tms380tr_hardware_send_packet()
716 static void tms380tr_write_tpl_status(TPL *tpl, unsigned int Status) in tms380tr_write_tpl_status() argument
718 tpl->Status = Status; in tms380tr_write_tpl_status()
1998 TPL *tpl; in tms380tr_cancel_tx_queue() local
2010 tpl = tp->TplBusy; in tms380tr_cancel_tx_queue()
2011 if(!tpl->BusyFlag) in tms380tr_cancel_tx_queue()
2014 tp->TplBusy = tpl->NextTPLPtr; in tms380tr_cancel_tx_queue()
2015 tms380tr_write_tpl_status(tpl, 0); /* Clear VALID bit */ in tms380tr_cancel_tx_queue()
2016 tpl->BusyFlag = 0; /* "free" TPL */ in tms380tr_cancel_tx_queue()
2018 printk(KERN_INFO "Cancel tx (%08lXh).\n", (unsigned long)tpl); in tms380tr_cancel_tx_queue()
2019 if (tpl->DMABuff) in tms380tr_cancel_tx_queue()
2020 pci_unmap_single(tp->pdev, tpl->DMABuff, tpl->Skb->len, PCI_DMA_TODEVICE); in tms380tr_cancel_tx_queue()
2021 dev_kfree_skb_any(tpl->Skb); in tms380tr_cancel_tx_queue()
2045 TPL *tpl; in tms380tr_tx_status_irq() local
2055 tpl = tp->TplBusy; in tms380tr_tx_status_irq()
2056 if(!tpl->BusyFlag || (tpl->Status in tms380tr_tx_status_irq()
2064 tp->TplBusy = tpl->NextTPLPtr ; in tms380tr_tx_status_irq()
2067 if(DIRECTED_FRAME(tpl) && (tpl->Status & TX_ERROR) == 0) in tms380tr_tx_status_irq()
2069 HighByte = GET_TRANSMIT_STATUS_HIGH_BYTE(tpl->Status); in tms380tr_tx_status_irq()
2077 *(unsigned long *)&tpl->MData[2+2]); in tms380tr_tx_status_irq()
2088 if(!DIRECTED_FRAME(tpl)) in tms380tr_tx_status_irq()
2097 if (tpl->DMABuff) in tms380tr_tx_status_irq()
2098 pci_unmap_single(tp->pdev, tpl->DMABuff, tpl->Skb->len, PCI_DMA_TODEVICE); in tms380tr_tx_status_irq()
2099 dev_kfree_skb_irq(tpl->Skb); in tms380tr_tx_status_irq()
2100 tpl->BusyFlag = 0; /* "free" TPL */ in tms380tr_tx_status_irq()