/external/llvm-project/openmp/libomptarget/src/ |
D | interface.cpp | 102 EXTERN void __tgt_target_data_begin(int64_t device_id, int32_t arg_num, in __tgt_target_data_begin() argument 104 __tgt_target_data_begin_mapper(nullptr, device_id, arg_num, args_base, args, in __tgt_target_data_begin() 108 EXTERN void __tgt_target_data_begin_nowait(int64_t device_id, int32_t arg_num, in __tgt_target_data_begin_nowait() argument 115 __tgt_target_data_begin_mapper(nullptr, device_id, arg_num, args_base, args, in __tgt_target_data_begin_nowait() 119 EXTERN void __tgt_target_data_begin_mapper(ident_t *loc, int64_t device_id, in __tgt_target_data_begin_mapper() argument 128 device_id, arg_num); in __tgt_target_data_begin_mapper() 131 if (device_id == OFFLOAD_DEVICE_DEFAULT) { in __tgt_target_data_begin_mapper() 132 device_id = omp_get_default_device(); in __tgt_target_data_begin_mapper() 133 DP("Use default device id %" PRId64 "\n", device_id); in __tgt_target_data_begin_mapper() 136 if (CheckDeviceAndCtors(device_id) != OFFLOAD_SUCCESS) { in __tgt_target_data_begin_mapper() [all …]
|
/external/libcups/backend/ |
D | ieee1284.c | 27 char *device_id, /* O - 1284 device ID */ in backendGetDeviceID() argument 37 (void)device_id; in backendGetDeviceID() 62 if (!device_id || device_id_size < 32) in backendGetDeviceID() 76 *device_id = '\0'; in backendGetDeviceID() 79 if (ioctl(fd, LPIOC_GET_DEVICE_ID((unsigned)device_id_size), device_id)) in backendGetDeviceID() 131 if ((length = read(devparportfd, device_id, (size_t)device_id_size - 1)) >= 2) in backendGetDeviceID() 133 device_id[length] = '\0'; in backendGetDeviceID() 160 length = (int)((((unsigned)device_id[0] & 255) << 8) + ((unsigned)device_id[1] & 255)); in backendGetDeviceID() 169 length = (int)((((unsigned)device_id[1] & 255) << 8) + ((unsigned)device_id[0] & 255)); in backendGetDeviceID() 189 device_id[0] = '\0'; in backendGetDeviceID() [all …]
|
D | usb-unix.c | 201 device_id[1024], /* Device ID string */ in list_devices() local 238 if (!backendGetDeviceID(fd, device_id, sizeof(device_id), in list_devices() 242 device_id, NULL); in list_devices() 250 device_id[1024], /* Device ID string */ in list_devices() 265 if (!backendGetDeviceID(fd, device_id, sizeof(device_id), in list_devices() 269 device_id, NULL); in list_devices() 329 device_id[1024], /* Device ID string */ in open_device() local 364 backendGetDeviceID(fd, device_id, sizeof(device_id), in open_device() 430 device_id[1024], /* Device ID string */ in open_device() 446 backendGetDeviceID(fd, device_id, sizeof(device_id), in open_device()
|
D | dnssd.c | 57 *device_id, /* 1284 device ID from TXT record */ member 479 best->name, best->device_id, NULL); in main() 518 best->name, best->device_id, NULL); in main() 1002 device_id[2048]; /* 1284 device ID */ local 1044 device_id[0] = '\0'; 1095 ptr = device_id + strlen(device_id); 1096 snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%s:%s;", key + 4, value); 1149 if (device->device_id) 1150 free(device->device_id); 1152 if (!device_id[0] && strcmp(model, "Unknown")) [all …]
|
/external/llvm-project/openmp/libomptarget/plugins/amdgpu/src/ |
D | rtl.cpp | 54 uint32_t device_id); 63 hostrpc_assign_buffer(hsa_agent_t, hsa_queue_t *, uint32_t device_id) { in hostrpc_assign_buffer() argument 66 device_id); in hostrpc_assign_buffer() 209 int32_t device_id; member 217 device_id(_device_id), CallStackAddr(_CallStackAddr), Name(_Name) { in KernelTy() 234 static atmi_place_t get_gpu_place(int device_id) { in get_gpu_place() argument 235 return ATMI_PLACE_GPU(0, device_id); in get_gpu_place() 237 static atmi_mem_place_t get_gpu_mem_place(int device_id) { in get_gpu_mem_place() argument 238 return ATMI_MEM_PLACE_GPU_MEM(0, device_id, 0); in get_gpu_mem_place() 385 void addOffloadEntry(int32_t device_id, __tgt_offload_entry entry) { in addOffloadEntry() argument [all …]
|
/external/autotest/client/common_lib/cros/fake_device_server/ |
D | commands.py | 46 def new_device(self, device_id): argument 55 self.device_commands[device_id] = {} 58 def remove_device(self, device_id): argument 64 del self.device_commands[device_id] 74 device_id = command_resource.get('deviceId', None) 75 if not device_id: 79 if device_id not in self.device_commands: 81 400, 'Unknown device with id %s' % device_id) 95 self.device_commands[device_id][command_id] = command_resource 118 device_id = kwargs.get('deviceId', None) [all …]
|
D | devices.py | 53 def _handle_state_patch(self, device_id, api_key, data): argument 133 device_id = args.pop(0) if args else None 135 if device_id is None or operation != 'patchState': 140 self._handle_state_patch(device_id, api_key, data) 141 return {'state': self.resource.get_data_val(device_id, 173 device_id, _, _ = common_util.parse_common_args(args, kwargs) 182 device_id, data) 183 new_device = self.resource.update_data_val(device_id, api_key,
|
/external/llvm-project/openmp/libomptarget/plugins/generic-elf-64bit/src/ |
D | rtl.cpp | 61 void createOffloadTable(int32_t device_id, __tgt_offload_entry *begin, in createOffloadTable() argument 63 assert(device_id < (int32_t)FuncGblEntries.size() && in createOffloadTable() 65 FuncGblEntries[device_id].emplace_back(); in createOffloadTable() 66 FuncOrGblEntryTy &E = FuncGblEntries[device_id].back(); in createOffloadTable() 73 bool findOffloadEntry(int32_t device_id, void *addr) { in findOffloadEntry() argument 74 assert(device_id < (int32_t)FuncGblEntries.size() && in findOffloadEntry() 76 FuncOrGblEntryTy &E = FuncGblEntries[device_id].back(); in findOffloadEntry() 88 __tgt_target_table *getOffloadEntriesTable(int32_t device_id) { in getOffloadEntriesTable() argument 89 assert(device_id < (int32_t)FuncGblEntries.size() && in getOffloadEntriesTable() 91 FuncOrGblEntryTy &E = FuncGblEntries[device_id].back(); in getOffloadEntriesTable() [all …]
|
/external/OpenCL-CTS/test_conformance/allocations/ |
D | allocation_functions.cpp | 22 int allocate_buffer(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_mem *me… in allocate_buffer() argument 26 return check_allocation_error(context, device_id, error, queue); in allocate_buffer() 30 int find_good_image_size(cl_device_id device_id, size_t size_to_allocate, size_t *width, size_t *he… in find_good_image_size() argument 34 if (checkForImageSupport(device_id)) { in find_good_image_size() 44 …error = clGetDeviceInfo( device_id, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( max_width ), &max_width, … in find_good_image_size() 46 …error = clGetDeviceInfo( device_id, CL_DEVICE_IMAGE2D_MAX_HEIGHT, sizeof( max_height ), &max_heigh… in find_good_image_size() 88 int allocate_image2d_read(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_m… in allocate_image2d_read() argument 92 error = find_good_image_size(device_id, size_to_allocate, &width, &height, NULL); in allocate_image2d_read() 100 return check_allocation_error(context, device_id, error, queue); in allocate_image2d_read() 104 int allocate_image2d_write(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_… in allocate_image2d_write() argument [all …]
|
D | allocation_fill.cpp | 23 int fill_buffer_with_data(cl_context context, cl_device_id device_id, cl_command_queue *queue, cl_m… in fill_buffer_with_data() argument 47 result = check_allocation_error(context, device_id, error, queue); in fill_buffer_with_data() 61 result = check_allocation_error(context, device_id, error, queue); in fill_buffer_with_data() 75 result = check_allocation_error(context, device_id, error, queue, &event); in fill_buffer_with_data() 103 result = check_allocation_error(context, device_id, error, queue); in fill_buffer_with_data() 117 result = check_allocation_error(context, device_id, error, queue); in fill_buffer_with_data() 131 result = check_allocation_error(context, device_id, error, queue, &event); in fill_buffer_with_data() 156 int fill_image_with_data(cl_context context, cl_device_id device_id, cl_command_queue *queue, cl_me… in fill_image_with_data() argument 188 result = check_allocation_error(context, device_id, error, queue); in fill_image_with_data() 208 result = check_allocation_error(context, device_id, error, queue); in fill_image_with_data() [all …]
|
D | allocation_functions.h | 19 int do_allocation(cl_context context, cl_command_queue *queue, cl_device_id device_id, size_t size_… 20 int allocate_buffer(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_mem *me… 21 int allocate_image2d_read(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_m… 22 int allocate_image2d_write(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_… 23 int allocate_size(cl_context context, cl_command_queue *queue, cl_device_id device_id, int multiple…
|
/external/openscreen/cast/sender/ |
D | cast_app_discovery_service_impl.cc | 80 const std::string& device_id = receiver.unique_id; in AddOrUpdateReceiver() local 81 receivers_by_id_[device_id] = receiver; in AddOrUpdateReceiver() 85 availability_tracker_.GetSupportedSources(device_id)); in AddOrUpdateReceiver() 88 RequestAppAvailability(device_id, app_id); in AddOrUpdateReceiver() 93 const std::string& device_id = receiver.unique_id; in RemoveReceiver() local 94 receivers_by_id_.erase(device_id); in RemoveReceiver() 96 availability_tracker_.RemoveResultsForDevice(device_id)); in RemoveReceiver() 100 const std::string& device_id, in RequestAppAvailability() argument 102 if (ShouldRefreshAppAvailability(device_id, app_id, clock_())) { in RequestAppAvailability() 104 device_id, app_id, in RequestAppAvailability() [all …]
|
D | cast_app_availability_tracker.cc | 57 const std::string& device_id, in UpdateAppAvailability() argument 60 auto& availabilities = app_availabilities_[device_id]; in UpdateAppAvailability() 88 const std::string& device_id) { in RemoveResultsForDevice() argument 89 auto affected_sources = GetSupportedSources(device_id); in RemoveResultsForDevice() 90 app_availabilities_.erase(device_id); in RemoveResultsForDevice() 95 const std::string& device_id) const { in GetSupportedSources() 96 auto it = app_availabilities_.find(device_id); in GetSupportedSources() 120 CastAppAvailabilityTracker::GetAvailability(const std::string& device_id, in GetAvailability() argument 122 auto availabilities_it = app_availabilities_.find(device_id); in GetAvailability()
|
/external/llvm-project/openmp/libomptarget/include/ |
D | omptarget.h | 166 void __tgt_target_data_begin(int64_t device_id, int32_t arg_num, 169 void __tgt_target_data_begin_nowait(int64_t device_id, int32_t arg_num, 175 void __tgt_target_data_begin_mapper(ident_t *loc, int64_t device_id, 182 ident_t *loc, int64_t device_id, int32_t arg_num, void **args_base, 190 void __tgt_target_data_end(int64_t device_id, int32_t arg_num, void **args_base, 192 void __tgt_target_data_end_nowait(int64_t device_id, int32_t arg_num, 197 void __tgt_target_data_end_mapper(ident_t *loc, int64_t device_id, 203 ident_t *loc, int64_t device_id, int32_t arg_num, void **args_base, 209 void __tgt_target_data_update(int64_t device_id, int32_t arg_num, 212 void __tgt_target_data_update_nowait(int64_t device_id, int32_t arg_num, [all …]
|
/external/libcups/cups/ |
D | options.c | 548 const char *device_id, /* I - IEEE-1284 device ID string */ in _cupsGet1284Values() argument 564 if (!device_id || !values) in _cupsGet1284Values() 575 while (*device_id) in _cupsGet1284Values() 577 while (_cups_isspace(*device_id)) in _cupsGet1284Values() 578 device_id ++; in _cupsGet1284Values() 580 if (!*device_id) in _cupsGet1284Values() 583 for (ptr = key; *device_id && *device_id != ':'; device_id ++) in _cupsGet1284Values() 585 *ptr++ = *device_id; in _cupsGet1284Values() 587 if (!*device_id) in _cupsGet1284Values() 594 device_id ++; in _cupsGet1284Values() [all …]
|
/external/libxkbcommon/src/x11/ |
D | state.c | 30 uint16_t device_id) in update_initial_state() argument 33 xcb_xkb_get_state(conn, device_id); in update_initial_state() 54 xcb_connection_t *conn, int32_t device_id) in xkb_x11_state_new_from_device() argument 58 if (device_id < 0 || device_id > 255) { in xkb_x11_state_new_from_device() 59 log_err_func(keymap->ctx, "illegal device ID: %d", device_id); in xkb_x11_state_new_from_device() 67 if (!update_initial_state(state, conn, device_id)) { in xkb_x11_state_new_from_device()
|
/external/tensorflow/tensorflow/core/profiler/convert/ |
D | xplane_to_trace_events.cc | 41 void BuildDeviceAndResources(uint32 device_id, const XPlaneVisitor& plane, in BuildDeviceAndResources() argument 44 device->set_device_id(device_id); in BuildDeviceAndResources() 46 bool sort_by_ordinal = (device_id == kHostThreadsDeviceId); in BuildDeviceAndResources() 61 void ConvertXPlaneToTraceEvents(uint32 device_id, const XPlaneVisitor& xplane, in ConvertXPlaneToTraceEvents() argument 64 BuildDeviceAndResources(device_id, xplane, in ConvertXPlaneToTraceEvents() 65 &(*trace->mutable_devices())[device_id]); in ConvertXPlaneToTraceEvents() 68 xplane.ForEachLine([device_id, trace](const XLineVisitor& xline) { in ConvertXPlaneToTraceEvents() 71 [device_id, resource_id, trace](const XEventVisitor& xevent) { in ConvertXPlaneToTraceEvents() 77 event->set_device_id(device_id); in ConvertXPlaneToTraceEvents() 137 uint32 device_id = kFirstDeviceId + xplane.Id(); in ConvertXSpaceToTraceEvents() local [all …]
|
D | trace_events_to_json.cc | 61 inline void AddDeviceMetadata(uint32 device_id, const Device& device, in AddDeviceMetadata() argument 64 absl::StrAppend(json, R"({"ph":"M","pid":)", device_id, in AddDeviceMetadata() 68 absl::StrAppend(json, R"({"ph":"M","pid":)", device_id, in AddDeviceMetadata() 70 device_id, "}},"); in AddDeviceMetadata() 73 inline void AddResourceMetadata(uint32 device_id, uint32 resource_id, in AddResourceMetadata() argument 76 absl::StrAppend(json, R"({"ph":"M","pid":)", device_id, R"(,"tid":)", in AddResourceMetadata() 82 absl::StrAppend(json, R"({"ph":"M","pid":)", device_id, R"(,"tid":)", in AddResourceMetadata() 89 absl::StrAppend(json, R"({"ph":"X","pid":)", event.device_id(), R"(,"tid":)", in AddTraceEvent() 113 uint32 device_id = id_and_device->first; in TraceEventsToJson() local 115 AddDeviceMetadata(device_id, device, &json); in TraceEventsToJson() [all …]
|
/external/autotest/client/common_lib/cros/cfm/ |
D | cras_node_collector.py | 98 def _get_device_name(self, device_data, device_id): argument 100 if device['ID'] == device_id: 111 device_id = node_data['ID'].split(':')[0] 112 device_name = self._get_device_name(device_data, device_id) 118 device_id=device_id, 128 device_id = node_data['ID'].split(':')[0] 129 device_name = self._get_device_name(device_data, device_id) 135 device_id=device_id,
|
/external/llvm-project/openmp/libomptarget/plugins/cuda/src/ |
D | rtl.cpp | 1013 int32_t __tgt_rtl_init_device(int32_t device_id) { in __tgt_rtl_init_device() argument 1014 assert(DeviceRTL.isValidDeviceId(device_id) && "device_id is invalid"); in __tgt_rtl_init_device() 1016 return DeviceRTL.initDevice(device_id); in __tgt_rtl_init_device() 1019 __tgt_target_table *__tgt_rtl_load_binary(int32_t device_id, in __tgt_rtl_load_binary() argument 1021 assert(DeviceRTL.isValidDeviceId(device_id) && "device_id is invalid"); in __tgt_rtl_load_binary() 1023 return DeviceRTL.loadBinary(device_id, image); in __tgt_rtl_load_binary() 1026 void *__tgt_rtl_data_alloc(int32_t device_id, int64_t size, void *) { in __tgt_rtl_data_alloc() argument 1027 assert(DeviceRTL.isValidDeviceId(device_id) && "device_id is invalid"); in __tgt_rtl_data_alloc() 1029 return DeviceRTL.dataAlloc(device_id, size); in __tgt_rtl_data_alloc() 1032 int32_t __tgt_rtl_data_submit(int32_t device_id, void *tgt_ptr, void *hst_ptr, in __tgt_rtl_data_submit() argument [all …]
|
/external/llvm-project/lldb/packages/Python/lldbsuite/test/ |
D | lldbplatformutil.py | 45 def _run_adb_command(cmd, device_id): argument 47 if device_id: 48 device_id_args = ["-s", device_id] 69 device_id = None 73 device_id = host_name 74 if device_id.startswith('[') and device_id.endswith(']'): 75 device_id = device_id[1:-1] 77 ["shell", "getprop", "ro.build.version.sdk"], device_id)
|
/external/arm-trusted-firmware/plat/xilinx/versal/pm_service/ |
D | pm_api_sys.h | 30 enum pm_ret_status pm_set_wakeup_source(uint32_t target, uint32_t device_id, 32 enum pm_ret_status pm_request_device(uint32_t device_id, uint32_t capabilities, 34 enum pm_ret_status pm_release_device(uint32_t device_id); 35 enum pm_ret_status pm_set_requirement(uint32_t device_id, uint32_t capabilities, 37 enum pm_ret_status pm_get_device_status(uint32_t device_id, uint32_t *response); 65 enum pm_ret_status pm_api_ioctl(uint32_t device_id, uint32_t ioctl_id, 74 enum pm_ret_status pm_get_op_characteristic(uint32_t device_id, 77 enum pm_ret_status pm_set_max_latency(uint32_t device_id, uint32_t latency); 78 enum pm_ret_status pm_register_notifier(uint32_t device_id, uint32_t event,
|
/external/webrtc/modules/audio_device/win/ |
D | core_audio_base_win.cc | 235 bool CoreAudioBase::IsDefaultDeviceId(const std::string& device_id) const { in IsDefaultDeviceId() 241 (device_id == core_audio_utility::GetDefaultInputDeviceID())) || in IsDefaultDeviceId() 243 (device_id == core_audio_utility::GetDefaultOutputDeviceID())); in IsDefaultDeviceId() 247 const std::string& device_id) const { in IsDefaultCommunicationsDeviceId() 253 (device_id == in IsDefaultCommunicationsDeviceId() 256 (device_id == core_audio_utility::GetCommunicationsOutputDeviceID())); in IsDefaultCommunicationsDeviceId() 273 std::string device_id; in GetDeviceID() local 275 device_id = IsInput() ? core_audio_utility::GetDefaultInputDeviceID() in GetDeviceID() 278 device_id = IsInput() in GetDeviceID() 287 device_id = device_names[index].unique_id; in GetDeviceID() [all …]
|
/external/libcups/scheduler/ |
D | cups-driverd.cxx | 81 device_id[256], /* IEEE 1284 Device ID */ member 149 const char *device_id, const char *product, 184 static regex_t *regex_device_id(const char *device_id); 233 const char *device_id, /* I - 1284DeviceID */ in add_ppd() argument 278 strlcpy(ppd->record.device_id, device_id, sizeof(ppd->record.device_id)); in add_ppd() 806 ppd->record.make_and_model, ppd->record.device_id, in dump_ppds_dat() 1020 const char *device_id, /* ppd-device-id option */ in list_ppds() local 1190 device_id = cupsGetOption("ppd-device-id", num_options, options); in list_ppds() 1286 if (device_id || language || make || make_and_model || model_number_str || in list_ppds() 1291 if (device_id) in list_ppds() [all …]
|
/external/libxkbcommon/test/ |
D | x11.c | 35 int32_t device_id; in main() local 62 device_id = xkb_x11_get_core_keyboard_device_id(conn); in main() 63 assert(device_id != -1); in main() 65 keymap = xkb_x11_keymap_new_from_device(ctx, conn, device_id, in main() 69 state = xkb_x11_state_new_from_device(keymap, conn, device_id); in main()
|