src/dpdk/lib/librte_eventdev/rte_event_timer_adapter.h
static inline uint16_t
rte_event_timer_arm_tmo_tick_burst(
			const struct rte_event_timer_adapter *adapter,
			struct rte_event_timer **evtims,
			const uint64_t timeout_ticks,
			const uint16_t nb_evtims)
{
#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
	FUNC_PTR_OR_ERR_RET(adapter->arm_tmo_tick_burst, -EINVAL);
#endif
	rte_eventdev_trace_timer_arm_tmo_tick_burst(adapter, timeout_ticks,
		(void **)evtims, nb_evtims);
	return adapter->arm_tmo_tick_burst(adapter, evtims, timeout_ticks,
					   nb_evtims);
}
/**
 * Arm a burst of event timers with same expiration timeout tick.
 *
 * Provides the same functionality as ``rte_event_timer_arm_burst()``, except
 * that application can use this API when all the event timers have the
 * same timeout expiration tick. This specialized function can provide the
 * additional hint to the adapter implementation and optimize if possible.
 *
 * @param adapter
 *   A pointer to an event timer adapter structure.
 * @param evtims
 *   Points to an array of objects of type *rte_event_timer* structure.
 * @param timeout_ticks
 *   The number of ticks in which the timers should expire.
 * @param nb_evtims
 *   Number of event timers in the supplied array.
 *
 * @return
 *   The number of successfully armed event timers. The return value can be less
 *   than the value of the *nb_evtims* parameter. If the return value is less
 *   than *nb_evtims*, the remaining event timers at the end of *evtims*
 *   are not consumed, and the caller has to take care of them, and rte_errno
 *   is set accordingly. Possible errno values include:
 *   - EINVAL Invalid timer adapter, expiry event queue ID is invalid, or an
 *   expiry event's sched type doesn't match the capabilities of the
 *   destination event queue.
 *   - EAGAIN Specified event timer adapter is not running
 *   - EALREADY A timer was encountered that was already armed
 */
Arm a burst of event timers with same expiration timeout tick.
Provides the same functionality as ``rte_event_timer_arm_burst()``, except
that application can use this API when all the event timers have the
same timeout expiration tick. This specialized function can provide the
additional hint to the adapter implementation and optimize if possible.

@param adapter
A pointer to an event timer adapter structure.
@param evtims
Points to an array of objects of type *rte_event_timer* structure.
@param timeout_ticks
The number of ticks in which the timers should expire.
@param nb_evtims
Number of event timers in the supplied array.

@return
The number of successfully armed event timers. The return value can be less
than the value of the *nb_evtims* parameter. If the return value is less
than *nb_evtims*, the remaining event timers at the end of *evtims
are not consumed, and the caller has to take care of them, and rte_errno
is set accordingly. Possible errno values include:
- EINVAL Invalid timer adapter, expiry event queue ID is invalid, or an
expiry event's sched type doesn't match the capabilities of the
destination event queue.
- EAGAIN Specified event timer adapter is not running
- EALREADY A timer was encountered that was already armed
Arm a burst of event timers with same expiration timeout tick . Provides the same functionality as ` ` rte_event_timer_arm_burst () ` ` except that application can use this API when all the event timers have the same timeout expiration tick . This specialized function can provide the additional hint to the adapter implementation and optimize if possible . @param adapter A pointer to an event timer adapter structure . @param evtims Points to an array of objects of type * rte_event_timer * structure . @param timeout_ticks The number of ticks in which the timers should expire . @param nb_evtims Number of event timers in the supplied array . @return The number of successfully armed event timers . The return value can be less than the value of the * nb_evtims * parameter . If the return value is less than * nb_evtims * the remaining event timers at the end of * evtims are not consumed and the caller has to take care of them and rte_errno is set accordingly . Possible errno values include : - EINVAL Invalid timer adapter expiry event queue ID is invalid or an expiry event ' s sched type doesn ' t match the capabilities of the destination event queue . - EAGAIN Specified event timer adapter is not running - EALREADY A timer was encountered that was already armed
static inline uint16_t
rte_event_timer_arm_tmo_tick_burst(
			const struct rte_event_timer_adapter *adapter,
			struct rte_event_timer **evtims,
			const uint64_t timeout_ticks,
			const uint16_t nb_evtims)
{
#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
	FUNC_PTR_OR_ERR_RET(adapter->arm_tmo_tick_burst, -EINVAL);
#endif
	rte_eventdev_trace_timer_arm_tmo_tick_burst(adapter, timeout_ticks,
		(void **)evtims, nb_evtims);
	return adapter->arm_tmo_tick_burst(adapter, evtims, timeout_ticks,
					   nb_evtims);
}
static inline uint16_t rte_event_timer_arm_tmo_tick_burst ( const struct rte_event_timer_adapter * adapter , struct rte_event_timer * * evtims , const uint64_t timeout_ticks , const uint16_t nb_evtims ) { #ifdef RTE_LIBRTE_EVENTDEV_DEBUG ADAPTER_VALID_OR_ERR_RET ( adapter , - EINVAL ) ; FUNC_PTR_OR_ERR_RET ( adapter -> arm_tmo_tick_burst , - EINVAL ) ; #endif rte_eventdev_trace_timer_arm_tmo_tick_burst ( adapter , timeout_ticks , ( void * * ) evtims , nb_evtims ) ; return adapter -> arm_tmo_tick_burst ( adapter , evtims , timeout_ticks , nb_evtims ) ; }
Arm a burst of event timers with same expiration timeout tick.
Arm a burst of event timers with same expiration timeout tick .