Lines Matching refs:pfc
242 mysqlnd_read_header(MYSQLND_PFC * pfc, MYSQLND_VIO * vio, MYSQLND_PACKET_HEADER * header, in mysqlnd_read_header() argument
248 DBG_INF_FMT("compressed=%u", pfc->data->compressed); in mysqlnd_read_header()
249 if (FAIL == pfc->data->m.receive(pfc, vio, buffer, MYSQLND_HEADER_SIZE, conn_stats, error_info)) { in mysqlnd_read_header()
261 if (pfc->data->compressed || pfc->data->packet_no == header->packet_no) { in mysqlnd_read_header()
267 pfc->data->packet_no++; in mysqlnd_read_header()
272 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
275 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
284 MYSQLND_PFC * pfc, in mysqlnd_read_packet_header_and_body() argument
295 if (FAIL == mysqlnd_read_header(pfc, vio, packet_header, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
307 if (FAIL == pfc->data->m.receive(pfc, vio, buf, packet_header->size, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
332 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_greet_read() local
339 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_greet_read()
503 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_auth_write() local
635 …const size_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, e… in php_mysqlnd_auth_write()
653 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_auth_response_read() local
658 size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length: AUTH_RESP_BUFFER_SIZE; in php_mysqlnd_auth_response_read()
659 zend_uchar *buf = pfc->cmd_buffer.buffer? (zend_uchar *) pfc->cmd_buffer.buffer : local_buf; in php_mysqlnd_auth_response_read()
667 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_auth_response_read()
776 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_change_auth_response_write() local
781 …zend_uchar * const buffer = pfc->cmd_buffer.length >= total_packet_size? pfc->cmd_buffer.buffer : … in php_mysqlnd_change_auth_response_write()
796 …const size_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, e… in php_mysqlnd_change_auth_response_write()
797 if (buffer != pfc->cmd_buffer.buffer) { in php_mysqlnd_change_auth_response_write()
817 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_ok_read() local
822 const size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length : OK_BUFFER_SIZE; in php_mysqlnd_ok_read()
823 zend_uchar * const buf = pfc->cmd_buffer.buffer? (zend_uchar *) pfc->cmd_buffer.buffer : local_buf; in php_mysqlnd_ok_read()
830 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_ok_read()
912 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_eof_read() local
916 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read()
917 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_eof_read()
923 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_eof_read()
980 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_cmd_write() local
991 pfc->data->m.reset(pfc, stats, error_info); in php_mysqlnd_cmd_write()
1003 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cmd_write()
1007 tmp = (tmp_len > pfc->cmd_buffer.length)? mnd_emalloc(tmp_len):pfc->cmd_buffer.buffer; in php_mysqlnd_cmd_write()
1018 sent = pfc->data->m.send(pfc, vio, tmp, tmp_len - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_cmd_write()
1019 if (tmp != pfc->cmd_buffer.buffer) { in php_mysqlnd_cmd_write()
1039 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_rset_header_read() local
1044 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read()
1045 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_header_read()
1052 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_header_read()
1181 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_rset_field_read() local
1185 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_field_read()
1187 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_field_read()
1196 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_field_read()
1368 php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc, in php_mysqlnd_read_row_ex() argument
1399 if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) { in php_mysqlnd_read_row_ex()
1412 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1419 if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) { in php_mysqlnd_read_row_ex()
1433 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1727 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_rowp_read() local
1736 ret = php_mysqlnd_read_row_ex(pfc, vio, stats, error_info, &conn->state, in php_mysqlnd_rowp_read()
1847 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_stats_read() local
1851 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read()
1852 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_stats_read()
1856 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_stats_read()
1893 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_prepare_read() local
1898 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read()
1899 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_prepare_read()
1906 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_prepare_read()
1976 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_chg_user_read() local
1981 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_chg_user_read()
1982 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_chg_user_read()
1988 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_chg_user_read()
2066 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_sha256_pk_request_write() local
2075 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_sha256_pk_request_write()
2090 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_sha256_pk_request_response_read() local
2101 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_sha256_pk_request_response_read()
2143 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_cached_sha2_result_write() local
2154 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
2159 sent = pfc->data->m.send(pfc, vio, buffer, packet->password_len, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
2171 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_cached_sha2_result_read() local
2180 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_cached_sha2_result_read()