Home | History | Annotate | Download | only in rfcomm

Lines Matching refs:handle

63 **                  p_handle     - OUT pointer to the handle.
205 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
208 int RFCOMM_RemoveConnection (UINT16 handle)
212 RFCOMM_TRACE_API1 ("RFCOMM_RemoveConnection() handle:%d", handle);
214 /* Check if handle is valid to avoid crashing */
215 if ((handle == 0) || (handle > MAX_RFC_PORTS))
217 RFCOMM_TRACE_ERROR1 ("RFCOMM_RemoveConnection() BAD handle:%d", handle);
220 p_port = &rfc_cb.port.port[handle - 1];
224 RFCOMM_TRACE_EVENT1 ("RFCOMM_RemoveConnection() Not opened:%d", handle);
241 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
244 int RFCOMM_RemoveServer (UINT16 handle)
248 RFCOMM_TRACE_API1 ("RFCOMM_RemoveServer() handle:%d", handle);
250 /* Check if handle is valid to avoid crashing */
251 if ((handle == 0) || (handle > MAX_RFC_PORTS))
253 RFCOMM_TRACE_ERROR1 ("RFCOMM_RemoveServer() BAD handle:%d", handle);
256 p_port = &rfc_cb.port.port[handle - 1];
263 RFCOMM_TRACE_EVENT1 ("RFCOMM_RemoveServer() Not opened:%d", handle);
284 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
295 /* Check if handle is valid to avoid crashing */
308 RFCOMM_TRACE_API1 ("PORT_SetEventCallback() handle:%d", port_handle);
318 ** Description This function is called to clear the keep handle flag
319 ** which will cause not to keep the port handle open when closed
320 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
328 /* Check if handle is valid to avoid crashing */
345 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
356 RFCOMM_TRACE_API2 ("PORT_SetDataCallback() handle:%d cb 0x%x", port_handle, p_port_cb);
358 /* Check if handle is valid to avoid crashing */
381 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
392 RFCOMM_TRACE_API2 ("PORT_SetDataCOCallback() handle:%d cb 0x%x", port_handle, p_port_cb);
394 /* Check if handle is valid to avoid crashing */
420 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
428 RFCOMM_TRACE_API2 ("PORT_SetEventMask() handle:%d mask:0x%x", port_handle, mask);
430 /* Check if handle is valid to avoid crashing */
454 ** by handle is up and running
456 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
461 int PORT_CheckConnection (UINT16 handle, BD_ADDR bd_addr, UINT16 *p_lcid)
465 RFCOMM_TRACE_API1 ("PORT_CheckConnection() handle:%d", handle);
467 /* Check if handle is valid to avoid crashing */
468 if ((handle == 0) || (handle > MAX_RFC_PORTS))
473 p_port = &rfc_cb.port.port[handle - 1];
557 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
563 int PORT_SetState (UINT16 handle, tPORT_STATE *p_settings)
568 RFCOMM_TRACE_API1 ("PORT_SetState() handle:%d", handle);
570 /* Check if handle is valid to avoid crashing */
571 if ((handle == 0) || (handle > MAX_RFC_PORTS))
576 p_port = &rfc_cb.port.port[handle - 1];
588 RFCOMM_TRACE_API2 ("PORT_SetState() handle:%d FC_TYPE:0x%x", handle,
608 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
612 int PORT_GetRxQueueCnt (UINT16 handle, UINT16 *p_rx_queue_count)
616 RFCOMM_TRACE_API1 ("PORT_GetRxQueueCnt() handle:%d", handle);
618 /* Check if handle is valid to avoid crashing */
619 if ((handle == 0) || (handle > MAX_RFC_PORTS))
624 p_port = &rfc_cb.port.port[handle - 1];
651 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
656 int PORT_GetState (UINT16 handle, tPORT_STATE *p_settings)
660 RFCOMM_TRACE_API1 ("PORT_GetState() handle:%d", handle);
662 /* Check if handle is valid to avoid crashing */
663 if ((handle == 0) || (handle > MAX_RFC_PORTS))
668 p_port = &rfc_cb.port.port[handle - 1];
692 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
696 int PORT_Control (UINT16 handle, UINT8 signal)
701 RFCOMM_TRACE_API2 ("PORT_Control() handle:%d signal:0x%x", handle, signal);
703 /* Check if handle is valid to avoid crashing */
704 if ((handle == 0) || (handle > MAX_RFC_PORTS))
709 p_port = &rfc_cb.port.port[handle - 1];
779 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
783 int PORT_FlowControl (UINT16 handle, BOOLEAN enable)
789 RFCOMM_TRACE_API2 ("PORT_FlowControl() handle:%d enable: %d", handle, enable);
791 /* Check if handle is valid to avoid crashing */
792 if ((handle == 0) || (handle > MAX_RFC_PORTS))
797 p_port = &rfc_cb.port.port[handle - 1];
857 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
862 int PORT_FlowControl_MaxCredit (UINT16 handle, BOOLEAN enable)
868 RFCOMM_TRACE_API2 ("PORT_FlowControl() handle:%d enable: %d", handle, enable);
870 /* Check if handle is valid to avoid crashing */
871 if ((handle == 0) || (handle > MAX_RFC_PORTS))
876 p_port = &rfc_cb.port.port[handle - 1];
938 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
942 int PORT_GetModemStatus (UINT16 handle, UINT8 *p_signal)
946 if ((handle == 0) || (handle > MAX_RFC_PORTS))
951 p_port = &rfc_cb.port.port[handle - 1];
960 RFCOMM_TRACE_API2 ("PORT_GetModemStatus() handle:%d signal:%x", handle, *p_signal);
976 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
982 int PORT_ClearError (UINT16 handle, UINT16 *p_errors, tPORT_STATUS *p_status)
986 RFCOMM_TRACE_API1 ("PORT_ClearError() handle:%d", handle);
988 if ((handle == 0) || (handle > MAX_RFC_PORTS))
993 p_port = &rfc_cb.port.port[handle - 1];
1006 PORT_GetQueueStatus (handle, p_status);
1017 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1021 int PORT_SendError (UINT16 handle, UINT8 errors)
1025 RFCOMM_TRACE_API2 ("PORT_SendError() handle:%d errors:0x%x", handle, errors);
1027 if ((handle == 0) || (handle
1032 p_port = &rfc_cb.port.port[handle - 1];
1055 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1060 int PORT_GetQueueStatus (UINT16 handle, tPORT_STATUS *p_status)
1064 /* RFCOMM_TRACE_API1 ("PORT_GetQueueStatus() handle:%d", handle); */
1066 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1071 p_port = &rfc_cb.port.port[handle - 1];
1105 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1109 int PORT_Purge (UINT16 handle, UINT8 purge_flags)
1116 RFCOMM_TRACE_API2 ("PORT_Purge() handle:%d flags:0x%x", handle, purge_flags);
1118 /* Check if handle is valid to avoid crashing */
1119 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1124 p_port = &rfc_cb.port.port[handle - 1];
1181 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1187 int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len, UINT16 *p_len)
1193 RFCOMM_TRACE_API2 ("PORT_ReadData() handle:%d max_len:%d", handle, max_len);
1198 /* Check if handle is valid to avoid crashing */
1199 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1204 p_port = &rfc_cb.port.port[handle - 1];
1289 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1293 int PORT_Read (UINT16 handle, BT_HDR **pp_buf)
1298 RFCOMM_TRACE_API1 ("PORT_Read() handle:%d", handle);
1300 /* Check if handle is valid to avoid crashing */
1301 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1305 p_port = &rfc_cb.port.port[handle - 1];
1411 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1415 int PORT_Write (UINT16 handle, BT_HDR *p_buf)
1421 RFCOMM_TRACE_API1 ("PORT_Write() handle:%d", handle);
1423 /* Check if handle is valid to avoid crashing */
1424 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1430 p_port = &rfc_cb.port.port[handle - 1];
1475 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1480 int PORT_WriteDataCO (UINT16 handle, int* p_len)
1489 RFCOMM_TRACE_API1 ("PORT_WriteDataCO() handle:%d", handle);
1493 /* Check if handle is valid to avoid crashing */
1494 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1498 p_port = &rfc_cb.port.port[handle - 1];
1513 if(p_port->p_data_co_callback(handle, (UINT8*)&available, sizeof(available),
1534 if(p_port->p_data_co_callback(handle, (UINT8 *)(p_buf + 1) + p_buf->offset + p_buf->len,
1572 p_buf->layer_specific = handle;
1583 if(p_port->p_data_co_callback(handle, (UINT8 *)(p_buf + 1) + p_buf->offset, length,
1629 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1635 int PORT_WriteData (UINT16 handle, char *p_data, UINT16 max_len, UINT16 *p_len)
1647 /* Check if handle is valid to avoid crashing */
1648 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1652 p_port = &rfc_cb.port.port[handle - 1];
1704 p_buf->layer_specific = handle;
1753 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1758 int PORT_Test (UINT16 handle, UINT8 *p_data, UINT16 len)
1765 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1769 p_port = &rfc_cb.port.port[handle - 1];