Lines Matching refs:clp

72 static void connection_get(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx);
73 static void ndmp_connect_get_conn(struct conn_list *clp,
650 struct conn_list *clp; in ndmp_connect_list_find() local
655 LIST_FOREACH(clp, &cl_head, cl_q) { in ndmp_connect_list_find()
656 if (clp->cl_conn == connection) { in ndmp_connect_list_find()
658 return (clp); in ndmp_connect_list_find()
680 struct conn_list *clp; in ndmp_connect_list_add() local
687 if ((clp = ndmp_malloc(sizeof (struct conn_list))) == NULL) in ndmp_connect_list_add()
690 clp->cl_conn = connection; in ndmp_connect_list_add()
691 clp->cl_id = *id; in ndmp_connect_list_add()
694 LIST_INSERT_HEAD(&cl_head, clp, cl_q); in ndmp_connect_list_add()
716 struct conn_list *clp; in ndmp_connect_list_del() local
719 if (!(clp = ndmp_connect_list_find(connection))) { in ndmp_connect_list_del()
725 LIST_REMOVE(clp, cl_q); in ndmp_connect_list_del()
727 free(clp); in ndmp_connect_list_del()
748 struct conn_list *clp; in ndmp_connect_list_find_id() local
753 LIST_FOREACH(clp, &cl_head, cl_q) { in ndmp_connect_list_find_id()
754 if (clp->cl_id == id) { in ndmp_connect_list_find_id()
756 return (clp); in ndmp_connect_list_find_id()
768 ndmp_connect_get_conn(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx) in ndmp_connect_get_conn() argument
775 if (!(session = (ndmpd_session_t *)ndmp_get_client_data(clp->cl_conn))) in ndmp_connect_get_conn()
778 ndmp_door_put_int32(enc_ctx, clp->cl_id); in ndmp_connect_get_conn()
780 ndmp_door_put_int32(enc_ctx, clp->cl_conn->conn_authorized); in ndmp_connect_get_conn()
782 if (tcp_get_peer(clp->cl_conn->conn_sock, &(addr.s_addr), &port) != -1) in ndmp_connect_get_conn()
1006 connection_get(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx) in connection_get() argument
1010 session = (ndmpd_session_t *)ndmp_get_client_data(clp->cl_conn); in connection_get()
1019 ndmp_connect_get_conn(clp, enc_ctx); in connection_get()
1020 ndmp_connect_get_v2(clp->cl_conn, enc_ctx); in connection_get()
1024 ndmp_connect_get_conn(clp, enc_ctx); in connection_get()
1025 ndmp_connect_get_v3(clp->cl_conn, enc_ctx); in connection_get()
1078 struct conn_list *clp; in ndmp_connect_list_get() local
1082 LIST_FOREACH(clp, &cl_head, cl_q) { in ndmp_connect_list_get()
1088 LIST_FOREACH(clp, &cl_head, cl_q) { in ndmp_connect_list_get()
1089 connection_get(clp, enc_ctx); in ndmp_connect_list_get()
1110 struct conn_list *clp; in ndmpd_connect_kill_id() local
1112 if (!(clp = ndmp_connect_list_find_id(id))) in ndmpd_connect_kill_id()
1115 return (ndmpd_connect_kill(clp->cl_conn)); in ndmpd_connect_kill_id()