• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/storage/

Lines Matching defs:us

63 static inline int jumpshot_bulk_read(struct us_data *us,
71 return usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe,
76 static inline int jumpshot_bulk_write(struct us_data *us,
84 return usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe,
89 static int jumpshot_get_status(struct us_data *us)
93 if (!us)
97 rc = usb_stor_ctrl_transfer(us, us->recv_ctrl_pipe,
98 0, 0xA0, 0, 7, us->iobuf, 1);
103 if (us->iobuf[0] != 0x50) {
105 us->iobuf[0]);
112 static int jumpshot_read_data(struct us_data *us,
117 unsigned char *command = us->iobuf;
159 result = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe,
165 result = jumpshot_bulk_read(us, buffer, len);
172 usb_stor_access_xfer_buf(buffer, len, us->srb,
188 static int jumpshot_write_data(struct us_data *us,
193 unsigned char *command = us->iobuf;
227 usb_stor_access_xfer_buf(buffer, len, us->srb,
240 result = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe,
246 result = jumpshot_bulk_write(us, buffer, len);
255 result = jumpshot_get_status(us);
278 static int jumpshot_id_device(struct us_data *us,
281 unsigned char *command = us->iobuf;
285 if (!us || !info)
295 rc = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe,
306 rc = jumpshot_bulk_read(us, reply, 512);
324 static int jumpshot_handle_mode_sense(struct us_data *us,
342 struct jumpshot_info *info = (struct jumpshot_info *) (us->extra);
343 unsigned char *ptr = us->iobuf;
432 int jumpshot_transport(struct scsi_cmnd * srb, struct us_data *us)
437 unsigned char *ptr = us->iobuf;
442 if (!us->extra) {
443 us->extra = kzalloc(sizeof(struct jumpshot_info), GFP_NOIO);
444 if (!us->extra) {
448 us->extra_destructor = jumpshot_info_destructor;
451 info = (struct jumpshot_info *) (us->extra);
456 fill_inquiry_response(us, ptr, 36);
463 rc = jumpshot_get_status(us);
467 rc = jumpshot_id_device(us, info);
495 return jumpshot_read_data(us, info, block, blocks);
508 return jumpshot_read_data(us, info, block, blocks);
518 return jumpshot_write_data(us, info, block, blocks);
531 return jumpshot_write_data(us, info, block, blocks);
537 return jumpshot_get_status(us);
556 return jumpshot_handle_mode_sense(us, srb, 1);
561 return jumpshot_handle_mode_sense(us, srb, 0);
577 rc = jumpshot_id_device(us, info);