Lines Matching refs:first
108 struct sba_request *first;
223 req->first = req;
301 static void sba_chain_request(struct sba_request *first,
309 list_add_tail(&req->next, &first->next);
310 req->first = first;
311 atomic_inc(&first->next_pending_count);
388 /* Get the first pending request */
412 struct sba_request *nreq, *first = req->first;
415 if (!atomic_dec_return(&first->next_pending_count)) {
416 tx = &first->tx;
433 /* Free all requests chained to first request */
434 list_for_each_entry(nreq, &first->next, next)
436 INIT_LIST_HEAD(&first->next);
438 /* Free the first request */
439 _sba_free_request(sba, first);
734 struct sba_request *first = NULL, *req;
743 if (first)
744 sba_free_chained_requests(first);
748 if (first)
749 sba_chain_request(first, req);
751 first = req;
757 return (first) ? &first->tx : NULL;
873 struct sba_request *first = NULL, *req;
886 if (first)
887 sba_free_chained_requests(first);
891 if (first)
892 sba_chain_request(first, req);
894 first = req;
900 return (first) ? &first->tx : NULL;
1343 struct sba_request *first = NULL, *req;
1382 if (first)
1383 sba_chain_request(first, req);
1385 first = req;
1400 if (first)
1401 sba_chain_request(first, req);
1403 first = req;
1414 if (first)
1415 sba_chain_request(first, req);
1417 first = req;
1424 return (first) ? &first->tx : NULL;
1427 if (first)
1428 sba_free_chained_requests(first);