Lines Matching refs:head

242 struct rpc_xprt *xprt_switch_find_first_entry(struct list_head *head)  in xprt_switch_find_first_entry()  argument
246 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry()
254 struct rpc_xprt *xprt_switch_find_first_entry_offline(struct list_head *head) in xprt_switch_find_first_entry_offline() argument
258 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry_offline()
276 struct rpc_xprt *_xprt_switch_find_current_entry(struct list_head *head, in _xprt_switch_find_current_entry() argument
283 list_for_each_entry_rcu(pos, head, xprt_switch) { in _xprt_switch_find_current_entry()
294 struct rpc_xprt *xprt_switch_find_current_entry(struct list_head *head, in xprt_switch_find_current_entry() argument
297 return _xprt_switch_find_current_entry(head, cur, true); in xprt_switch_find_current_entry()
302 struct rpc_xprt *first_entry(struct list_head *head), in _xprt_iter_current_entry() argument
303 struct rpc_xprt *current_entry(struct list_head *head, in _xprt_iter_current_entry() argument
307 struct list_head *head; in _xprt_iter_current_entry() local
311 head = &xps->xps_xprt_list; in _xprt_iter_current_entry()
313 return first_entry(head); in _xprt_iter_current_entry()
314 return current_entry(head, xpi->xpi_cursor); in _xprt_iter_current_entry()
325 struct rpc_xprt *xprt_switch_find_current_entry_offline(struct list_head *head, in xprt_switch_find_current_entry_offline() argument
328 return _xprt_switch_find_current_entry(head, cur, false); in xprt_switch_find_current_entry_offline()
343 struct list_head *head; in __rpc_xprt_switch_has_addr() local
349 head = &xps->xps_xprt_list; in __rpc_xprt_switch_has_addr()
350 list_for_each_entry_rcu(pos, head, xprt_switch) { in __rpc_xprt_switch_has_addr()
373 struct rpc_xprt *xprt_switch_find_next_entry(struct list_head *head, in xprt_switch_find_next_entry() argument
379 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_next_entry()
419 struct rpc_xprt *__xprt_switch_find_next_entry_roundrobin(struct list_head *head, in __xprt_switch_find_next_entry_roundrobin() argument
424 ret = xprt_switch_find_next_entry(head, cur, true); in __xprt_switch_find_next_entry_roundrobin()
427 return xprt_switch_find_first_entry(head); in __xprt_switch_find_next_entry_roundrobin()
434 struct list_head *head = &xps->xps_xprt_list; in xprt_switch_find_next_entry_roundrobin() local
441 xprt = __xprt_switch_find_next_entry_roundrobin(head, cur); in xprt_switch_find_next_entry_roundrobin()