Home
last modified time | relevance | path

Searched refs:new_idx (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.1.9/drivers/clk/tegra/
Dclk-tegra210-emc.c126 u8 old_idx, new_idx, index; in tegra210_clk_emc_set_rate() local
145 new_idx = FIELD_GET(CLK_SOURCE_EMC_2X_CLK_SRC, config->value); in tegra210_clk_emc_set_rate()
148 new = clk_hw_get_parent_by_index(hw, new_idx); in tegra210_clk_emc_set_rate()
153 if (new_idx == old_idx) { in tegra210_clk_emc_set_rate()
155 switch (new_idx) { in tegra210_clk_emc_set_rate()
157 new_idx = CLK_SRC_PLLMB; in tegra210_clk_emc_set_rate()
161 new_idx = CLK_SRC_PLLMB_UD; in tegra210_clk_emc_set_rate()
165 new_idx = CLK_SRC_PLLM_UD; in tegra210_clk_emc_set_rate()
169 new_idx = CLK_SRC_PLLM; in tegra210_clk_emc_set_rate()
177 if (WARN_ON(new_idx == old_idx)) in tegra210_clk_emc_set_rate()
[all …]
/linux-6.1.9/include/uapi/linux/
Dvirtio_ring.h222 static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old) in vring_need_event() argument
229 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); in vring_need_event()
/linux-6.1.9/kernel/sched/
Dcpudeadline.c224 int new_idx = cp->size++; in cpudl_set() local
226 cp->elements[new_idx].dl = dl; in cpudl_set()
227 cp->elements[new_idx].cpu = cpu; in cpudl_set()
228 cp->elements[cpu].idx = new_idx; in cpudl_set()
229 cpudl_heapify_up(cp, new_idx); in cpudl_set()
/linux-6.1.9/drivers/net/ethernet/cavium/liquidio/
Dcn66xx_device.c451 u32 new_idx = readl(iq->inst_cnt_reg); in lio_cn6xxx_update_read_index() local
457 if (iq->reset_instr_cnt < new_idx) in lio_cn6xxx_update_read_index()
458 new_idx -= iq->reset_instr_cnt; in lio_cn6xxx_update_read_index()
460 new_idx += (0xffffffff - iq->reset_instr_cnt) + 1; in lio_cn6xxx_update_read_index()
465 new_idx %= iq->max_count; in lio_cn6xxx_update_read_index()
467 return new_idx; in lio_cn6xxx_update_read_index()
Dcn23xx_vf_device.c528 u32 new_idx; in cn23xx_update_read_index() local
537 new_idx = (iq->octeon_read_index + in cn23xx_update_read_index()
541 return new_idx; in cn23xx_update_read_index()
Dcn23xx_pf_device.c1085 u32 new_idx; in cn23xx_update_read_index() local
1096 new_idx = (iq->octeon_read_index + in cn23xx_update_read_index()
1100 return new_idx; in cn23xx_update_read_index()
/linux-6.1.9/drivers/cpuidle/governors/
Dladder.c53 int old_idx, int new_idx) in ladder_do_selection() argument
57 dev->last_state_idx = new_idx; in ladder_do_selection()
/linux-6.1.9/drivers/regulator/
Dmax8997-regulator.c621 int new_val, new_idx, damage, tmp_val, tmp_idx, tmp_dmg; in max8997_set_voltage_buck() local
655 damage = max8997_assess_side_effect(rdev, new_val, &new_idx); in max8997_set_voltage_buck()
660 tmp_idx = new_idx; in max8997_set_voltage_buck()
668 new_idx = tmp_idx; in max8997_set_voltage_buck()
679 if (new_idx < 0 || new_val < 0) in max8997_set_voltage_buck()
682 max8997->buck125_gpioindex = new_idx; in max8997_set_voltage_buck()
/linux-6.1.9/arch/x86/events/intel/
Duncore_nhmex.c629 static u64 nhmex_mbox_alter_er(struct perf_event *event, int new_idx, bool modify) in nhmex_mbox_alter_er() argument
642 if (new_idx > orig_idx) { in nhmex_mbox_alter_er()
643 idx = new_idx - orig_idx; in nhmex_mbox_alter_er()
646 idx = orig_idx - new_idx; in nhmex_mbox_alter_er()
658 if (new_idx > orig_idx) in nhmex_mbox_alter_er()
663 reg1->idx = ~0xff | new_idx; in nhmex_mbox_alter_er()
Duncore_snbep.c1056 static u64 snbep_pcu_alter_er(struct perf_event *event, int new_idx, bool modify) in snbep_pcu_alter_er() argument
1062 if (new_idx > reg1->idx) in snbep_pcu_alter_er()
1063 config <<= 8 * (new_idx - reg1->idx); in snbep_pcu_alter_er()
1065 config >>= 8 * (reg1->idx - new_idx); in snbep_pcu_alter_er()
1068 hwc->config += new_idx - reg1->idx; in snbep_pcu_alter_er()
1070 reg1->idx = new_idx; in snbep_pcu_alter_er()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dlpar.c1091 unsigned long i, rc, new_idx; in call_block_remove() local
1099 new_idx = 0; in call_block_remove()
1120 param[++new_idx] = param[i+1]; in call_block_remove()
1132 if (new_idx && (retry_busy || new_idx == (PLPAR_HCALL9_BUFSIZE-1))) { in call_block_remove()
1133 idx = new_idx + 1; in call_block_remove()
1137 return new_idx; in call_block_remove()
/linux-6.1.9/kernel/events/
Dhw_breakpoint.c240 const int new_idx = old_idx + val; in bp_slots_histogram_add() local
244 if (new_idx >= 0) in bp_slots_histogram_add()
245 WARN_ON(atomic_inc_return_relaxed(&hist->count[new_idx]) < 0); in bp_slots_histogram_add()
/linux-6.1.9/tools/objtool/
Delf.c736 Elf32_Word first_non_local, new_idx; in elf_create_section_symbol() local
767 new_idx = symtab->sh.sh_size / symtab->sh.sh_entsize; in elf_create_section_symbol()
770 old->idx = new_idx; in elf_create_section_symbol()
782 new_idx = first_non_local; in elf_create_section_symbol()
785 sym->idx = new_idx; in elf_create_section_symbol()
/linux-6.1.9/drivers/gpu/drm/nouveau/dispnv50/
Dcrc.c91 u8 new_idx = crc->ctx_idx ^ 1; in nv50_crc_ctx_flip_work() local
104 crtc->name, crc->ctx_idx, new_idx); in nv50_crc_ctx_flip_work()
107 nv50_crc_program_ctx(head, &crc->ctx[new_idx]); in nv50_crc_ctx_flip_work()
/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/
Doctep_cn9k_pf.c582 u32 last_done, new_idx; in octep_update_iq_read_index_cn93_pf() local
587 new_idx = (iq->octep_read_index + last_done) % iq->max_count; in octep_update_iq_read_index_cn93_pf()
589 return new_idx; in octep_update_iq_read_index_cn93_pf()
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/vdec/
Dvdec_vp9_if.c262 int new_idx) in vp9_ref_cnt_fb() argument
284 *idx = new_idx; in vp9_ref_cnt_fb()
285 vsi->frm_bufs[new_idx].ref_cnt++; in vp9_ref_cnt_fb()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_rule.c242 int new_idx; in dr_rule_rehash_copy_ste() local
254 new_idx = mlx5dr_ste_calc_hash_index(hw_ste, new_htbl); in dr_rule_rehash_copy_ste()
255 new_ste = &new_htbl->chunk->ste_arr[new_idx]; in dr_rule_rehash_copy_ste()
269 new_idx); in dr_rule_rehash_copy_ste()
/linux-6.1.9/net/mac80211/
Drc80211_minstrel_ht.c2034 int col, i, new_idx; in init_sample_table() local
2041 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
2042 while (sample_table[col][new_idx] != 0xff) in init_sample_table()
2043 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table()
2045 sample_table[col][new_idx] = i; in init_sample_table()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c350 u16 new_idx = 0, num_bds = 0, num_bds_in_packet = 0; in qed_ll2_txq_completion() local
365 new_idx = le16_to_cpu(*p_tx->p_fw_cons); in qed_ll2_txq_completion()
366 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in qed_ll2_txq_completion()
883 u16 new_idx = 0, num_bds = 0; in qed_ll2_lb_txq_completion() local
892 new_idx = le16_to_cpu(*p_tx->p_fw_cons); in qed_ll2_lb_txq_completion()
893 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in qed_ll2_lb_txq_completion()
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c1224 unsigned long new_idx, new_pteg, replace_vpte; in resize_hpt_rehash_hpte() local
1327 new_idx = new_pteg * HPTES_PER_GROUP + (idx % HPTES_PER_GROUP); in resize_hpt_rehash_hpte()
1328 new_hptep = (__be64 *)(new->virt + (new_idx << 4)); in resize_hpt_rehash_hpte()
1356 new->rev[new_idx].guest_rpte = guest_rpte; in resize_hpt_rehash_hpte()
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/
D3945.c1923 s32 setting_idx, s32 *new_idx) in il3945_hw_reg_get_matched_power_idx() argument
1939 *new_idx = samples[i].gain_idx; in il3945_hw_reg_get_matched_power_idx()
1967 *new_idx = res >> 19; in il3945_hw_reg_get_matched_power_idx()
/linux-6.1.9/fs/nfs/flexfilelayout/
Dflexfilelayout.c1050 u32 new_idx = 0; in ff_layout_resend_pnfs_read() local
1052 if (ff_layout_choose_any_ds_for_read(hdr->lseg, idx, &new_idx)) in ff_layout_resend_pnfs_read()
1056 pnfs_read_resend_pnfs(hdr, new_idx); in ff_layout_resend_pnfs_read()
/linux-6.1.9/drivers/video/fbdev/core/
Dfbcon.c2831 int i, new_idx = -1; in fbcon_fb_unbind() local
2844 new_idx = con2fb_map[i]; in fbcon_fb_unbind()
2849 if (new_idx != -1) { in fbcon_fb_unbind()
2852 set_con2fb_map(i, new_idx, 0); in fbcon_fb_unbind()
/linux-6.1.9/drivers/nvme/host/
Dpci.c335 static inline int nvme_dbbuf_need_event(u16 event_idx, u16 new_idx, u16 old) in nvme_dbbuf_need_event() argument
337 return (u16)(new_idx - event_idx - 1) < (u16)(new_idx - old); in nvme_dbbuf_need_event()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c1251 u32 v, new_idx; in cxgb4_set_rspq_intr_params() local
1253 new_idx = closest_thres(&adap->sge, cnt); in cxgb4_set_rspq_intr_params()
1254 if (q->desc && q->pktcnt_idx != new_idx) { in cxgb4_set_rspq_intr_params()
1261 &v, &new_idx); in cxgb4_set_rspq_intr_params()
1265 q->pktcnt_idx = new_idx; in cxgb4_set_rspq_intr_params()

12