Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 25 of 161) sorted by relevance

1234567

/freebsd-12.1/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_ah.c89 rdma_get_mcast_mac(&in6, ah->av.eth.mac); in create_iboe_ah()
91 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN); in create_iboe_ah()
97 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah()
100 memcpy(ah->av.eth.s_mac, IF_LLADDR(gid_attr.ndev), ETH_ALEN); in create_iboe_ah()
109 ah->av.eth.gid_index = ret; in create_iboe_ah()
110 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
111 ah->av.eth.hop_limit = ah_attr->grh.hop_limit; in create_iboe_ah()
116 --ah->av.eth.stat_rate; in create_iboe_ah()
125 memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16); in create_iboe_ah()
126 ah->av.eth.sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 29); in create_iboe_ah()
[all …]
/freebsd-12.1/contrib/wpa/src/l2_packet/
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); in l2_packet_send() local
61 if (eth == NULL) in l2_packet_send()
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
65 eth->h_proto = htons(proto); in l2_packet_send()
66 os_memcpy(eth + 1, buf, len); in l2_packet_send()
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send()
68 os_free(eth); in l2_packet_send()
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; in l2_packet_send() local
116 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
117 eth = os_malloc(mlen); in l2_packet_send()
118 if (eth == NULL) in l2_packet_send()
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
123 eth->h_proto = htons(proto); in l2_packet_send()
124 os_memcpy(eth + 1, buf, len); in l2_packet_send()
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, in l2_packet_send()
127 os_free(eth); in l2_packet_send()
/freebsd-12.1/sys/dev/qlnx/qlnxe/
H A Decore_l2.c1983 port_stats.eth.u0.bb0.r1522; in __ecore_get_vport_port_stats()
1985 port_stats.eth.u0.bb0.r2047; in __ecore_get_vport_port_stats()
1987 port_stats.eth.u0.bb0.r4095; in __ecore_get_vport_port_stats()
1989 port_stats.eth.u0.bb0.r9216; in __ecore_get_vport_port_stats()
1991 port_stats.eth.u0.bb0.r16383; in __ecore_get_vport_port_stats()
1993 port_stats.eth.u1.bb1.t2047; in __ecore_get_vport_port_stats()
1995 port_stats.eth.u1.bb1.t4095; in __ecore_get_vport_port_stats()
1997 port_stats.eth.u1.bb1.t9216; in __ecore_get_vport_port_stats()
1999 port_stats.eth.u1.bb1.t16383; in __ecore_get_vport_port_stats()
2006 port_stats.eth.u0.ah0.r1519_to_max; in __ecore_get_vport_port_stats()
[all …]
/freebsd-12.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_mcg.c849 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); in parse_trans_rule()
850 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, in parse_trans_rule()
852 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); in parse_trans_rule()
853 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, in parse_trans_rule()
857 rule_hw->eth.ether_type = spec->eth.ether_type; in parse_trans_rule()
859 rule_hw->eth.vlan_tag = spec->eth.vlan_id; in parse_trans_rule()
860 rule_hw->eth.vlan_tag_msk = spec->eth.vlan_id_msk; in parse_trans_rule()
920 cur->eth.dst_mac[0], cur->eth.dst_mac[1], in mlx4_err_rule()
921 cur->eth.dst_mac[2], cur->eth.dst_mac[3], in mlx4_err_rule()
922 cur->eth.dst_mac[4], cur->eth.dst_mac[5]); in mlx4_err_rule()
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c334 wqe->eth.cs_flags |= MLX5_ETH_WQE_L3_CSUM; in mlx5e_sq_xmit()
337 wqe->eth.cs_flags |= MLX5_ETH_WQE_L4_CSUM; in mlx5e_sq_xmit()
339 if (wqe->eth.cs_flags == 0) { in mlx5e_sq_xmit()
347 wqe->eth.mss = cpu_to_be16(mss); in mlx5e_sq_xmit()
382 wqe->eth.vlan_cmd = htons(0x8000); /* bit 0 CVLAN */ in mlx5e_sq_xmit()
383 wqe->eth.vlan_hdr = htons(mb->m_pkthdr.ether_vtag); in mlx5e_sq_xmit()
407 wqe->eth.inline_hdr_start; in mlx5e_sq_xmit()
427 wqe->eth.inline_hdr_sz = cpu_to_be16(ihs); in mlx5e_sq_xmit()
429 m_copydata(mb, 0, ihs, wqe->eth.inline_hdr_start); in mlx5e_sq_xmit()
431 wqe->eth.inline_hdr_sz = cpu_to_be16(ihs); in mlx5e_sq_xmit()
[all …]
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_ud_header.c92 { STRUCT_FIELD(eth, dmac_h),
96 { STRUCT_FIELD(eth, dmac_l),
100 { STRUCT_FIELD(eth, smac_h),
104 { STRUCT_FIELD(eth, smac_l),
108 { STRUCT_FIELD(eth, type),
362 header->eth.type = cpu_to_be16(ETH_P_8021Q); in ib_ud_header_init()
434 &header->eth, (char *)buf + len); in ib_ud_header_pack()
/freebsd-12.1/sys/gnu/dts/mips/
H A DHPM.dts39 eth {
40 label = "hpm:green:eth";
45 label = "hpm:red:eth";
H A DASL26555-8M.dts31 eth {
32 label = "asl26555:green:eth";
H A DASL26555-16M.dts31 eth {
32 label = "asl26555:green:eth";
H A DVOCORE.dtsi142 eth {
144 label = "vocore:orange:eth";
H A Drt2880.dtsi170 compatible = "ralink,rt2880-eth";
185 compatible = "ralink,rt2880-port", "mediatek,eth-port";
/freebsd-12.1/contrib/ipfilter/ipsend/
H A Dip.c158 ether_header_t eth; local
200 bcopy((char *)eh, (char *)&eth, sizeof(eth));
224 bcopy((char *)&eth, ipbuf, sizeof(eth));
/freebsd-12.1/sys/contrib/octeon-sdk/
H A Dcvmx-helper-board.c111 int pip, iface, eth; in __pip_eth_node() local
144 eth = fdt_subnode_offset(fdt_addr, iface, name_buffer); in __pip_eth_node()
145 if (eth < 0) in __pip_eth_node()
151 return eth; in __pip_eth_node()
207 int aliases, eth, phy, phy_parent, phandle, ret; in __get_phy_info_from_dt() local
230 eth = __mix_eth_node(fdt_addr, aliases, interface_index) ; in __get_phy_info_from_dt()
234 eth = __pip_eth_node(fdt_addr, aliases, ipd_port); in __get_phy_info_from_dt()
236 if (eth < 0 ) in __get_phy_info_from_dt()
242 phy_handle = (uint32_t *) fdt_getprop(fdt_addr, eth, "phy-handle", NULL); in __get_phy_info_from_dt()
/freebsd-12.1/sys/net/
H A Dif_gif.c263 struct etherip_header *eth; in gif_transmit() local
344 eth = mtod(m, struct etherip_header *); in gif_transmit()
345 eth->eip_resvh = 0; in gif_transmit()
346 eth->eip_ver = ETHERIP_VERSION; in gif_transmit()
347 eth->eip_resvl = 0; in gif_transmit()
/freebsd-12.1/sys/gnu/dts/arm/
H A Dmt7623n-rfb-emmc.dts123 &eth {
127 compatible = "mediatek,eth-mac";
139 compatible = "mediatek,eth-mac";
H A Dspear1310.dtsi143 gmac1: eth@5c400000 {
152 gmac2: eth@5c500000 {
161 gmac3: eth@5c600000 {
170 gmac4: eth@5c700000 {
H A Dimx1-apf9328.dts63 eth: eth@4,c00000 { label
H A Dorion5x.dtsi180 eth: ethernet-controller@72000 { label
181 compatible = "marvell,orion-eth";
189 compatible = "marvell,orion-eth-port";
H A Dkirkwood.dtsi315 compatible = "marvell,kirkwood-eth";
324 compatible = "marvell,kirkwood-eth-port";
346 compatible = "marvell,kirkwood-eth";
357 compatible = "marvell,kirkwood-eth-port";
H A Dmt7623a-rfb-emmc.dts115 &eth {
119 compatible = "mediatek,eth-mac";
H A Dmt7623a.dtsi20 &eth {
/freebsd-12.1/sys/gnu/dts/arm64/mediatek/
H A Dmt7622-rfb1.dts103 &eth {
109 compatible = "mediatek,eth-mac";
244 eth_pins: eth-pins {
246 function = "eth";
H A Dmt7622-bananapi-bpi-r64.dts117 &eth {
123 compatible = "mediatek,eth-mac";
271 eth_pins: eth-pins {
273 function = "eth";
/freebsd-12.1/sys/gnu/dts/arm64/xilinx/
H A Dzynqmp-zcu102-rev1.0.dts25 eth_mac: eth-mac@20 {

1234567