• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/storage/

Lines Matching refs:us

114 static inline int jumpshot_bulk_read(struct us_data *us,
122 return usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe,
127 static inline int jumpshot_bulk_write(struct us_data *us,
135 return usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe,
140 static int jumpshot_get_status(struct us_data *us)
144 if (!us)
148 rc = usb_stor_ctrl_transfer(us, us->recv_ctrl_pipe,
149 0, 0xA0, 0, 7, us->iobuf, 1);
154 if (us->iobuf[0] != 0x50) {
156 us->iobuf[0]);
163 static int jumpshot_read_data(struct us_data *us,
168 unsigned char *command = us->iobuf;
211 result = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe,
217 result = jumpshot_bulk_read(us, buffer, len);
224 usb_stor_access_xfer_buf(buffer, len, us->srb,
240 static int jumpshot_write_data(struct us_data *us,
245 unsigned char *command = us->iobuf;
280 usb_stor_access_xfer_buf(buffer, len, us->srb,
293 result = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe,
299 result = jumpshot_bulk_write(us, buffer, len);
308 result = jumpshot_get_status(us);
331 static int jumpshot_id_device(struct us_data *us,
334 unsigned char *command = us->iobuf;
348 rc = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe,
359 rc = jumpshot_bulk_read(us, reply, 512);
377 static int jumpshot_handle_mode_sense(struct us_data *us,
395 struct jumpshot_info *info = (struct jumpshot_info *) (us->extra);
396 unsigned char *ptr = us->iobuf;
485 static int jumpshot_transport(struct scsi_cmnd *srb, struct us_data *us)
490 unsigned char *ptr = us->iobuf;
495 if (!us->extra) {
496 us->extra = kzalloc(sizeof(struct jumpshot_info), GFP_NOIO);
497 if (!us->extra) {
501 us->extra_destructor = jumpshot_info_destructor;
504 info = (struct jumpshot_info *) (us->extra);
509 fill_inquiry_response(us, ptr, 36);
516 rc = jumpshot_get_status(us);
520 rc = jumpshot_id_device(us, info);
548 return jumpshot_read_data(us, info, block, blocks);
561 return jumpshot_read_data(us, info, block, blocks);
571 return jumpshot_write_data(us, info, block, blocks);
584 return jumpshot_write_data(us, info, block, blocks);
590 return jumpshot_get_status(us);
609 return jumpshot_handle_mode_sense(us, srb, 1);
614 return jumpshot_handle_mode_sense(us, srb, 0);
630 rc = jumpshot_id_device(us, info);
652 struct us_data *us;
655 result = usb_stor_probe1(&us, intf, id,
660 us->transport_name = "Lexar Jumpshot Control/Bulk";
661 us->transport = jumpshot_transport;
662 us->transport_reset = usb_stor_Bulk_reset;
663 us->max_lun = 1;
665 result = usb_stor_probe2(us);