Lines Matching refs:cb
213 struct nl_cb *cb = nl_socket_get_cb(user_sock); in wifi_init_user_sock() local
214 if (cb == NULL) { in wifi_init_user_sock()
220 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in wifi_init_user_sock()
221 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &info->user_sock_arg); in wifi_init_user_sock()
222 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &info->user_sock_arg); in wifi_init_user_sock()
223 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &info->user_sock_arg); in wifi_init_user_sock()
225 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, user_sock_message_handler, info); in wifi_init_user_sock()
226 nl_cb_put(cb); in wifi_init_user_sock()
314 struct nl_cb *cb = NULL; in wifi_initialize() local
355 cb = nl_socket_get_cb(event_sock); in wifi_initialize()
356 if (cb == NULL) { in wifi_initialize()
363 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in wifi_initialize()
364 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err); in wifi_initialize()
365 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &err); in wifi_initialize()
366 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &err); in wifi_initialize()
368 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, internal_valid_message_handler, in wifi_initialize()
370 nl_cb_put(cb); in wifi_initialize()
606 struct nl_cb *cb = nl_socket_get_cb(sock); in internal_pollin_handler() local
608 int res = nl_recvmsgs(sock, cb); in internal_pollin_handler()
611 nl_cb_put(cb); in internal_pollin_handler()