Lines Matching defs:port
180 UINT8 port;
187 static tLINUX_CB linux_cb; /* case of multipel port support use array : [MAX_SERIAL_PORT] */
807 (*linux_cb.ser_cb)(linux_cb.port, USERIAL_RX_READY_EVT, (tUSERIAL_EVT_DATA *)p_buf);
831 (*linux_cb.ser_cb)(linux_cb.port, USERIAL_ERR_EVT, (tUSERIAL_EVT_DATA *)p_buf);
937 ** Description Open the indicated serial port with the given configuration
944 UDRV_API void USERIAL_Open(tUSERIAL_PORT port, tUSERIAL_OPEN_CFG *p_cfg, tUSERIAL_CBACK *p_cback)
997 ALOGI("USERIAL_Open() device: %s port=%d, uart_port=%d WAKE_DELAY(%d) WRITE_DELAY(%d) POWER_ON_DELAY(%d) PRE_POWER_OFF_DELAY(%d) POST_POWER_OFF_DELAY(%d)",
998 (char*)userial_dev, port, uart_port, nfc_wake_delay, nfc_write_delay, gPowerOnDelay, gPrePowerOffDelay,
1010 ALOGD( "Port > MAX_SERIAL_PORT\n");
1102 USERIAL_PowerupDevice(port);
1107 linux_cb.port = port;
1131 ** Description Read data from a serial port using byte buffers.
1135 ** Returns Number of bytes actually read from the serial port and
1142 UDRV_API UINT16 USERIAL_Read(tUSERIAL_PORT port, UINT8 *p_data, UINT16 len)
1191 ** Description Read data from a serial port using GKI buffers.
1204 UDRV_API void USERIAL_ReadBuf(tUSERIAL_PORT port, BT_HDR **p_buf)
1213 ** Description Write data to a serial port using a GKI buffer.
1226 UDRV_API BOOLEAN USERIAL_WriteBuf(tUSERIAL_PORT port, BT_HDR *p_buf)
1235 ** Description Write data to a serial port using a byte buffer.
1243 UDRV_API UINT16 USERIAL_Write(tUSERIAL_PORT port, UINT8 *p_data, UINT16 len)
1316 fprintf(stderr, "userial_change_rate: Closing UART Port\n");
1317 ALOGI("userial_change_rate: Closing UART Port\n");
1318 USERIAL_Close(linux_cb.port);
1325 ALOGD( "userial_change_rate: Attempting to reopen the UART Port at 0x%08x\n", (unsigned int)USERIAL_GetLineSpeed(baud));
1326 ALOGI("userial_change_rate: Attempting to reopen the UART Port at %i\n", (unsigned int)USERIAL_GetLineSpeed(baud));
1328 USERIAL_Open(linux_cb.port, &linux_cb.open_cfg, linux_cb.ser_cb);
1363 USERIAL_Close(linux_cb.port);
1370 ** Description Perform an operation on a serial port.
1379 UDRV_API void USERIAL_Ioctl(tUSERIAL_PORT port, tUSERIAL_OP op, tUSERIAL_IOCTL_DATA *p_data)
1384 /* just ignore port parameter as we are using USB in this case */
1396 ALOGI( "USERIAL_Ioctl: Received USERIAL_OP_BAUD_WR on port: %d, ioctl baud%i\n", port, p_data->baud);
1397 linux_cb.port = port;
1429 ** Description Close a serial port
1436 UDRV_API void USERIAL_Close(tUSERIAL_PORT port)
1452 USERIAL_Write(port, ce3_so_cmd, sizeof (ce3_so_cmd));
1458 USERIAL_Write(port, set_nfc_off_cmd, sizeof (set_nfc_off_cmd));
1462 USERIAL_Read(port, res, sizeof ( res ));
1679 UDRV_API void USERIAL_PowerupDevice(tUSERIAL_PORT port)
1713 USERIAL_Write(port, &spi_negotiation[1], len);
1714 USERIAL_Read(port, spi_nego_res, sizeof ( spi_nego_res ));