Home
last modified time | relevance | path

Searched refs:ROCKER_TLV_HDRLEN (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/rocker/
H A Drocker_tlv.h19 #define ROCKER_TLV_HDRLEN ROCKER_TLV_ALIGN(sizeof(struct rocker_tlv)) macro
40 return remaining >= (int) ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
41 tlv->len >= ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
56 return ROCKER_TLV_HDRLEN + payload; in rocker_tlv_attr_size()
76 return (char *) tlv + ROCKER_TLV_HDRLEN; in rocker_tlv_data()
81 return tlv->len - ROCKER_TLV_HDRLEN; in rocker_tlv_len()
/openbmc/qemu/hw/net/rocker/
H A Drocker_tlv.h23 #define ROCKER_TLV_HDRLEN ROCKER_TLV_ALIGN(sizeof(RockerTlv)) macro
44 return remaining >= (int) ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
45 le16_to_cpu(tlv->len) >= ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
59 return ROCKER_TLV_HDRLEN + payload; in rocker_tlv_size()
79 return (char *) tlv + ROCKER_TLV_HDRLEN; in rocker_tlv_data()
84 return le16_to_cpu(tlv->len) - ROCKER_TLV_HDRLEN; in rocker_tlv_len()