/freebsd/sys/contrib/device-tree/Bindings/net/ |
H A D | engleder,tsnep.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- [all...] |
/freebsd/sys/contrib/device-tree/Bindings/bus/ |
H A D | ts-nbus.txt | 4 Systems FPGA on the TS-4600 SoM. 7 - compatible : "technologic,ts-nbus" 8 - #address-cells : must be 1 9 - #size-cells : must be 0 10 - pwms : The PWM bound to the FPGA 11 - ts,data-gpios : The 8 GPIO pins connected to the data lines on the FPGA 12 - ts,csn-gpios : The GPIO pin connected to the csn line on the FPGA 13 - ts,txrx-gpios : The GPIO pin connected to the txrx line on the FPGA 14 - ts,strobe-gpios : The GPIO pin connected to the stobe line on the FPGA 15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA [all …]
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_kern.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (C) 2011-2014 Matteo Landi, Luigi Rizzo 5 * Copyright (C) 2013-2016 Universita` di Pisa 13 * 2. Redistributions in binary form must reproduce the above copyright 92 #define NM_MTX_T struct sx /* OS-specific mutex (sleepable) */ 102 #define MBUF_LEN(m) ((m)->m_pkthdr.len) 103 #define MBUF_TXQ(m) ((m)->m_pkthdr.flowid) 104 #define MBUF_TRANSMIT(na, ifp, m) ((na)->if_transmit(ifp, m)) 105 #define GEN_TX_MBUF_IFP(m) ((m)->m_pkthdr.rcvif) [all …]
|
H A D | netmap_monitor.c | 2 * Copyright (C) 2014-2016 Giuseppe Lettieri 10 * 2. Redistributions in binary form must reproduce the above copyright 48 * Monitors can be either zero-copy or copy-based. 52 * - For tx traffic, this is when the application sends them, before they are 55 * - For rx traffic, this is when they are received by the adapter, before 60 * Zero-copy monitors only see the frames after they have been consumed: 62 * - For tx traffic, this is after the slots containing the frames have been 66 * - For rx traffic, this is after the consumer on the monitored adapter 70 * Several copy or zero-copy monitors may be active on any ring. 134 return na->nm_register == netmap_zmon_reg; in nm_is_zmon() [all …]
|
H A D | netmap_bdg.c | 2 * Copyright (C) 2013-2016 Universita` di Pisa 10 * 2. Redistributions in binary form must reproduce the above copyright 31 --- VALE SWITCH --- 44 On the rx ring, the per-port lock is grabbed initially to reserve 54 * OS-specific code that is used only within this file. 55 * Other OS-specific code that must be accessed by drivers 114 struct nm_bridge *b = vp->na_bdg; in netmap_bdg_name() 117 return b->bdg_basename; in netmap_bdg_name() 145 int colon_pos = -1; in nm_bdg_name_validate() 149 return -1; in nm_bdg_name_validate() [all …]
|
H A D | netmap.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (C) 2011-2014 Matteo Landi 5 * Copyright (C) 2011-2016 Luigi Rizzo 6 * Copyright (C) 2011-2016 Giuseppe Lettieri 7 * Copyright (C) 2011-2016 Vincenzo Maffione 15 * 2. Redistributions in binary form must reproduce the above copyright 41 * i.e. user-accessible copies of the interface's queues. 46 * 2. on each descriptor, the process issues an ioctl() to identify 77 - a spinlock on each ring, to handle producer/consumer races on [all …]
|
H A D | netmap_pipe.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (C) 2014-2018 Giuseppe Lettieri 12 * 2. Redistributions in binary form must reproduce the above copyright 95 if (npipes <= na->na_max_pipes) in nm_pipe_alloc() 99 if (npipes < na->na_next_pipe || npipes > NM_MAXPIPES) in nm_pipe_alloc() 102 old_len = sizeof(struct netmap_pipe_adapter *)*na->na_max_pipes; in nm_pipe_alloc() 104 npa = nm_os_realloc(na->na_pipes, len, old_len); in nm_pipe_alloc() 108 na->na_pipes = npa; in nm_pipe_alloc() 109 na->na_max_pipes = npipes; in nm_pipe_alloc() [all …]
|
H A D | netmap_mem2.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (C) 2012-2014 Matteo Landi 5 * Copyright (C) 2012-2016 Luigi Rizzo 6 * Copyright (C) 2012-2016 Giuseppe Lettieri 14 * 2. Redistributions in binary form must reproduce the above copyright 73 #define NETMAP_BUF_MAX_NUM 20*4096*2 /* large machine */ 98 /* ---------------------------------------------------*/ 113 /* ---------------------------------------------------*/ 134 #define NMA_LOCK_INIT(n) NM_MTX_INIT((n)->nm_mtx) [all …]
|
/freebsd/tools/tools/ath/athprom/ |
H A D | eeprom-5 | 10 |-------------------------------------------------------------| 14 | Turbo 2W Maximum dBm $turbo2WMaxPower5 | cckOfdmDelta(10x) $cckOfdmDelta | GainI $gainI | 15 |-------------------------------------------------------------| 23 | txrx Attenuation $txrxAtten | Capabilities $capField | 24 | Turbo txrx Attenuat $txrxAttenTurbo | Turbo Switch Settling $switchSettlingTurbo | 28 | Antenna control 2 $antennaControl2 | Antenna control 3 $antennaControl3 | 33 |-------------------------------------------------------------| 53 .forpdgain 2 63 | 6-24 | $pwr6_24_0 | $pwr6_24_1 | $pwr6_24_2 | $pwr6_24_3 | 70 | 6-24 | $pwr6_24_4 | $pwr6_24_5 | $pwr6_24_6 | $pwr6_24_7 | [all …]
|
H A D | eeprom-3 | 7 |-------------------------------------------------------------| 11 | Turbo 2W Maximum dBm $turbo2WMaxPower5 | cckOfdmDelta(10x) $cckOfdmDelta | GainI $gainI | 12 |-------------------------------------------------------------| 19 | txrx Attenuation $txrxAtten | Capabilities $capField | 21 | Antenna control 2 $antennaControl2 | Antenna control 3 $antennaControl3 | 26 |-------------------------------------------------------------| 56 …| 6-24 | $pwr6_24_0 | $pwr6_24_1 | $pwr6_24_2 | $pwr6_24_3 … 63 …| 6-24 | $pwr6_24_4 | $pwr6_24_5 | $pwr6_24_6 | $pwr6_24_7 … 73 |-------------------------------------------------------------| 77 | Turbo 2W Maximum dBm $turbo2WMaxPower5 | cckOfdmDelta(10x) $cckOfdmDelta | GainI $gainI | [all …]
|
H A D | eeprom-4 | 9 |-------------------------------------------------------------| 13 | Turbo 2W Maximum dBm $turbo2WMaxPower5 | cckOfdmDelta(10x) $cckOfdmDelta | GainI $gainI | 14 |-------------------------------------------------------------| 22 | txrx Attenuation $txrxAtten | Capabilities $capField | 24 | Antenna control 2 $antennaControl2 | Antenna control 3 $antennaControl3 | 29 |-------------------------------------------------------------| 50 …| 6-24 | $pwr6_24_0 | $pwr6_24_1 | $pwr6_24_2 | $pwr6_24_3 … 57 …| 6-24 | $pwr6_24_4 | $pwr6_24_5 | $pwr6_24_6 | $pwr6_24_7 … 82 |-------------------------------------------------------------| 86 | Turbo 2W Maximum dBm $turbo2WMaxPower5 | cckOfdmDelta(10x) $cckOfdmDelta | GainI $gainI | [all …]
|
/freebsd/sys/dev/ice/ |
H A D | ice_iflib_recovery_txrx.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 11 * 2. Redistributions in binary form must reproduce the above copyright 45 * iflib txrx methods used when in recovery mode 59 * Similar to ice_txrx, but contains pointers to functions which are no-ops. 74 * ice_recovery_txd_encap - prepare Tx descriptors for a packet 90 * ice_recovery_txd_flush - Flush Tx descriptors to hardware 106 * ice_recovery_txd_credits_update - cleanu [all...] |
H A D | ice_iflib_txrx.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 11 * 2. Redistributions in binary form must reproduce the above copyright 60 * iflib txrx method declarations 82 (((struct ice_32b_rx_flex_desc_nic *)desc)->field) 123 * _ice_ift_txd_encap - prepare Tx descriptors for a packet in ice_ift_txd_encap() 132 * Return 0 on success, non-zero error code on failure. in ice_ift_txd_encap() 137 int nsegs = pi->ipi_nseg in ice_ift_txd_encap() [all...] |
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | fwlog.c | 24 #define FW_DBGLOG_TIMESTAMP_MASK 0xFFFFFFFF /* Bit 0-15. Contains bit 25 8-23 of the LF0 timer */ 27 #define FW_DBGLOG_DBGID_MASK 0x000003FF /* Bit 0-9 */ 31 #define FW_DBGLOG_MODULEID_MASK 0x0003FC00 /* Bit 10-17 */ 35 #define FW_DBGLOG_VAPID_MASK 0x03FC0000 /* Bit 20-25*/ 39 #define FW_DBGLOG_NUM_ARGS_MASK 0xFC000000 /* Bit 26-31 */ 538 "" /* Mgmt TxRx */ 540 { "" /* Data TxRx */ 1426 if ((ar->wmi.op_version == in ath10k_fwlog_print() 1428 if ((ar->running_fw->fw_file.wmi_op_version == in ath10k_fwlog_print() [all …]
|
H A D | debugfs_sta.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 8 #include "wmi-ops.h" 9 #include "txrx.h" 17 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_1]++; in ath10k_rx_stats_update_amsdu_subfrm() 18 else if (msdu_count == 2) in ath10k_rx_stats_update_amsdu_subfrm() 19 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_2]++; in ath10k_rx_stats_update_amsdu_subfrm() 21 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_3]++; in ath10k_rx_stats_update_amsdu_subfrm() 23 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_4]++; in ath10k_rx_stats_update_amsdu_subfrm() 25 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_MORE]++; in ath10k_rx_stats_update_amsdu_subfrm() [all …]
|
H A D | htt_tx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 11 #include "txrx.h" 40 struct ath10k *ar = hw->priv; in __ath10k_htt_tx_txq_recalc() 42 struct ath10k_vif *arvif = (void *)txq->vif->drv_priv; in __ath10k_htt_tx_txq_recalc() 51 lockdep_assert_held(&ar->htt.tx_lock); in __ath10k_htt_tx_txq_recalc() 53 if (!ar->htt.tx_q_state.enabled) in __ath10k_htt_tx_txq_recalc() 56 if (ar->htt.tx_q_state.mode != HTT_TX_MODE_SWITCH_PUSH_PULL) in __ath10k_htt_tx_txq_recalc() 59 if (txq->sta) { in __ath10k_htt_tx_txq_recalc() [all …]
|
H A D | htt_rx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 11 #include "txrx.h" 34 hash_for_each_possible(ar->htt.rx_ring.skb_table, rxcb, hlist, paddr) in ath10k_htt_rx_find_skb_paddr() 35 if (rxcb->paddr == paddr) in ath10k_htt_rx_find_skb_paddr() 49 if (htt->rx_ring.in_ord_rx) { in ath10k_htt_rx_ring_free() 50 hash_for_each_safe(htt->rx_ring.skb_table, i, n, rxcb, hlist) { in ath10k_htt_rx_ring_free() 52 dma_unmap_single(htt->ar->dev, rxcb->paddr, in ath10k_htt_rx_ring_free() 53 skb->len + skb_tailroom(skb), in ath10k_htt_rx_ring_free() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | sdio.c | 1 // SPDX-License-Identifier: ISC 34 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7663s_txrx_worker() 35 queue_work(mdev->wq, &dev->pm.wake_work); in mt7663s_txrx_worker() 39 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7663s_txrx_worker() 55 struct mt76_sdio *sdio = &dev->sdio; in mt7663s_parse_intr() 56 struct mt7663s_intr *irq_data = sdio->intr_data; in mt7663s_parse_intr() 59 sdio_claim_host(sdio->func); in mt7663s_parse_intr() 60 err = sdio_readsb(sdio->func, irq_data, MCR_WHISR, sizeof(*irq_data)); in mt7663s_parse_intr() 61 sdio_release_host(sdio->func); in mt7663s_parse_intr() 66 intr->isr = irq_data->isr; in mt7663s_parse_intr() [all …]
|
/freebsd/sys/dev/ena/ |
H A D | ena_netmap.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2015-2024 Amazon.com, Inc. or its affiliates. 14 * 2. Redistributions in binary form must reproduce the above copyright 86 ena_log_nm(adapter->pdev, INFO, "netmap attach\n"); in ena_netmap_attach() 90 na.ifp = adapter->ifp; in ena_netmap_attach() 91 na.num_tx_desc = adapter->requested_tx_ring_size; in ena_netmap_attach() 92 na.num_rx_desc = adapter->requested_rx_ring_size; in ena_netmap_attach() 93 na.num_tx_rings = adapter->num_io_queues; in ena_netmap_attach() 94 na.num_rx_rings = adapter->num_io_queues; in ena_netmap_attach() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | sdio.c | 1 // SPDX-License-Identifier: ISC 32 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7921s_txrx_worker() 33 queue_work(mdev->wq, &dev->pm.wake_work); in mt7921s_txrx_worker() 38 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7921s_txrx_worker() 43 struct mt76_connac_pm *pm = &dev->pm; in mt7921s_unregister_device() 45 cancel_work_sync(&dev->init_work); in mt7921s_unregister_device() 46 mt76_unregister_device(&dev->mt76); in mt7921s_unregister_device() 47 cancel_delayed_work_sync(&pm->ps_work); in mt7921s_unregister_device() 48 cancel_work_sync(&pm->wake_work); in mt7921s_unregister_device() 50 mt76s_deinit(&dev->mt76); in mt7921s_unregister_device() [all …]
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 8 #include "txrx.h" 12 #define MDIO_PG0_G2 2 32 #define B_PCIE_BIT_RD_SEL BIT(2) 34 #define BAC_AUTOK_N_MASK GENMASK(3, 2) 57 #define B_AX_DBI_ADDR_MSK GENMASK(11, 2) [all...] |
H A D | rtw8852a.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 13 #include "txrx.h" 23 {128, 1896, grp_0}, /* ACH 2 */ 196 PWR_CMD_WRITE, BIT(2), 0}, 261 PWR_CMD_WRITE, BIT(4) | BIT(3) | BIT(2) | BI [all...] |
H A D | rtw8851b.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2022-2023 Realtek Corporation 15 #include "txrx.h" 26 {5, 343, grp_0}, /* ACH 2 */ 185 .rsc = {R_AX_TRXPTCL_RRSR_CTL_0, B_AX_WMAC_RESP_RSC_MASK, 2}, 227 {255, 0, 0, 7}, /* 0 -> origina [all...] |
H A D | rtw8852b.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2022 Realtek Corporation 14 #include "txrx.h" 19 RTW8852B_FW_BASENAME "-" __stringify(RTW8852B_FW_FORMAT_MAX) ".bin" 24 {4, 342, grp_0}, /* ACH 2 */ 150 .rsc = {R_AX_TRXPTCL_RRSR_CTL_0, B_AX_WMAC_RESP_RSC_MASK, 2}, [all...] |
/freebsd/sys/dev/axgbe/ |
H A D | xgbe-dev.c | 4 * Copyright (c) 2014-2016,2020 Advanced Micro Devices, Inc. 13 * the Free Software Foundation, either version 2 of the License, or (at 57 * License 2: Modified BSD 116 #include "xgbe-common.h" 122 return (if_getmtu(pdata->netdev) + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in xgbe_get_max_frame() 131 rate = pdata->sysclk_rate; in xgbe_usec_to_riwt() 150 rate = pdata->sysclk_rate; in xgbe_riwt_to_usec() 170 pbl = pdata->pbl; in xgbe_config_pbl_val() 172 if (pdata->pbl > 32) { in xgbe_config_pbl_val() 177 for (i = 0; i < pdata->channel_count; i++) { in xgbe_config_pbl_val() [all …]
|