Lines Matching refs:itr

1034 	struct dcb_app_type *itr;
1117 list_for_each_entry(itr, &dcb_app_list, list) {
1118 if (itr->ifindex == netdev->ifindex) {
1119 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app),
1120 &itr->app);
1230 struct dcb_app_type *itr;
1276 list_for_each_entry(itr, &dcb_app_list, list) {
1277 if (itr->ifindex == netdev->ifindex) {
1284 itr->app.selector);
1289 itr->app.protocol);
1294 itr->app.priority);
1802 struct dcb_app_type *itr;
1804 list_for_each_entry(itr, &dcb_app_list, list) {
1805 if (itr->app.selector == app->selector &&
1806 itr->app.protocol == app->protocol &&
1807 itr->ifindex == ifindex &&
1808 ((prio == -1) || itr->app.priority == prio))
1809 return itr;
1839 struct dcb_app_type *itr;
1843 itr = dcb_app_lookup(app, dev->ifindex, -1);
1844 if (itr)
1845 prio = itr->app.priority;
1861 struct dcb_app_type *itr;
1872 itr = dcb_app_lookup(new, dev->ifindex, -1);
1873 if (itr) {
1875 itr->app.priority = new->priority;
1877 list_del(&itr->list);
1878 kfree(itr);
1902 struct dcb_app_type *itr;
1906 itr = dcb_app_lookup(app, dev->ifindex, -1);
1907 if (itr)
1908 prio |= 1 << itr->app.priority;
1956 struct dcb_app_type *itr;
1967 if ((itr = dcb_app_lookup(del, dev->ifindex, del->priority))) {
1968 list_del(&itr->list);
1969 kfree(itr);
1990 struct dcb_app_type *itr;
1996 list_for_each_entry(itr, &dcb_app_list, list) {
1997 if (itr->ifindex == ifindex &&
1998 itr->app.selector == IEEE_8021QAZ_APP_SEL_DSCP &&
1999 itr->app.protocol < 64 &&
2000 itr->app.priority < IEEE_8021QAZ_MAX_TCS) {
2001 prio = itr->app.priority;
2002 p_map->map[prio] |= 1ULL << itr->app.protocol;
2020 struct dcb_app_type *itr;
2025 list_for_each_entry(itr, &dcb_app_list, list) {
2026 if (itr->ifindex == ifindex &&
2027 itr->app.selector == IEEE_8021QAZ_APP_SEL_DSCP &&
2028 itr->app.protocol < 64 &&
2029 itr->app.priority < IEEE_8021QAZ_MAX_TCS)
2030 p_map->map[itr->app.protocol] |= 1 << itr->app.priority;
2049 struct dcb_app_type *itr;
2053 list_for_each_entry(itr, &dcb_app_list, list) {
2054 if (itr->ifindex == ifindex &&
2055 itr->app.selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE &&
2056 itr->app.protocol == 0 &&
2057 itr->app.priority < IEEE_8021QAZ_MAX_TCS)
2058 mask |= 1 << itr->app.priority;
2068 struct dcb_app_type *itr, *tmp;
2072 list_for_each_entry_safe(itr, tmp, &dcb_app_list, list) {
2073 if (itr->ifindex == dev->ifindex) {
2074 list_del(&itr->list);
2075 kfree(itr);