Home
last modified time | relevance | path

Searched refs:cur_idx (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_dpmaif_tx.c87 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()
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()
236 drb_skb->index = cur_idx; in t7xx_record_drb_skb()
270 cur_idx = txq->drb_wr_idx; in t7xx_dpmaif_add_skb_to_ring()
271 drb_wr_idx_backup = cur_idx; in t7xx_dpmaif_add_skb_to_ring()
301 cur_idx = t7xx_ring_buf_get_next_wr_idx(txq->drb_size_cnt, cur_idx); in t7xx_dpmaif_add_skb_to_ring()
322 cur_idx = cur_idx ? cur_idx - 1 : txq->drb_size_cnt - 1; in t7xx_dpmaif_add_skb_to_ring()
[all …]
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_release.c290 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()
338 …release)->release_offset = qdev->current_release_bo_offset[cur_idx] * release_size_per_bo[cur_idx]; in qxl_alloc_release_reserved()
[all …]
H A Dqxl_kms.c285 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()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Ddtl.c265 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()
/openbmc/linux/arch/arm64/kvm/
H A Dvmid.c94 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()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dfwsignal.c1742 rfi->pktslots[rfi->cur_idx] = pkt; in brcmf_fws_rxreorder()
1756 rfi->pktslots[cur_idx] = NULL; in brcmf_fws_rxreorder()
1758 rfi->pktslots[cur_idx] = pkt; in brcmf_fws_rxreorder()
1760 rfi->cur_idx = cur_idx; in brcmf_fws_rxreorder()
1769 if (rfi->exp_idx == cur_idx) { in brcmf_fws_rxreorder()
1773 rfi->pktslots[cur_idx] = NULL; in brcmf_fws_rxreorder()
1775 rfi->pktslots[cur_idx] = pkt; in brcmf_fws_rxreorder()
1784 rfi->cur_idx = cur_idx; in brcmf_fws_rxreorder()
1797 cur_idx, exp_idx); in brcmf_fws_rxreorder()
1810 rfi->pktslots[cur_idx] = pkt; in brcmf_fws_rxreorder()
[all …]
/openbmc/linux/arch/csky/mm/
H A Dasid.c82 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()
/openbmc/linux/arch/mips/mm/
H A Dcontext.c126 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()
/openbmc/linux/arch/arm/mm/
H A Dcontext.c191 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()
/openbmc/linux/arch/riscv/mm/
H A Dcontext.c97 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()
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A Dsar.c446 tas->cur_idx = 0; in rtw89_tas_reset()
483 tas->total_txpwr += txpwr - tas->txpwr_history[tas->cur_idx]; in rtw89_tas_track()
484 tas->txpwr_history[tas->cur_idx] = txpwr; in rtw89_tas_track()
489 tas->cur_idx = (tas->cur_idx + 1) % RTW89_TAS_MAX_WINDOW; in rtw89_tas_track()
/openbmc/linux/arch/arm64/mm/
H A Dcontext.c160 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()
/openbmc/linux/drivers/md/bcache/
H A Djournal.c277 ja->cur_idx = i; in bch_journal_read()
638 if (ja->cur_idx >= ja->discard_idx) in free_journal_buckets()
639 n = ca->sb.njournal_buckets + ja->discard_idx - ja->cur_idx; in free_journal_buckets()
641 n = ja->discard_idx - ja->cur_idx; in free_journal_buckets()
666 while (ja->last_idx != ja->cur_idx && in journal_reclaim()
679 ja->cur_idx = (ja->cur_idx + 1) % ca->sb.njournal_buckets; in journal_reclaim()
681 bucket_to_sector(c, ca->sb.d[ja->cur_idx]), in journal_reclaim()
808 ca->journal.seq[ca->journal.cur_idx] = w->data->seq; in journal_write_unlocked()
H A Djournal.h137 unsigned int cur_idx; member
H A Dwriteback.c913 int cur_idx, prev_idx, skip_nr; in bch_dirty_init_thread() local
926 cur_idx = state->key_idx; in bch_dirty_init_thread()
930 skip_nr = cur_idx - prev_idx; in bch_dirty_init_thread()
953 prev_idx = cur_idx; in bch_dirty_init_thread()
/openbmc/qemu/block/
H A Dblklogwrites.c131 uint64_t cur_idx = 0; in blk_log_writes_find_cur_log_sector() local
135 while (cur_idx < nr_entries) { in blk_log_writes_find_cur_log_sector()
140 "Failed to read log entry %"PRIu64, cur_idx); in blk_log_writes_find_cur_log_sector()
146 le64_to_cpu(cur_entry.flags), cur_idx); in blk_log_writes_find_cur_log_sector()
161 ++cur_idx; in blk_log_writes_find_cur_log_sector()
/openbmc/linux/arch/ia64/kernel/
H A Dmca_drv.c73 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; }
/openbmc/linux/drivers/usb/dwc2/
H A Dhcd_ddma.c556 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()
/openbmc/linux/arch/x86/events/intel/
H A Dpt.h78 unsigned int cur_idx; member
H A Dpt.c634 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((phys_addr_t)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()
/openbmc/linux/tools/testing/cxl/test/
H A Dmem.c129 u16 cur_idx; member
169 return log->events[log->cur_idx]; in event_get_current()
174 log->cur_idx = 0; in event_reset_log()
188 u16 cur_handle = log->cur_idx + 1; in event_get_cur_event_handle()
195 return log->cur_idx == log->nr_events; in event_log_empty()
249 log->cur_idx++; in mock_get_event()
292 if (log->clear_idx + pl->nr_recs > log->cur_idx) { in mock_clear_event()
/openbmc/openbmc/poky/meta/recipes-connectivity/openssl/openssl/
H A D0001-Added-handshake-history-reporting-when-test-fails.patch322 + size_t cur_idx;
342 + cur_idx = (first_idx + i) & MAX_HANDSHAKE_HISTORY_ENTRY_IDX_MASK;
343 + cur_entry = &(history->entries)[cur_idx];
/openbmc/linux/drivers/hid/
H A Dhid-input.c108 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()
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dmac.c70 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()
/openbmc/linux/drivers/perf/
H A Darm_smmuv3_pmu.c330 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()

12