Lines Matching defs: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
833 unsigned char *buffer = NULL;
859 /* If no Rx buffer is allocated, disband the rb */
860 if (rb->buffer.size == 0 || rb->buffer.data == NULL) {
863 "Rx buffer is not allocated.\n");
871 * If message buffer overflown (exceeds max. client msg
872 * size, drop message and return to free buffer.
876 if (rb->buffer.size < ishtp_hdr->length + rb->buf_idx) {
880 rb->buffer.size, ishtp_hdr->length,
888 buffer = rb->buffer.data + rb->buf_idx;
889 dev->ops->ishtp_read(dev, buffer, ishtp_hdr->length);
901 * rb buffer for the next coming msg
933 if (!buffer) {
955 * @hbm: hbm buffer
966 unsigned char *buffer = NULL;
980 * If no Rx buffer is allocated, disband the rb
982 if (rb->buffer.size == 0 || rb->buffer.data == NULL) {
985 "response buffer is not allocated.\n");
993 * If message buffer overflown (exceeds max. client msg
994 * size, drop message and return to free buffer.
998 if (rb->buffer.size < hbm->msg_length) {
1002 rb->buffer.size, hbm->msg_length, rb->buf_idx);
1009 buffer = rb->buffer.data;
1010 memcpy(buffer, msg, hbm->msg_length);
1021 * rb buffer for the next coming msg
1053 if (!buffer) {