/linux/drivers/clk/tegra/ |
H A D | clk-tegra210-emc.c | 126 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 in tegra210_clk_emc_set_rate() [all...] |
/linux/include/uapi/linux/ |
H A D | virtio_ring.h | 220 * we have just incremented index from old to new_idx, 222 static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old) in vring_need_event() argument 226 * corresponding to event_idx + 1 and new_idx respectively. in vring_need_event() 229 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); in vring_need_event()
|
/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 / in do_combined_scaletable() [all...] |
/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/drivers/cpuidle/governors/ |
H A D | ladder.c | 50 * @new_idx: the new target state index 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/regulator/ |
H A D | max8997-regulator.c | 621 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/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_cn9k.c | 355 u32 last_done, new_idx; in octep_vf_update_iq_read_index_cn93() local 360 new_idx = (iq->octep_vf_read_index + last_done) % iq->max_count; in octep_vf_update_iq_read_index_cn93() 362 return new_idx; in octep_vf_update_iq_read_index_cn93()
|
H A D | octep_vf_cnxk.c | 366 u32 last_done, new_idx; in octep_vf_update_iq_read_index_cnxk() local 371 new_idx = (iq->octep_vf_read_index + last_done) % iq->max_count; in octep_vf_update_iq_read_index_cnxk() 373 return new_idx; in octep_vf_update_iq_read_index_cnxk()
|
/linux/kernel/events/ |
H A D | hw_breakpoint.c | 240 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/drivers/net/dsa/microchip/ |
H A D | ksz9477_acl.c | 318 * @new_idx: The new index of the ACL entry after moving. 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/gpu/drm/nouveau/dispnv50/ |
H A D | crc.c | 93 u8 new_idx = crc->ctx_idx ^ 1; in nv50_crc_ctx_flip_work() local 106 crtc->name, 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()
|
/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/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp9_if.c | 264 int new_idx) in vp9_ref_cnt_fb() argument 286 *idx = new_idx; in vp9_ref_cnt_fb() 287 vsi->frm_bufs[new_idx].ref_cnt++; in vp9_ref_cnt_fb()
|
/linux/net/mac80211/ |
H A D | rc80211_minstrel_ht.c | 2017 int col, i, new_idx; in init_sample_table() local 2024 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table() 2025 while (sample_table[col][new_idx] != 0xff) in init_sample_table() 2026 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table() 2028 sample_table[col][new_idx] = i; in init_sample_table()
|
/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_cnxk_pf.c | 751 u32 last_done, new_idx; in octep_update_iq_read_index_cnxk_pf() local 756 new_idx = (iq->octep_read_index + last_done) % iq->max_count; in octep_update_iq_read_index_cnxk_pf() 758 return new_idx; in octep_update_iq_read_index_cnxk_pf()
|
H A D | octep_cn9k_pf.c | 728 u32 last_done, new_idx; in octep_update_iq_read_index_cn93_pf() local 733 new_idx = (iq->octep_read_index + last_done) % iq->max_count; in octep_update_iq_read_index_cn93_pf() 735 return new_idx; in octep_update_iq_read_index_cn93_pf()
|
/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()
|
/linux/fs/bcachefs/ |
H A D | trace.h | 1625 __field(u8, new_idx ) 1634 __entry->new_idx = new - trans->paths; 1649 __entry->new_idx)
|
/linux/drivers/video/fbdev/core/ |
H A D | fbcon.c | 2830 int i, new_idx = -1; in fbcon_fb_unbind() local 2843 new_idx = con2fb_map[i]; in fbcon_fb_unbind() 2848 if (new_idx != -1) { in fbcon_fb_unbind() 2851 set_con2fb_map(i, new_idx, 0); in fbcon_fb_unbind() 2860 * set_con2fb_map where new_idx is -1 in fbcon_fb_unbind()
|
/linux/fs/nfs/flexfilelayout/ |
H A D | flexfilelayout.c | 1074 u32 new_idx = 0; in ff_layout_resend_pnfs_read() local 1076 if (ff_layout_choose_any_ds_for_read(hdr->lseg, idx, &new_idx)) in ff_layout_resend_pnfs_read() 1080 pnfs_read_resend_pnfs(hdr, new_idx); in ff_layout_resend_pnfs_read()
|
/linux/drivers/nvme/host/ |
H A D | pci.c | 394 static inline int nvme_dbbuf_need_event(u16 event_idx, u16 new_idx, u16 old) in nvme_dbbuf_need_event() argument 396 return (u16)(new_idx - event_idx - 1) < (u16)(new_idx - old); in nvme_dbbuf_need_event()
|