Home
last modified time | relevance | path

Searched +full:tx +full:- +full:m (Results 1 – 25 of 621) sorted by relevance

12345678910>>...25

/freebsd/sys/dev/mlx5/mlx5_en/
H A Den_rl.h1 /*-
50 #define MLX5E_RL_WORKER_LOCK(rlw) mtx_lock(&(rlw)->mtx)
51 #define MLX5E_RL_WORKER_UNLOCK(rlw) mtx_unlock(&(rlw)->mtx)
53 #define MLX5E_RL_RLOCK(rl) sx_slock(&(rl)->rl_sxlock)
54 #define MLX5E_RL_RUNLOCK(rl) sx_sunlock(&(rl)->rl_sxlock)
56 #define MLX5E_RL_WLOCK(rl) sx_xlock(&(rl)->rl_sxlock)
57 #define MLX5E_RL_WUNLOCK(rl) sx_xunlock(&(rl)->rl_sxlock)
59 #define MLX5E_RL_PARAMS(m) \ argument
60 m(+1, u64, tx_queue_size, "tx_queue_size", "Default send queue size") \
61 m(+1, u64, tx_coalesce_usecs, "tx_coalesce_usecs", "Limit in usec for joining TX packets") \
[all …]
/freebsd/sys/dev/eqos/
H A Dif_eqos.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
29 * $Id: eqos.c 1059 2022-12-08 19:32:32Z sos $
33 * DesignWare Ethernet Quality-of-Service controller
84 #define TX_QUEUED(h, t) ((((h) - (t)) + TX_DESC_COUNT) % TX_DESC_COUNT)
93 #define EQOS_LOCK(sc) mtx_lock(&(sc)->lock)
94 #define EQOS_UNLOCK(sc) mtx_unlock(&(sc)->lock)
95 #define EQOS_ASSERT_LOCKED(sc) mtx_assert(&(sc)->lock, MA_OWNED)
97 #define RD4(sc, o) bus_read_4(sc->res[EQOS_RES_MEM], (o))
98 #define WR4(sc, o, v) bus_write_4(sc->res[EQOS_RES_MEM], (o), (v))
[all …]
/freebsd/share/man/man4/
H A Dxl.415 .\" 4. Neither the name of the author nor the names of any co-contributors
41 .Bd -ragged -offset indent
49 .Bd -literal -offset indent
57 and "tornado" bus-master Etherlink XL chips.
59 The Etherlink XL chips support built-in 10baseT, 10base2 and 10base5
63 NS 83840A 10/100 PHY for 10/100 Mbps support in full or half-duplex.
64 The 3c905B adapters have built-in autonegotiation logic mapped onto
67 adapters such as the 3c905-TX and 3c905B-TX are capable of 10 or
75 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx
80 external PHYs or built-in autonegotiation logic.
[all …]
/freebsd/sys/dev/mxge/
H A Dif_mxge.c2 SPDX-License-Identifier: BSD-2-Clause
4 Copyright (c) 2006-2013, Myricom Inc.
161 device_set_desc(dev, "Myri10G-PCIE-8A"); in mxge_probe()
164 device_set_desc(dev, "Myri10G-PCIE-8B"); in mxge_probe()
167 device_set_desc(dev, "Myri10G-PCIE-8??"); in mxge_probe()
184 sc->wc = 1; in mxge_enable_wc()
185 len = rman_get_size(sc->mem_res); in mxge_enable_wc()
186 err = pmap_change_attr((vm_offset_t) sc->sram, in mxge_enable_wc()
189 device_printf(sc->dev, "pmap_change_attr failed, %d\n", in mxge_enable_wc()
191 sc->wc = 0; in mxge_enable_wc()
[all …]
/freebsd/sys/dev/neta/
H A Dif_mvneta.c111 /* Rx/Tx Queue Control */
159 /* Tx Subroutines */
191 #define mvneta_sc_lock(sc) mtx_lock(&sc->mtx)
192 #define mvneta_sc_unlock(sc) mtx_unlock(&sc->mtx)
284 "rx_frame_1_64", "Frame Size 1 - 64"},
286 "rx_frame_65_127", "Frame Size 65 - 127"},
288 "rx_frame_128_255", "Frame Size 128 - 255"},
290 "rx_frame_256_511", "Frame Size 256 - 511"},
292 "rx_frame_512_1023", "Frame Size 512 - 1023"},
294 "rx_fame_1024_max", "Frame Size 1024 - Max"},
[all …]
/freebsd/sys/arm/allwinner/
H A Dif_awg.c1 /*-
71 #define RD4(sc, reg) bus_read_4((sc)->res[_RES_EMAC], (reg))
72 #define WR4(sc, reg, val) bus_write_4((sc)->res[_RES_EMAC], (reg), (val))
74 #define AWG_LOCK(sc) mtx_lock(&(sc)->mtx)
75 #define AWG_UNLOCK(sc) mtx_unlock(&(sc)->mtx);
76 #define AWG_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
77 #define AWG_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
86 #define TX_NEXT(n) (((n) + 1) & (TX_DESC_COUNT - 1))
87 #define TX_SKIP(n, o) (((n) + (o)) & (TX_DESC_COUNT - 1))
88 #define RX_NEXT(n) (((n) + 1) & (RX_DESC_COUNT - 1))
[all …]
/freebsd/sys/contrib/device-tree/Bindings/sound/
H A Drockchip,i2s-tdm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/rockchip,i2s-tdm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
15 - Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
18 - $ref: dai-common.yaml#
23 - rockchip,px30-i2s-tdm
24 - rockchip,rk1808-i2s-tdm
25 - rockchip,rk3308-i2s-tdm
26 - rockchip,rk3568-i2s-tdm
[all …]
/freebsd/sys/dev/vte/
H A Dif_vte.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
177 for (i = VTE_PHY_TIMEOUT; i > 0; i--) { in vte_miibus_readreg()
184 device_printf(sc->vte_dev, "phy read timeout : %d\n", reg); in vte_miibus_readreg()
202 for (i = VTE_PHY_TIMEOUT; i > 0; i--) { in vte_miibus_writereg()
209 device_printf(sc->vte_dev, "phy write timeout : %d\n", reg); in vte_miibus_writereg()
224 mii = device_get_softc(sc->vte_miibus); in vte_miibus_statchg()
225 ifp = sc->vte_ifp; in vte_miibus_statchg()
229 sc->vte_flags &= ~VTE_FLAG_LINK; in vte_miibus_statchg()
230 if ((mii->mii_media_status & (IFM_ACTIVE | IFM_AVALID)) == in vte_miibus_statchg()
[all …]
/freebsd/sys/dev/cxgb/
H A Dcxgb_sge.c2 SPDX-License-Identifier: BSD-2-Clause
4 Copyright (c) 2007-2009, Chelsio Inc.
88 "size of per-queue mbuf ring");
96 #define COALESCE_START_MAX (TX_ETH_Q_SIZE-(TX_ETH_Q_SIZE>>3))
115 "tx cleaning minimum threshold");
118 * XXX don't re-enable this until TOE stops assuming
135 * Period of the Tx buffer reclaim timer. This timer does not need to run
136 * frequently as Tx buffers are usually reclaimed by new Tx packets.
177 struct tx_sw_desc { /* SW state per Tx descriptor */
178 struct mbuf *m; member
[all …]
/freebsd/sys/dev/rtwn/pci/
H A Drtwn_pci_tx.c3 /*-
61 struct mbuf *m = NULL; in rtwn_mbuf_defrag() local
63 KASSERT(m0->m_flags & M_PKTHDR, in rtwn_mbuf_defrag()
64 ("M_PKTHDR flag is absent (m %p)!", m0)); in rtwn_mbuf_defrag()
67 if (m0->m_pkthdr.len > MJUMPAGESIZE) { in rtwn_mbuf_defrag()
70 } else if (m0->m_pkthdr.len > MCLBYTES) { in rtwn_mbuf_defrag()
71 m = m_getjcl(how, MT_DATA, M_PKTHDR, MJUMPAGESIZE); in rtwn_mbuf_defrag()
72 if (m == NULL) in rtwn_mbuf_defrag()
75 if (m_dup_pkthdr(m, m0, how) == 0) { in rtwn_mbuf_defrag()
76 m_freem(m); in rtwn_mbuf_defrag()
[all …]
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_cm.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
52 "Max number of connected-mode QPs per interface "
95 struct mbuf *m; in ipoib_cm_post_receive_srq() local
99 rx_req = (struct ipoib_rx_buf *)&priv->cm.srq_ring[id]; in ipoib_cm_post_receive_srq()
100 for (m = rx_req->mb, i = 0; m != NULL; m = m->m_next, i++) { in ipoib_cm_post_receive_srq()
101 priv->cm.rx_sge[i].addr = rx_req->mapping[i]; in ipoib_cm_post_receive_srq()
102 priv->cm.rx_sge[i].length = m->m_len; in ipoib_cm_post_receive_srq()
[all …]
/freebsd/sys/dev/dpaa/
H A Dif_dtsec_rm.c1 /*-
104 if (sc->sc_fi_zone != NULL) in dtsec_rm_fi_pool_free()
105 uma_zdestroy(sc->sc_fi_zone); in dtsec_rm_fi_pool_free()
112 snprintf(sc->sc_fi_zname, sizeof(sc->sc_fi_zname), "%s: Frame Info", in dtsec_rm_fi_pool_init()
113 device_get_nameunit(sc->sc_dev)); in dtsec_rm_fi_pool_init()
115 sc->sc_fi_zone = uma_zcreate(sc->sc_fi_zname, in dtsec_rm_fi_pool_init()
127 fi = uma_zalloc(sc->sc_fi_zone, M_NOWAIT); in dtsec_rm_fi_alloc()
136 uma_zfree(sc->sc_fi_zon in dtsec_rm_fi_free()
339 dtsec_rm_fqr_mext_free(struct mbuf * m) dtsec_rm_fqr_mext_free() argument
357 struct mbuf *m; dtsec_rm_fqr_rx_callback() local
545 struct mbuf *m0, *m; dtsec_rm_if_start_locked() local
[all...]
/freebsd/sys/net80211/
H A Dieee80211_freebsd.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2008 Sam Leffler, Errno Consulting
64 ieee80211_com_lock_t *cl = &(_ic)->ic_comlock; \
65 snprintf(cl->name, sizeof(cl->name), "%s_com_lock", _name); \
66 mtx_init(&cl->mtx, cl->name, NULL, MTX_DEF | MTX_RECURSE); \
68 #define IEEE80211_LOCK_OBJ(_ic) (&(_ic)->ic_comlock.mtx)
90 ieee80211_tx_lock_t *cl = &(_ic)->ic_txlock; \
91 snprintf(cl->name, sizeof(cl->name), "%s_tx_lock", _name); \
92 mtx_init(&cl->mtx, cl->name, NULL, MTX_DEF); \
[all …]
H A Dieee80211_freebsd.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2009 Sam Leffler, Errno Consulting
30 * IEEE 802.11 support (FreeBSD-specific code)
137 if ((ic->ic_caps & ieee80211_opcap[cp.icp_opmode]) == 0) { in wlan_clone_create()
144 (ic->ic_caps & IEEE80211_C_TDMA) == 0 in wlan_clone_create()
152 vap = ic->ic_vap_create(ic, wlanname, ifd->unit, in wlan_clone_create()
155 cp.icp_macaddr : ic->ic_macaddr); in wlan_clone_create()
161 if (ic->ic_debugnet_meth != NULL) in wlan_clone_create()
162 DEBUGNET_SET(vap->iv_ifp, ieee80211); in wlan_clone_create()
[all …]
/freebsd/sys/dev/rtwn/rtl8192c/
H A Dr92c_chan.c3 /*-
62 if (sc->sc_debug & RTWN_DEBUG_TXPWR) { in r92c_dump_txpower()
67 "TX [%d]: CCK: 1M: %d 2M: %d 5.5M: %d 11M: %d\n", in r92c_dump_txpower()
75 "TX [%d]: OFDM: 6M: %d 9M: %d 12M: %d 18M: %d 24M: %d " in r92c_dump_txpower()
76 "36M: %d 48M: %d 54M: %d\n", in r92c_dump_txpower()
87 for (i = 0; i < sc->ntxchains; i++) { in r92c_dump_txpower()
89 "TX [%d]: MCS%d-%d: %d %d %d %d %d %d %d %d\n", in r92c_dump_txpower()
119 return (-1); in r92c_get_power_group()
122 KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags)); in r92c_get_power_group()
123 return (-1); in r92c_get_power_group()
[all …]
/freebsd/sys/dev/ale/
H A Dif_ale.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
78 /* For more information about Tx checksum offload issues see ale_encap(). */
182 { -1, 0, 0 }
187 { -1, 0, 0 }
192 { -1, 0, 0 }
197 { -1, 0, 0 }
211 for (i = ALE_PHY_TIMEOUT; i > 0; i--) { in ale_miibus_readreg()
219 device_printf(sc->ale_dev, "phy read timeout : %d\n", reg); in ale_miibus_readreg()
238 for (i = ALE_PHY_TIMEOUT; i > 0; i--) { in ale_miibus_writereg()
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_debug.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
47 ATH_DEBUG_TX_PROC = 0x000002000ULL, /* tx ISR proc */
60 ATH_DEBUG_SW_TX = 0x004000000ULL, /* per-packet software TX */
63 ATH_DEBUG_SW_TX_AGGR = 0x020000000ULL, /* aggregate TX */
64 ATH_DEBUG_SW_TX_RETRIES = 0x040000000ULL, /* software TX retries */
66 ATH_DEBUG_SW_TX_BAR = 0x100000000ULL, /* BAR TX */
68 ATH_DEBUG_SW_TX_FILT = 0x400000000ULL, /* SW TX FF */
90 if (sc->sc_ktrdebug & (_km)) \
[all …]
/freebsd/sys/dev/ntb/if_ntb/
H A Dif_ntb.c1 /*-
30 * The Non-Transparent Bridge (NTB) is a device that allows you to connect
31 * two or more systems using a PCI-e links, providing remote memory access.
109 static int ntb_transmit(if_t ifp, struct mbuf *m);
138 ifp = sc->ifp = if_gethandle(IFT_ETHER); in ntb_net_attach()
142 sc->num_queues = min(g_if_ntb_num_queues, in ntb_net_attach()
144 sc->queues = malloc(sc->num_queues * sizeof(struct ntb_net_queue), in ntb_net_attach()
146 sc->mtu = INT_MAX; in ntb_net_attach()
147 for (i = 0; i < sc->num_queues; i++) { in ntb_net_attach()
148 q = &sc->queues[i]; in ntb_net_attach()
[all …]
/freebsd/sys/dev/netmap/
H A Dnetmap_kern.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2011-2014 Matteo Landi, Luigi Rizzo
5 * Copyright (C) 2013-2016 Universita` di Pisa
92 #define NM_MTX_T struct sx /* OS-specific mutex (sleepable) */
93 #define NM_MTX_INIT(m) sx_init(&(m), #m) argument
94 #define NM_MTX_DESTROY(m) sx_destroy(&(m)) argument
95 #define NM_MTX_LOCK(m) sx_xlock(&(m)) argument
96 #define NM_MTX_SPINLOCK(m) while (!sx_try_xlock(&(m))) ; argument
97 #define NM_MTX_UNLOCK(m) sx_xunlock(&(m)) argument
[all …]
H A Dnetmap_generic.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2013-2016 Vincenzo Maffione
5 * Copyright (C) 2013-2016 Luigi Rizzo
35 * have native support. TX and RX rings are emulated as follows:
38 * We preallocate a block of TX mbufs (roughly as many as
39 * tx descriptors; the number is not critical) to speed up
52 * TX:
86 #define MBUF_RXQ(m) ((m)->m_pkthdr.flowid) argument
93 #define MBUF_TXQ(m) 0//((m)->m_pkthdr.flowid) argument
[all …]
/freebsd/sys/dev/wpi/
H A Dif_wpi.c1 /*-
31 * There is 6 memory rings. 1 command ring, 1 rx data ring & 4 tx data rings.
32 * The 4 tx data rings allow for prioritization QoS.
42 * A similar thing happens with the tx rings. The difference is the firmware
46 * The command ring operates in the same manner as the tx queues.
317 for (ident = wpi_ident_table; ident->name != NULL; ident++) { in wpi_probe()
318 if (pci_get_vendor(dev) == ident->vendor && in wpi_probe()
319 pci_get_device(dev) == ident->device) { in wpi_probe()
320 device_set_desc(dev, ident->name); in wpi_probe()
339 sc->sc_dev = dev; in wpi_attach()
[all …]
/freebsd/sys/dev/dwc/
H A Ddwc1000_dma.c1 /*-
5 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
65 /* TX descriptors - TDESC0 is almost unified */
82 /* TX descriptors - TDESC0 extended format only */
95 /* TX descriptors - TDESC1 normal format */
106 /* TX descriptors - TDESC1 extended format */
113 /* RX descriptor - RDESC0 is unified */
136 /* RX descriptors - RDESC1 normal format */
145 /* RX descriptors - RDESC1 enhanced format */
187 sc->tx_desccount--; in txdesc_clear()
[all …]
/freebsd/sys/dev/ice/
H A Dice_iflib_txrx.c1 /* SPDX-License-Identifier: BSD-3-Clause */
34 * @brief iflib Tx/Rx hotpath
36 * Main location for the iflib Tx/Rx hotpath implementation.
44 /* Tx/Rx hotpath utility functions */
69 static qidx_t ice_ift_queue_select(void *arg, struct mbuf *m, if_pkt_info_t pi);
82 (((struct ice_32b_rx_flex_desc_nic *)desc)->field)
86 * @brief Tx/R
410 ice_ift_queue_select(void * arg,struct mbuf * m,if_pkt_info_t pi) ice_ift_queue_select() argument
[all...]
/freebsd/sys/dev/nge/
H A Dif_nge.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
19 * 4. Neither the name of the author nor the names of any co-contributors
45 * sold by D-Link, Addtron, SMC and Asante. Both parts are
46 * virtually the same, except the 83820 is a 64-bit/32-bit part,
47 * while the 83821 is 32-bit only.
64 * ports. Other features include 8K TX FIFO and 32K RX FIFO, TCP/IP
66 * priority TX and RX queues, a 2048 bit multicast hash filter, 4 RX pattern
68 * moderation. The 83820 supports both 64-bit and 32-bit addressing
69 * and data transfers: the 64-bit support can be toggled on or off
[all …]
/freebsd/sys/dev/vr/
H A Dif_vr.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
18 * 4. Neither the name of the author nor the names of any co-contributors
40 * and Rhine II PCI controllers, including the D-Link DFE530TX.
52 * receiver has a one entry perfect filter and a 64-bit hash table
107 /* Define to show Rx/Tx error status. */
257 device_printf(sc->vr_dev, "phy read timeout %d:%d\n", phy, reg); in vr_miibus_readreg()
281 device_printf(sc->vr_dev, "phy write timeout %d:%d\n", phy, in vr_miibus_writereg()
289 * 'full-duplex' and '100Mbps' bits in the netconfig register, we
302 mii = device_get_softc(sc->vr_miibus); in vr_miibus_statchg()
[all …]

12345678910>>...25