/drivers/staging/media/lirc/ |
D | lirc_igorplugusb.c | 204 int devnum; member 223 int devnum; in unregister_from_lirc() local 231 devnum = ir->devnum; in unregister_from_lirc() 240 dprintk(DRIVER_NAME "[%d]: calling lirc_unregister_driver\n", devnum); in unregister_from_lirc() 247 return devnum; in unregister_from_lirc() 259 dprintk(DRIVER_NAME "[%d]: set use inc\n", ir->devnum); in set_use_inc() 276 dprintk(DRIVER_NAME "[%d]: set use dec\n", ir->devnum); in set_use_dec() 351 "[%d]: Device buffer overrun.\n", ir->devnum); in igorplugusb_remote_poll() 371 "error %d\n", ir->devnum, ret); in igorplugusb_remote_poll() 375 ir->devnum, ret); in igorplugusb_remote_poll() [all …]
|
/drivers/mtd/ |
D | mtd_blkdevs.c | 351 if (new->devnum == -1) { in add_mtd_blktrans_dev() 353 if (d->devnum != last_devnum+1) { in add_mtd_blktrans_dev() 355 new->devnum = last_devnum+1; in add_mtd_blktrans_dev() 359 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev() 363 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev() 368 last_devnum = d->devnum; in add_mtd_blktrans_dev() 372 if (new->devnum == -1) in add_mtd_blktrans_dev() 373 new->devnum = last_devnum+1; in add_mtd_blktrans_dev() 378 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev() 379 (tr->part_bits && new->devnum >= 27 * 26)) { in add_mtd_blktrans_dev() [all …]
|
/drivers/infiniband/core/ |
D | uverbs_main.c | 751 int devnum; in ib_uverbs_add_one() local 768 devnum = find_first_zero_bit(dev_map, IB_UVERBS_MAX_DEVICES); in ib_uverbs_add_one() 769 if (devnum >= IB_UVERBS_MAX_DEVICES) { in ib_uverbs_add_one() 771 devnum = find_overflow_devnum(); in ib_uverbs_add_one() 772 if (devnum < 0) in ib_uverbs_add_one() 776 uverbs_dev->devnum = devnum + IB_UVERBS_MAX_DEVICES; in ib_uverbs_add_one() 777 base = devnum + overflow_maj; in ib_uverbs_add_one() 778 set_bit(devnum, overflow_map); in ib_uverbs_add_one() 780 uverbs_dev->devnum = devnum; in ib_uverbs_add_one() 781 base = devnum + IB_UVERBS_BASE_DEV; in ib_uverbs_add_one() [all …]
|
D | ucm.c | 60 int devnum; member 1211 if (ucm_dev->devnum < IB_UCM_MAX_DEVICES) in ib_ucm_release_dev() 1212 clear_bit(ucm_dev->devnum, dev_map); in ib_ucm_release_dev() 1214 clear_bit(ucm_dev->devnum - IB_UCM_MAX_DEVICES, dev_map); in ib_ucm_release_dev() 1261 int devnum; in ib_ucm_add_one() local 1275 devnum = find_first_zero_bit(dev_map, IB_UCM_MAX_DEVICES); in ib_ucm_add_one() 1276 if (devnum >= IB_UCM_MAX_DEVICES) { in ib_ucm_add_one() 1277 devnum = find_overflow_devnum(); in ib_ucm_add_one() 1278 if (devnum < 0) in ib_ucm_add_one() 1281 ucm_dev->devnum = devnum + IB_UCM_MAX_DEVICES; in ib_ucm_add_one() [all …]
|
D | user_mad.c | 1000 int devnum; in ib_umad_init_port() local 1004 devnum = find_first_zero_bit(dev_map, IB_UMAD_MAX_PORTS); in ib_umad_init_port() 1005 if (devnum >= IB_UMAD_MAX_PORTS) { in ib_umad_init_port() 1007 devnum = find_overflow_devnum(); in ib_umad_init_port() 1008 if (devnum < 0) in ib_umad_init_port() 1012 port->dev_num = devnum + IB_UMAD_MAX_PORTS; in ib_umad_init_port() 1013 base = devnum + overflow_maj; in ib_umad_init_port() 1014 set_bit(devnum, overflow_map); in ib_umad_init_port() 1016 port->dev_num = devnum; in ib_umad_init_port() 1017 base = devnum + base_dev; in ib_umad_init_port() [all …]
|
/drivers/parport/ |
D | daisy.c | 43 int devnum; member 56 static void add_dev(int devnum, struct parport *port, int daisy) in add_dev() argument 63 newdev->devnum = devnum; in add_dev() 65 for (p = &topology; *p && (*p)->devnum<devnum; p = &(*p)->next) in add_dev() 213 struct pardevice *parport_open(int devnum, const char *name) in parport_open() argument 221 while (p && p->devnum != devnum) in parport_open()
|
/drivers/usb/early/ |
D | ehci-dbgp.c | 269 static int dbgp_bulk_write(unsigned devnum, unsigned endpoint, in dbgp_bulk_write() argument 279 addr = DBGP_EPADDR(devnum, endpoint); in dbgp_bulk_write() 297 static int dbgp_bulk_read(unsigned devnum, unsigned endpoint, void *data, in dbgp_bulk_read() argument 306 addr = DBGP_EPADDR(devnum, endpoint); in dbgp_bulk_read() 328 static int dbgp_control_msg(unsigned devnum, int requesttype, in dbgp_control_msg() argument 348 addr = DBGP_EPADDR(devnum, 0); in dbgp_control_msg() 364 return dbgp_bulk_read(devnum, 0, data, size, DBGP_LOOPS); in dbgp_control_msg() 496 int devnum; in dbgp_external_startup() local 558 for (devnum = 0; devnum <= 127; devnum++) { in dbgp_external_startup() 559 ret = dbgp_control_msg(devnum, in dbgp_external_startup() [all …]
|
/drivers/usb/core/ |
D | hub.c | 585 clear->devinfo |= udev->devnum << 4; in usb_hub_clear_tt_buffer() 1475 if (hdev->devnum <= 0) in hub_ioctl() 1484 hdev->children[i]->devnum; in hub_ioctl() 1675 int devnum; in choose_devnum() local 1680 devnum = udev->portnum + 1; in choose_devnum() 1681 BUG_ON(test_bit(devnum, bus->devmap.devicemap)); in choose_devnum() 1685 devnum = find_next_zero_bit(bus->devmap.devicemap, 128, in choose_devnum() 1687 if (devnum >= 128) in choose_devnum() 1688 devnum = find_next_zero_bit(bus->devmap.devicemap, in choose_devnum() 1690 bus->devnum_next = ( devnum >= 127 ? 1 : devnum + 1); in choose_devnum() [all …]
|
/drivers/media/video/uvc/ |
D | uvc_driver.c | 325 dev->udev->devnum, in uvc_parse_format() 359 dev->udev->devnum, in uvc_parse_format() 375 dev->udev->devnum, in uvc_parse_format() 393 dev->udev->devnum, in uvc_parse_format() 422 dev->udev->devnum, alts->desc.bInterfaceNumber, in uvc_parse_format() 447 "interface %d FRAME error\n", dev->udev->devnum, in uvc_parse_format() 530 dev->udev->devnum, in uvc_parse_format() 562 "video streaming interface\n", dev->udev->devnum, in uvc_parse_streaming() 569 "claimed\n", dev->udev->devnum, in uvc_parse_streaming() 632 "%d HEADER descriptor not found.\n", dev->udev->devnum, in uvc_parse_streaming() [all …]
|
/drivers/misc/ |
D | hpilo.c | 746 int devnum, minor, start, error; in ilo_probe() local 750 for (devnum = 0; devnum < MAX_ILO_DEV; devnum++) { in ilo_probe() 751 if (ilo_hwdev[devnum] == 0) { in ilo_probe() 752 ilo_hwdev[devnum] = 1; in ilo_probe() 757 if (devnum == MAX_ILO_DEV) { in ilo_probe() 798 start = devnum * MAX_CCB; in ilo_probe() 809 "hpilo!d%dccb%d", devnum, minor); in ilo_probe() 827 ilo_hwdev[devnum] = 0; in ilo_probe()
|
/drivers/net/irda/ |
D | w83977af.h | 22 static inline void w977_select_device(__u8 devnum, unsigned int efio) in w977_select_device() argument 25 outb(devnum, efio+1); in w977_select_device()
|
/drivers/staging/usbip/userspace/libsrc/ |
D | vhci_driver.c | 93 idev->devnum = (devid & 0x0000ffff); in parse_status() 480 static unsigned long get_devid(uint8_t busnum, uint8_t devnum) in get_devid() argument 482 return (busnum << 16) | devnum; in get_devid() 487 uint8_t devnum, uint32_t speed) in usbip_vhci_attach_device() argument 489 int devid = get_devid(busnum, devnum); in usbip_vhci_attach_device()
|
D | vhci_driver.h | 28 uint8_t devnum; member 63 uint8_t devnum, uint32_t speed);
|
D | usbip_common.c | 108 DBG_UDEV_INTEGER(devnum); in dump_usb_device() 189 uint32_t busnum, devnum; in read_usb_device() local 203 READ_ATTR(udev, uint8_t, sdev, devnum, "%d\n"); in read_usb_device() 209 sscanf(sdev->name, "%u-%u", &busnum, &devnum); in read_usb_device()
|
/drivers/staging/ozwpan/ |
D | ozcdev.c | 25 dev_t devnum; member 351 err = alloc_chrdev_region(&g_cdev.devnum, 0, 1, "ozwpan"); in oz_cdev_register() 354 oz_trace("Alloc dev number %d:%d\n", MAJOR(g_cdev.devnum), in oz_cdev_register() 355 MINOR(g_cdev.devnum)); in oz_cdev_register() 361 err = cdev_add(&g_cdev.cdev, g_cdev.devnum, 1); in oz_cdev_register() 370 unregister_chrdev_region(g_cdev.devnum, 1); in oz_cdev_deregister()
|
/drivers/i2c/busses/ |
D | i2c-pxa-pci.c | 26 static int devnum; in add_i2c_device() local 69 pdev = platform_device_alloc("ce4100-i2c", devnum); in add_i2c_device() 89 devnum++; in add_i2c_device()
|
/drivers/ide/ |
D | ide-acpi.c | 116 unsigned int bus, devnum, func; in ide_get_dev_handle() local 124 devnum = PCI_SLOT(pdev->devfn); in ide_get_dev_handle() 127 addr = (u64)(devnum << 16 | func); in ide_get_dev_handle() 129 DEBPRINT("ENTER: pci %02x:%02x.%01x\n", bus, devnum, func); in ide_get_dev_handle() 155 devnum, func, (unsigned long long)addr, *handle); in ide_get_dev_handle()
|
/drivers/md/ |
D | raid10.c | 291 conf->mirrors[r10_bio->devs[slot].devnum].head_position = in update_head_pos() 320 return r10_bio->devs[slot].devnum; in find_bio_disk() 333 dev = r10_bio->devs[slot].devnum; in raid10_end_read_request() 544 r10bio->devs[slot].devnum = d; in raid10_find_phys() 552 r10bio->devs[slot].devnum = d; in raid10_find_phys() 635 int disk = r10_bio->devs[s].devnum; in raid10_mergeable_bvec() 725 disk = r10_bio->devs[slot].devnum; in read_balance() 1179 int d = r10_bio->devs[i].devnum; in make_request() 1269 d = r10_bio->devs[j].devnum; in make_request() 1274 d = r10_bio->devs[j].devnum; in make_request() [all …]
|
/drivers/usb/wusbcore/ |
D | wa-rpipe.c | 343 urb->dev->devnum, urb->dev->devnum | unauth, in rpipe_aim() 348 if (unlikely(urb->dev->devnum == 0x80)) in rpipe_aim() 351 rpipe->descr.bDeviceAddress = urb->dev->devnum | unauth; in rpipe_aim() 412 AIM_CHECK(bDeviceAddress, urb->dev->devnum | unauth, "(%u vs %u)"); in rpipe_check_aim()
|
D | wusbhc.h | 360 if (usb_dev->devnum > 1 && !usb_dev->wusb) { in wusbhc_get_by_usb_dev() 362 dev_err(&usb_dev->dev, "devnum %d wusb %d\n", usb_dev->devnum, in wusbhc_get_by_usb_dev() 364 BUG_ON(usb_dev->devnum > 1 && !usb_dev->wusb); in wusbhc_get_by_usb_dev()
|
/drivers/mtd/nand/ |
D | denali.c | 963 denali->devnum + in handle_ecc() 1557 denali->devnum = ioread32(denali->flash_reg + DEVICES_CONNECTED); in denali_pci_probe() 1558 denali->nand.chipsize <<= (denali->devnum - 1); in denali_pci_probe() 1559 denali->nand.page_shift += (denali->devnum - 1); in denali_pci_probe() 1562 denali->nand.bbt_erase_shift += (denali->devnum - 1); in denali_pci_probe() 1564 denali->nand.chip_shift += (denali->devnum - 1); in denali_pci_probe() 1565 denali->mtd.writesize <<= (denali->devnum - 1); in denali_pci_probe() 1566 denali->mtd.oobsize <<= (denali->devnum - 1); in denali_pci_probe() 1567 denali->mtd.erasesize <<= (denali->devnum - 1); in denali_pci_probe() 1569 denali->bbtskipbytes *= denali->devnum; in denali_pci_probe() [all …]
|
/drivers/usb/mon/ |
D | mon_text.c | 59 char devnum; member 208 ep->devnum = urb->dev->devnum; in mon_text_event() 280 ep->devnum = urb->dev->devnum; in mon_text_error() 491 utype, udir, ep->devnum, ep->epnum); in mon_text_read_head_t() 509 utype, udir, ep->busnum, ep->devnum, ep->epnum); in mon_text_read_head_u()
|
/drivers/staging/usbip/ |
D | stub_dev.c | 278 int devnum = interface_to_devnum(interface); in stub_device_alloc() local 297 sdev->devid = (busnum << 16) | devnum; in stub_device_alloc() 390 udev->bus->busnum, udev->devnum, in stub_probe() 415 "(bus %u dev %u ifn %u)\n", udev->bus->busnum, udev->devnum, in stub_probe()
|
/drivers/media/video/saa7134/ |
D | saa7134-alsa.c | 1060 static int alsa_card_saa7134_create(struct saa7134_dev *dev, int devnum) in alsa_card_saa7134_create() argument 1068 if (devnum >= SNDRV_CARDS) in alsa_card_saa7134_create() 1070 if (!enable[devnum]) in alsa_card_saa7134_create() 1073 err = snd_card_create(index[devnum], id[devnum], THIS_MODULE, in alsa_card_saa7134_create() 1124 printk(KERN_INFO "%s/alsa: %s registered as card %d\n",dev->name,card->longname,index[devnum]); in alsa_card_saa7134_create() 1127 snd_saa7134_cards[devnum] = card; in alsa_card_saa7134_create()
|
/drivers/staging/line6/ |
D | driver.c | 735 int devnum; in line6_probe() local 770 for (devnum = 0; devnum < LINE6_MAX_DEVICES; ++devnum) in line6_probe() 771 if (line6_devices[devnum] == NULL) in line6_probe() 774 if (devnum == LINE6_MAX_DEVICES) { in line6_probe() 1107 line6_devices[devnum] = line6; in line6_probe()
|