Searched refs:fw_cmpl (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_devlink.c | 379 struct fbnic_fw_completion *fw_cmpl; in fbnic_fw_reporter_dump() local 383 fw_cmpl = fbnic_fw_alloc_cmpl(FBNIC_TLV_MSG_ID_COREDUMP_GET_INFO_RESP); in fbnic_fw_reporter_dump() 384 if (!fw_cmpl) in fbnic_fw_reporter_dump() 387 err = fbnic_fw_xmit_coredump_info_msg(fbd, fw_cmpl, true); in fbnic_fw_reporter_dump() 393 if (!fbnic_mbx_wait_for_cmpl(fw_cmpl)) { in fbnic_fw_reporter_dump() 400 size = fw_cmpl->u.coredump_info.size; in fbnic_fw_reporter_dump() 401 err = fw_cmpl->result; in fbnic_fw_reporter_dump() 403 fbnic_mbx_clear_cmpl(fbd, fw_cmpl); in fbnic_fw_reporter_dump() 404 fbnic_fw_put_cmpl(fw_cmpl); in fbnic_fw_reporter_dump() 420 fw_cmpl = __fbnic_fw_alloc_cmpl(FBNIC_TLV_MSG_ID_COREDUMP_READ_RESP, in fbnic_fw_reporter_dump() [all …]
|
| H A D | fbnic_mac.c | 837 struct fbnic_fw_completion *fw_cmpl; in fbnic_mac_get_sensor_asic() local 841 fw_cmpl = fbnic_fw_alloc_cmpl(FBNIC_TLV_MSG_ID_TSENE_READ_RESP); in fbnic_mac_get_sensor_asic() 842 if (!fw_cmpl) in fbnic_mac_get_sensor_asic() 847 sensor = &fw_cmpl->u.tsene.millidegrees; in fbnic_mac_get_sensor_asic() 850 sensor = &fw_cmpl->u.tsene.millivolts; in fbnic_mac_get_sensor_asic() 857 err = fbnic_fw_xmit_tsene_read_msg(fbd, fw_cmpl); in fbnic_mac_get_sensor_asic() 865 if (!wait_for_completion_timeout(&fw_cmpl->done, 10 * HZ)) { in fbnic_mac_get_sensor_asic() 872 if (fw_cmpl->result) { in fbnic_mac_get_sensor_asic() 873 err = fw_cmpl->result; in fbnic_mac_get_sensor_asic() 881 fbnic_mbx_clear_cmpl(fbd, fw_cmpl); in fbnic_mac_get_sensor_asic() [all …]
|
| H A D | fbnic_ethtool.c | 1650 struct fbnic_fw_completion *fw_cmpl; in fbnic_get_module_eeprom_by_page() local 1660 fw_cmpl = __fbnic_fw_alloc_cmpl(FBNIC_TLV_MSG_ID_QSFP_READ_RESP, in fbnic_get_module_eeprom_by_page() 1662 if (!fw_cmpl) in fbnic_get_module_eeprom_by_page() 1666 fw_cmpl->u.qsfp.length = page_data->length; in fbnic_get_module_eeprom_by_page() 1667 fw_cmpl->u.qsfp.offset = page_data->offset; in fbnic_get_module_eeprom_by_page() 1668 fw_cmpl->u.qsfp.page = page_data->page; in fbnic_get_module_eeprom_by_page() 1669 fw_cmpl->u.qsfp.bank = page_data->bank; in fbnic_get_module_eeprom_by_page() 1671 err = fbnic_fw_xmit_qsfp_read_msg(fbd, fw_cmpl, page_data->page, in fbnic_get_module_eeprom_by_page() 1680 if (!fbnic_mbx_wait_for_cmpl(fw_cmpl)) { in fbnic_get_module_eeprom_by_page() 1687 if (fw_cmpl->result) { in fbnic_get_module_eeprom_by_page() [all …]
|
| H A D | fbnic_fw.c | 341 struct fbnic_fw_completion *fw_cmpl) in fbnic_mbx_clear_cmpl() argument 346 fbnic_mbx_clear_cmpl_slot(fbd, fw_cmpl); in fbnic_mbx_clear_cmpl() 1927 void fbnic_fw_put_cmpl(struct fbnic_fw_completion *fw_cmpl) in fbnic_fw_put_cmpl() argument 1929 kref_put(&fw_cmpl->ref_count, fbnic_fw_release_cmpl_data); in fbnic_fw_put_cmpl()
|