/system/core/trusty/libtrusty/include/trusty/ |
H A D | tipc.h | 24 int tipc_connect(const char *dev_name, const char *srv_name);
|
/system/core/trusty/libtrusty/ |
H A D | trusty.c | 32 int tipc_connect(const char *dev_name, const char *srv_name) argument 37 fd = open(dev_name, O_RDWR); 41 __func__, dev_name, strerror(errno));
|
/system/core/libusbhost/include/usbhost/ |
H A D | usbhost.h | 57 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); 116 * the dev_name passed to usb_device_open() 121 *Currently this is generated from the dev_name path.
|
/system/core/trusty/libtrusty/tipc-test/ |
H A D | tipc_test.c | 30 static const char *dev_name = NULL; variable 117 dev_name = strdup(optarg); 165 echo_fd = tipc_connect(dev_name, echo_name); 170 dsink_fd = tipc_connect(dev_name, datasink_name); 201 fd = tipc_connect(dev_name, "foo"); 227 fd = tipc_connect(dev_name, closer1_name); 256 fd = tipc_connect(dev_name, closer2_name); 290 fd[j] = tipc_connect(dev_name, closer3_name); 356 echo_fd = tipc_connect(dev_name, echo_name); 420 fd = tipc_connect(dev_name, datasink_nam [all...] |
/system/core/libusbhost/ |
H A D | usbhost.c | 84 char dev_name[64]; member in struct:usb_device 325 struct usb_device *usb_device_open(const char *dev_name) argument 329 D("usb_device_open %s\n", dev_name); 332 fd = open(dev_name, O_RDWR); 335 fd = open(dev_name, O_RDONLY); 347 D("[ usb open read-only %s fd = %d]\n", dev_name, fd); 350 struct usb_device* result = usb_device_new(dev_name, fd); 362 struct usb_device *usb_device_new(const char *dev_name, int fd) argument 367 D("usb_device_new %s fd: %d\n", dev_name, fd); 376 strncpy(device->dev_name, dev_nam [all...] |
/system/core/libdiskconfig/ |
H A D | config_mbr.c | 324 char *dev_name = NULL; local 338 if (!(dev_name = malloc(MAX_NAME_LEN))) { 343 num = snprintf(dev_name, MAX_NAME_LEN, "%s%d", dinfo->device, num); 346 free(dev_name); 350 return dev_name;
|
/system/core/adb/client/ |
H A D | usb_windows.cpp | 85 int known_device(const wchar_t* dev_name); 89 int known_device_locked(const wchar_t* dev_name); 129 int known_device_locked(const wchar_t* dev_name) { argument 132 if (NULL != dev_name) { 137 (0 == wcsicmp(usb->interface_name, dev_name))) { 146 int known_device(const wchar_t* dev_name) { argument 149 if (NULL != dev_name) { 151 ret = known_device_locked(dev_name);
|
H A D | usb_linux.cpp | 91 static int is_known_device(const char* dev_name) { argument 94 if (usb->path == dev_name) { 151 std::string dev_name = bus_name + "/" + de->d_name; local 152 if (is_known_device(dev_name.c_str())) { 156 int fd = unix_open(dev_name.c_str(), O_RDONLY | O_CLOEXEC); 181 DBGX("[ %s is V:%04x P:%04x ]\n", dev_name.c_str(), vid, pid); 284 register_device_callback(dev_name.c_str(), devpath, 504 static void register_device(const char* dev_name, const char* dev_path, argument 508 // Since Linux will not reassign the device ID (and dev_name) as long as the 518 if (usb->path == dev_name) { [all...] |
/system/extras/ioshark/ |
H A D | ioshark_bench_subr.c | 381 char dev_name[BUFSIZE]; local 390 if (fgets(dev_name, BUFSIZE, cmd) == NULL) { 398 if (strncmp(dev_name, "bullhead", strlen("bullhead")) == 0 || 399 strncmp(dev_name, "angler", strlen("angler")) == 0 || 400 strncmp(dev_name, "shamu", strlen("shamu")) == 0) { 402 } else if (strncmp(dev_name, "marlin", strlen("marlin")) == 0 || 403 strncmp(dev_name, "sailfish", strlen("sailfish")) == 0) { 408 progname, dev_name); 417 char line[BUFSIZE], dev_name[BUFSIZE]; local 446 &major, &minor, dev_name, [all...] |
/system/bt/btif/co/ |
H A D | bta_hh_co.cc | 454 void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev, const char* dev_name, argument 468 p_dev->fd, dev_name, dscp_len); 477 strncpy((char*)ev.u.create.name, dev_name, sizeof(ev.u.create.name) - 1);
|
/system/bt/btif/src/ |
H A D | btif_hh.cc | 142 const char* dev_name, uint16_t vendor_id,
|