/drivers/s390/scsi/ |
D | zfcp_unit.c | 21 void zfcp_unit_scsi_scan(struct zfcp_unit *unit) in zfcp_unit_scsi_scan() argument 23 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan() 26 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan() 34 struct zfcp_unit *unit = container_of(work, struct zfcp_unit, in zfcp_unit_scsi_scan_work() local 37 zfcp_unit_scsi_scan(unit); in zfcp_unit_scsi_scan_work() 38 put_device(&unit->dev); in zfcp_unit_scsi_scan_work() 53 struct zfcp_unit *unit; in zfcp_unit_queue_scsi_scan() local 56 list_for_each_entry(unit, &port->unit_list, list) { in zfcp_unit_queue_scsi_scan() 57 get_device(&unit->dev); in zfcp_unit_queue_scsi_scan() 59 &unit->scsi_work) <= 0) in zfcp_unit_queue_scsi_scan() [all …]
|
/drivers/block/ |
D | amiflop.c | 145 static struct amiga_floppy_struct unit[FD_MAX_UNITS]; variable 287 if (unit[drive].track % 2 != 0) in fd_select() 289 if (unit[drive].motor == 1) in fd_select() 342 if (!unit[nr].motor) { in fd_motor_on() 343 unit[nr].motor = 1; in fd_motor_on() 385 unit[drive].motor = 0; in fd_motor_off() 415 for (n = unit[drive].type->tracks/2; n != 0; --n) { in fd_calibrate() 423 ms_delay(unit[drive].type->step_delay); in fd_calibrate() 425 ms_delay (unit[drive].type->settle_time); in fd_calibrate() 427 n = unit[drive].type->tracks + 20; in fd_calibrate() [all …]
|
/drivers/ide/ |
D | it821x.c | 144 u8 unit = drive->dn & 1, conf; in it821x_program_udma() local 153 pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma() 175 u8 unit = drive->dn & 1, v; in it821x_clock_strategy() local 216 if(pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy() 217 it821x_program_udma(pair, itdev->udma[1-unit]); in it821x_clock_strategy() 218 it821x_program(pair, itdev->pio[1-unit]); in it821x_clock_strategy() 224 if(itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy() 225 it821x_program_udma(drive, itdev->udma[unit]); in it821x_clock_strategy() 226 it821x_program(drive, itdev->pio[unit]); in it821x_clock_strategy() 244 u8 unit = drive->dn & 1, set_pio = pio; in it821x_set_pio_mode() local [all …]
|
D | cs5535.c | 79 u8 unit = drive->dn & 1; in cs5535_set_speed() local 98 wrmsr(unit ? ATAC_CH0D1_PIO : ATAC_CH0D0_PIO, reg, 0); in cs5535_set_speed() 101 rdmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, dummy); in cs5535_set_speed() 107 wrmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, 0); in cs5535_set_speed() 111 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); in cs5535_set_speed() 112 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, in cs5535_set_speed() 115 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); in cs5535_set_speed() 126 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, 0); in cs5535_set_speed()
|
/drivers/block/paride/ |
D | pg.c | 244 int unit; in pg_init_units() local 247 for (unit = 0; unit < PG_UNITS; unit++) { in pg_init_units() 248 int *parm = *drives[unit]; in pg_init_units() 249 struct pg *dev = &devices[unit]; in pg_init_units() 256 snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit); in pg_init_units() 480 int k, unit; in pg_detect() local 496 for (unit = 0; unit < PG_UNITS; unit++, dev++) { in pg_detect() 497 int *parm = *drives[unit]; in pg_detect() 520 int unit = iminor(inode) & 0x7f; in pg_open() local 521 struct pg *dev = &devices[unit]; in pg_open() [all …]
|
D | pcd.c | 295 int unit; in pcd_init_units() local 298 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { in pcd_init_units() 307 cd->drive = (*drives[unit])[D_SLV]; in pcd_init_units() 308 if ((*drives[unit])[D_PRT]) in pcd_init_units() 312 snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit); in pcd_init_units() 319 disk->first_minor = unit; in pcd_init_units() 657 int unit, r; in pcd_probe_capabilities() local 662 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { in pcd_probe_capabilities() 687 int k, unit; in pcd_detect() local 705 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { in pcd_detect() [all …]
|
D | pt.c | 139 #define DU (*drives[unit]) 604 int unit; in pt_detect() local 609 for (unit = 0; unit < PT_UNITS; unit++) { in pt_detect() 610 struct pt_unit *tape = &pt[unit]; in pt_detect() 618 snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit); in pt_detect() 653 int unit = iminor(inode) & 0x7F; in pt_open() local 654 struct pt_unit *tape = pt + unit; in pt_open() 658 if (unit >= PT_UNITS || (!tape->present)) { in pt_open() 956 int unit; in pt_init() local 972 for (unit = 0; unit < PT_UNITS; unit++) in pt_init() [all …]
|
D | pf.c | 282 int unit; in pf_init_units() local 285 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { in pf_init_units() 292 pf->drive = (*drives[unit])[D_SLV]; in pf_init_units() 293 pf->lun = (*drives[unit])[D_LUN]; in pf_init_units() 294 snprintf(pf->name, PF_NAMELEN, "%s%d", name, unit); in pf_init_units() 296 disk->first_minor = unit; in pf_init_units() 299 if (!(*drives[unit])[D_PRT]) in pf_init_units() 701 int k, unit; in pf_detect() local 718 for (unit = 0; unit < PF_UNITS; unit++, pf++) { in pf_detect() 719 int *conf = *drives[unit]; in pf_detect() [all …]
|
D | pd.c | 857 int found = 0, unit, pd_drive_count = 0; in pd_detect() local 860 for (unit = 0; unit < PD_UNITS; unit++) { in pd_detect() 861 int *parm = *drives[unit]; in pd_detect() 862 struct pd_unit *disk = pd + unit; in pd_detect() 868 snprintf(disk->name, PD_NAMELEN, "%s%c", name, 'a'+unit); in pd_detect() 885 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { in pd_detect() 886 int *parm = *drives[unit]; in pd_detect() 898 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { in pd_detect() 942 int unit; in pd_exit() local 944 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { in pd_exit()
|
/drivers/char/hw_random/ |
D | n2-drv.c | 109 unsigned long unit) in n2rng_generic_read_control_v2() argument 115 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, in n2rng_generic_read_control_v2() 146 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument 150 return n2rng_generic_read_control_v2(ra, unit); in n2rng_control_settle_v2() 153 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument 166 watchdog_timeout, unit); in n2rng_write_ctl_one() 168 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one() 201 unsigned long unit, in n2rng_read_diag_data_one() argument 212 unit, ticks); in n2rng_read_diag_data_one() 220 unsigned long unit, in n2rng_generic_read_diag_data() argument [all …]
|
/drivers/ata/ |
D | pata_it821x.c | 159 int unit = adev->devno; in it821x_program_udma() local 168 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma() 189 u8 unit = adev->devno; in it821x_clock_strategy() local 232 if (pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy() 233 it821x_program_udma(ap, pair, itdev->udma[1-unit]); in it821x_clock_strategy() 234 it821x_program(ap, pair, itdev->pio[1-unit]); in it821x_clock_strategy() 240 if (itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy() 241 it821x_program_udma(ap, adev, itdev->udma[unit]); in it821x_clock_strategy() 242 it821x_program(ap, adev, itdev->pio[unit]); in it821x_clock_strategy() 262 int unit = adev->devno; in it821x_passthru_set_piomode() local [all …]
|
D | pata_acpi.c | 113 int unit = adev->devno; in pacpi_set_piomode() local 118 unit = 0; in pacpi_set_piomode() 122 acpi->gtm.drive[unit].pio = t->cycle; in pacpi_set_piomode() 136 int unit = adev->devno; in pacpi_set_dmamode() local 141 unit = 0; in pacpi_set_dmamode() 146 acpi->gtm.drive[unit].dma = t->udma; in pacpi_set_dmamode() 147 acpi->gtm.flags |= (1 << (2 * unit)); in pacpi_set_dmamode() 149 acpi->gtm.drive[unit].dma = t->cycle; in pacpi_set_dmamode() 150 acpi->gtm.flags &= ~(1 << (2 * unit)); in pacpi_set_dmamode()
|
/drivers/media/pci/saa7164/ |
D | saa7164-cards.c | 63 .unit = {{ 109 .unit = {{ 155 .unit = {{ 215 .unit = {{ 275 .unit = {{ 335 .unit = {{ 395 .unit = {{ 451 .unit = {{ 703 struct saa7164_unit *unit; in saa7164_i2caddr_to_unitid() local 707 unit = &saa7164_boards[dev->board].unit[i]; in saa7164_i2caddr_to_unitid() [all …]
|
/drivers/sh/maple/ |
D | maple.c | 57 int unit; member 207 mdev->port, mdev->unit); in maple_allocq() 211 static struct maple_device *maple_alloc_dev(int port, int unit) in maple_alloc_dev() argument 223 mdev->unit = unit; in maple_alloc_dev() 249 int port, unit, from, to, len; in maple_build_block() local 253 unit = mq->dev->unit; in maple_build_block() 256 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); in maple_build_block() 366 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver() 384 mdev->unit, function); in maple_attach_driver() 394 " (%d, %d), with error 0x%X\n", mdev->unit, in maple_attach_driver() [all …]
|
/drivers/net/ppp/ |
D | ppp_mppe.c | 111 int unit; member 273 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, in mppe_init() argument 290 unit); in mppe_init() 305 debugstr, unit, (state->keylen == 16) ? 128 : 40, in mppe_init() 314 debugstr, unit, mkey, skey); in mppe_init() 331 state->unit = unit; in mppe_init() 338 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, in mppe_comp_init() argument 342 return mppe_init(arg, options, optlen, unit, debug, "mppe_comp_init"); in mppe_comp_init() 386 "(have: %d need: %d)\n", state->unit, in mppe_compress() 403 printk(KERN_DEBUG "mppe_compress[%d]: ccount %d\n", state->unit, in mppe_compress() [all …]
|
D | ppp_deflate.c | 30 int unit; member 45 int unit, int hdrlen, int debug); 48 int unit, int hdrlen, int mru, int debug); 141 int unit, int hdrlen, int debug) in z_comp_init() argument 154 state->unit = unit; in z_comp_init() 356 int unit, int hdrlen, int mru, int debug) in z_decomp_init() argument 369 state->unit = unit; in z_decomp_init() 425 state->unit, isize); in z_decompress() 434 state->unit, seq, state->seqno & 0xffff); in z_decompress() 467 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_decompress() [all …]
|
D | bsd_comp.c | 143 unsigned char unit; /* ppp unit number */ member 174 int opt_len, int unit, int debug, int decomp); 176 int opt_len, int unit, int opthdr, int debug); 178 int opt_len, int unit, int opthdr, int mru, 464 int opt_len, int unit, int debug, int decomp) in bsd_init() argument 494 db->unit = unit; in bsd_init() 507 int opt_len, int unit, int opthdr, int debug) in bsd_comp_init() argument 509 return bsd_init (state, options, opt_len, unit, debug, 0); in bsd_comp_init() 513 int opt_len, int unit, int opthdr, int mru, in bsd_decomp_init() argument 516 return bsd_init (state, options, opt_len, unit, debug, 1); in bsd_decomp_init() [all …]
|
/drivers/net/ |
D | Space.c | 42 struct net_device *(*probe)(int unit); 46 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) in probe_list2() argument 52 dev = p->probe(unit); in probe_list2() 131 static void __init ethif_probe2(int unit) in ethif_probe2() argument 133 unsigned long base_addr = netdev_boot_base("eth", unit); in ethif_probe2() 138 (void)( probe_list2(unit, m68k_probes, base_addr == 0) && in ethif_probe2() 139 probe_list2(unit, isa_probes, base_addr == 0)); in ethif_probe2()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_fs.c | 236 char unit[10]; in create_device_files() local 239 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); in create_device_files() 240 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, in create_device_files() 243 printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret); in create_device_files() 251 "failed: %d\n", unit, ret); in create_device_files() 259 "failed: %d\n", unit, ret); in create_device_files() 301 char unit[10]; in remove_device_files() local 306 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); in remove_device_files() 307 dir = lookup_one_len(unit, root, strlen(unit)); in remove_device_files() 311 printk(KERN_ERR "Lookup of %s failed\n", unit); in remove_device_files()
|
/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 378 char unit[10]; in add_cntr_files() local 382 snprintf(unit, sizeof unit, "%u", dd->unit); in add_cntr_files() 383 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, in add_cntr_files() 386 pr_err("create_file(%s) failed: %d\n", unit, ret); in add_cntr_files() 395 unit, ret); in add_cntr_files() 402 unit, ret); in add_cntr_files() 409 unit, "portcounter_names", ret); in add_cntr_files() 421 unit, fname, ret); in add_cntr_files() 431 unit, fname, ret); in add_cntr_files() 440 unit, ret); in add_cntr_files() [all …]
|
/drivers/gpu/drm/nouveau/core/engine/fifo/ |
D | nvc0.c | 605 nvc0_fifo_intr_fault(struct nvc0_fifo_priv *priv, int unit) in nvc0_fifo_intr_fault() argument 607 u32 inst = nv_rd32(priv, 0x002800 + (unit * 0x10)); in nvc0_fifo_intr_fault() 608 u32 valo = nv_rd32(priv, 0x002804 + (unit * 0x10)); in nvc0_fifo_intr_fault() 609 u32 vahi = nv_rd32(priv, 0x002808 + (unit * 0x10)); in nvc0_fifo_intr_fault() 610 u32 stat = nv_rd32(priv, 0x00280c + (unit * 0x10)); in nvc0_fifo_intr_fault() 628 eu = nouveau_enum_find(nvc0_fifo_fault_engine, unit); in nvc0_fifo_intr_fault() 647 snprintf(euunk, sizeof(euunk), "UNK%02x", unit); in nvc0_fifo_intr_fault() 689 nvc0_fifo_intr_pbdma(struct nvc0_fifo_priv *priv, int unit) in nvc0_fifo_intr_pbdma() argument 691 u32 stat = nv_rd32(priv, 0x040108 + (unit * 0x2000)); in nvc0_fifo_intr_pbdma() 692 u32 addr = nv_rd32(priv, 0x0400c0 + (unit * 0x2000)); in nvc0_fifo_intr_pbdma() [all …]
|
D | nve0.c | 720 nve0_fifo_intr_fault(struct nve0_fifo_priv *priv, int unit) in nve0_fifo_intr_fault() argument 722 u32 inst = nv_rd32(priv, 0x002800 + (unit * 0x10)); in nve0_fifo_intr_fault() 723 u32 valo = nv_rd32(priv, 0x002804 + (unit * 0x10)); in nve0_fifo_intr_fault() 724 u32 vahi = nv_rd32(priv, 0x002808 + (unit * 0x10)); in nve0_fifo_intr_fault() 725 u32 stat = nv_rd32(priv, 0x00280c + (unit * 0x10)); in nve0_fifo_intr_fault() 743 eu = nouveau_enum_find(nve0_fifo_fault_engine, unit); in nve0_fifo_intr_fault() 762 snprintf(euunk, sizeof(euunk), "UNK%02x", unit); in nve0_fifo_intr_fault() 830 nve0_fifo_intr_pbdma(struct nve0_fifo_priv *priv, int unit) in nve0_fifo_intr_pbdma() argument 832 u32 stat = nv_rd32(priv, 0x040108 + (unit * 0x2000)); in nve0_fifo_intr_pbdma() 833 u32 addr = nv_rd32(priv, 0x0400c0 + (unit * 0x2000)); in nve0_fifo_intr_pbdma() [all …]
|
/drivers/firewire/ |
D | core-device.c | 146 static void get_modalias_ids(struct fw_unit *unit, int *id) in get_modalias_ids() argument 148 get_ids(&fw_parent_device(unit)->config_rom[5], id); in get_modalias_ids() 149 get_ids(unit->directory, id); in get_modalias_ids() 208 static int get_modalias(struct fw_unit *unit, char *buffer, size_t buffer_size) in get_modalias() argument 212 get_modalias_ids(unit, id); in get_modalias() 221 struct fw_unit *unit = fw_unit(dev); in fw_unit_uevent() local 224 get_modalias(unit, modalias, sizeof(modalias)); in fw_unit_uevent() 370 struct fw_unit *unit = fw_unit(dev); in modalias_show() local 373 length = get_modalias(unit, buf, PAGE_SIZE); in modalias_show() 383 struct fw_unit *unit = fw_unit(dev); in rom_index_show() local [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_driver.c | 861 struct uvc_entity *unit; in uvc_parse_vendor_control() local 906 unit = uvc_alloc_entity(UVC_VC_EXTENSION_UNIT, buffer[3], in uvc_parse_vendor_control() 908 if (unit == NULL) in uvc_parse_vendor_control() 911 memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); in uvc_parse_vendor_control() 912 unit->extension.bNumControls = buffer[20]; in uvc_parse_vendor_control() 913 memcpy(unit->baSourceID, &buffer[22], p); in uvc_parse_vendor_control() 914 unit->extension.bControlSize = buffer[22+p]; in uvc_parse_vendor_control() 915 unit->extension.bmControls = (__u8 *)unit + sizeof(*unit); in uvc_parse_vendor_control() 916 unit->extension.bmControlsType = (__u8 *)unit + sizeof(*unit) in uvc_parse_vendor_control() 918 memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); in uvc_parse_vendor_control() [all …]
|
/drivers/gpu/drm/nouveau/core/subdev/mc/ |
D | base.c | 51 struct nouveau_subdev *unit; in nouveau_mc_intr() local 64 unit = nouveau_subdev(pmc, map->unit); in nouveau_mc_intr() 65 if (unit && unit->intr) in nouveau_mc_intr() 66 unit->intr(unit); in nouveau_mc_intr()
|