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;
130 * the associated response data.
272 * sclp_sd_store_data() - Obtain data for specified Store Data entity
273 * @result: Resulting data
280 * %0: Success - result is stored in @result. @result->data must be
282 * %-ENOENT: No data available for this entity
289 void *data = NULL;
304 data = vzalloc(array_size((size_t)dsize, PAGE_SIZE));
305 if (!data) {
311 asce = base_asce_alloc((unsigned long) data, dsize);
313 vfree(data);
318 /* Get data */
319 rc = sclp_sd_sync(page, SD_EQ_STORE_DATA, di, asce, (u64) data, &dsize,
325 vfree(data);
332 result->data = data;
343 * @data: Data buffer to reset
345 * Reset @data to initial state and release associated memory.
347 static void sclp_sd_data_reset(struct sclp_sd_data *data)
349 vfree(data->data);
350 data->data = NULL;
351 data->dsize_bytes = 0;
352 data->esize_bytes = 0;
363 sclp_sd_data_reset(&sd_file->data);
371 * Obtain the current version of data associated with the Store Data entity
375 * data may have changed. Return non-zero otherwise.
380 struct sclp_sd_data data;
383 rc = sclp_sd_store_data(&data, sd_file->di);
386 pr_info("No data is available for the %s data entity\n",
393 sclp_sd_data_reset(&sd_file->data);
394 sd_file->data = data;
397 pr_info("A %zu-byte %s data entity was retrieved\n", data.dsize_bytes,
406 * @data: Object to update
409 static void sclp_sd_file_update_async(void *data, async_cookie_t cookie)
411 struct sclp_sd_file *sd_file = data;
423 * Initiate a reload of the data associated with an sclp_sd_file object.
450 * data_read() - Read function for "data" sysfs attribute
468 char *data;
472 data = sd_file->data.data;
473 data_size = sd_file->data.dsize_bytes;
474 if (!data || off >= data_size) {
479 memcpy(buffer, data + off, size);
524 sd_file->data_attr.attr.name = "data";
535 * For completeness only - users interested in entity data should listen