Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.6.21/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.6.21/drivers/iio/
Dindustrialio-gts-helper.c183 int ret, i, j, new_idx, time_idx; in gain_to_scaletables() local
219 new_idx = gts->num_hwgain; in gain_to_scaletables()
226 if (candidate > all_gains[new_idx - 1]) { in gain_to_scaletables()
227 all_gains[new_idx] = candidate; in gain_to_scaletables()
228 new_idx++; in gain_to_scaletables()
232 for (chk = 0; chk < new_idx; chk++) in gain_to_scaletables()
240 (new_idx - chk) * sizeof(int)); in gain_to_scaletables()
242 new_idx++; in gain_to_scaletables()
246 gts->avail_all_scales_table = kcalloc(new_idx, 2 * sizeof(int), in gain_to_scaletables()
252 gts->num_avail_all_scales = new_idx; in gain_to_scaletables()
/linux-6.6.21/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.6.21/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.c1083 u32 new_idx; in cn23xx_update_read_index() local
1094 new_idx = (iq->octeon_read_index + in cn23xx_update_read_index()
1098 return new_idx; in cn23xx_update_read_index()
/linux-6.6.21/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.6.21/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.6.21/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.c1058 static u64 snbep_pcu_alter_er(struct perf_event *event, int new_idx, bool modify) in snbep_pcu_alter_er() argument
1064 if (new_idx > reg1->idx) in snbep_pcu_alter_er()
1065 config <<= 8 * (new_idx - reg1->idx); in snbep_pcu_alter_er()
1067 config >>= 8 * (reg1->idx - new_idx); in snbep_pcu_alter_er()
1070 hwc->config += new_idx - reg1->idx; in snbep_pcu_alter_er()
1072 reg1->idx = new_idx; in snbep_pcu_alter_er()
/linux-6.6.21/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.6.21/tools/objtool/
Delf.c731 Elf32_Word first_non_local, new_idx; in __elf_create_symbol() local
742 new_idx = sec_num_entries(symtab); in __elf_create_symbol()
756 elf_hash_add(symbol, &old->hash, new_idx); in __elf_create_symbol()
757 old->idx = new_idx; in __elf_create_symbol()
767 new_idx = first_non_local; in __elf_create_symbol()
776 sym->idx = new_idx; in __elf_create_symbol()
/linux-6.6.21/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.6.21/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.6.21/drivers/net/ethernet/marvell/octeon_ep/
Doctep_cn9k_pf.c599 u32 last_done, new_idx; in octep_update_iq_read_index_cn93_pf() local
604 new_idx = (iq->octep_read_index + last_done) % iq->max_count; in octep_update_iq_read_index_cn93_pf()
606 return new_idx; in octep_update_iq_read_index_cn93_pf()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_rule.c260 int new_idx; in dr_rule_rehash_copy_ste() local
271 new_idx = mlx5dr_ste_calc_hash_index(hw_ste, new_htbl); in dr_rule_rehash_copy_ste()
272 new_ste = &new_htbl->chunk->ste_arr[new_idx]; in dr_rule_rehash_copy_ste()
286 new_idx); in dr_rule_rehash_copy_ste()
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/vdec/
Dvdec_vp9_if.c263 int new_idx) in vp9_ref_cnt_fb() argument
285 *idx = new_idx; in vp9_ref_cnt_fb()
286 vsi->frm_bufs[new_idx].ref_cnt++; in vp9_ref_cnt_fb()
/linux-6.6.21/net/mac80211/
Drc80211_minstrel_ht.c2025 int col, i, new_idx; in init_sample_table() local
2032 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
2033 while (sample_table[col][new_idx] != 0xff) in init_sample_table()
2034 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table()
2036 sample_table[col][new_idx] = i; in init_sample_table()
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c353 u16 new_idx = 0, num_bds = 0, num_bds_in_packet = 0; in qed_ll2_txq_completion() local
368 new_idx = le16_to_cpu(*p_tx->p_fw_cons); in qed_ll2_txq_completion()
369 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in qed_ll2_txq_completion()
885 u16 new_idx = 0, num_bds = 0; in qed_ll2_lb_txq_completion() local
894 new_idx = le16_to_cpu(*p_tx->p_fw_cons); in qed_ll2_lb_txq_completion()
895 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in qed_ll2_lb_txq_completion()
/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c1239 unsigned long new_idx, new_pteg, replace_vpte; in resize_hpt_rehash_hpte() local
1342 new_idx = new_pteg * HPTES_PER_GROUP + (idx % HPTES_PER_GROUP); in resize_hpt_rehash_hpte()
1343 new_hptep = (__be64 *)(new->virt + (new_idx << 4)); in resize_hpt_rehash_hpte()
1371 new->rev[new_idx].guest_rpte = guest_rpte; in resize_hpt_rehash_hpte()
/linux-6.6.21/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.6.21/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.6.21/drivers/video/fbdev/core/
Dfbcon.c2821 int i, new_idx = -1; in fbcon_fb_unbind() local
2834 new_idx = con2fb_map[i]; in fbcon_fb_unbind()
2839 if (new_idx != -1) { in fbcon_fb_unbind()
2842 set_con2fb_map(i, new_idx, 0); in fbcon_fb_unbind()
/linux-6.6.21/drivers/nvme/host/
Dpci.c346 static inline int nvme_dbbuf_need_event(u16 event_idx, u16 new_idx, u16 old) in nvme_dbbuf_need_event() argument
348 return (u16)(new_idx - event_idx - 1) < (u16)(new_idx - old); in nvme_dbbuf_need_event()

12