Lines Matching refs:max
47 static int srp_iu_pool_alloc(struct srp_queue *q, size_t max,
53 q->pool = kcalloc(max, sizeof(struct iu_entry *), GFP_KERNEL);
56 q->items = kcalloc(max, sizeof(struct iu_entry), GFP_KERNEL);
61 q->queue = kfifo_init((void *) q->pool, max * sizeof(void *),
66 for (i = 0, iue = q->items; i < max; i++) {
87 size_t max, size_t size)
92 ring = kcalloc(max, sizeof(struct srp_buf *), GFP_KERNEL);
96 for (i = 0; i < max; i++) {
108 for (i = 0; i < max && ring[i]; i++) {
118 static void srp_ring_free(struct device *dev, struct srp_buf **ring, size_t max,
123 for (i = 0; i < max; i++) {