Searched refs:dev_name (Results 1 - 11 of 11) sorted by relevance

/system/core/trusty/libtrusty/include/trusty/
H A Dtipc.h24 int tipc_connect(const char *dev_name, const char *srv_name);
/system/core/trusty/libtrusty/
H A Dtrusty.c32 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 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);
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 Dtipc_test.c30 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 Dusbhost.c84 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 Dconfig_mbr.c324 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 Dusb_windows.cpp88 int known_device(const wchar_t* dev_name);
92 int known_device_locked(const wchar_t* dev_name);
132 int known_device_locked(const wchar_t* dev_name) { argument
135 if (NULL != dev_name) {
140 (0 == wcsicmp(usb->interface_name, dev_name))) {
149 int known_device(const wchar_t* dev_name) { argument
152 if (NULL != dev_name) {
154 ret = known_device_locked(dev_name);
H A Dusb_linux.cpp92 static int is_known_device(const char* dev_name) { argument
95 if (usb->path == dev_name) {
153 std::string dev_name = bus_name + "/" + de->d_name; local
154 if (is_known_device(dev_name.c_str())) {
158 int fd = unix_open(dev_name.c_str(), O_RDONLY | O_CLOEXEC);
183 DBGX("[ %s is V:%04x P:%04x ]\n", dev_name.c_str(), vid, pid);
287 register_device_callback(dev_name.c_str(), devpath, local_ep_in,
507 static void register_device(const char* dev_name, const char* dev_path, unsigned char ep_in, argument
510 // Since Linux will not reassign the device ID (and dev_name) as long as the
520 if (usb->path == dev_name) {
[all...]
/system/extras/ioshark/
H A Dioshark_bench_subr.c383 char dev_name[BUFSIZE]; local
392 if (fgets(dev_name, BUFSIZE, cmd) == NULL) {
400 if (strncmp(dev_name, "bullhead", strlen("bullhead")) == 0 ||
401 strncmp(dev_name, "angler", strlen("angler")) == 0 ||
402 strncmp(dev_name, "shamu", strlen("shamu")) == 0) {
404 } else if (strncmp(dev_name, "marlin", strlen("marlin")) == 0 ||
405 strncmp(dev_name, "sailfish", strlen("sailfish")) == 0) {
412 progname, dev_name);
421 char line[BUFSIZE], dev_name[BUFSIZE]; local
450 &major, &minor, dev_name,
[all...]
/system/bt/btif/co/
H A Dbta_hh_co.cc453 void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev, const char* dev_name, argument
467 p_dev->fd, dev_name, dscp_len);
476 strncpy((char*)ev.u.create.name, dev_name, sizeof(ev.u.create.name) - 1);
/system/bt/btif/src/
H A Dbtif_hh.cc141 const char* dev_name, uint16_t vendor_id,

Completed in 143 milliseconds