Lines Matching refs:ibs
125 if (req->ibs) { in free_pending_request()
126 if (atomic_dec_and_test(&req->ibs->refcount)) { in free_pending_request()
127 atomic_sub(req->ibs->data_size, &iso_buffer_size); in free_pending_request()
128 kfree(req->ibs); in free_pending_request()
306 struct iso_block_store *ibs = NULL; in iso_receive() local
328 if (!ibs) { in iso_receive()
329 ibs = kmalloc(sizeof(struct iso_block_store) in iso_receive()
331 if (!ibs) { in iso_receive()
337 atomic_set(&ibs->refcount, 0); in iso_receive()
338 ibs->data_size = length; in iso_receive()
339 memcpy(ibs->data, data, length); in iso_receive()
342 atomic_inc(&ibs->refcount); in iso_receive()
345 req->ibs = ibs; in iso_receive()
346 req->data = ibs->data; in iso_receive()
375 struct iso_block_store *ibs = NULL; in fcp_request() local
397 if (!ibs) { in fcp_request()
398 ibs = kmalloc(sizeof(struct iso_block_store) in fcp_request()
400 if (!ibs) { in fcp_request()
406 atomic_set(&ibs->refcount, 0); in fcp_request()
407 ibs->data_size = length; in fcp_request()
408 memcpy(ibs->data, data, length); in fcp_request()
411 atomic_inc(&ibs->refcount); in fcp_request()
414 req->ibs = ibs; in fcp_request()
415 req->data = ibs->data; in fcp_request()