Lines Matching refs:rsii
84 static void rsi_free(struct rsi *rsii)
86 kfree(rsii->in_handle.data);
87 kfree(rsii->in_token.data);
88 kfree(rsii->out_handle.data);
89 kfree(rsii->out_token.data);
94 struct rsi *rsii = container_of(ref, struct rsi, h.ref);
95 rsi_free(rsii);
96 kfree(rsii);
167 struct rsi *rsii = kmalloc(sizeof(*rsii), GFP_KERNEL);
168 if (rsii)
169 return &rsii->h;
178 struct rsi *rsii = container_of(h, struct rsi, h);
180 qword_addhex(bpp, blen, rsii->in_handle.data, rsii->in_handle.len);
181 qword_addhex(bpp, blen, rsii->in_token.data, rsii->in_token.len);
198 struct rsi rsii, *rsip = NULL;
202 memset(&rsii, 0, sizeof(rsii));
208 if (dup_to_netobj(&rsii.in_handle, buf, len))
217 if (dup_to_netobj(&rsii.in_token, buf, len))
220 rsip = rsi_lookup(&rsii);
224 rsii.h.flags = 0;
235 rsii.major_status = simple_strtoul(buf, &ep, 10);
241 rsii.minor_status = simple_strtoul(buf, &ep, 10);
250 if (dup_to_netobj(&rsii.out_handle, buf, len))
259 if (dup_to_netobj(&rsii.out_token, buf, len))
261 rsii.h.expiry_time = expiry;
262 rsip = rsi_update(&rsii, rsip);
265 rsi_free(&rsii);