Lines Matching refs:buffer
139 /* 7 devices fit into the 128 byte buffer */
199 * buffer: Buffer used as input and/or output
200 * insize: Size of input buffer
201 * outsize: Size of output buffer
206 * -EINVAL if the output buffer size exceeds buffersize
211 * buffer = kzalloc(128, GFP_KERNEL);
212 * ret = hp_wmi_perform_query(HPWMI_BATTERY_QUERY, HPWMI_READ, buffer, 1, 128)
215 void *buffer, int insize, int outsize)
238 memcpy(&args.data[0], buffer, insize);
252 bios_return = (struct bios_return *)obj->buffer.pointer;
266 actual_outsize = min(outsize, (int)(obj->buffer.length - sizeof(*bios_return)));
267 memcpy(buffer, obj->buffer.pointer + sizeof(*bios_return), actual_outsize);
268 memset(buffer + actual_outsize, 0, outsize - actual_outsize);
372 char buffer[4] = { 0x01, 0x00, rfkill_id, !blocked };
376 buffer, sizeof(buffer), 0);
555 * inside _WED function will result in a 8 or 16 byte buffer.
557 location = (u32 *)obj->buffer.pointer;
558 if (obj->buffer.length == 8) {
561 } else if (obj->buffer.length == 16) {
565 pr_info("Unknown buffer length %d\n", obj->buffer.length);