Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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 …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dvirtio_ring.h72 static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old) in vring_need_event() argument
75 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); in vring_need_event()
/kernel/linux/linux-5.10/include/uapi/linux/
Dvirtio_ring.h216 static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old) in vring_need_event() argument
223 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); in vring_need_event()
/kernel/linux/linux-5.10/kernel/sched/
Dcpudeadline.c225 int new_idx = cp->size++; in cpudl_set() local
227 cp->elements[new_idx].dl = dl; in cpudl_set()
228 cp->elements[new_idx].cpu = cpu; in cpudl_set()
229 cp->elements[cpu].idx = new_idx; in cpudl_set()
230 cpudl_heapify_up(cp, new_idx); in cpudl_set()
/kernel/linux/linux-5.10/net/mac80211/
Drc80211_minstrel.c442 unsigned int i, col, new_idx; in init_sample_table() local
452 new_idx = (i + rnd[i & 7]) % mi->n_rates; in init_sample_table()
453 while (SAMPLE_TBL(mi, new_idx, col) != 0xff) in init_sample_table()
454 new_idx = (new_idx + 1) % mi->n_rates; in init_sample_table()
456 SAMPLE_TBL(mi, new_idx, col) = i; in init_sample_table()
Drc80211_minstrel_ht.c1744 int col, i, new_idx; in init_sample_table() local
1751 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
1752 while (sample_table[col][new_idx] != 0xff) in init_sample_table()
1753 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table()
1755 sample_table[col][new_idx] = i; in init_sample_table()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/kernel/events/
Dhw_breakpoint.c176 int old_idx, new_idx; in toggle_bp_task_slot() local
179 new_idx = old_idx + weight; in toggle_bp_task_slot()
183 if (new_idx >= 0) in toggle_bp_task_slot()
184 tsk_pinned[new_idx]++; in toggle_bp_task_slot()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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.c1036 static u64 snbep_pcu_alter_er(struct perf_event *event, int new_idx, bool modify) in snbep_pcu_alter_er() argument
1042 if (new_idx > reg1->idx) in snbep_pcu_alter_er()
1043 config <<= 8 * (new_idx - reg1->idx); in snbep_pcu_alter_er()
1045 config >>= 8 * (reg1->idx - new_idx); in snbep_pcu_alter_er()
1048 hwc->config += new_idx - reg1->idx; in snbep_pcu_alter_er()
1050 reg1->idx = new_idx; in snbep_pcu_alter_er()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dlpar.c1043 unsigned long i, rc, new_idx; in call_block_remove() local
1051 new_idx = 0; in call_block_remove()
1072 param[++new_idx] = param[i+1]; in call_block_remove()
1084 if (new_idx && (retry_busy || new_idx == (PLPAR_HCALL9_BUFSIZE-1))) { in call_block_remove()
1085 idx = new_idx + 1; in call_block_remove()
1089 return new_idx; in call_block_remove()
/kernel/linux/linux-5.10/tools/objtool/
Delf.c695 Elf32_Word first_non_local, new_idx; in elf_create_section_symbol() local
726 new_idx = symtab->sh.sh_size / symtab->sh.sh_entsize; in elf_create_section_symbol()
729 old->idx = new_idx; in elf_create_section_symbol()
741 new_idx = first_non_local; in elf_create_section_symbol()
744 sym->idx = new_idx; in elf_create_section_symbol()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
Dcrc.c88 u8 new_idx = crc->ctx_idx ^ 1; in nv50_crc_ctx_flip_work() local
106 drm_crtc_index(crtc), crc->ctx_idx, new_idx); in nv50_crc_ctx_flip_work()
109 nv50_crc_program_ctx(head, &crc->ctx[new_idx]); in nv50_crc_ctx_flip_work()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_rule.c231 int new_idx; in dr_rule_rehash_copy_ste() local
242 new_idx = mlx5dr_ste_calc_hash_index(hw_ste, new_htbl); in dr_rule_rehash_copy_ste()
243 new_ste = &new_htbl->ste_arr[new_idx]; in dr_rule_rehash_copy_ste()
257 new_idx); in dr_rule_rehash_copy_ste()
/kernel/linux/linux-5.10/drivers/media/platform/mtk-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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c324 u16 new_idx = 0, num_bds = 0, num_bds_in_packet = 0; in qed_ll2_txq_completion() local
339 new_idx = le16_to_cpu(*p_tx->p_fw_cons); in qed_ll2_txq_completion()
340 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in qed_ll2_txq_completion()
859 u16 new_idx = 0, num_bds = 0; in qed_ll2_lb_txq_completion() local
868 new_idx = le16_to_cpu(*p_tx->p_fw_cons); in qed_ll2_lb_txq_completion()
869 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in qed_ll2_lb_txq_completion()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c1241 unsigned long new_idx, new_pteg, replace_vpte; in resize_hpt_rehash_hpte() local
1344 new_idx = new_pteg * HPTES_PER_GROUP + (idx % HPTES_PER_GROUP); in resize_hpt_rehash_hpte()
1345 new_hptep = (__be64 *)(new->virt + (new_idx << 4)); in resize_hpt_rehash_hpte()
1373 new->rev[new_idx].guest_rpte = guest_rpte; in resize_hpt_rehash_hpte()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/nfs/flexfilelayout/
Dflexfilelayout.c1057 u32 new_idx = 0; in ff_layout_resend_pnfs_read() local
1059 if (ff_layout_choose_any_ds_for_read(hdr->lseg, idx, &new_idx)) in ff_layout_resend_pnfs_read()
1063 pnfs_read_resend_pnfs(hdr, new_idx); in ff_layout_resend_pnfs_read()
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dfbcon.c2852 int i, new_idx = -1, ret = 0; in fbcon_fb_unbind() local
2863 new_idx = con2fb_map[i]; in fbcon_fb_unbind()
2868 if (new_idx != -1) { in fbcon_fb_unbind()
2871 set_con2fb_map(i, new_idx, 0); in fbcon_fb_unbind()
/kernel/linux/linux-5.10/drivers/nvme/host/
Dpci.c331 static inline int nvme_dbbuf_need_event(u16 event_idx, u16 new_idx, u16 old) in nvme_dbbuf_need_event() argument
333 return (u16)(new_idx - event_idx - 1) < (u16)(new_idx - old); in nvme_dbbuf_need_event()

12