| /freebsd-12-stable/usr.sbin/ppp/ |
| D | mbuf.h | 33 struct mbuf { struct 38 struct mbuf *m_next; /* link to next mbuf */ argument 39 struct mbuf *m_nextpkt; /* link to next packet */ argument 45 struct mbuf *top; argument 46 struct mbuf *last; 101 #define M_MAXLEN (4352 - sizeof(struct mbuf)) /* > HDLCSIZE */ 105 extern size_t m_length(struct mbuf *); 106 extern struct mbuf *m_get(size_t, int); 107 extern struct mbuf *m_free(struct mbuf *); 108 extern void m_freem(struct mbuf *); [all …]
|
| D | mbuf.c | 62 struct mbuf m; 65 } *bucket[(M_MAXLEN + sizeof(struct mbuf)) / BUCKET_HASH]; 67 #define M_BINDEX(sz) (((sz) + sizeof(struct mbuf) - 1) / BUCKET_HASH) 72 struct mbuf *queue; 80 m_length(struct mbuf *bp) in m_length() 105 struct mbuf * 109 struct mbuf *bp; in m_get() 155 memset(bp, '\0', sizeof(struct mbuf)); in m_get() 166 struct mbuf * 167 m_free(struct mbuf *bp) in m_free() [all …]
|
| /freebsd-12-stable/sys/sys/ |
| D | mbuf.h | 96 struct mbuf; 97 #define MHSIZE offsetof(struct mbuf, m_dat) 98 #define MPKTHSIZE offsetof(struct mbuf, m_pktdat) 217 typedef void m_ext_free_t(struct mbuf *); 252 struct mbuf { struct 261 struct mbuf *m_next; argument 262 SLIST_ENTRY(mbuf) m_slist; 263 STAILQ_ENTRY(mbuf) m_stailq; 266 struct mbuf *m_nextpkt; argument 267 SLIST_ENTRY(mbuf) m_slistpkt; [all …]
|
| D | sockbuf.h | 66 struct mbuf; 84 struct mbuf *sb_mb; /* (a) the mbuf chain */ 85 struct mbuf *sb_mbtail; /* (a) the last mbuf in the chain */ 86 struct mbuf *sb_lastrecord; /* (a) first mbuf of last 88 struct mbuf *sb_sndptr; /* (a) pointer into mbuf chain */ 89 struct mbuf *sb_fnrdy; /* (a) pointer to first not ready buffer */ 132 void sbappend(struct sockbuf *sb, struct mbuf *m, int flags); 133 void sbappend_locked(struct sockbuf *sb, struct mbuf *m, int flags); 134 void sbappendstream(struct sockbuf *sb, struct mbuf *m, int flags); 135 void sbappendstream_locked(struct sockbuf *sb, struct mbuf *m, int flags); [all …]
|
| /freebsd-12-stable/sys/dev/ena/ |
| D | ena_datapath.c | 55 struct mbuf *); 56 static struct mbuf *ena_rx_mbuf(struct ena_ring *, struct ena_com_rx_buf_info *, 59 struct mbuf *); 60 static void ena_tx_csum(struct ena_com_tx_ctx *, struct mbuf *, bool); 62 struct mbuf **mbuf); 63 static int ena_xmit_mbuf(struct ena_ring *, struct mbuf **); 130 ena_mq_start(if_t ifp, struct mbuf *m) in ena_mq_start() 219 if (tx_ring->tx_buffer_info[*req_id].mbuf != NULL) in ena_get_tx_req_id() 269 struct mbuf *mbuf; in ena_tx_cleanup() local 277 mbuf = tx_info->mbuf; in ena_tx_cleanup() [all …]
|
| /freebsd-12-stable/sbin/dhclient/ |
| D | errwarn.c | 54 static char mbuf[1024]; variable 70 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in error() 74 cap_syslog(capsyslog, log_priority | LOG_ERR, "%s", mbuf); in error() 79 write(2, mbuf, strlen(mbuf)); in error() 104 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in warning() 108 cap_syslog(capsyslog, log_priority | LOG_ERR, "%s", mbuf); in warning() 112 write(2, mbuf, strlen(mbuf)); in warning() 130 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in note() 134 cap_syslog(capsyslog, log_priority | LOG_INFO, "%s", mbuf); in note() 138 write(2, mbuf, strlen(mbuf)); in note() [all …]
|
| /freebsd-12-stable/sys/nfsserver/ |
| D | nfs.h | 168 struct nfssvc_sock *slp, struct mbuf **mreqp); 184 struct mbuf *nd_mrep; /* Request mbuf list */ 185 struct mbuf *nd_md; /* Current dissect mbuf */ 186 struct mbuf *nd_mreq; /* Reply mbuf list */ 250 struct mbuf *nfs_rephead(int, struct nfsrv_descript *, int, struct mbuf **, 255 struct vattr *, struct mbuf **, char **); 257 struct mbuf **, char **); 259 int, struct nfssvc_sock *, struct sockaddr *, struct mbuf **, 261 void nfsm_adj(struct mbuf *, int, int); 262 int nfsm_mbuftouio(struct mbuf **, struct uio *, int, caddr_t *); [all …]
|
| /freebsd-12-stable/sys/dev/sfxge/ |
| D | sfxge_tx.c | 151 static int sfxge_tx_queue_tso(struct sfxge_txq *txq, struct mbuf *mbuf, 167 sfxge_tx_maybe_toggle_cksum_offload(struct sfxge_txq *txq, struct mbuf *mbuf, in sfxge_tx_maybe_toggle_cksum_offload() argument 173 if (mbuf->m_pkthdr.csum_flags & in sfxge_tx_maybe_toggle_cksum_offload() 181 } else if (mbuf->m_pkthdr.csum_flags & CSUM_DELAY_IP) { in sfxge_tx_maybe_toggle_cksum_offload() 201 sfxge_tx_maybe_insert_tag(struct sfxge_txq *txq, struct mbuf *mbuf, in sfxge_tx_maybe_insert_tag() argument 204 uint16_t this_tag = ((mbuf->m_flags & M_VLANTAG) ? in sfxge_tx_maybe_insert_tag() 205 mbuf->m_pkthdr.ether_vtag : in sfxge_tx_maybe_insert_tag() 240 struct mbuf *m = stmp->u.mbuf; in sfxge_tx_qcomplete() 264 sfxge_is_mbuf_non_tcp(struct mbuf *mbuf) in sfxge_is_mbuf_non_tcp() argument 269 return (!(mbuf->m_pkthdr.csum_flags & (CSUM_IP_TCP | CSUM_IP6_TCP))); in sfxge_is_mbuf_non_tcp() [all …]
|
| /freebsd-12-stable/sys/netinet6/ |
| D | ip6_var.h | 137 struct mbuf *ip6po_m; /* Pointer to mbuf storing the data */ 347 void ip6_input(struct mbuf *); 348 void ip6_direct_input(struct mbuf *); 351 int ip6_unknown_opt(u_int8_t *, struct mbuf *, int); 352 int ip6_get_prevhdr(const struct mbuf *, int); 353 int ip6_nexthdr(const struct mbuf *, int, int, int *); 354 int ip6_lasthdr(const struct mbuf *, int, int, int *); 357 struct mbuf *); 359 int ip6_process_hopopts(struct mbuf *, u_int8_t *, int, u_int32_t *, 361 struct mbuf **ip6_savecontrol_v4(struct inpcb *, struct mbuf *, [all …]
|
| /freebsd-12-stable/sys/netinet/ |
| D | sctp_output.h | 46 struct mbuf * 50 struct mbuf *m_at, 80 struct sctp_nets *, struct mbuf *, 87 struct mbuf * 88 sctp_arethere_unrecognized_parameters(struct mbuf *, int, int *, 90 void sctp_queue_op_err(struct sctp_tcb *, struct mbuf *); 93 sctp_send_cookie_echo(struct mbuf *, int, int, struct sctp_tcb *, 99 sctp_send_heartbeat_ack(struct sctp_tcb *, struct mbuf *, int, int, 140 sctp_output(struct sctp_inpcb *, struct mbuf *, struct sockaddr *, 141 struct mbuf *, struct thread *, int); [all …]
|
| D | ip_var.h | 65 struct mbuf *ipq_frags; /* to ip headers of fragments */ 215 int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu, 217 void ip_forward(struct mbuf *m, int srcrt); 220 (*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *, 222 int ip_output(struct mbuf *, 223 struct mbuf *, struct route *, int, struct ip_moptions *, 227 struct mbuf * 228 ip_reass(struct mbuf *); 229 void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *, 230 struct mbuf *); [all …]
|
| D | sctputil.h | 51 struct mbuf *sctp_m_free(struct mbuf *m); 52 void sctp_m_freem(struct mbuf *m); 142 uint32_t sctp_calculate_len(struct mbuf *); 144 caddr_t sctp_m_getptr(struct mbuf *, int, int, uint8_t *); 147 sctp_get_next_param(struct mbuf *, int, 150 struct mbuf *sctp_add_pad_tombuf(struct mbuf *, int); 152 struct mbuf *sctp_pad_lastmbuf(struct mbuf *, int, struct mbuf *); 177 sctp_abort_association(struct sctp_inpcb *, struct sctp_tcb *, struct mbuf *, 179 struct sctphdr *, struct mbuf *, 187 struct mbuf *, int); [all …]
|
| D | ip_options.h | 55 int ip_checkrouteralert(struct mbuf *); 56 int ip_dooptions(struct mbuf *, int); 57 struct mbuf *ip_insertoptions(struct mbuf *, struct mbuf *, int *); 59 int ip_pcbopts(struct inpcb *, int, struct mbuf *); 60 void ip_stripoptions(struct mbuf *); 61 struct mbuf *ip_srcroute(struct mbuf *);
|
| /freebsd-12-stable/sys/netgraph/bluetooth/hci/ |
| D | ng_hci_cmds.c | 62 static int complete_command (ng_hci_unit_p, int, struct mbuf **); 65 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *); 67 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *); 69 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *); 71 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *); 73 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *); 75 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *); 77 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *); 80 (ng_hci_unit_p, ng_hci_command_status_ep *, struct mbuf *); 82 (ng_hci_unit_p, ng_hci_command_status_ep *, struct mbuf *); [all …]
|
| /freebsd-12-stable/sys/net/altq/ |
| D | altq_classq.h | 61 struct mbuf *tail_; /* Tail of packet queue */ 85 extern void _addq(class_queue_t *, struct mbuf *); 86 extern struct mbuf *_getq(class_queue_t *); 87 extern struct mbuf *_getq_tail(class_queue_t *); 88 extern struct mbuf *_getq_random(class_queue_t *); 89 extern void _removeq(class_queue_t *, struct mbuf *); 97 _addq(class_queue_t *q, struct mbuf *m) in _addq() 99 struct mbuf *m0; in _addq() 111 static __inline struct mbuf * 114 struct mbuf *m, *m0; in _getq() [all …]
|
| D | if_altq.h | 43 struct mbuf *ifq_head; 44 struct mbuf *ifq_tail; 50 struct mbuf *ifq_drv_head; 51 struct mbuf *ifq_drv_tail; 61 int (*altq_enqueue)(struct ifaltq *, struct mbuf *, 63 struct mbuf *(*altq_dequeue)(struct ifaltq *, int); 68 void *(*altq_classify)(void *, struct mbuf *, int); 170 int (*)(struct ifaltq *, struct mbuf *, 172 struct mbuf *(*)(struct ifaltq *, int), 175 void *(*)(void *, struct mbuf *, int)); [all …]
|
| /freebsd-12-stable/sys/dev/vnic/ |
| D | nicvf_queues.c | 104 static struct mbuf * nicvf_get_rcv_mbuf(struct nicvf *, struct cqe_rx_t *); 112 static int nicvf_tx_mbuf_locked(struct snd_queue *, struct mbuf **); 120 struct mbuf * mbuf; member 264 struct mbuf *mbuf; in nicvf_alloc_rcv_buffer() local 270 mbuf = m_getjcl(mflags, MT_DATA, M_PKTHDR, MCLBYTES); in nicvf_alloc_rcv_buffer() 271 if (mbuf == NULL) in nicvf_alloc_rcv_buffer() 278 mbuf->m_len = mbuf->m_pkthdr.len = buf_len; in nicvf_alloc_rcv_buffer() 280 err = bus_dmamap_load_mbuf_sg(rbdr->rbdr_buff_dmat, dmap, mbuf, segs, in nicvf_alloc_rcv_buffer() 286 m_freem(mbuf); in nicvf_alloc_rcv_buffer() 296 rinfo = (struct rbuf_info *)mbuf->m_data; in nicvf_alloc_rcv_buffer() [all …]
|
| /freebsd-12-stable/sys/net80211/ |
| D | ieee80211_superg.h | 63 struct mbuf *head; /* frames linked w/ m_nextpkt */ 64 struct mbuf *tail; /* last frame in queue */ 109 struct mbuf * ieee80211_amsdu_check(struct ieee80211_node *ni, struct mbuf *m); 110 struct mbuf *ieee80211_ff_check(struct ieee80211_node *, struct mbuf *); 142 struct mbuf *ieee80211_ff_encap(struct ieee80211vap *, struct mbuf *, 144 struct mbuf * ieee80211_amsdu_encap(struct ieee80211vap *vap, struct mbuf *m1, 147 struct mbuf *ieee80211_ff_decap(struct ieee80211_node *, struct mbuf *); 149 static __inline struct mbuf * 151 struct mbuf *m) in ieee80211_decap_fastframe()
|
| D | ieee80211_proto.h | 87 int ieee80211_input_all(struct ieee80211com *, struct mbuf *, int, int); 89 int ieee80211_input_mimo(struct ieee80211_node *, struct mbuf *); 90 int ieee80211_input_mimo_all(struct ieee80211com *, struct mbuf *); 93 int ieee80211_mgmt_output(struct ieee80211_node *, struct mbuf *, int, 95 int ieee80211_raw_xmit(struct ieee80211_node *, struct mbuf *, 97 int ieee80211_output(struct ifnet *, struct mbuf *, 99 int ieee80211_vap_pkt_send_dest(struct ieee80211vap *, struct mbuf *, 102 struct mbuf *, const struct ieee80211_bpf_params *); 103 void ieee80211_send_setup(struct ieee80211_node *, struct mbuf *, int, int, 106 int ieee80211_vap_transmit(struct ifnet *ifp, struct mbuf *m); [all …]
|
| /freebsd-12-stable/sys/xdr/ |
| D | xdr_mbuf.c | 67 xdrmbuf_create(XDR *xdrs, struct mbuf *m, enum xdr_op op) in xdrmbuf_create() 85 xdrmbuf_append(XDR *xdrs, struct mbuf *madd) in xdrmbuf_append() 87 struct mbuf *m; in xdrmbuf_append() 97 m = (struct mbuf *) xdrs->x_private; in xdrmbuf_append() 105 struct mbuf * 108 struct mbuf *m0, *m; in xdrmbuf_getall() 113 m0 = (struct mbuf *) xdrs->x_base; in xdrmbuf_getall() 114 m = (struct mbuf *) xdrs->x_private; in xdrmbuf_getall() 137 m_freem((struct mbuf *) xdrs->x_base); in xdrmbuf_destroy() 180 struct mbuf *m = (struct mbuf *) xdrs->x_private; in xdrmbuf_getbytes() [all …]
|
| /freebsd-12-stable/sys/netipsec/ |
| D | ipsec.h | 316 int ipsec_if_input(struct mbuf *, struct secasvar *, uint32_t); 320 struct secpolicy *ipsec4_checkpolicy(const struct mbuf *, struct inpcb *, 325 void udp_ipsec_adjust_cksum(struct mbuf *, struct secasvar *, int, int); 326 int udp_ipsec_output(struct mbuf *, struct secasvar *); 327 int udp_ipsec_input(struct mbuf *, int, int); 337 void ipsec4_setsockaddrs(const struct mbuf *, union sockaddr_union *, 339 int ipsec4_in_reject(const struct mbuf *, struct inpcb *); 340 int ipsec4_input(struct mbuf *, int, int); 341 int ipsec4_forward(struct mbuf *); 343 int ipsec4_output(struct mbuf *, struct inpcb *); [all …]
|
| D | ipsec_support.h | 34 struct mbuf; 48 int (*input)(struct mbuf *, int, int); 49 int (*check_policy)(const struct mbuf *, struct inpcb *); 50 int (*forward)(struct mbuf *); 51 int (*output)(struct mbuf *, struct inpcb *); 54 int (*capability)(struct mbuf *, u_int); 57 int (*udp_input)(struct mbuf *, int, int); 64 int (*input)(struct mbuf *, struct tcphdr *, u_char *); 65 int (*output)(struct mbuf *, struct tcphdr *, u_char *); 101 int tcpmd5_kmod_input(struct tcpmd5_support * const, struct mbuf *, [all …]
|
| D | ipsec6.h | 64 struct secpolicy *ipsec6_checkpolicy(const struct mbuf *, 67 void ipsec6_setsockaddrs(const struct mbuf *, union sockaddr_union *, 69 int ipsec6_input(struct mbuf *, int, int); 70 int ipsec6_in_reject(const struct mbuf *, struct inpcb *); 71 int ipsec6_forward(struct mbuf *); 73 int ipsec6_output(struct mbuf *, struct inpcb *); 74 int ipsec6_capability(struct mbuf *, u_int); 75 int ipsec6_common_input_cb(struct mbuf *, struct secasvar *, int, int); 76 int ipsec6_process_packet(struct mbuf *, struct secpolicy *, struct inpcb *); 78 int ip6_ipsec_filtertunnel(struct mbuf *);
|
| /freebsd-12-stable/sys/kern/ |
| D | uipc_mbuf.c | 145 CTASSERT(MSIZE - offsetof(struct mbuf, m_dat) == MLEN); 146 CTASSERT(MSIZE - offsetof(struct mbuf, m_pktdat) == MHLEN); 152 CTASSERT(offsetof(struct mbuf, m_dat) % 8 == 0); 153 CTASSERT(offsetof(struct mbuf, m_pktdat) % 8 == 0); 167 CTASSERT(offsetof(struct mbuf, m_dat) == 32); 171 CTASSERT(offsetof(struct mbuf, m_dat) == 24); 181 static struct mbuf __used m_assertbuf; 193 mb_dupcl(struct mbuf *n, struct mbuf *m) in mb_dupcl() 231 m_demote_pkthdr(struct mbuf *m) in m_demote_pkthdr() 247 m_demote(struct mbuf *m0, int all, int flags) in m_demote() [all …]
|
| /freebsd-12-stable/sys/dev/mlx5/mlx5_en/ |
| D | mlx5_en_tx.c | 61 sq->mbuf[pi].mbuf = NULL; in mlx5e_send_nop() 62 sq->mbuf[pi].num_bytes = 0; in mlx5e_send_nop() 63 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_send_nop() 64 sq->pc += sq->mbuf[pi].num_wqebbs; in mlx5e_send_nop() 81 mlx5e_select_queue_by_send_tag(struct ifnet *ifp, struct mbuf *mb) in mlx5e_select_queue_by_send_tag() 122 mlx5e_select_queue(struct ifnet *ifp, struct mbuf *mb) in mlx5e_select_queue() 172 mlx5e_get_l2_header_size(struct mlx5e_sq *sq, struct mbuf *mb) in mlx5e_get_l2_header_size() 226 mlx5e_get_full_header_size(const struct mbuf *mb) in mlx5e_get_full_header_size() 285 const struct mbuf *m_th = mb->m_next; in mlx5e_get_full_header_size() 307 mlx5e_sq_xmit(struct mlx5e_sq *sq, struct mbuf **mbp) in mlx5e_sq_xmit() [all …]
|