Lines Matching defs:app

503 		struct dcb_app app = {
507 up = dcb_getapp(netdev, &app);
572 struct dcb_app app;
573 app.selector = idtype;
574 app.protocol = id;
575 app.priority = up;
576 ret = dcb_setapp(netdev, &app);
1019 * retrieve the peer app configuration form the driver. If the driver
1034 struct nlattr *app;
1042 app = nla_nest_start_noflag(skb, app_nested_type);
1043 if (!app)
1055 nla_nest_end(skb, app);
1109 struct dcb_app *app))
1142 struct nlattr *ieee, *app, *rewr;
1220 app = nla_nest_start_noflag(skb, DCB_ATTR_IEEE_APP_TABLE);
1221 if (!app)
1228 dcbnl_app_attr_type_get(itr->app.selector);
1229 err = nla_put(skb, type, sizeof(itr->app), &itr->app);
1243 nla_nest_end(skb, app);
1253 dcbnl_app_attr_type_get(itr->app.selector);
1254 err = nla_put(skb, type, sizeof(itr->app), &itr->app);
1365 struct nlattr *cee, *app;
1406 /* local app */
1408 app = nla_nest_start_noflag(skb, DCB_ATTR_CEE_APP_TABLE);
1409 if (!app)
1420 itr->app.selector);
1425 itr->app.protocol);
1430 itr->app.priority);
1437 nla_nest_end(skb, app);
1970 static struct dcb_app_type *dcb_rewr_lookup(const struct dcb_app *app,
1976 if (itr->app.selector == app->selector &&
1977 itr->app.priority == app->priority &&
1979 ((proto == -1) || itr->app.protocol == proto))
1986 static struct dcb_app_type *dcb_app_lookup(const struct dcb_app *app,
1992 if (itr->app.selector == app->selector &&
1993 itr->app.protocol == app->protocol &&
1995 ((prio == -1) || itr->app.priority == prio))
2002 static int dcb_app_add(struct list_head *list, const struct dcb_app *app,
2011 memcpy(&entry->app, app, sizeof(*app));
2021 * @app: application to get user priority of
2027 u8 dcb_getapp(struct net_device *dev, struct dcb_app *app)
2033 itr = dcb_app_lookup(app, dev->ifindex, -1);
2035 prio = itr->app.priority;
2043 * dcb_setapp - add CEE dcb application data to app list
2048 * removes applications from the app list if the priority is
2058 memcpy(&event.app, new, sizeof(event.app));
2067 itr->app.priority = new->priority;
2088 * @app: where to store the retrieve application data
2094 u8 dcb_ieee_getapp_mask(struct net_device *dev, struct dcb_app *app)
2100 itr = dcb_app_lookup(app, dev->ifindex, -1);
2102 prio |= 1 << itr->app.priority;
2110 u16 dcb_getrewr(struct net_device *dev, struct dcb_app *app)
2116 itr = dcb_rewr_lookup(app, dev->ifindex, -1);
2118 proto = itr->app.protocol;
2167 * dcb_ieee_setapp - add IEEE dcb application data to app list
2182 memcpy(&event.app, new, sizeof(event.app));
2216 memcpy(&event.app, del, sizeof(event.app));
2250 itr->app.selector == DCB_APP_SEL_PCP &&
2251 itr->app.protocol < 16 &&
2252 itr->app.priority < IEEE_8021QAZ_MAX_TCS) {
2253 prio = itr->app.priority;
2254 p_map->map[prio] |= 1 << itr->app.protocol;
2276 itr->app.selector == IEEE_8021QAZ_APP_SEL_DSCP &&
2277 itr->app.protocol < 64 &&
2278 itr->app.priority < IEEE_8021QAZ_MAX_TCS) {
2279 prio = itr->app.priority;
2280 p_map->map[prio] |= 1ULL << itr->app.protocol;
2305 itr->app.selector == IEEE_8021QAZ_APP_SEL_DSCP &&
2306 itr->app.protocol < 64 &&
2307 itr->app.priority < IEEE_8021QAZ_MAX_TCS) {
2308 prio = itr->app.priority;
2309 p_map->map[prio] |= 1ULL << itr->app.protocol;
2334 itr->app.selector == IEEE_8021QAZ_APP_SEL_DSCP &&
2335 itr->app.protocol < 64 &&
2336 itr->app.priority < IEEE_8021QAZ_MAX_TCS)
2337 p_map->map[itr->app.protocol] |= 1 << itr->app.priority;
2362 itr->app.selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE &&
2363 itr->app.protocol == 0 &&
2364 itr->app.priority < IEEE_8021QAZ_MAX_TCS)
2365 mask |= 1 << itr->app.priority;