| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_profiling_internal.c | 151 u32 cur_index = (_mali_osk_atomic_inc_return(&profile_insert_index) - 1) & profile_mask; in add_event() local 153 profile_entries[cur_index].timestamp = _mali_timestamp_get(); in add_event() 154 profile_entries[cur_index].event_id = event_id; in add_event() 155 profile_entries[cur_index].data[0] = data0; in add_event() 156 profile_entries[cur_index].data[1] = data1; in add_event() 157 profile_entries[cur_index].data[2] = data2; in add_event() 158 profile_entries[cur_index].data[3] = data3; in add_event() 159 profile_entries[cur_index].data[4] = data4; in add_event() 165 profile_entries[cur_index].data[4] = _mali_ukk_report_memory_usage(); in add_event()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-desc.c | 531 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 …]
|
| H A D | xgbe-dev.c | 1678 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-desc.c | 502 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 …]
|
| H A D | dwc-xlgmac-hw.c | 712 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()
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/8250/ |
| H A D | 8250_dma.c | 57 unsigned int count = 0, cur_index = 0; in __dma_rx_complete() local 60 cur_index = dma->rx_size - state.residue; in __dma_rx_complete() 62 if (cur_index == dma->rx_index) in __dma_rx_complete() 64 else if (cur_index > dma->rx_index) in __dma_rx_complete() 65 count = cur_index - dma->rx_index; in __dma_rx_complete() 71 if (cur_index < dma->rx_index) { in __dma_rx_complete() 72 tty_insert_flip_string(tty_port, dma->rx_buf, cur_index); in __dma_rx_complete() 73 count += cur_index; in __dma_rx_complete() 77 dma->rx_index = cur_index; in __dma_rx_complete() 168 unsigned int rfl, i = 0, fcr = 0, cur_index = 0; in serial8250_rx_dma() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/dec/tulip/ |
| H A D | timer.c | 53 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()
|
| H A D | 21142.c | 191 tp->cur_index = i; in t21142_lnk_change()
|
| H A D | tulip.h | 447 int cur_index; /* Current media index. */ member
|
| H A D | media.c | 176 struct medialeaf *mleaf = &mtable->mleaf[tp->cur_index]; in tulip_select_media()
|
| /OK3568_Linux_fs/kernel/drivers/thermal/ |
| H A D | db8500_thermal.c | 58 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()
|
| /OK3568_Linux_fs/kernel/sound/pci/lola/ |
| H A D | lola_clock.c | 167 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()
|
| H A D | lola.h | 246 unsigned int cur_index; member
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/vermilion/ |
| H A D | cr_pll.c | 89 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()
|
| H A D | vermilion.c | 565 int cur_index; in vml_nearest_clock() local 569 cur_index = 0; in vml_nearest_clock() 576 cur_index = i; in vml_nearest_clock() 580 return vml_clocks[cur_index]; in vml_nearest_clock()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | nvram_64.c | 984 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()
|
| /OK3568_Linux_fs/u-boot/drivers/core/ |
| H A D | of_access.c | 620 int rc = 0, cur_index = 0; in __of_parse_phandle_with_args() local 652 if (cells_name || cur_index == index) { in __of_parse_phandle_with_args() 690 if (cur_index == index) { in __of_parse_phandle_with_args() 714 cur_index++; in __of_parse_phandle_with_args() 723 rc = index < 0 ? cur_index : -ENOENT; in __of_parse_phandle_with_args()
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/amd/ |
| H A D | rk_aiq_algo_amd_itf.cpp | 282 int prev_index = (ctx->amdCtx.cur_index -1 + AMD_RATIO_BUF_NUM) % AMD_RATIO_BUF_NUM; in processing() 284 ctx->amdCtx.params.ratio_cur = ctx->amdCtx.ratio_out[ctx->amdCtx.cur_index]; in processing() 287 ctx->amdCtx.cur_index = (ctx->amdCtx.cur_index + 1) % AMD_RATIO_BUF_NUM; in processing()
|
| /OK3568_Linux_fs/kernel/drivers/iommu/ |
| H A D | of_iommu.c | 40 int bytes, cur_index = 0; in of_get_dma_window() local 83 if (cur_index++ == index) in of_get_dma_window()
|
| /OK3568_Linux_fs/kernel/drivers/vfio/pci/ |
| H A D | vfio_pci.c | 796 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/of/ |
| H A D | base.c | 1382 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()
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | fdtdec.c | 713 int rc = 0, size, cur_index = 0; in fdtdec_parse_phandle_with_args() local 744 if (cells_name || cur_index == index) { in fdtdec_parse_phandle_with_args() 789 if (cur_index == index) { in fdtdec_parse_phandle_with_args() 816 cur_index++; in fdtdec_parse_phandle_with_args() 825 rc = index < 0 ? cur_index : -ENOENT; in fdtdec_parse_phandle_with_args()
|
| /OK3568_Linux_fs/kernel/fs/ufs/ |
| H A D | balloc.c | 247 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()
|
| /OK3568_Linux_fs/kernel/fs/reiserfs/ |
| H A D | stree.c | 1528 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()
|
| /OK3568_Linux_fs/kernel/drivers/media/common/videobuf2/ |
| H A D | videobuf2-core.c | 2554 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()
|