/linux-master/drivers/clk/tegra/ |
H A D | clk-tegra210-emc.c | 126 u8 old_idx, new_idx, index; local 145 new_idx = FIELD_GET(CLK_SOURCE_EMC_2X_CLK_SRC, config->value); 148 new = clk_hw_get_parent_by_index(hw, new_idx); 153 if (new_idx == old_idx) { 155 switch (new_idx) { 157 new_idx = CLK_SRC_PLLMB; 161 new_idx = CLK_SRC_PLLMB_UD; 165 new_idx = CLK_SRC_PLLM_UD; 169 new_idx = CLK_SRC_PLLM; 177 if (WARN_ON(new_idx [all...] |
/linux-master/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) argument 226 * corresponding to event_idx + 1 and new_idx respectively. 229 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old);
|
/linux-master/kernel/sched/ |
H A D | cpudeadline.c | 224 int new_idx = cp->size++; local 226 cp->elements[new_idx].dl = dl; 227 cp->elements[new_idx].cpu = cpu; 228 cp->elements[cpu].idx = new_idx; 229 cpudl_heapify_up(cp, new_idx);
|
/linux-master/drivers/iio/ |
H A D | industrialio-gts-helper.c | 170 int ret, i, j, new_idx, time_idx; local 206 new_idx = gts->num_hwgain; 213 if (candidate > all_gains[new_idx - 1]) { 214 all_gains[new_idx] = candidate; 215 new_idx++; 219 for (chk = 0; chk < new_idx; chk++) 227 (new_idx - chk) * sizeof(int)); 229 new_idx++; 233 gts->avail_all_scales_table = kcalloc(new_idx, 2 * sizeof(int), 239 gts->num_avail_all_scales = new_idx; [all...] |
/linux-master/drivers/cpuidle/governors/ |
H A D | ladder.c | 50 * @new_idx: the new target state index 54 int old_idx, int new_idx) 58 dev->last_state_idx = new_idx; 52 ladder_do_selection(struct cpuidle_device *dev, struct ladder_device *ldev, int old_idx, int new_idx) argument
|
/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | cn66xx_device.c | 451 u32 new_idx = readl(iq->inst_cnt_reg); local 457 if (iq->reset_instr_cnt < new_idx) 458 new_idx -= iq->reset_instr_cnt; 460 new_idx += (0xffffffff - iq->reset_instr_cnt) + 1; 465 new_idx %= iq->max_count; 467 return new_idx;
|
H A D | cn23xx_vf_device.c | 528 u32 new_idx; local 537 new_idx = (iq->octeon_read_index + 541 return new_idx;
|
H A D | cn23xx_pf_device.c | 1083 u32 new_idx; local 1094 new_idx = (iq->octeon_read_index + 1098 return new_idx;
|
/linux-master/drivers/regulator/ |
H A D | max8997-regulator.c | 620 int new_val, new_idx, damage, tmp_val, tmp_idx, tmp_dmg; local 654 damage = max8997_assess_side_effect(rdev, new_val, &new_idx); 659 tmp_idx = new_idx; 667 new_idx = tmp_idx; 678 if (new_idx < 0 || new_val < 0) 681 max8997->buck125_gpioindex = new_idx;
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | lpar.c | 1091 unsigned long i, rc, new_idx; local 1099 new_idx = 0; 1120 param[++new_idx] = param[i+1]; 1132 if (new_idx && (retry_busy || new_idx == (PLPAR_HCALL9_BUFSIZE-1))) { 1133 idx = new_idx + 1; 1137 return new_idx;
|
/linux-master/kernel/events/ |
H A D | hw_breakpoint.c | 240 const int new_idx = old_idx + val; local 244 if (new_idx >= 0) 245 WARN_ON(atomic_inc_return_relaxed(&hist->count[new_idx]) < 0);
|
/linux-master/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_cn9k.c | 355 u32 last_done, new_idx; local 360 new_idx = (iq->octep_vf_read_index + last_done) % iq->max_count; 362 return new_idx;
|
H A D | octep_vf_cnxk.c | 366 u32 last_done, new_idx; local 371 new_idx = (iq->octep_vf_read_index + last_done) % iq->max_count; 373 return new_idx;
|
/linux-master/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | crc.c | 93 u8 new_idx = crc->ctx_idx ^ 1; local 106 crtc->name, crc->ctx_idx, new_idx); 109 nv50_crc_program_ctx(head, &crc->ctx[new_idx]);
|
/linux-master/tools/objtool/ |
H A D | elf.c | 729 Elf32_Word first_non_local, new_idx; local 740 new_idx = sec_num_entries(symtab); 754 elf_hash_add(symbol, &old->hash, new_idx); 755 old->idx = new_idx; 765 new_idx = first_non_local; 774 sym->idx = new_idx;
|
/linux-master/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 630 static u64 nhmex_mbox_alter_er(struct perf_event *event, int new_idx, bool modify) argument 643 if (new_idx > orig_idx) { 644 idx = new_idx - orig_idx; 647 idx = orig_idx - new_idx; 659 if (new_idx > orig_idx) 664 reg1->idx = ~0xff | new_idx;
|
/linux-master/net/mac80211/ |
H A D | rc80211_minstrel_ht.c | 2024 int col, i, new_idx; local 2031 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; 2032 while (sample_table[col][new_idx] != 0xff) 2033 new_idx = (new_idx + 1) % MCS_GROUP_RATES; 2035 sample_table[col][new_idx] = i;
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_rule.c | 260 int new_idx; local 271 new_idx = mlx5dr_ste_calc_hash_index(hw_ste, new_htbl); 272 new_ste = &new_htbl->chunk->ste_arr[new_idx]; 286 new_idx);
|
/linux-master/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) 361 val0 = new_idx; 364 shift = new_idx - old_idx; 333 ksz9477_acl_update_linkage(struct ksz_device *dev, u8 *entry, u16 old_idx, u16 new_idx) argument
|
/linux-master/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_cn9k_pf.c | 728 u32 last_done, new_idx; local 733 new_idx = (iq->octep_read_index + last_done) % iq->max_count; 735 return new_idx;
|
H A D | octep_cnxk_pf.c | 751 u32 last_done, new_idx; local 756 new_idx = (iq->octep_read_index + last_done) % iq->max_count; 758 return new_idx;
|
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp9_if.c | 264 int new_idx) 286 *idx = new_idx; 287 vsi->frm_bufs[new_idx].ref_cnt++; 263 vp9_ref_cnt_fb(struct vdec_vp9_inst *inst, int *idx, int new_idx) argument
|
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_ll2.c | 353 u16 new_idx = 0, num_bds = 0, num_bds_in_packet = 0; local 368 new_idx = le16_to_cpu(*p_tx->p_fw_cons); 369 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); 885 u16 new_idx = 0, num_bds = 0; local 894 new_idx = le16_to_cpu(*p_tx->p_fw_cons); 895 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx);
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_64_mmu_hv.c | 1227 unsigned long new_idx, new_pteg, replace_vpte; local 1330 new_idx = new_pteg * HPTES_PER_GROUP + (idx % HPTES_PER_GROUP); 1331 new_hptep = (__be64 *)(new->virt + (new_idx << 4)); 1359 new->rev[new_idx].guest_rpte = guest_rpte;
|
/linux-master/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945.c | 1923 s32 setting_idx, s32 *new_idx) 1939 *new_idx = samples[i].gain_idx; 1967 *new_idx = res >> 19; 1922 il3945_hw_reg_get_matched_power_idx(struct il_priv *il, s8 requested_power, s32 setting_idx, s32 *new_idx) argument
|