Lines Matching refs:item
81 static struct rsi *rsi_lookup(struct rsi *item);
98 static inline int rsi_hash(struct rsi *item) in rsi_hash() argument
100 return hash_mem(item->in_handle.data, item->in_handle.len, RSI_HASHBITS) in rsi_hash()
101 ^ hash_mem(item->in_token.data, item->in_token.len, RSI_HASHBITS); in rsi_hash()
106 struct rsi *item = container_of(a, struct rsi, h); in rsi_match() local
108 return netobj_equal(&item->in_handle, &tmp->in_handle) in rsi_match()
109 && netobj_equal(&item->in_token, &tmp->in_token); in rsi_match()
129 struct rsi *item = container_of(citem, struct rsi, h); in rsi_init() local
135 new->in_handle.len = item->in_handle.len; in rsi_init()
136 item->in_handle.len = 0; in rsi_init()
137 new->in_token.len = item->in_token.len; in rsi_init()
138 item->in_token.len = 0; in rsi_init()
139 new->in_handle.data = item->in_handle.data; in rsi_init()
140 item->in_handle.data = NULL; in rsi_init()
141 new->in_token.data = item->in_token.data; in rsi_init()
142 item->in_token.data = NULL; in rsi_init()
148 struct rsi *item = container_of(citem, struct rsi, h); in update_rsi() local
151 new->out_handle.len = item->out_handle.len; in update_rsi()
152 item->out_handle.len = 0; in update_rsi()
153 new->out_token.len = item->out_token.len; in update_rsi()
154 item->out_token.len = 0; in update_rsi()
155 new->out_handle.data = item->out_handle.data; in update_rsi()
156 item->out_handle.data = NULL; in update_rsi()
157 new->out_token.data = item->out_token.data; in update_rsi()
158 item->out_token.data = NULL; in update_rsi()
160 new->major_status = item->major_status; in update_rsi()
161 new->minor_status = item->minor_status; in update_rsi()
281 static struct rsi *rsi_lookup(struct rsi *item) in rsi_lookup() argument
284 int hash = rsi_hash(item); in rsi_lookup()
286 ch = sunrpc_cache_lookup(&rsi_cache, &item->h, hash); in rsi_lookup()
341 static struct rsc *rsc_lookup(struct rsc *item);
530 static struct rsc *rsc_lookup(struct rsc *item) in rsc_lookup() argument
533 int hash = rsc_hash(item); in rsc_lookup()
535 ch = sunrpc_cache_lookup(&rsc_cache, &item->h, hash); in rsc_lookup()