Lines Matching refs:data
16 struct hypfs_dbfs_data *data;
18 data = kmalloc(sizeof(*data), GFP_KERNEL);
19 if (!data)
21 data->dbfs_file = f;
22 return data;
25 static void hypfs_dbfs_data_free(struct hypfs_dbfs_data *data)
27 data->dbfs_file->data_free(data->buf_free_ptr);
28 kfree(data);
34 struct hypfs_dbfs_data *data;
43 data = hypfs_dbfs_data_alloc(df);
44 if (!data) {
48 rc = df->data_create(&data->buf, &data->buf_free_ptr, &data->size);
51 kfree(data);
56 rc = simple_read_from_buffer(buf, size, ppos, data->buf, data->size);
57 hypfs_dbfs_data_free(data);