Home | History | Annotate | Download | only in rfcomm

Lines Matching full:handle

58   "Bad handle",
95 ** p_handle - OUT pointer to the handle.
239 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
242 int RFCOMM_RemoveConnection (UINT16 handle)
248 RFCOMM_TRACE_API ("RFCOMM_RemoveConnection() handle:%d", handle);
250 /* Check if handle is valid to avoid crashing */
251 if ((handle == 0) || (handle > MAX_RFC_PORTS))
253 RFCOMM_TRACE_ERROR ("RFCOMM_RemoveConnection() BAD handle:%d", handle);
256 p_port = &rfc_cb.port.port[handle - 1];
260 RFCOMM_TRACE_EVENT ("RFCOMM_RemoveConnection() Not opened:%d", handle);
277 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
280 int RFCOMM_RemoveServer (UINT16 handle)
284 RFCOMM_TRACE_API ("RFCOMM_RemoveServer() handle:%d", handle);
286 /* Check if handle is valid to avoid crashing */
287 if ((handle == 0) || (handle > MAX_RFC_PORTS))
289 RFCOMM_TRACE_ERROR ("RFCOMM_RemoveServer() BAD handle:%d", handle);
292 p_port = &rfc_cb.port.port[handle - 1];
299 RFCOMM_TRACE_EVENT ("RFCOMM_RemoveServer() Not opened:%d", handle);
320 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
331 /* Check if handle is valid to avoid crashing */
344 RFCOMM_TRACE_API ("PORT_SetEventCallback() handle:%d", port_handle);
354 ** Description This function is called to clear the keep handle flag
355 ** which will cause not to keep the port handle open when closed
356 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
364 /* Check if handle is valid to avoid crashing */
381 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
392 RFCOMM_TRACE_API ("PORT_SetDataCallback() handle:%d cb 0x%x", port_handle, p_port_cb);
394 /* Check if handle is valid to avoid crashing */
417 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
428 RFCOMM_TRACE_API ("PORT_SetDataCOCallback() handle:%d cb 0x%x", port_handle, p_port_cb);
430 /* Check if handle is valid to avoid crashing */
456 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
464 RFCOMM_TRACE_API ("PORT_SetEventMask() handle:%d mask:0x%x", port_handle, mask);
466 /* Check if handle is valid to avoid crashing */
490 ** by handle
492 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
497 int PORT_CheckConnection (UINT16 handle, BD_ADDR bd_addr, UINT16 *p_lcid)
501 RFCOMM_TRACE_API ("PORT_CheckConnection() handle:%d", handle);
503 /* Check if handle is valid to avoid crashing */
504 if ((handle == 0) || (handle > MAX_RFC_PORTS))
509 p_port = &rfc_cb.port.port[handle - 1];
593 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
599 int PORT_SetState (UINT16 handle, tPORT_STATE *p_settings)
604 RFCOMM_TRACE_API ("PORT_SetState() handle:%d", handle);
606 /* Check if handle is valid to avoid crashing */
607 if ((handle == 0) || (handle > MAX_RFC_PORTS))
612 p_port = &rfc_cb.port.port[handle - 1];
624 RFCOMM_TRACE_API ("PORT_SetState() handle:%d FC_TYPE:0x%x", handle,
644 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
648 int PORT_GetRxQueueCnt (UINT16 handle, UINT16 *p_rx_queue_count)
652 RFCOMM_TRACE_API ("PORT_GetRxQueueCnt() handle:%d", handle);
654 /* Check if handle is valid to avoid crashing */
655 if ((handle == 0) || (handle > MAX_RFC_PORTS))
660 p_port = &rfc_cb.port.port[handle - 1];
687 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
692 int PORT_GetState (UINT16 handle, tPORT_STATE *p_settings)
696 RFCOMM_TRACE_API ("PORT_GetState() handle:%d", handle);
698 /* Check if handle is valid to avoid crashing */
699 if ((handle == 0) || (handle > MAX_RFC_PORTS))
704 p_port = &rfc_cb.port.port[handle - 1];
728 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
732 int PORT_Control (UINT16 handle, UINT8 signal)
737 RFCOMM_TRACE_API ("PORT_Control() handle:%d signal:0x%x", handle, signal);
739 /* Check if handle is valid to avoid crashing */
740 if ((handle == 0) || (handle > MAX_RFC_PORTS))
745 p_port = &rfc_cb.port.port[handle - 1];
815 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
819 int PORT_FlowControl (UINT16 handle, BOOLEAN enable)
825 RFCOMM_TRACE_API ("PORT_FlowControl() handle:%d enable: %d", handle, enable);
827 /* Check if handle is valid to avoid crashing */
828 if ((handle == 0) || (handle > MAX_RFC_PORTS))
833 p_port = &rfc_cb.port.port[handle - 1];
893 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
898 int PORT_FlowControl_MaxCredit (UINT16 handle, BOOLEAN enable)
904 RFCOMM_TRACE_API ("PORT_FlowControl() handle:%d enable: %d", handle, enable);
906 /* Check if handle is valid to avoid crashing */
907 if ((handle == 0) || (handle > MAX_RFC_PORTS))
912 p_port = &rfc_cb.port.port[handle - 1];
974 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
978 int PORT_GetModemStatus (UINT16 handle, UINT8 *p_signal)
982 if ((handle == 0) || (handle > MAX_RFC_PORTS))
987 p_port = &rfc_cb.port.port[handle - 1];
996 RFCOMM_TRACE_API ("PORT_GetModemStatus() handle:%d signal:%x", handle, *p_signal);
1012 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1018 int PORT_ClearError (UINT16 handle, UINT16 *p_errors, tPORT_STATUS *p_status)
1022 RFCOMM_TRACE_API ("PORT_ClearError() handle:%d", handle);
1024 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1029 p_port = &rfc_cb.port.port[handle - 1];
1042 PORT_GetQueueStatus (handle, p_status);
1053 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1057 int PORT_SendError (UINT16 handle, UINT8 errors)
1061 RFCOMM_TRACE_API ("PORT_SendError() handle:%d errors:0x%x", handle, errors);
1063 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1068 p_port = &rfc_cb.port.port[handle - 1];
1091 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1096 int PORT_GetQueueStatus (UINT16 handle, tPORT_STATUS *p_status)
1100 /* RFCOMM_TRACE_API ("PORT_GetQueueStatus() handle:%d", handle); */
1102 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1107 p_port = &rfc_cb.port.port[handle - 1];
1141 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1145 int PORT_Purge (UINT16 handle, UINT8 purge_flags)
1152 RFCOMM_TRACE_API ("PORT_Purge() handle:%d flags:0x%x", handle, purge_flags);
1154 /* Check if handle is valid to avoid crashing */
1155 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1160 p_port = &rfc_cb.port.port[handle - 1];
1217 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1223 int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len, UINT16 *p_len)
1229 RFCOMM_TRACE_API ("PORT_ReadData() handle:%d max_len:%d", handle, max_len);
1234 /* Check if handle is valid to avoid crashing */
1235 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1240 p_port = &rfc_cb.port.port[handle - 1];
1325 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1329 int PORT_Read (UINT16 handle, BT_HDR **pp_buf)
1334 RFCOMM_TRACE_API ("PORT_Read() handle:%d", handle);
1336 /* Check if handle is valid to avoid crashing */
1337 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1341 p_port = &rfc_cb.port.port[handle - 1];
1447 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1451 int PORT_Write (UINT16 handle, BT_HDR *p_buf)
1457 RFCOMM_TRACE_API ("PORT_Write() handle:%d", handle);
1459 /* Check if handle is valid to avoid crashing */
1460 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1466 p_port = &rfc_cb.port.port[handle - 1];
1511 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1516 int PORT_WriteDataCO (UINT16 handle, int* p_len)
1525 RFCOMM_TRACE_API ("PORT_WriteDataCO() handle:%d", handle);
1528 /* Check if handle is valid to avoid crashing */
1529 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1533 p_port = &rfc_cb.port.port[handle - 1];
1548 if(p_port->p_data_co_callback(handle, (UINT8*)&available, sizeof(available),
1569 if(p_port->p_data_co_callback(handle, (UINT8 *)(p_buf + 1) + p_buf->offset + p_buf->len,
1613 p_buf->layer_specific = handle;
1624 if(p_port->p_data_co_callback(handle, (UINT8 *)(p_buf + 1) + p_buf->offset, length,
1670 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1676 int PORT_WriteData (UINT16 handle, char *p_data, UINT16 max_len, UINT16 *p_len)
1688 /* Check if handle is valid to avoid crashing */
1689 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1693 p_port = &rfc_cb.port.port[handle - 1];
1745 p_buf->layer_specific = handle;
1794 ** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
1799 int PORT_Test (UINT16 handle, UINT8 *p_data, UINT16 len)
1806 if ((handle == 0) || (handle > MAX_RFC_PORTS))
1810 p_port = &rfc_cb.port.port[handle - 1];