Lines Matching refs:JOBR_DEPTH
223 for (i = 0; CIRC_CNT(head, tail + i, JOBR_DEPTH) >= 1; i++) { in caam_jr_dequeue()
224 sw_idx = (tail + i) & (JOBR_DEPTH - 1); in caam_jr_dequeue()
231 BUG_ON(CIRC_CNT(head, tail + i, JOBR_DEPTH) <= 0); in caam_jr_dequeue()
261 (JOBR_DEPTH - 1); in caam_jr_dequeue()
270 tail = (tail + 1) & (JOBR_DEPTH - 1); in caam_jr_dequeue()
271 } while (CIRC_CNT(head, tail, JOBR_DEPTH) >= 1 && in caam_jr_dequeue()
389 CIRC_SPACE(head, tail, JOBR_DEPTH) <= 0) { in caam_jr_enqueue()
411 jrp->head = (head + 1) & (JOBR_DEPTH - 1); in caam_jr_enqueue()
449 JOBR_DEPTH, &inpbusaddr, in caam_jr_init()
455 JOBR_DEPTH, &outbusaddr, in caam_jr_init()
460 jrp->entinfo = devm_kcalloc(dev, JOBR_DEPTH, sizeof(*jrp->entinfo), in caam_jr_init()
465 for (i = 0; i < JOBR_DEPTH; i++) in caam_jr_init()
475 wr_reg32(&jrp->rregs->inpring_size, JOBR_DEPTH); in caam_jr_init()
476 wr_reg32(&jrp->rregs->outring_size, JOBR_DEPTH); in caam_jr_init()
478 jrp->inpring_avail = JOBR_DEPTH; in caam_jr_init()