Lines Matching refs:cb
253 struct nl_cb *cb = nl_socket_get_cb(user_sock); in wifi_init_user_sock() local
254 if (cb == NULL) { in wifi_init_user_sock()
260 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in wifi_init_user_sock()
261 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &info->user_sock_arg); in wifi_init_user_sock()
262 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &info->user_sock_arg); in wifi_init_user_sock()
263 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &info->user_sock_arg); in wifi_init_user_sock()
265 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, user_sock_message_handler, info); in wifi_init_user_sock()
266 nl_cb_put(cb); in wifi_init_user_sock()
376 struct nl_cb *cb = NULL; in wifi_initialize() local
417 cb = nl_socket_get_cb(event_sock); in wifi_initialize()
418 if (cb == NULL) { in wifi_initialize()
425 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in wifi_initialize()
426 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err); in wifi_initialize()
427 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &err); in wifi_initialize()
428 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &err); in wifi_initialize()
430 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, internal_valid_message_handler, in wifi_initialize()
432 nl_cb_put(cb); in wifi_initialize()
678 struct nl_cb *cb = nl_socket_get_cb(sock); in internal_pollin_handler() local
680 int res = nl_recvmsgs(sock, cb); in internal_pollin_handler()
683 nl_cb_put(cb); in internal_pollin_handler()