Lines Matching defs:path
160 * Always returns true if the socket is not connected (no iucv path for
170 return (atomic_read(&iucv->skbs_in_xmit) < iucv->path->msglim);
331 /* Terminate an IUCV path */
336 struct iucv_path *path = iucv->path;
338 if (iucv->path) {
339 iucv->path = NULL;
344 pr_iucv->path_sever(path, user_data);
346 pr_iucv->path_sever(path, NULL);
347 iucv_path_free(path);
473 iucv->path = NULL;
592 if (iucv->path)
681 /* Create path. */
682 iucv->path = iucv_path_alloc(iucv->msglimit,
684 if (!iucv->path) {
688 err = pr_iucv->path_connect(iucv->path, &af_iucv_handler,
692 iucv_path_free(iucv->path);
693 iucv->path = NULL;
876 * @path: IUCV path
887 static int iucv_send_iprm(struct iucv_path *path, struct iucv_message *msg,
894 return pr_iucv->message_send(path, msg, IUCV_IPRMDATA, 0,
1010 /* wait if outstanding messages for iucv path has reached */
1037 if (((iucv->path->flags & IUCV_IPRMDATA) & iucv->flags) &&
1039 err = iucv_send_iprm(iucv->path, &txmsg, skb);
1050 /* IUCV_IPRMDATA path flag is set... sever path */
1052 pr_iucv->path_sever(iucv->path, NULL);
1072 err = pr_iucv->message_send(iucv->path, &txmsg,
1076 err = pr_iucv->message_send(iucv->path, &txmsg,
1142 struct iucv_path *path,
1174 rc = pr_iucv->message_receive(path, msg,
1178 rc = pr_iucv->message_receive(path, msg,
1213 iucv_process_message(sk, skb, p->path, &p->msg);
1423 err = pr_iucv->message_send(iucv->path, &txmsg,
1445 iucv->path) {
1446 err = pr_iucv->path_quiesce(iucv->path, NULL);
1553 val = (iucv->path != NULL) ? iucv->path->msglim /* connected */
1578 static int iucv_callback_connreq(struct iucv_path *path,
1590 /* Find out if this path belongs to af_iucv. */
1616 err = pr_iucv->path_sever(path, user_data);
1617 iucv_path_free(path);
1623 err = pr_iucv->path_sever(path, user_data);
1624 iucv_path_free(path);
1631 err = pr_iucv->path_sever(path, user_data);
1632 iucv_path_free(path);
1647 niucv->path = path;
1654 /* set message limit for path based on msglimit of accepting socket */
1656 path->msglim = iucv->msglimit;
1657 err = pr_iucv->path_accept(path, &af_iucv_handler, nuser_data, nsk);
1675 static void iucv_callback_connack(struct iucv_path *path, u8 ipuser[16])
1677 struct sock *sk = path->private;
1683 static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg)
1685 struct sock *sk = path->private;
1692 pr_iucv->message_reject(path, msg);
1711 iucv_process_message(sk, skb, path, msg);
1718 save_msg->path = path;
1727 static void iucv_callback_txdone(struct iucv_path *path,
1730 struct sock *sk = path->private;
1772 static void iucv_callback_connrej(struct iucv_path *path, u8 ipuser[16])
1774 struct sock *sk = path->private;
1790 static void iucv_callback_shutdown(struct iucv_path *path, u8 ipuser[16])
1792 struct sock *sk = path->private;