Lines Matching refs:num_cmd
204 if (info->num_cmd < info->alloc_cmd) { in wifi_register_cmd()
205 info->cmd[info->num_cmd].id = id; in wifi_register_cmd()
206 info->cmd[info->num_cmd].cmd = cmd; in wifi_register_cmd()
207 ALOGV("Successfully added command %d: %p at %d", id, cmd, info->num_cmd); in wifi_register_cmd()
208 info->num_cmd++; in wifi_register_cmd()
212 id, cmd, info->num_cmd, info->alloc_cmd); in wifi_register_cmd()
226 for (int i = 0; i < info->num_cmd; i++) { in wifi_unregister_cmd()
229 memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i - 1) * sizeof(cmd_info)); in wifi_unregister_cmd()
230 info->num_cmd--; in wifi_unregister_cmd()
249 for (int i = 0; i < info->num_cmd; i++) { in wifi_get_cmd()
263 for (int i = 0; i < info->num_cmd; i++) { in wifi_unregister_cmd()
266 memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i - 1) * sizeof(cmd_info)); in wifi_unregister_cmd()
267 info->num_cmd--; in wifi_unregister_cmd()