HomeSort by relevance Sort by last modified time
    Searched full:l2cap (Results 1 - 25 of 121) sorted by null

1 2 3 4 5

  /external/qemu/hw/
bt-l2cap.c 2 * QEMU Bluetooth L2CAP logic.
53 struct l2cap_instance_s *l2cap; member in struct:l2cap_instance_s::l2cap_chan_s
94 struct l2cap_instance_s l2cap; member in struct:slave_l2cap_instance_s
163 /* L2CAP layer logic (protocol) */
185 static void l2cap_command_reject(struct l2cap_instance_s *l2cap, int id,
196 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
208 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
211 static void l2cap_command_reject_cid(struct l2cap_instance_s *l2cap, int id
941 struct l2cap_instance_s *l2cap = opaque; local
1235 struct slave_l2cap_instance_s *l2cap; local
1253 struct l2cap_instance_s *l2cap; local
1272 struct l2cap_instance_s *l2cap = local
1282 struct slave_l2cap_instance_s *l2cap = local
1291 struct slave_l2cap_instance_s *l2cap = local
1305 struct l2cap_instance_s *l2cap = local
    [all...]
  /external/bluetooth/bluedroid/stack/avct/
avct_int.h 49 /* "states" used for L2CAP channel */
64 UINT16 ch_result; /* L2CAP connection result value */
65 UINT16 ch_lcid; /* L2CAP channel LCID */
68 UINT8 ch_state; /* L2CAP channel state */
69 UINT8 ch_flags; /* L2CAP configuration flags */
75 UINT16 ch_result; /* L2CAP connection result value */
76 UINT16 ch_lcid; /* L2CAP channel LCID */
79 UINT8 ch_state; /* L2CAP channel state */
80 UINT8 ch_flags; /* L2CAP configuration flags */
82 UINT16 conflict_lcid; /* L2CAP channel LCID *
    [all...]
avct_l2c.c 21 * This AVCTP module interfaces to L2CAP
47 /* L2CAP callback function structure */
97 ** Description This is the L2CAP connect indication callback function.
115 /* no ccb available, reject L2CAP connection */
140 /* Send L2CAP connect rsp */
152 /* Send L2CAP config req */
170 ** Description This is the L2CAP connect confirm callback function.
195 /* Send L2CAP config req */
218 /* just in case the peer also accepts our connection - Send L2CAP disconnect req */
231 ** Description This is the L2CAP config confirm callback function
    [all...]
  /external/bluetooth/bluedroid/stack/mcap/
mca_l2c.c 21 * This is the implementation file for the MCAP at L2CAP Interface.
34 /* L2CAP callback function structure */
90 /* Send response to the L2CAP layer. */
96 /* Send L2CAP config req */
129 /* Send L2CAP config req */
143 ** Description This is the L2CAP connect indication callback function.
197 /* Send L2CAP connect rsp */
200 /* if result ok, proceed with connection and send L2CAP
207 /* Send L2CAP config req */
218 ** Description This is the L2CAP connect indication callback function
    [all...]
mca_int.h 33 /* INT initiates the L2CAP channel */
57 UINT16 peer_mtu; /* Transport channel L2CAP MTU of the peer */
58 UINT16 lcid; /* L2CAP LCID */
63 UINT16 reason; /* disconnect reason from L2CAP */
65 UINT16 lcid; /* L2CAP LCID */
167 UINT16 peer_mtu; /* L2CAP mtu of the peer device */
169 UINT16 lcid; /* L2CAP LCID */
173 UINT8 cfg_flags; /* L2CAP configuration flags */
174 UINT8 id; /* L2CAP id sent by peer device (need this to handle security pending) */
214 UINT16 lcid; /* L2CAP lcid for this control channel *
    [all...]
  /external/bluetooth/bluedroid/stack/avdt/
avdt_l2c.c 21 * This AVDTP adaption layer module interfaces to L2CAP
47 /* L2CAP callback function structure */
93 /* Send response to the L2CAP layer. */
103 /* Send L2CAP config req */
146 /* Send L2CAP config req */
164 ** Description This is the L2CAP connect indication callback function.
184 /* no ccb available, reject L2CAP connection */
241 /* Send L2CAP connect rsp */
254 /* Send L2CAP config req */
268 ** Description This is the L2CAP connect confirm callback function
    [all...]
avdt_ad.c 310 ** Description This function is called by the L2CAP interface when the
311 ** L2CAP channel is closed. It looks up the CCB or SCB for
313 ** parameter is the same value passed by the L2CAP
358 ** Description This function is called by the L2CAP interface when
359 ** the L2CAP channel is opened. It looks up the CCB or SCB
413 ** Description This function is called by the L2CAP interface layer when
414 ** L2CAP calls the congestion callback. It looks up the CCB
417 ** the L2CAP callback function.
451 ** Description This function is called by the L2CAP interface layer when
452 ** incoming data is received from L2CAP. It looks up the CC
    [all...]
  /external/bluetooth/bluedroid/stack/
Android.mk 12 $(LOCAL_PATH)/l2cap \
132 ./l2cap/l2c_fcr.c \
133 ./l2cap/l2c_ucd.c \
134 ./l2cap/l2c_main.c \
135 ./l2cap/l2c_api.c \
136 ./l2cap/l2c_utils.c \
137 ./l2cap/l2c_csm.c \
138 ./l2cap/l2c_link.c \
139 ./l2cap/l2c_ble.c
  /external/bluetooth/bluedroid/stack/rfcomm/
rfc_l2cap_if.c 21 * This file contains L2CAP interface functions
37 ** Define Callback functions to be called by L2CAP
54 ** to register interface functions with L2CAP.
82 ** Description This is a callback function called by L2CAP when
136 ** Description This is a callback function called by L2CAP when
137 ** L2CA_ConnectCnf received. Save L2CAP handle and dispatch
190 /* Peer gave up his connection request, make sure cleaning up L2CAP channel */
197 /* Save LCID to be used in all consecutive calls to L2CAP */
208 ** Description This is a callback function called by L2CAP when
231 ** Description This is a callback function called by L2CAP whe
    [all...]
  /external/bluetooth/bluedroid/stack/l2cap/
l2c_main.c 21 * This file contains the main L2CAP entry points
50 /* Temporary - until l2cap implements group management */
67 /* Ensure we have enough space in the buffer for the L2CAP and HCI headers */
70 L2CAP_TRACE_ERROR1 ("L2CAP - cannot send buffer, offset: %d", p_buf->offset);
95 /* Now the L2CAP header */
143 /* L2CAP connection request before we get the HCI connection complete. */
153 L2CAP_TRACE_WARNING5 ("L2CAP - holding ACL for unknown handle:%d ls:%d cid:%d opcode:%d cur count:%d",
166 L2CAP_TRACE_ERROR5 ("L2CAP - rcvd ACL for unknown handle:%d ls:%d cid:%d opcode:%d cur count:%d",
175 L2CAP_TRACE_WARNING1 ("L2CAP - expected pkt start or complete, got: %d", pkt_type);
199 L2CAP_TRACE_WARNING1 ("L2CAP - unknown CID: 0x%04x", rcv_cid)
    [all...]
l2c_csm.c 21 * This file contains the L2CAP channel state machine
131 L2CAP_TRACE_ERROR2 ("L2CAP - LCID: 0x%04x st: CLOSED evt: %s p_rcb == NULL", p_ccb->local_cid, l2c_csm_get_event_name (event));
133 L2CAP_TRACE_ERROR2 ("L2CAP - LCID: 0x%04x st: CLOSED evt: 0x%04x p_rcb == NULL", p_ccb->local_cid, event);
154 L2CAP_TRACE_EVENT2 ("L2CAP - LCID: 0x%04x st: CLOSED evt: %s", p_ccb->local_cid, l2c_csm_get_event_name (event));
156 L2CAP_TRACE_EVENT1 ("L2CAP - st: CLOSED evt: %d", event);
162 L2CAP_TRACE_API1 ("L2CAP - Calling Disconnect_Ind_Cb(), CID: 0x%04x No Conf Needed", p_ccb->local_cid);
178 L2CAP_TRACE_API2 ("L2CAP - Calling ConnectCfm_Cb(), CID: 0x%04x Status: %d", p_ccb->local_cid, p_ci->status);
233 L2CAP_TRACE_API2 ("L2CAP - Calling ConnectCfm_Cb(), CID: 0x%04x Status: %d", p_ccb->local_cid, L2CAP_CONN_TIMEOUT);
239 /* stop link timer to avoid race condition between A2MP, Security, and L2CAP */
273 L2CAP_TRACE_API2 ("L2CAP - Calling ConnectCfm_Cb(), CID: 0x%04x Status: %d", p_ccb->local_cid, L2CAP_CONN_TIMEOUT)
    [all...]
l2c_api.c 21 * This file contains the L2CAP API code
42 ** Description Other layers call this function to register for L2CAP
57 L2CAP_TRACE_API1 ("L2CAP - L2CA_Register() called for PSM: 0x%04x", psm);
69 L2CAP_TRACE_ERROR1 ("L2CAP - no cb registering PSM: 0x%04x", psm);
76 L2CAP_TRACE_ERROR1 ("L2CAP - invalid PSM value, PSM: 0x%04x", psm);
98 L2CAP_TRACE_WARNING2 ("L2CAP - no RCB available, PSM: 0x%04x vPSM: 0x%04x", psm, vpsm);
115 ** Description Other layers call this function to de-register for L2CAP
128 L2CAP_TRACE_API1 ("L2CAP - L2CA_Deregister() called for PSM: 0x%04x", psm);
154 L2CAP_TRACE_WARNING1 ("L2CAP - PSM: 0x%04x not found for deregistration", psm);
162 ** Description Other layers call this function to find an unused PSM for L2CAP
    [all...]
l2c_ucd.c 21 * This file contains the L2CAP UCD code
56 L2CAP_TRACE_DEBUG0 ("L2CAP - l2c_ucd_discover_cback");
96 L2CAP_TRACE_DEBUG0 ("L2CAP - l2c_ucd_data_ind_cback");
106 L2CAP_TRACE_ERROR1 ("L2CAP - no RCB for l2c_ucd_data_ind_cback, PSM: 0x%04x", psm);
129 L2CAP_TRACE_DEBUG0 ("L2CAP - l2c_ucd_congestion_status_cback");
138 L2CAP_TRACE_DEBUG4 ("L2CAP - Calling UCDCongestionStatus_Cb (%d), PSM=0x%04x, BDA: %08x%04x,",
211 L2CAP_TRACE_ERROR1 ("L2CAP - no callback registering PSM(0x%04x) on UCD", psm);
217 L2CAP_TRACE_ERROR1 ("L2CAP - no RCB for L2CA_UcdRegister, PSM: 0x%04x", psm);
229 L2CAP_TRACE_ERROR0 ("L2CAP - no RCB available for L2CA_UcdRegister");
242 /* This will make L2CAP check UCD congestion callback *
    [all...]
  /external/bluetooth/bluedroid/stack/include/
l2cdefs.h 22 /* L2CAP command codes
79 #define L2CAP_COMPLETE_AMP_PKT 3 /* complete L2CAP packet on AMP HCI */
87 /* Define the L2CAP connection result codes
98 #define L2CAP_CONN_CANCEL 256 /* L2CAP connection cancelled */
101 /* Define L2CAP Move Channel Response result codes
112 /* Define L2CAP Move Channel Confirmation result codes
118 /* Define the L2CAP command reject reason codes
125 /* L2CAP Predefined CIDs (0x0004-0x003E Reserved)
147 /* Define the L2CAP configuration result codes
157 /* Define the L2CAP configuration option type
    [all...]
l2c_api.h 21 * this file contains the L2CAP API definitions
35 /* Define the minimum offset that L2CAP needs in a buffer. This is made up of
36 ** HCI type(1), len(2), handle(2), L2CAP len(2) and CID(2) => 9
46 #define L2CAP_PING_RESULT_NO_RESP 2 /* Remote L2CAP did not reply */
99 /* length of the L2CAP header block */
100 /* HCI header(4) + L2CAP header(4) + padding(4) or control word(2) + FCS(2) */
167 /* L2CAP channel configured field bitmap */
245 ** registration information, but is passed to L2CAP as part of the API to
275 ** set, L2CAP will call it when packets are sent or flushed. If the
284 ** L2CAP. This structure includes callback functions. All function
    [all...]
  /external/bluetooth/bluedroid/stack/smp/
smp_l2c.c 21 * This file contains functions for the SMP L2Cap interface
45 ** to register interface functions with L2CAP.
63 /* Now, register with L2CAP */
71 ** Description This callback function is called by L2CAP to indicate that
117 ** Description This function is called when data is received from L2CAP on
  /external/bluetooth/bluedroid/stack/hid/
hidh_conn.c 89 /* Initialize the L2CAP configuration. We only care about MTU and flush */
97 /* Now, register with L2CAP */
173 /* Send response to the L2CAP layer. */
194 ** from L2CAP. This is the case where we are acting as a
207 HIDH_TRACE_EVENT2 ("HID - Rcvd L2CAP conn ind, PSM: 0x%04x CID 0x%x", psm, l2cap_cid);
229 HIDH_TRACE_WARNING0 ("HID - Rcvd INTR L2CAP conn ind, but no CTL channel");
234 HIDH_TRACE_WARNING1 ("HID - Rcvd INTR L2CAP conn ind, wrong state: %d", p_hcon->conn_state);
246 HIDH_TRACE_WARNING1 ("HID - Rcvd CTL L2CAP conn ind, wrong state: %d", p_hcon->conn_state);
281 /* Send response to the L2CAP layer. */
287 HIDH_TRACE_EVENT2 ("HID - Rcvd L2CAP conn ind, sent config req, PSM: 0x%04x CID 0x%x", psm, l2cap_cid)
    [all...]
  /external/bluetooth/bluedroid/stack/gatt/
gatt_main.c 77 ** It clears out the control blocks, and registers with L2CAP.
97 /* First, register fixed L2CAP channel for ATT over BLE */
111 /* Now, register with L2CAP for ATT PSM over BR/EDR */
373 ** Description This callback function is called by L2CAP to indicate that
462 ** Description This function is called when data is received from L2CAP.
489 GATT_TRACE_WARNING1 ("ATT - Ignored L2CAP data while in state: %d",
500 ** from L2CAP. This is the case where we are acting as a
520 /* no tcb available, reject L2CAP connection */
532 /* Send L2CAP connect rsp */
541 /* Send L2CAP config req *
    [all...]
  /external/bluetooth/bluedroid/stack/bnep/
bnep_main.c 74 ** Description This function registers BNEP PSM with L2CAP
81 /* Initialize the L2CAP configuration. We only care about MTU and flush */
98 /* Now, register with L2CAP */
114 ** from L2CAP. This is the case where we are acting as a
136 /* Save the L2CAP Channel ID. */
139 /* Send response to the L2CAP layer. */
148 BNEP_TRACE_EVENT1("BNEP - Rcvd L2CAP conn ind, CID: 0x%x", p_bcb->l2cap_cid);
158 ** from L2CAP. This is the case when we are acting as a
208 ** Description This function processes the L2CAP configuration indication
222 BNEP_TRACE_WARNING1 ("BNEP - Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid)
    [all...]
  /external/bluetooth/bluedroid/stack/gap/
gap_conn.c 93 ** Description This function is called to open an L2CAP connection.
177 /* Register the PSM with L2CAP */
209 p_ccb->con_flags |= GAP_CCB_FLAGS_SEC_DONE; /* assume btm/l2cap would handle it */
225 /* Check if L2CAP started the connection process */
465 /* Send the buffer through L2CAP */
550 /* Send the buffer through L2CAP */
608 ** no L2CAP channels on it. A timeout of zero means that the
696 ** Description Returns the L2CAP channel id
700 ** Returns UINT16 - The L2CAP channel id
720 ** from L2CAP. This is the case where we are acting as
    [all...]
  /external/bluetooth/bluedroid/stack/sdp/
sdp_main.c 85 /* Initialize the L2CAP configuration. We only care about MTU and flush */
132 /* Now, register with L2CAP */
165 ** from L2CAP. This is the case where we are acting as a
187 /* Send response to the L2CAP layer. */
209 SDP_TRACE_EVENT1 ("SDP - Rcvd L2CAP conn ind, sent config req, CID 0x%x", p_ccb->connection_id);
222 ** from L2CAP. This is the case when we are acting as a
300 ** Description This function processes the L2CAP configuration indication
313 SDP_TRACE_WARNING1 ("SDP - Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid);
394 ** Description This function processes the L2CAP configuration confirmation
409 SDP_TRACE_WARNING1 ("SDP - Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid)
    [all...]
  /system/bluetooth/tools/
sock_shutdown_test.c 39 #include <bluetooth/l2cap.h>
45 L2CAP,
89 case L2CAP:
139 case L2CAP:
186 case L2CAP:
268 {"l2cap", L2CAP},
  /external/bluetooth/bluedroid/bta/include/
bta_jv_api.h 156 #define BTA_JV_L2CAP_OPEN_EVT 16 /* open status of L2CAP connection */
157 #define BTA_JV_L2CAP_CLOSE_EVT 17 /* L2CAP connection closed */
158 #define BTA_JV_L2CAP_START_EVT 18 /* L2CAP server started */
159 #define BTA_JV_L2CAP_CL_INIT_EVT 19 /* L2CAP client initiated a connection */
160 #define BTA_JV_L2CAP_DATA_IND_EVT 20 /* L2CAP connection received data */
161 #define BTA_JV_L2CAP_CONG_EVT 21 /* L2CAP connection congestion status changed */
454 /* JAVA L2CAP interface callback */
736 ** applications running over L2CAP. It is primarily called by
    [all...]
  /external/bluetooth/bluedroid/btif/src/
btif_sock.c 108 BTIF_TRACE_ERROR1("bt l2cap socket type not supported, type:%d", type);
139 BTIF_TRACE_ERROR1("bt l2cap socket type not supported, type:%d", type);
161 BTIF_TRACE_ERROR2("bt l2cap socket type not supported, fd:%d, flags:%d", fd, flags);
  /external/bluetooth/bluedroid/bta/av/
bta_av_cfg.c 94 512, /* AVRCP MTU at L2CAP for control channel */
96 48, /* AVRCP MTU at L2CAP for control channel */
98 BTA_AV_MAX_RC_BR_MTU, /* AVRCP MTU at L2CAP for browsing channel */
101 672, /* AVDTP signaling channel MTU at L2CAP */
102 BTA_AV_MAX_A2DP_MTU, /* AVDTP audio transport channel MTU at L2CAP */
105 BTA_AV_MAX_VDP_MTU, /* AVDTP video transport channel MTU at L2CAP */

Completed in 487 milliseconds

1 2 3 4 5