Home
last modified time | relevance | path

Searched refs:nres (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.10/arch/arm/mach-mmp/
Ddevices.c22 int i, ret = 0, nres = 0; in pxa_register_device() local
33 res[nres].start = desc->start; in pxa_register_device()
34 res[nres].end = desc->start + desc->size - 1; in pxa_register_device()
35 res[nres].flags = IORESOURCE_MEM; in pxa_register_device()
36 nres++; in pxa_register_device()
40 res[nres].start = desc->irq; in pxa_register_device()
41 res[nres].end = desc->irq; in pxa_register_device()
42 res[nres].flags = IORESOURCE_IRQ; in pxa_register_device()
43 nres++; in pxa_register_device()
46 for (i = 0; i < MAX_RESOURCE_DMA; i++, nres++) { in pxa_register_device()
[all …]
/Linux-v5.10/drivers/hwtracing/intel_th/
Dcore.c390 struct resource *res, int nres) in intel_th_device_add_resources() argument
394 r = kmemdup(res, sizeof(*res) * nres, GFP_KERNEL); in intel_th_device_add_resources()
399 thdev->num_resources = nres; in intel_th_device_add_resources()
422 unsigned nres; member
430 .nres = 1,
444 .nres = 2,
465 .nres = 2,
486 .nres = 2,
504 .nres = 2,
522 .nres = 1,
[all …]
/Linux-v5.10/drivers/pci/
Diov.c464 int nres; in sriov_enable() local
487 nres = 0; in sriov_enable()
492 nres++; in sriov_enable()
494 if (nres != iov->nres) { in sriov_enable()
606 int nres; in sriov_init() local
648 nres = 0; in sriov_init()
671 nres++; in sriov_init()
675 iov->nres = nres; in sriov_init()
Dpci.h325 int nres; /* Number of resources */ member
/Linux-v5.10/drivers/usb/chipidea/
Dci_hdrc_pci.c60 int retval = 0, nres = 2; in ci_hdrc_pci_probe() local
95 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe()
Dcore.c829 struct resource *res, int nres, in ci_hdrc_add_device() argument
851 ret = platform_device_add_resources(pdev, res, nres); in ci_hdrc_add_device()
/Linux-v5.10/drivers/staging/board/
Dboard.c114 unsigned int nres) in board_staging_gic_fixup_resources() argument
118 for (i = 0; i < nres; i++) in board_staging_gic_fixup_resources()
Dboard.h29 void board_staging_gic_fixup_resources(struct resource *res, unsigned int nres);
/Linux-v5.10/arch/powerpc/boot/
Ddevtree.c350 int dt_get_virtual_reg(void *node, void **addr, int nres) in dt_get_virtual_reg() argument
355 n = getprop(node, "virtual-reg", addr, nres * 4); in dt_get_virtual_reg()
359 for (n = 0; n < nres; n++) { in dt_get_virtual_reg()
Dops.h99 int dt_get_virtual_reg(void *node, void **addr, int nres);
/Linux-v5.10/include/linux/usb/
Dchipidea.h98 struct resource *res, int nres,
/Linux-v5.10/fs/fuse/
Dfile.c1443 ssize_t nres; in fuse_direct_io() local
1456 nres = fuse_send_write(ia, pos, nbytes, owner); in fuse_direct_io()
1458 nres = fuse_send_read(ia, pos, nbytes, owner); in fuse_direct_io()
1461 if (!io->async || nres < 0) { in fuse_direct_io()
1466 if (nres < 0) { in fuse_direct_io()
1468 err = nres; in fuse_direct_io()
1471 WARN_ON(nres > nbytes); in fuse_direct_io()
1473 count -= nres; in fuse_direct_io()
1474 res += nres; in fuse_direct_io()
1475 pos += nres; in fuse_direct_io()
[all …]
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/
Dqed_sriov.h89 int nres; /* number of resources */ member
Dqed_sriov.c378 iov->nres, in qed_iov_pci_cfg_info()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h48 int nres; /* number of resources */ member
Dbnx2x_sriov.c1139 iov->nres = 0; in bnx2x_sriov_info()
1149 iov->first_vf_in_pf, iov->nres, iov->cap, iov->ctrl, iov->total, in bnx2x_sriov_info()
/Linux-v5.10/Documentation/driver-api/driver-model/
Dplatform.rst149 struct resource *res, unsigned int nres);
/Linux-v5.10/fs/xfs/libxfs/
Dxfs_bmap.c4723 xfs_filblks_t nres = len1 + len2; /* new total res. */ in xfs_bmap_split_indlen() local
4731 if (ores < nres && avail) in xfs_bmap_split_indlen()
4732 stolen = XFS_FILBLKS_MIN(nres - ores, avail); in xfs_bmap_split_indlen()
4736 if (ores >= nres) in xfs_bmap_split_indlen()
4748 do_div(resfactor, nres); in xfs_bmap_split_indlen()