• Home
  • Raw
  • Download

Lines Matching refs:app

77 	struct dcb_app app;  in cxgb4_dcb_cleanup_apps()  local
81 app.priority = 0; in cxgb4_dcb_cleanup_apps()
88 app.protocol = dcb->app_priority[i].protocolid; in cxgb4_dcb_cleanup_apps()
91 app.priority = dcb->app_priority[i].user_prio_map; in cxgb4_dcb_cleanup_apps()
92 app.selector = dcb->app_priority[i].sel_field + 1; in cxgb4_dcb_cleanup_apps()
93 err = dcb_ieee_delapp(dev, &app); in cxgb4_dcb_cleanup_apps()
95 app.selector = !!(dcb->app_priority[i].sel_field); in cxgb4_dcb_cleanup_apps()
96 err = dcb_setapp(dev, &app); in cxgb4_dcb_cleanup_apps()
102 dcb_ver_array[dcb->dcb_version], app.selector, in cxgb4_dcb_cleanup_apps()
103 app.protocol, -err); in cxgb4_dcb_cleanup_apps()
344 struct dcb_app app = { in cxgb4_dcb_handle_fw_update() local
353 app.selector = (fwap->sel_field + 1); in cxgb4_dcb_handle_fw_update()
354 app.priority = ffs(fwap->user_prio_map) - 1; in cxgb4_dcb_handle_fw_update()
355 err = dcb_ieee_setapp(dev, &app); in cxgb4_dcb_handle_fw_update()
359 app.selector = !!(fwap->sel_field); in cxgb4_dcb_handle_fw_update()
360 app.priority = fwap->user_prio_map; in cxgb4_dcb_handle_fw_update()
361 err = dcb_setapp(dev, &app); in cxgb4_dcb_handle_fw_update()
367 app.selector, app.protocol, app.priority, -err); in cxgb4_dcb_handle_fw_update()
882 struct dcb_app app = { in cxgb4_setapp() local
898 return dcb_setapp(dev, &app); in cxgb4_setapp()
1004 static int cxgb4_ieee_getapp(struct net_device *dev, struct dcb_app *app) in cxgb4_ieee_getapp() argument
1010 if (!(app->selector && app->protocol)) in cxgb4_ieee_getapp()
1014 prio = __cxgb4_getapp(dev, app->selector - 1, app->protocol, 0); in cxgb4_ieee_getapp()
1017 prio = dcb_ieee_getapp_mask(dev, app); in cxgb4_ieee_getapp()
1019 app->priority = ffs(prio) - 1; in cxgb4_ieee_getapp()
1026 static int cxgb4_ieee_setapp(struct net_device *dev, struct dcb_app *app) in cxgb4_ieee_setapp() argument
1032 if (!(app->selector && app->protocol)) in cxgb4_ieee_setapp()
1035 if (!(app->selector > IEEE_8021QAZ_APP_SEL_ETHERTYPE && in cxgb4_ieee_setapp()
1036 app->selector < IEEE_8021QAZ_APP_SEL_ANY)) in cxgb4_ieee_setapp()
1040 ret = __cxgb4_setapp(dev, app->selector - 1, app->protocol, in cxgb4_ieee_setapp()
1041 (1 << app->priority)); in cxgb4_ieee_setapp()
1045 return dcb_ieee_setapp(dev, app); in cxgb4_ieee_setapp()