| /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/include/uapi/linux/ |
| H A D | virtio_ring.h | 222 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/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/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 | 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/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/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/drivers/net/ethernet/marvell/octeon_ep/ |
| 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()
|
| 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()
|
| /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/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/arch/x86/events/intel/ |
| H A D | uncore_snbep.c | 1062 static u64 snbep_pcu_alter_er(struct perf_event *event, int new_idx, bool modify) in snbep_pcu_alter_er() argument 1068 if (new_idx > reg1->idx) in snbep_pcu_alter_er() 1069 config <<= 8 * (new_idx - reg1->idx); in snbep_pcu_alter_er() 1071 config >>= 8 * (reg1->idx - new_idx); in snbep_pcu_alter_er() 1074 hwc->config += new_idx - reg1->idx; in snbep_pcu_alter_er() 1076 reg1->idx = new_idx; in snbep_pcu_alter_er()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbcon.c | 2865 int i, new_idx = -1; in fbcon_fb_unbind() local 2878 new_idx = con2fb_map[i]; in fbcon_fb_unbind() 2883 if (new_idx != -1) { in fbcon_fb_unbind() 2886 set_con2fb_map(i, new_idx, 0); in fbcon_fb_unbind()
|
| /linux/fs/nfs/flexfilelayout/ |
| H A D | flexfilelayout.c | 1263 u32 new_idx = 0; in ff_layout_resend_pnfs_read() local 1267 ds = ff_layout_choose_any_ds_for_read(hdr->lseg, idx, &new_idx, in ff_layout_resend_pnfs_read() 1273 pnfs_read_resend_pnfs(hdr, new_idx); in ff_layout_resend_pnfs_read()
|
| /linux/drivers/nvme/host/ |
| H A D | pci.c | 408 static inline int nvme_dbbuf_need_event(u16 event_idx, u16 new_idx, u16 old) in nvme_dbbuf_need_event() argument 410 return (u16)(new_idx - event_idx - 1) < (u16)(new_idx - old); in nvme_dbbuf_need_event()
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_cmn.c | 180 int new_idx = cos * (old_eth_num - delta) + i; in bnx2x_shrink_eth_fp() local 182 memcpy(&bp->bnx2x_txq[new_idx], fp->txdata_ptr[cos], in bnx2x_shrink_eth_fp() 184 fp->txdata_ptr[cos] = &bp->bnx2x_txq[new_idx]; in bnx2x_shrink_eth_fp()
|
| /linux/drivers/spi/ |
| H A D | spi.c | 628 struct spi_device *new_spi, u8 new_idx) in spi_dev_check_cs() argument 634 for (idx_new = new_idx; idx_new < new_spi->num_chipselect; idx_new++) { in spi_dev_check_cs()
|
| /linux/fs/btrfs/ |
| H A D | inode.c | 8193 u64 new_idx = 0; in btrfs_rename_exchange() local 8279 ret = btrfs_set_inode_index(BTRFS_I(old_dir), &new_idx); in btrfs_rename_exchange() 8306 new_idx); in btrfs_rename_exchange() 8405 old_name, 0, new_idx); in btrfs_rename_exchange() 8414 BTRFS_I(new_inode)->dir_index = new_idx; in btrfs_rename_exchange()
|