Lines Matching refs:app_priority
76 if (!dcb->app_priority[i].protocolid) 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()
86 app.selector = !!(dcb->app_priority[i].sel_field); in cxgb4_dcb_cleanup_apps()
331 const struct fw_port_app_priority *fwap = &fwdcb->app_priority; in cxgb4_dcb_handle_fw_update()
333 struct app_priority *ap = &dcb->app_priority[idx]; in cxgb4_dcb_handle_fw_update()
771 pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; in __cxgb4_getapp()
772 pcmd.u.dcb.app_priority.idx = i; in __cxgb4_getapp()
780 if (be16_to_cpu(pcmd.u.dcb.app_priority.protocolid) == app_id) in __cxgb4_getapp()
781 if (pcmd.u.dcb.app_priority.sel_field == app_idtype) in __cxgb4_getapp()
782 return pcmd.u.dcb.app_priority.user_prio_map; in __cxgb4_getapp()
785 if (!pcmd.u.dcb.app_priority.protocolid) in __cxgb4_getapp()
820 pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; in __cxgb4_setapp()
821 pcmd.u.dcb.app_priority.idx = i; in __cxgb4_setapp()
829 if (be16_to_cpu(pcmd.u.dcb.app_priority.protocolid) == app_id) { in __cxgb4_setapp()
831 pcmd.u.dcb.app_priority.protocolid = 0; in __cxgb4_setapp()
835 if (!pcmd.u.dcb.app_priority.protocolid) in __cxgb4_setapp()
850 pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; in __cxgb4_setapp()
851 pcmd.u.dcb.app_priority.protocolid = cpu_to_be16(app_id); in __cxgb4_setapp()
852 pcmd.u.dcb.app_priority.sel_field = app_idtype; in __cxgb4_setapp()
853 pcmd.u.dcb.app_priority.user_prio_map = app_prio; in __cxgb4_setapp()
854 pcmd.u.dcb.app_priority.idx = i; in __cxgb4_setapp()
1092 pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; in cxgb4_getpeer_app()
1093 pcmd.u.dcb.app_priority.idx = *app_count; in cxgb4_getpeer_app()
1103 if (!pcmd.u.dcb.app_priority.protocolid) in cxgb4_getpeer_app()
1122 pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; in cxgb4_getpeerapp_tbl()
1123 pcmd.u.dcb.app_priority.idx = i; in cxgb4_getpeerapp_tbl()
1133 if (!pcmd.u.dcb.app_priority.protocolid) in cxgb4_getpeerapp_tbl()
1136 table[i].selector = pcmd.u.dcb.app_priority.sel_field; in cxgb4_getpeerapp_tbl()
1138 be16_to_cpu(pcmd.u.dcb.app_priority.protocolid); in cxgb4_getpeerapp_tbl()
1140 ffs(pcmd.u.dcb.app_priority.user_prio_map) - 1; in cxgb4_getpeerapp_tbl()