Lines Matching refs:resp

2225     Sg_request * resp;  in sg_get_rq_mark()  local
2229 for (resp = sfp->headrp; resp; resp = resp->nextrp) { in sg_get_rq_mark()
2231 if ((1 == resp->done) && (! resp->sg_io_owned) && in sg_get_rq_mark()
2232 ((-1 == pack_id) || (resp->header.pack_id == pack_id))) { in sg_get_rq_mark()
2233 resp->done = 2; /* guard against other readers */ in sg_get_rq_mark()
2238 return resp; in sg_get_rq_mark()
2244 Sg_request * resp; in sg_get_nth_request() local
2249 for (k = 0, resp = sfp->headrp; resp && (k < nth); in sg_get_nth_request()
2250 ++k, resp = resp->nextrp) in sg_get_nth_request()
2253 return resp; in sg_get_nth_request()
2262 Sg_request * resp; in sg_add_request() local
2266 resp = sfp->headrp; in sg_add_request()
2267 if (! resp) { in sg_add_request()
2270 resp = rp; in sg_add_request()
2271 sfp->headrp = resp; in sg_add_request()
2275 resp = NULL; /* command queuing disallowed */ in sg_add_request()
2284 while (resp->nextrp) in sg_add_request()
2285 resp = resp->nextrp; in sg_add_request()
2286 resp->nextrp = rp; in sg_add_request()
2287 resp = rp; in sg_add_request()
2290 resp = NULL; in sg_add_request()
2293 if (resp) { in sg_add_request()
2294 resp->nextrp = NULL; in sg_add_request()
2295 resp->header.duration = jiffies; in sg_add_request()
2296 resp->my_cmdp = NULL; in sg_add_request()
2297 resp->data.kiobp = NULL; in sg_add_request()
2300 return resp; in sg_add_request()
2338 Sg_fd * resp; in sg_get_nth_sfp() local
2343 for (k = 0, resp = sdp->headfp; resp && (k < nth); in sg_get_nth_sfp()
2344 ++k, resp = resp->nextfp) in sg_get_nth_sfp()
2347 return resp; in sg_get_nth_sfp()
2482 char * resp = NULL; in sg_low_malloc() local
2486 return resp; in sg_low_malloc()
2488 resp = kmalloc(rqSz, page_mask); in sg_low_malloc()
2489 if (resp) { in sg_low_malloc()
2491 memset(resp, 0, rqSz); in sg_low_malloc()
2494 return resp; in sg_low_malloc()
2501 return resp; in sg_low_malloc()
2508 resp = scsi_malloc(rqSz); in sg_low_malloc()
2509 if (resp) { in sg_low_malloc()
2511 memset(resp, 0, rqSz); in sg_low_malloc()
2514 return resp; in sg_low_malloc()
2518 return resp; in sg_low_malloc()
2530 resp = (char *)__get_free_pages(page_mask, order); in sg_low_malloc()
2531 while ((! resp) && order && retSzp) { in sg_low_malloc()
2534 resp = (char *)__get_free_pages(page_mask, order); /* try half */ in sg_low_malloc()
2537 if (resp) { in sg_low_malloc()
2539 memset(resp, 0, resSz); in sg_low_malloc()
2546 return resp; in sg_low_malloc()
2552 char * resp = NULL; in sg_malloc() local
2565 resp = sg_low_malloc(size, low_dma, l_ms, 0); in sg_malloc()
2566 if (resp) in sg_malloc()
2568 resp = sg_low_malloc(size, low_dma, l_ms, &size); in sg_malloc()
2569 if (! resp) { in sg_malloc()
2571 resp = sg_low_malloc(size, low_dma, l_ms, &size); in sg_malloc()
2572 if (! resp) { in sg_malloc()
2574 resp = sg_low_malloc(size, low_dma, l_ms, &size); in sg_malloc()
2577 if (resp && retSzp) *retSzp = size; in sg_malloc()
2581 resp = sg_low_malloc(size, low_dma, l_ms, 0); in sg_malloc()
2582 if (resp) in sg_malloc()
2585 resp = sg_low_malloc(size, low_dma, l_ms, &size); in sg_malloc()
2586 if (resp && retSzp) *retSzp = size; in sg_malloc()
2592 if (resp) *mem_srcp = l_ms; in sg_malloc()
2595 size, *mem_srcp, resp)); in sg_malloc()
2596 return resp; in sg_malloc()