Searched refs:res (Results 176 - 200 of 3701) sorted by relevance

1234567891011>>

/linux-master/arch/csky/kernel/vdso/
H A Dvgettimeofday.c27 struct old_timespec32 *res)
29 return __cvdso_clock_getres_time32(clock_id, res);
26 __vdso_clock_getres(clockid_t clock_id, struct old_timespec32 *res) argument
/linux-master/arch/powerpc/platforms/pseries/
H A Dpci_dlpar.c58 struct resource *res; local
71 res = &phb->io_resource;
72 if (res->flags & IORESOURCE_IO) {
95 if (res->flags & IORESOURCE_IO)
96 release_resource(res);
100 res = &phb->mem_resources[i];
101 if (!(res->flags & IORESOURCE_MEM))
103 release_resource(res);
/linux-master/net/hsr/
H A Dhsr_netlink.c192 int res; local
203 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr);
204 if (res < 0)
207 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex);
208 if (res < 0)
234 int res; local
244 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr);
245 if (res < 0)
288 int res; local
311 res
417 int res; local
[all...]
/linux-master/tools/bpf/bpftool/
H A Dstruct_ops.c24 struct res { struct
170 static int cmd_retval(const struct res *res, bool must_have_one_map) argument
172 if (res->nr_errs || (!res->nr_maps && must_have_one_map))
186 static struct res do_search(const char *name, work_func func, void *data,
190 struct res res = {}; local
196 res.nr_errs++;
197 return res;
239 struct res res = {}; local
340 struct res res; local
411 struct res res; local
470 struct res res; local
[all...]
/linux-master/drivers/parisc/
H A Diommu.h41 struct resource *res);
43 struct resource *res, unsigned long size,
47 #define ccio_request_resource(dev, res) insert_resource(&iomem_resource, res)
48 #define ccio_allocate_resource(dev, res, size, min, max, align) \
49 allocate_resource(&iomem_resource, res, size, min, max, \
/linux-master/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-pci.c28 struct xlgmac_resources res; local
48 memset(&res, 0, sizeof(res));
49 res.irq = pcidev->irq;
50 res.addr = pcim_iomap_table(pcidev)[i];
52 return xlgmac_drv_probe(&pcidev->dev, &res);
/linux-master/net/
H A Ddevres.c16 struct net_device_devres *res = this; local
18 free_netdev(res->ndev);
44 struct net_device_devres *res = this; local
46 unregister_netdev(res->ndev);
51 struct net_device_devres *res = this; local
54 return ndev == res->ndev;
/linux-master/fs/hfs/
H A Dbfind.c61 int res; local
65 res = -ENOENT;
71 res = -EINVAL;
78 res = 0;
90 res = -EINVAL;
102 return res;
113 int height, res; local
123 res = 0;
128 res = PTR_ERR(bnode);
138 res
163 int res; local
178 int idx, res = 0; local
[all...]
/linux-master/lib/
H A Dstrnlen_user.c26 unsigned long align, res = 0; local
45 return res + find_zero(data) + 1 - align;
47 res += sizeof(unsigned long);
52 unsafe_get_user(c, (unsigned long __user *)(src+res), efault);
54 res -= align;
60 if (res >= count)
/linux-master/drivers/acpi/
H A Dioapic.c33 struct resource res; member in struct:acpi_pci_ioapic
43 struct resource *res = data; local
47 * We might assign this to 'res' later, make sure all pointers are
52 res->flags = 0;
56 if (!acpi_dev_resource_memory(acpi_res, res)) {
59 *res = win.res;
61 if ((res->flags & IORESOURCE_PREFETCH) ||
62 (res->flags & IORESOURCE_DISABLED))
63 res
104 struct resource *res = NULL, *pci_res = NULL, *crs_res; local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Drbtree.c77 struct bpf_rb_node *res = NULL; local
93 res = bpf_rbtree_remove(&groot, &n->node);
96 if (!res)
99 n = container_of(res, struct node_data, node);
115 struct bpf_rb_node *res = NULL; local
141 res = bpf_rbtree_first(&groot);
142 if (!res) {
147 o = container_of(res, struct node_data, node);
150 res = bpf_rbtree_remove(&groot, &o->node);
153 if (!res)
184 struct bpf_rb_node *res, *res2; local
[all...]
/linux-master/drivers/peci/
H A Dsysfs.c20 bool res; local
23 ret = kstrtobool(buf, &res);
27 if (!res)
56 bool res; local
59 ret = kstrtobool(buf, &res);
63 if (res && device_remove_file_self(dev, attr))
/linux-master/drivers/eisa/
H A Dpci_eisa.c23 struct resource *res, *bus_res = NULL; local
41 pci_bus_for_each_resource(pdev->bus, res)
42 if (res && (res->flags & IORESOURCE_IO)) {
43 bus_res = res;
53 pci_eisa_root.res = bus_res;
/linux-master/arch/x86/platform/olpc/
H A Dolpc_dt.c25 void *res[] = { &node }; local
30 if (olpc_ofw("peer", args, res) || (s32)node == -1)
39 void *res[] = { &node }; local
44 if (olpc_ofw("child", args, res) || (s32)node == -1) {
56 void *res[] = { &len }; local
61 if (olpc_ofw("getproplen", args, res)) {
79 void *res[] = { &plen }; local
81 if (olpc_ofw("getprop", args, res)) {
94 void *res[] = { &success }; local
101 if (olpc_ofw("nextprop", args, res) || succes
111 void *res[] = { len }; local
128 void *res; local
170 void *res[] = { &node }; local
187 void *res[] = { &result }; local
[all...]
/linux-master/tools/testing/selftests/tc-testing/
H A Dtdc.py272 def verify_by_json(procout, res, tidx, args, pm):
276 res.set_result(ResultState.fail)
277 res.set_failmsg('Cannot decode verify command\'s output. Is it JSON?')
278 return res
285 res.set_result(ResultState.fail)
286 res.set_failmsg(failmsg)
287 return res
292 res.set_result(ResultState.fail)
293 res.set_failmsg(failmsg)
294 return res
[all...]
/linux-master/drivers/infiniband/hw/usnic/
H A Dusnic_vnic.c96 struct usnic_vnic_res *res; local
120 res = chunk->res[j];
123 usnic_vnic_res_type_to_str(res->type),
124 res->vnic_idx, res->ctrl, !!res->owner);
126 offset += printrow(res->owner, buf + offset,
236 struct usnic_vnic_res *res; local
247 ret->res
276 struct usnic_vnic_res *res; local
305 struct usnic_vnic_res *res; local
[all...]
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c82 static void vmw_user_surface_free(struct vmw_resource *res);
85 static int vmw_legacy_srf_bind(struct vmw_resource *res,
87 static int vmw_legacy_srf_unbind(struct vmw_resource *res,
90 static int vmw_legacy_srf_create(struct vmw_resource *res);
91 static int vmw_legacy_srf_destroy(struct vmw_resource *res);
92 static int vmw_gb_surface_create(struct vmw_resource *res);
93 static int vmw_gb_surface_bind(struct vmw_resource *res,
95 static int vmw_gb_surface_unbind(struct vmw_resource *res,
98 static int vmw_gb_surface_destroy(struct vmw_resource *res);
110 static void vmw_surface_dirty_free(struct vmw_resource *res);
357 vmw_hw_surface_destroy(struct vmw_resource *res) argument
402 vmw_legacy_srf_create(struct vmw_resource *res) argument
477 vmw_legacy_srf_dma(struct vmw_resource *res, struct ttm_validate_buffer *val_buf, bool bind) argument
526 vmw_legacy_srf_bind(struct vmw_resource *res, struct ttm_validate_buffer *val_buf) argument
548 vmw_legacy_srf_unbind(struct vmw_resource *res, bool readback, struct ttm_validate_buffer *val_buf) argument
564 vmw_legacy_srf_destroy(struct vmw_resource *res) argument
609 vmw_surface_init(struct vmw_private *dev_priv, struct vmw_surface *srf, void (*res_free) (struct vmw_resource *res)) argument
614 struct vmw_resource *res = &srf->res; local
657 vmw_user_surface_free(struct vmw_resource *res) argument
686 struct vmw_resource *res = &user_srf->srf.res; local
724 struct vmw_resource *res; local
1031 vmw_gb_surface_create(struct vmw_resource *res) argument
1168 vmw_gb_surface_bind(struct vmw_resource *res, struct ttm_validate_buffer *val_buf) argument
1213 vmw_gb_surface_unbind(struct vmw_resource *res, bool readback, struct ttm_validate_buffer *val_buf) argument
1280 vmw_gb_surface_destroy(struct vmw_resource *res) argument
1427 struct vmw_resource *res; local
1732 vmw_surface_tex_dirty_range_add(struct vmw_resource *res, size_t start, size_t end) argument
1783 vmw_surface_buf_dirty_range_add(struct vmw_resource *res, size_t start, size_t end) argument
1806 vmw_surface_dirty_range_add(struct vmw_resource *res, size_t start, size_t end) argument
1824 vmw_surface_dirty_sync(struct vmw_resource *res) argument
1901 vmw_surface_dirty_alloc(struct vmw_resource *res) argument
1952 vmw_surface_dirty_free(struct vmw_resource *res) argument
1964 vmw_surface_clean(struct vmw_resource *res) argument
[all...]
/linux-master/drivers/usb/c67x00/
H A Dc67x00-drv.c109 struct resource *res, *res2; local
112 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
113 if (!res)
128 if (!request_mem_region(res->start, resource_size(res),
134 c67x00->hpi.base = ioremap(res->start, resource_size(res));
173 release_mem_region(res->start, resource_size(res));
183 struct resource *res; local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dverifier_log.c55 int i, mode, err, prog_fd, res; local
182 res = load_prog(&opts, expect_load_error);
183 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_fixed");
193 res = load_prog(&opts, expect_load_error);
194 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_fixed_null");
202 res = load_prog(&opts, expect_load_error);
203 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_rolling");
213 res = load_prog(&opts, expect_load_error);
214 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_rolling_null");
222 res
277 int i, res; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_common.c145 struct mlx5e_hw_objs *res = &mdev->mlx5e_res.hw_objs; local
148 err = mlx5_core_alloc_pd(mdev, &res->pdn);
154 err = mlx5_core_alloc_transport_domain(mdev, &res->td.tdn);
160 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey);
166 err = mlx5_alloc_bfreg(mdev, &res->bfreg, false, false);
173 err = mlx5e_create_tises(mdev, res->tisn);
178 res->tisn_valid = true;
181 INIT_LIST_HEAD(&res->td.tirs_list);
182 mutex_init(&res
206 struct mlx5e_hw_objs *res = &mdev->mlx5e_res.hw_objs; local
[all...]
/linux-master/drivers/pcmcia/
H A Drsrc_nonstatic.c76 struct resource *res, *parent; local
79 res = pcmcia_make_resource(base, size, type | IORESOURCE_BUSY, name);
81 if (res) {
84 parent = pci_find_parent_resource(s->cb_dev, res);
86 if (!parent || request_resource(parent, res)) {
87 kfree(res);
88 res = NULL;
91 return res;
94 static void free_region(struct resource *res) argument
96 if (res) {
185 struct resource *res; local
263 readable(struct pcmcia_socket *s, struct resource *res, unsigned int *count) argument
294 checksum(struct pcmcia_socket *s, struct resource *res, unsigned int *value) argument
344 do_validate_mem(struct pcmcia_socket *s, unsigned long base, unsigned long size, int (*validate)(struct pcmcia_socket *s, struct resource *res, unsigned int *value)) argument
400 do_mem_probe(struct pcmcia_socket *s, u_long base, u_long num, int (*validate)(struct pcmcia_socket *s, struct resource *res, unsigned int *value), int (*fallback)(struct pcmcia_socket *s, struct resource *res, unsigned int *value)) argument
603 pcmcia_align(void *align_data, const struct resource *res, resource_size_t size, resource_size_t align) argument
686 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, local
738 struct resource *res = s->io[i].res; local
808 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_MEM, local
936 struct resource *res; local
[all...]
/linux-master/arch/arm/mach-omap1/
H A Dtimer.c62 struct resource res[2]; local
113 memset(res, 0, 2 * sizeof(struct resource));
114 res[0].start = base;
115 res[0].end = base + 0x46;
116 res[0].flags = IORESOURCE_MEM;
117 res[1].start = irq;
118 res[1].end = irq;
119 res[1].flags = IORESOURCE_IRQ;
120 ret = platform_device_add_resources(pdev, res,
121 ARRAY_SIZE(res));
[all...]
/linux-master/drivers/firmware/efi/
H A Driscv-runtime.c89 struct resource *res; local
94 res = kzalloc(sizeof(*res), GFP_KERNEL);
95 if (WARN_ON(!res))
98 res->start = md->phys_addr;
99 res->end = md->phys_addr + md_size - 1;
100 res->name = "Soft Reserved";
101 res->flags = IORESOURCE_MEM;
102 res->desc = IORES_DESC_SOFT_RESERVED;
104 insert_resource(&iomem_resource, res);
[all...]
H A Darm-runtime.c111 struct resource *res; local
116 res = kzalloc(sizeof(*res), GFP_KERNEL);
117 if (WARN_ON(!res))
120 res->start = md->phys_addr;
121 res->end = md->phys_addr + md_size - 1;
122 res->name = "Soft Reserved";
123 res->flags = IORESOURCE_MEM;
124 res->desc = IORES_DESC_SOFT_RESERVED;
126 insert_resource(&iomem_resource, res);
[all...]
/linux-master/drivers/pwm/
H A Dpwm-ntxec.c87 int res; local
108 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty);
109 if (res)
110 return res;
112 res = regmap_write(priv->ec->regmap, NTXEC_REG_ENABLE, ntxec_reg8(1));
113 if (res)
114 return res;
117 res = regmap_write(priv->ec->regmap, NTXEC_REG_AUTO_OFF_HI, ntxec_reg8(0xff));
118 if (res)
119 return res;
[all...]

Completed in 327 milliseconds

1234567891011>>