Searched refs:rocker_tlv_put (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/net/ethernet/rocker/ |
H A D | rocker_tlv.h | 135 int rocker_tlv_put(struct rocker_desc_info *desc_info, 143 return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &tmp); in rocker_tlv_put_u8() 151 return rocker_tlv_put(desc_info, attrtype, sizeof(u16), &tmp); in rocker_tlv_put_u16() 159 return rocker_tlv_put(desc_info, attrtype, sizeof(__be16), &tmp); in rocker_tlv_put_be16() 167 return rocker_tlv_put(desc_info, attrtype, sizeof(u32), &tmp); in rocker_tlv_put_u32() 175 return rocker_tlv_put(desc_info, attrtype, sizeof(__be32), &tmp); in rocker_tlv_put_be32() 183 return rocker_tlv_put(desc_info, attrtype, sizeof(u64), &tmp); in rocker_tlv_put_u64() 191 if (rocker_tlv_put(desc_info, attrtype, 0, NULL) < 0) in rocker_tlv_nest_start()
|
H A D | rocker_tlv.c | 32 int rocker_tlv_put(struct rocker_desc_info *desc_info, in rocker_tlv_put() function
|
H A D | rocker_ofdpa.c | 358 if (rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_DST_MAC, in ofdpa_cmd_flow_tbl_add_term_mac() 361 if (rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_DST_MAC_MASK, in ofdpa_cmd_flow_tbl_add_term_mac() 409 rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_DST_MAC, in ofdpa_cmd_flow_tbl_add_bridge() 413 rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_DST_MAC_MASK, in ofdpa_cmd_flow_tbl_add_bridge() 448 if (rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_SRC_MAC, in ofdpa_cmd_flow_tbl_add_acl() 451 if (rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_SRC_MAC_MASK, in ofdpa_cmd_flow_tbl_add_acl() 454 if (rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_DST_MAC, in ofdpa_cmd_flow_tbl_add_acl() 604 rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_SRC_MAC, in ofdpa_cmd_group_tbl_add_l2_rewrite() 608 rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_DST_MAC, in ofdpa_cmd_group_tbl_add_l2_rewrite() 650 rocker_tlv_put(desc_info, ROCKER_TLV_OF_DPA_SRC_MAC, in ofdpa_cmd_group_tbl_add_l3_unicast() [all …]
|
H A D | rocker_main.c | 1297 if (rocker_tlv_put(desc_info, ROCKER_TLV_CMD_PORT_SETTINGS_MACADDR, in rocker_cmd_set_port_settings_macaddr_prep()
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_tlv.h | 167 static inline void rocker_tlv_put(char *buf, int *buf_pos, in rocker_tlv_put() function 181 rocker_tlv_put(buf, buf_pos, type, sizeof(uint8_t), &value); in rocker_tlv_put_u8() 187 rocker_tlv_put(buf, buf_pos, type, sizeof(uint16_t), &value); in rocker_tlv_put_u16() 193 rocker_tlv_put(buf, buf_pos, type, sizeof(uint32_t), &value); in rocker_tlv_put_u32() 199 rocker_tlv_put(buf, buf_pos, type, sizeof(uint64_t), &value); in rocker_tlv_put_u64() 206 rocker_tlv_put(buf, buf_pos, type, sizeof(uint16_t), &value); in rocker_tlv_put_le16() 213 rocker_tlv_put(buf, buf_pos, type, sizeof(uint32_t), &value); in rocker_tlv_put_le32() 220 rocker_tlv_put(buf, buf_pos, type, sizeof(uint64_t), &value); in rocker_tlv_put_le64() 228 rocker_tlv_put(buf, buf_pos, type, 0, NULL); in rocker_tlv_nest_start()
|
H A D | rocker.c | 325 rocker_tlv_put(buf, &pos, ROCKER_TLV_CMD_PORT_SETTINGS_MACADDR, in cmd_get_port_settings() 330 rocker_tlv_put(buf, &pos, ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME, in cmd_get_port_settings() 576 rocker_tlv_put(buf, &pos, ROCKER_TLV_EVENT_MAC_VLAN_MAC, ETH_ALEN, addr); in rocker_event_mac_vlan_seen()
|