Lines Matching refs:app
68 struct dcb_app app; in cxgb4_dcb_cleanup_apps() local
72 app.priority = 0; in cxgb4_dcb_cleanup_apps()
79 app.protocol = dcb->app_priority[i].protocolid; in cxgb4_dcb_cleanup_apps()
82 app.priority = dcb->app_priority[i].user_prio_map; in cxgb4_dcb_cleanup_apps()
83 app.selector = dcb->app_priority[i].sel_field + 1; in cxgb4_dcb_cleanup_apps()
84 err = dcb_ieee_delapp(dev, &app); in cxgb4_dcb_cleanup_apps()
86 app.selector = !!(dcb->app_priority[i].sel_field); in cxgb4_dcb_cleanup_apps()
87 err = dcb_setapp(dev, &app); in cxgb4_dcb_cleanup_apps()
93 dcb_ver_array[dcb->dcb_version], app.selector, in cxgb4_dcb_cleanup_apps()
94 app.protocol, -err); in cxgb4_dcb_cleanup_apps()
335 struct dcb_app app = { in cxgb4_dcb_handle_fw_update() local
344 app.selector = (fwap->sel_field + 1); in cxgb4_dcb_handle_fw_update()
345 app.priority = ffs(fwap->user_prio_map) - 1; in cxgb4_dcb_handle_fw_update()
346 err = dcb_ieee_setapp(dev, &app); in cxgb4_dcb_handle_fw_update()
350 app.selector = !!(fwap->sel_field); in cxgb4_dcb_handle_fw_update()
351 app.priority = fwap->user_prio_map; in cxgb4_dcb_handle_fw_update()
352 err = dcb_setapp(dev, &app); in cxgb4_dcb_handle_fw_update()
358 app.selector, app.protocol, app.priority, -err); in cxgb4_dcb_handle_fw_update()
871 struct dcb_app app = { in cxgb4_setapp() local
887 return dcb_setapp(dev, &app); in cxgb4_setapp()
992 static int cxgb4_ieee_getapp(struct net_device *dev, struct dcb_app *app) in cxgb4_ieee_getapp() argument
998 if (!(app->selector && app->protocol)) in cxgb4_ieee_getapp()
1002 prio = __cxgb4_getapp(dev, app->selector - 1, app->protocol, 0); in cxgb4_ieee_getapp()
1005 prio = dcb_ieee_getapp_mask(dev, app); in cxgb4_ieee_getapp()
1007 app->priority = ffs(prio) - 1; in cxgb4_ieee_getapp()
1014 static int cxgb4_ieee_setapp(struct net_device *dev, struct dcb_app *app) in cxgb4_ieee_setapp() argument
1020 if (!(app->selector && app->protocol)) in cxgb4_ieee_setapp()
1023 if (!(app->selector > IEEE_8021QAZ_APP_SEL_ETHERTYPE && in cxgb4_ieee_setapp()
1024 app->selector < IEEE_8021QAZ_APP_SEL_ANY)) in cxgb4_ieee_setapp()
1028 ret = __cxgb4_setapp(dev, app->selector - 1, app->protocol, in cxgb4_ieee_setapp()
1029 (1 << app->priority)); in cxgb4_ieee_setapp()
1033 return dcb_ieee_setapp(dev, app); in cxgb4_ieee_setapp()