• Home
  • Raw
  • Download

Lines Matching refs:us

61 static inline int jumpshot_bulk_read(struct us_data *us,  in jumpshot_bulk_read()  argument
69 return usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in jumpshot_bulk_read()
74 static inline int jumpshot_bulk_write(struct us_data *us, in jumpshot_bulk_write() argument
82 return usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in jumpshot_bulk_write()
87 static int jumpshot_get_status(struct us_data *us) in jumpshot_get_status() argument
91 if (!us) in jumpshot_get_status()
95 rc = usb_stor_ctrl_transfer(us, us->recv_ctrl_pipe, in jumpshot_get_status()
96 0, 0xA0, 0, 7, us->iobuf, 1); in jumpshot_get_status()
101 if (us->iobuf[0] != 0x50) { in jumpshot_get_status()
103 us->iobuf[0]); in jumpshot_get_status()
110 static int jumpshot_read_data(struct us_data *us, in jumpshot_read_data() argument
115 unsigned char *command = us->iobuf; in jumpshot_read_data()
158 result = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe, in jumpshot_read_data()
164 result = jumpshot_bulk_read(us, buffer, len); in jumpshot_read_data()
171 usb_stor_access_xfer_buf(buffer, len, us->srb, in jumpshot_read_data()
187 static int jumpshot_write_data(struct us_data *us, in jumpshot_write_data() argument
192 unsigned char *command = us->iobuf; in jumpshot_write_data()
227 usb_stor_access_xfer_buf(buffer, len, us->srb, in jumpshot_write_data()
240 result = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe, in jumpshot_write_data()
246 result = jumpshot_bulk_write(us, buffer, len); in jumpshot_write_data()
255 result = jumpshot_get_status(us); in jumpshot_write_data()
278 static int jumpshot_id_device(struct us_data *us, in jumpshot_id_device() argument
281 unsigned char *command = us->iobuf; in jumpshot_id_device()
285 if (!us || !info) in jumpshot_id_device()
295 rc = usb_stor_ctrl_transfer(us, us->send_ctrl_pipe, in jumpshot_id_device()
306 rc = jumpshot_bulk_read(us, reply, 512); in jumpshot_id_device()
324 static int jumpshot_handle_mode_sense(struct us_data *us, in jumpshot_handle_mode_sense() argument
342 struct jumpshot_info *info = (struct jumpshot_info *) (us->extra); in jumpshot_handle_mode_sense()
343 unsigned char *ptr = us->iobuf; in jumpshot_handle_mode_sense()
432 int jumpshot_transport(struct scsi_cmnd * srb, struct us_data *us) in jumpshot_transport() argument
437 unsigned char *ptr = us->iobuf; in jumpshot_transport()
442 if (!us->extra) { in jumpshot_transport()
443 us->extra = kzalloc(sizeof(struct jumpshot_info), GFP_NOIO); in jumpshot_transport()
444 if (!us->extra) { in jumpshot_transport()
448 us->extra_destructor = jumpshot_info_destructor; in jumpshot_transport()
451 info = (struct jumpshot_info *) (us->extra); in jumpshot_transport()
456 fill_inquiry_response(us, ptr, 36); in jumpshot_transport()
463 rc = jumpshot_get_status(us); in jumpshot_transport()
467 rc = jumpshot_id_device(us, info); in jumpshot_transport()
495 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
508 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
518 return jumpshot_write_data(us, info, block, blocks); in jumpshot_transport()
531 return jumpshot_write_data(us, info, block, blocks); in jumpshot_transport()
537 return jumpshot_get_status(us); in jumpshot_transport()
556 return jumpshot_handle_mode_sense(us, srb, 1); in jumpshot_transport()
561 return jumpshot_handle_mode_sense(us, srb, 0); in jumpshot_transport()
577 rc = jumpshot_id_device(us, info); in jumpshot_transport()