Lines Matching defs:data
79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE,
81 if (map->aio.data[idx] == MAP_FAILED) {
82 map->aio.data[idx] = NULL;
91 if (map->aio.data[idx]) {
92 munmap(map->aio.data[idx], mmap__mmap_len(map));
93 map->aio.data[idx] = NULL;
99 void *data;
106 data = map->aio.data[idx];
115 if (mbind(data, mmap_len, MPOL_BIND, node_mask, node_index + 1 + 1, 0)) {
117 data, data + mmap_len, node_index);
128 map->aio.data[idx] = malloc(mmap__mmap_len(map));
129 if (map->aio.data[idx] == NULL)
137 zfree(&(map->aio.data[idx]));
155 pr_debug2("failed to allocate aiocb for data buffer, error %m\n");
160 pr_debug2("failed to allocate cblocks for data buffer, error %m\n");
163 map->aio.data = calloc(map->aio.nr_cblocks, sizeof(void *));
164 if (!map->aio.data) {
165 pr_debug2("failed to allocate data buffer, error %m\n");
172 pr_debug2("failed to allocate data buffer area, error %m");
207 if (map->aio.data)
208 zfree(&map->aio.data);
234 if (map->data != NULL) {
235 munmap(map->data, mmap__mmap_len(map));
236 map->data = NULL;
296 map->data = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE,
298 if (map->data == MAP_FAILED) {
299 pr_debug2("failed to mmap data buffer, error %d\n",
301 map->data = NULL;
317 unsigned char *data = md->core.base + page_size;
329 buf = &data[md->core.start & md->core.mask];
339 buf = &data[md->core.start & md->core.mask];