Lines Matching defs:buffer
48 * stored in the response buffer. Instead, for each token, we just store a
49 * pointer to the position in the buffer where the token starts, and the size
337 void *buffer = dev->resp;
338 struct opal_header *hdr = buffer;
350 memset(buffer, 0, buflen);
441 pr_debug("Discovery length overflows buffer (%zu+%u)/%u\n",
446 epos += hlen; /* end of buffer */
447 cpos += sizeof(*hdr); /* current position on buffer */
543 pr_debug("Error adding %zu bytes: end of buffer.\n", len);
601 pr_debug("Error adding u64: end of buffer.\n");
620 pr_debug("Error adding bytestring: end of buffer.\n");
644 static int build_locking_range(u8 *buffer, size_t length, u8 lr)
651 memcpy(buffer, opaluid[OPAL_LOCKINGRANGE_GLOBAL], OPAL_UID_LENGTH);
656 buffer[5] = LOCKING_RANGE_NON_GLOBAL;
657 buffer[7] = lr;
662 static int build_locking_user(u8 *buffer, size_t length, u8 lr)
669 memcpy(buffer, opaluid[OPAL_USER1_UID], OPAL_UID_LENGTH);
671 buffer[7] = lr + 1;
1099 pr_debug("Error finalizing command buffer: %d\n", ret);
1999 * MAX size of data that can be carried in response buffer
2153 * sure the allocated buffer is DMA-safe in that regard.