Lines Matching refs:pos
207 struct rpc_xprt *pos; in xprt_switch_find_first_entry() local
209 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry()
210 if (xprt_is_active(pos)) in xprt_switch_find_first_entry()
211 return pos; in xprt_switch_find_first_entry()
230 struct rpc_xprt *pos; in xprt_switch_find_current_entry() local
233 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_current_entry()
234 if (cur == pos) in xprt_switch_find_current_entry()
236 if (found && xprt_is_active(pos)) in xprt_switch_find_current_entry()
237 return pos; in xprt_switch_find_current_entry()
260 struct rpc_xprt *pos; in rpc_xprt_switch_has_addr() local
266 list_for_each_entry_rcu(pos, head, xprt_switch) { in rpc_xprt_switch_has_addr()
267 if (rpc_cmp_addr_port(sap, (struct sockaddr *)&pos->addr)) { in rpc_xprt_switch_has_addr()
269 pos->address_strings[RPC_DISPLAY_ADDR]); in rpc_xprt_switch_has_addr()
280 struct rpc_xprt *pos, *prev = NULL; in xprt_switch_find_next_entry() local
283 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_next_entry()
286 if (found && xprt_is_active(pos)) in xprt_switch_find_next_entry()
287 return pos; in xprt_switch_find_next_entry()
288 prev = pos; in xprt_switch_find_next_entry()
298 struct rpc_xprt *pos, *old; in xprt_switch_set_next_cursor() local
301 pos = find_next(xps, old); in xprt_switch_set_next_cursor()
302 smp_store_release(cursor, pos); in xprt_switch_set_next_cursor()
303 return pos; in xprt_switch_set_next_cursor()