Home
last modified time | relevance | path

Searched refs:desc_idx (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/
Dsolo6x10-p2m.c79 p2m_dev->desc_count = p2m_dev->desc_idx = 0; in solo_p2m_dma_desc()
89 p2m_dev->desc_idx = 1; in solo_p2m_dma_desc()
163 if (p2m_dev->desc_count <= p2m_dev->desc_idx) { in solo_p2m_isr()
169 p2m_dev->desc_idx++; in solo_p2m_isr()
170 desc = &p2m_dev->descs[p2m_dev->desc_idx]; in solo_p2m_isr()
Dsolo6x10.h122 int desc_idx; member
/kernel/linux/linux-5.10/drivers/staging/gasket/
Dgasket_core.c1691 int desc_idx = -1; in gasket_register_device() local
1712 desc_idx = i; in gasket_register_device()
1718 if (desc_idx == -1) { in gasket_register_device()
1724 internal = &g_descs[desc_idx]; in gasket_register_device()
1753 g_descs[desc_idx].driver_desc = NULL; in gasket_register_device()
1762 int i, desc_idx; in gasket_unregister_device() local
1769 desc_idx = i; in gasket_unregister_device()
1788 g_descs[desc_idx].driver_desc = NULL; in gasket_unregister_device()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
Dbgmac.c378 struct bgmac_dma_ring *ring, int desc_idx) in bgmac_dma_rx_setup_desc() argument
380 struct bgmac_dma_desc *dma_desc = ring->cpu_base + desc_idx; in bgmac_dma_rx_setup_desc()
383 if (desc_idx == BGMAC_RX_RING_SLOTS - 1) in bgmac_dma_rx_setup_desc()
391 dma_desc->addr_low = cpu_to_le32(lower_32_bits(ring->slots[desc_idx].dma_addr)); in bgmac_dma_rx_setup_desc()
392 dma_desc->addr_high = cpu_to_le32(upper_32_bits(ring->slots[desc_idx].dma_addr)); in bgmac_dma_rx_setup_desc()
396 ring->end = desc_idx; in bgmac_dma_rx_setup_desc()
Dbcm63xx_enet.c233 int desc_idx; in bcm_enet_refill_rx() local
236 desc_idx = priv->rx_dirty_desc; in bcm_enet_refill_rx()
237 desc = &priv->rx_desc_cpu[desc_idx]; in bcm_enet_refill_rx()
239 if (!priv->rx_skb[desc_idx]) { in bcm_enet_refill_rx()
243 priv->rx_skb[desc_idx] = skb; in bcm_enet_refill_rx()
315 int desc_idx; in bcm_enet_receive_queue() local
319 desc_idx = priv->rx_curr_desc; in bcm_enet_receive_queue()
320 desc = &priv->rx_desc_cpu[desc_idx]; in bcm_enet_receive_queue()
363 skb = priv->rx_skb[desc_idx]; in bcm_enet_receive_queue()
387 priv->rx_skb[desc_idx] = NULL; in bcm_enet_receive_queue()
Dtg3.c6838 u32 opaque_key, desc_idx, *post_ptr; in tg3_rx() local
6842 desc_idx = desc->opaque & RXD_OPAQUE_INDEX_MASK; in tg3_rx()
6845 ri = &tp->napi[0].prodring.rx_std_buffers[desc_idx]; in tg3_rx()
6851 ri = &tp->napi[0].prodring.rx_jmb_buffers[desc_idx]; in tg3_rx()
6863 desc_idx, *post_ptr); in tg3_rx()
6909 desc_idx, *post_ptr); in tg3_rx()
13427 u32 base_flags = 0, mss = 0, desc_idx, coal_now, data_off, val; in tg3_run_loopback() local
13577 desc_idx = desc->opaque & RXD_OPAQUE_INDEX_MASK; in tg3_run_loopback()
13605 rx_data = tpr->rx_std_buffers[desc_idx].data; in tg3_run_loopback()
13606 map = dma_unmap_addr(&tpr->rx_std_buffers[desc_idx], in tg3_run_loopback()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_adminq.c864 u16 desc_idx; in iavf_clean_arq_element() local
892 desc_idx = ntc; in iavf_clean_arq_element()
909 memcpy(e->msg_buf, hw->aq.arq.r.arq_bi[desc_idx].va, in iavf_clean_arq_element()
/kernel/linux/linux-5.10/drivers/dma/ti/
Dk3-udma.c171 unsigned int desc_idx; /* Only used for cyclic in packet mode */ member
406 d->desc_idx); in udma_udma_desc_from_paddr()
416 d->desc_idx); in udma_udma_desc_from_paddr()
922 h_desc = d->hwdesc[d->desc_idx].cppi5_desc_vaddr; in udma_cyclic_packet_elapsed()
924 udma_push_to_ring(uc, d->desc_idx); in udma_cyclic_packet_elapsed()
925 d->desc_idx = (d->desc_idx + 1) % d->sglen; in udma_cyclic_packet_elapsed()
1050 d->desc_idx); in udma_ring_irq_handler()
2370 d->desc_idx = 0; in udma_prep_slave_sg()
2620 d->desc_idx = 0; in udma_prep_dma_memcpy()
2891 void *desc_vaddr = udma_curr_cppi5_desc_vaddr(d, d->desc_idx); in udma_desc_pre_callback()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_controlq.c1115 u16 desc_idx; in ice_clean_rq_elem() local
1144 desc_idx = ntc; in ice_clean_rq_elem()
1159 memcpy(e->msg_buf, cq->rq.r.rq_bi[desc_idx].va, e->msg_len); in ice_clean_rq_elem()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_adminq.c1004 u16 desc_idx; in i40e_clean_arq_element() local
1032 desc_idx = ntc; in i40e_clean_arq_element()
1049 memcpy(e->msg_buf, hw->aq.arq.r.arq_bi[desc_idx].va, in i40e_clean_arq_element()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dwdt87xx_i2c.c219 static int wdt87xx_get_desc(struct i2c_client *client, u8 desc_idx, in wdt87xx_get_desc() argument
225 tx_buf[2] |= desc_idx & 0xF; in wdt87xx_get_desc()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_fs.c1326 int desc_idx; in ffs_epfile_ioctl() local
1332 desc_idx = 2; in ffs_epfile_ioctl()
1335 desc_idx = 1; in ffs_epfile_ioctl()
1338 desc_idx = 0; in ffs_epfile_ioctl()
1341 desc = epfile->ep->descs[desc_idx]; in ffs_epfile_ioctl()
Df_generic.c1358 int desc_idx; in ffs_epfile_ioctl() local
1364 desc_idx = 2; in ffs_epfile_ioctl()
1367 desc_idx = 1; in ffs_epfile_ioctl()
1370 desc_idx = 1; in ffs_epfile_ioctl()
1377 desc = ep->descs[desc_idx]; in ffs_epfile_ioctl()
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/
Dmacb_main.c150 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() argument
156 desc_idx <<= 1; in macb_adj_dma_desc_idx()
159 desc_idx *= 3; in macb_adj_dma_desc_idx()
165 return desc_idx; in macb_adj_dma_desc_idx()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
Dpci.c629 int rxring_idx, int desc_idx) in _rtl_pci_init_one_rxdesc() argument
653 rtlpci->rx_ring[rxring_idx].rx_buf[desc_idx] = skb; in _rtl_pci_init_one_rxdesc()
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch16467 - int desc_idx;
16473 - desc_idx = 2;
16476 - desc_idx = 1;
16479 - desc_idx = 1;
16486 - desc = ep->descs[desc_idx];