| /drivers/block/ |
| A D | amiflop.c | 245 #define SELMASK(drive) (1 << (3 + (drive & 3))) argument 398 drive&=3; in fd_select() 423 drive&=3; in fd_deselect() 494 drive&=3; in fd_motor_off() 694 drive&=3; in raw_read() 722 drive&=3; in raw_write() 844 drive&=3; in amiga_read() 1168 unit[drive].track,drive,scnt); in dos_read() 1446 error = (*unit[drive].dtype->read_fkt)(drive); in get_track() 1699 unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* in floppy_open() [all …]
|
| A D | floppy.c | 846 for (drive = 0; drive < N_DRIVE; drive++) in reset_fdc_info() 3145 for (drive = 0; drive < N_DRIVE; drive++) { in raw_cmd_ioctl() 3933 for (drive = 0; drive < N_DRIVE; drive++) { in config_types() 4129 int drive = cbdata->drive; in floppy_rb0_cb() local 4152 cbdata.drive = drive; in __floppy_read_block_0() 4592 for (drive = 0; drive < N_DRIVE; drive++) { in do_floppy_init() 4662 for (drive = 0; drive < N_DRIVE; drive++) { in do_floppy_init() 4722 for (drive = 0; drive < N_DRIVE; drive++) { in do_floppy_init() 4762 for (drive = 0; drive < N_DRIVE; drive++) { in do_floppy_init() 4931 for (drive = 0; drive < N_FDC * 4; drive++) in floppy_release_irq_and_dma() [all …]
|
| A D | ataflop.c | 309 #define UD unit[drive] 546 SelectedDrive = drive; in fd_select_drive() 612 static int drive = 0; in check_change() local 619 drive = 0; in check_change() 813 do_fd_action( drive ); in do_format() 865 fd_select_drive( drive ); in do_fd_action() 1576 do_fd_action( drive ); in ataflop_queue_rq() 1838 fd_select_drive( drive ); in fd_test_drive_present() 1880 int drive, cnt = 0; in config_types() local 1887 for( drive = 0; drive < FD_MAX_UNITS; drive++ ) { in config_types() [all …]
|
| A D | swim.c | 794 int drive; in swim_floppy_init() local 819 for (drive = 0; drive < swd->floppy_count; drive++) { in swim_floppy_init() 825 swd->unit[drive].disk = in swim_floppy_init() 837 for (drive = 0; drive < swd->floppy_count; drive++) { in swim_floppy_init() 840 swd->unit[drive].disk->first_minor = drive; in swim_floppy_init() 842 sprintf(swd->unit[drive].disk->disk_name, "fd%d", drive); in swim_floppy_init() 846 swd->unit[drive].disk->private_data = &swd->unit[drive]; in swim_floppy_init() 860 } while (drive--); in swim_floppy_init() 925 int drive; in swim_remove() local 928 for (drive = 0; drive < swd->floppy_count; drive++) in swim_remove() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| A D | i2c.c | 95 info->drive = DCB_I2C_UNUSED; in dcb_i2c_parse() 102 info->drive = nvbios_rd08(bios, ent + 0); in dcb_i2c_parse() 106 info->drive = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 109 info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; in dcb_i2c_parse() 119 info->drive = (nvbios_rd16(bios, ent + 0) & 0x01f) >> 0; in dcb_i2c_parse() 120 if (info->drive == 0x1f) in dcb_i2c_parse() 121 info->drive = DCB_I2C_UNUSED; in dcb_i2c_parse() 146 info->drive = nvbios_rd08(bios, ent + 4); in dcb_i2c_parse() 147 if (!info->drive) info->drive = 0x3f; in dcb_i2c_parse() 152 info->drive = nvbios_rd08(bios, ent + 6); in dcb_i2c_parse() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| A D | busnv04.c | 31 u8 drive; member 40 u8 val = nvkm_rdvgac(device, 0, bus->drive); in nv04_i2c_bus_drive_scl() 43 nvkm_wrvgac(device, 0, bus->drive, val | 0x01); in nv04_i2c_bus_drive_scl() 51 u8 val = nvkm_rdvgac(device, 0, bus->drive); in nv04_i2c_bus_drive_sda() 54 nvkm_wrvgac(device, 0, bus->drive, val | 0x01); in nv04_i2c_bus_drive_sda() 83 nv04_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, u8 sense, in nv04_i2c_bus_new() argument 93 bus->drive = drive; in nv04_i2c_bus_new()
|
| A D | busnv50.c | 90 nv50_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, in nv50_i2c_bus_new() argument 100 if (drive >= ARRAY_SIZE(addr)) { in nv50_i2c_bus_new() 101 nvkm_warn(&pad->i2c->subdev, "bus %d unknown\n", drive); in nv50_i2c_bus_new() 110 bus->addr = addr[drive]; in nv50_i2c_bus_new()
|
| A D | pad.h | 24 int (*bus_new_0)(struct nvkm_i2c_pad *, int id, u8 drive, u8 sense, 26 int (*bus_new_4)(struct nvkm_i2c_pad *, int id, u8 drive, 29 int (*aux_new_6)(struct nvkm_i2c_pad *, int id, u8 drive,
|
| A D | auxg94.c | 169 struct nvkm_i2c_pad *pad, int index, u8 drive, in g94_i2c_aux_new_() argument 179 aux->ch = drive; in g94_i2c_aux_new_() 190 g94_i2c_aux_new(struct nvkm_i2c_pad *pad, int index, u8 drive, in g94_i2c_aux_new() argument 193 return g94_i2c_aux_new_(&g94_i2c_aux, pad, index, drive, paux); in g94_i2c_aux_new()
|
| A D | auxgf119.c | 31 gf119_i2c_aux_new(struct nvkm_i2c_pad *pad, int index, u8 drive, in gf119_i2c_aux_new() argument 34 return g94_i2c_aux_new_(&gf119_i2c_aux, pad, index, drive, paux); in gf119_i2c_aux_new()
|
| A D | busnv4e.c | 74 nv4e_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, in nv4e_i2c_bus_new() argument 84 bus->addr = 0x600800 + drive; in nv4e_i2c_bus_new()
|
| A D | busgf119.c | 83 gf119_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, in gf119_i2c_bus_new() argument 93 bus->addr = 0x00d014 + (drive * 0x20); in gf119_i2c_bus_new()
|
| A D | base.c | 286 ccbE.drive, ccbE.sense, ccbE.share, ccbE.auxch); in nvkm_i2c_new_() 306 ccbE.drive, in nvkm_i2c_new_() 313 ccbE.drive != DCB_I2C_UNUSED))) { in nvkm_i2c_new_() 315 ccbE.drive, &bus); in nvkm_i2c_new_()
|
| A D | auxgm200.c | 175 gm200_i2c_aux_new(struct nvkm_i2c_pad *pad, int index, u8 drive, in gm200_i2c_aux_new() argument 185 aux->ch = drive; in gm200_i2c_aux_new()
|
| /drivers/pinctrl/ |
| A D | pinctrl-digicolor.c | 173 u8 drive; in dc_gpio_direction_input() local 177 drive = readb_relaxed(pmap->regs + reg_off); in dc_gpio_direction_input() 178 drive &= ~BIT(bit_off); in dc_gpio_direction_input() 179 writeb_relaxed(drive, pmap->regs + reg_off); in dc_gpio_direction_input() 193 u8 drive; in dc_gpio_direction_output() local 199 drive = readb_relaxed(pmap->regs + reg_off); in dc_gpio_direction_output() 200 drive |= BIT(bit_off); in dc_gpio_direction_output() 201 writeb_relaxed(drive, pmap->regs + reg_off); in dc_gpio_direction_output()
|
| A D | pinctrl-artpec6.c | 818 int drive; in artpec6_pconf_set() local 857 drive = artpec6_pconf_drive_mA_to_field(arg); in artpec6_pconf_set() 858 if (drive < 0) { in artpec6_pconf_set() 866 regval |= (drive << ARTPEC6_PINMUX_DRV_SHIFT); in artpec6_pconf_set()
|
| /drivers/ata/pata_parport/ |
| A D | Kconfig | 21 Series noted on the bottom of the drive. Series 6 drivers will. 23 In other words, if your BACKPACK drive doesn't say "Series 6" on the 33 on the bottom of the drive. Series 5 drivers don't always have it 36 In other words, if your BACKPACK drive says "Series 6" on the 85 (LS-120) drive. 101 drive.
|
| /drivers/input/keyboard/ |
| A D | qt2160.c | 75 u32 drive, pwmen; in qt2160_led_set() local 78 drive = qt2160_read(client, QT2160_CMD_DRIVE_X); in qt2160_led_set() 81 drive |= BIT(led->id); in qt2160_led_set() 85 drive &= ~BIT(led->id); in qt2160_led_set() 88 qt2160_write(client, QT2160_CMD_DRIVE_X, drive); in qt2160_led_set()
|
| /drivers/ata/ |
| A D | pata_acpi.c | 123 acpi->gtm.drive[unit].pio = t->cycle; in pacpi_set_piomode() 147 acpi->gtm.drive[unit].dma = t->udma; in pacpi_set_dmamode() 150 acpi->gtm.drive[unit].dma = t->cycle; in pacpi_set_dmamode()
|
| /drivers/md/ |
| A D | Kconfig | 106 of a single drive, and the set protects against a failure of (N - 1) 148 A RAID-5 set of N drives with a capacity of C MB per drive provides 150 of a single drive. For a given sector (row) number, (N - 1) drives 151 contain data sectors, and one drive contains the parity protection. 152 For a RAID-4 set, the parity blocks are present on a single drive, 156 A RAID-6 set of N drives with a capacity of C MB per drive 262 Unstripes I/O so it is issued solely on a single drive in a HW 402 of a single drive. For a given sector (row) number, (N - 1) drives 404 For a RAID-4 set, the parity blocks are present on a single drive, 408 A RAID-6 set of N drives with a capacity of C MB per drive [all …]
|
| /drivers/usb/storage/ |
| A D | Kconfig | 74 - Sony CRX10U CD-R/RW drive 75 - CyQ've CQ8060A CDRW drive 143 USB hard drive's onetouch button. 146 hard drive's as an input device. An action can be associated with 170 to use tools to tune and monitor your drive (like hdparm or smartctl).
|
| /drivers/media/dvb-frontends/ |
| A D | dib7000p.c | 2408 static int dib7090_host_bus_drive(struct dib7000p_state *state, u8 drive) in dib7090_host_bus_drive() argument 2414 reg |= (drive << 12) | (drive << 6) | drive; in dib7090_host_bus_drive() 2419 reg |= (drive << 8) | (drive << 2); in dib7090_host_bus_drive() 2424 reg |= (drive << 12) | (drive << 6) | drive; in dib7090_host_bus_drive() 2429 reg |= (drive << 8) | (drive << 2); in dib7090_host_bus_drive() 2434 reg |= (drive << 12) | (drive << 6) | drive; in dib7090_host_bus_drive()
|
| /drivers/pinctrl/stm32/ |
| A D | pinctrl-stm32.c | 193 u32 drive) in stm32_gpio_backup_driving() argument 196 bank->pin_backup[offset] |= drive << STM32_GPIO_BKP_TYPE; in stm32_gpio_backup_driving() 1025 unsigned offset, u32 drive) in stm32_pconf_set_driving() argument 1045 val |= drive << offset; in stm32_pconf_set_driving() 1051 stm32_gpio_backup_driving(bank, offset, drive); in stm32_pconf_set_driving() 1323 u32 mode, alt, drive, speed, bias; in stm32_pconf_dbg_show() local 1360 drive = stm32_pconf_get_driving(bank, offset); in stm32_pconf_dbg_show() 1365 drive ? "open drain" : "push pull", in stm32_pconf_dbg_show() 1372 drive = stm32_pconf_get_driving(bank, offset); in stm32_pconf_dbg_show() 1380 drive ? "open drain" : "push pull", in stm32_pconf_dbg_show()
|
| /drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
| A D | i2c.h | 17 u8 drive; member
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
| A D | priv.h | 22 int (*drive)(struct nvkm_gpio *, int line, int dir, int out); member
|