Home
last modified time | relevance | path

Searched refs:mIfname (Results 1 – 15 of 15) sorted by relevance

/hardware/interfaces/automotive/can/aidl/default/
DCanBusVirtual.cpp29 if (netdevice::exists(mIfname)) return Result::OK; in preUp()
31 LOG(DEBUG) << "Virtual interface " << mIfname << " doesn't exist, creating..."; in preUp()
33 if (!netdevice::add(mIfname, "vcan")) { in preUp()
34 LOG(ERROR) << "Can't create vcan interface " << mIfname; in preUp()
44 if (!netdevice::del(mIfname)) { in postDown()
45 LOG(ERROR) << "Couldn't remove vcan interface " << mIfname; in postDown()
DCanBus.cpp24 CanBus::CanBus(std::string_view ifname) : mIfname(ifname) {} in CanBus()
40 return mIfname; in getIfaceName()
54 const auto isUp = ::android::netdevice::isUp(mIfname); in up()
57 LOG(ERROR) << "Interface " << mIfname << " didn't get prepared"; in up()
61 if (!*isUp && !::android::netdevice::up(mIfname)) { in up()
62 LOG(ERROR) << "Can't bring " << mIfname << " up"; in up()
82 if (mDownAfterUse && !::android::netdevice::down(mIfname)) { in down()
83 LOG(ERROR) << "Can't bring " << mIfname << " down"; in down()
DCanBusNative.cpp31 if (!netdevice::exists(mIfname)) { in preUp()
32 LOG(ERROR) << "Interface " << mIfname << " doesn't exist"; in preUp()
41 if (!netdevice::down(mIfname)) { in preUp()
42 LOG(ERROR) << "Can't bring " << mIfname << " down (to configure it)"; in preUp()
46 if (!netdevice::can::setBitrate(mIfname, mBitrate)) { in preUp()
47 LOG(ERROR) << "Can't set bitrate " << mBitrate << " for " << mIfname; in preUp()
DCanBus.h64 std::string mIfname; variable
DCanBusSlcan.cpp69 mIfname = ifrequest.ifr_name; in updateIfaceName()
/hardware/interfaces/automotive/can/1.0/default/
DCanBusVirtual.cpp27 if (netdevice::exists(mIfname)) return ICanController::Result::OK; in preUp()
29 LOG(DEBUG) << "Virtual interface " << mIfname << " doesn't exist, creating..."; in preUp()
31 if (!netdevice::add(mIfname, "vcan")) { in preUp()
32 LOG(ERROR) << "Can't create vcan interface " << mIfname; in preUp()
42 if (!netdevice::del(mIfname)) { in postDown()
43 LOG(ERROR) << "Couldn't remove vcan interface " << mIfname; in postDown()
DCanBusNative.cpp29 if (!netdevice::exists(mIfname)) { in preUp()
30 LOG(ERROR) << "Interface " << mIfname << " doesn't exist"; in preUp()
39 if (!netdevice::down(mIfname)) { in preUp()
40 LOG(ERROR) << "Can't bring " << mIfname << " down (to configure it)"; in preUp()
44 if (!netdevice::can::setBitrate(mIfname, mBitrate)) { in preUp()
45 LOG(ERROR) << "Can't set bitrate " << mBitrate << " for " << mIfname; in preUp()
DCanBus.cpp87 CanBus::CanBus(const std::string& ifname) : mIfname(ifname) {} in CanBus()
123 const auto isUp = netdevice::isUp(mIfname); in up()
126 LOG(ERROR) << "Interface " << mIfname << " didn't get prepared"; in up()
130 if (!*isUp && !netdevice::up(mIfname)) { in up()
131 LOG(ERROR) << "Can't bring " << mIfname << " up"; in up()
139 mSocket = CanSocket::open(mIfname, rdcb, errcb); in up()
141 if (mDownAfterUse) netdevice::down(mIfname); in up()
210 if (mDownAfterUse && !netdevice::down(mIfname)) { in down()
211 LOG(ERROR) << "Can't bring " << mIfname << " down"; in down()
DCanBus.h76 std::string mIfname; member
DCanBusSlcan.cpp64 mIfname = ifrequest.ifr_name; in updateIfaceName()
/hardware/interfaces/automotive/can/1.0/default/tests/fuzzer/
DAutomotiveCanV1_0Fuzzer.h60 : mIfname(config.name), mController(controller) { in Bus()
72 mController->downInterface(mIfname); in reset()
102 const std::string mIfname;
/hardware/interfaces/automotive/can/1.0/vts/functional/
DVtsHalCanControllerV1_0TargetTest.cpp40 : mIfname(config.name), mController(controller) { in Bus()
55 const std::string mIfname; member
DVtsHalCanBusVirtualV1_0TargetTest.cpp84 : mIfname(config.name), mController(controller) { in Bus()
101 const auto res = mController->downInterface(mIfname); in reset()
130 const std::string mIfname; member
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dwifi_hal.cpp2515 const char *mIfname; member in VirtualIfaceConfig
2522 : WifiCommand("VirtualIfaceConfig", handle, 0), mIfname(ifname), mType(iface_type), in VirtualIfaceConfig()
2525 mIfname = ifname; in VirtualIfaceConfig()
2584 int result = createRequest(request, mIfname, mType, mwlan0_id); in createIface()
2602 int result = deleteRequest(request, mIfname); in deleteIface()
/hardware/synaptics/wlan/synadhd/wifi_hal/
Dwifi_hal.cpp2491 const char *mIfname; member in VirtualIfaceConfig
2498 : WifiCommand("VirtualIfaceConfig", handle, 0), mIfname(ifname), mType(iface_type), in VirtualIfaceConfig()
2501 mIfname = ifname; in VirtualIfaceConfig()
2560 int result = createRequest(request, mIfname, mType, mwlan0_id); in createIface()
2578 int result = deleteRequest(request, mIfname); in deleteIface()