Searched refs:res (Results 151 - 175 of 3701) sorted by relevance

1234567891011>>

/linux-master/tools/perf/util/
H A Dthreads.c67 struct thread *th, *res = NULL; local
72 res = thread__get(th);
74 return res;
95 struct thread *res; local
98 res = __threads_table_entry__get_last_match(table, tid);
99 if (!res) {
100 if (hashmap__find(&table->shard, tid, &res))
101 res = thread__get(res);
104 if (res)
112 struct thread *res = NULL; local
[all...]
/linux-master/tools/testing/nvdimm/test/
H A Diomap.c55 struct nfit_test_resource *res; local
58 res = __get_nfit_res(resource);
61 return res;
69 - nfit_res->res.start \
81 - nfit_res->res.start;
92 return nfit_res->buf + offset - nfit_res->res.start;
134 return nfit_res->buf + offset - nfit_res->res.start;
154 return nfit_res->buf + offset - nfit_res->res.start;
206 struct resource *res = *((struct resource **) data); local
208 WARN_ON(!nfit_test_release_region(NULL, &iomem_resource, res
214 struct resource *res = *((struct resource **) __res); local
229 struct resource *res = NULL; local
267 struct resource *res = NULL; local
334 __wrap_insert_resource(struct resource *parent, struct resource *res) argument
342 __wrap_remove_resource(struct resource *res) argument
[all...]
/linux-master/drivers/gpu/drm/ttm/tests/
H A Dttm_resource_test.c111 struct ttm_resource *res; local
124 res = kunit_kzalloc(test, sizeof(*res), GFP_KERNEL);
125 KUNIT_ASSERT_NOT_NULL(test, res);
132 ttm_resource_init(bo, place, res);
134 KUNIT_ASSERT_EQ(test, res->start, 0);
135 KUNIT_ASSERT_EQ(test, res->size, RES_SIZE);
136 KUNIT_ASSERT_EQ(test, res->mem_type, place->mem_type);
137 KUNIT_ASSERT_EQ(test, res->placement, place->flags);
138 KUNIT_ASSERT_PTR_EQ(test, res
154 struct ttm_resource *res; local
184 struct ttm_resource *res; local
229 struct ttm_resource *res; local
270 struct ttm_resource *res; local
295 struct ttm_resource *res; local
[all...]
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dqplib_res.c63 static void __free_pbl(struct bnxt_qplib_res *res, struct bnxt_qplib_pbl *pbl, argument
66 struct pci_dev *pdev = res->pdev;
105 static int __alloc_pbl(struct bnxt_qplib_res *res, argument
109 struct pci_dev *pdev = res->pdev;
151 __free_pbl(res, pbl, is_umem);
156 void bnxt_qplib_free_hwq(struct bnxt_qplib_res *res, argument
168 __free_pbl(res, &hwq->pbl[i], hwq->is_user);
170 __free_pbl(res, &hwq->pbl[i], false);
190 struct bnxt_qplib_res *res; local
194 res
364 bnxt_qplib_free_ctx(struct bnxt_qplib_res *res, struct bnxt_qplib_ctx *ctx) argument
382 bnxt_qplib_alloc_tqm_rings(struct bnxt_qplib_res *res, struct bnxt_qplib_ctx *ctx) argument
463 bnxt_qplib_setup_tqm_rings(struct bnxt_qplib_res *res, struct bnxt_qplib_ctx *ctx) argument
498 bnxt_qplib_alloc_ctx(struct bnxt_qplib_res *res, struct bnxt_qplib_ctx *ctx, bool virt_fn, bool is_p5) argument
567 bnxt_qplib_free_sgid_tbl(struct bnxt_qplib_res *res, struct bnxt_qplib_sgid_tbl *sgid_tbl) argument
582 bnxt_qplib_alloc_sgid_tbl(struct bnxt_qplib_res *res, struct bnxt_qplib_sgid_tbl *sgid_tbl, u16 max) argument
616 bnxt_qplib_cleanup_sgid_tbl(struct bnxt_qplib_res *res, struct bnxt_qplib_sgid_tbl *sgid_tbl) argument
645 bnxt_qplib_alloc_pd(struct bnxt_qplib_res *res, struct bnxt_qplib_pd *pd) argument
666 bnxt_qplib_dealloc_pd(struct bnxt_qplib_res *res, struct bnxt_qplib_pd_tbl *pdt, struct bnxt_qplib_pd *pd) argument
692 bnxt_qplib_alloc_pd_tbl(struct bnxt_qplib_res *res, struct bnxt_qplib_pd_tbl *pdt, u32 max) argument
713 bnxt_qplib_alloc_dpi(struct bnxt_qplib_res *res, struct bnxt_qplib_dpi *dpi, void *app, u8 type) argument
763 bnxt_qplib_dealloc_dpi(struct bnxt_qplib_res *res, struct bnxt_qplib_dpi *dpi) argument
786 bnxt_qplib_free_dpi_tbl(struct bnxt_qplib_res *res, struct bnxt_qplib_dpi_tbl *dpit) argument
796 bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res *res, struct bnxt_qplib_dev_attr *dev_attr) argument
871 bnxt_qplib_cleanup_res(struct bnxt_qplib_res *res) argument
876 bnxt_qplib_init_res(struct bnxt_qplib_res *res) argument
883 bnxt_qplib_free_res(struct bnxt_qplib_res *res) argument
890 bnxt_qplib_alloc_res(struct bnxt_qplib_res *res, struct pci_dev *pdev, struct net_device *netdev, struct bnxt_qplib_dev_attr *dev_attr) argument
917 bnxt_qplib_unmap_db_bar(struct bnxt_qplib_res *res) argument
930 bnxt_qplib_map_db_bar(struct bnxt_qplib_res *res) argument
[all...]
/linux-master/include/linux/
H A Dpnp.h37 static inline int pnp_resource_valid(struct resource *res) argument
39 if (res)
44 static inline int pnp_resource_enabled(struct resource *res) argument
46 if (res && !(res->flags & IORESOURCE_DISABLED))
51 static inline resource_size_t pnp_resource_len(struct resource *res) argument
53 if (res->start == 0 && res->end == 0)
55 return resource_size(res);
62 struct resource *res local
72 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); local
82 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); local
97 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); local
108 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); local
118 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); local
127 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); local
142 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); local
152 struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); local
161 struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); local
176 struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); local
185 struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); local
[all...]
H A Dapple-gmux.h103 struct resource *res; local
120 res = pnp_get_resource(pnp_dev, IORESOURCE_IO, 0);
121 if (res && resource_size(res) >= GMUX_MIN_IO_LEN) {
126 ver_major = inb(res->start + GMUX_PORT_VERSION_MAJOR);
127 ver_minor = inb(res->start + GMUX_PORT_VERSION_MINOR);
128 ver_release = inb(res->start + GMUX_PORT_VERSION_RELEASE);
130 if (apple_gmux_is_indexed(res->start))
136 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0);
137 if (res
[all...]
/linux-master/drivers/soundwire/
H A Dintel_init.c31 static struct sdw_intel_link_dev *intel_link_dev_register(struct sdw_intel_res *res, argument
48 auxdev->dev.parent = res->parent;
64 link->hw_ops = res->hw_ops;
65 link->mmio_base = res->mmio_base;
66 if (!res->ext) {
67 link->registers = res->mmio_base + SDW_LINK_BASE
70 link->shim = res->mmio_base + res->shim_base;
71 link->alh = res->mmio_base + res
154 sdw_intel_probe_controller(struct sdw_intel_res *res) argument
333 sdw_intel_probe(struct sdw_intel_res *res) argument
[all...]
/linux-master/drivers/pci/
H A Dsetup-bus.c33 struct resource *res; member in struct:pci_dev_resource
56 * @res: Resource to be tracked
61 struct resource *res, resource_size_t add_size,
70 tmp->res = res;
72 tmp->start = res->start;
73 tmp->end = res->end;
74 tmp->flags = res->flags;
83 static void remove_from_list(struct list_head *head, struct resource *res) argument
88 if (dev_res->res
60 add_to_list(struct list_head *head, struct pci_dev *dev, struct resource *res, resource_size_t add_size, resource_size_t min_align) argument
96 res_to_dev_res(struct list_head *head, struct resource *res) argument
109 get_res_add_size(struct list_head *head, struct resource *res) argument
118 get_res_add_align(struct list_head *head, struct resource *res) argument
194 reset_resource(struct resource *res) argument
215 struct resource *res; local
278 struct resource *res; local
322 pci_need_to_release(unsigned long mask, struct resource *res) argument
464 struct resource *res = save_res->res; local
509 struct resource *res; local
576 struct resource *res; local
615 struct resource *res; local
636 struct resource *res; local
1106 pci_cardbus_resource_alignment(struct resource *res) argument
1628 struct resource *res; local
1751 adjust_bridge_window(struct pci_dev *bridge, struct resource *res, struct list_head *add_list, resource_size_t new_size) argument
1782 remove_dev_resource(struct resource *avail, struct pci_dev *dev, struct resource *res) argument
1801 struct resource *res; local
1921 struct resource *res; local
2119 struct resource *res = fail_res->res; local
2203 struct resource *res = fail_res->res; local
2247 struct resource *res = &bridge->resource[i]; local
2305 struct resource *res = dev_res->res; local
2315 struct resource *res = dev_res->res; local
[all...]
H A Drom.c26 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; local
30 if (!res->flags)
34 if (res->flags & IORESOURCE_ROM_SHADOW)
42 pcibios_resource_to_bus(pdev->bus, &region, res);
60 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; local
63 if (res->flags & IORESOURCE_ROM_SHADOW)
138 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; local
143 if (res->parent == NULL && pci_assign_resource(pdev, PCI_ROM_RESOURCE))
174 if (!(res->flags & IORESOURCE_ROM_ENABLE))
189 struct resource *res local
[all...]
/linux-master/arch/mips/sgi-ip22/
H A Dip22-platform.c77 int res; local
82 res = platform_device_register(&sgiwd93_0_device);
83 if (res)
84 return res;
150 int res, i; local
162 res = platform_device_register(&eth0_device);
163 if (res)
164 return res;
212 struct resource res; local
214 memset(&res,
[all...]
/linux-master/drivers/platform/x86/
H A Dintel_scu_pltdrv.c24 const struct resource *res; local
27 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
28 if (!res)
31 scu_data.mem = *res;
/linux-master/include/asm-generic/
H A Ddiv64.h89 /* test our ___m with res = m * x / (p << 64) */ \
177 uint64_t res; local
181 res = ((uint64_t)m_lo * n_lo) >> 32;
184 res = (m + (uint64_t)m_lo * n_lo) >> 32;
186 res = m + (uint64_t)m_lo * n_lo;
187 res_lo = res >> 32;
189 res = res_lo | ((uint64_t)res_hi << 32);
194 res += (uint64_t)m_lo * n_hi;
195 res += (uint64_t)m_hi * n_lo;
196 res >>
[all...]
/linux-master/arch/mips/vdso/
H A Dvgettimeofday.c38 struct old_timespec32 *res)
40 return __cvdso_clock_getres_time32(clock_id, res);
74 struct __kernel_timespec *res)
76 return __cvdso_clock_getres(clock_id, res);
37 __vdso_clock_getres(clockid_t clock_id, struct old_timespec32 *res) argument
73 __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) argument
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dresources.h130 static inline bool mlxsw_res_valid(struct mlxsw_res *res, argument
133 return res->valid[res_id];
136 #define MLXSW_RES_VALID(res, short_res_id) \
137 mlxsw_res_valid(res, MLXSW_RES_ID_##short_res_id)
139 static inline u64 mlxsw_res_get(struct mlxsw_res *res, argument
142 if (WARN_ON(!res->valid[res_id]))
144 return res->values[res_id];
147 #define MLXSW_RES_GET(res, short_res_id) \
148 mlxsw_res_get(res, MLXSW_RES_ID_##short_res_id)
150 static inline void mlxsw_res_set(struct mlxsw_res *res, argument
160 mlxsw_res_parse(struct mlxsw_res *res, u16 id, u64 value) argument
[all...]
/linux-master/drivers/ufs/host/
H A Dufs-mediatek.h217 struct arm_smccc_res *res; member in struct:ufs_mtk_smc_arg
230 s.cmd, s.v1, s.v2, s.v3, s.v4, s.v5, s.v6, s.res);
239 #define ufs_mtk_va09_pwr_ctrl(res, on) \
240 ufs_mtk_smc(UFS_MTK_SIP_VA09_PWR_CTRL, &(res), on)
242 #define ufs_mtk_crypto_ctrl(res, enable) \
243 ufs_mtk_smc(UFS_MTK_SIP_CRYPTO_CTRL, &(res), enable)
245 #define ufs_mtk_ref_clk_notify(on, stage, res) \
246 ufs_mtk_smc(UFS_MTK_SIP_REF_CLK_NOTIFICATION, &(res), on, stage)
248 #define ufs_mtk_device_reset_ctrl(high, res) \
249 ufs_mtk_smc(UFS_MTK_SIP_DEVICE_RESET, &(res), hig
[all...]
/linux-master/net/hsr/
H A Dhsr_slave.c132 int res; local
138 res = dev_set_promiscuity(dev, 1);
139 if (res)
140 return res;
146 res = netdev_upper_dev_link(dev, hsr_dev, extack);
147 if (res)
150 res = netdev_rx_handler_register(dev, hsr_handle_frame, port);
151 if (res)
163 return res;
170 int res; local
[all...]
/linux-master/fs/hfsplus/
H A Dpart_tbl.c97 int res; local
113 res = hfsplus_submit_bio(sb,
116 if (res)
117 return res;
132 int res; local
138 res = hfsplus_submit_bio(sb, *part_start + HFS_PMAP_BLK,
140 if (res)
145 res = hfs_parse_old_pmap(sb, data, part_start, part_size);
148 res = hfs_parse_new_pmap(sb, buf, data, part_start, part_size);
151 res
[all...]
/linux-master/drivers/scsi/
H A Da4000t.c37 struct resource *res; local
42 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
43 if (!res)
46 if (!request_mem_region(res->start, resource_size(res),
57 scsi_addr = res->start + A4000T_SCSI_OFFSET;
94 release_mem_region(res->start, resource_size(res));
102 struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); local
108 release_mem_region(res
[all...]
/linux-master/drivers/firmware/google/
H A Dframebuffer-coreboot.c31 struct resource res; local
55 memset(&res, 0, sizeof(res));
56 res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
57 res.name = "Coreboot Framebuffer";
58 res.start = fb->physical_address;
60 res.end = res.start + length - 1;
61 if (res.end <= res
[all...]
/linux-master/drivers/video/
H A Dscreen_info_pci.c53 struct resource res[SCREEN_INFO_MAX_RESOURCES]; local
65 ret = screen_info_resources(si, res, ARRAY_SIZE(res));
71 struct resource *r = &res[i];
94 static struct pci_dev *__screen_info_pci_dev(struct resource *res) argument
99 if (!(res->flags & IORESOURCE_MEM))
103 r = pci_find_resource(pdev, res);
120 struct resource res[SCREEN_INFO_MAX_RESOURCES]; local
123 numres = screen_info_resources(si, res, ARRAY_SIZE(res));
[all...]
/linux-master/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pci.c242 struct resource *res; local
259 res = &hose->mem_resources[0];
260 if (res->flags) {
261 pr_debug("mem_resource[0] = %pr\n", res);
263 MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start,
264 resource_size(res)));
266 if (res->flags & IORESOURCE_PREFETCH)
272 res = &hose->mem_resources[1];
273 if (res
330 struct resource *res; local
349 struct resource *res = &dev->resource[1]; local
[all...]
/linux-master/tools/testing/selftests/prctl/
H A Dset-anon-vma-name-test.c28 int res; local
30 res = prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, addr, size, name);
31 if (res < 0)
33 return res;
45 int res = 0, sscanf_res; local
61 res = 0;
66 res = 1;
71 return res;
/linux-master/drivers/char/hw_random/
H A Darm_smccc_trng.c36 static int copy_from_registers(char *buf, struct arm_smccc_res *res, argument
45 memcpy(buf, &res->a3, chunk);
51 memcpy(&buf[copied], &res->a2, chunk);
57 memcpy(&buf[copied], &res->a1, chunk);
64 struct arm_smccc_res res; local
73 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
75 switch ((int)res.a0) {
77 copied += copy_from_registers(buf + copied, &res,
/linux-master/arch/riscv/kernel/vdso/
H A Dvgettimeofday.c23 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) argument
25 return __cvdso_clock_getres(clock_id, res);
/linux-master/arch/arm64/kernel/vdso32/
H A Dvgettimeofday.c30 struct old_timespec32 *res)
32 return __cvdso_clock_getres_time32(clock_id, res);
29 __vdso_clock_getres(clockid_t clock_id, struct old_timespec32 *res) argument

Completed in 194 milliseconds

1234567891011>>