Searched refs:label_count (Results 1 – 4 of 4) sorted by relevance
| /linux/net/openvswitch/ |
| H A D | flow.c | 787 size_t label_count = 1; in key_extract_l3l4() local 795 label_count * MPLS_HLEN); in key_extract_l3l4() 801 if (label_count <= MPLS_LABEL_DEPTH) in key_extract_l3l4() 802 memcpy(&key->mpls.lse[label_count - 1], &lse, in key_extract_l3l4() 806 label_count * MPLS_HLEN); in key_extract_l3l4() 810 label_count++; in key_extract_l3l4() 812 if (label_count > MPLS_LABEL_DEPTH) in key_extract_l3l4() 813 label_count = MPLS_LABEL_DEPTH; in key_extract_l3l4() 815 key->mpls.num_labels_mask = GENMASK(label_count - 1, 0); in key_extract_l3l4()
|
| H A D | flow_netlink.c | 1634 u32 label_count, label_count_mask, i; in ovs_key_from_nlattrs() local 1638 label_count = hdr_len / sizeof(struct ovs_key_mpls); in ovs_key_from_nlattrs() 1640 if (label_count == 0 || label_count > MPLS_LABEL_DEPTH || in ovs_key_from_nlattrs() 1644 label_count_mask = GENMASK(label_count - 1, 0); in ovs_key_from_nlattrs() 1646 for (i = 0 ; i < label_count; i++) in ovs_key_from_nlattrs()
|
| /linux/drivers/power/supply/ |
| H A D | power_supply_sysfs.c | 276 struct device *dev, const char * const labels[], int label_count, in power_supply_show_enum_with_available() argument 284 for (i = 0; i < label_count; i++) { in power_supply_show_enum_with_available()
|
| /linux/net/mpls/ |
| H A D | af_mpls.c | 1936 u8 label_count; in rtm_to_route_config() 1937 if (nla_get_labels(nla, 1, &label_count, in rtm_to_route_config() 2440 u8 label_count; in mpls_getroute() 2442 if (nla_get_labels(tb[RTA_DST], 1, &label_count, in mpls_getroute() 1920 u8 label_count; rtm_to_route_config() local 2425 u8 label_count; mpls_getroute() local
|