Home
last modified time | relevance | path

Searched refs:dev_name (Results 1 – 25 of 173) sorted by relevance

1234567

/external/iproute2/rdma/
Dutils.c62 static struct dev_map *dev_map_alloc(const char *dev_name) in dev_map_alloc() argument
69 dev_map->dev_name = strdup(dev_name); in dev_map_alloc()
79 free(dev_map->dev_name); in dev_map_free()
132 const char *dev_name; in rd_dev_init_cb() local
142 dev_name = mnl_attr_get_str(tb[RDMA_NLDEV_ATTR_DEV_NAME]); in rd_dev_init_cb()
144 dev_map = dev_map_alloc(dev_name); in rd_dev_init_cb()
239 struct dev_map *_dev_map_lookup(struct rd *rd, const char *dev_name) in _dev_map_lookup() argument
244 if (strcmp(dev_name, dev_map->dev_name) == 0) in _dev_map_lookup()
253 char *dev_name; in dev_map_lookup() local
256 dev_name = strdup(rd_argv(rd)); in dev_map_lookup()
[all …]
/external/libbrillo/brillo/blkdev_utils/
Ddevice_mapper_fake.cc20 std::string dev_name = task->name; in StubDmRunTask() local
29 if (dm_target_map_.find(dev_name) != dm_target_map_.end()) in StubDmRunTask()
31 dm_target_map_.insert(std::make_pair(dev_name, task->targets)); in StubDmRunTask()
35 if (dm_target_map_.find(dev_name) == dm_target_map_.end()) in StubDmRunTask()
37 dm_target_map_.erase(dev_name); in StubDmRunTask()
41 if (dm_target_map_.find(dev_name) == dm_target_map_.end()) in StubDmRunTask()
43 task->targets = dm_target_map_[dev_name]; in StubDmRunTask()
47 if (dm_target_map_.find(dev_name) == dm_target_map_.end()) in StubDmRunTask()
49 dm_target_map_.erase(dev_name); in StubDmRunTask()
50 dm_target_map_.insert(std::make_pair(dev_name, task->targets)); in StubDmRunTask()
/external/fsck_msdos/
Dfsutil.c165 char *dev_name; in getmntpt() local
178 dev_name = statfsp->f_mntfromname; in getmntpt()
179 if (*dev_name != '/') { in getmntpt()
180 if (strlen(_PATH_DEV) + strlen(dev_name) + 1 > in getmntpt()
184 strcat(device, dev_name); in getmntpt()
192 if (stat(dev_name, &mntdevstat) == 0 && in getmntpt()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcollective_rma_distributed_test.cc318 string dev_name = "CPU:0"; in TEST_F() local
319 TF_EXPECT_OK(device_mgrs_[0]->LookupDevice(dev_name, &dst_device)); in TEST_F()
322 "/job:worker/replica:0/task:1/device:" + dev_name, // peer_dev in TEST_F()
348 string dev_name = "CPU:0"; in TEST_F() local
349 TF_EXPECT_OK(device_mgrs_[0]->LookupDevice(dev_name, &dst_device)); in TEST_F()
352 "/job:worker/replica:0/task:1/device:" + dev_name, // peer_dev in TEST_F()
383 string dev_name = "CPU:0"; in TEST_F() local
384 TF_EXPECT_OK(device_mgrs_[0]->LookupDevice(dev_name, &dst_device)); in TEST_F()
387 "/job:worker/replica:0/task:1/device:" + dev_name, // peer_dev in TEST_F()
411 string dev_name = "CPU:0"; in TEST_F() local
[all …]
/external/iproute2/devlink/
Ddevlink.c127 char *dev_name; member
133 const char *dev_name, in ifname_map_alloc() argument
143 ifname_map->dev_name = strdup(dev_name); in ifname_map_alloc()
146 if (!ifname_map->bus_name || !ifname_map->dev_name || in ifname_map_alloc()
149 free(ifname_map->dev_name); in ifname_map_alloc()
160 free(ifname_map->dev_name); in ifname_map_free()
185 char *dev_name; member
217 char *dev_name; member
363 const char *dev_name; in ifname_map_cb() local
376 dev_name = mnl_attr_get_str(tb[DEVLINK_ATTR_DEV_NAME]); in ifname_map_cb()
[all …]
/external/ltp/testcases/kernel/io/ltp-aiodio/
Daiocp.c77 char dev_name[1024]; in dev_block_size_by_path() local
99 strncpy(dev_name, mnt->mnt_fsname, sizeof(dev_name)); in dev_block_size_by_path()
100 dev_name[sizeof(dev_name)-1] = '\0'; in dev_block_size_by_path()
111 printf("Path '%s' is on device '%s'\n", path, dev_name); in dev_block_size_by_path()
113 fd = open(dev_name, O_RDONLY); in dev_block_size_by_path()
115 fprintf(stderr, "open('%s'): %s\n", dev_name, strerror(errno)); in dev_block_size_by_path()
126 printf("'%s' has block size %i\n", dev_name, size); in dev_block_size_by_path()
/external/ltp/testscripts/
Dltp-scsi_debug.sh51 dev_name=$(ls /proc/scsi/scsi_debug)
53 rm_dev=$dev_name:0:0:0
63 echo "The device $dev_name was removed successfully"
67 echo "0 0 0" > /sys/class/scsi_host/host$dev_name/scan
73 echo "The device $dev_name was added back successfully"
/external/pigweed/targets/stm32f429i-disc1/py/stm32f429i_disc1_utils/
Dstm32f429i_detector.py32 dev_name: str
43 BoardInfo(dev_name=dev.device,
72 _LOG.info(' - Port: %s', board.dev_name)
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/swiotlb/swiotlb_bounced/
Dformat9 field:__data_loc char[] dev_name; offset:8; size:4; signed:0;
15 print fmt: "dev_name: %s dma_mask=%llx dev_addr=%llx size=%zu %s", __get_str(dev_name), REC->dma_ma…
/external/adhd/cras/src/server/
Dcras_alsa_jack.c438 const char *pathname, const char *dev_name, in create_jack_for_gpio() argument
463 jack->gpio.device_name = strdup(dev_name); in create_jack_for_gpio()
530 const char *pathname, const char *dev_name, in open_and_monitor_gpio() argument
538 r = create_jack_for_gpio(jack_list, pathname, dev_name, switch_event, in open_and_monitor_gpio()
617 const char *dev_name) in gpio_switches_monitor_device() argument
645 rc = open_and_monitor_gpio(data, dev_path, dev_name, in gpio_switches_monitor_device()
657 const char *dev_name, void *arg) in gpio_switch_list_with_section() argument
662 if (strcmp(dev_name, data->section->jack_name)) { in gpio_switch_list_with_section()
667 data->rc = gpio_switches_monitor_device(data, dev_path, dev_name); in gpio_switch_list_with_section()
697 const char *dev_name, void *arg) in gpio_switch_list_by_matching() argument
[all …]
Dcras_alsa_ucm.c865 const char *dev_name, in ucm_get_dir_for_device() argument
870 pcm_name = ucm_get_playback_device_name_for_dev(mgr, dev_name); in ucm_get_dir_for_device()
877 pcm_name = ucm_get_capture_device_name_for_dev(mgr, dev_name); in ucm_get_dir_for_device()
904 const char *dev_name; in ucm_parse_device_section() local
906 dev_name = strdup(dev); in ucm_parse_device_section()
907 if (!dev_name) in ucm_parse_device_section()
910 pcm_name = ucm_get_dir_for_device(mgr, dev_name, &dir); in ucm_parse_device_section()
919 dev_name); in ucm_parse_device_section()
925 ucm_get_dependent_device_name_for_dev(mgr, dev_name); in ucm_parse_device_section()
931 jack_dev = ucm_get_jack_dev_for_dev(mgr, dev_name); in ucm_parse_device_section()
[all …]
/external/igt-gpu-tools/lib/
Ddrmtest.c213 char dev_name[16] = ""; in open_device() local
221 if (__get_drm_device_name(fd, dev_name, sizeof(dev_name) - 1) == -1) in open_device()
225 if (forced && chipset == DRIVER_ANY && strcmp(forced, dev_name)) in open_device()
230 int ret = strcmp(modules[mid].module, dev_name); in open_device()
/external/adhd/cras/src/tests/
Dalsa_helpers_unittest.cc170 const char* dev_name = "dev_name"; in TEST() local
180 dev_name, &used, &tstamp); in TEST()
193 const char* dev_name = "dev_name"; in TEST() local
198 severe_underrun_frames, dev_name, &avail, in TEST()
206 severe_underrun_frames, dev_name, &avail, in TEST()
216 severe_underrun_frames, dev_name, &avail, in TEST()
/external/selinux/libsepol/src/
Dibendports.c29 &tmp_ibendport->u.ibendport.dev_name) < 0) in ibendport_from_record()
37 strncpy(tmp_ibendport->u.ibendport.dev_name, ibdev_name, IB_DEVICE_NAME_MAX); in ibendport_from_record()
86 ibendport->u.ibendport.dev_name) < 0) in ibendport_to_record()
139 const char *ibdev_name2 = c->u.ibendport.dev_name; in sepol_ibendport_exists()
167 const char *ibdev_name2 = c->u.ibendport.dev_name; in sepol_ibendport_query()
/external/autotest/client/cros/faft/utils/
Dcgpt_handler.py48 def read_device_info(self, dev_name): argument
56 'cgpt show %s' % dev_name)
82 self.devices[dev_name] = device_data
/external/tensorflow/tensorflow/core/common_runtime/
Dpermuter_test.cc145 string dev_name = strings::StrCat("/job:worker/replica:0/task:", wi, in Init() local
148 sess_opts, dev_name, mem_limit, dev_locality, cpu_allocator())); in Init()
187 string dev_name; in Init() local
189 dev_name = strings::StrCat(task_name, "/device:GPU:0"); in Init()
191 dev_name = strings::StrCat(task_name, "/device:CPU:", di); in Init()
193 col_params_->group.device_names.push_back(dev_name); in Init()
194 col_params_->instance.devices.push_back(dev_name); in Init()
321 DeviceInstance(int rank, const string& dev_name, in DeviceInstance() argument
324 dev_name_(dev_name), in DeviceInstance()
328 TF_CHECK_OK(parent_->dev_mgr_->LookupDevice(dev_name, &device_)); in DeviceInstance()
Dhierarchical_tree_broadcaster_test.cc238 string dev_name = strings::StrCat("/job:worker/replica:0/task:", wi, in Init() local
241 sess_opts, dev_name, mem_limit, dev_locality, cpu_allocator())); in Init()
333 string dev_name; in Init() local
335 dev_name = strings::StrCat(task_name, "/device:GPU:0"); in Init()
337 dev_name = strings::StrCat(task_name, "/device:CPU:", di); in Init()
339 VLOG(2) << "dev=" << dev_name; in Init()
340 col_params_->group.device_names.push_back(dev_name); in Init()
550 string dev_name = strings::StrCat(task_name, "/device:GPU:", di); in PrepColParamsForSubdivPermsTest() local
552 cp->group.device_names.push_back(dev_name); in PrepColParamsForSubdivPermsTest()
559 DeviceInstance(int rank, const string& dev_name, in DeviceInstance() argument
[all …]
/external/pigweed/pw_arduino_build/py/pw_arduino_build/
Dteensy_detector.py44 dev_name: str
107 BoardInfo(dev_name=teensy_device["dev_name"],
126 _LOG.info(" - Port: %s", board.dev_name)
/external/autotest/client/site_tests/usbpd_GFU/
Dusbpd_GFU.py221 for dev_name in fw_dict.keys():
222 if flash_info['dev_major'] == self.DEV_MAJOR[dev_name]:
223 for old_rw in sorted(fw_dict[dev_name], reverse=True)[1:]:
225 port.index, dev_name, old_rw)
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/ufs/ufshcd_auto_bkops_state/
Dformat9 field:__data_loc char[] dev_name; offset:8; size:4; signed:0;
12 print fmt: "%s: state changed to %s", __get_str(dev_name), REC->state ? "ON" : "OFF"
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/napi/napi_poll/
Dformat10 field:__data_loc char[] dev_name; offset:16; size:4; signed:0;
12 print fmt: "napi poll on napi struct %p for device %s", REC->napi, __get_str(dev_name)
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/napi/napi_poll/
Dformat10 field:__data_loc char[] dev_name; offset:12; size:4; signed:0;
12 print fmt: "napi poll on napi struct %p for device %s", REC->napi, __get_str(dev_name)
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/napi/napi_poll/
Dformat10 field:__data_loc char[] dev_name; offset:16; size:4; signed:0;
12 print fmt: "napi poll on napi struct %p for device %s", REC->napi, __get_str(dev_name)
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/ufs/ufshcd_clk_gating/
Dformat9 field:__data_loc char[] dev_name; offset:8; size:4; signed:0;
12 print fmt: "%s: state changed to %s", __get_str(dev_name), __print_symbolic(REC->state, { CLKS_OFF,…
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/mmc/mmc_resume_host/
Dformat11 field:__data_loc char[] dev_name; offset:20; size:4; signed:0;
13 print fmt: "took %lld usecs, %s err %d", REC->usecs, __get_str(dev_name), REC->err

1234567