• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/cxgbe/

Lines Matching refs:mbuf

40 #include <sys/mbuf.h>
89 /* Internal mbuf flags stored in PH_loc.eight[1]. */
209 "Number of mbuf pullups performed");
213 "Number of mbuf defrags performed");
234 static struct mbuf *get_fl_payload(struct adapter *, struct sge_fl *, uint32_t);
287 static inline void get_pkt_gl(struct mbuf *, struct sglist *);
290 static inline void calculate_mbuf_len16(struct mbuf *, bool);
293 static u_int write_raw_wr(struct sge_txq *, void *, struct mbuf *, u_int);
294 static u_int write_txpkt_wr(struct adapter *, struct sge_txq *, struct mbuf *,
297 struct mbuf *);
298 static int add_to_txpkts_vf(struct adapter *, struct sge_txq *, struct mbuf *,
300 static int add_to_txpkts_pf(struct adapter *, struct sge_txq *, struct mbuf *,
304 static void write_gl_to_txd(struct sge_txq *, struct mbuf *, caddr_t *, int);
314 struct mbuf *);
316 struct mbuf *);
325 struct mbuf *);
384 struct mbuf *m)
411 struct mbuf *m)
424 struct mbuf *m)
437 struct mbuf *m)
452 fw4_ack_handler(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
1606 struct mbuf *m0;
1757 rxb_free(struct mbuf *m)
1766 * The mbuf returned comes from zone_muf and carries the payload in one of these
1768 * a) complete frame inside the mbuf
1772 static struct mbuf *
1776 struct mbuf *m;
1815 /* copy data to mbuf */
1848 static struct mbuf *
1851 struct mbuf *m0, *m, **pnext;
1961 struct mbuf *m0;
2088 * XXX: Need 32b for csum_data2 in an rx mbuf.
2308 mbuf_nsegs(struct mbuf *m)
2313 ("%s: mbuf %p missing information on # of segments.", __func__, m));
2319 set_mbuf_nsegs(struct mbuf *m, uint8_t nsegs)
2327 mbuf_cflags(struct mbuf *m)
2335 set_mbuf_cflags(struct mbuf *m, uint8_t flags)
2343 mbuf_len16(struct mbuf *m)
2356 set_mbuf_len16(struct mbuf *m, uint8_t len16)
2367 mbuf_eo_nsegs(struct mbuf *m)
2375 set_mbuf_eo_nsegs(struct mbuf *m, uint8_t nsegs)
2383 mbuf_eo_len16(struct mbuf *m)
2395 set_mbuf_eo_len16(struct mbuf *m, uint8_t len16)
2403 mbuf_eo_tsclk_tsoff(struct mbuf *m)
2411 set_mbuf_eo_tsclk_tsoff(struct mbuf *m, uint8_t tsclk_tsoff)
2427 * Try to allocate an mbuf to contain a raw work request. To make it
2429 * single mbuf.
2431 struct mbuf *
2434 struct mbuf *m;
2452 needs_hwcsum(struct mbuf *m)
2466 needs_tso(struct mbuf *m)
2477 needs_vxlan_csum(struct mbuf *m)
2486 needs_vxlan_tso(struct mbuf *m)
2498 needs_inner_tcp_csum(struct mbuf *m)
2508 needs_l3_csum(struct mbuf *m)
2519 needs_outer_tcp_csum(struct mbuf *m)
2531 needs_outer_l4_csum(struct mbuf *m)
2542 needs_outer_udp_csum(struct mbuf *m)
2553 needs_vlan_insertion(struct mbuf *m)
2562 m_advance(struct mbuf **pm, int *poffset, int len)
2564 struct mbuf *m = *pm;
2587 count_mbuf_ext_pgs(struct mbuf *m, int skip, vm_paddr_t *nextaddr)
2649 * must have at least one mbuf that's not empty. It is possible for this
2650 * routine to return 0 if skip accounts for all the contents of the mbuf chain.
2653 count_mbuf_nsegs(struct mbuf *m, int skip, uint8_t *cflags)
2696 max_nsegs_allowed(struct mbuf *m, bool vm_wr)
2719 * Analyze the mbuf to determine its tx needs. The mbuf passed in may change:
2724 parse_pkt(struct mbuf **mp, bool vm_wr)
2726 struct mbuf *m0 = *mp, *m;
2751 * Defrag the mbuf if nsegs exceeds the hardware limit.
3112 cannot_use_txpkts(struct mbuf *m)
3197 struct mbuf *m0;
4637 * fit within a single mbuf each.
4774 get_pkt_gl(struct mbuf *m, struct sglist *gl)
4783 panic("%s: mbuf %p (%d segs) was vetted earlier but now fails "
4788 ("%s: nsegs changed for mbuf %p from %d to %d", __func__, m,
4835 calculate_mbuf_len16(struct mbuf *m, bool vm_wr)
4902 csum_to_ctrl(struct adapter *sc, struct mbuf *m)
4975 write_lso_cpl(void *cpl, struct mbuf *m0)
4982 ("%s: mbuf %p needs TSO but missing header lengths",
5004 write_tnl_lso_cpl(void *cpl, struct mbuf *m0)
5012 ("%s: mbuf %p needs VXLAN_TSO but missing inner header lengths",
5016 ("%s: mbuf %p needs VXLAN_TSO but missing outer header lengths",
5071 write_txpkt_vm_wr(struct adapter *sc, struct sge_txq *txq, struct mbuf *m0)
5170 write_raw_wr(struct sge_txq *txq, void *wr, struct mbuf *m0, u_int available)
5174 struct mbuf *m;
5203 write_txpkt_wr(struct adapter *sc, struct sge_txq *txq, struct mbuf *m0,
5291 struct mbuf *m;
5315 cmp_l2hdr(struct txpkts *txp, struct mbuf *m)
5331 save_l2hdr(struct txpkts *txp, struct mbuf *m)
5339 add_to_txpkts_vf(struct adapter *sc, struct sge_txq *txq, struct mbuf *m,
5391 add_to_txpkts_pf(struct adapter *sc, struct sge_txq *txq, struct mbuf *m,
5477 struct mbuf *m, *last;
5588 struct mbuf *m, *last;
5608 * At this point we are 32B into a hardware descriptor. Each mbuf in
5663 write_gl_to_txd(struct sge_txq *txq, struct mbuf *m, caddr_t *to, int checkwrap)
5860 struct mbuf *m, *nextpkt;
6000 struct mbuf *m)
6025 handle_fw_msg(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
6253 struct mbuf *m0, int compl)
6269 ("%s: ethofld mbuf %p is missing header lengths", __func__, m0));
6406 struct mbuf *m;
6416 /* How many len16 credits do we need to send this mbuf. */
6447 * Drop the mbuf's reference on the tag now rather
6452 * pending requests. Otherwise if the last mbuf
6465 ethofld_transmit(struct ifnet *ifp, struct mbuf *m0)
6509 * ethofld_tx() in case we are sending the final mbuf after
6526 ethofld_fw4_ack(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m0)
6530 struct mbuf *m;