wsm_cmd 216 drivers/net/wireless/st/cw1200/cw1200.h struct wsm_cmd wsm_cmd; wsm_cmd 250 drivers/net/wireless/st/cw1200/debug.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 252 drivers/net/wireless/st/cw1200/debug.c priv->wsm_cmd.done ? "idle" : "active"); wsm_cmd 254 drivers/net/wireless/st/cw1200/debug.c priv->wsm_cmd.cmd, priv->wsm_cmd.len); wsm_cmd 256 drivers/net/wireless/st/cw1200/debug.c priv->wsm_cmd.ret); wsm_cmd 257 drivers/net/wireless/st/cw1200/debug.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 405 drivers/net/wireless/st/cw1200/main.c spin_lock_init(&priv->wsm_cmd.lock); wsm_cmd 406 drivers/net/wireless/st/cw1200/main.c priv->wsm_cmd.done = 1; wsm_cmd 1088 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1089 drivers/net/wireless/st/cw1200/wsm.c while (!priv->wsm_cmd.done) { wsm_cmd 1090 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1091 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1093 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.done = 0; wsm_cmd 1094 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1115 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1116 drivers/net/wireless/st/cw1200/wsm.c BUG_ON(priv->wsm_cmd.ptr); wsm_cmd 1117 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.ptr = buf->begin; wsm_cmd 1118 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.len = buf_len; wsm_cmd 1119 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.arg = arg; wsm_cmd 1120 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.cmd = cmd; wsm_cmd 1121 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1127 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.done, tmo); wsm_cmd 1129 drivers/net/wireless/st/cw1200/wsm.c if (!ret && !priv->wsm_cmd.done) { wsm_cmd 1130 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1131 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.done = 1; wsm_cmd 1132 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.ptr = NULL; wsm_cmd 1133 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1138 drivers/net/wireless/st/cw1200/wsm.c pr_err("CMD req (0x%04x) stuck in firmware, killing BH\n", priv->wsm_cmd.cmd); wsm_cmd 1149 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1150 drivers/net/wireless/st/cw1200/wsm.c BUG_ON(!priv->wsm_cmd.done); wsm_cmd 1151 drivers/net/wireless/st/cw1200/wsm.c ret = priv->wsm_cmd.ret; wsm_cmd 1152 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1320 drivers/net/wireless/st/cw1200/wsm.c u16 wsm_cmd; wsm_cmd 1325 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1326 drivers/net/wireless/st/cw1200/wsm.c wsm_arg = priv->wsm_cmd.arg; wsm_cmd 1327 drivers/net/wireless/st/cw1200/wsm.c wsm_cmd = priv->wsm_cmd.cmd & wsm_cmd 1329 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.cmd = 0xFFFF; wsm_cmd 1330 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1332 drivers/net/wireless/st/cw1200/wsm.c if (WARN_ON((id & ~0x0400) != wsm_cmd)) { wsm_cmd 1402 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1403 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.ret = ret; wsm_cmd 1404 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.done = 1; wsm_cmd 1405 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1674 drivers/net/wireless/st/cw1200/wsm.c if (priv->wsm_cmd.ptr) { /* CMD request */ wsm_cmd 1676 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1677 drivers/net/wireless/st/cw1200/wsm.c BUG_ON(!priv->wsm_cmd.ptr); wsm_cmd 1678 drivers/net/wireless/st/cw1200/wsm.c *data = priv->wsm_cmd.ptr; wsm_cmd 1679 drivers/net/wireless/st/cw1200/wsm.c *tx_len = priv->wsm_cmd.len; wsm_cmd 1681 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock); wsm_cmd 1767 drivers/net/wireless/st/cw1200/wsm.c if (data == priv->wsm_cmd.ptr) { wsm_cmd 1768 drivers/net/wireless/st/cw1200/wsm.c spin_lock(&priv->wsm_cmd.lock); wsm_cmd 1769 drivers/net/wireless/st/cw1200/wsm.c priv->wsm_cmd.ptr = NULL; wsm_cmd 1770 drivers/net/wireless/st/cw1200/wsm.c spin_unlock(&priv->wsm_cmd.lock);