• 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

75 	struct us_data *us = host_to_us(host);
76 return us->scsi_name;
81 struct us_data *us = host_to_us(sdev->host);
116 if (us->subclass == US_SC_UFI)
124 struct us_data *us = host_to_us(sdev->host);
130 if (us->fflags & (US_FL_MAX_SECTORS_64 | US_FL_MAX_SECTORS_MIN)) {
133 if (us->fflags & US_FL_MAX_SECTORS_MIN)
151 if (!us->pusb_dev->bus->controller->dma_mask)
165 switch (le16_to_cpu(us->pusb_dev->descriptor.idVendor)) {
170 if (!(us->fflags & (US_FL_FIX_CAPACITY |
172 us->fflags |= US_FL_CAPACITY_HEURISTICS;
179 if (us->subclass != US_SC_SCSI && us->subclass != US_SC_CYP_ATACB)
193 if (us->fflags & US_FL_NO_WP_DETECT)
203 if (us->fflags & US_FL_FIX_CAPACITY)
209 if (us->fflags & US_FL_CAPACITY_HEURISTICS)
214 us->fflags |= US_FL_SANE_SENSE;
246 if (!(us->fflags & (US_FL_FIX_CAPACITY | US_FL_CAPACITY_OK |
248 us->protocol == US_PR_BULK)
249 us->use_last_sector_hacks = 1;
264 if ((us->protocol == US_PR_CB || us->protocol == US_PR_CBI) &&
266 us->max_lun = 0;
270 if (us->fflags & US_FL_NOT_LOCKABLE)
283 struct us_data *us = host_to_us(srb->device->host);
288 if (us->srb != NULL) {
289 printk(KERN_ERR USB_STORAGE "Error in %s: us->srb = %p\n",
290 __func__, us->srb);
295 if (test_bit(US_FLIDX_DISCONNECTING, &us->dflags)) {
304 us->srb = srb;
305 complete(&us->cmnd_ready);
317 struct us_data *us = host_to_us(srb->device->host);
321 /* us->srb together with the TIMED_OUT, RESETTING, and ABORTING
323 scsi_lock(us_to_host(us));
326 if (us->srb != srb) {
327 scsi_unlock(us_to_host(us));
337 set_bit(US_FLIDX_TIMED_OUT, &us->dflags);
338 if (!test_bit(US_FLIDX_RESETTING, &us->dflags)) {
339 set_bit(US_FLIDX_ABORTING, &us->dflags);
340 usb_stor_stop_transport(us);
342 scsi_unlock(us_to_host(us));
345 wait_for_completion(&us->notify);
353 struct us_data *us = host_to_us(srb->device->host);
359 mutex_lock(&(us->dev_mutex));
360 result = us->transport_reset(us);
361 mutex_unlock(&us->dev_mutex);
369 struct us_data *us = host_to_us(srb->device->host);
373 result = usb_stor_port_reset(us);
380 void usb_stor_report_device_reset(struct us_data *us)
383 struct Scsi_Host *host = us_to_host(us);
386 if (us->fflags & US_FL_SCM_MULT_TARG) {
395 void usb_stor_report_bus_reset(struct us_data *us)
397 struct Scsi_Host *host = us_to_host(us);
408 /* we use this macro to help us write into the buffer */
416 struct us_data *us = host_to_us(host);
420 /* if someone is sending us data, just throw it away */
428 if (us->pusb_dev->manufacturer)
429 string = us->pusb_dev->manufacturer;
430 else if (us->unusual_dev->vendorName)
431 string = us->unusual_dev->vendorName;
435 if (us->pusb_dev->product)
436 string = us->pusb_dev->product;
437 else if (us->unusual_dev->productName)
438 string = us->unusual_dev->productName;
442 if (us->pusb_dev->serial)
443 string = us->pusb_dev->serial;
449 SPRINTF(" Protocol: %s\n", us->protocol_name);
450 SPRINTF(" Transport: %s\n", us->transport_name);
457 if (us->fflags & value) pos += sprintf(pos, " " #name);