Lines Matching refs:tpl
181 static void tms380tr_write_tpl_status(TPL *tpl, unsigned int Status);
618 TPL *tpl; in tms380tr_hardware_send_packet() local
662 tpl = tp->TplFree; /* Get the "free" TPL */ in tms380tr_hardware_send_packet()
663 tpl->BusyFlag = 1; /* Mark TPL as busy */ in tms380tr_hardware_send_packet()
664 tp->TplFree = tpl->NextTPLPtr; in tms380tr_hardware_send_packet()
667 tpl->Skb = skb; in tms380tr_hardware_send_packet()
668 tpl->DMABuff = dmabuf; in tms380tr_hardware_send_packet()
669 tpl->FragList[0].DataCount = cpu_to_be16((unsigned short)length); in tms380tr_hardware_send_packet()
670 tpl->FragList[0].DataAddr = htonl(newbuf); in tms380tr_hardware_send_packet()
673 tpl->FrameSize = cpu_to_be16((unsigned short)length); in tms380tr_hardware_send_packet()
674 tpl->MData = buf; in tms380tr_hardware_send_packet()
677 tms380tr_write_tpl_status(tpl, TX_VALID | TX_START_FRAME in tms380tr_hardware_send_packet()
696 static void tms380tr_write_tpl_status(TPL *tpl, unsigned int Status) in tms380tr_write_tpl_status() argument
698 tpl->Status = Status; in tms380tr_write_tpl_status()
1998 TPL *tpl; in tms380tr_cancel_tx_queue() local
2009 tpl = tp->TplBusy; in tms380tr_cancel_tx_queue()
2010 if(!tpl->BusyFlag) in tms380tr_cancel_tx_queue()
2013 tp->TplBusy = tpl->NextTPLPtr; in tms380tr_cancel_tx_queue()
2014 tms380tr_write_tpl_status(tpl, 0); /* Clear VALID bit */ in tms380tr_cancel_tx_queue()
2015 tpl->BusyFlag = 0; /* "free" TPL */ in tms380tr_cancel_tx_queue()
2017 printk(KERN_INFO "Cancel tx (%08lXh).\n", (unsigned long)tpl); in tms380tr_cancel_tx_queue()
2018 if (tpl->DMABuff) in tms380tr_cancel_tx_queue()
2019 dma_unmap_single(tp->pdev, tpl->DMABuff, tpl->Skb->len, DMA_TO_DEVICE); in tms380tr_cancel_tx_queue()
2020 dev_kfree_skb_any(tpl->Skb); in tms380tr_cancel_tx_queue()
2035 TPL *tpl; in tms380tr_tx_status_irq() local
2045 tpl = tp->TplBusy; in tms380tr_tx_status_irq()
2046 if(!tpl->BusyFlag || (tpl->Status in tms380tr_tx_status_irq()
2054 tp->TplBusy = tpl->NextTPLPtr ; in tms380tr_tx_status_irq()
2057 if(DIRECTED_FRAME(tpl) && (tpl->Status & TX_ERROR) == 0) in tms380tr_tx_status_irq()
2059 HighByte = GET_TRANSMIT_STATUS_HIGH_BYTE(tpl->Status); in tms380tr_tx_status_irq()
2067 *(unsigned long *)&tpl->MData[2+2]); in tms380tr_tx_status_irq()
2078 if(!DIRECTED_FRAME(tpl)) in tms380tr_tx_status_irq()
2087 if (tpl->DMABuff) in tms380tr_tx_status_irq()
2088 dma_unmap_single(tp->pdev, tpl->DMABuff, tpl->Skb->len, DMA_TO_DEVICE); in tms380tr_tx_status_irq()
2089 dev_kfree_skb_irq(tpl->Skb); in tms380tr_tx_status_irq()
2090 tpl->BusyFlag = 0; /* "free" TPL */ in tms380tr_tx_status_irq()