/linux-6.1.9/drivers/net/wwan/t7xx/ |
D | t7xx_hif_dpmaif_tx.c | 87 unsigned int drb_cnt, i, cur_idx; in t7xx_dpmaif_release_tx_buffer() local 95 cur_idx = txq->drb_release_rd_idx; in t7xx_dpmaif_release_tx_buffer() 99 cur_drb = drb_base + cur_idx; in t7xx_dpmaif_release_tx_buffer() 101 cur_drb_skb = drb_skb_base + cur_idx; in t7xx_dpmaif_release_tx_buffer() 120 cur_idx = t7xx_ring_buf_get_next_wr_idx(drb_cnt, cur_idx); in t7xx_dpmaif_release_tx_buffer() 121 txq->drb_release_rd_idx = cur_idx; in t7xx_dpmaif_release_tx_buffer() 193 unsigned int cur_idx, unsigned int pkt_len, unsigned int count_l, in t7xx_setup_msg_drb() argument 197 struct dpmaif_drb *drb = drb_base + cur_idx; in t7xx_setup_msg_drb() 209 unsigned int cur_idx, dma_addr_t data_addr, in t7xx_setup_payload_drb() argument 213 struct dpmaif_drb *drb = drb_base + cur_idx; in t7xx_setup_payload_drb() [all …]
|
/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_release.c | 290 int cur_idx; in qxl_alloc_release_reserved() local 294 cur_idx = 0; in qxl_alloc_release_reserved() 297 cur_idx = 1; in qxl_alloc_release_reserved() 300 cur_idx = 2; in qxl_alloc_release_reserved() 317 if (qdev->current_release_bo_offset[cur_idx] + 1 >= releases_per_bo[cur_idx]) { in qxl_alloc_release_reserved() 318 free_bo = qdev->current_release_bo[cur_idx]; in qxl_alloc_release_reserved() 319 qdev->current_release_bo_offset[cur_idx] = 0; in qxl_alloc_release_reserved() 320 qdev->current_release_bo[cur_idx] = NULL; in qxl_alloc_release_reserved() 322 if (!qdev->current_release_bo[cur_idx]) { in qxl_alloc_release_reserved() 323 ret = qxl_release_bo_alloc(qdev, &qdev->current_release_bo[cur_idx], priority); in qxl_alloc_release_reserved() [all …]
|
D | qxl_kms.c | 285 int cur_idx; in qxl_device_fini() local 291 for (cur_idx = 0; cur_idx < 3; cur_idx++) { in qxl_device_fini() 292 if (!qdev->current_release_bo[cur_idx]) in qxl_device_fini() 294 qxl_bo_unpin(qdev->current_release_bo[cur_idx]); in qxl_device_fini() 295 qxl_bo_unref(&qdev->current_release_bo[cur_idx]); in qxl_device_fini() 296 qdev->current_release_bo_offset[cur_idx] = 0; in qxl_device_fini() 297 qdev->current_release_bo[cur_idx] = NULL; in qxl_device_fini()
|
/linux-6.1.9/arch/powerpc/platforms/pseries/ |
D | dtl.c | 265 u64 cur_idx, last_idx, i; in dtl_file_read() local 280 cur_idx = dtl_current_index(dtl); in dtl_file_read() 283 if (last_idx + dtl->buf_entries <= cur_idx) in dtl_file_read() 284 last_idx = cur_idx - dtl->buf_entries + 1; in dtl_file_read() 286 if (last_idx + n_req > cur_idx) in dtl_file_read() 287 n_req = cur_idx - last_idx; in dtl_file_read()
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fwsignal.c | 1671 u8 flow_id, max_idx, cur_idx, exp_idx, end_idx; in brcmf_fws_rxreorder() local 1739 rfi->cur_idx = reorder_data[BRCMF_RXREORDER_CURIDX_OFFSET]; in brcmf_fws_rxreorder() 1742 rfi->pktslots[rfi->cur_idx] = pkt; in brcmf_fws_rxreorder() 1745 flow_id, rfi->cur_idx, rfi->exp_idx, rfi->pend_pkts); in brcmf_fws_rxreorder() 1747 cur_idx = reorder_data[BRCMF_RXREORDER_CURIDX_OFFSET]; in brcmf_fws_rxreorder() 1750 if ((exp_idx == rfi->exp_idx) && (cur_idx != rfi->exp_idx)) { in brcmf_fws_rxreorder() 1753 if (rfi->pktslots[cur_idx] != NULL) { in brcmf_fws_rxreorder() 1755 brcmu_pkt_buf_free_skb(rfi->pktslots[cur_idx]); in brcmf_fws_rxreorder() 1756 rfi->pktslots[cur_idx] = NULL; in brcmf_fws_rxreorder() 1758 rfi->pktslots[cur_idx] = pkt; in brcmf_fws_rxreorder() [all …]
|
D | core.h | 55 u8 cur_idx; member
|
/linux-6.1.9/arch/arm64/kvm/ |
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-6.1.9/arch/csky/mm/ |
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-6.1.9/arch/arm/mm/ |
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-6.1.9/arch/mips/mm/ |
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-6.1.9/arch/riscv/mm/ |
D | context.c | 97 static u32 cur_idx = 1; in __new_context() local 126 asid = find_next_zero_bit(context_asid_map, num_asids, cur_idx); in __new_context() 141 cur_idx = asid; in __new_context()
|
/linux-6.1.9/arch/arm64/mm/ |
D | context.c | 160 static u32 cur_idx = 1; in new_context() local 197 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, cur_idx); in new_context() 211 cur_idx = asid; in new_context()
|
/linux-6.1.9/drivers/md/bcache/ |
D | journal.c | 276 ja->cur_idx = i; in bch_journal_read() 637 if (ja->cur_idx >= ja->discard_idx) in free_journal_buckets() 638 n = ca->sb.njournal_buckets + ja->discard_idx - ja->cur_idx; in free_journal_buckets() 640 n = ja->discard_idx - ja->cur_idx; in free_journal_buckets() 665 while (ja->last_idx != ja->cur_idx && in journal_reclaim() 678 ja->cur_idx = (ja->cur_idx + 1) % ca->sb.njournal_buckets; in journal_reclaim() 680 bucket_to_sector(c, ca->sb.d[ja->cur_idx]), in journal_reclaim() 807 ca->journal.seq[ca->journal.cur_idx] = w->data->seq; in journal_write_unlocked()
|
D | journal.h | 137 unsigned int cur_idx; member
|
D | writeback.c | 903 int cur_idx, prev_idx, skip_nr; in bch_dirty_init_thread() local 906 cur_idx = prev_idx = 0; in bch_dirty_init_thread() 916 cur_idx = state->key_idx; in bch_dirty_init_thread() 920 skip_nr = cur_idx - prev_idx; in bch_dirty_init_thread() 943 prev_idx = cur_idx; in bch_dirty_init_thread()
|
/linux-6.1.9/arch/ia64/kernel/ |
D | mca_drv.c | 73 int cur_idx; /* Current index of section pointer list pool */ member 221 {slidx_list_t *hl = &slidx_pool.buffer[slidx_pool.cur_idx]; \ 224 slidx_pool.cur_idx = (slidx_pool.cur_idx + 1)%slidx_pool.max_idx; }
|
/linux-6.1.9/drivers/usb/dwc2/ |
D | hcd_ddma.c | 556 u16 cur_idx; in dwc2_init_isoc_dma_desc() local 562 cur_idx = dwc2_frame_list_idx(hsotg->frame_number); 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() 1000 u16 cur_idx; in dwc2_complete_isoc_xfer_ddma() local 1020 cur_idx = dwc2_frame_list_idx(hsotg->frame_number); in dwc2_complete_isoc_xfer_ddma() 1024 if (dwc2_frame_idx_num_gt(cur_idx, in dwc2_complete_isoc_xfer_ddma()
|
/linux-6.1.9/arch/x86/events/intel/ |
D | pt.c | 634 mask = (u64)buf->cur_idx; in pt_config_buffer() 827 buf->cur_idx++; in pt_buffer_advance() 829 if (buf->cur_idx == buf->cur->last) { in pt_buffer_advance() 835 buf->cur_idx = 0; in pt_buffer_advance() 859 for (topa_idx = 0; topa_idx < buf->cur_idx; topa_idx++) in pt_update_head() 880 return phys_to_virt(TOPA_ENTRY(buf->cur, buf->cur_idx)->base << TOPA_SHIFT); in pt_buffer_region() 889 return TOPA_ENTRY_SIZE(buf->cur, buf->cur_idx); in pt_buffer_region_size() 971 buf->cur_idx = (pt->output_mask & 0xffffff80) >> 7; in pt_read_offset() 1177 buf->cur_idx = te - TOPA_ENTRY(buf->cur, 0); in pt_buffer_reset_offsets()
|
D | pt.h | 78 unsigned int cur_idx; member
|
/linux-6.1.9/drivers/hid/ |
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-6.1.9/drivers/perf/ |
D | arm_smmuv3_pmu.c | 299 unsigned int cur_idx, num_ctrs = smmu_pmu->num_counters; in smmu_pmu_apply_event_filter() local 307 cur_idx = find_first_bit(smmu_pmu->used_counters, num_ctrs); in smmu_pmu_apply_event_filter() 312 if (!smmu_pmu->global_filter || cur_idx == num_ctrs) { in smmu_pmu_apply_event_filter() 318 if (smmu_pmu_check_global_filter(smmu_pmu->events[cur_idx], event)) { in smmu_pmu_apply_event_filter()
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt7601u/ |
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-6.1.9/net/mac80211/ |
D | rc80211_minstrel_ht.c | 541 int cur_group, cur_idx, cur_tp_avg, cur_prob; in minstrel_ht_sort_best_tp_rates() local 546 cur_idx = MI_RATE_IDX(index); in minstrel_ht_sort_best_tp_rates() 547 cur_prob = mi->groups[cur_group].rates[cur_idx].prob_avg; in minstrel_ht_sort_best_tp_rates() 548 cur_tp_avg = minstrel_ht_get_tp_avg(mi, cur_group, cur_idx, cur_prob); in minstrel_ht_sort_best_tp_rates() 580 int cur_tp_avg, cur_group, cur_idx; in minstrel_ht_set_best_prob_rate() local 585 cur_idx = MI_RATE_IDX(index); in minstrel_ht_set_best_prob_rate() 587 mrs = &mg->rates[cur_idx]; in minstrel_ht_set_best_prob_rate() 614 cur_tp_avg = minstrel_ht_get_tp_avg(mi, cur_group, cur_idx, in minstrel_ht_set_best_prob_rate()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/ |
D | rtw8852c_rfk.c | 1698 u8 kidx = dpk->cur_idx[path]; in _dpk_information() 1706 path, dpk->cur_idx[path], phy, in _dpk_information() 2291 dpk->cur_idx[path] = idx; in _dpk_reload_check() 2417 u8 kidx = dpk->cur_idx[path]; in _dpk_main() 2454 u8 kidx = dpk->cur_idx[path]; in _dpk_init() 2484 dpk->cur_idx[path] = !dpk->cur_idx[path]; in _dpk_cal_select() 2490 dpk->cur_idx[path] = 0; in _dpk_cal_select() 2496 path, dpk->cur_idx[path]); in _dpk_cal_select() 2508 path, dpk->cur_idx[path]); in _dpk_cal_select() 2519 path, dpk->cur_idx[path]); in _dpk_cal_select() [all …]
|
D | rtw8852a_rfk.c | 1883 u8 kidx = dpk->cur_idx[path]; in _dpk_information() 1891 path, dpk->cur_idx[path], phy, in _dpk_information() 2565 dpk->cur_idx[path] = idx; in _dpk_reload_check() 2578 u8 txagc = 0, kidx = dpk->cur_idx[path]; in _dpk_main() 2631 dpk->cur_idx[path] = !dpk->cur_idx[path]; in _dpk_cal_select() 2637 dpk->cur_idx[path] = 0; in _dpk_cal_select() 2729 u8 val, kidx = dpk->cur_idx[path]; in _dpk_onoff() 2752 kidx = dpk->cur_idx[path]; in _dpk_track()
|