Home
last modified time | relevance | path

Searched refs:devs (Results 1 – 25 of 50) sorted by relevance

12

/drivers/comedi/drivers/
Dcomedi_bond.c56 struct bonded_device **devs; member
68 struct bonded_device **devs; in bonding_dio_insn_bits() local
79 devs = devpriv->devs; in bonding_dio_insn_bits()
81 struct bonded_device *bdev = *devs++; in bonding_dio_insn_bits()
132 struct bonded_device **devs; in bonding_dio_insn_config() local
137 devs = devpriv->devs; in bonding_dio_insn_config()
138 for (bdev = *devs++; chan >= bdev->nchans; bdev = *devs++) in bonding_dio_insn_config()
187 struct bonded_device **devs; in do_dev_config() local
242 devs = krealloc(devpriv->devs, in do_dev_config()
243 (devpriv->ndevs + 1) * sizeof(*devs), in do_dev_config()
[all …]
/drivers/watchdog/
Dcpwd.c91 } devs[WD_NUMDEVS]; member
210 (p->devs[index].intr_mask); in cpwd_toggleintr()
226 cpwd_writew(WD_BLIMIT, p->devs[index].regs + WD_LIMIT); in cpwd_resetbrokentimer()
246 if (p->devs[id].runstatus & WD_STAT_BSTOP) { in cpwd_brokentimer()
264 if (cpwd_readb(p->devs[index].regs + WD_STATUS) & WD_S_RUNNING) in cpwd_pingtimer()
265 cpwd_readw(p->devs[index].regs + WD_DCNTR); in cpwd_pingtimer()
274 if (cpwd_readb(p->devs[index].regs + WD_STATUS) & WD_S_RUNNING) { in cpwd_stoptimer()
278 p->devs[index].runstatus |= WD_STAT_BSTOP; in cpwd_stoptimer()
294 p->devs[index].runstatus &= ~WD_STAT_BSTOP; in cpwd_starttimer()
296 p->devs[index].runstatus &= ~WD_STAT_SVCD; in cpwd_starttimer()
[all …]
/drivers/md/
Draid10.c94 int size = offsetof(struct r10bio, devs[conf->geo.raid_disks]); in r10bio_pool_alloc()
151 r10_bio->devs[j].bio = bio; in r10buf_pool_alloc()
157 r10_bio->devs[j].repl_bio = bio; in r10buf_pool_alloc()
164 struct bio *rbio = r10_bio->devs[j].repl_bio; in r10buf_pool_alloc()
171 bio = r10_bio->devs[j].bio; in r10buf_pool_alloc()
199 if (r10_bio->devs[j].bio) in r10buf_pool_alloc()
200 bio_put(r10_bio->devs[j].bio); in r10buf_pool_alloc()
201 if (r10_bio->devs[j].repl_bio) in r10buf_pool_alloc()
202 bio_put(r10_bio->devs[j].repl_bio); in r10buf_pool_alloc()
218 struct bio *bio = r10bio->devs[j].bio; in r10buf_pool_free()
[all …]
/drivers/char/agp/
Dali-agp.c304 struct agp_device_ids *devs = ali_agp_device_ids; in agp_ali_probe() local
314 for (j = 0; devs[j].chipset_name; j++) { in agp_ali_probe()
315 if (pdev->device == devs[j].device_id) in agp_ali_probe()
340 devs[j].chipset_name = "M1631"; in agp_ali_probe()
343 devs[j].chipset_name = "M1632"; in agp_ali_probe()
346 devs[j].chipset_name = "M1641"; in agp_ali_probe()
349 devs[j].chipset_name = "M1621"; in agp_ali_probe()
352 devs[j].chipset_name = "M1647"; in agp_ali_probe()
355 devs[j].chipset_name = "M1651"; in agp_ali_probe()
365 dev_info(&pdev->dev, "ALi %s chipset\n", devs[j].chipset_name); in agp_ali_probe()
Dati-agp.c496 struct agp_device_ids *devs = ati_agp_device_ids; in agp_ati_probe() local
506 for (j = 0; devs[j].chipset_name; j++) { in agp_ati_probe()
507 if (pdev->device == devs[j].device_id) in agp_ati_probe()
525 dev_info(&pdev->dev, "Ati %s chipset\n", devs[j].chipset_name); in agp_ati_probe()
/drivers/infiniband/hw/usnic/
Dusnic_uiom.c461 INIT_LIST_HEAD(&pd->devs); in usnic_uiom_alloc_pd()
494 list_add_tail(&uiom_dev->link, &pd->devs); in usnic_uiom_attach_dev_to_pd()
513 list_for_each_entry(uiom_dev, &pd->devs, link) { in usnic_uiom_detach_dev_from_pd()
537 struct device **devs; in usnic_uiom_get_dev_list() local
541 devs = kcalloc(pd->dev_cnt + 1, sizeof(*devs), GFP_ATOMIC); in usnic_uiom_get_dev_list()
542 if (!devs) { in usnic_uiom_get_dev_list()
543 devs = ERR_PTR(-ENOMEM); in usnic_uiom_get_dev_list()
547 list_for_each_entry(uiom_dev, &pd->devs, link) { in usnic_uiom_get_dev_list()
548 devs[i++] = uiom_dev->dev; in usnic_uiom_get_dev_list()
552 return devs; in usnic_uiom_get_dev_list()
[all …]
Dusnic_uiom.h61 struct list_head devs; member
89 void usnic_uiom_free_dev_list(struct device **devs);
/drivers/char/tpm/
Dtpm2-space.c583 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release()
595 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove()
596 put_device(&chip->devs); in tpm_devs_remove()
607 device_initialize(&chip->devs); in tpm_devs_add()
608 chip->devs.parent = chip->dev.parent; in tpm_devs_add()
609 chip->devs.class = tpmrm_class; in tpm_devs_add()
617 chip->devs.release = tpm_devs_release; in tpm_devs_add()
618 chip->devs.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES); in tpm_devs_add()
622 rc = dev_set_name(&chip->devs, "tpmrm%d", chip->dev_num); in tpm_devs_add()
626 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add()
[all …]
/drivers/nvdimm/
Dnamespace_devs.c1808 struct device *dev, **devs; in create_namespace_io() local
1815 devs = kcalloc(2, sizeof(struct device *), GFP_KERNEL); in create_namespace_io()
1816 if (!devs) { in create_namespace_io()
1830 devs[0] = dev; in create_namespace_io()
1831 return devs; in create_namespace_io()
2212 struct nd_namespace_label *nd_label, struct device **devs, in add_namespace_resource() argument
2220 u8 *uuid = namespace_to_uuid(devs[i]); in add_namespace_resource()
2230 if (is_namespace_blk(devs[i])) { in add_namespace_resource()
2232 to_nd_namespace_blk(devs[i]), in add_namespace_resource()
2323 struct device *dev, **devs = NULL; in scan_labels() local
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddevcom.c29 struct mlx5_core_dev *devs[MLX5_DEVCOM_PORTS_SUPPORTED]; member
88 if (iter->devs[i]) in mlx5_devcom_register_device()
89 tmp_dev = iter->devs[i]; in mlx5_devcom_register_device()
116 priv->devs[idx] = dev; in mlx5_devcom_register_device()
143 priv->devs[devcom->idx] = NULL; in mlx5_devcom_unregister_device()
148 if (priv->devs[i]) in mlx5_devcom_unregister_device()
/drivers/macintosh/
Dmacio-adb.c67 static int macio_adb_autopoll(int devs);
133 static int macio_adb_autopoll(int devs) in macio_adb_autopoll() argument
138 out_8(&adb->active_hi.r, devs >> 8); in macio_adb_autopoll()
139 out_8(&adb->active_lo.r, devs); in macio_adb_autopoll()
140 out_8(&adb->autopoll.r, devs? APE: 0); in macio_adb_autopoll()
Dvia-macii.c93 static int macii_autopoll(int devs);
285 static int macii_autopoll(int devs) in macii_autopoll() argument
292 autopoll_devs = (unsigned int)devs & 0xFFFE; in macii_autopoll()
Dadb-iop.c259 static int adb_iop_autopoll(int devs) in adb_iop_autopoll() argument
263 unsigned int mask = (unsigned int)devs & 0xFFFE; in adb_iop_autopoll()
/drivers/iommu/intel/
Dsvm.c57 list_for_each_entry_rcu(t, &svm->devs, list) { in svm_lookup_device_by_sid()
74 list_for_each_entry_rcu(t, &svm->devs, list) { in svm_lookup_device_by_dev()
237 list_for_each_entry_rcu(sdev, &svm->devs, list) in intel_flush_svm_range()
271 list_for_each_entry_rcu(sdev, &svm->devs, list) in intel_mm_release()
310 if (WARN_ON(list_empty(&svm->devs))) in pasid_to_svm_sdev()
402 INIT_LIST_HEAD_RCU(&svm->devs); in intel_svm_bind_gpasid()
452 list_add_rcu(&sdev->list, &svm->devs); in intel_svm_bind_gpasid()
454 if (!IS_ERR_OR_NULL(svm) && list_empty(&svm->devs)) { in intel_svm_bind_gpasid()
488 if (list_empty(&svm->devs)) { in intel_svm_unbind_gpasid()
557 INIT_LIST_HEAD_RCU(&svm->devs); in intel_svm_bind_mm()
[all …]
/drivers/mfd/
Ducb1x00-core.c408 list_add_tail(&dev->dev_node, &ucb->devs); in ucb1x00_add_dev()
409 list_add_tail(&dev->drv_node, &drv->devs); in ucb1x00_add_dev()
586 INIT_LIST_HEAD(&ucb->devs); in ucb1x00_probe()
619 list_for_each_safe(l, n, &ucb->devs) { in ucb1x00_remove()
640 INIT_LIST_HEAD(&drv->devs); in ucb1x00_register_driver()
656 list_for_each_safe(l, n, &drv->devs) { in ucb1x00_unregister_driver()
671 list_for_each_entry(udev, &ucb->devs, dev_node) { in ucb1x00_suspend()
724 list_for_each_entry(udev, &ucb->devs, dev_node) { in ucb1x00_resume()
Dkempld-core.c94 struct mfd_cell devs[KEMPLD_MAX_DEVS] = {}; in kempld_register_cells_generic() local
98 devs[i++].name = kempld_dev_names[KEMPLD_I2C]; in kempld_register_cells_generic()
101 devs[i++].name = kempld_dev_names[KEMPLD_WDT]; in kempld_register_cells_generic()
104 devs[i++].name = kempld_dev_names[KEMPLD_GPIO]; in kempld_register_cells_generic()
107 devs[i++].name = kempld_dev_names[KEMPLD_UART]; in kempld_register_cells_generic()
109 return mfd_add_devices(pld->dev, -1, devs, i, NULL, 0, NULL); in kempld_register_cells_generic()
/drivers/sbus/char/
Dbbc_i2c.c59 if (bp->devs[i].device == op) { in set_device_claimage()
60 bp->devs[i].client_claimed = val; in set_device_claimage()
75 if (!(op = bp->devs[i].device)) in bbc_i2c_getdev()
335 bp->devs[entry].device = child_op; in attach_one_i2c()
336 bp->devs[entry].client_claimed = 0; in attach_one_i2c()
/drivers/mtd/
Dmtd_blkdevs.c285 list_for_each_entry(d, &tr->devs, list) { in add_mtd_blktrans_dev()
316 list_add_tail(&new->list, &tr->devs); in add_mtd_blktrans_dev()
451 list_for_each_entry_safe(dev, next, &tr->devs, list) in blktrans_notify_remove()
495 INIT_LIST_HEAD(&tr->devs); in register_mtd_blktrans()
515 list_for_each_entry_safe(dev, next, &tr->devs, list) in deregister_mtd_blktrans()
521 BUG_ON(!list_empty(&tr->devs)); in deregister_mtd_blktrans()
/drivers/usb/host/
Dxhci.c1549 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { in xhci_check_args()
1555 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1590 out_ctx = xhci->devs[slot_id]->out_ctx; in xhci_check_maxpacket()
1615 command->in_ctx = xhci->devs[slot_id]->in_ctx; in xhci_check_maxpacket()
1624 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, in xhci_check_maxpacket()
1625 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1672 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1677 if (xhci->devs[slot_id]->flags & VDEV_PORT_ERROR) { in xhci_urb_enqueue()
1821 vdev = xhci->devs[urb->dev->slot_id]; in xhci_urb_dequeue()
1960 in_ctx = xhci->devs[udev->slot_id]->in_ctx; in xhci_drop_endpoint()
[all …]
Dxhci-ring.c454 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
482 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
519 if (!xhci->devs[slot_id]) { in xhci_get_virt_ep()
524 return &xhci->devs[slot_id]->eps[ep_index]; in xhci_get_virt_ep()
592 struct xhci_virt_device *dev = xhci->devs[slot_id]; in xhci_move_dequeue_past_td()
1078 if (!xhci->devs[slot_id]) in xhci_handle_cmd_stop_ep()
1242 if (!xhci->devs[i]) in xhci_hc_died()
1520 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1550 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_config_ep()
1596 vdev = xhci->devs[slot_id]; in xhci_handle_cmd_addr_dev()
[all …]
/drivers/media/pci/mantis/
Dhopper_cards.c52 static int devs; variable
159 mantis->num = devs; in hopper_pci_probe()
204 devs++; in hopper_pci_probe()
Dmantis_cards.c46 static int devs; variable
166 mantis->num = devs; in mantis_pci_probe()
225 devs++; in mantis_pci_probe()
/drivers/remoteproc/
Dqcom_q6v5_pas.c323 static int adsp_pds_attach(struct device *dev, struct device **devs, in adsp_pds_attach() argument
335 devs[0] = dev; in adsp_pds_attach()
344 devs[i] = dev_pm_domain_attach_by_name(dev, pd_names[i]); in adsp_pds_attach()
345 if (IS_ERR_OR_NULL(devs[i])) { in adsp_pds_attach()
346 ret = PTR_ERR(devs[i]) ? : -ENODATA; in adsp_pds_attach()
355 dev_pm_domain_detach(devs[i], false); in adsp_pds_attach()
/drivers/staging/board/
Dboard.c197 void __init board_staging_register_devices(const struct board_staging_dev *devs, in board_staging_register_devices() argument
203 board_staging_register_device(&devs[i]); in board_staging_register_devices()
/drivers/pnp/pnpbios/
Dcore.c348 unsigned int devs = 0; in build_devlist() local
371 devs++; in build_devlist()
384 nodes_got, nodes_got != 1 ? "s" : "", devs); in build_devlist()

12