Home
last modified time | relevance | path

Searched refs:maclen (Results 1 – 12 of 12) sorted by relevance

/openbmc/pam-ipmi/src/pam_ipmisave/
H A Dpam_ipmisave.c150 unsigned char *mac, unsigned int *maclen) in encrypt_decrypt_data() argument
178 if (!((calmaclen == *maclen) && in encrypt_decrypt_data()
182 calmaclen, *maclen); in encrypt_decrypt_data()
222 mac, maclen)) { in encrypt_decrypt_data()
295 unsigned int maclen = 0; in update_pass_special_file() local
534 &maclen) != 0) { in update_pass_special_file()
548 pwmp.macsize = maclen; in update_pass_special_file()
568 if (fwrite(mac, 1, maclen, pwfile) != maclen) { in update_pass_special_file()
/openbmc/linux/include/linux/
H A Dif_vlan.h644 int maclen; in vlan_get_protocol_and_depth() local
646 type = __vlan_get_protocol(skb, type, &maclen); in vlan_get_protocol_and_depth()
649 if (!pskb_may_pull(skb, maclen)) in vlan_get_protocol_and_depth()
652 *depth = maclen; in vlan_get_protocol_and_depth()
/openbmc/linux/include/net/
H A Dip_tunnels.h368 int nhlen = 0, maclen = inner_proto_inherit ? 0 : ETH_HLEN; in skb_vlan_inet_prepare() local
375 type = __vlan_get_protocol(skb, type, &maclen); in skb_vlan_inet_prepare()
390 if (!pskb_may_pull(skb, maclen + nhlen)) in skb_vlan_inet_prepare()
393 skb_set_network_header(skb, maclen); in skb_vlan_inet_prepare()
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dpuda.h50 u8 maclen; member
68 u8 maclen; /* mac length in bytes */ member
H A Dpuda.c467 hdr[0] = FIELD_PREP(IRDMA_UDA_QPSQ_MACLEN, info->maclen >> 1) | in irdma_puda_send()
540 info.maclen = buf->maclen; in irdma_puda_send_buf()
1225 txbuf->maclen = buf->maclen; in irdma_ieq_setup_tx_buf()
H A Dutils.c1525 iph = (struct iphdr *)(addr + buf->maclen); in irdma_gen1_ieq_update_tcpip_info()
1526 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in irdma_gen1_ieq_update_tcpip_info()
1575 buf->maclen = (info->vlan_valid) ? 18 : 14; in irdma_gen1_puda_get_tcpip_info()
1578 buf->iph = mem + buf->maclen; in irdma_gen1_puda_get_tcpip_info()
1590 buf->totallen = pkt_len + buf->maclen; in irdma_gen1_puda_get_tcpip_info()
1602 buf->hdrlen = buf->maclen + iphlen + buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()
H A Dcm.c459 sqbuf->maclen = eth_hlen; in irdma_form_uda_cm_frame()
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c997 u32 ctrl, iplen, maclen; in chcr_ktls_write_tcp_options() local
1010 maclen = skb_mac_header_len(skb); in chcr_ktls_write_tcp_options()
1054 ip = (struct iphdr *)(buf + maclen); in chcr_ktls_write_tcp_options()
1055 ip->tot_len = htons(pktlen - maclen); in chcr_ktls_write_tcp_options()
1058 ip6 = (struct ipv6hdr *)(buf + maclen); in chcr_ktls_write_tcp_options()
1059 ip6->payload_len = htons(pktlen - maclen - iplen); in chcr_ktls_write_tcp_options()
1063 cntrl1 |= T6_TXPKT_ETHHDR_LEN_V(maclen - ETH_HLEN) | in chcr_ktls_write_tcp_options()
1074 tcp = (struct tcphdr *)(buf + maclen + iplen); in chcr_ktls_write_tcp_options()
1573 u32 ctrl, iplen, maclen, wr_mid = 0, len16; in chcr_ktls_tunnel_pkt() local
1614 maclen = skb_mac_header_len(skb); in chcr_ktls_tunnel_pkt()
[all …]
/openbmc/linux/net/core/
H A Dgro.c329 unsigned int maclen = skb->dev->hard_header_len; in gro_list_prepare() local
346 if (maclen == ETH_HLEN) in gro_list_prepare()
352 maclen); in gro_list_prepare()
/openbmc/linux/drivers/net/ethernet/sun/
H A Dsunvnet_common.c1228 int maclen, datalen; in vnet_handle_offloads() local
1267 maclen = skb_network_header(skb) - skb_mac_header(skb); in vnet_handle_offloads()
1268 skb_pull(skb, maclen); in vnet_handle_offloads()
1282 skb_push(skb, maclen); in vnet_handle_offloads()
1297 skb_push(curr, maclen); in vnet_handle_offloads()
1300 maclen); in vnet_handle_offloads()
/openbmc/linux/net/packet/
H A Daf_packet.c2309 unsigned int maclen = skb_network_offset(skb); in tpacket_rcv() local
2311 (maclen < 16 ? 16 : maclen)) + in tpacket_rcv()
2316 macoff = netoff - maclen; in tpacket_rcv()
/openbmc/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c1206 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \ argument
1210 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\