Lines Matching refs:lcore_id
134 int i, lcore_id; in rte_timer_subsystem_init() local
168 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; in rte_timer_subsystem_init()
169 lcore_id++) { in rte_timer_subsystem_init()
171 &data->priv_timer[lcore_id].list_lock); in rte_timer_subsystem_init()
172 data->priv_timer[lcore_id].prev_lcore = in rte_timer_subsystem_init()
173 lcore_id; in rte_timer_subsystem_init()
229 unsigned lcore_id; in timer_set_config_state() local
231 lcore_id = rte_lcore_id(); in timer_set_config_state()
242 (prev_status.owner != (uint16_t)lcore_id || in timer_set_config_state()
243 tim != priv_timer[lcore_id].running_tim)) in timer_set_config_state()
253 status.owner = (int16_t)lcore_id; in timer_set_config_state()
276 unsigned lcore_id = rte_lcore_id(); in timer_set_running_state() local
292 status.owner = (int16_t)lcore_id; in timer_set_running_state()
432 unsigned lcore_id = rte_lcore_id(); in timer_del() local
440 if (prev_owner != lcore_id || !local_is_locked) in timer_del()
463 if (prev_owner != lcore_id || !local_is_locked) in timer_del()
477 unsigned lcore_id = rte_lcore_id(); in __rte_timer_reset() local
482 if (lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
485 priv_timer[lcore_id].prev_lcore, in __rte_timer_reset()
487 priv_timer[lcore_id].prev_lcore = tim_lcore; in __rte_timer_reset()
502 lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
503 priv_timer[lcore_id].updated = 1; in __rte_timer_reset()
521 if (tim_lcore != lcore_id || !local_is_locked) in __rte_timer_reset()
536 if (tim_lcore != lcore_id || !local_is_locked) in __rte_timer_reset()
588 unsigned lcore_id = rte_lcore_id(); in __rte_timer_stop() local
600 lcore_id < RTE_MAX_LCORE) { in __rte_timer_stop()
601 priv_timer[lcore_id].updated = 1; in __rte_timer_stop()
661 unsigned lcore_id = rte_lcore_id(); in __rte_timer_manage() local
668 assert(lcore_id < RTE_MAX_LCORE); in __rte_timer_manage()
672 if (priv_timer[lcore_id].pending_head.sl_next[0] == NULL) in __rte_timer_manage()
680 if (likely(priv_timer[lcore_id].pending_head.expire > cur_time)) in __rte_timer_manage()
685 rte_spinlock_lock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
688 if (priv_timer[lcore_id].pending_head.sl_next[0] == NULL || in __rte_timer_manage()
689 priv_timer[lcore_id].pending_head.sl_next[0]->expire > cur_time) { in __rte_timer_manage()
690 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
695 tim = priv_timer[lcore_id].pending_head.sl_next[0]; in __rte_timer_manage()
698 timer_get_prev_entries(cur_time, lcore_id, prev, priv_timer); in __rte_timer_manage()
699 for (i = priv_timer[lcore_id].curr_skiplist_depth -1; i >= 0; i--) { in __rte_timer_manage()
700 if (prev[i] == &priv_timer[lcore_id].pending_head) in __rte_timer_manage()
702 priv_timer[lcore_id].pending_head.sl_next[i] = in __rte_timer_manage()
705 priv_timer[lcore_id].curr_skiplist_depth--; in __rte_timer_manage()
728 priv_timer[lcore_id].pending_head.expire = in __rte_timer_manage()
729 (priv_timer[lcore_id].pending_head.sl_next[0] == NULL) ? 0 : in __rte_timer_manage()
730 priv_timer[lcore_id].pending_head.sl_next[0]->expire; in __rte_timer_manage()
732 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
737 priv_timer[lcore_id].updated = 0; in __rte_timer_manage()
738 priv_timer[lcore_id].running_tim = tim; in __rte_timer_manage()
746 if (priv_timer[lcore_id].updated == 1) in __rte_timer_manage()
762 rte_spinlock_lock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
765 status.owner = (int16_t)lcore_id; in __rte_timer_manage()
773 tim->period, lcore_id, tim->f, tim->arg, 1, in __rte_timer_manage()
775 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
778 priv_timer[lcore_id].running_tim = NULL; in __rte_timer_manage()
1014 unsigned int lcore_id = rte_lcore_id(); in rte_timer_next_ticks() local
1026 rte_spinlock_lock(&priv_timer[lcore_id].list_lock); in rte_timer_next_ticks()
1027 tm = priv_timer[lcore_id].pending_head.sl_next[0]; in rte_timer_next_ticks()
1033 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in rte_timer_next_ticks()
1044 unsigned lcore_id; in __rte_timer_dump_stats() local
1048 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in __rte_timer_dump_stats()
1049 sum.reset += priv_timer[lcore_id].stats.reset; in __rte_timer_dump_stats()
1050 sum.stop += priv_timer[lcore_id].stats.stop; in __rte_timer_dump_stats()
1051 sum.manage += priv_timer[lcore_id].stats.manage; in __rte_timer_dump_stats()
1052 sum.pending += priv_timer[lcore_id].stats.pending; in __rte_timer_dump_stats()