Home
last modified time | relevance | path

Searched refs:devno (Results 1 – 25 of 88) sorted by relevance

1234

/drivers/s390/cio/
Dblacklist.c106 unsigned int *devno, int msgtrigger) in parse_busid() argument
122 *devno = val; in parse_busid()
140 ret = pure_hex(&str_work, devno, 4, 4, __MAX_SUBCHANNEL); in parse_busid()
227 is_blacklisted (int ssid, int devno) in is_blacklisted() argument
229 return test_bit (devno, bl_dev[ssid]); in is_blacklisted()
260 int devno; member
276 iter->devno = *offset % (__MAX_SUBCHANNEL + 1); in cio_ignore_proc_seq_start()
295 if (iter->devno == __MAX_SUBCHANNEL) { in cio_ignore_proc_seq_next()
296 iter->devno = 0; in cio_ignore_proc_seq_next()
301 iter->devno++; in cio_ignore_proc_seq_next()
[all …]
Ddevice_id.c88 static int diag_get_dev_info(u16 devno, struct senseid *ps) in diag_get_dev_info() argument
96 .vrdcdvno = devno, in diag_get_dev_info()
120 devno, ccode, in diag_get_dev_info()
219 cdev->private->dev_id.devno, sch->schid.ssid, in ccw_device_check_sense_id()
228 cdev->private->dev_id.devno, in ccw_device_check_sense_id()
245 cdev->private->dev_id.devno, in ccw_device_check_sense_id()
261 cdev->private->dev_id.devno, sch->schid.ssid, in ccw_device_check_sense_id()
311 ret = diag_get_dev_info(cdev->private->dev_id.devno, in ccw_device_sense_id_irq()
Ddevice_pgid.c85 cdev->private->dev_id.devno, in __ccw_device_sense_pgid_start()
149 cdev->private->dev_id.devno, in __ccw_device_check_sense_pgid()
164 cdev->private->dev_id.devno, sch->schid.ssid, in __ccw_device_check_sense_pgid()
172 cdev->private->dev_id.devno, sch->schid.ssid, in __ccw_device_check_sense_pgid()
274 cdev->private->dev_id.devno, sch->schid.ssid, in __ccw_device_do_pgid()
316 cdev->private->dev_id.devno, sch->schid.ssid, in __ccw_device_do_nop()
350 cdev->private->dev_id.devno, in __ccw_device_check_pgid()
361 cdev->private->dev_id.devno, sch->schid.ssid, in __ccw_device_check_pgid()
390 cdev->private->dev_id.devno, sch->schid.ssid, in __ccw_device_check_nop()
Ddevice.c392 cdev->private->dev_id.devno); in ccw_device_set_offline()
431 cdev->private->dev_id.devno); in ccw_device_set_online()
454 cdev->private->dev_id.devno); in ccw_device_set_online()
479 cdev->private->dev_id.devno, ret); in online_store_recog_and_online()
806 cdev->private->dev_id.devno, ret); in sch_attach_disconnected_device()
838 cdev->private->dev_id.devno, ret); in sch_attach_orphaned_device()
890 dev_id.devno = sch->schib.pmcw.dev; in ccw_device_move_to_orphanage()
904 cdev->private->dev_id.devno, ret); in ccw_device_move_to_orphanage()
976 cdev->private->dev_id.devno); in io_subchannel_register()
991 cdev->private->dev_id.devno, ret); in io_subchannel_register()
[all …]
/drivers/char/
Dviotape.c74 int devno; member
263 devi->devno = iminor(ino) & 0x1F; in get_dev_info()
373 op->dev = tape_device[devi.devno]; in viotap_write()
403 ((u64)devi.devno << 48) | op->dmaaddr, count, 0, 0); in viotap_write()
417 ret = tape_rc_to_errno(op->rc, "write", devi.devno); in viotap_write()
419 chg_state(devi.devno, VIOT_WRITING, file); in viotap_write()
462 chg_state(devi.devno, VIOT_READING, file); in viotap_read()
465 op->dev = tape_device[devi.devno]; in viotap_read()
483 ((u64)devi.devno << 48) | op->dmaaddr, count, 0, 0); in viotap_read()
494 ret = tape_rc_to_errno(op->rc, "read", devi.devno); in viotap_read()
[all …]
/drivers/input/misc/
Dapanel.c275 u8 devno; in apanel_init() local
291 for ( ; (devno = readb(p)) & 0x7f; p += 4) { in apanel_init()
305 switch (devno) { in apanel_init()
307 devno = APANEL_DEV_APPBTN; in apanel_init()
310 devno = APANEL_DEV_LED; in apanel_init()
314 if (devno >= APANEL_DEV_MAX) in apanel_init()
315 pr_notice(APANEL ": unknown device %u found\n", devno); in apanel_init()
316 else if (device_chip[devno] != CHIP_NONE) in apanel_init()
317 pr_warning(APANEL ": duplicate entry for devno %u\n", devno); in apanel_init()
321 method, devno); in apanel_init()
[all …]
/drivers/ata/
Dlibata-eh.c334 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timeout()
359 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timed_out()
361 ehc->cmd_timeout_idx[dev->devno][ent]++; in ata_internal_cmd_timed_out()
419 return ehc->i.action | ehc->i.dev_action[dev->devno]; in ata_eh_dev_action()
430 ehi->dev_action[tdev->devno] &= ~action; in ata_eh_clear_action()
438 ehi->dev_action[tdev->devno] |= in ata_eh_clear_action()
444 ehi->dev_action[dev->devno] &= ~action; in ata_eh_clear_action()
633 int devno = dev->devno; in ata_scsi_error() local
635 ehc->saved_xfer_mode[devno] = dev->xfer_mode; in ata_scsi_error()
637 ehc->saved_ncq_enabled |= 1 << devno; in ata_scsi_error()
[all …]
Dpata_radisys.c71 idetm_data |= (control << (4 * adev->devno)); in radisys_set_piomode()
130 idetm_data |= control << (4 * adev->devno); in radisys_set_dmamode()
133 udma_enable &= ~(1 << adev->devno); in radisys_set_dmamode()
142 udma_mode &= ~ (1 << adev->devno); in radisys_set_dmamode()
144 udma_mode |= (1 << adev->devno); in radisys_set_dmamode()
148 udma_enable |= (1 << adev->devno); in radisys_set_dmamode()
Dpata_cs5535.c120 wrmsr(ATAC_CH0D0_PIO + 2 * pair->devno, in cs5535_set_piomode()
124 wrmsr(ATAC_CH0D0_PIO + 2 * adev->devno, in cs5535_set_piomode()
128 rdmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, dummy); in cs5535_set_piomode()
129 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg | 0x80000000UL, 0); in cs5535_set_piomode()
150 rdmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, dummy); in cs5535_set_dmamode()
156 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, 0); in cs5535_set_dmamode()
Dpata_cmd64x.c118 int arttim = arttim_port[ap->port_no][adev->devno]; in cmd64x_set_timing()
119 int drwtim = drwtim_port[ap->port_no][adev->devno]; in cmd64x_set_timing()
205 int shift = 2 * adev->devno; in cmd64x_set_dmamode()
211 regD &= ~(0x20 << adev->devno); in cmd64x_set_dmamode()
215 regU &= ~(0x05 << adev->devno); in cmd64x_set_dmamode()
221 regU |= 1 << adev->devno; /* UDMA on */ in cmd64x_set_dmamode()
223 regU |= 4 << adev->devno; in cmd64x_set_dmamode()
225 regU &= ~ (1 << adev->devno); /* UDMA off */ in cmd64x_set_dmamode()
229 regD |= 0x20 << adev->devno; in cmd64x_set_dmamode()
Dpata_atiixp.c63 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing()
66 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_pio_timing()
109 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode()
124 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_dmamode()
166 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start()
193 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop()
Dpata_artop.c118 int dn = adev->devno + 2 * ap->port_no; in artop6210_load_piomode()
145 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_piomode()
172 int dn = adev->devno + 2 * ap->port_no; in artop6260_load_piomode()
205 ultra &= ~(7 << (4 * adev->devno)); /* One nibble per drive */ in artop6260_set_piomode()
224 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_dmamode()
276 ultra &= ~(7 << (4 * adev->devno)); /* One nibble per drive */ in artop6260_set_dmamode()
281 ultra |= (mode << (4 * adev->devno)); in artop6260_set_dmamode()
Dpata_cmd640.c59 int arttim = ARTIM0 + 2 * adev->devno; in cmd640_set_piomode()
115 timing->reg58[adev->devno] = (t.active << 4) | t.recover; in cmd640_set_piomode()
135 if (ap->port_no != 0 && adev->devno != timing->last) { in cmd640_qc_issue()
136 pci_write_config_byte(pdev, DRWTIM23, timing->reg58[adev->devno]); in cmd640_qc_issue()
137 timing->last = adev->devno; in cmd640_qc_issue()
Dpata_serverworks.c243 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_piomode()
244 int devbits = (2 * ap->port_no + adev->devno) * 4; in serverworks_set_piomode()
273 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_dmamode()
274 int devbits = 2 * ap->port_no + adev->devno; in serverworks_set_dmamode()
281 ultra &= ~(0x0F << (adev->devno * 4)); in serverworks_set_dmamode()
287 << (adev->devno * 4); in serverworks_set_dmamode()
Dpata_legacy.c272 rt &= 0x07 << (3 * adev->devno); in pdc20230_set_piomode()
274 rt |= (1 + 3 * pio) << (3 * adev->devno); in pdc20230_set_piomode()
470 rc |= (adev->devno << 7); in opti82c611a_set_piomode()
480 rc |= adev->devno; /* Index select */ in opti82c611a_set_piomode()
549 rc |= (adev->devno << 7); in opti82c46x_set_piomode()
559 rc |= adev->devno; /* Index select */ in opti82c46x_set_piomode()
633 ld_qdi->clock[adev->devno] = timing; in qdi6500_set_piomode()
666 ld_qdi->clock[adev->devno] = timing; in qdi6580dp_set_piomode()
702 ld_qdi->clock[adev->devno] = timing; in qdi6580_set_piomode()
703 outb(timing, ld_qdi->timing + 2 * adev->devno); in qdi6580_set_piomode()
[all …]
Dpata_qdi.c71 qdi->clock[adev->devno] = timing; in qdi6500_set_piomode()
95 qdi->clock[adev->devno] = timing; in qdi6580_set_piomode()
118 if (qdi->clock[adev->devno] != qdi->last) { in qdi_qc_issue()
120 qdi->last = qdi->clock[adev->devno]; in qdi_qc_issue()
121 outb(qdi->clock[adev->devno], qdi->timing); in qdi_qc_issue()
Dpata_it821x.c159 int unit = adev->devno; in it821x_program_udma()
189 u8 unit = adev->devno; in it821x_clock_strategy()
262 int unit = adev->devno; in it821x_passthru_set_piomode()
295 int unit = adev->devno; in it821x_passthru_set_dmamode()
350 int unit = adev->devno; in it821x_passthru_bmdma_start()
373 int unit = adev->devno; in it821x_passthru_bmdma_stop()
395 it821x_program(ap, adev, itdev->pio[adev->devno]); in it821x_passthru_dev_select()
449 it821x_passthru_dev_select(qc->ap, qc->dev->devno); in it821x_passthru_qc_issue()
Dpata_optidma.c166 iowrite8(adev->devno, regio + MISC_REG); in optidma_mode_setup()
176 iowrite8(addr | adev->devno, regio + MISC_REG); in optidma_mode_setup()
206 int dev2 = 2 * adev->devno; in optiplus_mode_setup()
207 int unit = 2 * ap->port_no + adev->devno; in optiplus_mode_setup()
Dpata_cs5530.c70 if (adev->devno) in cs5530_set_piomode()
113 if (adev->devno == 0) /* Master */ in cs5530_set_dmamode()
126 reg |= (1 << (5 + adev->devno)); in cs5530_set_dmamode()
Dpata_efar.c113 if (adev->devno == 0) { in efar_set_piomode()
153 int devid = adev->devno + 2 * ap->port_no; in efar_set_dmamode()
200 if (adev->devno) { /* Slave */ in efar_set_dmamode()
Dpata_cs5536.c155 int dshift = adev->devno ? IDE_D1_SHIFT : IDE_D0_SHIFT; in cs5536_set_piomode()
156 int cshift = adev->devno ? IDE_CAST_D1_SHIFT : IDE_CAST_D0_SHIFT; in cs5536_set_piomode()
203 int dshift = adev->devno ? IDE_D1_SHIFT : IDE_D0_SHIFT; in cs5536_set_dmamode()
/drivers/char/pcmcia/
Dcm4040_cs.c556 static int reader_config(struct pcmcia_device *link, int devno) in reader_config() argument
579 sprintf(dev->node.dev_name, DEVICE_NAME "%d", devno); in reader_config()
581 dev->node.minor = devno; in reader_config()
584 DEBUGP(2, dev, "device " DEVICE_NAME "%d at 0x%.4x-0x%.4x\n", devno, in reader_config()
648 int devno; in reader_detach() local
651 for (devno = 0; devno < CM_MAX_DEV; devno++) { in reader_detach()
652 if (dev_table[devno] == link) in reader_detach()
655 if (devno == CM_MAX_DEV) in reader_detach()
660 dev_table[devno] = NULL; in reader_detach()
663 device_destroy(cmx_class, MKDEV(major, devno)); in reader_detach()
/drivers/s390/char/
Dvmur.c139 static struct urdev *urdev_get_from_devno(u16 devno) in urdev_get_from_devno() argument
145 sprintf(bus_id, "0.0.%04x", devno); in urdev_get_from_devno()
343 ur_diag210.vrdcdvno = urd->dev_id.devno; in get_urd_class()
438 static int diag_position_to_record(int devno, int record) in diag_position_to_record() argument
442 cc = diag14(record, devno, 0x28); in diag_position_to_record()
463 static int diag_read_file(int devno, char *buf) in diag_read_file() argument
467 cc = diag14((unsigned long) buf, devno, 0x00); in diag_read_file()
492 rc = diag_position_to_record(urd->dev_id.devno, *offs / PAGE_SIZE + 1); in diag14_read()
506 rc = diag_read_file(urd->dev_id.devno, buf); in diag14_read()
596 rc = diag_read_file(urd->dev_id.devno, buf); in verify_uri_device()
[all …]
/drivers/media/video/cx88/
Dcx88-alsa.c722 static int devno; variable
777 "latency: %d, mmio: 0x%llx\n", core->name, devno, in snd_cx88_create()
798 if (devno >= SNDRV_CARDS) in cx88_audio_initdev()
801 if (!enable[devno]) { in cx88_audio_initdev()
802 ++devno; in cx88_audio_initdev()
806 card = snd_card_new(index[devno], id[devno], THIS_MODULE, sizeof(snd_cx88_card_t)); in cx88_audio_initdev()
837 card->driver,devno); in cx88_audio_initdev()
844 devno++; in cx88_audio_initdev()
862 devno--; in cx88_audio_finidev()
/drivers/s390/scsi/
Dzfcp_cfdc.c46 u32 devno; member
86 static struct zfcp_adapter *zfcp_cfdc_get_adapter(u32 devno) in zfcp_cfdc_get_adapter() argument
89 snprintf(busid, sizeof(busid), "0.0.%04x", devno); in zfcp_cfdc_get_adapter()
195 adapter = zfcp_cfdc_get_adapter(data->devno); in zfcp_cfdc_dev_ioctl()

1234