| /linux/drivers/char/agp/ |
| H A D | isoch.c | 36 static void agp_3_5_dev_list_sort(struct agp_3_5_dev *list, unsigned int ndevs) in agp_3_5_dev_list_sort() argument 65 struct agp_3_5_dev *dev_list, unsigned int ndevs) in agp_3_5_isochronous_node_enable() argument 95 master = kmalloc_objs(*master, ndevs); in agp_3_5_isochronous_node_enable() 117 agp_3_5_dev_list_sort(dev_list, ndevs); in agp_3_5_isochronous_node_enable() 180 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable() 207 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable() 221 master[ndevs-1].n += rem; in agp_3_5_isochronous_node_enable() 241 step = rq_async / ndevs; in agp_3_5_isochronous_node_enable() 242 rem_async = step + (rq_async % ndevs); in agp_3_5_isochronous_node_enable() 247 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | mbox.c | 62 void *reg_base, int direction, int ndevs) in cn20k_mbox_setup() argument 136 mbox->dev = kzalloc_objs(struct otx2_mbox_dev, ndevs); in cn20k_mbox_setup() 141 mbox->ndevs = ndevs; in cn20k_mbox_setup() 147 void *reg_base, int direction, int ndevs) in otx2_mbox_setup() argument 151 direction, ndevs); in otx2_mbox_setup() 214 mbox->dev = kzalloc_objs(struct otx2_mbox_dev, ndevs); in otx2_mbox_setup() 219 mbox->ndevs = ndevs; in otx2_mbox_setup() 225 void *reg_base, int direction, int ndevs) in otx2_mbox_init() argument 230 err = otx2_mbox_setup(mbox, pdev, reg_base, direction, ndevs); in otx2_mbox_init() 236 for (devid = 0; devid < ndevs; devid++) { in otx2_mbox_init() [all …]
|
| H A D | mbox.h | 88 u16 ndevs; /* The number of peers */ member 118 int direction, int ndevs); 122 int direction, int ndevs, unsigned long *bmap);
|
| /linux/drivers/comedi/drivers/ |
| H A D | comedi_bond.c | 57 unsigned int ndevs; member 243 (devpriv->ndevs + 1) * sizeof(*devs), in do_dev_config() 252 devpriv->devs[devpriv->ndevs++] = bdev; in do_dev_config() 309 devpriv->nchans, devpriv->ndevs); in bonding_attach() 322 while (devpriv->ndevs--) { in bonding_detach() 325 bdev = devpriv->devs[devpriv->ndevs]; in bonding_detach()
|
| /linux/drivers/mfd/ |
| H A D | ocelot-core.c | 220 int i, ndevs; in ocelot_core_init() local 222 ndevs = ARRAY_SIZE(vsc7512_devs); in ocelot_core_init() 224 for (i = 0; i < ndevs; i++) in ocelot_core_init() 227 return devm_mfd_add_devices(dev, PLATFORM_DEVID_AUTO, vsc7512_devs, ndevs, NULL, 0, NULL); in ocelot_core_init()
|
| /linux/tools/usb/usbip/libsrc/ |
| H A D | usbip_device_driver.c | 140 hdriver->ndevs = 0; in usbip_device_driver_open() 144 if (ret || hdriver->ndevs == 0) in usbip_device_driver_open()
|
| H A D | usbip_host_driver.c | 31 hdriver->ndevs = 0; in usbip_host_driver_open() 35 if (ret || hdriver->ndevs == 0) in usbip_host_driver_open()
|
| H A D | usbip_host_common.c | 148 hdriver->ndevs++; in refresh_exported_devices() 152 if (hdriver->ndevs == 0) in refresh_exported_devices() 205 hdriver->ndevs = 0; in usbip_generic_refresh_device_list()
|
| H A D | usbip_host_common.h | 39 int ndevs; member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | api.h | 29 void *reg_base, int direction, int ndevs);
|
| /linux/fs/btrfs/ |
| H A D | volumes.c | 5547 int ndevs = 0; in alloc_virtual_chunk() local 5586 devices_info[ndevs].dev_offset = 0; in alloc_virtual_chunk() 5587 devices_info[ndevs].total_avail = avail; in alloc_virtual_chunk() 5588 devices_info[ndevs].max_avail = avail; in alloc_virtual_chunk() 5589 devices_info[ndevs].dev = device; in alloc_virtual_chunk() 5590 ++ndevs; in alloc_virtual_chunk() 5592 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in alloc_virtual_chunk() 5594 ndevs = rounddown(ndevs, raid_attr->devs_increment); in alloc_virtual_chunk() 5595 if (ndevs < raid_attr->devs_min) in alloc_virtual_chunk() 5598 ndevs = min(ndevs, (int)raid_attr->devs_max); in alloc_virtual_chunk() [all …]
|
| /linux/drivers/tty/ |
| H A D | nozomi.c | 350 static struct nozomi *ndevs[NOZOMI_MAX_CARDS]; variable 360 return tty ? ndevs[tty->index / MAX_PORT] : NULL; in get_dc_by_tty() 1291 for (ndev_idx = 0; ndev_idx < ARRAY_SIZE(ndevs); ndev_idx++) in nozomi_card_init() 1292 if (!ndevs[ndev_idx]) in nozomi_card_init() 1295 if (ndev_idx >= ARRAY_SIZE(ndevs)) { in nozomi_card_init() 1370 ndevs[ndev_idx] = dc; in nozomi_card_init() 1480 ndevs[dc->index_start / MAX_PORT] = NULL; in nozomi_card_exit()
|
| /linux/fs/nfs/ |
| H A D | callback_xdr.c | 330 args->ndevs = n; in decode_devicenotify_args() 331 dprintk("%s: ndevs %d\n", __func__, args->ndevs); in decode_devicenotify_args() 337 args->ndevs = 0; in decode_devicenotify_args() 339 __func__, ntohl(status), args->ndevs); in decode_devicenotify_args()
|
| H A D | callback_proc.c | 385 for (i = 0; i < args->ndevs; i++) { in nfs4_callback_devicenotify()
|
| /linux/fs/f2fs/ |
| H A D | super.c | 3757 int ndevs; in f2fs_get_devices() local 3766 ndevs = sbi->s_ndevs; in f2fs_get_devices() 3767 if (WARN_ON_ONCE(ndevs > FSCRYPT_MAX_DEVICES)) in f2fs_get_devices() 3768 ndevs = FSCRYPT_MAX_DEVICES; in f2fs_get_devices() 3770 for (i = 0; i < ndevs; i++) in f2fs_get_devices() 3772 return ndevs; in f2fs_get_devices()
|