Lines Matching refs:item
82 static struct rsi *rsi_lookup(struct rsi *item);
99 static inline int rsi_hash(struct rsi *item)
101 return hash_mem(item->in_handle.data, item->in_handle.len, RSI_HASHBITS)
102 ^ hash_mem(item->in_token.data, item->in_token.len, RSI_HASHBITS);
107 struct rsi *item = container_of(a, struct rsi, h);
109 return netobj_equal(&item->in_handle, &tmp->in_handle) &&
110 netobj_equal(&item->in_token, &tmp->in_token);
130 struct rsi *item = container_of(citem, struct rsi, h);
136 new->in_handle.len = item->in_handle.len;
137 item->in_handle.len = 0;
138 new->in_token.len = item->in_token.len;
139 item->in_token.len = 0;
140 new->in_handle.data = item->in_handle.data;
141 item->in_handle.data = NULL;
142 new->in_token.data = item->in_token.data;
143 item->in_token.data = NULL;
149 struct rsi *item = container_of(citem, struct rsi, h);
152 new->out_handle.len = item->out_handle.len;
153 item->out_handle.len = 0;
154 new->out_token.len = item->out_token.len;
155 item->out_token.len = 0;
156 new->out_handle.data = item->out_handle.data;
157 item->out_handle.data = NULL;
158 new->out_token.data = item->out_token.data;
159 item->out_token.data = NULL;
161 new->major_status = item->major_status;
162 new->minor_status = item->minor_status;
287 static struct rsi *rsi_lookup(struct rsi *item)
290 int hash = rsi_hash(item);
292 ch = sunrpc_cache_lookup(&rsi_cache, &item->h, hash);
347 static struct rsc *rsc_lookup(struct rsc *item);
536 static struct rsc *rsc_lookup(struct rsc *item)
539 int hash = rsc_hash(item);
541 ch = sunrpc_cache_lookup(&rsc_cache, &item->h, hash);