Searched refs:free_slots (Results 1 – 9 of 9) sorted by relevance
| /dpdk/drivers/common/cpt/ |
| H A D | cpt_common.h | 114 int free_slots; in pending_queue_free_slots() local 116 free_slots = qsize - pending_queue_level(q, qsize); in pending_queue_free_slots() 119 free_slots -= 1 + reserved_slots; in pending_queue_free_slots() 121 if (unlikely(free_slots < 0)) in pending_queue_free_slots() 124 return free_slots; in pending_queue_free_slots()
|
| /dpdk/drivers/crypto/ccp/ |
| H A D | ccp_dev.c | 52 ret = rte_atomic64_read(&dev->cmd_q[dev->qidx].free_slots); in ccp_allot_queue() 59 ret = rte_atomic64_read(&dev->cmd_q[dev->qidx].free_slots); in ccp_allot_queue() 586 rte_atomic64_init(&cmd_q->free_slots); in ccp_add_device() 587 rte_atomic64_set(&cmd_q->free_slots, (COMMANDS_PER_QUEUE - 1)); in ccp_add_device()
|
| H A D | ccp_dev.h | 191 rte_atomic64_t free_slots; member
|
| H A D | ccp_crypto.c | 2776 rte_atomic64_sub(&b_info->cmd_q->free_slots, slots_req); in process_ops_to_enqueue() 2824 rte_atomic64_add(&b_info->cmd_q->free_slots, in process_ops_to_enqueue() 3013 rte_atomic64_add(&b_info->cmd_q->free_slots, b_info->desccnt); in process_ops_to_dequeue()
|
| /dpdk/lib/efd/ |
| H A D | rte_efd.c | 255 struct rte_ring *free_slots; member 706 table->free_slots = r; in rte_efd_create() 768 rte_ring_free(table->free_slots); in rte_efd_free() 1034 if (rte_ring_sc_dequeue(table->free_slots, &slot_id) != 0) in efd_compute_update() 1215 rte_ring_sp_enqueue(table->free_slots, in rte_efd_delete()
|
| /dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_sym.c | 658 uint16_t free_slots = 0; in nitrox_sym_dev_enq_burst() local 662 free_slots = nitrox_qp_free_count(qp); in nitrox_sym_dev_enq_burst() 663 if (nb_ops > free_slots) in nitrox_sym_dev_enq_burst() 664 nb_ops = free_slots; in nitrox_sym_dev_enq_burst()
|
| /dpdk/lib/hash/ |
| H A D | rte_cuckoo_hash.h | 171 struct rte_ring *free_slots; member
|
| H A D | rte_cuckoo_hash.c | 422 h->free_slots = r; in rte_hash_create() 519 rte_ring_free(h->free_slots); in rte_hash_free() 567 ret = tot_ring_cnt - rte_ring_count(h->free_slots) - in rte_hash_count() 571 ret = tot_ring_cnt - rte_ring_count(h->free_slots); in rte_hash_count() 636 rte_ring_reset(h->free_slots); in rte_hash_reset() 653 rte_ring_sp_enqueue_elem(h->free_slots, &i, sizeof(uint32_t)); in rte_hash_reset() 684 rte_ring_sp_enqueue_elem(h->free_slots, &slot_id, in enqueue_slot_back() 981 n_slots = rte_ring_mc_dequeue_burst_elem(h->free_slots, in alloc_slot() 995 if (rte_ring_sc_dequeue_elem(h->free_slots, &slot_id, in alloc_slot() 1461 n_slots = rte_ring_mp_enqueue_burst_elem(h->free_slots, in free_slot()
|
| /dpdk/drivers/crypto/octeontx/ |
| H A D | otx_cryptodev_ops.c | 629 uint16_t count, free_slots; in otx_cpt_pkt_enqueue() local 634 free_slots = pending_queue_free_slots(pqueue, DEFAULT_CMD_QLEN, in otx_cpt_pkt_enqueue() 636 if (nb_ops > free_slots) in otx_cpt_pkt_enqueue() 637 nb_ops = free_slots; in otx_cpt_pkt_enqueue()
|