Lines Matching refs:_pms
22 #define _pms(sk) ((struct mISDN_sock *)sk) macro
99 if (_pms(sk)->cmask & MISDN_TIME_STAMP) { in mISDN_sock_cmsg()
116 __func__, (int)len, flags, _pms(sk)->ch.nr, in mISDN_sock_recvmsg()
132 maddr->dev = _pms(sk)->dev->id; in mISDN_sock_recvmsg()
139 maddr->channel = _pms(sk)->ch.nr; in mISDN_sock_recvmsg()
140 maddr->sapi = _pms(sk)->ch.addr & 0xFF; in mISDN_sock_recvmsg()
141 maddr->tei = (_pms(sk)->ch.addr >> 8) & 0xFF; in mISDN_sock_recvmsg()
175 __func__, (int)len, msg->msg_flags, _pms(sk)->ch.nr, in mISDN_sock_sendmsg()
211 mISDN_HEAD_ID(skb) = _pms(sk)->ch.nr; in mISDN_sock_sendmsg()
219 if (!_pms(sk)->ch.peer) in mISDN_sock_sendmsg()
221 err = _pms(sk)->ch.recv(_pms(sk)->ch.peer, skb); in mISDN_sock_sendmsg()
250 delete_channel(&_pms(sk)->ch); in data_sock_release()
262 delete_channel(&_pms(sk)->ch); in data_sock_release()
286 if (!_pms(sk)->dev) { in data_sock_ioctl_bound()
298 &_pms(sk)->dev->bchannels, list) { in data_sock_ioctl_bound()
306 err = _pms(sk)->dev->D.ctrl(&_pms(sk)->dev->D, in data_sock_ioctl_bound()
323 err = _pms(sk)->dev->teimgr->ctrl(_pms(sk)->dev->teimgr, in data_sock_ioctl_bound()
337 err = _pms(sk)->dev->teimgr->ctrl(_pms(sk)->dev->teimgr, in data_sock_ioctl_bound()
423 _pms(sk)->cmask |= MISDN_TIME_STAMP; in data_sock_setsockopt()
425 _pms(sk)->cmask &= ~MISDN_TIME_STAMP; in data_sock_setsockopt()
449 if (_pms(sk)->cmask & MISDN_TIME_STAMP) in data_sock_getsockopt()
481 if (_pms(sk)->dev) { in data_sock_bind()
485 _pms(sk)->dev = get_mdevice(maddr->dev); in data_sock_bind()
486 if (!_pms(sk)->dev) { in data_sock_bind()
496 if (_pms(csk)->dev != _pms(sk)->dev) in data_sock_bind()
510 _pms(sk)->ch.send = mISDN_send; in data_sock_bind()
511 _pms(sk)->ch.ctrl = mISDN_ctrl; in data_sock_bind()
519 err = connect_layer1(_pms(sk)->dev, &_pms(sk)->ch, in data_sock_bind()
526 err = create_l2entity(_pms(sk)->dev, &_pms(sk)->ch, in data_sock_bind()
535 err = connect_Bstack(_pms(sk)->dev, &_pms(sk)->ch, in data_sock_bind()
544 _pms(sk)->ch.protocol = sk->sk_protocol; in data_sock_bind()
558 if (!_pms(sk)->dev) in data_sock_getname()
564 maddr->dev = _pms(sk)->dev->id; in data_sock_getname()
565 maddr->channel = _pms(sk)->ch.nr; in data_sock_getname()
566 maddr->sapi = _pms(sk)->ch.addr & 0xff; in data_sock_getname()
567 maddr->tei = (_pms(sk)->ch.addr >> 8) & 0xff; in data_sock_getname()
713 if (_pms(sk)->dev) { in base_sock_bind()
718 _pms(sk)->dev = get_mdevice(maddr->dev); in base_sock_bind()
719 if (!_pms(sk)->dev) { in base_sock_bind()