Lines Matching refs:vl
105 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) in sja1105_compose_gating_subschedule()
108 if (max_cycle_time < rule->vl.cycle_time) { in sja1105_compose_gating_subschedule()
109 max_cycle_time = rule->vl.cycle_time; in sja1105_compose_gating_subschedule()
110 its_base_time = rule->vl.base_time; in sja1105_compose_gating_subschedule()
130 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) in sja1105_compose_gating_subschedule()
137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, in sja1105_compose_gating_subschedule()
143 for (i = 0; i < rule->vl.num_entries; i++) { in sja1105_compose_gating_subschedule()
144 u8 gate_state = rule->vl.entries[i].gate_state; in sja1105_compose_gating_subschedule()
155 entry_time += rule->vl.cycle_time; in sja1105_compose_gating_subschedule()
157 time += rule->vl.entries[i].interval; in sja1105_compose_gating_subschedule()
332 if (rule->vl.type != SJA1105_VL_NONCRITICAL) in sja1105_init_virtual_links()
334 if (max_sharindx < rule->vl.sharindx) in sja1105_init_virtual_links()
335 max_sharindx = rule->vl.sharindx; in sja1105_init_virtual_links()
405 vl_lookup[k].macaddr = rule->key.vl.dmac; in sja1105_init_virtual_links()
407 vl_lookup[k].vlanid = rule->key.vl.vid; in sja1105_init_virtual_links()
408 vl_lookup[k].vlanprior = rule->key.vl.pcp; in sja1105_init_virtual_links()
421 if (rule->vl.type == SJA1105_VL_NONCRITICAL) in sja1105_init_virtual_links()
422 vl_lookup[k].destports = rule->vl.destports; in sja1105_init_virtual_links()
483 if (rule->vl.type == SJA1105_VL_NONCRITICAL) in sja1105_init_virtual_links()
485 if (rule->vl.type == SJA1105_VL_TIME_TRIGGERED) { in sja1105_init_virtual_links()
486 int sharindx = rule->vl.sharindx; in sja1105_init_virtual_links()
490 vl_policing[i].maxlen = rule->vl.maxlen; in sja1105_init_virtual_links()
495 vl_fwd[sharindx].priority = rule->vl.ipv; in sja1105_init_virtual_links()
497 vl_fwd[sharindx].destports = rule->vl.destports; in sja1105_init_virtual_links()
539 rule->vl.destports |= destports; in sja1105_vl_redirect()
541 rule->vl.destports = destports; in sja1105_vl_redirect()
633 rule->vl.type = SJA1105_VL_TIME_TRIGGERED; in sja1105_vl_gate()
634 rule->vl.sharindx = index; in sja1105_vl_gate()
635 rule->vl.base_time = base_time; in sja1105_vl_gate()
636 rule->vl.cycle_time = cycle_time; in sja1105_vl_gate()
637 rule->vl.num_entries = num_entries; in sja1105_vl_gate()
638 rule->vl.entries = kcalloc(num_entries, in sja1105_vl_gate()
641 if (!rule->vl.entries) { in sja1105_vl_gate()
687 rule->vl.entries[i] = entries[i]; in sja1105_vl_gate()
692 ipv = key->vl.pcp; in sja1105_vl_gate()
698 rule->vl.maxlen = VLAN_ETH_FRAME_LEN + ETH_FCS_LEN; in sja1105_vl_gate()
699 rule->vl.ipv = ipv; in sja1105_vl_gate()
723 kfree(rule->vl.entries); in sja1105_vl_gate()
748 vl_lookup[i].macaddr == key->vl.dmac && in sja1105_find_vlid()
749 vl_lookup[i].vlanid == key->vl.vid && in sja1105_find_vlid()
750 vl_lookup[i].vlanprior == key->vl.pcp) in sja1105_find_vlid()
754 vl_lookup[i].macaddr == key->vl.dmac) in sja1105_find_vlid()
774 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) in sja1105_vl_stats()
794 flow_stats_update(stats, 0, pkts - rule->vl.stats.pkts, 0, in sja1105_vl_stats()
795 jiffies - rule->vl.stats.lastused, in sja1105_vl_stats()
798 rule->vl.stats.pkts = pkts; in sja1105_vl_stats()
799 rule->vl.stats.lastused = jiffies; in sja1105_vl_stats()