Home
last modified time | relevance | path

Searched refs:dev_flags (Results 1 – 25 of 97) sorted by relevance

1234

/drivers/ide/
Dide-disk.c87 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48); in __ide_do_rw_disk()
88 u8 dma = !!(drive->dev_flags & IDE_DFLAG_USING_DMA); in __ide_do_rw_disk()
104 if (drive->dev_flags & IDE_DFLAG_LBA) { in __ide_do_rw_disk()
187 BUG_ON(drive->dev_flags & IDE_DFLAG_BLOCKED); in ide_do_rw_disk()
346 if ((drive->dev_flags & IDE_DFLAG_NOHPA) == 0) in idedisk_check_hpa()
377 drive->dev_flags |= IDE_DFLAG_LBA; in ide_disk_get_capacity()
388 if ((drive->dev_flags & IDE_DFLAG_LBA48) == 0 && in ide_disk_get_capacity()
398 (drive->dev_flags & IDE_DFLAG_LBA48)) { in ide_disk_get_capacity()
404 drive->dev_flags &= ~IDE_DFLAG_LBA48; in ide_disk_get_capacity()
415 if ((drive->dev_flags & IDE_DFLAG_LBA) == 0 || in ide_disk_unlock_native_capacity()
[all …]
Dide-park.c19 if (drive->dev_flags & IDE_DFLAG_PARKED) { in issue_park_cmd()
71 drive->dev_flags |= IDE_DFLAG_SLEEPING; in ide_do_park_unpark()
98 if (drive->dev_flags & IDE_DFLAG_NO_UNLOAD) in ide_park_show()
103 if (drive->dev_flags & IDE_DFLAG_PARKED && in ide_park_show()
133 if (drive->dev_flags & IDE_DFLAG_NO_UNLOAD) in ide_park_store()
135 else if (input || drive->dev_flags & IDE_DFLAG_PARKED) in ide_park_store()
141 drive->dev_flags &= ~IDE_DFLAG_NO_UNLOAD; in ide_park_store()
144 drive->dev_flags |= IDE_DFLAG_NO_UNLOAD; in ide_park_store()
Dide-eh.c13 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { in ide_ata_error()
19 if ((drive->dev_flags & IDE_DFLAG_LBA) && in ide_ata_error()
69 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { in ide_atapi_error()
277 drive->dev_flags &= ~IDE_DFLAG_PARKED; in ide_disk_pre_reset()
279 if ((drive->dev_flags & IDE_DFLAG_KEEP_SETTINGS) == 0 && in ide_disk_pre_reset()
280 (drive->dev_flags & IDE_DFLAG_USING_DMA) == 0) in ide_disk_pre_reset()
294 drive->dev_flags |= IDE_DFLAG_POST_RESET; in pre_reset()
296 if (drive->dev_flags & IDE_DFLAG_USING_DMA) { in pre_reset()
303 if ((drive->dev_flags & IDE_DFLAG_KEEP_SETTINGS) == 0) { in pre_reset()
304 if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0) { in pre_reset()
[all …]
Dide-probe.c112 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_ata_dev()
117 drive->dev_flags |= IDE_DFLAG_NO_UNLOAD; in ide_classify_ata_dev()
139 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_atapi_dev()
146 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_atapi_dev()
162 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_atapi_dev()
175 drive->dev_flags |= IDE_DFLAG_DOORLOCKING; in ide_classify_atapi_dev()
177 drive->dev_flags |= IDE_DFLAG_NO_UNLOAD; in ide_classify_atapi_dev()
204 drive->dev_flags |= IDE_DFLAG_ID_READ; in do_identify()
231 drive->dev_flags &= ~IDE_DFLAG_PRESENT; in do_identify()
233 drive->dev_flags |= IDE_DFLAG_PRESENT; in do_identify()
[all …]
Dide-gd.c200 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) {
201 drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS;
216 if ((drive->dev_flags & IDE_DFLAG_WP) && (mode & FMODE_WRITE)) {
227 drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED;
229 } else if (drive->dev_flags & IDE_DFLAG_FORMAT_IN_PROGRESS) {
264 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) {
266 drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS;
294 if (drive->dev_flags & IDE_DFLAG_ATTACH) {
295 drive->dev_flags &= ~IDE_DFLAG_ATTACH;
305 ret = drive->dev_flags & IDE_DFLAG_MEDIA_CHANGED;
[all …]
Dide-devsets.c13 if (drive->dev_flags & IDE_DFLAG_NO_IO_32BIT) in set_io_32bit()
32 drive->dev_flags |= IDE_DFLAG_KEEP_SETTINGS; in set_ksettings()
34 drive->dev_flags &= ~IDE_DFLAG_KEEP_SETTINGS; in set_ksettings()
122 int keep_dma = !!(drive->dev_flags & IDE_DFLAG_USING_DMA); in set_pio_mode()
139 if (drive->dev_flags & IDE_DFLAG_NO_UNMASK) in set_unmaskirq()
146 drive->dev_flags |= IDE_DFLAG_UNMASK; in set_unmaskirq()
148 drive->dev_flags &= ~IDE_DFLAG_UNMASK; in set_unmaskirq()
Dide-ioctls.c64 if ((drive->dev_flags & IDE_DFLAG_ID_READ) == 0) { in ide_get_identity_ioctl()
89 return put_user((!!(drive->dev_flags & IDE_DFLAG_DSC_OVERLAP) in ide_get_nice_ioctl()
91 (!!(drive->dev_flags & IDE_DFLAG_NICE1) in ide_get_nice_ioctl()
105 drive->dev_flags |= IDE_DFLAG_DSC_OVERLAP; in ide_set_nice_ioctl()
107 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in ide_set_nice_ioctl()
110 drive->dev_flags |= IDE_DFLAG_NICE1; in ide_set_nice_ioctl()
112 drive->dev_flags &= ~IDE_DFLAG_NICE1; in ide_set_nice_ioctl()
Dide.c286 drive->dev_flags |= IDE_DFLAG_NODMA; in ide_dev_apply_params()
291 drive->dev_flags |= IDE_DFLAG_NOFLUSH; in ide_dev_apply_params()
296 drive->dev_flags |= IDE_DFLAG_NOHPA; in ide_dev_apply_params()
300 drive->dev_flags |= IDE_DFLAG_NOPROBE; in ide_dev_apply_params()
309 drive->dev_flags |= IDE_DFLAG_PRESENT; in ide_dev_apply_params()
323 drive->dev_flags |= IDE_DFLAG_FORCED_GEOM | IDE_DFLAG_PRESENT; in ide_dev_apply_params()
Dht6560b.c132 (drive->dev_flags & IDE_DFLAG_PRESENT) == 0) in ht6560b_dev_select()
265 drive->dev_flags |= IDE_DFLAG_NO_UNMASK; in ht_set_prefetch()
266 drive->dev_flags &= ~IDE_DFLAG_UNMASK; in ht_set_prefetch()
269 drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; in ht_set_prefetch()
Dide-io.c64 if ((drive->dev_flags & IDE_DFLAG_DMA_PIO_RETRY) && in ide_end_rq()
66 drive->dev_flags &= ~IDE_DFLAG_DMA_PIO_RETRY; in ide_end_rq()
102 drive->dev_flags |= IDE_DFLAG_PARKED; in ide_complete_cmd()
391 drive->dev_flags |= IDE_DFLAG_SLEEPING; in ide_stall_queue()
481 if (drive->dev_flags & IDE_DFLAG_SLEEPING && in do_ide_request()
500 (cur_dev->dev_flags & IDE_DFLAG_NIEN_QUIRK) == 0) in do_ide_request()
508 drive->dev_flags &= ~(IDE_DFLAG_SLEEPING | IDE_DFLAG_PARKED); in do_ide_request()
540 if ((drive->dev_flags & IDE_DFLAG_BLOCKED) && in do_ide_request()
846 if (drive->dev_flags & IDE_DFLAG_UNMASK) in ide_intr()
Dide-iops.c273 if (drive->dev_flags & IDE_DFLAG_UDMA33_WARNED) in eighty_ninty_three()
281 drive->dev_flags |= IDE_DFLAG_UDMA33_WARNED; in eighty_ninty_three()
305 drive->dev_flags |= IDE_DFLAG_NIEN_QUIRK; in ide_check_nien_quirk_list()
381 if (drive->dev_flags & IDE_DFLAG_NIEN_QUIRK) in ide_config_drive_speed()
406 if (speed >= XFER_SW_DMA_0 && (drive->dev_flags & IDE_DFLAG_USING_DMA)) in ide_config_drive_speed()
Dcmd640.c383 drive->dev_flags |= IDE_DFLAG_NO_UNMASK; in __set_prefetch_mode()
384 drive->dev_flags &= ~IDE_DFLAG_UNMASK; in __set_prefetch_mode()
386 drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT; in __set_prefetch_mode()
388 drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; in __set_prefetch_mode()
389 drive->dev_flags |= IDE_DFLAG_NO_IO_32BIT; in __set_prefetch_mode()
631 i, (drive->dev_flags & IDE_DFLAG_NO_IO_32BIT) ? "off" : "on"); in cmd640_init_dev()
Dide-dma.c182 drive->dev_flags &= ~IDE_DFLAG_USING_DMA; in ide_dma_off_quietly()
213 drive->dev_flags |= IDE_DFLAG_USING_DMA; in ide_dma_on()
359 (drive->dev_flags & IDE_DFLAG_NODMA)) in ide_tune_dma()
485 drive->dev_flags |= IDE_DFLAG_DMA_PIO_RETRY; in ide_dma_timeout_retry()
537 if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0 || in ide_dma_prepare()
Dide-floppy_ioctl.c148 drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; in ide_floppy_format_unit()
152 drive->dev_flags |= IDE_DFLAG_FORMAT_IN_PROGRESS; in ide_floppy_format_unit()
184 drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; in ide_floppy_format_unit()
Dide-floppy.c333 drive->dev_flags |= IDE_DFLAG_WP; in ide_floppy_get_flexible_disk_page()
335 drive->dev_flags &= ~IDE_DFLAG_WP; in ide_floppy_get_flexible_disk_page()
337 set_disk_ro(disk, !!(drive->dev_flags & IDE_DFLAG_WP)); in ide_floppy_get_flexible_disk_page()
511 drive->dev_flags &= ~IDE_DFLAG_DOORLOCKING; in ide_floppy_setup()
518 drive->dev_flags |= IDE_DFLAG_ATTACH; in ide_floppy_setup()
Dide-cd_ioctl.c97 retval = (drive->dev_flags & IDE_DFLAG_MEDIA_CHANGED) ? 1 : 0; in ide_cdrom_check_events_real()
98 drive->dev_flags &= ~IDE_DFLAG_MEDIA_CHANGED; in ide_cdrom_check_events_real()
147 if ((drive->dev_flags & IDE_DFLAG_DOORLOCKING) == 0) { in ide_cd_lockdoor()
168 drive->dev_flags &= ~IDE_DFLAG_DOORLOCKING; in ide_cd_lockdoor()
Dide-pm.c154 (drive->dev_flags & IDE_DFLAG_WCACHE) == 0) { in ide_start_power_step()
232 drive->dev_flags &= ~IDE_DFLAG_BLOCKED; in ide_complete_pm_rq()
249 drive->dev_flags |= IDE_DFLAG_BLOCKED; in ide_check_pm_state()
Dide-tape.c596 if ((drive->dev_flags & IDE_DFLAG_DSC_OVERLAP) == 0 && in idetape_do_request()
600 if (drive->dev_flags & IDE_DFLAG_POST_RESET) { in idetape_do_request()
602 drive->dev_flags &= ~IDE_DFLAG_POST_RESET; in idetape_do_request()
975 if (drive->dev_flags & IDE_DFLAG_DSC_OVERLAP) { in idetape_init_rw()
1675 drive->dev_flags &= ~IDE_DFLAG_DOORLOCKING; in idetape_get_mode_sense_results()
1756 drive->dev_flags |= IDE_DFLAG_DSC_OVERLAP; in idetape_setup()
1761 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in idetape_setup()
1766 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in idetape_setup()
1803 (drive->dev_flags & IDE_DFLAG_USING_DMA) ? ", DMA" : ""); in idetape_setup()
1829 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in ide_tape_release()
[all …]
Dtrm290.c164 if (drive->dev_flags & IDE_DFLAG_PRESENT) { in trm290_prepare_drive()
176 trm290_prepare_drive(drive, !!(drive->dev_flags & IDE_DFLAG_USING_DMA)); in trm290_dev_select()
/drivers/net/phy/
Dbroadcom.c225 if (phydev->dev_flags & PHY_BRCM_RX_REFCLK_UNUSED) { in bcm54xx_adjust_rxrefclk()
232 if (!clk125en || (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE)) in bcm54xx_adjust_rxrefclk()
237 if (phydev->dev_flags & PHY_BRCM_DIS_TXCRXC_NOENRGY) in bcm54xx_adjust_rxrefclk()
249 if (!clk125en || (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE)) in bcm54xx_adjust_rxrefclk()
282 (phydev->dev_flags & PHY_BRCM_CLEAR_RGMII_MODE)) in bcm54xx_config_init()
285 if ((phydev->dev_flags & PHY_BRCM_RX_REFCLK_UNUSED) || in bcm54xx_config_init()
286 (phydev->dev_flags & PHY_BRCM_DIS_TXCRXC_NOENRGY) || in bcm54xx_config_init()
287 (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE)) in bcm54xx_config_init()
321 if (phydev->dev_flags & PHY_BCM_FLAGS_MODE_1000BX) { in bcm5482_config_init()
391 if (phydev->dev_flags & PHY_BCM_FLAGS_MODE_1000BX) { in bcm5482_read_status()
[all …]
/drivers/video/fbdev/i810/
Di810_accel.c77 par->dev_flags |= LOCKUP; in wait_for_space()
105 par->dev_flags |= LOCKUP; in wait_for_engine_idle()
122 if (par->dev_flags & ALWAYS_SYNC) in begin_iring()
303 if (!info->var.accel_flags || par->dev_flags & LOCKUP || in i810fb_fillrect()
331 if (!info->var.accel_flags || par->dev_flags & LOCKUP || in i810fb_copyarea()
372 if (!info->var.accel_flags || par->dev_flags & LOCKUP || in i810fb_imageblit()
409 if (!info->var.accel_flags || par->dev_flags & LOCKUP) in i810fb_sync()
420 if (!info->var.accel_flags || par->dev_flags & LOCKUP) in i810fb_load_front()
/drivers/net/wireless/ralink/rt2x00/
Drt2x00crypto.c200 if (rxdesc->dev_flags & RXDONE_L2PAD) { in rt2x00crypto_rx_insert_iv()
231 if (!(rxdesc->dev_flags & RXDONE_L2PAD)) { in rt2x00crypto_rx_insert_iv()
Drt2x00debug.c80 struct dentry *dev_flags; member
684 intf->dev_flags = debugfs_create_file("dev_flags", S_IRUSR, in rt2x00debug_register()
687 if (IS_ERR(intf->dev_flags) || !intf->dev_flags) in rt2x00debug_register()
791 debugfs_remove(intf->dev_flags); in rt2x00debug_deregister()
/drivers/pci/
Dsearch.c64 if (tmp->dev_flags & PCI_DEV_FLAGS_BRIDGE_XLATE_ROOT) in pci_for_each_dma_alias()
98 if (tmp->dev_flags & PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS) in pci_for_each_dma_alias()
/drivers/hid/intel-ish-hid/ishtp/
Dclient.c446 unsigned long dev_flags; in ishtp_cl_read_start() local
490 spin_lock_irqsave(&dev->read_list_spinlock, dev_flags); in ishtp_cl_read_start()
492 spin_unlock_irqrestore(&dev->read_list_spinlock, dev_flags); in ishtp_cl_read_start()
500 spin_lock_irqsave(&dev->read_list_spinlock, dev_flags); in ishtp_cl_read_start()
502 spin_unlock_irqrestore(&dev->read_list_spinlock, dev_flags); in ishtp_cl_read_start()

1234