Lines Matching refs:buffer
438 * Get a free buffer from pool of free read buffers and add to read buffer
519 * @buf: message buffer
522 * If the client is correct state to send message, this function gets a buffer
841 unsigned char *buffer = NULL;
864 /* If no Rx buffer is allocated, disband the rb */
865 if (rb->buffer.size == 0 || rb->buffer.data == NULL) {
868 "Rx buffer is not allocated.\n");
876 * If message buffer overflown (exceeds max. client msg
877 * size, drop message and return to free buffer.
881 if (rb->buffer.size < ishtp_hdr->length + rb->buf_idx) {
885 rb->buffer.size, ishtp_hdr->length,
893 buffer = rb->buffer.data + rb->buf_idx;
894 dev->ops->ishtp_read(dev, buffer, ishtp_hdr->length);
906 * rb buffer for the next coming msg
938 if (!buffer) {
960 * @hbm: hbm buffer
971 unsigned char *buffer = NULL;
985 * If no Rx buffer is allocated, disband the rb
987 if (rb->buffer.size == 0 || rb->buffer.data == NULL) {
990 "response buffer is not allocated.\n");
998 * If message buffer overflown (exceeds max. client msg
999 * size, drop message and return to free buffer.
1003 if (rb->buffer.size < hbm->msg_length) {
1007 rb->buffer.size, hbm->msg_length, rb->buf_idx);
1014 buffer = rb->buffer.data;
1024 memcpy(buffer, msg, hbm->msg_length);
1035 * rb buffer for the next coming msg
1067 if (!buffer) {