/linux-master/net/sched/ |
H A D | sch_generic.c | 814 /* NULL ring is possible if destroy path is due to a failed 817 if (!q->ring.queue) 881 /* NULL ring is possible if destroy path is due to a failed 884 if (!q->ring.queue) 886 /* Destroy ring but no need to kfree_skb because a call to 889 ptr_ring_cleanup(&q->ring, NULL);
|
/linux-master/net/core/ |
H A D | page_pool.c | 99 stats->recycle_stats.ring += pcpu->ring; 139 *data++ = pool_stats->recycle_stats.ring; 154 __acquires(&pool->ring.producer_lock) 159 spin_lock(&pool->ring.producer_lock); 161 spin_lock_bh(&pool->ring.producer_lock); 168 __releases(&pool->ring.producer_lock) 171 spin_unlock(&pool->ring.producer_lock); 173 spin_unlock_bh(&pool->ring.producer_lock); 239 if (ptr_ring_init(&pool->ring, ring_qsiz [all...] |
/linux-master/include/net/page_pool/ |
H A D | types.h | 30 * ring is usually refilled and the max consumed elements will be 64, 85 * @empty: ptr ring is empty, so a slow path allocation was forced 87 * @waive: pages obtained from the ptr ring that cannot be added to 103 * @ring: page placed into the ptr ring 104 * @ring_full: page released from page pool because the ptr ring was full 110 u64 ring; member in struct:page_pool_recycle_stats 177 struct ptr_ring ring; member in struct:page_pool
|
/linux-master/include/linux/ |
H A D | libata.h | 648 struct ata_ering_entry ring[ATA_ERING_SIZE]; member in struct:ata_ering
|
/linux-master/fs/ |
H A D | aio.c | 70 }; /* 128 bytes + ring size */ 331 /* Disconnect the kiotx from the ring file. This prevents future 434 * to the ring's head, and prevents page migration from mucking in 463 /* Take completion_lock to prevent other writes to the ring buffer 493 struct aio_ring *ring; local 500 /* Compensate for the ring buffer's head/tail overlap entry */ 576 ring = folio_address(ctx->ring_folios[0]); 577 ring->nr = nr_events; /* user copy */ 578 ring->id = ~0U; 579 ring 680 struct aio_ring *ring; local 1027 struct aio_ring *ring; local 1086 struct aio_ring __user *ring = (void __user *)ctx_id; local 1133 struct aio_ring *ring; local 1230 struct aio_ring *ring; local [all...] |
/linux-master/drivers/virtio/ |
H A D | virtio_ring.c | 2 /* Virtio ring implementation. 19 /* For development, we want to crash whenever the ring is screwed. */ 127 /* Driver ring wrap counter. */ 157 /* Is this a packed ring? */ 189 * for split ring, it just contains last used index 190 * for packed ring: 200 /* Available for split ring */ 203 /* Available for packed ring */ 440 * Split ring specific functions - *_split(). 601 * host should service the ring ASA 1939 struct vring_packed_desc *ring; local [all...] |
/linux-master/drivers/vhost/ |
H A D | net.c | 1427 struct ptr_ring *ring; local 1428 ring = tun_get_tx_ring(file); 1429 if (!IS_ERR(ring)) 1431 ring = tap_get_ptr_ring(file); 1432 if (!IS_ERR(ring)) 1434 ring = NULL; 1436 return ring; 1495 /* Verify that ring has been setup correctly. */
|
/linux-master/drivers/spi/ |
H A D | spi-pic32-sqi.c | 121 * struct ring_desc - Representation of SQI ring descriptor 145 struct ring_desc *ring; member in struct:pic32_sqi 297 /* get ring descriptor */ 434 /* release ring descr */ 469 /* allocate software ring descriptors */ 470 sqi->ring = kcalloc(PESQI_BD_COUNT, sizeof(*rdesc), GFP_KERNEL); 471 if (!sqi->ring) { 483 /* initialize ring-desc */ 484 for (i = 0, rdesc = sqi->ring; i < PESQI_BD_COUNT; i++, rdesc++) { 492 for (i = 0, rdesc = sqi->ring; [all...] |
/linux-master/drivers/scsi/qla2xxx/ |
H A D | qla_os.c | 522 } else if (req && req->ring) 525 req->ring, req->dma); 540 } else if (rsp && rsp->ring) { 543 rsp->ring, rsp->dma); 3334 /* Alloc arrays of request and response ring ptrs */ 4346 /* Allocate memory for request ring */ 4354 (*req)->ring = dma_alloc_coherent(&ha->pdev->dev, 4357 if (!(*req)->ring) { 4362 /* Allocate memory for response ring */ 4371 (*rsp)->ring [all...] |
H A D | qla_mr.c | 816 req->ring_fx00 = req->ring; 820 rsp->ring_fx00 = rsp->ring; 843 req->ring = (void __force *)ha->iobase + ha->req_que_off; 845 if ((!req->ring) || (req->length == 0)) { 854 req, req->ring, req->length, 858 rsp->ring = (void __force *)ha->iobase + ha->rsp_que_off; 860 if ((!rsp->ring) || (rsp->length == 0)) { 869 rsp, rsp->ring, rsp->length, 1390 * Beginning of request ring has initialization control block already built 1401 rsp->ring_ptr = rsp->ring; [all...] |
/linux-master/drivers/scsi/lpfc/ |
H A D | lpfc_sli.c | 257 * the @q. This function will then ring the Work Queue Doorbell to signal the 374 * the @q. This function will then ring the Work Queue Doorbell to signal the 523 /* ring doorbell for number popped */ 561 /* ring doorbell for number popped */ 743 /* ring doorbell for number popped */ 776 /* ring doorbell for number popped */ 789 * the @q. This function will then ring the Receive Queue Doorbell to signal the 873 * lpfc_cmd_iocb - Get next command iocb entry in the ring 875 * @pring: Pointer to driver SLI ring object. 878 * in the command ring 8083 struct rx_info_entry *ring = rx_monitor->ring; local 8120 struct rx_info_entry *ring = rx_monitor->ring; local [all...] |
H A D | lpfc.h | 144 uint32_t buffer_tag; /* used for tagged queue ring */ 1611 struct rx_info_entry *ring; /* info organized in a circular buffer */ member in struct:lpfc_rx_info_monitor 1612 u32 head_idx, tail_idx; /* index to head/tail of ring */ 1613 spinlock_t lock; /* spinlock for ring */ 1614 u32 entries; /* storing number entries/size of ring */
|
/linux-master/drivers/net/wireless/realtek/rtw89/ |
H A D | pci.c | 1080 static u32 rtw89_pci_get_avail_txbd_num(struct rtw89_pci_tx_ring *ring) argument 1082 struct rtw89_pci_dma_ring *bd_ring = &ring->bd_ring; 1084 /* reserved 1 desc check ring is full or not */ 1453 * pages of the wd ring. 3242 rtw89_err(rtwdev, "failed to alloc txwd ring of txch %d\n", txch); 3296 rtw89_err(rtwdev, "failed to alloc tx ring %d\n", i); 3414 rtw89_err(rtwdev, "failed to alloc rx ring %d\n", i);
|
/linux-master/drivers/net/wireless/realtek/rtw88/ |
H A D | pci.c | 121 /* free the ring itself */ 193 rtw_err(rtwdev, "failed to allocate tx ring\n"); 266 rtw_err(rtwdev, "failed to allocate rx ring\n"); 667 struct rtw_pci_tx_ring *ring) 669 struct sk_buff *prev = skb_dequeue(&ring->queue); 714 struct rtw_pci_tx_ring *ring = &rtwpci->tx_rings[pci_q]; local 725 if (cur_rp == ring->r.wp) 733 "timed out to flush pci tx ring[%d]\n", pci_q); 775 struct rtw_pci_tx_ring *ring; local 778 ring 666 rtw_pci_release_rsvd_page(struct rtw_pci *rtwpci, struct rtw_pci_tx_ring *ring) argument 805 struct rtw_pci_tx_ring *ring; local 921 struct rtw_pci_tx_ring *ring; local 944 struct rtw_pci_tx_ring *ring; local 1025 struct rtw_pci_rx_ring *ring; local 1045 struct rtw_pci_rx_ring *ring = &rtwpci->rx_rings[RTW_RX_QUEUE_MPDU]; local [all...] |
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
H A D | phy.c | 2522 struct rtl8192_tx_ring *ring = NULL; local 2555 ring = &pcipriv->dev.tx_ring[queue_id]; 2561 skb_queue_len(&ring->queue) == 0) { 2568 skb_queue_len(&ring->queue)); 2578 skb_queue_len(&ring->queue)); 2604 ring = &pcipriv->dev.tx_ring[queue_id]; 2605 if (skb_queue_len(&ring->queue) == 0) { 2612 skb_queue_len(&ring->queue)); 2622 skb_queue_len(&ring->queue));
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
H A D | trx.c | 293 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; local 294 u8 *entry = (u8 *)(&ring->desc[ring->idx]);
|
H A D | phy.c | 2353 struct rtl8192_tx_ring *ring = NULL; local 2410 ring = &pcipriv->dev.tx_ring[queue_id]; 2411 if (skb_queue_len(&ring->queue) == 0 || 2424 skb_queue_len(&ring->queue)); 2433 skb_queue_len(&ring->queue));
|
H A D | fw.c | 117 struct rtl8192_tx_ring *ring; local 123 ring = &rtlpci->tx_ring[BEACON_QUEUE]; 124 pskb = __skb_dequeue(&ring->queue); 127 pdesc = &ring->desc[idx]; 131 __skb_queue_tail(&ring->queue, skb);
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | pcie.c | 378 * struct brcmf_pcie_dhi_ringinfo - dongle/host interface shared ring info 380 * @ringmem: dongle memory pointer to ring memory location 381 * @h2d_w_idx_ptr: h2d ring write indices dongle memory pointers 382 * @h2d_r_idx_ptr: h2d ring read indices dongle memory pointers 383 * @d2h_w_idx_ptr: d2h ring write indices dongle memory pointers 384 * @d2h_r_idx_ptr: d2h ring read indices dongle memory pointers 385 * @h2d_w_idx_hostaddr: h2d ring write indices host memory pointers 386 * @h2d_r_idx_hostaddr: h2d ring read indices host memory pointers 387 * @d2h_w_idx_hostaddr: d2h ring write indices host memory pointers 388 * @d2h_r_idx_hostaddr: d2h ring rea 1020 struct brcmf_pcie_ringbuf *ring = (struct brcmf_pcie_ringbuf *)ctx; local 1038 struct brcmf_pcie_ringbuf *ring = (struct brcmf_pcie_ringbuf *)ctx; local 1056 struct brcmf_pcie_ringbuf *ring = (struct brcmf_pcie_ringbuf *)ctx; local 1072 struct brcmf_pcie_ringbuf *ring = (struct brcmf_pcie_ringbuf *)ctx; local 1090 struct brcmf_pcie_ringbuf *ring = (struct brcmf_pcie_ringbuf *)ctx; local 1111 void *ring; local 1134 struct brcmf_pcie_ringbuf *ring; local 1177 brcmf_pcie_release_ringbuffer(struct device *dev, struct brcmf_pcie_ringbuf *ring) argument 1219 struct brcmf_pcie_ringbuf *ring; local [all...] |
/linux-master/drivers/net/wireless/ath/wil6210/ |
H A D | wmi.c | 717 wil_err(wil, "WMI ring full\n"); 1277 wil_err(wil, "invalid ring id %d\n", evt->ringid); 1355 break; /* max. 1 matching ring */ 1576 * return error, if other interfaces are used or ring was not found 1583 struct wil_ring *ring; local 1595 /* In the STA mode, it is expected to have only one ring 1600 ring = &wil->ring_tx[i]; 1602 if (!ring->va || !txdata->enabled || txdata->mid != vif->mid) 1799 /* ring modify to set the ring fo 3839 struct wil_ring *ring = &wil->ring_rx; local 3883 struct wil_ring *ring = &wil->ring_tx[ring_id]; local 3934 struct wil_ring *ring = &wil->ring_tx[ring_id]; local [all...] |
/linux-master/drivers/net/wireless/ath/ath12k/ |
H A D | dp_rx.c | 633 /* reo cmd ring descriptors has cmd_num starting from 1 */ 838 struct hal_reo_dest_ring *ring, 841 struct hal_wbm_release_ring *link_desc = (struct hal_wbm_release_ring *)ring; 2707 * In this case, even though there are entries in the ring we'll 3057 /* Fill mpdu details into reo entrance ring */ 3229 * exception ring, this shouldn't happen 3576 * This error can show up both in a REO destination or WBM release ring. 3757 "failed to parse rx error in wbm_rel ring desc %d\n", 4129 ath12k_warn(ab, "failed to setup rxdma ring selection config\n"); 4202 ath12k_warn(ab, "failed to setup rxdma ring\ 837 ath12k_dp_rx_link_desc_return(struct ath12k_base *ab, struct hal_reo_dest_ring *ring, enum hal_wbm_rel_bm_act action) argument [all...] |
H A D | dp.h | 486 * b'16:23 - ring_id: identify which ring is to setup, 490 * dword1 - b'0:31 - ring_base_addr_lo: Lower 32bits of ring base address 491 * dword2 - b'0:31 - ring_base_addr_hi: Upper 32bits of ring base address 492 * dword3 - b'0:15 - ring_size: size of the ring in unit of 4-bytes words 500 * element within the ring. 506 * element within the ring. 512 * element within the ring. 518 * element within the ring. 544 * Used only by Consumer ring to generate ring_sw_int_p. 549 * Used only by Consumer ring t [all...] |
H A D | dp.c | 57 /* NOTE: reo_dest ring id starts from 1 unlike mac_id which starts from 0 */ 107 void ath12k_dp_srng_cleanup(struct ath12k_base *ab, struct dp_srng *ring) argument 109 if (!ring->vaddr_unaligned) 112 dma_free_coherent(ab->dev, ring->size, ring->vaddr_unaligned, 113 ring->paddr_unaligned); 115 ring->vaddr_unaligned = NULL; 201 "ring not part of an ext_group; ring_type: %d,ring_num %d", 223 int ath12k_dp_srng_setup(struct ath12k_base *ab, struct dp_srng *ring, argument 238 ring 733 ath12k_dp_link_desc_cleanup(struct ath12k_base *ab, struct dp_link_desc_bank *desc_bank, u32 ring_type, struct dp_srng *ring) argument [all...] |
/linux-master/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 380 * instead of less, tx ring entries avail, the worst case is 382 * insufficient tx ring entries. 529 /* reset the tx ring contents to 0 and reset the tx ring states */ 538 /* reset the tx comp ring contents to 0 and reset comp ring states */ 564 netdev_err(adapter->netdev, "failed to allocate tx ring\n"); 572 netdev_err(adapter->netdev, "failed to allocate tx data ring\n"); 580 netdev_err(adapter->netdev, "failed to allocate tx comp ring\n"); 607 * starting from ring 618 struct vmxnet3_cmd_ring *ring = &rq->rx_ring[ring_idx]; local 1532 struct vmxnet3_cmd_ring *ring = NULL; local [all...] |
/linux-master/drivers/net/ |
H A D | virtio_net.c | 53 * buffer size when refilling RX rings. As the entire RX ring may be refilled 1002 * Since most packets only take 1 or 2 ring slots, stopping the queue 3184 struct ethtool_ringparam *ring, 3190 ring->rx_max_pending = vi->rq[0].vq->num_max; 3191 ring->tx_max_pending = vi->sq[0].vq->num_max; 3192 ring->rx_pending = virtqueue_get_vring_size(vi->rq[0].vq); 3193 ring->tx_pending = virtqueue_get_vring_size(vi->sq[0].vq); 3197 struct ethtool_ringparam *ring, 3207 if (ring->rx_mini_pending || ring 3183 virtnet_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ring, struct kernel_ethtool_ringparam *kernel_ring, struct netlink_ext_ack *extack) argument 3196 virtnet_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ring, struct kernel_ethtool_ringparam *kernel_ring, struct netlink_ext_ack *extack) argument [all...] |