/linux-6.1.9/net/hsr/ |
D | hsr_device.c | 62 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 …]
|
D | hsr_main.c | 21 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 …]
|
D | hsr_framereg.c | 39 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 …]
|
D | hsr_slave.c | 28 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 …]
|
D | hsr_netlink.c | 107 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 …]
|
D | hsr_forward.c | 35 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 …]
|
D | hsr_framereg.h | 31 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,
|
D | Makefile | 6 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
|
D | hsr_device.h | 16 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);
|
D | hsr_main.h | 118 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);
|
D | hsr_netlink.h | 23 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]);
|
D | hsr_slave.h | 17 int hsr_add_port(struct hsr_priv *hsr, struct net_device *dev,
|
/linux-6.1.9/arch/arm64/kvm/ |
D | trace_handle_exit.h | 146 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)
|
D | trace_arm.h | 53 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,
|
D | handle_exit.c | 151 run->debug.arch.hsr = lower_32_bits(esr); in kvm_handle_guest_debug()
|
/linux-6.1.9/drivers/net/dsa/xrs700x/ |
D | xrs700x.c | 551 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/ |
D | netdev-features.rst | 186 * hsr-tag-ins-offload 191 * hsr-tag-rm-offload 196 * hsr-fwd-offload 201 * hsr-dup-offload
|
/linux-6.1.9/net/ |
D | Makefile | 73 obj-$(CONFIG_HSR) += hsr/
|
/linux-6.1.9/net/dsa/ |
D | port.c | 2021 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()
|
D | dsa_priv.h | 301 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/ |
D | kvm.h | 146 __u32 hsr; member
|
/linux-6.1.9/arch/arm64/include/uapi/asm/ |
D | kvm.h | 146 __u32 hsr; member
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dce_calcs.c | 485 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/ |
D | dce_calcs.h | 402 struct bw_fixed hsr[maximum_number_of_surfaces]; member
|
/linux-6.1.9/include/net/ |
D | dsa.h | 1192 struct net_device *hsr); 1194 struct net_device *hsr);
|