snic_get_state
int snic_get_state(struct snic *);
return sysfs_emit(buf, "%s\n", snic_state_str[snic_get_state(snic)]);
snic_state_to_str(snic_get_state(snic)),
SNIC_BUG_ON(snic_get_state(snic) != SNIC_OFFLINE &&
snic_get_state(snic) != SNIC_FWRESET);
if (snic_get_state(snic) == SNIC_FWRESET)
if (snic_get_state(snic) == SNIC_FWRESET)
if (unlikely(snic_get_state(snic) != SNIC_ONLINE)) {
if (unlikely(snic_get_state(snic) != SNIC_ONLINE)) {
if (snic_get_state(snic) == SNIC_FWRESET) {
sv_state = snic_get_state(snic);
if (snic_get_state(snic) == SNIC_FWRESET) {
if (snic_get_state(snic) != SNIC_ONLINE) {
snic_state_str[snic_get_state(snic)]);