Lines Matching refs:head
105 /* Get the address of a packet buffer corresponding to a given buffer head */
106 #define PKTBUF_ADDR(head) (void *)((unsigned long)(MEM) | (head)->base)
514 struct lance_tx_head *head;
608 head = &(MEM->tx_head[entry]);
618 // head->length = -len;
619 head->length = (-len) | 0xf000;
620 head->misc = 0;
622 skb_copy_from_linear_data(skb, PKTBUF_ADDR(head), skb->len);
624 memset(PKTBUF_ADDR(head) + skb->len, 0, len-skb->len);
626 head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP;
686 struct lance_tx_head *head = &(MEM->tx_head[old_tx]);
690 if (head->flag & TMD1_OWN_CHIP)
693 if (head->flag & TMD1_ERR) {
694 int status = head->misc;
709 } else if(head->flag & (TMD1_ENP | TMD1_STP)) {
711 head->flag &= ~(TMD1_ENP | TMD1_STP);
712 if(head->flag & (TMD1_ONE | TMD1_MORE))
772 struct lance_rx_head *head = &(MEM->rx_head[entry]);
773 int status = head->flag;
786 head->flag &= (RMD1_ENP|RMD1_STP);
789 // short pkt_len = head->msg_length;// & 0xfff;
790 short pkt_len = (head->msg_length & 0xfff) - 4;
801 head->msg_length = 0;
802 head->flag |= RMD1_OWN_CHIP;
809 u_char *data = PKTBUF_ADDR(head);
823 u_char *data = PKTBUF_ADDR(head);
831 PKTBUF_ADDR(head),
841 // head->buf_length = -PKT_BUF_SZ | 0xf000;
842 head->msg_length = 0;
843 head->flag = RMD1_OWN_CHIP;