Lines Matching defs:table
8 bool io_alloc_file_tables(struct io_file_table *table, unsigned nr_files);
9 void io_free_file_tables(struct io_file_table *table);
22 static inline void io_file_bitmap_clear(struct io_file_table *table, int bit)
24 WARN_ON_ONCE(!test_bit(bit, table->bitmap));
25 __clear_bit(bit, table->bitmap);
26 table->alloc_hint = bit;
29 static inline void io_file_bitmap_set(struct io_file_table *table, int bit)
31 WARN_ON_ONCE(test_bit(bit, table->bitmap));
32 __set_bit(bit, table->bitmap);
33 table->alloc_hint = bit + 1;
37 io_fixed_file_slot(struct io_file_table *table, unsigned i)
39 return &table->files[i];
56 static inline struct file *io_file_from_index(struct io_file_table *table,
59 return io_slot_file(io_fixed_file_slot(table, index));