Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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_framereg.c41 bool hsr_addr_is_self(struct hsr_priv *hsr, unsigned char *addr) in hsr_addr_is_self() argument
45 node = list_first_or_null_rcu(&hsr->self_node_db, struct hsr_node, in hsr_addr_is_self()
78 int hsr_create_self_node(struct hsr_priv *hsr, in hsr_create_self_node() argument
82 struct list_head *self_node_db = &hsr->self_node_db; in hsr_create_self_node()
92 spin_lock_bh(&hsr->list_lock); in hsr_create_self_node()
97 spin_unlock_bh(&hsr->list_lock); in hsr_create_self_node()
101 spin_unlock_bh(&hsr->list_lock); in hsr_create_self_node()
107 void hsr_del_self_node(struct hsr_priv *hsr) in hsr_del_self_node() argument
109 struct list_head *self_node_db = &hsr->self_node_db; in hsr_del_self_node()
112 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()
56 if (hsr->proto_ops->invalid_dan_ingress_frame && in hsr_handle_frame()
57 hsr->proto_ops->invalid_dan_ingress_frame(protocol)) in hsr_handle_frame()
62 if ((!hsr->prot_version && protocol == htons(ETH_P_PRP)) || in hsr_handle_frame()
123 static int hsr_portdev_setup(struct hsr_priv *hsr, struct net_device *dev, in hsr_portdev_setup() argument
136 master = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_portdev_setup()
157 int hsr_add_port(struct hsr_priv *hsr, struct net_device *dev, in hsr_add_port() argument
169 port = hsr_port_get_hsr(hsr, type); in hsr_add_port()
[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_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
46 hsr->sup_multicast_addr)) in is_supervision_frame()
57 if (hsr_V1_hdr->hsr.encap_proto != htons(ETH_P_PRP)) in is_supervision_frame()
159 lane_id |= port->hsr->net_id; in prp_set_lan_id()
274 return hsr_fill_tag(skb, frame, port, port->hsr->prot_version); in hsr_create_tagged_frame()
361 hsr_for_each_port(frame->port_rcv->hsr, port) { in hsr_forward_do()
362 struct hsr_priv *hsr = port->hsr; in hsr_forward_do() local
391 if (hsr->proto_ops->drop_frame && in hsr_forward_do()
392 hsr->proto_ops->drop_frame(frame, port)) in hsr_forward_do()
396 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);
23 int hsr_get_max_mtu(struct hsr_priv *hsr);
Dhsr_main.h127 struct hsr_tag hsr; member
171 struct hsr_priv *hsr; member
227 #define hsr_for_each_port(hsr, port) \ argument
228 list_for_each_entry_rcu((port), &(hsr)->ports, port_list)
230 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,
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dtrace_handle_exit.h142 TP_PROTO(unsigned long hsr),
143 TP_ARGS(hsr),
146 __field(unsigned long, hsr)
150 __entry->hsr = hsr;
153 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.c126 run->debug.arch.hsr = esr; in kvm_handle_guest_debug()
/kernel/linux/linux-5.10/net/
DMakefile83 obj-$(CONFIG_HSR) += hsr/
DKconfig242 source "net/hsr/Kconfig"
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-arm64/asm/
Dkvm.h76 __u32 hsr; member
/kernel/linux/linux-5.10/arch/arm64/include/uapi/asm/
Dkvm.h143 __u32 hsr; member
/kernel/linux/linux-5.10/tools/arch/arm64/include/uapi/asm/
Dkvm.h143 __u32 hsr; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-arm64/asm/
Dkvm.h92 __u32 hsr; member
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/
Ddce_calcs.c470 data->hsr[i] = data->hsr_after_stereo; in calculate_bandwidth()
506 if (bw_neq(data->hsr[i], bw_int_to_fixed(1))) { in calculate_bandwidth()
507 if (bw_mtn(data->hsr[i], bw_int_to_fixed(4))) { in calculate_bandwidth()
511 if (bw_mtn(data->hsr[i], data->h_taps[i])) { in calculate_bandwidth()
515 … (dceip->pre_downscaler_enabled == 1 && bw_mtn(data->hsr[i], bw_int_to_fixed(1)) && bw_leq(data->h… in calculate_bandwidth()
541 if ((dceip->pre_downscaler_enabled && bw_mtn(data->hsr[i], bw_int_to_fixed(1)))) { in calculate_bandwidth()
542 data->source_width_in_lb = bw_div(data->source_width_pixels[i], data->hsr[i]); in calculate_bandwidth()
842 …data->source_width_pixels[i], bw_int_to_fixed(dceip->chunk_width))), data->hsr[i]))), bw_int_to_fi… in calculate_bandwidth()
1183 …data->active_time[i] = bw_div(bw_div(data->source_width_rounded_up_to_chunks[i], data->hsr[i]), da… in calculate_bandwidth()
1243 if (dceip->pre_downscaler_enabled && bw_mtn(data->hsr[i], bw_int_to_fixed(1))) { in calculate_bandwidth()
[all …]
Dcalcs_logger.h438 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] hsr[%d]:%d", i, bw_fixed_to_int(data->hsr[i])); in print_bw_calcs_data()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/
Ddce_calcs.h402 struct bw_fixed hsr[maximum_number_of_surfaces]; member
/kernel/linux/linux-5.10/sound/pci/asihpi/
Dhpi6205.c712 u32 hsr = 0; in adapter_irq_query_and_clear() local
714 hsr = ioread32(phw->prHSR); in adapter_irq_query_and_clear()
715 if (hsr & C6205_HSR_INTSRC) { in adapter_irq_query_and_clear()

12