Lines Matching refs:buffer
104 * struct bios_args buffer is dynamically allocated. New WMI command types
213 /* 7 devices fit into the 128 byte buffer */
298 * buffer: Buffer used as input and/or output
299 * insize: Size of input buffer
300 * outsize: Size of output buffer
305 * -EINVAL if the output buffer size exceeds buffersize
310 * buffer = kzalloc(128, GFP_KERNEL);
311 * ret = hp_wmi_perform_query(HPWMI_BATTERY_QUERY, HPWMI_READ, buffer, 1, 128)
314 void *buffer, int insize, int outsize)
341 memcpy(args->data, buffer, flex_array_size(args, data, insize));
359 bios_return = (struct bios_return *)obj->buffer.pointer;
373 actual_outsize = min(outsize, (int)(obj->buffer.length - sizeof(*bios_return)));
374 memcpy(buffer, obj->buffer.pointer + sizeof(*bios_return), actual_outsize);
375 memset(buffer + actual_outsize, 0, outsize - actual_outsize);
452 char buffer[2] = {0, mode};
456 &buffer, sizeof(buffer), 0);
478 unsigned char buffer[8] = { 0 };
492 &buffer, sizeof(buffer), sizeof(buffer));
497 return buffer[3];
612 char buffer[4] = { 0x01, 0x00, rfkill_id, !blocked };
616 buffer, sizeof(buffer), 0);
829 * inside _WED function will result in a 8 or 16 byte buffer.
831 location = (u32 *)obj->buffer.pointer;
832 if (obj->buffer.length == 8) {
835 } else if (obj->buffer.length == 16) {
839 pr_info("Unknown buffer length %d\n", obj->buffer.length);