Lines Matching refs:available
874 int available = 0; in PORT_WriteDataCO() local
876 if (!p_port->p_data_co_callback(handle, (uint8_t*)&available, in PORT_WriteDataCO()
877 sizeof(available), in PORT_WriteDataCO()
882 available); in PORT_WriteDataCO()
885 if (available == 0) return PORT_SUCCESS; in PORT_WriteDataCO()
897 (((int)p_buf->len + available) <= (int)p_port->peer_mtu) && in PORT_WriteDataCO()
898 (((int)p_buf->len + available) <= (int)length)) { in PORT_WriteDataCO()
903 available, DATA_CO_CALLBACK_TYPE_OUTGOING)) in PORT_WriteDataCO()
909 available); in PORT_WriteDataCO()
915 p_port->tx.queue_size += (uint16_t)available; in PORT_WriteDataCO()
917 *p_len = available; in PORT_WriteDataCO()
918 p_buf->len += (uint16_t)available; in PORT_WriteDataCO()
931 while (available) { in PORT_WriteDataCO()
940 available); in PORT_WriteDataCO()
950 if (available < (int)length) length = (uint16_t)available; in PORT_WriteDataCO()
978 available -= (int)length; in PORT_WriteDataCO()
980 if (!available && (rc != PORT_CMD_PENDING) && (rc != PORT_TX_QUEUE_DISABLED)) in PORT_WriteDataCO()