Searched refs:nsw (Results 1 – 1 of 1) sorted by relevance
290 static int o2net_prep_nsw(struct o2net_node *nn, struct o2net_status_wait *nsw) in o2net_prep_nsw() argument295 ret = idr_alloc(&nn->nn_status_idr, nsw, 0, 0, GFP_ATOMIC); in o2net_prep_nsw()297 nsw->ns_id = ret; in o2net_prep_nsw()298 list_add_tail(&nsw->ns_node_item, &nn->nn_status_list); in o2net_prep_nsw()304 init_waitqueue_head(&nsw->ns_wq); in o2net_prep_nsw()305 nsw->ns_sys_status = O2NET_ERR_NONE; in o2net_prep_nsw()306 nsw->ns_status = 0; in o2net_prep_nsw()311 struct o2net_status_wait *nsw, in o2net_complete_nsw_locked() argument317 if (!list_empty(&nsw->ns_node_item)) { in o2net_complete_nsw_locked()318 list_del_init(&nsw->ns_node_item); in o2net_complete_nsw_locked()[all …]