Lines Matching refs:app

479 		struct dcb_app app = {  in dcbnl_getapp()  local
483 up = dcb_getapp(netdev, &app); in dcbnl_getapp()
547 struct dcb_app app; in dcbnl_setapp() local
548 app.selector = idtype; in dcbnl_setapp()
549 app.protocol = id; in dcbnl_setapp()
550 app.priority = up; in dcbnl_setapp()
551 ret = dcb_setapp(netdev, &app); in dcbnl_setapp()
1002 struct nlattr *app; in dcbnl_build_peer_app() local
1010 app = nla_nest_start(skb, app_nested_type); in dcbnl_build_peer_app()
1011 if (!app) in dcbnl_build_peer_app()
1023 nla_nest_end(skb, app); in dcbnl_build_peer_app()
1035 struct nlattr *ieee, *app; in dcbnl_ieee_fill() local
1104 app = nla_nest_start(skb, DCB_ATTR_IEEE_APP_TABLE); in dcbnl_ieee_fill()
1105 if (!app) in dcbnl_ieee_fill()
1111 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), in dcbnl_ieee_fill()
1112 &itr->app); in dcbnl_ieee_fill()
1126 nla_nest_end(skb, app); in dcbnl_ieee_fill()
1221 struct nlattr *cee, *app; in dcbnl_cee_fill() local
1263 app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE); in dcbnl_cee_fill()
1264 if (!app) in dcbnl_cee_fill()
1275 itr->app.selector); in dcbnl_cee_fill()
1280 itr->app.protocol); in dcbnl_cee_fill()
1285 itr->app.priority); in dcbnl_cee_fill()
1292 nla_nest_end(skb, app); in dcbnl_cee_fill()
1757 static struct dcb_app_type *dcb_app_lookup(const struct dcb_app *app, in dcb_app_lookup() argument
1763 if (itr->app.selector == app->selector && in dcb_app_lookup()
1764 itr->app.protocol == app->protocol && in dcb_app_lookup()
1766 (!prio || itr->app.priority == prio)) in dcb_app_lookup()
1773 static int dcb_app_add(const struct dcb_app *app, int ifindex) in dcb_app_add() argument
1781 memcpy(&entry->app, app, sizeof(*app)); in dcb_app_add()
1795 u8 dcb_getapp(struct net_device *dev, struct dcb_app *app) in dcb_getapp() argument
1801 if ((itr = dcb_app_lookup(app, dev->ifindex, 0))) in dcb_getapp()
1802 prio = itr->app.priority; in dcb_getapp()
1823 memcpy(&event.app, new, sizeof(event.app)); in dcb_setapp()
1831 itr->app.priority = new->priority; in dcb_setapp()
1856 u8 dcb_ieee_getapp_mask(struct net_device *dev, struct dcb_app *app) in dcb_ieee_getapp_mask() argument
1862 if ((itr = dcb_app_lookup(app, dev->ifindex, 0))) in dcb_ieee_getapp_mask()
1863 prio |= 1 << itr->app.priority; in dcb_ieee_getapp_mask()
1884 memcpy(&event.app, new, sizeof(event.app)); in dcb_ieee_setapp()
1916 memcpy(&event.app, del, sizeof(event.app)); in dcb_ieee_delapp()