Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_port.c1365 struct hinic_cmd_get_std_sfp_info sfp_info = {0}; in hinic_get_sfp_eeprom() local
1366 u16 out_size = sizeof(sfp_info); in hinic_get_sfp_eeprom()
1378 sfp_info.port_id = port_id; in hinic_get_sfp_eeprom()
1380 &sfp_info, sizeof(sfp_info), &sfp_info, in hinic_get_sfp_eeprom()
1382 if (sfp_info.status || err || !out_size) { in hinic_get_sfp_eeprom()
1385 port_id, err, sfp_info.status, out_size); in hinic_get_sfp_eeprom()
1389 *len = min_t(u16, sfp_info.eeprom_len, STD_SFP_INFO_MAX_SIZE); in hinic_get_sfp_eeprom()
1390 memcpy(data, sfp_info.sfp_info, STD_SFP_INFO_MAX_SIZE); in hinic_get_sfp_eeprom()
H A Dhinic_port.h739 u8 sfp_info[STD_SFP_INFO_MAX_SIZE]; member