Lines Matching refs:app

482 		struct dcb_app app = {  in dcbnl_getapp()  local
486 up = dcb_getapp(netdev, &app); in dcbnl_getapp()
550 struct dcb_app app; in dcbnl_setapp() local
551 app.selector = idtype; in dcbnl_setapp()
552 app.protocol = id; in dcbnl_setapp()
553 app.priority = up; in dcbnl_setapp()
554 ret = dcb_setapp(netdev, &app); in dcbnl_setapp()
1005 struct nlattr *app; in dcbnl_build_peer_app() local
1013 app = nla_nest_start(skb, app_nested_type); in dcbnl_build_peer_app()
1014 if (!app) in dcbnl_build_peer_app()
1026 nla_nest_end(skb, app); in dcbnl_build_peer_app()
1038 struct nlattr *ieee, *app; in dcbnl_ieee_fill() local
1107 app = nla_nest_start(skb, DCB_ATTR_IEEE_APP_TABLE); in dcbnl_ieee_fill()
1108 if (!app) in dcbnl_ieee_fill()
1114 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), in dcbnl_ieee_fill()
1115 &itr->app); in dcbnl_ieee_fill()
1129 nla_nest_end(skb, app); in dcbnl_ieee_fill()
1224 struct nlattr *cee, *app; in dcbnl_cee_fill() local
1266 app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE); in dcbnl_cee_fill()
1267 if (!app) in dcbnl_cee_fill()
1278 itr->app.selector); in dcbnl_cee_fill()
1283 itr->app.protocol); in dcbnl_cee_fill()
1288 itr->app.priority); in dcbnl_cee_fill()
1295 nla_nest_end(skb, app); in dcbnl_cee_fill()
1760 static struct dcb_app_type *dcb_app_lookup(const struct dcb_app *app, in dcb_app_lookup() argument
1766 if (itr->app.selector == app->selector && in dcb_app_lookup()
1767 itr->app.protocol == app->protocol && in dcb_app_lookup()
1769 (!prio || itr->app.priority == prio)) in dcb_app_lookup()
1776 static int dcb_app_add(const struct dcb_app *app, int ifindex) in dcb_app_add() argument
1784 memcpy(&entry->app, app, sizeof(*app)); in dcb_app_add()
1798 u8 dcb_getapp(struct net_device *dev, struct dcb_app *app) in dcb_getapp() argument
1804 if ((itr = dcb_app_lookup(app, dev->ifindex, 0))) in dcb_getapp()
1805 prio = itr->app.priority; in dcb_getapp()
1826 memcpy(&event.app, new, sizeof(event.app)); in dcb_setapp()
1834 itr->app.priority = new->priority; in dcb_setapp()
1859 u8 dcb_ieee_getapp_mask(struct net_device *dev, struct dcb_app *app) in dcb_ieee_getapp_mask() argument
1865 if ((itr = dcb_app_lookup(app, dev->ifindex, 0))) in dcb_ieee_getapp_mask()
1866 prio |= 1 << itr->app.priority; in dcb_ieee_getapp_mask()
1887 memcpy(&event.app, new, sizeof(event.app)); in dcb_ieee_setapp()
1919 memcpy(&event.app, del, sizeof(event.app)); in dcb_ieee_delapp()
1940 struct dcb_app_type *app; in dcb_flushapp() local
1944 list_for_each_entry_safe(app, tmp, &dcb_app_list, list) { in dcb_flushapp()
1945 list_del(&app->list); in dcb_flushapp()
1946 kfree(app); in dcb_flushapp()