Lines Matching defs:dispatch
55 * Get the argument that the user set when registering dispatch
58 * @param opcode - the opcode for which the dispatch argument
60 * @param subcode - the subcode for which the dispatch argument
62 * @return Success: void * (argument to the dispatch function)
70 struct lio_stailq_node *dispatch;
79 mtx_lock(&octeon_dev->dispatch.lock);
81 if (octeon_dev->dispatch.count == 0) {
82 mtx_unlock(&octeon_dev->dispatch.lock);
86 if (octeon_dev->dispatch.dlist[idx].opcode == combined_opcode) {
87 fn_arg = octeon_dev->dispatch.dlist[idx].arg;
89 STAILQ_FOREACH(dispatch,
90 &octeon_dev->dispatch.dlist[idx].head, entries) {
91 if (((struct lio_dispatch *)dispatch)->opcode ==
93 fn_arg = ((struct lio_dispatch *)dispatch)->arg;
99 mtx_unlock(&octeon_dev->dispatch.lock);
470 * If a valid buffer exists (happens if there is no dispatch),
550 lio_dev_err(oct, "DROQ: No dispatch function (opcode %u/%u)\n",