Lines Matching refs:cmd_id

78 	u8 cmd_id = ops->cmd;  in cld80211_pre_doit()  local
81 if (cmd_id < 1 || cmd_id > CLD80211_MAX_COMMANDS) { in cld80211_pre_doit()
82 pr_err("CLD80211: Command Not supported: %u\n", cmd_id); in cld80211_pre_doit()
85 info->user_ptr[0] = nl->cld_ops[cmd_id - 1].cb; in cld80211_pre_doit()
86 info->user_ptr[1] = nl->cld_ops[cmd_id - 1].cb_ctx; in cld80211_pre_doit()
94 u8 cmd_id = ops->cmd; in cld80211_pre_doit() local
97 if (cmd_id < 1 || cmd_id > CLD80211_MAX_COMMANDS) { in cld80211_pre_doit()
98 pr_err("CLD80211: Command Not supported: %u\n", cmd_id); in cld80211_pre_doit()
101 info->user_ptr[0] = nl->cld_ops[cmd_id - 1].cb; in cld80211_pre_doit()
102 info->user_ptr[1] = nl->cld_ops[cmd_id - 1].cb_ctx; in cld80211_pre_doit()
124 int register_cld_cmd_cb(u8 cmd_id, cld80211_cb func, void *cb_ctx) in register_cld_cmd_cb() argument
128 pr_debug("CLD80211: Registering command: %d\n", cmd_id); in register_cld_cmd_cb()
129 if (!cmd_id || cmd_id > CLD80211_MAX_COMMANDS) { in register_cld_cmd_cb()
130 pr_debug("CLD80211: invalid command: %d\n", cmd_id); in register_cld_cmd_cb()
134 nl->cld_ops[cmd_id - 1].cb = func; in register_cld_cmd_cb()
135 nl->cld_ops[cmd_id - 1].cb_ctx = cb_ctx; in register_cld_cmd_cb()
141 int deregister_cld_cmd_cb(u8 cmd_id) in deregister_cld_cmd_cb() argument
145 pr_debug("CLD80211: De-registering command: %d\n", cmd_id); in deregister_cld_cmd_cb()
146 if (!cmd_id || cmd_id > CLD80211_MAX_COMMANDS) { in deregister_cld_cmd_cb()
147 pr_debug("CLD80211: invalid command: %d\n", cmd_id); in deregister_cld_cmd_cb()
151 nl->cld_ops[cmd_id - 1].cb = NULL; in deregister_cld_cmd_cb()
152 nl->cld_ops[cmd_id - 1].cb_ctx = NULL; in deregister_cld_cmd_cb()