Home
last modified time | relevance | path

Searched refs:COMMANDS_PER_QUEUE (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/crypto/ccp/
H A Dccp-dev.h102 #define COMMANDS_PER_QUEUE 16 macro
103 #define QUEUE_SIZE_VAL ((ffs(COMMANDS_PER_QUEUE) - 2) & \
107 #define Q_SIZE(n) (COMMANDS_PER_QUEUE*(n))
H A Dccp-dev-v5.c216 n = head_idx + COMMANDS_PER_QUEUE - cmd_q->qidx - 1; in ccp5_get_free_slots()
218 return n % COMMANDS_PER_QUEUE; /* Always one unused spot */ in ccp5_get_free_slots()
243 cmd_q->qidx = (cmd_q->qidx + 1) % COMMANDS_PER_QUEUE; in ccp5_do_cmd()
829 BUILD_BUG_ON(COMMANDS_PER_QUEUE > 128); in ccp5_init()