Lines Matching defs:item
83 static struct rsi *rsi_lookup(struct cache_detail *cd, struct rsi *item);
108 static inline int rsi_hash(struct rsi *item)
110 return hash_mem(item->in_handle.data, item->in_handle.len, RSI_HASHBITS)
111 ^ hash_mem(item->in_token.data, item->in_token.len, RSI_HASHBITS);
116 struct rsi *item = container_of(a, struct rsi, h);
118 return netobj_equal(&item->in_handle, &tmp->in_handle) &&
119 netobj_equal(&item->in_token, &tmp->in_token);
139 struct rsi *item = container_of(citem, struct rsi, h);
145 new->in_handle.len = item->in_handle.len;
146 item->in_handle.len = 0;
147 new->in_token.len = item->in_token.len;
148 item->in_token.len = 0;
149 new->in_handle.data = item->in_handle.data;
150 item->in_handle.data = NULL;
151 new->in_token.data = item->in_token.data;
152 item->in_token.data = NULL;
158 struct rsi *item = container_of(citem, struct rsi, h);
161 new->out_handle.len = item->out_handle.len;
162 item->out_handle.len = 0;
163 new->out_token.len = item->out_token.len;
164 item->out_token.len = 0;
165 new->out_handle.data = item->out_handle.data;
166 item->out_handle.data = NULL;
167 new->out_token.data = item->out_token.data;
168 item->out_token.data = NULL;
170 new->major_status = item->major_status;
171 new->minor_status = item->minor_status;
295 static struct rsi *rsi_lookup(struct cache_detail *cd, struct rsi *item)
298 int hash = rsi_hash(item);
300 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash);
352 static struct rsc *rsc_lookup(struct cache_detail *cd, struct rsc *item);
572 static struct rsc *rsc_lookup(struct cache_detail *cd, struct rsc *item)
575 int hash = rsc_hash(item);
577 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash);