Home
last modified time | relevance | path

Searched refs:new_index (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/lib/
H A Dinterval_tree.c126 unsigned long new_index) in interval_tree_span_iter_advance() argument
131 iter->first_index = new_index; in interval_tree_span_iter_advance()
132 if (new_index > iter->last_index) { in interval_tree_span_iter_advance()
138 if (iter->start_hole <= new_index && new_index <= iter->last_hole) { in interval_tree_span_iter_advance()
139 iter->start_hole = new_index; in interval_tree_span_iter_advance()
142 if (new_index == iter->last_hole + 1) in interval_tree_span_iter_advance()
145 interval_tree_span_iter_first(iter, itree, new_index, in interval_tree_span_iter_advance()
H A Dparman.c186 unsigned long new_index; in parman_lsort_item_add() local
195 new_index = parman_lsort_new_index_find(parman, prio); in parman_lsort_item_add()
201 item->index = new_index; in parman_lsort_item_add()
/openbmc/linux/drivers/cpuidle/
H A Dcpuidle-exynos.c62 int new_index = index; in exynos_enter_lowpower() local
66 new_index = drv->safe_state_index; in exynos_enter_lowpower()
68 if (new_index == 0) in exynos_enter_lowpower()
69 return arm_cpuidle_simple_enter(dev, drv, new_index); in exynos_enter_lowpower()
73 return new_index; in exynos_enter_lowpower()
/openbmc/linux/drivers/cpufreq/
H A Dcpufreq_stats.c269 int old_index, new_index; in cpufreq_stats_record_transition() local
278 new_index = freq_table_get_index(stats, new_freq); in cpufreq_stats_record_transition()
281 if (unlikely(old_index == -1 || new_index == -1 || old_index == new_index)) in cpufreq_stats_record_transition()
286 stats->last_index = new_index; in cpufreq_stats_record_transition()
287 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
H A Dpowernv-cpufreq.c742 unsigned int new_index) in powernv_cpufreq_target_index() argument
748 if (unlikely(rebooting) && new_index != get_nominal_index()) in powernv_cpufreq_target_index()
762 freq_data.pstate_id = idx_to_pstate(new_index); in powernv_cpufreq_target_index()
771 gpstate_idx = new_index; in powernv_cpufreq_target_index()
772 gpstates->highest_lpstate_idx = new_index; in powernv_cpufreq_target_index()
776 if (gpstates->last_gpstate_idx < new_index) { in powernv_cpufreq_target_index()
787 gpstates->highest_lpstate_idx = new_index; in powernv_cpufreq_target_index()
788 gpstate_idx = new_index; in powernv_cpufreq_target_index()
793 new_index); in powernv_cpufreq_target_index()
797 gpstates->highest_lpstate_idx = new_index; in powernv_cpufreq_target_index()
[all …]
/openbmc/u-boot/drivers/clk/
H A Dclk_meson.c494 unsigned int new_index = -EINVAL; in meson_mux_set_parent() local
540 new_index = i; in meson_mux_set_parent()
543 if (IS_ERR_VALUE(new_index)) in meson_mux_set_parent()
544 return new_index; in meson_mux_set_parent()
546 debug("%s: new index of %ld is %d\n", __func__, id, new_index); in meson_mux_set_parent()
549 new_index << parm->shift); in meson_mux_set_parent()
/openbmc/linux/arch/sparc/kernel/
H A Dcpumap.c321 int level, new_index, index = root_index; in iterate_cpu() local
342 new_index = t->nodes[index].rover; in iterate_cpu()
346 index = new_index; in iterate_cpu()
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.h198 int new_index = *old_index; in enetc_rxbd_next() local
207 if (unlikely(++new_index == rx_ring->bd_count)) { in enetc_rxbd_next()
209 new_index = 0; in enetc_rxbd_next()
213 *old_index = new_index; in enetc_rxbd_next()
/openbmc/linux/include/linux/
H A Dinterval_tree.h73 unsigned long new_index);
/openbmc/linux/mm/
H A Dreadahead.c786 pgoff_t new_index, new_nr_pages; in readahead_expand() local
789 new_index = new_start / PAGE_SIZE; in readahead_expand()
792 while (ractl->_index > new_index) { in readahead_expand()
/openbmc/linux/drivers/block/
H A Dnbd.c952 int new_index = -1; in find_fallback() local
957 return new_index; in find_fallback()
962 return new_index; in find_fallback()
977 new_index = i; in find_fallback()
981 nsock->fallback_index = new_index; in find_fallback()
982 if (new_index < 0) { in find_fallback()
985 return new_index; in find_fallback()
988 new_index = nsock->fallback_index; in find_fallback()
989 return new_index; in find_fallback()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/oprofile/oprofile/
H A D0006-replace-sym_iterator-0-with-sym_iterator.patch45 (*sc_ptr)[new_index].subclass_name = subclass_name;
/openbmc/qemu/target/tricore/
H A Dop_helper.c128 uint32_t new_index = reverse16(reverse16(index) + reverse16(incr)); in helper_br_update() local
129 return reg - index + new_index; in helper_br_update()
136 int32_t new_index = index + off; in helper_circ_update() local
137 if (new_index < 0) { in helper_circ_update()
138 new_index += length; in helper_circ_update()
140 new_index %= length; in helper_circ_update()
142 return reg - index + new_index; in helper_circ_update()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_tx.c466 u16 new_index; in mlx4_en_process_tx_cq() local
481 new_index = be16_to_cpu(cqe->wqe_index) & size_mask; in mlx4_en_process_tx_cq()
506 } while ((++done < budget) && (ring_index != new_index)); in mlx4_en_process_tx_cq()
H A Dresource_tracker.c696 u8 new_index; in update_pkey_index() local
702 new_index = priv->virt2phys_pkey[slave][port - 1][orig_index]; in update_pkey_index()
703 *(u8 *)(inbox->buf + 35) = new_index; in update_pkey_index()
/openbmc/linux/fs/
H A Dlibfs.c330 u32 new_index = dentry2offset(new_dentry); in simple_offset_rename_exchange() local
357 offset_set(new_dentry, new_index); in simple_offset_rename_exchange()
358 xa_store(&new_ctx->xa, new_index, new_dentry, GFP_KERNEL); in simple_offset_rename_exchange()
/openbmc/qemu/hw/net/
H A Dvirtio-net.c1854 unsigned int index = nc->queue_index, new_index = index; in virtio_net_process_rss() local
1896 new_index = hash & (n->rss_data.indirections_len - 1); in virtio_net_process_rss()
1897 new_index = n->rss_data.indirections_table[new_index]; in virtio_net_process_rss()
1900 return (index == new_index) ? -1 : new_index; in virtio_net_process_rss()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_lcn.c2317 s8 index, delta_brd, delta_temp, new_index, tempcorrx; in wlc_lcnphy_tempcompensated_txpwrctrl() local
2362 new_index = in wlc_lcnphy_tempcompensated_txpwrctrl()
2364 new_index += tempcorrx; in wlc_lcnphy_tempcompensated_txpwrctrl()
2369 if (new_index < 0 || new_index > 126) in wlc_lcnphy_tempcompensated_txpwrctrl()
2372 return new_index; in wlc_lcnphy_tempcompensated_txpwrctrl()
/openbmc/linux/kernel/trace/
H A Dring_buffer.c3009 unsigned long new_index, old_index; in rb_try_to_discard() local
3013 new_index = rb_event_index(event); in rb_try_to_discard()
3014 old_index = new_index + rb_event_ts_length(event); in rb_try_to_discard()
3057 new_index += write_mask; in rb_try_to_discard()
3060 if (local_try_cmpxchg(&bpage->write, &old_index, new_index)) { in rb_try_to_discard()
/openbmc/linux/drivers/target/
H A Dtarget_core_transport.c185 u32 new_index; in scsi_get_new_index() local
190 new_index = ++scsi_mib_index[type]; in scsi_get_new_index()
193 return new_index; in scsi_get_new_index()
/openbmc/linux/net/core/
H A Ddev.c4224 int new_index = get_xps_queue(dev, sb_dev, skb); in netdev_pick_tx() local
4226 if (new_index < 0) in netdev_pick_tx()
4227 new_index = skb_tx_hash(dev, sb_dev, skb); in netdev_pick_tx()
4229 if (queue_index != new_index && sk && in netdev_pick_tx()
4232 sk_tx_queue_set(sk, new_index); in netdev_pick_tx()
4234 queue_index = new_index; in netdev_pick_tx()