Lines Matching refs:buffer
196 unsigned char *buffer;
206 // a bounce buffer and move the data a piece at a time between the
207 // bounce buffer and the actual transfer buffer.
211 buffer = kmalloc(len, GFP_NOIO);
212 if (buffer == NULL)
236 memset (buffer, 0, len);
265 DMA_FROM_DEVICE, buffer, len);
289 // Store the data in the transfer buffer
290 usb_stor_access_xfer_buf(buffer, len, us->srb,
301 kfree(buffer);
315 unsigned char *buffer;
333 // a bounce buffer and move the data a piece at a time between the
334 // bounce buffer and the actual transfer buffer.
338 buffer = kmalloc(len, GFP_NOIO);
339 if (buffer == NULL)
358 // Get the data from the transfer buffer
359 usb_stor_access_xfer_buf(buffer, len, us->srb,
444 DMA_TO_DEVICE, buffer, len);
508 kfree(buffer);
643 unsigned char *buffer;
655 buffer = kmalloc_array(numblocks, 2, GFP_NOIO );
657 if (!buffer)
668 kfree (buffer);
672 result = sddr55_bulk_transport(us, DMA_FROM_DEVICE, buffer, numblocks * 2);
675 kfree (buffer);
682 kfree (buffer);
696 kfree(buffer);
716 lba = short_pack(buffer[i * 2], buffer[i * 2 + 1]);
756 kfree(buffer);
975 return USB_STOR_TRANSPORT_FAILED; // FIXME: sense buffer?