Lines Matching refs:ri
384 struct rsbtbl_iter *ri = iter_ptr; in table_seq_show() local
386 switch (ri->format) { in table_seq_show()
388 print_format1(ri->rsb, seq); in table_seq_show()
391 if (ri->header) { in table_seq_show()
393 ri->header = 0; in table_seq_show()
395 print_format2(ri->rsb, seq); in table_seq_show()
398 if (ri->header) { in table_seq_show()
400 ri->header = 0; in table_seq_show()
402 print_format3(ri->rsb, seq); in table_seq_show()
405 if (ri->header) { in table_seq_show()
407 ri->header = 0; in table_seq_show()
409 print_format4(ri->rsb, seq); in table_seq_show()
426 struct rsbtbl_iter *ri; in table_seq_start() local
438 ri = kzalloc(sizeof(*ri), GFP_NOFS); in table_seq_start()
439 if (!ri) in table_seq_start()
442 ri->header = 1; in table_seq_start()
444 ri->format = 1; in table_seq_start()
446 ri->format = 2; in table_seq_start()
448 ri->format = 3; in table_seq_start()
450 ri->format = 4; in table_seq_start()
460 ri->rsb = r; in table_seq_start()
461 ri->bucket = bucket; in table_seq_start()
463 return ri; in table_seq_start()
481 kfree(ri); in table_seq_start()
491 ri->rsb = r; in table_seq_start()
492 ri->bucket = bucket; in table_seq_start()
495 return ri; in table_seq_start()
504 struct rsbtbl_iter *ri = iter_ptr; in table_seq_next() local
519 rp = ri->rsb; in table_seq_next()
525 ri->rsb = r; in table_seq_next()
529 return ri; in table_seq_next()
546 kfree(ri); in table_seq_next()
557 ri->rsb = r; in table_seq_next()
558 ri->bucket = bucket; in table_seq_next()
561 return ri; in table_seq_next()
569 struct rsbtbl_iter *ri = iter_ptr; in table_seq_stop() local
571 if (ri) { in table_seq_stop()
572 dlm_put_rsb(ri->rsb); in table_seq_stop()
573 kfree(ri); in table_seq_stop()