Lines Matching refs:lcore_id
140 int i, lcore_id; in rte_timer_subsystem_init() local
174 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; in rte_timer_subsystem_init()
175 lcore_id++) { in rte_timer_subsystem_init()
177 &data->priv_timer[lcore_id].list_lock); in rte_timer_subsystem_init()
178 data->priv_timer[lcore_id].prev_lcore = in rte_timer_subsystem_init()
179 lcore_id; in rte_timer_subsystem_init()
235 unsigned lcore_id; in timer_set_config_state() local
237 lcore_id = rte_lcore_id(); in timer_set_config_state()
248 (prev_status.owner != (uint16_t)lcore_id || in timer_set_config_state()
249 tim != priv_timer[lcore_id].running_tim)) in timer_set_config_state()
259 status.owner = (int16_t)lcore_id; in timer_set_config_state()
282 unsigned lcore_id = rte_lcore_id(); in timer_set_running_state() local
298 status.owner = (int16_t)lcore_id; in timer_set_running_state()
438 unsigned lcore_id = rte_lcore_id(); in timer_del() local
446 if (prev_owner != lcore_id || !local_is_locked) in timer_del()
469 if (prev_owner != lcore_id || !local_is_locked) in timer_del()
483 unsigned lcore_id = rte_lcore_id(); in __rte_timer_reset() local
488 if (lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
491 priv_timer[lcore_id].prev_lcore, in __rte_timer_reset()
493 priv_timer[lcore_id].prev_lcore = tim_lcore; in __rte_timer_reset()
508 lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
509 priv_timer[lcore_id].updated = 1; in __rte_timer_reset()
527 if (tim_lcore != lcore_id || !local_is_locked) in __rte_timer_reset()
542 if (tim_lcore != lcore_id || !local_is_locked) in __rte_timer_reset()
594 unsigned lcore_id = rte_lcore_id(); in __rte_timer_stop() local
606 lcore_id < RTE_MAX_LCORE) { in __rte_timer_stop()
607 priv_timer[lcore_id].updated = 1; in __rte_timer_stop()
667 unsigned lcore_id = rte_lcore_id(); in __rte_timer_manage() local
674 assert(lcore_id < RTE_MAX_LCORE); in __rte_timer_manage()
678 if (priv_timer[lcore_id].pending_head.sl_next[0] == NULL) in __rte_timer_manage()
686 if (likely(priv_timer[lcore_id].pending_head.expire > cur_time)) in __rte_timer_manage()
691 rte_spinlock_lock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
694 if (priv_timer[lcore_id].pending_head.sl_next[0] == NULL || in __rte_timer_manage()
695 priv_timer[lcore_id].pending_head.sl_next[0]->expire > cur_time) { in __rte_timer_manage()
696 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
701 tim = priv_timer[lcore_id].pending_head.sl_next[0]; in __rte_timer_manage()
704 timer_get_prev_entries(cur_time, lcore_id, prev, priv_timer); in __rte_timer_manage()
705 for (i = priv_timer[lcore_id].curr_skiplist_depth -1; i >= 0; i--) { in __rte_timer_manage()
706 if (prev[i] == &priv_timer[lcore_id].pending_head) in __rte_timer_manage()
708 priv_timer[lcore_id].pending_head.sl_next[i] = in __rte_timer_manage()
711 priv_timer[lcore_id].curr_skiplist_depth--; in __rte_timer_manage()
734 priv_timer[lcore_id].pending_head.expire = in __rte_timer_manage()
735 (priv_timer[lcore_id].pending_head.sl_next[0] == NULL) ? 0 : in __rte_timer_manage()
736 priv_timer[lcore_id].pending_head.sl_next[0]->expire; in __rte_timer_manage()
738 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
743 priv_timer[lcore_id].updated = 0; in __rte_timer_manage()
744 priv_timer[lcore_id].running_tim = tim; in __rte_timer_manage()
752 if (priv_timer[lcore_id].updated == 1) in __rte_timer_manage()
768 rte_spinlock_lock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
771 status.owner = (int16_t)lcore_id; in __rte_timer_manage()
779 tim->period, lcore_id, tim->f, tim->arg, 1, in __rte_timer_manage()
781 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in __rte_timer_manage()
784 priv_timer[lcore_id].running_tim = NULL; in __rte_timer_manage()
1020 unsigned int lcore_id = rte_lcore_id(); in rte_timer_next_ticks() local
1032 rte_spinlock_lock(&priv_timer[lcore_id].list_lock); in rte_timer_next_ticks()
1033 tm = priv_timer[lcore_id].pending_head.sl_next[0]; in rte_timer_next_ticks()
1039 rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); in rte_timer_next_ticks()
1050 unsigned lcore_id; in __rte_timer_dump_stats() local
1054 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in __rte_timer_dump_stats()
1055 sum.reset += priv_timer[lcore_id].stats.reset; in __rte_timer_dump_stats()
1056 sum.stop += priv_timer[lcore_id].stats.stop; in __rte_timer_dump_stats()
1057 sum.manage += priv_timer[lcore_id].stats.manage; in __rte_timer_dump_stats()
1058 sum.pending += priv_timer[lcore_id].stats.pending; in __rte_timer_dump_stats()