Lines Matching refs:rsii
83 static void rsi_free(struct rsi *rsii) in rsi_free() argument
85 kfree(rsii->in_handle.data); in rsi_free()
86 kfree(rsii->in_token.data); in rsi_free()
87 kfree(rsii->out_handle.data); in rsi_free()
88 kfree(rsii->out_token.data); in rsi_free()
93 struct rsi *rsii = container_of(ref, struct rsi, h.ref); in rsi_put() local
94 rsi_free(rsii); in rsi_put()
95 kfree(rsii); in rsi_put()
166 struct rsi *rsii = kmalloc(sizeof(*rsii), GFP_KERNEL); in rsi_alloc() local
167 if (rsii) in rsi_alloc()
168 return &rsii->h; in rsi_alloc()
177 struct rsi *rsii = container_of(h, struct rsi, h); in rsi_request() local
179 qword_addhex(bpp, blen, rsii->in_handle.data, rsii->in_handle.len); in rsi_request()
180 qword_addhex(bpp, blen, rsii->in_token.data, rsii->in_token.len); in rsi_request()
197 struct rsi rsii, *rsip = NULL; in rsi_parse() local
201 memset(&rsii, 0, sizeof(rsii)); in rsi_parse()
207 if (dup_to_netobj(&rsii.in_handle, buf, len)) in rsi_parse()
216 if (dup_to_netobj(&rsii.in_token, buf, len)) in rsi_parse()
219 rsip = rsi_lookup(&rsii); in rsi_parse()
223 rsii.h.flags = 0; in rsi_parse()
234 rsii.major_status = simple_strtoul(buf, &ep, 10); in rsi_parse()
240 rsii.minor_status = simple_strtoul(buf, &ep, 10); in rsi_parse()
249 if (dup_to_netobj(&rsii.out_handle, buf, len)) in rsi_parse()
258 if (dup_to_netobj(&rsii.out_token, buf, len)) in rsi_parse()
260 rsii.h.expiry_time = expiry; in rsi_parse()
261 rsip = rsi_update(&rsii, rsip); in rsi_parse()
264 rsi_free(&rsii); in rsi_parse()