Lines Matching refs:size_needed
120 int size_needed; in ccw_alloc_request() local
134 size_needed = (sizeof (ccw_req_t) + 7) & -8; in ccw_alloc_request()
136 if (size_needed + datasize <= PAGE_SIZE) { in ccw_alloc_request()
138 data_offset = size_needed; in ccw_alloc_request()
139 size_needed += (datasize + 7) & -8; in ccw_alloc_request()
141 if (size_needed + cplength*sizeof(ccw1_t) <= PAGE_SIZE) { in ccw_alloc_request()
143 ccw_offset = size_needed; in ccw_alloc_request()
144 size_needed += cplength*sizeof(ccw1_t); in ccw_alloc_request()
149 if ( size_needed <= (SMALLEST_SLAB << cachind) ) in ccw_alloc_request()
213 int size_needed; in ccw_free_request() local
225 size_needed = (sizeof (ccw_req_t) + 7) & -8; in ccw_free_request()
226 if (size_needed + request->datasize <= PAGE_SIZE) in ccw_free_request()
228 size_needed += (request->datasize + 7) & -8; in ccw_free_request()
231 if (size_needed + request->cplength*sizeof(ccw1_t) > PAGE_SIZE) in ccw_free_request()