Lines Matching refs:scif_info
75 dev_dbg(scif_info.mdev.this_device, in scif_open()
116 mutex_lock(&scif_info.connlock); in scif_disconnect_ep()
117 list_for_each_safe(pos, tmpq, &scif_info.connected) { in scif_disconnect_ep()
134 list_for_each_safe(pos, tmpq, &scif_info.disconnected) { in scif_disconnect_ep()
141 mutex_unlock(&scif_info.connlock); in scif_disconnect_ep()
154 mutex_unlock(&scif_info.connlock); in scif_disconnect_ep()
171 dev_dbg(scif_info.mdev.this_device, "SCIFAPI close: ep %p %s\n", in scif_close()
179 flush_work(&scif_info.conn_work); in scif_close()
188 dev_err(scif_info.mdev.this_device, in scif_close()
195 mutex_lock(&scif_info.connlock); in scif_close()
196 list_for_each_safe(pos, tmpq, &scif_info.disconnected) { in scif_close()
203 mutex_unlock(&scif_info.connlock); in scif_close()
227 mutex_lock(&scif_info.eplock); in scif_close()
230 list_for_each_safe(pos, tmpq, &scif_info.listen) { in scif_close()
241 list_for_each_safe(pos, tmpq, &scif_info.uaccept) { in scif_close()
249 mutex_unlock(&scif_info.eplock); in scif_close()
250 mutex_lock(&scif_info.connlock); in scif_close()
251 list_for_each_safe(pos, tmpq, &scif_info.connected) { in scif_close()
259 list_for_each_safe(pos, tmpq, &scif_info.disconnected) { in scif_close()
267 mutex_unlock(&scif_info.connlock); in scif_close()
269 mutex_lock(&scif_info.eplock); in scif_close()
275 mutex_unlock(&scif_info.eplock); in scif_close()
343 dev_dbg(scif_info.mdev.this_device, in scif_bind()
381 ep->port.node = scif_info.nodeid; in scif_bind()
385 dev_dbg(scif_info.mdev.this_device, in scif_bind()
398 dev_dbg(scif_info.mdev.this_device, in scif_listen()
436 mutex_lock(&scif_info.eplock); in scif_listen()
437 list_add_tail(&ep->list, &scif_info.listen); in scif_listen()
438 mutex_unlock(&scif_info.eplock); in scif_listen()
552 mutex_lock(&scif_info.connlock); in scif_conn_func()
553 list_add_tail(&ep->list, &scif_info.connected); in scif_conn_func()
554 mutex_unlock(&scif_info.connlock); in scif_conn_func()
585 spin_lock(&scif_info.nb_connect_lock); in scif_conn_handler()
586 if (!list_empty(&scif_info.nb_connect_list)) { in scif_conn_handler()
587 ep = list_first_entry(&scif_info.nb_connect_list, in scif_conn_handler()
591 spin_unlock(&scif_info.nb_connect_lock); in scif_conn_handler()
606 dev_dbg(scif_info.mdev.this_device, "SCIFAPI connect: ep %p %s\n", ep, in __scif_connect()
609 if (!scif_dev || dst->node > scif_info.maxid) in __scif_connect()
655 ep->port.node = scif_info.nodeid; in __scif_connect()
696 spin_lock(&scif_info.nb_connect_lock); in __scif_connect()
697 list_add_tail(&ep->conn_list, &scif_info.nb_connect_list); in __scif_connect()
698 spin_unlock(&scif_info.nb_connect_lock); in __scif_connect()
700 schedule_work(&scif_info.conn_work); in __scif_connect()
708 flush_work(&scif_info.conn_work); in __scif_connect()
756 dev_dbg(scif_info.mdev.this_device, in scif_accept()
822 dev_err(scif_info.mdev.this_device, in scif_accept()
1112 dev_dbg(scif_info.mdev.this_device, in scif_user_send()
1173 dev_dbg(scif_info.mdev.this_device, in scif_user_recv()
1230 dev_dbg(scif_info.mdev.this_device, in scif_send()
1272 dev_dbg(scif_info.mdev.this_device, in scif_recv()
1318 dev_dbg(scif_info.mdev.this_device, in __scif_pollfd()
1436 *self = scif_info.nodeid; in scif_get_node_ids()
1437 mutex_lock(&scif_info.conflock); in scif_get_node_ids()
1438 len = min_t(int, len, scif_info.total); in scif_get_node_ids()
1439 for (node = 0; node <= scif_info.maxid; node++) { in scif_get_node_ids()
1446 dev_dbg(scif_info.mdev.this_device, in scif_get_node_ids()
1448 scif_info.total, online, offset); in scif_get_node_ids()
1449 mutex_unlock(&scif_info.conflock); in scif_get_node_ids()