Lines Matching refs:m_head

979 	struct mbuf	*m_head;
998 m_head = if_dequeue(ifp);
999 if (m_head == NULL)
1005 if (em_xmit(txr, &m_head)) {
1006 if (m_head == NULL)
1008 if_sendq_prepend(ifp, m_head);
1017 ETHER_BPF_MTAP(ifp, m_head);
1922 struct mbuf *m_head;
1932 m_head = *m_headp;
1933 do_tso = m_head->m_pkthdr.csum_flags & CSUM_IP_TSO;
1951 if (do_tso || m_head->m_pkthdr.csum_flags & CSUM_OFFLOAD) {
1952 if (do_tso || (m_head->m_next != NULL &&
1953 m_head->m_pkthdr.csum_flags & CSUM_OFFLOAD)) {
1955 m_head = m_dup(*m_headp, M_NOWAIT);
1957 if (m_head == NULL) {
1961 *m_headp = m_head;
1970 if (m_head->m_len < ip_off) {
1971 m_head = m_pullup(m_head, ip_off);
1972 if (m_head == NULL) {
1977 eh = mtod(m_head, struct ether_header *);
1980 if (m_head->m_len < ip_off) {
1981 m_head = m_pullup(m_head, ip_off);
1982 if (m_head == NULL) {
1988 if (m_head->m_len < ip_off + sizeof(struct ip)) {
1989 m_head = m_pullup(m_head, ip_off + sizeof(struct ip));
1990 if (m_head == NULL) {
1995 ip = (struct ip *)(mtod(m_head, char *) + ip_off);
1998 if (do_tso || (m_head->m_pkthdr.csum_flags & CSUM_TCP)) {
1999 if (m_head->m_len < poff + sizeof(struct tcphdr)) {
2000 m_head = m_pullup(m_head, poff +
2002 if (m_head == NULL) {
2007 tp = (struct tcphdr *)(mtod(m_head, char *) + poff);
2012 if (m_head->m_len < poff + (tp->th_off << 2)) {
2013 m_head = m_pullup(m_head, poff +
2016 if (m_head == NULL) {
2021 ip = (struct ip *)(mtod(m_head, char *) + ip_off);
2022 tp = (struct tcphdr *)(mtod(m_head, char *) + poff);
2024 ip->ip_len = htons(m_head->m_pkthdr.tso_segsz +
2038 } else if (m_head->m_pkthdr.csum_flags & CSUM_UDP) {
2039 if (m_head->m_len < poff + sizeof(struct udphdr)) {
2040 m_head = m_pullup(m_head, poff +
2042 if (m_head == NULL) {
2047 ip = (struct ip *)(mtod(m_head, char *) + ip_off);
2049 *m_headp = m_head;
2117 m_head = *m_headp;
2120 if (m_head->m_pkthdr.csum_flags & CSUM_IP_TSO) {
2121 em_tso_setup(txr, m_head, ip_off, ip, tp,
2125 } else if (m_head->m_pkthdr.csum_flags & CSUM_OFFLOAD)
2126 em_transmit_checksum_setup(txr, m_head,
2129 if (m_head->m_flags & M_VLANTAG) {
2131 txd_upper |= htole16(if_getvtag(m_head)) << 16;
2183 tx_buffer->m_head = NULL;
2190 tx_buffer->m_head = m_head;
3637 if (txbuf->m_head != NULL) {
3641 m_freem(txbuf->m_head);
3642 txbuf->m_head = NULL;
3855 if (txbuf->m_head != NULL) {
3860 m_freem(txbuf->m_head);
3861 txbuf->m_head = NULL;
4046 tx_buffer->m_head = NULL;
4122 tx_buffer->m_head = NULL;
4191 if (tx_buffer->m_head) {
4197 m_freem(tx_buffer->m_head);
4198 tx_buffer->m_head = NULL;
4278 if (rxbuf->m_head == NULL) {
4290 m = rxbuf->m_head;
4303 rxbuf->m_head = NULL;
4306 rxbuf->m_head = m;
4424 if (rxbuf->m_head != NULL) {
4428 m_freem(rxbuf->m_head);
4429 rxbuf->m_head = NULL; /* mark as freed */
4449 rxbuf->m_head = m_getjcl(M_NOWAIT, MT_DATA,
4451 if (rxbuf->m_head == NULL) {
4455 rxbuf->m_head->m_len = adapter->rx_mbuf_sz;
4456 rxbuf->m_head->m_flags &= ~M_HASFCS; /* we strip it */
4457 rxbuf->m_head->m_pkthdr.len = adapter->rx_mbuf_sz;
4461 rxbuf->map, rxbuf->m_head, seg,
4464 m_freem(rxbuf->m_head);
4465 rxbuf->m_head = NULL;
4511 if (rxbuf->m_head != NULL) {
4515 m_freem(rxbuf->m_head);
4516 rxbuf->m_head = NULL;
4569 if (rxbuf->m_head != NULL) {
4570 m_freem(rxbuf->m_head);
4571 rxbuf->m_head = NULL;
4865 mp = rxr->rx_buffers[i].m_head;
4869 rxr->rx_buffers[i].m_head = NULL;
4966 if (rbuf->m_head) {
4967 m_free(rbuf->m_head);
4968 rbuf->m_head = NULL;