Searched refs:CHK_DEV_STATE (Results 1 – 2 of 2) sorted by relevance
502 #define CHK_DEV_STATE(a, s) (((struct ar9170 *)a)->state >= (s)) macro503 #define IS_INITIALIZED(a) (CHK_DEV_STATE(a, CARL9170_STOPPED))504 #define IS_ACCEPTING_CMD(a) (CHK_DEV_STATE(a, CARL9170_IDLE))505 #define IS_STARTED(a) (CHK_DEV_STATE(a, CARL9170_STARTED))529 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()