Lines Matching refs:id
78 uint32_t id, int subcmd, nl_recvmsg_msg_cb_t func, void *arg) in wifi_register_vendor_handler() argument
89 info->event_cb[info->num_event_cb].vendor_id = id; in wifi_register_vendor_handler()
94 arg, func, id, subcmd, info->num_event_cb); in wifi_register_vendor_handler()
129 void wifi_unregister_vendor_handler(wifi_handle handle, uint32_t id, int subcmd) in wifi_unregister_vendor_handler() argument
138 && info->event_cb[i].vendor_id == id in wifi_unregister_vendor_handler()
141 info->event_cb[i].cb_arg, info->event_cb[i].cb_func, id, subcmd, i); in wifi_unregister_vendor_handler()
153 wifi_error wifi_register_cmd(wifi_handle handle, int id, WifiCommand *cmd) in wifi_register_cmd() argument
157 ALOGV("registering command %d", id); in wifi_register_cmd()
162 info->cmd[info->num_cmd].id = id; in wifi_register_cmd()
164 ALOGV("Successfully added command %d: %p at %d", id, cmd, info->num_cmd); in wifi_register_cmd()
169 id, cmd, info->num_cmd, info->alloc_cmd); in wifi_register_cmd()
175 WifiCommand *wifi_unregister_cmd(wifi_handle handle, int id) in wifi_unregister_cmd() argument
179 ALOGV("un-registering command %d", id); in wifi_unregister_cmd()
184 if (info->cmd[i].id == id) { in wifi_unregister_cmd()
188 ALOGV("Successfully removed command %d: %p from %d", id, cmd, i); in wifi_unregister_cmd()
194 ALOGI("Failed to remove command %d: %p", id, cmd); in wifi_unregister_cmd()
200 WifiCommand *wifi_get_cmd(wifi_handle handle, int id) in wifi_get_cmd() argument
207 if (info->cmd[i].id == id) { in wifi_get_cmd()
222 int id = info->cmd[i].id; in wifi_unregister_cmd() local
225 ALOGV("Successfully removed command %d: %p from %d", id, cmd, i); in wifi_unregister_cmd()
231 wifi_error wifi_cancel_cmd(wifi_request_id id, wifi_interface_handle iface) in wifi_cancel_cmd() argument
235 WifiCommand *cmd = wifi_unregister_cmd(handle, id); in wifi_cancel_cmd()