Lines Matching defs:chan

206 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm)  in l2cap_add_psm()
251 int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid) in l2cap_add_scid()
283 static void l2cap_state_change(struct l2cap_chan *chan, int state) in l2cap_state_change()
292 static inline void l2cap_state_change_and_error(struct l2cap_chan *chan, in l2cap_state_change_and_error()
299 static inline void l2cap_chan_set_err(struct l2cap_chan *chan, int err) in l2cap_chan_set_err()
304 static void __set_retrans_timer(struct l2cap_chan *chan) in __set_retrans_timer()
313 static void __set_monitor_timer(struct l2cap_chan *chan) in __set_monitor_timer()
431 struct l2cap_chan *chan = container_of(work, struct l2cap_chan, in l2cap_chan_timeout() local
464 struct l2cap_chan *chan; in l2cap_chan_create() local
501 struct l2cap_chan *chan = container_of(kref, struct l2cap_chan, kref); in l2cap_chan_destroy() local
537 void l2cap_chan_set_defaults(struct l2cap_chan *chan) in l2cap_chan_set_defaults()
558 static void l2cap_le_flowctl_init(struct l2cap_chan *chan, u16 tx_credits) in l2cap_le_flowctl_init()
572 static void l2cap_ecred_init(struct l2cap_chan *chan, u16 tx_credits) in l2cap_ecred_init()
583 void __l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan) in __l2cap_chan_add()
635 void l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan) in l2cap_chan_add()
642 void l2cap_chan_del(struct l2cap_chan *chan, int err) in l2cap_chan_del()
714 struct l2cap_chan *chan, *l; in __l2cap_chan_list_id() local
725 struct l2cap_chan *chan; in __l2cap_chan_list() local
750 struct l2cap_chan *chan; in l2cap_conn_update_id_addr() local
764 static void l2cap_chan_le_connect_reject(struct l2cap_chan *chan) in l2cap_chan_le_connect_reject()
787 static void l2cap_chan_ecred_connect_reject(struct l2cap_chan *chan) in l2cap_chan_ecred_connect_reject()
794 static void l2cap_chan_connect_reject(struct l2cap_chan *chan) in l2cap_chan_connect_reject()
815 void l2cap_chan_close(struct l2cap_chan *chan, int reason) in l2cap_chan_close()
866 static inline u8 l2cap_get_auth_type(struct l2cap_chan *chan) in l2cap_get_auth_type()
919 int l2cap_chan_check_security(struct l2cap_chan *chan, bool initiator) in l2cap_chan_check_security()
980 static bool __chan_is_moving(struct l2cap_chan *chan) in __chan_is_moving()
986 static void l2cap_do_send(struct l2cap_chan *chan, struct sk_buff *skb) in l2cap_do_send()
1066 static inline void __unpack_control(struct l2cap_chan *chan, in __unpack_control()
1118 static inline void __pack_control(struct l2cap_chan *chan, in __pack_control()
1131 static inline unsigned int __ertm_hdr_size(struct l2cap_chan *chan) in __ertm_hdr_size()
1139 static struct sk_buff *l2cap_create_sframe_pdu(struct l2cap_chan *chan, in l2cap_create_sframe_pdu()
1172 static void l2cap_send_sframe(struct l2cap_chan *chan, in l2cap_send_sframe()
1213 static void l2cap_send_rr_or_rnr(struct l2cap_chan *chan, bool poll) in l2cap_send_rr_or_rnr()
1232 static inline int __l2cap_no_conn_pending(struct l2cap_chan *chan) in __l2cap_no_conn_pending()
1240 static bool __amp_capable(struct l2cap_chan *chan) in __amp_capable()
1268 static bool l2cap_check_efs(struct l2cap_chan *chan) in l2cap_check_efs()
1274 void l2cap_send_conn_req(struct l2cap_chan *chan) in l2cap_send_conn_req()
1289 static void l2cap_send_create_chan_req(struct l2cap_chan *chan, u8 amp_id) in l2cap_send_create_chan_req()
1302 static void l2cap_move_setup(struct l2cap_chan *chan) in l2cap_move_setup()
1337 static void l2cap_move_done(struct l2cap_chan *chan) in l2cap_move_done()
1359 static void l2cap_chan_ready(struct l2cap_chan *chan) in l2cap_chan_ready()
1385 static void l2cap_le_connect(struct l2cap_chan *chan) in l2cap_le_connect()
1416 struct l2cap_chan *chan; member
1421 static void l2cap_ecred_defer_connect(struct l2cap_chan *chan, void *data) in l2cap_ecred_defer_connect()
1453 static void l2cap_ecred_connect(struct l2cap_chan *chan) in l2cap_ecred_connect()
1486 static void l2cap_le_start(struct l2cap_chan *chan) in l2cap_le_start()
1506 static void l2cap_start_connection(struct l2cap_chan *chan) in l2cap_start_connection()
1557 static void l2cap_do_start(struct l2cap_chan *chan) in l2cap_do_start()
1600 static void l2cap_send_disconn_req(struct l2cap_chan *chan, int err) in l2cap_send_disconn_req()
1630 struct l2cap_chan *chan, *tmp; in l2cap_conn_start() local
1743 struct l2cap_chan *chan; in l2cap_conn_ready() local
1785 struct l2cap_chan *chan; in l2cap_conn_unreliable() local
1892 struct l2cap_chan *chan, *l; in l2cap_conn_del() local
2023 struct l2cap_chan *chan = container_of(work, struct l2cap_chan, in l2cap_monitor_timeout() local
2044 struct l2cap_chan *chan = container_of(work, struct l2cap_chan, in l2cap_retrans_timeout() local
2062 static void l2cap_streaming_send(struct l2cap_chan *chan, in l2cap_streaming_send()
2101 static int l2cap_ertm_send(struct l2cap_chan *chan) in l2cap_ertm_send()
2171 static void l2cap_ertm_resend(struct l2cap_chan *chan) in l2cap_ertm_resend()
2252 static void l2cap_retransmit(struct l2cap_chan *chan, in l2cap_retransmit()
2261 static void l2cap_retransmit_all(struct l2cap_chan *chan, in l2cap_retransmit_all()
2295 static void l2cap_send_ack(struct l2cap_chan *chan) in l2cap_send_ack()
2345 static inline int l2cap_skbuff_fromiovec(struct l2cap_chan *chan, in l2cap_skbuff_fromiovec()
2389 static struct sk_buff *l2cap_create_connless_pdu(struct l2cap_chan *chan, in l2cap_create_connless_pdu()
2421 static struct sk_buff *l2cap_create_basic_pdu(struct l2cap_chan *chan, in l2cap_create_basic_pdu()
2451 static struct sk_buff *l2cap_create_iframe_pdu(struct l2cap_chan *chan, in l2cap_create_iframe_pdu()
2505 static int l2cap_segment_sdu(struct l2cap_chan *chan, in l2cap_segment_sdu()
2572 static struct sk_buff *l2cap_create_le_flowctl_pdu(struct l2cap_chan *chan, in l2cap_create_le_flowctl_pdu()
2615 static int l2cap_segment_le_sdu(struct l2cap_chan *chan, in l2cap_segment_le_sdu()
2651 static void l2cap_le_flowctl_send(struct l2cap_chan *chan) in l2cap_le_flowctl_send()
2667 int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len) in l2cap_chan_send()
2771 static void l2cap_send_srej(struct l2cap_chan *chan, u16 txseq) in l2cap_send_srej()
2794 static void l2cap_send_srej_tail(struct l2cap_chan *chan) in l2cap_send_srej_tail()
2810 static void l2cap_send_srej_list(struct l2cap_chan *chan, u16 txseq) in l2cap_send_srej_list()
2836 static void l2cap_process_reqseq(struct l2cap_chan *chan, u16 reqseq) in l2cap_process_reqseq()
2868 static void l2cap_abort_rx_srej_sent(struct l2cap_chan *chan) in l2cap_abort_rx_srej_sent()
2878 static void l2cap_tx_state_xmit(struct l2cap_chan *chan, in l2cap_tx_state_xmit()
2950 static void l2cap_tx_state_wait_f(struct l2cap_chan *chan, in l2cap_tx_state_wait_f()
3027 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control, in l2cap_tx()
3046 static void l2cap_pass_to_tx(struct l2cap_chan *chan, in l2cap_pass_to_tx()
3053 static void l2cap_pass_to_tx_fbit(struct l2cap_chan *chan, in l2cap_pass_to_tx_fbit()
3064 struct l2cap_chan *chan; in l2cap_raw_recv() local
3222 static void l2cap_add_opt_efs(void **ptr, struct l2cap_chan *chan, size_t size) in l2cap_add_opt_efs()
3255 struct l2cap_chan *chan = container_of(work, struct l2cap_chan, in l2cap_ack_timeout() local
3273 int l2cap_ertm_init(struct l2cap_chan *chan) in l2cap_ertm_init()
3339 static void __l2cap_set_ertm_timeouts(struct l2cap_chan *chan, in __l2cap_set_ertm_timeouts()
3377 static inline void l2cap_txwin_setup(struct l2cap_chan *chan) in l2cap_txwin_setup()
3392 static void l2cap_mtu_auto(struct l2cap_chan *chan) in l2cap_mtu_auto()
3435 static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data, size_t data_size) in l2cap_build_conf_req()
3561 static int l2cap_parse_conf_req(struct l2cap_chan *chan, void *data, size_t data_size) in l2cap_parse_conf_req()
3787 static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, in l2cap_parse_conf_rsp()
3905 static int l2cap_build_conf_rsp(struct l2cap_chan *chan, void *data, in l2cap_build_conf_rsp()
3920 void __l2cap_le_connect_rsp_defer(struct l2cap_chan *chan) in __l2cap_le_connect_rsp_defer()
3937 static void l2cap_ecred_list_defer(struct l2cap_chan *chan, void *data) in l2cap_ecred_list_defer()
3966 static void l2cap_ecred_rsp_defer(struct l2cap_chan *chan, void *data) in l2cap_ecred_rsp_defer()
3983 void __l2cap_ecred_conn_rsp_defer(struct l2cap_chan *chan) in __l2cap_ecred_conn_rsp_defer()
4019 void __l2cap_connect_rsp_defer(struct l2cap_chan *chan) in __l2cap_connect_rsp_defer()
4048 static void l2cap_conf_rfc_get(struct l2cap_chan *chan, void *rsp, int len) in l2cap_conf_rfc_get()
4135 struct l2cap_chan *chan = NULL, *pchan; in l2cap_connect() local
4297 struct l2cap_chan *chan; in l2cap_connect_create_rsp() local
4380 static inline void set_default_fcs(struct l2cap_chan *chan) in set_default_fcs()
4391 static void l2cap_send_efs_conf_rsp(struct l2cap_chan *chan, void *data, in l2cap_send_efs_conf_rsp()
4426 struct l2cap_chan *chan; in l2cap_config_req() local
4537 struct l2cap_chan *chan; in l2cap_config_rsp() local
4653 struct l2cap_chan *chan; in l2cap_disconnect_req() local
4695 struct l2cap_chan *chan; in l2cap_disconnect_rsp() local
4850 struct l2cap_chan *chan; in l2cap_create_channel_req() local
4921 static void l2cap_send_move_chan_req(struct l2cap_chan *chan, u8 dest_amp_id) in l2cap_send_move_chan_req()
4940 static void l2cap_send_move_chan_rsp(struct l2cap_chan *chan, u16 result) in l2cap_send_move_chan_rsp()
4953 static void l2cap_send_move_chan_cfm(struct l2cap_chan *chan, u16 result) in l2cap_send_move_chan_cfm()
4994 static void __release_logical_link(struct l2cap_chan *chan) in __release_logical_link()
5002 static void l2cap_logical_fail(struct l2cap_chan *chan) in l2cap_logical_fail()
5033 static void l2cap_logical_finish_create(struct l2cap_chan *chan, in l2cap_logical_finish_create()
5056 static void l2cap_logical_finish_move(struct l2cap_chan *chan, in l2cap_logical_finish_move()
5091 void l2cap_logical_cfm(struct l2cap_chan *chan, struct hci_chan *hchan, in l2cap_logical_cfm()
5111 void l2cap_move_start(struct l2cap_chan *chan) in l2cap_move_start()
5130 static void l2cap_do_create(struct l2cap_chan *chan, int result, in l2cap_do_create()
5182 static void l2cap_do_move_initiate(struct l2cap_chan *chan, u8 local_amp_id, in l2cap_do_move_initiate()
5192 static void l2cap_do_move_respond(struct l2cap_chan *chan, int result) in l2cap_do_move_respond()
5217 static void l2cap_do_move_cancel(struct l2cap_chan *chan, int result) in l2cap_do_move_cancel()
5237 void __l2cap_physical_cfm(struct l2cap_chan *chan, int result) in __l2cap_physical_cfm()
5274 struct l2cap_chan *chan; in l2cap_move_channel_req() local
5368 struct l2cap_chan *chan; in l2cap_move_continue() local
5460 struct l2cap_chan *chan; in l2cap_move_fail() local
5515 struct l2cap_chan *chan; in l2cap_move_channel_confirm() local
5558 struct l2cap_chan *chan; in l2cap_move_channel_confirm_rsp() local
5646 struct l2cap_chan *chan; in l2cap_le_connect_rsp() local
5812 struct l2cap_chan *chan, *pchan; in l2cap_le_connect_req() local
5950 struct l2cap_chan *chan; in l2cap_le_credits() local
6001 struct l2cap_chan *chan, *pchan; in l2cap_ecred_conn_req() local
6155 struct l2cap_chan *chan, *tmp; in l2cap_ecred_conn_rsp() local
6269 struct l2cap_chan *chan; in l2cap_ecred_reconf_req() local
6337 struct l2cap_chan *chan, *tmp; in l2cap_ecred_reconf_rsp() local
6366 struct l2cap_chan *chan; in l2cap_le_command_rej() local
6541 static int l2cap_check_fcs(struct l2cap_chan *chan, struct sk_buff *skb) in l2cap_check_fcs()
6562 static void l2cap_send_i_or_rr_or_rnr(struct l2cap_chan *chan) in l2cap_send_i_or_rr_or_rnr()
6615 static int l2cap_reassemble_sdu(struct l2cap_chan *chan, struct sk_buff *skb, in l2cap_reassemble_sdu()
6700 static int l2cap_resegment(struct l2cap_chan *chan) in l2cap_resegment()
6706 void l2cap_chan_busy(struct l2cap_chan *chan, int busy) in l2cap_chan_busy()
6717 static int l2cap_rx_queued_iframes(struct l2cap_chan *chan) in l2cap_rx_queued_iframes()
6751 static void l2cap_handle_srej(struct l2cap_chan *chan, in l2cap_handle_srej()
6809 static void l2cap_handle_rej(struct l2cap_chan *chan, in l2cap_handle_rej()
6846 static u8 l2cap_classify_txseq(struct l2cap_chan *chan, u16 txseq) in l2cap_classify_txseq()
6932 static int l2cap_rx_state_recv(struct l2cap_chan *chan, in l2cap_rx_state_recv()
7084 static int l2cap_rx_state_srej_sent(struct l2cap_chan *chan, in l2cap_rx_state_srej_sent()
7227 static int l2cap_finish_move(struct l2cap_chan *chan) in l2cap_finish_move()
7241 static int l2cap_rx_state_wait_p(struct l2cap_chan *chan, in l2cap_rx_state_wait_p()
7279 static int l2cap_rx_state_wait_f(struct l2cap_chan *chan, in l2cap_rx_state_wait_f()
7317 static bool __valid_reqseq(struct l2cap_chan *chan, u16 reqseq) in __valid_reqseq()
7326 static int l2cap_rx(struct l2cap_chan *chan, struct l2cap_ctrl *control, in l2cap_rx()
7363 static int l2cap_stream_rx(struct l2cap_chan *chan, struct l2cap_ctrl *control, in l2cap_stream_rx()
7415 static int l2cap_data_rcv(struct l2cap_chan *chan, struct sk_buff *skb) in l2cap_data_rcv()
7508 static void l2cap_chan_le_send_credits(struct l2cap_chan *chan) in l2cap_chan_le_send_credits()
7533 static int l2cap_ecred_recv(struct l2cap_chan *chan, struct sk_buff *skb) in l2cap_ecred_recv()
7548 static int l2cap_ecred_data_rcv(struct l2cap_chan *chan, struct sk_buff *skb) in l2cap_ecred_data_rcv()
7655 struct l2cap_chan *chan; in l2cap_data_channel() local
7733 struct l2cap_chan *chan; in l2cap_conless_channel() local
7913 struct l2cap_chan *chan; member
7918 static void l2cap_chan_by_pid(struct l2cap_chan *chan, void *data) in l2cap_chan_by_pid()
7939 int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, in l2cap_chan_connect()
8126 static void l2cap_ecred_reconfigure(struct l2cap_chan *chan) in l2cap_ecred_reconfigure()
8144 int l2cap_chan_reconfigure(struct l2cap_chan *chan, __u16 mtu) in l2cap_chan_reconfigure()
8259 struct l2cap_chan *chan, *next; in l2cap_connect_cfm() local
8307 static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt) in l2cap_check_encryption()
8327 struct l2cap_chan *chan; in l2cap_security_cfm() local