• Home
  • Raw
  • Download

Lines Matching refs:us

56 static int rio_karma_send_command(char cmd, struct us_data *us)  in rio_karma_send_command()  argument
61 struct karma_data *data = (struct karma_data *) us->extra; in rio_karma_send_command()
64 memset(us->iobuf, 0, RIO_SEND_LEN); in rio_karma_send_command()
65 memcpy(us->iobuf, RIO_PREFIX, RIO_PREFIX_LEN); in rio_karma_send_command()
66 us->iobuf[5] = cmd; in rio_karma_send_command()
67 us->iobuf[6] = seq; in rio_karma_send_command()
71 result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in rio_karma_send_command()
72 us->iobuf, RIO_SEND_LEN, &partial); in rio_karma_send_command()
76 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in rio_karma_send_command()
87 us->iobuf[4] = 0x80; in rio_karma_send_command()
88 us->iobuf[5] = 0; in rio_karma_send_command()
107 int rio_karma_transport(struct scsi_cmnd *srb, struct us_data *us) in rio_karma_transport() argument
110 struct karma_data *data = (struct karma_data *) us->extra; in rio_karma_transport()
113 ret = rio_karma_send_command(RIO_ENTER_STORAGE, us); in rio_karma_transport()
118 return usb_stor_Bulk_transport(srb, us); in rio_karma_transport()
120 ret = rio_karma_send_command(RIO_LEAVE_STORAGE, us); in rio_karma_transport()
125 return rio_karma_send_command(RIO_RESET, us); in rio_karma_transport()
127 return usb_stor_Bulk_transport(srb, us); in rio_karma_transport()
136 int rio_karma_init(struct us_data *us) in rio_karma_init() argument
149 us->extra = data; in rio_karma_init()
150 us->extra_destructor = rio_karma_destructor; in rio_karma_init()
151 ret = rio_karma_send_command(RIO_ENTER_STORAGE, us); in rio_karma_init()