Lines Matching refs:QDIO_MAX_BUFFERS_PER_Q

48 		sbal_idx = i % QDIO_MAX_BUFFERS_PER_Q;  in zfcp_qdio_zero_sbals()
61 used = QDIO_MAX_BUFFERS_PER_Q - atomic_read(&qdio->req_q_free); in zfcp_qdio_account()
98 if (atomic_read(&qdio->req_q_free) < QDIO_MAX_BUFFERS_PER_Q) in zfcp_qdio_request_tasklet()
135 QDIO_MAX_BUFFERS_PER_Q; in zfcp_qdio_int_resp()
149 sbal_idx = (idx + sbal_no) % QDIO_MAX_BUFFERS_PER_Q; in zfcp_qdio_int_resp()
168 if (atomic_read(&qdio->req_q_free) < QDIO_MAX_BUFFERS_PER_Q) in zfcp_qdio_irq_tasklet()
210 q_req->sbal_last %= QDIO_MAX_BUFFERS_PER_Q; in zfcp_qdio_sbal_chain()
349 qdio->req_q_idx %= QDIO_MAX_BUFFERS_PER_Q; in zfcp_qdio_send()
364 ret = qdio_alloc_buffers(qdio->req_q, QDIO_MAX_BUFFERS_PER_Q); in zfcp_qdio_allocate()
368 ret = qdio_alloc_buffers(qdio->res_q, QDIO_MAX_BUFFERS_PER_Q); in zfcp_qdio_allocate()
381 qdio_free_buffers(qdio->res_q, QDIO_MAX_BUFFERS_PER_Q); in zfcp_qdio_allocate()
383 qdio_free_buffers(qdio->req_q, QDIO_MAX_BUFFERS_PER_Q); in zfcp_qdio_allocate()
417 if (count < QDIO_MAX_BUFFERS_PER_Q) { in zfcp_qdio_close()
418 idx = (qdio->req_q_idx + count) % QDIO_MAX_BUFFERS_PER_Q; in zfcp_qdio_close()
419 count = QDIO_MAX_BUFFERS_PER_Q - count; in zfcp_qdio_close()
497 for (cc = 0; cc < QDIO_MAX_BUFFERS_PER_Q; cc++) { in zfcp_qdio_open()
505 if (qdio_add_bufs_to_input_queue(cdev, 0, 0, QDIO_MAX_BUFFERS_PER_Q)) in zfcp_qdio_open()
510 atomic_set(&qdio->req_q_free, QDIO_MAX_BUFFERS_PER_Q); in zfcp_qdio_open()
543 qdio_free_buffers(qdio->req_q, QDIO_MAX_BUFFERS_PER_Q); in zfcp_qdio_destroy()
544 qdio_free_buffers(qdio->res_q, QDIO_MAX_BUFFERS_PER_Q); in zfcp_qdio_destroy()