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/
Dtrusty.c32 int tipc_connect(const char *dev_name, const char *srv_name) in tipc_connect() argument
37 fd = open(dev_name, O_RDWR); in tipc_connect()
41 __func__, dev_name, strerror(errno)); in tipc_connect()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c30 static const char *dev_name = NULL; variable
117 dev_name = strdup(optarg); in parse_options()
165 echo_fd = tipc_connect(dev_name, echo_name); in connect_test()
170 dsink_fd = tipc_connect(dev_name, datasink_name); in connect_test()
201 fd = tipc_connect(dev_name, "foo"); in connect_foo()
227 fd = tipc_connect(dev_name, closer1_name); in closer1_test()
256 fd = tipc_connect(dev_name, closer2_name); in closer2_test()
290 fd[j] = tipc_connect(dev_name, closer3_name); in closer3_test()
356 echo_fd = tipc_connect(dev_name, echo_name); in echo_test()
420 fd = tipc_connect(dev_name, datasink_name); in burst_write_test()
[all …]
/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/adb/client/
Dusb_linux.cpp95 static int is_known_device(std::string_view dev_name) { in is_known_device() argument
98 if (usb->path == dev_name) { in is_known_device()
156 std::string dev_name = bus_name + "/" + de->d_name; in find_usb_device() local
157 if (is_known_device(dev_name)) { in find_usb_device()
161 int fd = unix_open(dev_name, O_RDONLY | O_CLOEXEC); in find_usb_device()
186 DBGX("[ %s is V:%04x P:%04x ]\n", dev_name.c_str(), vid, pid); in find_usb_device()
290 register_device_callback(dev_name.c_str(), devpath, local_ep_in, in find_usb_device()
534 static void register_device(const char* dev_name, const char* dev_path, unsigned char ep_in, in register_device() argument
547 if (usb->path == dev_name) { in register_device()
553 D("[ usb located new device %s (%d/%d/%d) ]", dev_name, ep_in, ep_out, interface); in register_device()
[all …]
Dusb_windows.cpp86 int known_device(const wchar_t* dev_name);
90 int known_device_locked(const wchar_t* dev_name);
130 int known_device_locked(const wchar_t* dev_name) { in known_device_locked() argument
131 if (nullptr != dev_name) { in known_device_locked()
135 if ((nullptr != usb->interface_name) && (0 == wcsicmp(usb->interface_name, dev_name))) { in known_device_locked()
144 int known_device(const wchar_t* dev_name) { in known_device() argument
147 if (nullptr != dev_name) { in known_device()
149 ret = known_device_locked(dev_name); in known_device()
/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.h24 int tipc_connect(const char *dev_name, const char *srv_name);
/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.cc503 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
517 p_dev->fd, dev_name, dscp_len); in bta_hh_co_send_hid_info()
526 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.cc137 const char* dev_name, uint16_t vendor_id,