Lines Matching refs:data_mode
129 enum data_mode { enum
141 enum data_mode data_mode; member
305 static void adjust_total_allocated(enum data_mode data_mode, long diff) in adjust_total_allocated() argument
315 *class_ptr[data_mode] += diff; in adjust_total_allocated()
370 enum data_mode *data_mode) in alloc_buffer_data() argument
376 *data_mode = DATA_MODE_SLAB; in alloc_buffer_data()
382 *data_mode = DATA_MODE_GET_FREE_PAGES; in alloc_buffer_data()
387 *data_mode = DATA_MODE_VMALLOC; in alloc_buffer_data()
414 void *data, enum data_mode data_mode) in free_buffer_data() argument
416 switch (data_mode) { in free_buffer_data()
431 data_mode); in free_buffer_data()
449 b->data = alloc_buffer_data(c, gfp_mask, &b->data_mode); in alloc_buffer()
455 adjust_total_allocated(b->data_mode, (long)c->block_size); in alloc_buffer()
467 adjust_total_allocated(b->data_mode, -(long)c->block_size); in free_buffer()
469 free_buffer_data(c, b->data, b->data_mode); in free_buffer()
568 if (b->data_mode != DATA_MODE_VMALLOC) { in use_dmio()
653 b->data_mode != DATA_MODE_VMALLOC) in submit_io()