/system/core/trusty/utils/trusty-ut-ctrl/ |
D | ut-ctrl.c | 30 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/ |
D | trusty.c | 32 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/ |
D | tipc_test.c | 30 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/ |
D | ioshark_bench_subr.c | 388 char dev_name[BUFSIZE]; in get_blockdev_name() local 397 if (fgets(dev_name, BUFSIZE, cmd) == NULL) { in get_blockdev_name() 405 if (strncmp(dev_name, "bullhead", strlen("bullhead")) == 0 || in get_blockdev_name() 406 strncmp(dev_name, "angler", strlen("angler")) == 0 || in get_blockdev_name() 407 strncmp(dev_name, "shamu", strlen("shamu")) == 0 || in get_blockdev_name() 408 strncmp(dev_name, "aosp_gobo", strlen("aosp_gobo")) == 0 || in get_blockdev_name() 409 strncmp(dev_name, "full_k37_y33_gms", strlen("full_k37_y33_gms")) == 0 || in get_blockdev_name() 410 strncmp(dev_name, "fugu", strlen("fugu")) == 0) { in get_blockdev_name() 412 } else if (strncmp(dev_name, "marlin", strlen("marlin")) == 0 || in get_blockdev_name() 413 strncmp(dev_name, "sailfish", strlen("sailfish")) == 0 || in get_blockdev_name() [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 82 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/ |
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);
|
/system/core/adb/client/ |
D | usb_linux.cpp | 94 static int is_known_device(std::string_view dev_name) { in is_known_device() argument 97 if (usb->path == dev_name) { in is_known_device() 155 std::string dev_name = bus_name + "/" + de->d_name; in find_usb_device() local 156 if (is_known_device(dev_name)) { in find_usb_device() 160 int fd = unix_open(dev_name, O_RDONLY | O_CLOEXEC); in find_usb_device() 185 DBGX("[ %s is V:%04x P:%04x ]\n", dev_name.c_str(), vid, pid); in find_usb_device() 289 register_device_callback(dev_name.c_str(), devpath, local_ep_in, in find_usb_device() 514 static void register_device(const char* dev_name, const char* dev_path, unsigned char ep_in, in register_device() argument 527 if (usb->path == dev_name) { in register_device() 533 D("[ usb located new device %s (%d/%d/%d) ]", dev_name, ep_in, ep_out, interface); in register_device() [all …]
|
D | usb_windows.cpp | 84 int known_device(const wchar_t* dev_name); 88 int known_device_locked(const wchar_t* dev_name); 128 int known_device_locked(const wchar_t* dev_name) { in known_device_locked() argument 129 if (nullptr != dev_name) { in known_device_locked() 133 if ((nullptr != usb->interface_name) && (0 == wcsicmp(usb->interface_name, dev_name))) { in known_device_locked() 142 int known_device(const wchar_t* dev_name) { in known_device() argument 145 if (nullptr != dev_name) { in known_device() 147 ret = known_device_locked(dev_name); in known_device()
|
/system/core/libdiskconfig/ |
D | config_mbr.c | 324 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/ |
D | tipc.h | 24 int tipc_connect(const char *dev_name, const char *srv_name);
|
/system/extras/boottime_tools/io_analysis/ |
D | check_file_read.py | 266 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/ |
D | bta_hh_co.cc | 481 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 495 p_dev->fd, dev_name, dscp_len); in bta_hh_co_send_hid_info() 504 strlcpy((char*)ev.u.create.name, dev_name, sizeof(ev.u.create.name)); in bta_hh_co_send_hid_info()
|
/system/bt/btif/src/ |
D | btif_hh.cc | 141 const char* dev_name, uint16_t vendor_id,
|