Home
last modified time | relevance | path

Searched refs:cur_index (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-desc.c531 unsigned int start_index, cur_index; in xgbe_map_tx_skb() local
539 cur_index = ring->cur; in xgbe_map_tx_skb()
553 cur_index++; in xgbe_map_tx_skb()
554 rdata = XGBE_GET_DESC_DATA(ring, cur_index); in xgbe_map_tx_skb()
568 cur_index, &skb_dma, packet->header_len); in xgbe_map_tx_skb()
574 cur_index++; in xgbe_map_tx_skb()
575 rdata = XGBE_GET_DESC_DATA(ring, cur_index); in xgbe_map_tx_skb()
592 cur_index, &skb_dma, len); in xgbe_map_tx_skb()
599 cur_index++; in xgbe_map_tx_skb()
600 rdata = XGBE_GET_DESC_DATA(ring, cur_index); in xgbe_map_tx_skb()
[all …]
Dxgbe-dev.c1678 int cur_index = ring->cur; in xgbe_dev_xmit() local
1725 rdata = XGBE_GET_DESC_DATA(ring, cur_index); in xgbe_dev_xmit()
1770 cur_index++; in xgbe_dev_xmit()
1771 rdata = XGBE_GET_DESC_DATA(ring, cur_index); in xgbe_dev_xmit()
1799 if (cur_index != start_index) in xgbe_dev_xmit()
1832 for (i = cur_index - start_index + 1; i < packet->rdesc_count; i++) { in xgbe_dev_xmit()
1833 cur_index++; in xgbe_dev_xmit()
1834 rdata = XGBE_GET_DESC_DATA(ring, cur_index); in xgbe_dev_xmit()
1889 ring->cur = cur_index + 1; in xgbe_dev_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-desc.c502 unsigned int start_index, cur_index; in xlgmac_map_tx_skb() local
513 cur_index = ring->cur; in xlgmac_map_tx_skb()
529 cur_index++; in xlgmac_map_tx_skb()
530 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_map_tx_skb()
544 cur_index, &skb_dma, pkt_info->header_len); in xlgmac_map_tx_skb()
550 cur_index++; in xlgmac_map_tx_skb()
551 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_map_tx_skb()
568 cur_index, &skb_dma, len); in xlgmac_map_tx_skb()
575 cur_index++; in xlgmac_map_tx_skb()
576 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_map_tx_skb()
[all …]
Ddwc-xlgmac-hw.c712 int cur_index = ring->cur; in xlgmac_dev_xmit() local
758 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_dev_xmit()
821 cur_index++; in xlgmac_dev_xmit()
822 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_dev_xmit()
872 if (cur_index != start_index) in xlgmac_dev_xmit()
920 for (i = cur_index - start_index + 1; i < pkt_info->desc_count; i++) { in xlgmac_dev_xmit()
921 cur_index++; in xlgmac_dev_xmit()
922 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_dev_xmit()
997 ring->cur = cur_index + 1; in xlgmac_dev_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
Dtimer.c53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task()
90 if (--tp->cur_index < 0) { in tulip_media_task()
92 tp->cur_index = tp->mtable->leafcount - 1; in tulip_media_task()
94 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task()
100 medianame[tp->mtable->mleaf[tp->cur_index].media]); in tulip_media_task()
D21142.c191 tp->cur_index = i; in t21142_lnk_change()
Dtulip.h447 int cur_index; /* Current media index. */ member
Dmedia.c176 struct medialeaf *mleaf = &mtable->mleaf[tp->cur_index]; in tulip_select_media()
Dtulip_core.c403 tp->cur_index = i; in tulip_up()
1665 tp->cur_index = i; in tulip_init_one()
/kernel/linux/linux-5.10/drivers/thermal/
Ddb8500_thermal.c58 unsigned int cur_index; member
99 th->cur_index = idx; in db8500_thermal_update_config()
114 unsigned int idx = th->cur_index; in prcmu_low_irq_handler()
143 unsigned int idx = th->cur_index; in prcmu_high_irq_handler()
/kernel/linux/linux-5.10/sound/pci/lola/
Dlola_clock.c167 chip->clock.cur_index = idx_list; in lola_init_clock_widget()
252 if (chip->clock.sample_clock[chip->clock.cur_index].type != in lola_update_ext_clock_freq()
265 if (idx == chip->clock.cur_index) { in lola_set_clock()
282 if (idx != chip->clock.cur_index) { in lola_set_clock()
287 chip->clock.cur_index = idx; in lola_set_clock()
Dlola.h246 unsigned int cur_index; member
Dlola.c424 lola_set_clock_index(chip, chip->clock.cur_index); in lola_reset_setups()
/kernel/linux/linux-5.10/drivers/video/fbdev/vermilion/
Dcr_pll.c89 int cur_index = 0; in crvml_nearest_index() local
99 cur_index = i; in crvml_nearest_index()
103 return cur_index; in crvml_nearest_index()
Dvermilion.c567 int cur_index; in vml_nearest_clock() local
571 cur_index = 0; in vml_nearest_clock()
578 cur_index = i; in vml_nearest_clock()
582 return vml_clocks[cur_index]; in vml_nearest_clock()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dnvram_64.c984 loff_t cur_index = 0; in nvram_scan_partitions() local
1002 while (cur_index < total_size) { in nvram_scan_partitions()
1004 err = ppc_md.nvram_read(header, NVRAM_HEADER_LEN, &cur_index); in nvram_scan_partitions()
1011 cur_index -= NVRAM_HEADER_LEN; /* nvram_read will advance us */ in nvram_scan_partitions()
1039 tmp_part->index = cur_index; in nvram_scan_partitions()
1042 cur_index += phead.length * NVRAM_BLOCK_LEN; in nvram_scan_partitions()
/kernel/linux/linux-5.10/drivers/iommu/
Dof_iommu.c40 int bytes, cur_index = 0; in of_get_dma_window() local
83 if (cur_index++ == index) in of_get_dma_window()
/kernel/linux/linux-5.10/drivers/vfio/pci/
Dvfio_pci.c796 int cur_index; member
1171 struct vfio_devices devs = { .cur_index = 0 }; in vfio_pci_ioctl()
1284 for (; mem_idx < devs.cur_index; mem_idx++) { in vfio_pci_ioctl()
1301 for (i = 0; i < devs.cur_index; i++) { in vfio_pci_ioctl()
2279 if (devs->cur_index == devs->max_index) in vfio_pci_get_unused_devs()
2299 devs->devices[devs->cur_index++] = device; in vfio_pci_get_unused_devs()
2309 if (devs->cur_index == devs->max_index) in vfio_pci_try_zap_and_vma_lock_cb()
2332 devs->devices[devs->cur_index++] = device; in vfio_pci_try_zap_and_vma_lock_cb()
2354 struct vfio_devices devs = { .cur_index = 0 }; in vfio_pci_try_bus_reset()
2379 for (i = 0; i < devs.cur_index; i++) { in vfio_pci_try_bus_reset()
[all …]
/kernel/linux/linux-5.10/drivers/of/
Dbase.c1382 int rc, cur_index = 0; in __of_parse_phandle_with_args() local
1393 if (cur_index == index) { in __of_parse_phandle_with_args()
1413 cur_index++; in __of_parse_phandle_with_args()
1747 int rc, cur_index = 0; in of_count_phandle_with_args() local
1771 cur_index += 1; in of_count_phandle_with_args()
1776 return cur_index; in of_count_phandle_with_args()
/kernel/linux/linux-5.10/fs/ufs/
Dballoc.c247 pgoff_t index, cur_index, last_index; in ufs_change_blocknr() local
260 cur_index = locked_page->index; in ufs_change_blocknr()
266 if (likely(cur_index != index)) { in ufs_change_blocknr()
319 if (likely(cur_index != index)) in ufs_change_blocknr()
/kernel/linux/linux-5.10/fs/reiserfs/
Dstree.c1528 unsigned long cur_index; in unmap_buffers() local
1533 cur_index = 0; in unmap_buffers()
1547 cur_index += bh->b_size; in unmap_buffers()
1548 if (cur_index > tail_index) { in unmap_buffers()
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-core.c2554 unsigned int cur_index; member
2659 fileio->cur_index = q->num_buffers; in __vb2_init_fileio()
2751 index = fileio->cur_index; in __vb2_perform_fileio()
2764 fileio->cur_index = index; in __vb2_perform_fileio()
2859 fileio->cur_index = fileio->initial_index; in __vb2_perform_fileio()
/kernel/linux/patches/linux-5.10/yangfan_patch/
Ddrivers.patch61528 + unsigned int count = 0, cur_index = 0;
61531 + cur_index = dma->rx_size - state.residue;
61533 + if (cur_index == dma->rx_index)
61535 + else if (cur_index > dma->rx_index)
61536 + count = cur_index - dma->rx_index;
61542 + if (cur_index < dma->rx_index) {
61543 + tty_insert_flip_string(tty_port, dma->rx_buf, cur_index);
61544 + count += cur_index;
61548 + dma->rx_index = cur_index;
61587 + unsigned int rfl, i = 0, fcr = 0, cur_index = 0;
[all …]