| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | fwsignal.c | 1671 u8 flow_id, max_idx, cur_idx, exp_idx, end_idx; in brcmf_fws_rxreorder() local 1734 rfi->cur_idx = reorder_data[BRCMF_RXREORDER_CURIDX_OFFSET]; in brcmf_fws_rxreorder() 1737 rfi->pktslots[rfi->cur_idx] = pkt; in brcmf_fws_rxreorder() 1740 flow_id, rfi->cur_idx, rfi->exp_idx, rfi->pend_pkts); in brcmf_fws_rxreorder() 1742 cur_idx = reorder_data[BRCMF_RXREORDER_CURIDX_OFFSET]; in brcmf_fws_rxreorder() 1745 if ((exp_idx == rfi->exp_idx) && (cur_idx != rfi->exp_idx)) { in brcmf_fws_rxreorder() 1748 if (rfi->pktslots[cur_idx] != NULL) { in brcmf_fws_rxreorder() 1750 brcmu_pkt_buf_free_skb(rfi->pktslots[cur_idx]); in brcmf_fws_rxreorder() 1751 rfi->pktslots[cur_idx] = NULL; in brcmf_fws_rxreorder() 1753 rfi->pktslots[cur_idx] = pkt; in brcmf_fws_rxreorder() [all …]
|
| H A D | core.h | 60 u8 cur_idx; member
|
| /linux/arch/arm64/kvm/ |
| H A D | vmid.c | 94 static u32 cur_idx = 1; in new_vmid() local 112 vmid = find_next_zero_bit(vmid_map, NUM_USER_VMIDS, cur_idx); in new_vmid() 126 cur_idx = vmid; in new_vmid()
|
| /linux/arch/csky/mm/ |
| H A D | asid.c | 82 static u32 cur_idx = 1; in new_context() local 111 asid = find_next_zero_bit(info->map, NUM_CTXT_ASIDS(info), cur_idx); in new_context() 125 cur_idx = asid; in new_context()
|
| /linux/arch/arm/mm/ |
| H A D | context.c | 191 static u32 cur_idx = 1; in new_context() local 223 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, cur_idx); in new_context() 232 cur_idx = asid; in new_context()
|
| /linux/arch/mips/mm/ |
| H A D | context.c | 126 static u32 cur_idx = MMID_KERNEL_WIRED + 1; in get_new_mmid() local 156 mmid = find_next_zero_bit(mmid_map, num_mmids, cur_idx); in get_new_mmid() 172 cur_idx = mmid; in get_new_mmid()
|
| /linux/arch/powerpc/perf/ |
| H A D | vpa-dtl.c | 189 u64 cur_idx, last_idx, i; in vpa_dtl_dump_sample_data() local 206 cur_idx = be64_to_cpu(lppaca_of(event->cpu).dtl_idx); in vpa_dtl_dump_sample_data() 209 if (last_idx + N_DISPATCH_LOG <= cur_idx) in vpa_dtl_dump_sample_data() 210 last_idx = cur_idx - N_DISPATCH_LOG + 1; in vpa_dtl_dump_sample_data() 212 n_req = cur_idx - last_idx; in vpa_dtl_dump_sample_data()
|
| /linux/arch/riscv/mm/ |
| H A D | context.c | 96 static u32 cur_idx = 1; in __new_context() local 125 asid = find_next_zero_bit(context_asid_map, num_asids, cur_idx); in __new_context() 140 cur_idx = asid; in __new_context()
|
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_uncore_noc_pmu.c | 82 int cur_idx; in hisi_noc_pmu_get_event_idx() local 84 cur_idx = find_first_bit(pmu_events->used_mask, noc_pmu->num_counters); in hisi_noc_pmu_get_event_idx() 85 if (cur_idx != noc_pmu->num_counters && in hisi_noc_pmu_get_event_idx() 86 !hisi_noc_pmu_check_global_filter(pmu_events->hw_events[cur_idx], event)) in hisi_noc_pmu_get_event_idx()
|
| /linux/drivers/net/ethernet/realtek/rtase/ |
| H A D | rtase_main.c | 240 ring->cur_idx = 0; in rtase_tx_clear() 259 READ_ONCE(ring->cur_idx); in rtase_tx_avail() 272 tx_left = READ_ONCE(ring->cur_idx) - dirty_tx; in tx_handler() 311 if (ring->cur_idx != dirty_tx) in tx_handler() 326 ring->cur_idx = 0; in rtase_tx_desc_init() 495 cur_rx = ring->cur_idx; in rx_handler() 580 ring->cur_idx = cur_rx; in rx_handler() 581 delta = rtase_rx_ring_fill(ring, ring->dirty_idx, ring->cur_idx); in rx_handler() 594 ring->cur_idx = 0; in rtase_rx_desc_init() 1259 entry = ring->cur_idx; in rtase_xmit_frags() [all …]
|
| H A D | rtase.h | 288 u32 cur_idx; member
|
| /linux/drivers/usb/dwc2/ |
| H A D | hcd_ddma.c | 556 u16 cur_idx; in dwc2_init_isoc_dma_desc() local 562 cur_idx = idx; in dwc2_init_isoc_dma_desc() 572 if (dwc2_frame_idx_num_gt(cur_idx, next_idx) || (cur_idx == next_idx)) { in dwc2_init_isoc_dma_desc() 576 qh->td_last = dwc2_desclist_idx_inc(cur_idx, inc, in dwc2_init_isoc_dma_desc() 1007 u16 cur_idx; in dwc2_complete_isoc_xfer_ddma() local 1027 cur_idx = dwc2_frame_list_idx(hsotg->frame_number); in dwc2_complete_isoc_xfer_ddma() 1031 if (dwc2_frame_idx_num_gt(cur_idx, in dwc2_complete_isoc_xfer_ddma()
|
| /linux/drivers/hid/ |
| H A D | hid-input.c | 108 unsigned int cur_idx, unsigned int scancode) in match_scancode() argument 114 unsigned int cur_idx, unsigned int keycode) in match_keycode() argument 123 unsigned int cur_idx, unsigned int idx) in match_index() argument 125 return cur_idx == idx; in match_index() 129 unsigned int cur_idx, unsigned int val); 136 unsigned int i, j, k, cur_idx = 0; in hidinput_find_key() local 146 if (match(usage, cur_idx, value)) { in hidinput_find_key() 148 *usage_idx = cur_idx; in hidinput_find_key() 151 cur_idx++; in hidinput_find_key()
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| H A D | mac.c | 70 int cur_idx, last_rate; in mt76_mac_fill_tx_status() local 78 cur_idx = rate[last_rate].idx + st->retry; in mt76_mac_fill_tx_status() 81 rate[i].idx = max_t(int, 0, cur_idx - i); in mt76_mac_fill_tx_status()
|
| /linux/tools/testing/cxl/test/ |
| H A D | mem.c | 152 u16 cur_idx; member 199 return log->events[log->cur_idx]; in event_get_current() 204 log->cur_idx = 0; in event_reset_log() 218 u16 cur_handle = log->cur_idx + 1; in event_get_cur_event_handle() 225 return log->cur_idx == log->nr_events; in event_log_empty() 289 log->cur_idx++; in mock_get_event() 333 if (log->clear_idx + pl->nr_recs > log->cur_idx) { in mock_clear_event()
|
| /linux/drivers/perf/ |
| H A D | arm_smmuv3_pmu.c | 330 unsigned int cur_idx, num_ctrs = smmu_pmu->num_counters; in smmu_pmu_apply_event_filter() local 338 cur_idx = find_first_bit(smmu_pmu->used_counters, num_ctrs); in smmu_pmu_apply_event_filter() 343 if (!smmu_pmu->global_filter || cur_idx == num_ctrs) { in smmu_pmu_apply_event_filter() 349 if (smmu_pmu_check_global_filter(smmu_pmu->events[cur_idx], event)) { in smmu_pmu_apply_event_filter()
|
| /linux/drivers/firmware/arm_ffa/ |
| H A D | driver.c | 332 u16 buf_sz, start_idx, cur_idx, count = 0, prev_idx = 0, tag = 0; in __ffa_partition_info_get_regs() local 357 cur_idx = CURRENT_INDEX(partition_info.a2); in __ffa_partition_info_get_regs() 364 for (idx = 0; idx < cur_idx - start_idx + 1; idx++, buf++) { in __ffa_partition_info_get_regs() 382 prev_idx = cur_idx; in __ffa_partition_info_get_regs() 384 } while (cur_idx < (count - 1)); in __ffa_partition_info_get_regs()
|
| /linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
| H A D | link_dp_capability.c | 616 uint32_t cur_idx = 0, next_idx; in decide_fallback_link_setting_max_bw_policy() local 622 while (cur_idx < ARRAY_SIZE(dp_lt_fallbacks)) in decide_fallback_link_setting_max_bw_policy() 624 if (dp_lt_fallbacks[cur_idx].lane_count == cur->lane_count && in decide_fallback_link_setting_max_bw_policy() 625 dp_lt_fallbacks[cur_idx].link_rate == cur->link_rate) in decide_fallback_link_setting_max_bw_policy() 628 cur_idx++; in decide_fallback_link_setting_max_bw_policy() 630 next_idx = cur_idx + 1; in decide_fallback_link_setting_max_bw_policy()
|
| /linux/drivers/md/bcache/ |
| H A D | btree.c | 1958 int cur_idx, prev_idx, skip_nr; in bch_btree_check_thread() local 1961 cur_idx = prev_idx = 0; in bch_btree_check_thread() 1977 cur_idx = check_state->key_idx; in bch_btree_check_thread() 1981 skip_nr = cur_idx - prev_idx; in bch_btree_check_thread() 2024 prev_idx = cur_idx; in bch_btree_check_thread()
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_wed.c | 1021 u32 cur_idx = readl(ring->wpdma + MTK_WED_RING_OFS_CPU_IDX); in mtk_wed_check_wfdma_rx_fill() local 1023 if (cur_idx == MTK_WED_RX_RING_SIZE - 1) in mtk_wed_check_wfdma_rx_fill()
|