Lines Matching defs:channel

310 static bool l2cap_ertm_can_store_packet_now(l2cap_channel_t * channel){  in l2cap_ertm_can_store_packet_now()
333 static void l2cap_ertm_next_tx_write_index(l2cap_channel_t * channel){ in l2cap_ertm_next_tx_write_index()
339 static void l2cap_ertm_start_monitor_timer(l2cap_channel_t * channel){ in l2cap_ertm_start_monitor_timer()
348 static void l2cap_ertm_stop_monitor_timer(l2cap_channel_t * channel){ in l2cap_ertm_stop_monitor_timer()
353 static void l2cap_ertm_start_retransmission_timer(l2cap_channel_t * channel){ in l2cap_ertm_start_retransmission_timer()
417 static int l2cap_ertm_send_information_frame(l2cap_channel_t * channel, int index, int final){ in l2cap_ertm_send_information_frame()
433 static void l2cap_ertm_store_fragment(l2cap_channel_t * channel, l2cap_segmentation_and_reassembly_… in l2cap_ertm_store_fragment()
461 static uint8_t l2cap_ertm_send(l2cap_channel_t * channel, const uint8_t * data, uint16_t len){ in l2cap_ertm_send()
510 static uint16_t l2cap_setup_options_ertm_request(l2cap_channel_t * channel, uint8_t * config_option… in l2cap_setup_options_ertm_request()
538 static uint16_t l2cap_setup_options_ertm_response(l2cap_channel_t * channel, uint8_t * config_optio… in l2cap_setup_options_ertm_response()
571 static int l2cap_ertm_send_supervisor_frame(l2cap_channel_t * channel, uint16_t control){ in l2cap_ertm_send_supervisor_frame()
609 static void l2cap_ertm_setup_buffers(l2cap_channel_t * channel, uint8_t * buffer, uint32_t size){ in l2cap_ertm_setup_buffers()
635 static void l2cap_ertm_configure_channel(l2cap_channel_t * channel, l2cap_ertm_config_t * ertm_conf… in l2cap_ertm_configure_channel()
677 …l2cap_channel_t * channel = l2cap_create_channel_entry(packet_handler, L2CAP_CHANNEL_TYPE_CLASSIC,… in l2cap_ertm_create_channel() local
711 static void l2cap_ertm_notify_channel_can_send(l2cap_channel_t * channel){ in l2cap_ertm_notify_channel_can_send()
721 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_ertm_accept_connection() local
760 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid( local_cid); in l2cap_ertm_set_busy() local
774 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid( local_cid); in l2cap_ertm_set_ready() local
904 static void l2cap_ertm_channel_send_information_frame(l2cap_channel_t * channel){ in l2cap_ertm_channel_send_information_frame()
1039 l2cap_fixed_channel_t * channel = l2cap_fixed_channel_for_channel_id(channel_id); in l2cap_request_can_send_fix_channel_now_event() local
1113 static void l2cap_emit_can_send_now(btstack_packet_handler_t packet_handler, uint16_t channel) { in l2cap_emit_can_send_now()
1124 static void l2cap_dispatch_to_channel(l2cap_channel_t *channel, uint8_t type, uint8_t * data, uint1… in l2cap_dispatch_to_channel()
1128 static void l2cap_emit_simple_event_with_cid(l2cap_channel_t * channel, uint8_t event_code){ in l2cap_emit_simple_event_with_cid()
1139 void l2cap_emit_channel_opened(l2cap_channel_t *channel, uint8_t status) { in l2cap_emit_channel_opened()
1169 static void l2cap_emit_incoming_connection(l2cap_channel_t *channel) { in l2cap_emit_incoming_connection()
1184 static void l2cap_handle_channel_open_failed(l2cap_channel_t * channel, uint8_t status){ in l2cap_handle_channel_open_failed()
1198 static void l2cap_emit_channel_closed(l2cap_channel_t *channel) { in l2cap_emit_channel_closed()
1203 static void l2cap_handle_channel_closed(l2cap_channel_t * channel){ in l2cap_handle_channel_closed()
1218 … l2cap_fixed_channel_t * channel = (l2cap_fixed_channel_t*) btstack_linked_list_iterator_next(&it); in l2cap_channel_item_by_cid() local
1264 … l2cap_fixed_channel_t * channel = (l2cap_fixed_channel_t*) btstack_linked_list_iterator_next(&it); in l2cap_get_channel_for_remote_handle_and_cid() local
1277 l2cap_channel_t *channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_request_can_send_now_event() local
1307 l2cap_channel_t *channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_can_send_packet_now() local
1332 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_send() local
1358 l2cap_channel_t *channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_can_send_prepared_packet_now() local
1372 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_get_remote_mtu_for_local_cid() local
1386 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_channel_for_rtx_timer() local
1396 l2cap_channel_t * channel = l2cap_channel_for_rtx_timer(ts); in l2cap_rtx_timeout() local
1417 static void l2cap_stop_rtx(l2cap_channel_t * channel){ in l2cap_stop_rtx()
1453 static void l2cap_start_rtx(l2cap_channel_t * channel){ in l2cap_start_rtx()
1461 static void l2cap_start_ertx(l2cap_channel_t * channel){ in l2cap_start_ertx()
1495 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_send_prepared() local
1535 static uint8_t l2cap_classic_send(l2cap_channel_t * channel, const uint8_t *data, uint16_t len){ in l2cap_classic_send()
1564 static inline void channelStateVarSetFlag(l2cap_channel_t *channel, uint16_t flag){ in channelStateVarSetFlag()
1568 static inline void channelStateVarClearFlag(l2cap_channel_t *channel, uint16_t flag){ in channelStateVarClearFlag()
1612 static int l2cap_ertm_mode(l2cap_channel_t * channel){ in l2cap_ertm_mode()
1619 static uint16_t l2cap_setup_options_request(l2cap_channel_t * channel, uint8_t * config_options){ in l2cap_setup_options_request()
1630 static uint16_t l2cap_setup_options_mtu_response(l2cap_channel_t * channel, uint8_t * config_option… in l2cap_setup_options_mtu_response()
1652 static bool l2cap_run_for_classic_channel(l2cap_channel_t * channel){ in l2cap_run_for_classic_channel()
1805 static void l2cap_run_for_classic_channel_ertm(l2cap_channel_t * channel){ in l2cap_run_for_classic_channel_ertm()
2038 static bool l2cap_cbm_run_channel(l2cap_channel_t * channel) { in l2cap_cbm_run_channel()
2095 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_cbm_run_channels() local
2142 static void l2cap_ecbm_emit_channel_opened(l2cap_channel_t *channel, uint8_t status) { in l2cap_ecbm_emit_channel_opened()
2163 static void l2cap_ecbm_emit_reconfigure_complete(l2cap_channel_t *channel, uint16_t result) { in l2cap_ecbm_emit_reconfigure_complete()
2194 l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_ecbm_run_channels() local
2334 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_run() local
2393 static void l2cap_ready_to_connect(l2cap_channel_t * channel){ in l2cap_ready_to_connect()
2417 static void l2cap_handle_connection_complete(hci_con_handle_t con_handle, l2cap_channel_t * channel in l2cap_handle_connection_complete()
2431 static void l2cap_handle_remote_supported_features_received(l2cap_channel_t * channel){ in l2cap_handle_remote_supported_features_received()
2486 l2cap_channel_t * channel = btstack_memory_l2cap_channel_get(); in l2cap_create_channel_entry() local
2516 static void l2cap_free_channel_entry(l2cap_channel_t * channel){ in l2cap_free_channel_entry()
2548 …l2cap_channel_t * channel = l2cap_create_channel_entry(channel_packet_handler, L2CAP_CHANNEL_TYPE_… in l2cap_create_channel() local
2592 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_connection_failed_for_addr() local
2611 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_connection_failed_for_addr() local
2631 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_connection_success_for_addr() local
2650 static bool l2cap_channel_ready_to_send(l2cap_channel_t * channel){ in l2cap_channel_ready_to_send()
2693 static void l2cap_channel_trigger_send(l2cap_channel_t * channel){ in l2cap_channel_trigger_send()
2741 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_notify_channel_can_send() local
2762 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_disconnect() local
2771 static int l2cap_send_open_failed_on_hci_disconnect(l2cap_channel_t * channel){ in l2cap_send_open_failed_on_hci_disconnect()
2815 static void l2cap_handle_hci_disconnect_event(l2cap_channel_t * channel){ in l2cap_handle_hci_disconnect_event()
2826 static void l2cap_handle_hci_le_disconnect_event(l2cap_channel_t * channel){ in l2cap_handle_hci_le_disconnect_event()
2848 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_check_classic_timeout() local
2870 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_features_complete() local
2878 static void l2cap_handle_security_level_incoming_sufficient(l2cap_channel_t * channel){ in l2cap_handle_security_level_incoming_sufficient()
2901 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_security_level() local
2945 l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_disconnection_complete() local
2954 l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_disconnection_complete() local
3113 static void l2cap_handle_disconnect_request(l2cap_channel_t *channel, uint8_t identifier){ in l2cap_handle_disconnect_request()
3158 …l2cap_channel_t * channel = l2cap_create_channel_entry(service->packet_handler, L2CAP_CHANNEL_TYPE… in l2cap_handle_connection_request() local
3197 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_accept_connection() local
3216 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid( local_cid); in l2cap_decline_connection() local
3227 static void l2cap_signaling_handle_configure_request(l2cap_channel_t *channel, uint8_t *command){ in l2cap_signaling_handle_configure_request()
3353 static void l2cap_signaling_handle_configure_response(l2cap_channel_t *channel, uint16_t result, ui… in l2cap_signaling_handle_configure_response()
3406 static int l2cap_channel_ready_for_open(l2cap_channel_t *channel){ in l2cap_channel_ready_for_open()
3417 static void l2cap_signaling_handler_channel(l2cap_channel_t *channel, uint8_t *command){ in l2cap_signaling_handler_channel()
3588 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_handle_information_request_complete() local
3739 … l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_signaling_handler_dispatch() local
3767 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_signaling_handler_dispatch() local
3841 …l2cap_channel_t * channel = l2cap_create_channel_entry(packet_handler, L2CAP_CHANNEL_TYPE_CHANNEL_… in l2cap_ecbm_setup_channels() local
3853 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_pop(channels); in l2cap_ecbm_setup_channels() local
3886 l2cap_ecbm_emit_incoming_connection(l2cap_channel_t *channel, uint8_t num_channels) { in l2cap_ecbm_emit_incoming_connection()
3927 static void l2cap_ecbm_handle_security_level_incoming(l2cap_channel_t * channel){ in l2cap_ecbm_handle_security_level_incoming()
3941 l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_ecbm_handle_security_level_incoming() local
3974 l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_ecbm_trigger_pending_connection_responses() local
4071 … l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_ecbm_signaling_handler_dispatch() local
4084 l2cap_channel_t *channel = l2cap_create_channel_entry(service->packet_handler, in l2cap_ecbm_signaling_handler_dispatch() local
4163 … l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_ecbm_signaling_handler_dispatch() local
4215 … l2cap_channel_t *channel = l2cap_get_channel_for_remote_handle_and_cid(handle, remote_cid); in l2cap_ecbm_signaling_handler_dispatch() local
4247 … l2cap_channel_t *channel = l2cap_get_channel_for_remote_handle_and_cid(handle, remote_cid); in l2cap_ecbm_signaling_handler_dispatch() local
4271 … l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_ecbm_signaling_handler_dispatch() local
4314 l2cap_channel_t * channel; in l2cap_le_signaling_handler_dispatch() local
4937 static void l2cap_acl_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size… in l2cap_acl_handler()
4959 l2cap_fixed_channel_t * channel = l2cap_fixed_channel_for_channel_id(channel_id); in l2cap_register_fixed_channel() local
4966 void l2cap_finalize_channel_close(l2cap_channel_t * channel){ in l2cap_finalize_channel_close()
5057 static void l2cap_credit_based_send_pdu(l2cap_channel_t *channel) { in l2cap_credit_based_send_pdu()
5101 static uint8_t l2cap_credit_based_send_data(l2cap_channel_t * channel, const uint8_t * data, uint16… in l2cap_credit_based_send_data()
5122 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_credit_based_provide_credits() local
5153 static void l2cap_credit_based_send_credits(l2cap_channel_t *channel) { in l2cap_credit_based_send_credits()
5170 l2cap_channel_t * channel = l2cap_get_channel_for_remote_handle_and_cid(handle, remote_cid); in l2cap_credit_based_handle_credit_indication() local
5251 static void l2cap_credit_based_notify_channel_can_send(l2cap_channel_t *channel){ in l2cap_credit_based_notify_channel_can_send()
5260 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_credit_based_available_credits() local
5271 static void l2cap_cbm_emit_incoming_connection(l2cap_channel_t *channel) { in l2cap_cbm_emit_incoming_connection()
5288 static void l2cap_cbm_emit_channel_opened(l2cap_channel_t *channel, uint8_t status) { in l2cap_cbm_emit_channel_opened()
5310 static void l2cap_cbm_finalize_channel_close(l2cap_channel_t * channel){ in l2cap_cbm_finalize_channel_close()
5365 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_cbm_accept_connection() local
5387 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_cbm_decline_connection() local
5423 l2cap_channel_t *channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); in l2cap_cbm_sm_packet_handler() local
5458 …l2cap_channel_t * channel = l2cap_create_channel_entry(packet_handler, L2CAP_CHANNEL_TYPE_CHANNEL_… in l2cap_cbm_create_channel() local
5577 l2cap_channel_t * channel; in l2cap_ecbm_create_channels() local
5627 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_ecbm_accept_channels() local
5670 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); in l2cap_ecbm_decline_channels() local
5707 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cids[i]); in l2cap_ecbm_reconfigure_channels() local
5723 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cids[i]); in l2cap_ecbm_reconfigure_channels() local
5826 static void fuzz_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t si… in fuzz_packet_handler()
5830 l2cap_channel_t * channel; in l2cap_setup_test_channels_fuzz() local
5852 l2cap_channel_t * channel = (l2cap_channel_t*) btstack_linked_list_iterator_next(&it); in l2cap_free_channels_fuzz() local
5874 l2cap_channel_t * channel = (l2cap_channel_t*) btstack_linked_list_iterator_next(&it); in l2cap_get_dynamic_channel_fuzz() local