Searched refs:interface (Results 1 - 17 of 17) sorted by relevance

/system/netd/
H A DInterfaceController.h36 int setEnableIPv6(const char *interface, const int on);
37 int setIPv6PrivacyExtensions(const char *interface, const int on);
38 int getMtu(const char *interface, int *mtu);
39 int setMtu(const char *interface, const char *mtu);
46 int writeIPv6ProcPath(const char *interface, const char *setting,
H A DClatdController.h27 int startClatd(char *interface);
H A DTetherController.h48 int tetherInterface(const char *interface);
49 int untetherInterface(const char *interface);
H A DInterfaceController.cpp63 ALOGW("Warning (%s) while opening the net interface command library", err_str ? err_str : "unknown");
68 ALOGW("Error (%s) while searching for the interface command init function", err_str ? err_str : "unknown");
70 ALOGE("Can't init the interface command API");
76 ALOGW("Error (%s) while searching for the interface command fini function", err_str ? err_str : "unknown");
81 ALOGE("Error (%s) while searching for the interface command function", err_str ? err_str : "unknown");
90 ALOGE("Can't shutdown the interface command API");
97 ALOGE("Error (%s) while closing the net interface command library", err_str ? err_str : "unknown");
104 * argv[2] - wlan interface
117 int InterfaceController::writeIPv6ProcPath(const char *interface, const char *setting, const char *value) { argument
119 asprintf(&path, "%s/%s/%s", ipv6_proc_path, interface, settin
125 setEnableIPv6(const char *interface, const int on) argument
133 setIPv6PrivacyExtensions(const char *interface, const int on) argument
169 getMtu(const char *interface, int *mtu) argument
183 setMtu(const char *interface, const char *mtu) argument
[all...]
H A DClatdController.cpp33 int ClatdController::startClatd(char *interface) { argument
53 args[2] = interface;
H A DTetherController.cpp272 int TetherController::tetherInterface(const char *interface) { argument
273 ALOGD("tetherInterface(%s)", interface);
274 mInterfaces->push_back(strdup(interface));
279 if (!strcmp(interface, *it)) {
291 int TetherController::untetherInterface(const char *interface) { argument
294 ALOGD("untetherInterface(%s)", interface);
297 if (!strcmp(interface, *it)) {
H A DMDnsSdListener.h36 void MDnsSdListenerResolveCallback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interface,
44 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname,
H A DMDnsSdListener.cpp243 void MDnsSdListenerResolveCallback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interface, argument
299 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname,
298 MDnsSdListenerGetAddrInfoCallback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interface, DNSServiceErrorType errorCode, const char *hostname, const struct sockaddr *const sa, uint32_t ttl, void *inContext) argument
/system/core/fastboot/
H A Dusb_osx.c61 IOUSBInterfaceInterface190 **interface; member in struct:usb_handle
73 IOUSBInterfaceInterface190 **interface = NULL; local
99 ERR("Couldn't create a device interface iterator: (%08x)\n", kr);
120 // Now create the interface interface for the interface
124 (LPVOID) &interface);
129 if (result || !interface) {
130 ERR("Couldn't create interface interface
[all...]
/system/core/adb/
H A Dusb_osx.c42 IOUSBInterfaceInterface **interface; member in struct:usb_handle
78 //* adb interface
88 //* Match based on vendor id, interface subclass and protocol
137 //* Create an intermediate interface plugin
144 DBG("ERR: Unable to create an interface plug-in (%08x)\n", kr);
148 //* This gets us the interface object
152 //* We only needed the plugin to get the interface, so discard it
155 DBG("ERR: Couldn't query the interface (%08x)\n", (int) result);
160 //* device; after getting a plugin, and querying the interface, of
165 DBG("ERR: Couldn't grab device from interface (
304 CheckInterface(IOUSBInterfaceInterface **interface, UInt16 vendor, UInt16 product) argument
[all...]
H A Dusb_libusb.c50 int interface; member in struct:usb_handle
218 libusb_release_interface(h->devh, h->interface);
242 libusb_release_interface(h->devh, h->interface);
249 check_usb_interface(libusb_interface *interface, argument
255 if (interface->num_altsetting == 0) {
256 D("check_usb_interface(): No interface settings\n");
260 libusb_interface_descriptor *idesc = &interface->altsetting[0];
284 D("check_usb_interface(): Forced Android interface protocol v.1\n");
313 if (check_usb_interface(&config->interface[i], desc, uh) != -1) {
314 /* found some interface an
[all...]
H A Dusb_linux.c158 struct usb_interface_descriptor* interface; local
208 // loop through all the descriptors and look for the ADB interface
214 interface = (struct usb_interface_descriptor *)bufptr;
218 D("interface descriptor has wrong size\n");
224 interface->bInterfaceClass, interface->bInterfaceSubClass,
225 interface->bInterfaceProtocol, interface->bNumEndpoints);
227 if (interface->bNumEndpoints == 2 &&
228 is_adb_interface(vid, pid, interface
560 register_device(const char *dev_name, const char *devpath, unsigned char ep_in, unsigned char ep_out, int interface, int serial_index, unsigned zero_mask) argument
[all...]
H A DAndroid.mk12 # Default to a virtual (sockets) usb interface
/system/core/libnetutils/
H A Ddhcp_utils.c37 /* interface length for dhcpcd daemon start (dhcpcd_<interface> as defined in init.rc file)
38 * or for filling up system properties dhcpcd.<interface>.ipaddress, dhcpcd.<interface>.dns1
44 * P2p interface names increase sequentially p2p-p2p0-1, p2p-p2p0-2.. after
47 * interface to be pre-defined in init.rc file.
51 void get_p2p_interface_replacement(const char *interface, char *p2p_interface) { argument
52 /* Use p2p for any interface starting with p2p. */
53 if (strncmp(interface, "p2p",3) == 0) {
56 strncpy(p2p_interface, interface, MAX_INTERFACE_LENGT
87 fill_ip_info(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns[], char *server, uint32_t *lease, char *vendorInfo, char *domain, char *mtu) argument
186 dhcp_do_request(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns[], char *server, uint32_t *lease, char *vendorInfo, char *domain, char *mtu) argument
260 dhcp_stop(const char *interface) argument
294 dhcp_release_lease(const char *interface) argument
330 dhcp_do_request_renew(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns[], char *server, uint32_t *lease, char *vendorInfo, char *domain, char *mtu) argument
[all...]
/system/core/include/usbhost/
H A Dusbhost.h179 /* Claims the specified interface of a USB device */
180 int usb_device_claim_interface(struct usb_device *device, unsigned int interface);
182 /* Releases the specified interface of a USB device */
183 int usb_device_release_interface(struct usb_device *device, unsigned int interface);
185 /* Requests the kernel to connect or disconnect its driver for the specified interface.
190 unsigned int interface, int connect);
/system/core/libusbhost/
H A Dusbhost.c538 int usb_device_claim_interface(struct usb_device *device, unsigned int interface) argument
540 return ioctl(device->fd, USBDEVFS_CLAIMINTERFACE, &interface);
543 int usb_device_release_interface(struct usb_device *device, unsigned int interface) argument
545 return ioctl(device->fd, USBDEVFS_RELEASEINTERFACE, &interface);
549 unsigned int interface, int connect)
553 ctl.ifno = interface;
548 usb_device_connect_kernel_driver(struct usb_device *device, unsigned int interface, int connect) argument
/system/core/init/
H A Dbuiltins.c167 static int __ifupdown(const char *interface, int up) argument
172 strlcpy(ifr.ifr_name, interface, IFNAMSIZ);

Completed in 170 milliseconds