Home
last modified time | relevance | path

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

/system/core/trusty/utils/trusty-ut-ctrl/
Dut-ctrl.c30 static const char* dev_name = NULL; variable
72 dev_name = strdup(optarg); in parse_options()
105 fd = tipc_connect(dev_name, utapp); in run_trusty_unitest()
147 if (!dev_name) { in main()
148 dev_name = TIPC_DEFAULT_DEVNAME; in main()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c34 static const char *dev_name = NULL; variable
122 dev_name = strdup(optarg); in parse_options()
170 echo_fd = tipc_connect(dev_name, echo_name); in connect_test()
175 dsink_fd = tipc_connect(dev_name, datasink_name); in connect_test()
206 fd = tipc_connect(dev_name, "foo"); in connect_foo()
232 fd = tipc_connect(dev_name, closer1_name); in closer1_test()
261 fd = tipc_connect(dev_name, closer2_name); in closer2_test()
295 fd[j] = tipc_connect(dev_name, closer3_name); in closer3_test()
361 echo_fd = tipc_connect(dev_name, echo_name); in echo_test()
425 fd = tipc_connect(dev_name, datasink_name); in burst_write_test()
[all …]
/system/core/trusty/libtrusty/
Dtrusty.c32 int tipc_connect(const char* dev_name, const char* srv_name) { in tipc_connect() argument
36 fd = TEMP_FAILURE_RETRY(open(dev_name, O_RDWR)); in tipc_connect()
39 ALOGE("%s: cannot open tipc device \"%s\": %s\n", __func__, dev_name, strerror(errno)); in tipc_connect()
/system/extras/ioshark/
Dioshark_bench_subr.c382 char dev_name[BUFSIZE]; in get_blockdev_name() local
391 if (fgets(dev_name, BUFSIZE, cmd) == NULL) { in get_blockdev_name()
399 if (strncmp(dev_name, "bullhead", strlen("bullhead")) == 0 || in get_blockdev_name()
400 strncmp(dev_name, "angler", strlen("angler")) == 0 || in get_blockdev_name()
401 strncmp(dev_name, "shamu", strlen("shamu")) == 0 || in get_blockdev_name()
402 strncmp(dev_name, "aosp_gobo", strlen("aosp_gobo")) == 0 || in get_blockdev_name()
403 strncmp(dev_name, "full_k37_y33_gms", strlen("full_k37_y33_gms")) == 0 || in get_blockdev_name()
404 strncmp(dev_name, "fugu", strlen("fugu")) == 0) { in get_blockdev_name()
406 } else if (strncmp(dev_name, "marlin", strlen("marlin")) == 0 || in get_blockdev_name()
407 strncmp(dev_name, "sailfish", strlen("sailfish")) == 0 || in get_blockdev_name()
[all …]
/system/core/libusbhost/
Dusbhost.c82 char dev_name[64]; member
323 struct usb_device *usb_device_open(const char *dev_name) in usb_device_open() argument
328 D("usb_device_open %s\n", dev_name); in usb_device_open()
335 if (access(dev_name, R_OK | W_OK) == 0) { in usb_device_open()
339 if (access(dev_name, R_OK) == 0) { in usb_device_open()
341 writeable = (access(dev_name, R_OK | W_OK) == 0); in usb_device_open()
351 fd = open(dev_name, O_RDWR); in usb_device_open()
353 fd = open(dev_name, O_RDONLY); in usb_device_open()
358 struct usb_device* result = usb_device_new(dev_name, fd); in usb_device_open()
370 struct usb_device *usb_device_new(const char *dev_name, int fd) in usb_device_new() argument
[all …]
/system/core/libusbhost/include/usbhost/
Dusbhost.h57 typedef int (* usb_device_added_cb)(const char *dev_name, void *client_data);
62 typedef int (* usb_device_removed_cb)(const char *dev_name, void *client_data);
104 struct usb_device *usb_device_open(const char *dev_name);
110 struct usb_device *usb_device_new(const char *dev_name, int fd);
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp138 std::vector<DeviceMapper::TargetInfo> GetTableInfoIfExists(const std::string& dev_name) { in GetTableInfoIfExists() argument
141 if (!dm.GetTableInfo(dev_name, &table)) { in GetTableInfoIfExists()
168 void CheckDeleteDeviceMapperTree(const std::string& dev_name, bool known_allow_delete = false, in CheckDeleteDeviceMapperTree() argument
170 CHECK(depth > 0) << "Reaching max depth when deleting " << dev_name in CheckDeleteDeviceMapperTree()
174 auto table = GetTableInfoIfExists(dev_name); in CheckDeleteDeviceMapperTree()
176 PCHECK(dm.DeleteDeviceIfExists(dev_name)) << dev_name; in CheckDeleteDeviceMapperTree()
196 PCHECK(dm.GetDeviceString(dev_name, &dev_string)); in CheckDeleteDeviceMapperTree()
207 PCHECK(dm.DeleteDeviceIfExists(dev_name)) << dev_name; in CheckDeleteDeviceMapperTree()
/system/core/libdiskconfig/
Dconfig_mbr.c324 char *dev_name = NULL; in find_mbr_part() local
338 if (!(dev_name = malloc(MAX_NAME_LEN))) { in find_mbr_part()
343 num = snprintf(dev_name, MAX_NAME_LEN, "%s%d", dinfo->device, num); in find_mbr_part()
346 free(dev_name); in find_mbr_part()
350 return dev_name; in find_mbr_part()
/system/core/trusty/libtrusty/include/trusty/
Dtipc.h27 int tipc_connect(const char *dev_name, const char *srv_name);
/system/core/trusty/apploader/
Dapploader.cpp44 static const char* dev_name = kTrustyDefaultDeviceName; variable
82 dev_name = strdup(optarg); in parse_options()
242 tipc_fd = tipc_connect(dev_name, APPLOADER_PORT); in send_app_package()
/system/bt/test/mock/
Dmock_btif_co_bta_hh_co.cc64 void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev, const char* dev_name, in bta_hh_co_send_hid_info() argument
/system/extras/boottime_tools/io_analysis/
Dcheck_file_read.py266 dev_name = None
271 dev_name = PARTITION_TO_DEVICE[p]
272 if not dev_name:
276 files = self.files_per_device[dev_name]
/system/bt/btif/co/
Dbta_hh_co.cc506 void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev, const char* dev_name, in bta_hh_co_send_hid_info() argument
520 p_dev->fd, dev_name, dscp_len); in bta_hh_co_send_hid_info()
529 strlcpy((char*)ev.u.create.name, dev_name, sizeof(ev.u.create.name)); in bta_hh_co_send_hid_info()
/system/bt/btif/src/
Dbtif_hh.cc119 const char* dev_name, uint16_t vendor_id,