Home
last modified time | relevance | path

Searched refs:hsr (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.1.9/net/hsr/
Dhsr_device.c62 hsr_for_each_port(master->hsr, port) { in hsr_check_carrier()
77 struct hsr_priv *hsr; in hsr_check_announce() local
79 hsr = netdev_priv(hsr_dev); in hsr_check_announce()
83 hsr->announce_count = 0; in hsr_check_announce()
84 mod_timer(&hsr->announce_timer, in hsr_check_announce()
90 del_timer(&hsr->announce_timer); in hsr_check_announce()
93 void hsr_check_carrier_and_operstate(struct hsr_priv *hsr) in hsr_check_carrier_and_operstate() argument
99 master = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_check_carrier_and_operstate()
109 int hsr_get_max_mtu(struct hsr_priv *hsr) in hsr_get_max_mtu() argument
115 hsr_for_each_port(hsr, port) in hsr_get_max_mtu()
[all …]
Dhsr_main.c21 static bool hsr_slave_empty(struct hsr_priv *hsr) in hsr_slave_empty() argument
25 hsr_for_each_port(hsr, port) in hsr_slave_empty()
36 struct hsr_priv *hsr; in hsr_netdev_notify() local
46 hsr = netdev_priv(dev); in hsr_netdev_notify()
47 port = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_netdev_notify()
53 hsr = port->hsr; in hsr_netdev_notify()
60 hsr_check_carrier_and_operstate(hsr); in hsr_netdev_notify()
75 master = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_netdev_notify()
84 port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_B); in hsr_netdev_notify()
85 res = hsr_create_self_node(hsr, in hsr_netdev_notify()
[all …]
Dhsr_framereg.c39 bool hsr_addr_is_self(struct hsr_priv *hsr, unsigned char *addr) in hsr_addr_is_self() argument
43 node = list_first_or_null_rcu(&hsr->self_node_db, struct hsr_node, in hsr_addr_is_self()
76 int hsr_create_self_node(struct hsr_priv *hsr, in hsr_create_self_node() argument
80 struct list_head *self_node_db = &hsr->self_node_db; in hsr_create_self_node()
90 spin_lock_bh(&hsr->list_lock); in hsr_create_self_node()
95 spin_unlock_bh(&hsr->list_lock); in hsr_create_self_node()
99 spin_unlock_bh(&hsr->list_lock); in hsr_create_self_node()
105 void hsr_del_self_node(struct hsr_priv *hsr) in hsr_del_self_node() argument
107 struct list_head *self_node_db = &hsr->self_node_db; in hsr_del_self_node()
110 spin_lock_bh(&hsr->list_lock); in hsr_del_self_node()
[all …]
Dhsr_slave.c28 struct hsr_priv *hsr; in hsr_handle_frame() local
43 hsr = port->hsr; in hsr_handle_frame()
45 if (hsr_addr_is_self(port->hsr, eth_hdr(skb)->h_source)) { in hsr_handle_frame()
58 hsr->proto_ops->invalid_dan_ingress_frame && in hsr_handle_frame()
59 hsr->proto_ops->invalid_dan_ingress_frame(protocol)) in hsr_handle_frame()
64 if ((!hsr->prot_version && protocol == htons(ETH_P_PRP)) || in hsr_handle_frame()
125 static int hsr_portdev_setup(struct hsr_priv *hsr, struct net_device *dev, in hsr_portdev_setup() argument
138 master = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_portdev_setup()
159 int hsr_add_port(struct hsr_priv *hsr, struct net_device *dev, in hsr_add_port() argument
171 port = hsr_port_get_hsr(hsr, type); in hsr_add_port()
[all …]
Dhsr_netlink.c107 struct hsr_priv *hsr = netdev_priv(dev); in hsr_dellink() local
109 del_timer_sync(&hsr->prune_timer); in hsr_dellink()
110 del_timer_sync(&hsr->announce_timer); in hsr_dellink()
112 hsr_debugfs_term(hsr); in hsr_dellink()
113 hsr_del_ports(hsr); in hsr_dellink()
115 hsr_del_self_node(hsr); in hsr_dellink()
116 hsr_del_nodes(&hsr->node_db); in hsr_dellink()
123 struct hsr_priv *hsr = netdev_priv(dev); in hsr_fill_info() local
127 port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_A); in hsr_fill_info()
133 port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_B); in hsr_fill_info()
[all …]
Dhsr_forward.c35 static bool is_supervision_frame(struct hsr_priv *hsr, struct sk_buff *skb) in is_supervision_frame() argument
48 hsr->sup_multicast_addr)) in is_supervision_frame()
63 if (hsr_V1_hdr->hsr.encap_proto != htons(ETH_P_PRP)) in is_supervision_frame()
201 lane_id |= port->hsr->net_id; in prp_set_lan_id()
320 return hsr_fill_tag(skb, frame, port, port->hsr->prot_version); in hsr_create_tagged_frame()
419 hsr_for_each_port(frame->port_rcv->hsr, port) { in hsr_forward_do()
420 struct hsr_priv *hsr = port->hsr; in hsr_forward_do() local
455 if (hsr->proto_ops->drop_frame && in hsr_forward_do()
456 hsr->proto_ops->drop_frame(frame, port)) in hsr_forward_do()
460 skb = hsr->proto_ops->create_tagged_frame(frame, port); in hsr_forward_do()
[all …]
Dhsr_framereg.h31 void hsr_del_self_node(struct hsr_priv *hsr);
37 bool hsr_addr_is_self(struct hsr_priv *hsr, unsigned char *addr);
50 int hsr_create_self_node(struct hsr_priv *hsr,
54 void *hsr_get_next_node(struct hsr_priv *hsr, void *_pos,
57 int hsr_get_node_data(struct hsr_priv *hsr,
DMakefile6 obj-$(CONFIG_HSR) += hsr.o
8 hsr-y := hsr_main.o hsr_framereg.o hsr_device.o \
10 hsr-$(CONFIG_DEBUG_FS) += hsr_debugfs.o
Dhsr_device.h16 void hsr_del_ports(struct hsr_priv *hsr);
21 void hsr_check_carrier_and_operstate(struct hsr_priv *hsr);
22 int hsr_get_max_mtu(struct hsr_priv *hsr);
Dhsr_main.h118 struct hsr_tag hsr; member
162 struct hsr_priv *hsr; member
214 #define hsr_for_each_port(hsr, port) \ argument
215 list_for_each_entry_rcu((port), &(hsr)->ports, port_list)
217 struct hsr_port *hsr_port_get_hsr(struct hsr_priv *hsr, enum hsr_port_type pt);
Dhsr_netlink.h23 void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN],
25 void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]);
Dhsr_slave.h17 int hsr_add_port(struct hsr_priv *hsr, struct net_device *dev,
/linux-6.1.9/arch/arm64/kvm/
Dtrace_handle_exit.h146 TP_PROTO(unsigned long hsr),
147 TP_ARGS(hsr),
150 __field(unsigned long, hsr)
154 __entry->hsr = hsr;
157 TP_printk("HSR 0x%08lx", __entry->hsr)
Dtrace_arm.h53 TP_PROTO(unsigned long vcpu_pc, unsigned long hsr,
56 TP_ARGS(vcpu_pc, hsr, hxfar, ipa),
60 __field( unsigned long, hsr )
67 __entry->hsr = hsr;
73 __entry->ipa, __entry->hsr,
Dhandle_exit.c151 run->debug.arch.hsr = lower_32_bits(esr); in kvm_handle_guest_debug()
/linux-6.1.9/drivers/net/dsa/xrs700x/
Dxrs700x.c551 struct net_device *hsr) in xrs700x_hsr_join() argument
561 ret = hsr_get_version(hsr, &ver); in xrs700x_hsr_join()
576 dsa_hsr_foreach_port(dp, ds, hsr) { in xrs700x_hsr_join()
643 struct net_device *hsr) in xrs700x_hsr_leave() argument
651 dsa_hsr_foreach_port(dp, ds, hsr) { in xrs700x_hsr_leave()
/linux-6.1.9/Documentation/networking/
Dnetdev-features.rst186 * hsr-tag-ins-offload
191 * hsr-tag-rm-offload
196 * hsr-fwd-offload
201 * hsr-dup-offload
/linux-6.1.9/net/
DMakefile73 obj-$(CONFIG_HSR) += hsr/
/linux-6.1.9/net/dsa/
Dport.c2021 int dsa_port_hsr_join(struct dsa_port *dp, struct net_device *hsr) in dsa_port_hsr_join() argument
2029 dp->hsr_dev = hsr; in dsa_port_hsr_join()
2031 err = ds->ops->port_hsr_join(ds, dp->index, hsr); in dsa_port_hsr_join()
2038 void dsa_port_hsr_leave(struct dsa_port *dp, struct net_device *hsr) in dsa_port_hsr_leave() argument
2046 err = ds->ops->port_hsr_leave(ds, dp->index, hsr); in dsa_port_hsr_leave()
2050 dp->index, hsr->name, ERR_PTR(err)); in dsa_port_hsr_leave()
Ddsa_priv.h301 int dsa_port_hsr_join(struct dsa_port *dp, struct net_device *hsr);
302 void dsa_port_hsr_leave(struct dsa_port *dp, struct net_device *hsr);
/linux-6.1.9/tools/arch/arm64/include/uapi/asm/
Dkvm.h146 __u32 hsr; member
/linux-6.1.9/arch/arm64/include/uapi/asm/
Dkvm.h146 __u32 hsr; member
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/calcs/
Ddce_calcs.c485 data->hsr[i] = data->hsr_after_stereo; in calculate_bandwidth()
521 if (bw_neq(data->hsr[i], bw_int_to_fixed(1))) { in calculate_bandwidth()
522 if (bw_mtn(data->hsr[i], bw_int_to_fixed(4))) { in calculate_bandwidth()
526 if (bw_mtn(data->hsr[i], data->h_taps[i])) { in calculate_bandwidth()
530 … (dceip->pre_downscaler_enabled == 1 && bw_mtn(data->hsr[i], bw_int_to_fixed(1)) && bw_leq(data->h… in calculate_bandwidth()
556 if ((dceip->pre_downscaler_enabled && bw_mtn(data->hsr[i], bw_int_to_fixed(1)))) { in calculate_bandwidth()
557 data->source_width_in_lb = bw_div(data->source_width_pixels[i], data->hsr[i]); in calculate_bandwidth()
853 …data->source_width_pixels[i], bw_int_to_fixed(dceip->chunk_width))), data->hsr[i]))), bw_int_to_fi… in calculate_bandwidth()
1194 …data->active_time[i] = bw_div(bw_div(data->source_width_rounded_up_to_chunks[i], data->hsr[i]), da… in calculate_bandwidth()
1254 if (dceip->pre_downscaler_enabled && bw_mtn(data->hsr[i], bw_int_to_fixed(1))) { in calculate_bandwidth()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/
Ddce_calcs.h402 struct bw_fixed hsr[maximum_number_of_surfaces]; member
/linux-6.1.9/include/net/
Ddsa.h1192 struct net_device *hsr);
1194 struct net_device *hsr);

12