Home
last modified time | relevance | path

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

12345

/drivers/s390/cio/
Dblacklist.c102 unsigned int *devno, int msgtrigger) in parse_busid() argument
118 *devno = val; in parse_busid()
136 ret = pure_hex(&str_work, devno, 4, 4, __MAX_SUBCHANNEL); in parse_busid()
180 from = ipl_info.data.ccw.dev_id.devno; in blacklist_parse_parameters()
185 from = ipl_info.data.fcp.dev_id.devno; in blacklist_parse_parameters()
246 is_blacklisted (int ssid, int devno) in is_blacklisted() argument
248 return test_bit (devno, bl_dev[ssid]); in is_blacklisted()
279 int devno; member
293 iter->devno = *offset % (__MAX_SUBCHANNEL + 1); in cio_ignore_proc_seq_start()
310 if (iter->devno == __MAX_SUBCHANNEL) { in cio_ignore_proc_seq_next()
[all …]
Ddevice_id.c109 diag_data.vrdcdvno = dev_id->devno; in diag210_get_dev_info()
123 dev_id->ssid, dev_id->devno); in diag210_get_dev_info()
127 dev_id->ssid, dev_id->devno, rc); in diag210_get_dev_info()
187 "%04x/%02x%s\n", id->ssid, id->devno, rc, in snsid_callback()
/drivers/input/misc/
Dapanel.c255 u8 devno; in apanel_init() local
271 for ( ; (devno = readb(p)) & 0x7f; p += 4) { in apanel_init()
285 switch (devno) { in apanel_init()
287 devno = APANEL_DEV_APPBTN; in apanel_init()
290 devno = APANEL_DEV_LED; in apanel_init()
294 if (devno >= APANEL_DEV_MAX) in apanel_init()
295 pr_notice(APANEL ": unknown device %u found\n", devno); in apanel_init()
296 else if (device_chip[devno] != CHIP_NONE) in apanel_init()
298 devno); in apanel_init()
302 method, devno); in apanel_init()
[all …]
/drivers/char/pcmcia/
Dscr24x_cs.c38 int devno; member
241 dev->devno = find_first_zero_bit(scr24x_minors, SCR24X_DEVS); in scr24x_probe()
242 if (dev->devno >= SCR24X_DEVS) { in scr24x_probe()
269 ret = cdev_add(&dev->c_dev, MKDEV(MAJOR(scr24x_devt), dev->devno), 1); in scr24x_probe()
279 device_create(scr24x_class, NULL, MKDEV(MAJOR(scr24x_devt), dev->devno), in scr24x_probe()
280 NULL, "scr24x%d", dev->devno); in scr24x_probe()
286 if (dev->devno < SCR24X_DEVS) in scr24x_probe()
287 clear_bit(dev->devno, scr24x_minors); in scr24x_probe()
296 device_destroy(scr24x_class, MKDEV(MAJOR(scr24x_devt), dev->devno)); in scr24x_remove()
300 clear_bit(dev->devno, scr24x_minors); in scr24x_remove()
Dcm4040_cs.c522 static int reader_config(struct pcmcia_device *link, int devno) in reader_config() argument
541 DEBUGP(2, dev, "device " DEVICE_NAME "%d at %pR\n", devno, in reader_config()
604 int devno; in reader_detach() local
607 for (devno = 0; devno < CM_MAX_DEV; devno++) { in reader_detach()
608 if (dev_table[devno] == link) in reader_detach()
611 if (devno == CM_MAX_DEV) in reader_detach()
616 dev_table[devno] = NULL; in reader_detach()
619 device_destroy(cmx_class, MKDEV(major, devno)); in reader_detach()
/drivers/ata/
Dlibata-eh.c331 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timeout()
356 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timed_out()
358 ehc->cmd_timeout_idx[dev->devno][ent]++; in ata_internal_cmd_timed_out()
422 return ehc->i.action | ehc->i.dev_action[dev->devno]; in ata_eh_dev_action()
433 ehi->dev_action[tdev->devno] &= ~action; in ata_eh_clear_action()
441 ehi->dev_action[tdev->devno] |= in ata_eh_clear_action()
447 ehi->dev_action[dev->devno] &= ~action; in ata_eh_clear_action()
679 int devno = dev->devno; in ata_scsi_port_error_handler() local
681 ehc->saved_xfer_mode[devno] = dev->xfer_mode; in ata_scsi_port_error_handler()
683 ehc->saved_ncq_enabled |= 1 << devno; in ata_scsi_port_error_handler()
[all …]
Dpata_cs5535.c105 wrmsr(ATAC_CH0D0_PIO + 2 * pair->devno, in cs5535_set_piomode()
109 wrmsr(ATAC_CH0D0_PIO + 2 * adev->devno, in cs5535_set_piomode()
113 rdmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, dummy); in cs5535_set_piomode()
114 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg | 0x80000000UL, 0); in cs5535_set_piomode()
135 rdmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, dummy); in cs5535_set_dmamode()
141 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, 0); in cs5535_set_dmamode()
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 &= ~(2 << (adev->devno * 4)); in radisys_set_dmamode()
144 udma_mode |= (2 << (adev->devno * 4)); in radisys_set_dmamode()
148 udma_enable |= (1 << adev->devno); in radisys_set_dmamode()
Dpata_cmd64x.c113 int arttim = arttim_port[ap->port_no][adev->devno]; in cmd64x_set_timing()
114 int drwtim = drwtim_port[ap->port_no][adev->devno]; in cmd64x_set_timing()
202 int shift = 2 * adev->devno; in cmd64x_set_dmamode()
208 regD &= ~(0x20 << adev->devno); in cmd64x_set_dmamode()
212 regU &= ~(0x05 << adev->devno); in cmd64x_set_dmamode()
218 regU |= 1 << adev->devno; /* UDMA on */ in cmd64x_set_dmamode()
220 regU |= 4 << adev->devno; in cmd64x_set_dmamode()
222 regU &= ~ (1 << adev->devno); /* UDMA off */ in cmd64x_set_dmamode()
226 regD |= 0x20 << adev->devno; in cmd64x_set_dmamode()
Dpata_artop.c102 int dn = adev->devno + 2 * ap->port_no; in artop6210_load_piomode()
129 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_piomode()
156 int dn = adev->devno + 2 * ap->port_no; in artop6260_load_piomode()
189 ultra &= ~(7 << (4 * adev->devno)); /* One nibble per drive */ in artop6260_set_piomode()
208 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_dmamode()
260 ultra &= ~(7 << (4 * adev->devno)); /* One nibble per drive */ in artop6260_set_dmamode()
265 ultra |= (mode << (4 * adev->devno)); in artop6260_set_dmamode()
Dpata_atiixp.c107 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing()
108 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_pio_timing()
155 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode()
171 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_dmamode()
217 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start()
244 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop()
Dpata_cmd640.c60 int arttim = ARTIM0 + 2 * adev->devno; in cmd640_set_piomode()
116 timing->reg58[adev->devno] = (t.active << 4) | t.recover; in cmd640_set_piomode()
136 if (ap->port_no != 0 && adev->devno != timing->last) { in cmd640_qc_issue()
137 pci_write_config_byte(pdev, DRWTIM23, timing->reg58[adev->devno]); in cmd640_qc_issue()
138 timing->last = adev->devno; in cmd640_qc_issue()
Dpata_serverworks.c200 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_piomode()
201 int devbits = (2 * ap->port_no + adev->devno) * 4; in serverworks_set_piomode()
230 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_dmamode()
231 int devbits = 2 * ap->port_no + adev->devno; in serverworks_set_dmamode()
238 ultra &= ~(0x0F << (adev->devno * 4)); in serverworks_set_dmamode()
244 << (adev->devno * 4); in serverworks_set_dmamode()
Dpata_efar.c119 if (adev->devno == 0) { in efar_set_piomode()
142 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in efar_set_piomode()
164 int devid = adev->devno + 2 * ap->port_no; in efar_set_dmamode()
214 if (adev->devno) { /* Slave */ in efar_set_dmamode()
Dpata_legacy.c281 rt &= 0x07 << (3 * adev->devno); in pdc20230_set_piomode()
283 rt |= (1 + 3 * pio) << (3 * adev->devno); in pdc20230_set_piomode()
481 rc |= (adev->devno << 7); in opti82c611a_set_piomode()
491 rc |= adev->devno; /* Index select */ in opti82c611a_set_piomode()
560 rc |= (adev->devno << 7); in opti82c46x_set_piomode()
570 rc |= adev->devno; /* Index select */ in opti82c46x_set_piomode()
656 ld_qdi->clock[adev->devno] = timing; in qdi65x0_set_piomode()
659 outb(timing, ld_qdi->timing + 2 * adev->devno); in qdi65x0_set_piomode()
682 if (ld_qdi->clock[adev->devno] != ld_qdi->last) { in qdi_qc_issue()
684 ld_qdi->last = ld_qdi->clock[adev->devno]; in qdi_qc_issue()
[all …]
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_rdc.c93 unsigned int is_slave = (adev->devno != 0); in rdc_set_piomode()
153 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in rdc_set_piomode()
177 int devid = adev->devno + 2 * ap->port_no; in rdc_set_dmamode()
249 if (adev->devno) { /* Slave */ in rdc_set_dmamode()
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_macio.c398 adev->devno, in pata_macio_set_timings()
405 priv->treg[adev->devno][0] = priv->treg[adev->devno][1] = 0; in pata_macio_set_timings()
417 priv->treg[adev->devno][0] |= t->reg1; in pata_macio_set_timings()
428 priv->treg[adev->devno][0] |= t->reg1; in pata_macio_set_timings()
429 priv->treg[adev->devno][1] |= t->reg2; in pata_macio_set_timings()
432 priv->treg[adev->devno][0], in pata_macio_set_timings()
433 priv->treg[adev->devno][1]); in pata_macio_set_timings()
436 pata_macio_apply_timings(ap, adev->devno); in pata_macio_set_timings()
523 __func__, qc, qc->flags, write, qc->dev->devno); in pata_macio_qc_prep()
596 int dev = qc->dev->devno; in pata_macio_bmdma_setup()
/drivers/staging/most/cdev/
Dcdev.c24 dev_t devno; member
40 dev_t devno; member
98 device_destroy(comp.class, c->devno); in destroy_cdev()
107 ida_simple_remove(&comp.minor_id, MINOR(c->devno)); in destroy_channel()
453 c->devno = MKDEV(comp.major, current_minor); in comp_probe()
456 retval = cdev_add(&c->cdev, c->devno, 1); in comp_probe()
473 c->dev = device_create(comp.class, NULL, c->devno, NULL, "%s", name); in comp_probe()
521 err = alloc_chrdev_region(&comp.devno, 0, CHRDEV_REGION_SIZE, "cdev"); in mod_init()
524 comp.major = MAJOR(comp.devno); in mod_init()
536 unregister_chrdev_region(comp.devno, CHRDEV_REGION_SIZE); in mod_init()
[all …]
/drivers/s390/char/
Dvmur.c146 static struct urdev *urdev_get_from_devno(u16 devno) in urdev_get_from_devno() argument
152 sprintf(bus_id, "0.0.%04x", devno); in urdev_get_from_devno()
373 ur_diag210.vrdcdvno = urd->dev_id.devno; in get_urd_class()
468 static int diag_position_to_record(int devno, int record) in diag_position_to_record() argument
472 cc = diag14(record, devno, 0x28); in diag_position_to_record()
493 static int diag_read_file(int devno, char *buf) in diag_read_file() argument
497 cc = diag14((unsigned long) buf, devno, 0x00); in diag_read_file()
522 rc = diag_position_to_record(urd->dev_id.devno, *offs / PAGE_SIZE + 1); in diag14_read()
536 rc = diag_read_file(urd->dev_id.devno, buf); in diag14_read()
626 rc = diag_read_file(urd->dev_id.devno, buf); in verify_uri_device()
[all …]
/drivers/staging/comedi/drivers/
Dpcm3724.c63 static int compute_buffer(int config, int devno, struct comedi_subdevice *s) in compute_buffer() argument
67 if (devno == 0) in compute_buffer()
73 if (devno == 0) in compute_buffer()
79 if (devno == 0) in compute_buffer()
/drivers/mfd/
Djanz-cmodio.c62 char *name, unsigned int devno, in cmodio_setup_subdevice() argument
71 cell = &priv->cells[devno]; in cmodio_setup_subdevice()
72 res = &priv->resources[devno * 3]; in cmodio_setup_subdevice()
73 pdata = &priv->pdata[devno]; in cmodio_setup_subdevice()
/drivers/media/pci/cx88/
Dcx88-alsa.c846 static int devno; variable
901 core->name, devno, in snd_cx88_create()
922 if (devno >= SNDRV_CARDS) in cx88_audio_initdev()
925 if (!enable[devno]) { in cx88_audio_initdev()
926 ++devno; in cx88_audio_initdev()
930 err = snd_card_new(&pci->dev, index[devno], id[devno], THIS_MODULE, in cx88_audio_initdev()
970 card->driver, devno); in cx88_audio_initdev()
977 devno++; in cx88_audio_initdev()
994 devno--; in cx88_audio_finidev()
/drivers/media/pci/cx25821/
Dcx25821-alsa.c49 static int devno; variable
699 if (devno >= SNDRV_CARDS) { in cx25821_audio_initdev()
704 if (!enable[devno]) { in cx25821_audio_initdev()
705 ++devno; in cx25821_audio_initdev()
710 err = snd_card_new(&dev->pci->dev, index[devno], id[devno], in cx25821_audio_initdev()
754 devno); in cx25821_audio_initdev()
764 devno++; in cx25821_audio_initdev()

12345