Home
last modified time | relevance | path

Searched refs:ci_start (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/huawei/hinic3/
H A Dhinic3_nic_io.c513 u16 pi_start, ci_start; in hinic3_sq_prepare_ctxt() local
515 ci_start = hinic3_get_sq_local_ci(sq); in hinic3_sq_prepare_ctxt()
529 cpu_to_le32(SQ_CTXT_CI_PI_SET(ci_start, CI_IDX) | in hinic3_sq_prepare_ctxt()
563 cpu_to_le32(SQ_CTXT_PREF_SET(SQ_CTXT_PREF_CI_HI(ci_start), CI_HI) | in hinic3_sq_prepare_ctxt()
567 cpu_to_le32(SQ_CTXT_PREF_SET(ci_start, CI_LOW) | in hinic3_sq_prepare_ctxt()
602 u16 pi_start, ci_start; in hinic3_rq_prepare_ctxt() local
604 ci_start = (rq->wq.cons_idx & rq->wq.idx_mask) << HINIC3_NORMAL_RQ_WQE; in hinic3_rq_prepare_ctxt()
611 cpu_to_le32(RQ_CTXT_CI_PI_SET(ci_start, CI_IDX) | in hinic3_rq_prepare_ctxt()
635 cpu_to_le32(RQ_CTXT_PREF_SET(RQ_CTXT_PREF_CI_HI(ci_start), in hinic3_rq_prepare_ctxt()
641 RQ_CTXT_PREF_SET(ci_start, CI_LOW)); in hinic3_rq_prepare_ctxt()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_qp.c97 u16 pi_start, ci_start; in hinic_sq_prepare_ctxt() local
101 ci_start = atomic_read(&wq->cons_idx); in hinic_sq_prepare_ctxt()
124 sq_ctxt->ci_wrapped = HINIC_SQ_CTXT_CI_SET(ci_start, IDX) | in hinic_sq_prepare_ctxt()
141 HINIC_SQ_CTXT_PREF_SET(ci_start, CI) | in hinic_sq_prepare_ctxt()
159 u16 pi_start, ci_start; in hinic_rq_prepare_ctxt() local
163 ci_start = atomic_read(&wq->cons_idx); in hinic_rq_prepare_ctxt()
185 HINIC_RQ_CTXT_WQ_PAGE_SET(ci_start, CI); in hinic_rq_prepare_ctxt()
198 HINIC_RQ_CTXT_PREF_SET(ci_start, CI); in hinic_rq_prepare_ctxt()
/linux/mm/
H A Dswap_state.c263 unsigned int ci_start, ci_off, ci_end; in __swap_cache_do_del_folio() local
273 ci_start = swp_cluster_offset(entry); in __swap_cache_do_del_folio()
274 ci_end = ci_start + nr_pages; in __swap_cache_do_del_folio()
275 ci_off = ci_start; in __swap_cache_do_del_folio()
293 __swap_cluster_free_entries(si, ci, ci_start, nr_pages); in __swap_cache_do_del_folio()
295 ci_off = ci_start; in __swap_cache_do_del_folio()
H A Dpage_io.c402 unsigned int ci_start = swp_cluster_offset(entry); in swap_zeromap_batch() local
405 VM_WARN_ON_ONCE(ci_start + max_nr > SWAPFILE_CLUSTER); in swap_zeromap_batch()
408 is_zero = __swap_table_test_zero(ci, ci_start); in swap_zeromap_batch()
410 if (is_zero != __swap_table_test_zero(ci, ci_start + i)) in swap_zeromap_batch()
H A Dswapfile.c1700 unsigned int ci_start, ci_off, ci_end; in swap_dup_entries_cluster() local
1702 ci_start = offset % SWAPFILE_CLUSTER; in swap_dup_entries_cluster()
1703 ci_end = ci_start + nr; in swap_dup_entries_cluster()
1704 ci_off = ci_start; in swap_dup_entries_cluster()
1723 while (ci_off-- > ci_start) in swap_dup_entries_cluster()
1917 unsigned int ci_start, unsigned int nr_pages) in __swap_cluster_free_entries() argument
1921 unsigned int ci_off = ci_start, ci_end = ci_start + nr_pages; in __swap_cluster_free_entries()
1957 swap_range_free(si, ci_head + ci_start, nr_pages); in __swap_cluster_free_entries()
1958 swap_cluster_assert_empty(ci, ci_start, nr_pages, false); in __swap_cluster_free_entries()