Searched refs:CHK_DEV_STATE (Results 1 – 2 of 2) sorted by relevance
501 #define CHK_DEV_STATE(a, s) (((struct ar9170 *)a)->state >= (s)) macro502 #define IS_INITIALIZED(a) (CHK_DEV_STATE(a, CARL9170_STOPPED))503 #define IS_ACCEPTING_CMD(a) (CHK_DEV_STATE(a, CARL9170_IDLE))504 #define IS_STARTED(a) (CHK_DEV_STATE(a, CARL9170_STARTED))528 if (CHK_DEV_STATE(ar, min)) in carl9170_set_state_when()
91 if (!CHK_DEV_STATE(ar, dfops->req_dev_state)) { in carl9170_debugfs_read()151 if (!CHK_DEV_STATE(ar, dfops->req_dev_state)) { in carl9170_debugfs_write()