/hardware/interfaces/automotive/can/1.0/default/libnetdevice/ |
D | libnetdevice.cpp | 30 bool exists(std::string ifname) { in exists() argument 31 return nametoindex(ifname) != 0; in exists() 51 static struct ifreq ifreqFromName(const std::string& ifname) { in ifreqFromName() argument 53 strlcpy(ifr.ifr_name, ifname.c_str(), IF_NAMESIZE); in ifreqFromName() 57 std::optional<bool> isUp(std::string ifname) { in isUp() argument 58 struct ifreq ifr = ifreqFromName(ifname); in isUp() 63 bool up(std::string ifname) { in up() argument 64 struct ifreq ifr = ifreqFromName(ifname); in up() 70 bool down(std::string ifname) { in down() argument 71 struct ifreq ifr = ifreqFromName(ifname); in down()
|
D | can.cpp | 35 base::unique_fd socket(const std::string& ifname) { in socket() argument 38 addr.can_ifindex = nametoindex(ifname); in socket() 40 LOG(ERROR) << "Interface " << ifname << " doesn't exists"; in socket() 61 LOG(ERROR) << "Can't bind to CAN interface " << ifname; in socket() 68 bool setBitrate(std::string ifname, uint32_t bitrate) { in setBitrate() argument 74 const auto ifidx = nametoindex(ifname); in setBitrate() 76 LOG(ERROR) << "Can't find interface " << ifname; in setBitrate()
|
D | common.cpp | 25 unsigned int nametoindex(const std::string& ifname) { in nametoindex() argument 26 const auto ifidx = if_nametoindex(ifname.c_str()); in nametoindex() 31 LOG(ERROR) << "if_nametoindex(" << ifname << ") failed: " << err; in nametoindex()
|
D | common.h | 32 unsigned int nametoindex(const std::string& ifname);
|
/hardware/interfaces/automotive/can/1.0/default/libnetdevice/include/libnetdevice/ |
D | libnetdevice.h | 30 bool exists(std::string ifname); 38 std::optional<bool> isUp(std::string ifname); 46 bool up(std::string ifname); 54 bool down(std::string ifname);
|
D | can.h | 31 base::unique_fd socket(const std::string& ifname); 39 bool setBitrate(std::string ifname, uint32_t bitrate);
|
/hardware/interfaces/automotive/can/1.0/tools/configurator/ |
D | canprototools.cpp | 87 const auto ifname = pb_bus.native().ifname(); in fromPbBus() local 89 if (ifname.empty() == serialno.empty()) { in fromPbBus() 96 if (!ifname.empty()) socketcan.ifname(ifname); in fromPbBus() 117 const auto ifname = pb_bus.virtual_().ifname(); in fromPbBus() local 118 if (ifname.empty()) { in fromPbBus() 122 bus_cfg.interfaceId.virtualif({ifname}); in fromPbBus()
|
/hardware/interfaces/wifi/1.4/default/ |
D | wifi_chip.cpp | 129 void setActiveWlanIfaceNameProperty(const std::string& ifname) { in setActiveWlanIfaceNameProperty() argument 130 auto res = property_set(kActiveWlanIfaceNameProperty, ifname.data()); in setActiveWlanIfaceNameProperty() 435 Return<void> WifiChip::getApIface(const hidl_string& ifname, in getApIface() argument 439 ifname); in getApIface() 442 Return<void> WifiChip::removeApIface(const hidl_string& ifname, in removeApIface() argument 446 ifname); in removeApIface() 459 Return<void> WifiChip::getNanIface(const hidl_string& ifname, in getNanIface() argument 463 ifname); in getNanIface() 466 Return<void> WifiChip::removeNanIface(const hidl_string& ifname, in removeNanIface() argument 470 ifname); in removeNanIface() [all …]
|
D | wifi_chip.h | 97 Return<void> getApIface(const hidl_string& ifname, 99 Return<void> removeApIface(const hidl_string& ifname, 103 Return<void> getNanIface(const hidl_string& ifname, 105 Return<void> removeNanIface(const hidl_string& ifname, 109 Return<void> getP2pIface(const hidl_string& ifname, 111 Return<void> removeP2pIface(const hidl_string& ifname, 115 Return<void> getStaIface(const hidl_string& ifname, 117 Return<void> removeStaIface(const hidl_string& ifname, 189 const std::string& ifname); 190 WifiStatus removeApIfaceInternal(const std::string& ifname); [all …]
|
D | wifi_p2p_iface.cpp | 31 const std::string& ifname, in WifiP2pIface() argument 33 : ifname_(ifname), legacy_hal_(legacy_hal), is_valid_(true) {} in WifiP2pIface()
|
D | wifi_ap_iface.cpp | 32 const std::string& ifname, in WifiApIface() argument 35 : ifname_(ifname), in WifiApIface()
|
/hardware/interfaces/automotive/can/1.0/default/ |
D | CanBusVirtual.cpp | 24 CanBusVirtual::CanBusVirtual(const std::string& ifname) : CanBus(ifname) {} in CanBusVirtual() argument
|
D | CanBusNative.cpp | 25 CanBusNative::CanBusNative(const std::string& ifname, uint32_t bitrate) in CanBusNative() argument 26 : CanBus(ifname), mBitrate(bitrate) {} in CanBusNative()
|
D | CanSocket.cpp | 37 std::unique_ptr<CanSocket> CanSocket::open(const std::string& ifname, ReadCallback rdcb, in open() argument 39 auto sock = netdevice::can::socket(ifname); in open() 41 LOG(ERROR) << "Can't open CAN socket on " << ifname; in open()
|
D | CanBusVirtual.h | 24 CanBusVirtual(const std::string& ifname);
|
D | CanBusNative.h | 24 CanBusNative(const std::string& ifname, uint32_t bitrate);
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | wificonfig.cpp | 796 static bool is_dynamic_interface(const char * ifname) in is_dynamic_interface() argument 799 if (iface == std::string(ifname)) in is_dynamic_interface() 815 const char* ifname, in wifi_virtual_interface_create() argument 826 ALOGD("%s: ifname=%s create", __FUNCTION__, ifname); in wifi_virtual_interface_create() 828 if (if_nametoindex(ifname)) in wifi_virtual_interface_create() 859 wifiConfigCommand->put_string(NL80211_ATTR_IFNAME, ifname); in wifi_virtual_interface_create() 868 added_ifaces.push_back(std::string(ifname)); in wifi_virtual_interface_create() 876 const char* ifname) in wifi_virtual_interface_delete() argument 887 ALOGD("%s: ifname=%s delete", __FUNCTION__, ifname); in wifi_virtual_interface_delete() 888 if (if_nametoindex(ifname) && !is_dynamic_interface(ifname)) { in wifi_virtual_interface_delete() [all …]
|
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 91 " cmd (%s)", bss->ifname, cmd); in wpa_driver_nl80211_driver_cmd() 96 linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 0); in wpa_driver_nl80211_driver_cmd() 99 linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1); in wpa_driver_nl80211_driver_cmd() 104 ret = linux_get_ifhwaddr(drv->global->ioctl_sock, bss->ifname, macaddr); in wpa_driver_nl80211_driver_cmd() 112 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in wpa_driver_nl80211_driver_cmd()
|
D | driver_cmd_wext.c | 118 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_combo_scan() 261 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_set_backgroundscan_params() 304 linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 0); in wpa_driver_wext_driver_cmd() 322 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_driver_cmd() 357 linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 1); in wpa_driver_wext_driver_cmd()
|
/hardware/interfaces/automotive/can/1.0/vts/functional/ |
D | VtsHalCanControllerV1_0TargetTest.cpp | 45 bool up(InterfaceType iftype, const std::string srvname, std::string ifname, 88 bool CanControllerHalTest::up(InterfaceType iftype, std::string srvname, std::string ifname, in up() argument 96 socketcan.ifname(ifname); in up() 100 slcan.ttyname(ifname); in up() 103 config.interfaceId.virtualif({ifname}); in up() 176 socketcanIfname.ifname("can0"); in TEST_P()
|
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 79 linux_set_iface_flags(drv->global->ioctl_sock, driver->first_bss->ifname, 1); in wpa_driver_nl80211_driver_cmd() 85 ret = linux_get_ifhwaddr(drv->global->ioctl_sock, bss->ifname, macaddr); in wpa_driver_nl80211_driver_cmd() 93 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in wpa_driver_nl80211_driver_cmd() 124 linux_set_iface_flags(drv->global->ioctl_sock, driver->first_bss->ifname, 0); in wpa_driver_nl80211_driver_cmd()
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | dhdu_linux.c | 444 char *ifname = NULL; in main() local 458 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in main() 459 if (ifname) in main() 460 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in main() 561 char *ifname = NULL; in process_args() local 582 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in process_args() 585 if (ifname) in process_args() 586 strncpy(ifr->ifr_name, ifname, IFNAMSIZ); in process_args()
|
/hardware/interfaces/wifi/1.0/ |
D | IWifiChip.hal | 331 * to the provided ifname. 333 * @param ifname Name of the iface. 342 getApIface(string ifname) generates (WifiStatus status, IWifiApIface iface); 345 * Removes the AP Iface with the provided ifname. 349 * @param ifname Name of the iface. 356 removeApIface(string ifname) generates (WifiStatus status); 391 * to the provided ifname. 393 * @param ifname Name of the iface. 402 getNanIface(string ifname) generates (WifiStatus status, IWifiNanIface iface); 405 * Removes the NAN Iface with the provided ifname. [all …]
|
/hardware/interfaces/wifi/1.4/default/tests/ |
D | mock_wifi_legacy_hal.h | 61 wifi_error(const std::string& ifname, 63 MOCK_METHOD1(deleteVirtualInterface, wifi_error(const std::string& ifname));
|
/hardware/interfaces/automotive/can/1.0/tools/configurator/proto/ |
D | canbus_config.proto | 22 string ifname = 1; field 32 string ifname = 1; field
|