Lines Matching refs:path

175  * Always returns true if the socket is not connected (no iucv path for
185 return (skb_queue_len(&iucv->send_skb_q) < iucv->path->msglim);
355 /* Terminate an IUCV path */
360 struct iucv_path *path = iucv->path;
362 /* Whoever resets the path pointer, must sever and free it. */
363 if (xchg(&iucv->path, NULL)) {
368 pr_iucv->path_sever(path, user_data);
370 pr_iucv->path_sever(path, NULL);
371 iucv_path_free(path);
496 iucv->path = NULL;
615 if (iucv->path)
704 /* Create path. */
705 iucv->path = iucv_path_alloc(iucv->msglimit,
707 if (!iucv->path) {
711 err = pr_iucv->path_connect(iucv->path, &af_iucv_handler,
715 iucv_path_free(iucv->path);
716 iucv->path = NULL;
899 * @path: IUCV path
910 static int iucv_send_iprm(struct iucv_path *path, struct iucv_message *msg,
917 return pr_iucv->message_send(path, msg, IUCV_IPRMDATA, 0,
1033 /* wait if outstanding messages for iucv path has reached */
1059 if (((iucv->path->flags & IUCV_IPRMDATA) & iucv->flags) &&
1061 err = iucv_send_iprm(iucv->path, &txmsg, skb);
1071 /* IUCV_IPRMDATA path flag is set... sever path */
1073 pr_iucv->path_sever(iucv->path, NULL);
1092 err = pr_iucv->message_send(iucv->path, &txmsg,
1096 err = pr_iucv->message_send(iucv->path, &txmsg,
1160 struct iucv_path *path,
1192 rc = pr_iucv->message_receive(path, msg,
1196 rc = pr_iucv->message_receive(path, msg,
1231 iucv_process_message(sk, skb, p->path, &p->msg);
1442 err = pr_iucv->message_send(iucv->path, &txmsg,
1464 iucv->path) {
1465 err = pr_iucv->path_quiesce(iucv->path, NULL);
1572 val = (iucv->path != NULL) ? iucv->path->msglim /* connected */
1597 static int iucv_callback_connreq(struct iucv_path *path,
1609 /* Find out if this path belongs to af_iucv. */
1635 err = pr_iucv->path_sever(path, user_data);
1636 iucv_path_free(path);
1642 err = pr_iucv->path_sever(path, user_data);
1643 iucv_path_free(path);
1650 err = pr_iucv->path_sever(path, user_data);
1651 iucv_path_free(path);
1666 niucv->path = path;
1673 /* set message limit for path based on msglimit of accepting socket */
1675 path->msglim = iucv->msglimit;
1676 err = pr_iucv->path_accept(path, &af_iucv_handler, nuser_data, nsk);
1694 static void iucv_callback_connack(struct iucv_path *path, u8 ipuser[16])
1696 struct sock *sk = path->private;
1702 static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg)
1704 struct sock *sk = path->private;
1711 pr_iucv->message_reject(path, msg);
1730 iucv_process_message(sk, skb, path, msg);
1737 save_msg->path = path;
1746 static void iucv_callback_txdone(struct iucv_path *path,
1749 struct sock *sk = path->private;
1784 static void iucv_callback_connrej(struct iucv_path *path, u8 ipuser[16])
1786 struct sock *sk = path->private;
1802 static void iucv_callback_shutdown(struct iucv_path *path, u8 ipuser[16])
1804 struct sock *sk = path->private;