Lines Matching defs:iface

88  *    . adding a new iface to this, E.g.:
116 * Should normally include bw_costly_<iface>, but we rely on the way they are setup
231 /* Flush and remove the bw_costly_<iface> tables */
521 * Flush the bw_costly_<iface> is allowed to fail in case it didn't exist.
596 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) {
610 if (!isIfaceName(iface))
612 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
665 int BandwidthController::removeInterfaceSharedQuota(const char *iface) {
672 if (!isIfaceName(iface))
674 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
685 ALOGE("No such iface %s to delete", ifn);
705 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) {
713 if (!isIfaceName(iface))
722 return removeInterfaceQuota(iface);
725 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
730 costName = iface;
739 /* Preparing the iface adds a penalty/happy box check */
758 ALOGE("Failed update quota for %s", iface);
801 int BandwidthController::removeInterfaceQuota(const char *iface) {
809 if (!isIfaceName(iface))
811 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
816 costName = iface;
824 ALOGE("No such iface %s to delete", ifn);
1016 int BandwidthController::setInterfaceAlert(const char *iface, int64_t bytes) {
1019 if (!isIfaceName(iface)) {
1020 ALOGE("setInterfaceAlert: Invalid iface \"%s\"", iface);
1029 if (it->ifaceName == iface)
1038 return setCostlyAlert(iface, bytes, &it->alert);
1041 int BandwidthController::removeInterfaceAlert(const char *iface) {
1044 if (!isIfaceName(iface)) {
1045 ALOGE("removeInterfaceAlert: Invalid iface \"%s\"", iface);
1050 if (it->ifaceName == iface)
1055 ALOGE("No prior alert set for interface %s", iface);
1059 return removeCostlyAlert(iface, &it->alert);