Lines Matching refs:buffer
256 u8 command, u16 index, void *buffer, u16 size)
261 0x00, index, buffer, size, 1000);
343 u8 *buffer;
345 buffer = kmalloc(24, GFP_KERNEL);
346 if (!buffer) {
352 result = sur40_command(dev, SUR40_GET_VERSION, 0x00, buffer, 12);
356 result = sur40_command(dev, SUR40_GET_VERSION, 0x01, buffer, 12);
360 result = sur40_command(dev, SUR40_GET_VERSION, 0x02, buffer, 12);
364 result = sur40_command(dev, SUR40_SENSOR_CAPS, 0x00, buffer, 24);
368 result = sur40_command(dev, SUR40_ACCEL_CAPS, 0x00, buffer, 5);
372 result = sur40_command(dev, SUR40_GET_VERSION, 0x03, buffer, 12);
379 * Discard the result buffer - no known data inside except
383 kfree(buffer);
540 /* get a new buffer from the list */
543 dev_dbg(sur40->dev, "buffer queue empty\n");
551 dev_dbg(sur40->dev, "buffer acquired\n");
609 dev_dbg(sur40->dev, "buffer marked done\n");
723 dev_err(&interface->dev, "Unable to allocate input buffer.");
840 * per buffer and the size and allocation context of each plane, it also
864 * Prepare the buffer for queueing to the DMA engine: check and set the
873 dev_err(&sur40->usbdev->dev, "buffer too small (%lu < %lu)\n",
883 * Queue this buffer to the DMA engine.
911 * this function again the next time a buffer has been queued until enough