Lines Matching refs:channel
56 unsigned short channel; member
79 return hci_pi(sk)->channel; in hci_sock_get_channel()
210 if (hci_pi(sk)->channel == HCI_CHANNEL_RAW) { in hci_send_to_sock()
218 } else if (hci_pi(sk)->channel == HCI_CHANNEL_USER) { in hci_send_to_sock()
254 static void __hci_send_to_channel(unsigned short channel, struct sk_buff *skb, in __hci_send_to_channel() argument
259 BT_DBG("channel %u len %d", channel, skb->len); in __hci_send_to_channel()
275 if (hci_pi(sk)->channel != channel) in __hci_send_to_channel()
288 void hci_send_to_channel(unsigned short channel, struct sk_buff *skb, in hci_send_to_channel() argument
292 __hci_send_to_channel(channel, skb, flag, skip_sk); in hci_send_to_channel()
368 if (hci_pi(sk)->channel != HCI_CHANNEL_CONTROL) in hci_send_monitor_ctrl_event()
495 switch (hci_pi(sk)->channel) { in create_monitor_ctrl_open()
550 switch (hci_pi(sk)->channel) { in create_monitor_ctrl_close()
773 static struct hci_mgmt_chan *__hci_mgmt_chan_find(unsigned short channel) in __hci_mgmt_chan_find() argument
778 if (c->channel == channel) in __hci_mgmt_chan_find()
785 static struct hci_mgmt_chan *hci_mgmt_chan_find(unsigned short channel) in hci_mgmt_chan_find() argument
790 c = __hci_mgmt_chan_find(channel); in hci_mgmt_chan_find()
798 if (c->channel < HCI_CHANNEL_CONTROL) in hci_mgmt_chan_register()
802 if (__hci_mgmt_chan_find(c->channel)) { in hci_mgmt_chan_register()
834 switch (hci_pi(sk)->channel) { in hci_sock_release()
857 if (hci_pi(sk)->channel == HCI_CHANNEL_USER) { in hci_sock_release()
974 if (hci_pi(sk)->channel != HCI_CHANNEL_RAW) { in hci_sock_ioctl()
1102 hci_pi(sk)->channel = haddr.hci_channel; in hci_sock_bind()
1192 hci_pi(sk)->channel = haddr.hci_channel; in hci_sock_bind()
1237 hci_pi(sk)->channel = haddr.hci_channel; in hci_sock_bind()
1266 hci_pi(sk)->channel = haddr.hci_channel; in hci_sock_bind()
1288 hci_pi(sk)->channel = haddr.hci_channel; in hci_sock_bind()
1300 if (hci_pi(sk)->channel == HCI_CHANNEL_CONTROL) { in hci_sock_bind()
1364 haddr->hci_channel= hci_pi(sk)->channel; in hci_sock_getname()
1423 if (hci_pi(sk)->channel == HCI_CHANNEL_LOGGING) in hci_sock_recvmsg()
1443 switch (hci_pi(sk)->channel) { in hci_sock_recvmsg()
1452 if (hci_mgmt_chan_find(hci_pi(sk)->channel)) in hci_sock_recvmsg()
1501 if (chan->channel == HCI_CHANNEL_CONTROL) { in hci_mgmt_cmd()
1696 switch (hci_pi(sk)->channel) { in hci_sock_sendmsg()
1708 chan = __hci_mgmt_chan_find(hci_pi(sk)->channel); in hci_sock_sendmsg()
1741 if (hci_pi(sk)->channel == HCI_CHANNEL_USER) { in hci_sock_sendmsg()
1827 if (hci_pi(sk)->channel != HCI_CHANNEL_RAW) { in hci_sock_setsockopt()
1916 if (hci_pi(sk)->channel != HCI_CHANNEL_RAW) { in hci_sock_getsockopt()