/hardware/invensense/libsensors/ |
SensorBase.cpp | 34 const char* dev_name, 36 : dev_name(dev_name), data_name(data_name), 54 if (dev_fd<0 && dev_name) { 55 dev_fd = open(dev_name, O_RDONLY); 56 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
|
SensorBase.h | 32 const char* dev_name; member in class:SensorBase 51 const char* dev_name,
|
/development/host/windows/usb/api/ |
adb_api_private_defines.h | 44 AdbInstanceEnumEntry(const wchar_t* dev_name, GUID cls_id, DWORD flgs) {
45 Set(dev_name, cls_id, flgs);
60 void Set(const wchar_t* dev_name, GUID cls_id, DWORD flgs) {
61 device_name_ = dev_name;
|
adb_helper_routines.cpp | 109 std::wstring dev_name;
local 111 if (GetUsbDeviceName(hardware_dev_info, &interface_data, &dev_name)) {
114 tmp.push_back(AdbInstanceEnumEntry(dev_name.c_str(),
|
/system/core/include/usbhost/ |
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); 91 struct usb_device *usb_device_open(const char *dev_name); 97 struct usb_device *usb_device_new(const char *dev_name, int fd); 103 * the dev_name passed to usb_device_open() 108 *Currently this is generated from the dev_name path.
|
/system/core/toolbox/ |
lsusb.c | 148 static int lsusb_device_added(const char *dev_name, void *client_data) 150 struct usb_device *dev = usb_device_open(dev_name); 153 fprintf(stderr, "can't open device %s: %s\n", dev_name, strerror(errno)); 161 printf("%s:\n", dev_name); 178 printf("%s: %04x:%04x %s %s %s\n", dev_name, vid, pid, 191 static int lsusb_device_removed(const char *dev_name, void *client_data)
|
/device/samsung/tuna/libsensors/ |
SamsungSensorBase.h | 50 SamsungSensorBase(const char* dev_name,
|
SamsungSensorBase.cpp | 57 SamsungSensorBase::SamsungSensorBase(const char *dev_name, 60 : SensorBase(dev_name, data_name),
|
/system/core/adb/ |
usb_windows.c | 69 int known_device(const char* dev_name); 73 int known_device_locked(const char* dev_name); 116 int known_device_locked(const char* dev_name) { 119 if (NULL != dev_name) { 124 (0 == stricmp(usb->interface_name, dev_name))) { 133 int known_device(const char* dev_name) { 136 if (NULL != dev_name) { 138 ret = known_device_locked(dev_name);
|
usb_linux.c | 85 static int known_device(const char *dev_name) 91 if(!strcmp(usb->fname, dev_name)) { 119 static void register_device(const char *dev_name, unsigned char ep_in, unsigned char ep_out, 535 static void register_device(const char *dev_name, 543 /* Since Linux will not reassign the device ID (and dev_name) 553 if(!strcmp(usb->fname, dev_name)) { 561 dev_name, ep_in, ep_out, interface); 563 strcpy(usb->fname, dev_name);
|
/system/core/libusbhost/ |
usbhost.c | 65 char dev_name[64]; member in struct:usb_device 206 struct usb_device *usb_device_open(const char *dev_name) 210 D("usb_device_open %s\n", dev_name); 213 fd = open(dev_name, O_RDWR); 216 fd = open(dev_name, O_RDONLY); 228 D("[ usb open read-only %s fd = %d]\n", dev_name, fd); 231 struct usb_device* result = usb_device_new(dev_name, fd); 243 struct usb_device *usb_device_new(const char *dev_name, int fd) 248 D("usb_device_new %s fd: %d\n", dev_name, fd); 257 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1) [all...] |
/system/core/libdiskconfig/ |
config_mbr.c | 298 char *dev_name = NULL; local 312 if (!(dev_name = malloc(MAX_NAME_LEN))) { 317 num = snprintf(dev_name, MAX_NAME_LEN, "%s%d", dinfo->device, num); 320 free(dev_name); 324 return dev_name;
|
/external/wpa_supplicant_8/src/wps/ |
wps_er.h | 33 char *dev_name; member in struct:wps_er_sta
|
wps_validate.c | 389 static int wps_validate_dev_name(const u8 *dev_name, size_t len, 392 if (dev_name == NULL) { 400 if (len > 0 && dev_name[len - 1] == 0) { 402 "attribute value", dev_name, len); 1163 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, probe) || 1218 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, wps2) || 1324 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || 1379 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || [all...] |
wps.c | 599 if (attr.dev_name) { 605 if (attr.dev_name[i] < 32) 608 str[i] = attr.dev_name[i];
|
wps.h | 335 * @dev_name: Device Name (if available) 340 const char *dev_name); 478 const u8 *dev_name; member in struct:wps_event_data::wps_event_m2d 523 const char *dev_name; member in struct:wps_event_data::wps_event_er_enrollee
|
wps_er.c | 56 ev->dev_name = sta->dev_name; 89 os_free(sta->dev_name); 795 if (attr->dev_name) { 796 os_free(sta->dev_name); 797 sta->dev_name = os_malloc(attr->dev_name_len + 1); 798 if (sta->dev_name) { 799 os_memcpy(sta->dev_name, attr->dev_name, 801 sta->dev_name[attr->dev_name_len] = '\0' [all...] |
/external/libpcap/ |
pcap-dos.c | 111 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf); 599 open_driver (const char *dev_name, char *ebuf, int promisc) 607 if (strcmp (dev_name,dev->name)) 616 sprintf (ebuf, "failed to detect device `%s'", dev_name); 638 sprintf (ebuf, "failed to activate device `%s'", dev_name); 656 /* 'dev_name' not matched in 'dev_base' list. 660 sprintf (ebuf, "device `%s' not supported", dev_name); 667 sprintf (ebuf, "device `%s' not probed", dev_name); 902 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf) 927 if (dev_name && strncmp(dev_name,"pkt",3) [all...] |
/external/wpa_supplicant_8/src/p2p/ |
p2p_build.c | 207 nlen = p2p->cfg->dev_name ? os_strlen(p2p->cfg->dev_name) : 0; 210 wpabuf_put_data(buf, p2p->cfg->dev_name, nlen); 409 p2p_add_wps_string(buf, ATTR_DEV_NAME, p2p->cfg->dev_name);
|
p2p.h | 307 * dev_name - Device Name 309 char *dev_name; member in struct:p2p_config 601 * @dev_name: Device Name 611 const char *dev_name, u16 supp_config_methods, 766 int p2p_set_dev_name(struct p2p_data *p2p, const char *dev_name); [all...] |
p2p_parse.c | 336 if (attr.dev_name && attr.dev_name_len < sizeof(msg->device_name) && 338 os_memcpy(msg->device_name, attr.dev_name, attr.dev_name_len); 520 cli->dev_name = (const char *) t; 582 os_memcpy(name, cli->dev_name, cli->dev_name_len); 591 ret = os_snprintf(pos, end - pos, " dev_name='%s'\n", name);
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
wps.h | 329 const u8 *dev_name; member in struct:wps_event_data::wps_event_m2d
|
wps_attr_parse.c | 346 attr->dev_name = pos;
|
wps_i.h | 156 const u8 *dev_name; member in struct:wps_parse_attr
|
/external/yaffs2/yaffs2/ |
yaffs_fs.c | [all...] |