Lines Matching refs:i

132     for (int i = 0; i < info->num_event_cb; i++) {  in wifi_unregister_handler()  local
133 if (info->event_cb[i].nl_cmd == cmd) { in wifi_unregister_handler()
135 info->event_cb[i].cb_arg, info->event_cb[i].cb_func, cmd, i); in wifi_unregister_handler()
137 memmove(&info->event_cb[i], &info->event_cb[i+1], in wifi_unregister_handler()
138 (info->num_event_cb - i - 1) * sizeof(cb_info)); in wifi_unregister_handler()
153 for (int i = 0; i < info->num_event_cb; i++) { in wifi_unregister_vendor_handler() local
155 if (info->event_cb[i].nl_cmd == NL80211_CMD_VENDOR in wifi_unregister_vendor_handler()
156 && info->event_cb[i].vendor_id == id in wifi_unregister_vendor_handler()
157 && info->event_cb[i].vendor_subcmd == subcmd) { in wifi_unregister_vendor_handler()
159 info->event_cb[i].cb_arg, info->event_cb[i].cb_func, id, subcmd, i); in wifi_unregister_vendor_handler()
160 memmove(&info->event_cb[i], &info->event_cb[i+1], in wifi_unregister_vendor_handler()
161 (info->num_event_cb - i - 1) * sizeof(cb_info)); in wifi_unregister_vendor_handler()
201 for (int i = 0; i < info->num_cmd; i++) { in wifi_unregister_cmd() local
202 if (info->cmd[i].id == id) { in wifi_unregister_cmd()
203 cmd = info->cmd[i].cmd; in wifi_unregister_cmd()
204 memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i - 1) * sizeof(cmd_info)); in wifi_unregister_cmd()
206 ALOGV("Successfully removed command %d: %p from %d", id, cmd, i); in wifi_unregister_cmd()
224 for (int i = 0; i < info->num_cmd; i++) { in wifi_get_cmd() local
225 if (info->cmd[i].id == id) { in wifi_get_cmd()
226 cmd = info->cmd[i].cmd; in wifi_get_cmd()
238 for (int i = 0; i < info->num_cmd; i++) { in wifi_unregister_cmd() local
239 if (info->cmd[i].cmd == cmd) { in wifi_unregister_cmd()
240 int id = info->cmd[i].id; in wifi_unregister_cmd()
241 memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i - 1) * sizeof(cmd_info)); in wifi_unregister_cmd()
243 ALOGV("Successfully removed command %d: %p from %d", id, cmd, i); in wifi_unregister_cmd()