| /linux/drivers/clk/tegra/ |
| H A D | clk-tegra210-emc.c | 134 u8 old_idx, new_idx, index; in tegra210_clk_emc_set_rate() local 153 new_idx = FIELD_GET(CLK_SOURCE_EMC_2X_CLK_SRC, config->value); in tegra210_clk_emc_set_rate() 156 new = clk_hw_get_parent_by_index(hw, new_idx); in tegra210_clk_emc_set_rate() 161 if (new_idx == old_idx) { in tegra210_clk_emc_set_rate() 163 switch (new_idx) { in tegra210_clk_emc_set_rate() 165 new_idx = CLK_SRC_PLLMB; in tegra210_clk_emc_set_rate() 169 new_idx = CLK_SRC_PLLMB_UD; in tegra210_clk_emc_set_rate() 173 new_idx = CLK_SRC_PLLM_UD; in tegra210_clk_emc_set_rate() 177 new_idx = CLK_SRC_PLLM; in tegra210_clk_emc_set_rate() 185 if (WARN_ON(new_idx == old_idx)) in tegra210_clk_emc_set_rate() [all …]
|
| /linux/kernel/sched/ |
| H A D | cpudeadline.c | 229 int new_idx = cp->size++; in cpudl_set() local 231 cp->elements[new_idx].dl = dl; in cpudl_set() 232 cp->elements[new_idx].cpu = cpu; in cpudl_set() 233 cp->elements[cpu].idx = new_idx; in cpudl_set() 234 cpudl_heapify_up(cp, new_idx); in cpudl_set()
|
| /linux/drivers/iio/ |
| H A D | industrialio-gts-helper.c | 184 int t_idx, i, new_idx; in do_combined_scaletable() local 204 new_idx = gts->num_hwgain * 2; in do_combined_scaletable() 211 if (scale_smaller(candidate, &all_scales[new_idx - 2])) { in do_combined_scaletable() 212 all_scales[new_idx] = candidate[0]; in do_combined_scaletable() 213 all_scales[new_idx + 1] = candidate[1]; in do_combined_scaletable() 214 new_idx += 2; in do_combined_scaletable() 218 for (chk = 0; chk < new_idx; chk += 2) in do_combined_scaletable() 226 (new_idx - chk) * sizeof(int)); in do_combined_scaletable() 229 new_idx += 2; in do_combined_scaletable() 233 gts->num_avail_all_scales = new_idx / 2; in do_combined_scaletable()
|
| /linux/drivers/cpuidle/governors/ |
| H A D | ladder.c | 54 int old_idx, int new_idx) in ladder_do_selection() argument 58 dev->last_state_idx = new_idx; in ladder_do_selection()
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | cn66xx_device.c | 451 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()
|
| H A D | cn23xx_vf_device.c | 528 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()
|
| H A D | cn23xx_pf_device.c | 914 u32 new_idx; in cn23xx_update_read_index() local 925 new_idx = (iq->octeon_read_index + in cn23xx_update_read_index() 929 return new_idx; in cn23xx_update_read_index()
|
| /linux/kernel/events/ |
| H A D | hw_breakpoint.c | 241 const int new_idx = old_idx + val; in bp_slots_histogram_add() local 245 if (new_idx >= 0) in bp_slots_histogram_add() 246 WARN_ON(atomic_inc_return_relaxed(&hist->count[new_idx]) < 0); in bp_slots_histogram_add()
|
| /linux/tools/objtool/ |
| H A D | elf.c | 900 Elf32_Word first_non_local, new_idx; in elf_update_symbol() 943 new_idx = sec_num_entries(symtab); in elf_create_symbol() 957 elf_hash_add(symbol, &old->hash, new_idx); in elf_create_symbol() 958 old->idx = new_idx; in elf_create_symbol() 969 old->group_sec->sh.sh_info = new_idx; in elf_create_symbol() 973 new_idx = first_non_local; in elf_create_symbol() 982 sym->idx = new_idx; in elf_create_symbol() 919 Elf32_Word first_non_local, new_idx; elf_create_symbol() local
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz9477_acl.c | 334 u16 old_idx, u16 new_idx) in ksz9477_acl_update_linkage() argument 361 val0 = new_idx; in ksz9477_acl_update_linkage() 364 shift = new_idx - old_idx; in ksz9477_acl_update_linkage()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_rule.c | 260 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/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_ll2.c | 353 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/arch/powerpc/kvm/ |
| H A D | book3s_64_mmu_hv.c | 1210 unsigned long new_idx, new_pteg, replace_vpte; in resize_hpt_rehash_hpte() local 1313 new_idx = new_pteg * HPTES_PER_GROUP + (idx % HPTES_PER_GROUP); in resize_hpt_rehash_hpte() 1314 new_hptep = (__be64 *)(new->virt + (new_idx << 4)); in resize_hpt_rehash_hpte() 1342 new->rev[new_idx].guest_rpte = guest_rpte; in resize_hpt_rehash_hpte()
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 3945.c | 1923 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()
|