Lines Matching refs:ri
431 struct rsbtbl_iter *ri = iter_ptr; in table_seq_show() local
433 switch (ri->format) { in table_seq_show()
435 print_format1(ri->rsb, seq); in table_seq_show()
438 if (ri->header) { in table_seq_show()
440 ri->header = 0; in table_seq_show()
442 print_format2(ri->rsb, seq); in table_seq_show()
445 if (ri->header) { in table_seq_show()
447 ri->header = 0; in table_seq_show()
449 print_format3(ri->rsb, seq); in table_seq_show()
452 if (ri->header) { in table_seq_show()
454 ri->header = 0; in table_seq_show()
456 print_format4(ri->rsb, seq); in table_seq_show()
459 if (ri->header) { in table_seq_show()
461 ri->header = 0; in table_seq_show()
463 print_format5(ri->rsb, seq); in table_seq_show()
481 struct rsbtbl_iter *ri; in table_seq_start() local
493 ri = kzalloc(sizeof(*ri), GFP_NOFS); in table_seq_start()
494 if (!ri) in table_seq_start()
497 ri->header = 1; in table_seq_start()
499 ri->format = 1; in table_seq_start()
501 ri->format = 2; in table_seq_start()
503 ri->format = 3; in table_seq_start()
505 ri->format = 4; in table_seq_start()
507 ri->format = 5; in table_seq_start()
517 ri->rsb = r; in table_seq_start()
518 ri->bucket = bucket; in table_seq_start()
520 return ri; in table_seq_start()
538 kfree(ri); in table_seq_start()
548 ri->rsb = r; in table_seq_start()
549 ri->bucket = bucket; in table_seq_start()
552 return ri; in table_seq_start()
561 struct rsbtbl_iter *ri = iter_ptr; in table_seq_next() local
576 rp = ri->rsb; in table_seq_next()
582 ri->rsb = r; in table_seq_next()
586 return ri; in table_seq_next()
603 kfree(ri); in table_seq_next()
614 ri->rsb = r; in table_seq_next()
615 ri->bucket = bucket; in table_seq_next()
618 return ri; in table_seq_next()
626 struct rsbtbl_iter *ri = iter_ptr; in table_seq_stop() local
628 if (ri) { in table_seq_stop()
629 dlm_put_rsb(ri->rsb); in table_seq_stop()
630 kfree(ri); in table_seq_stop()