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)
520 struct lance_tx_head *head;
614 head = &(MEM->tx_head[entry]);
624 // head->length = -len;
625 head->length = (-len) | 0xf000;
626 head->misc = 0;
628 skb_copy_from_linear_data(skb, PKTBUF_ADDR(head), skb->len);
630 memset(PKTBUF_ADDR(head) + skb->len, 0, len-skb->len);
632 head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP;
692 struct lance_tx_head *head = &(MEM->tx_head[old_tx]);
696 if (head->flag & TMD1_OWN_CHIP)
699 if (head->flag & TMD1_ERR) {
700 int status = head->misc;
715 } else if(head->flag & (TMD1_ENP | TMD1_STP)) {
717 head->flag &= ~(TMD1_ENP | TMD1_STP);
718 if(head->flag & (TMD1_ONE | TMD1_MORE))
778 struct lance_rx_head *head = &(MEM->rx_head[entry]);
779 int status = head->flag;
792 head->flag &= (RMD1_ENP|RMD1_STP);
795 // short pkt_len = head->msg_length;// & 0xfff;
796 short pkt_len = (head->msg_length & 0xfff) - 4;
807 head->msg_length = 0;
808 head->flag |= RMD1_OWN_CHIP;
815 u_char *data = PKTBUF_ADDR(head);
829 u_char *data = PKTBUF_ADDR(head);
837 PKTBUF_ADDR(head),
847 // head->buf_length = -PKT_BUF_SZ | 0xf000;
848 head->msg_length = 0;
849 head->flag = RMD1_OWN_CHIP;