/Linux-v5.4/drivers/ide/ |
D | ide-disk.c | 87 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 …]
|
D | ide-park.c | 19 if (drive->dev_flags & IDE_DFLAG_PARKED) { in issue_park_cmd() 73 drive->dev_flags |= IDE_DFLAG_SLEEPING; in ide_do_park_unpark() 100 if (drive->dev_flags & IDE_DFLAG_NO_UNLOAD) in ide_park_show() 105 if (drive->dev_flags & IDE_DFLAG_PARKED && in ide_park_show() 135 if (drive->dev_flags & IDE_DFLAG_NO_UNLOAD) in ide_park_store() 137 else if (input || drive->dev_flags & IDE_DFLAG_PARKED) in ide_park_store() 143 drive->dev_flags &= ~IDE_DFLAG_NO_UNLOAD; in ide_park_store() 146 drive->dev_flags |= IDE_DFLAG_NO_UNLOAD; in ide_park_store()
|
D | ide-eh.c | 14 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { in ide_ata_error() 20 if ((drive->dev_flags & IDE_DFLAG_LBA) && in ide_ata_error() 70 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { in ide_atapi_error() 278 drive->dev_flags &= ~IDE_DFLAG_PARKED; in ide_disk_pre_reset() 280 if ((drive->dev_flags & IDE_DFLAG_KEEP_SETTINGS) == 0 && in ide_disk_pre_reset() 281 (drive->dev_flags & IDE_DFLAG_USING_DMA) == 0) in ide_disk_pre_reset() 295 drive->dev_flags |= IDE_DFLAG_POST_RESET; in pre_reset() 297 if (drive->dev_flags & IDE_DFLAG_USING_DMA) { in pre_reset() 304 if ((drive->dev_flags & IDE_DFLAG_KEEP_SETTINGS) == 0) { in pre_reset() 305 if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0) { in pre_reset() [all …]
|
D | ide-devsets.c | 13 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()
|
D | ide-gd.c | 201 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) { 202 drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; 217 if ((drive->dev_flags & IDE_DFLAG_WP) && (mode & FMODE_WRITE)) { 228 drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED; 230 } else if (drive->dev_flags & IDE_DFLAG_FORMAT_IN_PROGRESS) { 265 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) { 267 drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; 295 if (drive->dev_flags & IDE_DFLAG_ATTACH) { 296 drive->dev_flags &= ~IDE_DFLAG_ATTACH; 307 ret = drive->dev_flags & IDE_DFLAG_MEDIA_CHANGED; [all …]
|
D | ide-probe.c | 113 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_ata_dev() 118 drive->dev_flags |= IDE_DFLAG_NO_UNLOAD; in ide_classify_ata_dev() 140 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_atapi_dev() 148 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_atapi_dev() 164 drive->dev_flags |= IDE_DFLAG_REMOVABLE; in ide_classify_atapi_dev() 177 drive->dev_flags |= IDE_DFLAG_DOORLOCKING; in ide_classify_atapi_dev() 179 drive->dev_flags |= IDE_DFLAG_NO_UNLOAD; in ide_classify_atapi_dev() 206 drive->dev_flags |= IDE_DFLAG_ID_READ; in do_identify() 233 drive->dev_flags &= ~IDE_DFLAG_PRESENT; in do_identify() 235 drive->dev_flags |= IDE_DFLAG_PRESENT; in do_identify() [all …]
|
D | ide-ioctls.c | 65 if ((drive->dev_flags & IDE_DFLAG_ID_READ) == 0) { in ide_get_identity_ioctl() 90 return put_user((!!(drive->dev_flags & IDE_DFLAG_DSC_OVERLAP) in ide_get_nice_ioctl() 92 (!!(drive->dev_flags & IDE_DFLAG_NICE1) in ide_get_nice_ioctl() 106 drive->dev_flags |= IDE_DFLAG_DSC_OVERLAP; in ide_set_nice_ioctl() 108 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in ide_set_nice_ioctl() 111 drive->dev_flags |= IDE_DFLAG_NICE1; in ide_set_nice_ioctl() 113 drive->dev_flags &= ~IDE_DFLAG_NICE1; in ide_set_nice_ioctl()
|
D | ide.c | 287 drive->dev_flags |= IDE_DFLAG_NODMA; in ide_dev_apply_params() 292 drive->dev_flags |= IDE_DFLAG_NOFLUSH; in ide_dev_apply_params() 297 drive->dev_flags |= IDE_DFLAG_NOHPA; in ide_dev_apply_params() 301 drive->dev_flags |= IDE_DFLAG_NOPROBE; in ide_dev_apply_params() 310 drive->dev_flags |= IDE_DFLAG_PRESENT; in ide_dev_apply_params() 324 drive->dev_flags |= IDE_DFLAG_FORCED_GEOM | IDE_DFLAG_PRESENT; in ide_dev_apply_params()
|
D | ht6560b.c | 133 (drive->dev_flags & IDE_DFLAG_PRESENT) == 0) in ht6560b_dev_select() 266 drive->dev_flags |= IDE_DFLAG_NO_UNMASK; in ht_set_prefetch() 267 drive->dev_flags &= ~IDE_DFLAG_UNMASK; in ht_set_prefetch() 270 drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; in ht_set_prefetch()
|
D | ide-io.c | 64 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() 112 drive->dev_flags |= IDE_DFLAG_PARKED; in ide_complete_cmd() 402 drive->dev_flags |= IDE_DFLAG_SLEEPING; in ide_stall_queue() 482 if (drive->dev_flags & IDE_DFLAG_SLEEPING && in ide_issue_rq() 498 (cur_dev->dev_flags & IDE_DFLAG_NIEN_QUIRK) == 0) in ide_issue_rq() 506 drive->dev_flags &= ~(IDE_DFLAG_SLEEPING | IDE_DFLAG_PARKED); in ide_issue_rq() 521 if ((drive->dev_flags & IDE_DFLAG_BLOCKED) && in ide_issue_rq() 851 if (drive->dev_flags & IDE_DFLAG_UNMASK) in ide_intr()
|
D | ide-dma.c | 182 drive->dev_flags &= ~IDE_DFLAG_USING_DMA; in ide_dma_off_quietly() 212 drive->dev_flags |= IDE_DFLAG_USING_DMA; in ide_dma_on() 357 (drive->dev_flags & IDE_DFLAG_NODMA)) in ide_tune_dma() 483 drive->dev_flags |= IDE_DFLAG_DMA_PIO_RETRY; in ide_dma_timeout_retry() 535 if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0 || in ide_dma_prepare()
|
D | ide-iops.c | 279 if (drive->dev_flags & IDE_DFLAG_UDMA33_WARNED) in eighty_ninty_three() 287 drive->dev_flags |= IDE_DFLAG_UDMA33_WARNED; in eighty_ninty_three() 311 drive->dev_flags |= IDE_DFLAG_NIEN_QUIRK; in ide_check_nien_quirk_list() 387 if (drive->dev_flags & IDE_DFLAG_NIEN_QUIRK) in ide_config_drive_speed() 412 if (speed >= XFER_SW_DMA_0 && (drive->dev_flags & IDE_DFLAG_USING_DMA)) in ide_config_drive_speed()
|
D | cmd640.c | 384 drive->dev_flags |= IDE_DFLAG_NO_UNMASK; in __set_prefetch_mode() 385 drive->dev_flags &= ~IDE_DFLAG_UNMASK; in __set_prefetch_mode() 387 drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT; in __set_prefetch_mode() 389 drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; in __set_prefetch_mode() 390 drive->dev_flags |= IDE_DFLAG_NO_IO_32BIT; in __set_prefetch_mode() 632 i, (drive->dev_flags & IDE_DFLAG_NO_IO_32BIT) ? "off" : "on"); in cmd640_init_dev()
|
D | ide-floppy_ioctl.c | 148 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()
|
D | ide-floppy.c | 333 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() 512 drive->dev_flags &= ~IDE_DFLAG_DOORLOCKING; in ide_floppy_setup() 519 drive->dev_flags |= IDE_DFLAG_ATTACH; in ide_floppy_setup()
|
D | ide-pm.c | 140 (drive->dev_flags & IDE_DFLAG_WCACHE) == 0) { in ide_start_power_step() 216 drive->dev_flags &= ~IDE_DFLAG_BLOCKED; in ide_complete_pm_rq() 231 drive->dev_flags |= IDE_DFLAG_BLOCKED; in ide_check_pm_state()
|
D | ide-cd_ioctl.c | 98 retval = (drive->dev_flags & IDE_DFLAG_MEDIA_CHANGED) ? 1 : 0; in ide_cdrom_check_events_real() 99 drive->dev_flags &= ~IDE_DFLAG_MEDIA_CHANGED; in ide_cdrom_check_events_real() 143 if ((drive->dev_flags & IDE_DFLAG_DOORLOCKING) == 0) { in ide_cd_lockdoor() 164 drive->dev_flags &= ~IDE_DFLAG_DOORLOCKING; in ide_cd_lockdoor()
|
D | trm290.c | 164 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()
|
D | ide-tape.c | 596 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() 1755 drive->dev_flags |= IDE_DFLAG_DSC_OVERLAP; in idetape_setup() 1760 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in idetape_setup() 1765 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in idetape_setup() 1801 (drive->dev_flags & IDE_DFLAG_USING_DMA) ? ", DMA" : ""); in idetape_setup() 1827 drive->dev_flags &= ~IDE_DFLAG_DSC_OVERLAP; in ide_tape_release() [all …]
|
/Linux-v5.4/arch/mips/alchemy/common/ |
D | dbdma.c | 232 p->dev_id, p->dev_flags, p->dev_physaddr); in au1xxx_ddma_add_device() 282 if (!(stp->dev_flags & DEV_FLAGS_INUSE) || in au1xxx_dbdma_chan_alloc() 283 (stp->dev_flags & DEV_FLAGS_ANYUSE)) { in au1xxx_dbdma_chan_alloc() 285 stp->dev_flags |= DEV_FLAGS_INUSE; in au1xxx_dbdma_chan_alloc() 286 if (!(dtp->dev_flags & DEV_FLAGS_INUSE) || in au1xxx_dbdma_chan_alloc() 287 (dtp->dev_flags & DEV_FLAGS_ANYUSE)) { in au1xxx_dbdma_chan_alloc() 289 dtp->dev_flags |= DEV_FLAGS_INUSE; in au1xxx_dbdma_chan_alloc() 292 stp->dev_flags &= ~DEV_FLAGS_INUSE; in au1xxx_dbdma_chan_alloc() 340 if ((stp->dev_flags & DEV_FLAGS_SYNC) || in au1xxx_dbdma_chan_alloc() 341 (dtp->dev_flags & DEV_FLAGS_SYNC)) in au1xxx_dbdma_chan_alloc() [all …]
|
/Linux-v5.4/drivers/net/phy/ |
D | broadcom.c | 42 if (phydev->dev_flags & PHY_BRCM_EN_MASTER_MODE) { in bcm54210e_config_init() 77 if (!(phydev->dev_flags & PHY_BRCM_RX_REFCLK_UNUSED)) { in bcm54612e_config_init() 239 if (phydev->dev_flags & PHY_BRCM_RX_REFCLK_UNUSED) { in bcm54xx_adjust_rxrefclk() 246 if (!clk125en || (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE)) in bcm54xx_adjust_rxrefclk() 251 if (phydev->dev_flags & PHY_BRCM_DIS_TXCRXC_NOENRGY) in bcm54xx_adjust_rxrefclk() 263 if (!clk125en || (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE)) in bcm54xx_adjust_rxrefclk() 296 (phydev->dev_flags & PHY_BRCM_CLEAR_RGMII_MODE)) in bcm54xx_config_init() 299 if ((phydev->dev_flags & PHY_BRCM_RX_REFCLK_UNUSED) || in bcm54xx_config_init() 300 (phydev->dev_flags & PHY_BRCM_DIS_TXCRXC_NOENRGY) || in bcm54xx_config_init() 301 (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE)) in bcm54xx_config_init() [all …]
|
/Linux-v5.4/drivers/video/fbdev/i810/ |
D | i810_accel.c | 77 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()
|
/Linux-v5.4/drivers/hid/intel-ish-hid/ipc/ |
D | pci-ish.c | 217 if (pdev->dev_flags & PCI_DEV_FLAGS_NO_D3) { in ish_resume_handler() 218 pdev->dev_flags &= ~PCI_DEV_FLAGS_NO_D3; in ish_resume_handler() 283 pdev->dev_flags |= PCI_DEV_FLAGS_NO_D3; in ish_suspend()
|
/Linux-v5.4/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00crypto.c | 189 if (rxdesc->dev_flags & RXDONE_L2PAD) { in rt2x00crypto_rx_insert_iv() 220 if (!(rxdesc->dev_flags & RXDONE_L2PAD)) { in rt2x00crypto_rx_insert_iv()
|
/Linux-v5.4/drivers/pci/ |
D | search.c | 64 if (tmp->dev_flags & PCI_DEV_FLAGS_BRIDGE_XLATE_ROOT) in pci_for_each_dma_alias() 96 if (tmp->dev_flags & PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS) in pci_for_each_dma_alias()
|