Lines Matching defs:path

70 	struct iucv_path	*path;		/* IUCV path pointer */
81 u8 info_path[16]; /* IUCV path info (dev attr) */
215 * IUCV path.
216 * If the IUCV path has been severed, then -EPIPE is returned to cause a
230 /* if the IUCV path has been severed, return -EPIPE to inform the
250 rc = __iucv_message_receive(priv->path, &rb->msg, 0,
309 * If an IUCV communication path has been established, pending IUCV messages
353 * If an existing IUCV communicaton path has been severed, -EPIPE is returned
384 * If an IUCV communication path has been established, the buffered output data
386 * Returns 0 if there is no established IUCV communication path or
387 * -EPIPE if an existing IUCV communicaton path has been severed.
415 rc = __iucv_message_send(priv->path, &sb->msg, 0, 0,
559 * hvc_iucv_hangup() - Sever IUCV path and schedule hvc tty hang up
562 * This routine severs an existing IUCV communication path and hangs
564 * The hang-up occurs only if an IUCV communication path is established;
568 * 1. After the IUCV path has been severed, the iucv_state is set to
592 struct iucv_path *path;
594 path = NULL;
597 path = priv->path;
598 priv->path = NULL;
612 /* finally sever path (outside of priv->lock due to lock ordering) */
613 if (path) {
614 iucv_path_sever(path, NULL);
615 iucv_path_free(path);
628 * to keep an existing IUCV communication path established.
631 * If the tty has been opened and an established IUCV path has been severed
651 * ignore this hangup and keep an established IUCV path open...
673 struct iucv_path *path;
691 path = priv->path; /* save reference to IUCV path */
692 priv->path = NULL;
696 /* Sever IUCV path outside of priv->lock due to lock ordering of:
698 if (path) {
699 iucv_path_sever(path, NULL);
700 iucv_path_free(path);
769 * @path: Pending path (struct iucv_path)
771 * @ipuser: User specified data for this path
774 * The function uses the @ipuser data to determine if the pending path belongs
776 * If the path belongs to this driver, ensure that the terminal is not accessed
778 * If the terminal is not yet connected, the pending path is accepted and is
781 * Returns 0 if @path belongs to a terminal managed by the this device driver;
782 * otherwise returns -ENODEV in order to dispatch this path to other handlers.
786 static int hvc_iucv_path_pending(struct iucv_path *path, u8 *ipvmid,
798 /* First, check if the pending path request is managed by this
828 iucv_path_sever(path, ipuser);
829 iucv_path_free(path);
840 * this path to enforce that there is only ONE established communication
841 * path per terminal. */
843 iucv_path_sever(path, ipuser);
844 iucv_path_free(path);
848 /* accept path */
851 path->msglim = 0xffff; /* IUCV MSGLIMIT */
852 path->flags &= ~IUCV_IPRMDATA; /* TODO: use IUCV_IPRMDATA */
853 rc = iucv_path_accept(path, &hvc_iucv_handler, nuser_data, priv);
855 iucv_path_sever(path, ipuser);
856 iucv_path_free(path);
859 priv->path = path;
862 /* store path information */
875 * hvc_iucv_path_severed() - IUCV handler to process a path sever.
876 * @path: Pending path (struct iucv_path)
877 * @ipuser: User specified data for this path
885 static void hvc_iucv_path_severed(struct iucv_path *path, u8 *ipuser)
887 struct hvc_iucv_private *priv = path->private;
894 * @path: Pending path (struct iucv_path)
903 static void hvc_iucv_msg_pending(struct iucv_path *path,
906 struct hvc_iucv_private *priv = path->private;
911 iucv_message_reject(path, msg);
919 iucv_message_reject(path, msg);
926 iucv_message_reject(path, msg);
941 * @path: Pending path (struct iucv_path)
951 static void hvc_iucv_msg_complete(struct iucv_path *path,
954 struct hvc_iucv_private *priv = path->private;
973 * Sever an established IUCV communication path and