Lines Matching refs:rq_buf
11585 ocs_hw_rq_buffer_t *rq_buf = NULL; in ocs_hw_rx_buffer_alloc() local
11590 rq_buf = ocs_malloc(hw->os, sizeof(*rq_buf) * count, OCS_M_NOWAIT | OCS_M_ZERO); in ocs_hw_rx_buffer_alloc()
11591 if (rq_buf == NULL) { in ocs_hw_rx_buffer_alloc()
11596 for (i = 0, prq = rq_buf; i < count; i ++, prq++) { in ocs_hw_rx_buffer_alloc()
11600 ocs_free(hw->os, rq_buf, sizeof(*rq_buf) * count); in ocs_hw_rx_buffer_alloc()
11601 rq_buf = NULL; in ocs_hw_rx_buffer_alloc()
11606 return rq_buf; in ocs_hw_rx_buffer_alloc()
11622 ocs_hw_rx_buffer_free(ocs_hw_t *hw, ocs_hw_rq_buffer_t *rq_buf, uint32_t count) in ocs_hw_rx_buffer_free() argument
11628 if (rq_buf != NULL) { in ocs_hw_rx_buffer_free()
11629 for (i = 0, prq = rq_buf; i < count; i++, prq++) { in ocs_hw_rx_buffer_free()
11632 ocs_free(hw->os, rq_buf, sizeof(*rq_buf) * count); in ocs_hw_rx_buffer_free()