Lines Matching refs:first
116 struct sba_request *first;
231 req->first = req;
309 static void sba_chain_request(struct sba_request *first,
317 list_add_tail(&req->next, &first->next);
318 req->first = first;
319 atomic_inc(&first->next_pending_count);
396 /* Get the first pending request */
420 struct sba_request *nreq, *first = req->first;
423 if (!atomic_dec_return(&first->next_pending_count)) {
424 tx = &first->tx;
441 /* Free all requests chained to first request */
442 list_for_each_entry(nreq, &first->next, next)
444 INIT_LIST_HEAD(&first->next);
446 /* Free the first request */
447 _sba_free_request(sba, first);
742 struct sba_request *first = NULL, *req;
751 if (first)
752 sba_free_chained_requests(first);
756 if (first)
757 sba_chain_request(first, req);
759 first = req;
765 return (first) ? &first->tx : NULL;
881 struct sba_request *first = NULL, *req;
894 if (first)
895 sba_free_chained_requests(first);
899 if (first)
900 sba_chain_request(first, req);
902 first = req;
908 return (first) ? &first->tx : NULL;
1351 struct sba_request *first = NULL, *req;
1390 if (first)
1391 sba_chain_request(first, req);
1393 first = req;
1408 if (first)
1409 sba_chain_request(first, req);
1411 first = req;
1422 if (first)
1423 sba_chain_request(first, req);
1425 first = req;
1432 return (first) ? &first->tx : NULL;
1435 if (first)
1436 sba_free_chained_requests(first);