Lines Matching defs:cb

655 	struct rte_cryptodev_cb *cb, *next;
663 cb = list->next;
664 while (cb != NULL) {
665 next = cb->next;
666 rte_free(cb);
667 cb = next;
675 cb = list->next;
676 while (cb != NULL) {
677 next = cb->next;
678 rte_free(cb);
679 cb = next;
1541 struct rte_cryptodev_cb *cb, *tail;
1562 cb = rte_zmalloc(NULL, sizeof(*cb), 0);
1563 if (cb == NULL) {
1572 cb->fn = cb_fn;
1573 cb->arg = cb_arg;
1582 /* Stores to cb->fn and cb->param should complete before
1583 * cb is visible to data plane.
1585 rte_atomic_store_explicit(&tail->next, cb, rte_memory_order_release);
1587 /* Stores to cb->fn and cb->param should complete before
1588 * cb is visible to data plane.
1590 rte_atomic_store_explicit(&list->next, cb, rte_memory_order_release);
1596 return cb;
1602 struct rte_cryptodev_cb *cb)
1615 if (!cb) {
1625 rte_cryptodev_trace_remove_enq_callback(dev_id, qp_id, cb->fn);
1653 if (curr_cb == cb) {
1654 /* Remove the user cb from the callback list. */
1667 rte_free(cb);
1687 struct rte_cryptodev_cb *cb, *tail;
1708 cb = rte_zmalloc(NULL, sizeof(*cb), 0);
1709 if (cb == NULL) {
1718 cb->fn = cb_fn;
1719 cb->arg = cb_arg;
1728 /* Stores to cb->fn and cb->param should complete before
1729 * cb is visible to data plane.
1731 rte_atomic_store_explicit(&tail->next, cb, rte_memory_order_release);
1733 /* Stores to cb->fn and cb->param should complete before
1734 * cb is visible to data plane.
1736 rte_atomic_store_explicit(&list->next, cb, rte_memory_order_release);
1743 return cb;
1749 struct rte_cryptodev_cb *cb)
1762 if (!cb) {
1772 rte_cryptodev_trace_remove_deq_callback(dev_id, qp_id, cb->fn);
1800 if (curr_cb == cb) {
1801 /* Remove the user cb from the callback list. */
1814 rte_free(cb);
1944 struct rte_cryptodev_callback *cb, *next;
1958 for (cb = TAILQ_FIRST(&dev->link_intr_cbs); cb != NULL; cb = next) {
1960 next = TAILQ_NEXT(cb, next);
1962 if (cb->cb_fn != cb_fn || cb->event != event ||
1963 (cb->cb_arg != (void *)-1 &&
1964 cb->cb_arg != cb_arg))
1971 if (cb->active == 0) {
1972 TAILQ_REMOVE(&(dev->link_intr_cbs), cb, next);
1973 rte_free(cb);