Lines Matching full:mb
96 /* mb inlined data len - rest will be rx'ed into frags */
136 #define BZCOPY_STATE(mb) (SDP_SKB_CB(mb)->bz) argument
137 #define RX_SRCAVAIL_STATE(mb) (SDP_SKB_CB(mb)->rx_sa) argument
138 #define TX_SRCAVAIL_STATE(mb) (SDP_SKB_CB(mb)->tx_sa) argument
203 struct mbuf *mb; member
507 struct mbuf *mb; in sdp_alloc_mb() local
509 MGETHDR(mb, wait, MT_DATA); in sdp_alloc_mb()
510 if (mb == NULL) in sdp_alloc_mb()
512 mb->m_pkthdr.len = mb->m_len = sizeof(struct sdp_bsdh); in sdp_alloc_mb()
513 h = mtod(mb, struct sdp_bsdh *); in sdp_alloc_mb()
516 return mb; in sdp_alloc_mb()
531 mb_put(struct mbuf *mb, int len) in mb_put() argument
535 data = mb->m_data; in mb_put()
536 data += mb->m_len; in mb_put()
537 mb->m_len += len; in mb_put()
544 struct mbuf *mb; in sdp_alloc_mb_chrcvbuf_ack() local
547 mb = sdp_alloc_mb(sk, SDP_MID_CHRCVBUF_ACK, sizeof(*resp_size), wait); in sdp_alloc_mb_chrcvbuf_ack()
548 if (mb == NULL) in sdp_alloc_mb_chrcvbuf_ack()
550 resp_size = (struct sdp_chrecvbuf *)mb_put(mb, sizeof *resp_size); in sdp_alloc_mb_chrcvbuf_ack()
553 return mb; in sdp_alloc_mb_chrcvbuf_ack()
559 struct mbuf *mb; in sdp_alloc_mb_srcavail() local
562 mb = sdp_alloc_mb(sk, SDP_MID_SRCAVAIL, sizeof(*srcah), wait); in sdp_alloc_mb_srcavail()
563 if (mb == NULL) in sdp_alloc_mb_srcavail()
565 srcah = (struct sdp_srcah *)mb_put(mb, sizeof(*srcah)); in sdp_alloc_mb_srcavail()
570 return mb; in sdp_alloc_mb_srcavail()
582 struct mbuf *mb; in sdp_alloc_mb_rdmardcompl() local
585 mb = sdp_alloc_mb(sk, SDP_MID_RDMARDCOMPL, sizeof(*rrch), wait); in sdp_alloc_mb_rdmardcompl()
586 if (mb == NULL) in sdp_alloc_mb_rdmardcompl()
588 rrch = (struct sdp_rrch *)mb_put(mb, sizeof(*rrch)); in sdp_alloc_mb_rdmardcompl()
591 return mb; in sdp_alloc_mb_rdmardcompl()
628 struct mbuf *mb; in sdp_cleanup_sdp_buf() local
632 for (i = 0, mb = sbuf->mb; mb != NULL; mb = mb->m_next, i++) in sdp_cleanup_sdp_buf()
633 ib_dma_unmap_single(dev, sbuf->mapping[i], mb->m_len, dir); in sdp_cleanup_sdp_buf()
639 void sdp_urg(struct sdp_sock *ssk, struct mbuf *mb);
652 void sdp_post_send(struct sdp_sock *ssk, struct mbuf *mb);
673 int sdp_rdma_to_iovec(struct socket *sk, struct iovec *iov, struct mbuf *mb,