Lines Matching defs:buffer
53 * stored in the response buffer. Instead, for each token, we just store a
54 * pointer to the position in the buffer where the token starts, and the size
303 static int read_sed_opal_key(const char *key_name, u_char *buffer, int buflen)
325 ret = key->type->read(key, (char *)buffer, buflen);
472 void *buffer = dev->resp;
473 struct opal_header *hdr = buffer;
485 memset(buffer, 0, buflen);
581 pr_debug("Discovery length overflows buffer (%zu+%u)/%u\n",
595 epos += hlen; /* end of buffer */
596 cpos += sizeof(*hdr); /* current position on buffer */
703 pr_debug("Error adding %zu bytes: end of buffer.\n", len);
761 pr_debug("Error adding u64: end of buffer.\n");
780 pr_debug("Error adding bytestring: end of buffer.\n");
804 static int build_locking_range(u8 *buffer, size_t length, u8 lr)
811 memcpy(buffer, opaluid[OPAL_LOCKINGRANGE_GLOBAL], OPAL_UID_LENGTH);
816 buffer[5] = LOCKING_RANGE_NON_GLOBAL;
817 buffer[7] = lr;
822 static int build_locking_user(u8 *buffer, size_t length, u8 lr)
829 memcpy(buffer, opaluid[OPAL_USER1_UID], OPAL_UID_LENGTH);
831 buffer[7] = lr + 1;
1263 pr_debug("Error finalizing command buffer: %d\n", ret);
2365 * MAX size of data that can be carried in response buffer
2520 * sure the allocated buffer is DMA-safe in that regard.