Lines Matching refs:available
1536 int available = 0; in PORT_WriteDataCO() local
1538 if(p_port->p_data_co_callback(handle, (UINT8*)&available, sizeof(available), in PORT_WriteDataCO()
1541 …CE_ERROR("p_data_co_callback DATA_CO_CALLBACK_TYPE_INCOMING_SIZE failed, available:%d", available); in PORT_WriteDataCO()
1544 if(available == 0) in PORT_WriteDataCO()
1555 && (((int)p_buf->len + available) <= (int)p_port->peer_mtu) in PORT_WriteDataCO()
1556 && (((int)p_buf->len + available) <= (int)length)) in PORT_WriteDataCO()
1560 available, DATA_CO_CALLBACK_TYPE_OUTGOING) == FALSE) in PORT_WriteDataCO()
1563 … error("p_data_co_callback DATA_CO_CALLBACK_TYPE_OUTGOING failed, available:%d", available); in PORT_WriteDataCO()
1568 p_port->tx.queue_size += (UINT16)available; in PORT_WriteDataCO()
1570 *p_len = available; in PORT_WriteDataCO()
1571 p_buf->len += (UINT16)available; in PORT_WriteDataCO()
1584 while (available) in PORT_WriteDataCO()
1593 p_port->tx.queue_size, fixed_queue_length(p_port->tx.queue), available); in PORT_WriteDataCO()
1604 if (available < (int)length) in PORT_WriteDataCO()
1605 length = (UINT16)available; in PORT_WriteDataCO()
1632 available -= (int)length; in PORT_WriteDataCO()
1634 if (!available && (rc != PORT_CMD_PENDING) && (rc != PORT_TX_QUEUE_DISABLED)) in PORT_WriteDataCO()