Lines Matching refs:data
175 // get the device data
176 user_disk_device_data* data = NULL;
177 status_t error = _GetData(ID(), true, 0, &data);
179 // set the data
181 error = _Update(data, updated);
184 if (error != B_OK && data)
185 free(data);
410 user_disk_device_data** data)
412 // get the device data
442 *data = (user_disk_device_data*)buffer;
456 // get the device data
457 user_disk_device_data* data = NULL;
458 status_t error = _GetData(id, deviceOnly, neededSize, &data);
460 // set the data
462 error = _SetTo(data);
465 if (error != B_OK && data)
466 free(data);
474 BDiskDevice::_SetTo(user_disk_device_data* data)
478 if (!data)
481 fDeviceData = data;
487 // data. So, unset fDeviceData before calling Unset().
498 BDiskDevice::_Update(user_disk_device_data* data, bool* updated)
500 if (!data || !fDeviceData || ID() != data->device_partition_data.id)
508 _ClearUserData(&data->device_partition_data);
511 status_t error = _RemoveObsoleteDescendants(&data->device_partition_data,
517 error = BPartition::_Update(&data->device_partition_data, updated);
520 fDeviceData = data;
522 if (data->device_flags != oldData->device_flags
523 || strcmp(data->path, oldData->path)) {
543 BDiskDevice::_ClearUserData(user_partition_data* data)
545 data->user_data = NULL;
548 for (int i = 0; i < data->child_count; i++)
549 _ClearUserData(data->children[i]);