Lines Matching refs:data
56 * @data: Pointer to data - must be released using vfree()
61 void *data;
81 * @data_attr: Attribute for accessing data contents
82 * @data_mutex: Mutex to serialize access and updates to @data
83 * @data: Data associated with this entity
90 struct sclp_sd_data data;
129 * the associated response data.
271 * sclp_sd_store_data() - Obtain data for specified Store Data entity
272 * @result: Resulting data
279 * %0: Success - result is stored in @result. @result->data must be
281 * %-ENOENT: No data available for this entity
288 void *data = NULL;
303 data = vzalloc(array_size((size_t)dsize, PAGE_SIZE));
304 if (!data) {
310 asce = base_asce_alloc((unsigned long) data, dsize);
312 vfree(data);
317 /* Get data */
318 rc = sclp_sd_sync(page, SD_EQ_STORE_DATA, di, asce, (u64) data, &dsize,
326 data = NULL;
330 vfree(data);
337 result->data = data;
348 * @data: Data buffer to reset
350 * Reset @data to initial state and release associated memory.
352 static void sclp_sd_data_reset(struct sclp_sd_data *data)
354 vfree(data->data);
355 data->data = NULL;
356 data->dsize_bytes = 0;
357 data->esize_bytes = 0;
368 sclp_sd_data_reset(&sd_file->data);
376 * Obtain the current version of data associated with the Store Data entity
380 * data may have changed. Return non-zero otherwise.
385 struct sclp_sd_data data;
388 rc = sclp_sd_store_data(&data, sd_file->di);
391 pr_info("No data is available for the %s data entity\n",
398 sclp_sd_data_reset(&sd_file->data);
399 sd_file->data = data;
402 pr_info("A %zu-byte %s data entity was retrieved\n", data.dsize_bytes,
411 * @data: Object to update
413 static void sclp_sd_file_update_async(void *data, async_cookie_t cookie)
415 struct sclp_sd_file *sd_file = data;
424 * Initiate a reload of the data associated with an sclp_sd_file object.
466 char *data;
470 data = sd_file->data.data;
471 data_size = sd_file->data.dsize_bytes;
472 if (!data || off >= data_size) {
477 memcpy(buffer, data + off, size);
522 sd_file->data_attr.attr.name = "data";
533 * For completeness only - users interested in entity data should listen