Searched refs:res (Results 1 - 25 of 3701) sorted by relevance

1234567891011>>

/linux-master/tools/lib/
H A Dhweight.c20 unsigned int res = w - ((w >> 1) & 0x55555555);
21 res = (res & 0x33333333) + ((res >> 2) & 0x33333333);
22 res = (res + (res >> 4)) & 0x0F0F0F0F;
23 res = res + (res >>
30 unsigned int res = w - ((w >> 1) & 0x5555); local
38 unsigned int res = w - ((w >> 1) & 0x55); local
[all...]
/linux-master/lib/
H A Dhweight.c21 unsigned int res = w - ((w >> 1) & 0x55555555);
22 res = (res & 0x33333333) + ((res >> 2) & 0x33333333);
23 res = (res + (res >> 4)) & 0x0F0F0F0F;
24 res = res + (res >>
32 unsigned int res = w - ((w >> 1) & 0x5555); local
41 unsigned int res = w - ((w >> 1) & 0x55); local
[all...]
/linux-master/arch/mips/loongson64/
H A Dvbios_quirk.c8 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; local
10 if (res->start)
17 if (res->parent)
18 release_resource(res);
20 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr);
21 res->end = res->start + 256*1024 - 1;
22 res->flags = IORESOURCE_MEM | IORESOURCE_ROM_SHADOW |
25 dev_info(&pdev->dev, "Video device with shadowed ROM at %pR\n", res);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drx_res.c38 static u32 *get_vhca_ids(struct mlx5e_rx_res *res, int offset) argument
40 bool multi_vhca = res->features & MLX5E_RX_RES_FEATURE_MULTI_VHCA;
42 return multi_vhca ? res->rss_vhca_ids + offset : NULL;
45 void mlx5e_rx_res_rss_update_num_channels(struct mlx5e_rx_res *res, u32 nch) argument
50 if (res->rss[i])
51 mlx5e_rss_params_indir_modify_actual_size(res->rss[i], nch);
55 static int mlx5e_rx_res_rss_init_def(struct mlx5e_rx_res *res, argument
58 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT;
61 if (WARN_ON(res->rss[0]))
64 rss = mlx5e_rss_init(res
76 mlx5e_rx_res_rss_init(struct mlx5e_rx_res *res, u32 *rss_idx, unsigned int init_nch) argument
108 __mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx) argument
122 mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx) argument
136 mlx5e_rx_res_rss_destroy_all(struct mlx5e_rx_res *res) argument
159 mlx5e_rx_res_rss_enable(struct mlx5e_rx_res *res) argument
176 mlx5e_rx_res_rss_disable(struct mlx5e_rx_res *res) argument
192 mlx5e_rx_res_rss_set_indir_uniform(struct mlx5e_rx_res *res, unsigned int nch) argument
198 mlx5e_rx_res_rss_get_rxfh(struct mlx5e_rx_res *res, u32 rss_idx, u32 *indir, u8 *key, u8 *hfunc) argument
213 mlx5e_rx_res_rss_set_rxfh(struct mlx5e_rx_res *res, u32 rss_idx, const u32 *indir, const u8 *key, const u8 *hfunc) argument
230 mlx5e_rx_res_rss_get_hash_fields(struct mlx5e_rx_res *res, u32 rss_idx, enum mlx5_traffic_types tt) argument
245 mlx5e_rx_res_rss_set_hash_fields(struct mlx5e_rx_res *res, u32 rss_idx, enum mlx5_traffic_types tt, u8 rx_hash_fields) argument
260 mlx5e_rx_res_rss_cnt(struct mlx5e_rx_res *res) argument
272 mlx5e_rx_res_rss_index(struct mlx5e_rx_res *res, struct mlx5e_rss *rss) argument
286 mlx5e_rx_res_rss_get(struct mlx5e_rx_res *res, u32 rss_idx) argument
296 mlx5e_rx_res_free(struct mlx5e_rx_res *res) argument
330 mlx5e_rx_res_channels_init(struct mlx5e_rx_res *res) argument
394 mlx5e_rx_res_ptp_init(struct mlx5e_rx_res *res) argument
429 mlx5e_rx_res_channels_destroy(struct mlx5e_rx_res *res) argument
441 mlx5e_rx_res_ptp_destroy(struct mlx5e_rx_res *res) argument
454 struct mlx5e_rx_res *res; local
492 mlx5e_rx_res_destroy(struct mlx5e_rx_res *res) argument
500 mlx5e_rx_res_get_tirn_direct(struct mlx5e_rx_res *res, unsigned int ix) argument
505 mlx5e_rx_res_get_tirn_rss(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt) argument
512 mlx5e_rx_res_get_tirn_rss_inner(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt) argument
519 mlx5e_rx_res_get_tirn_ptp(struct mlx5e_rx_res *res) argument
525 mlx5e_rx_res_get_rqtn_direct(struct mlx5e_rx_res *res, unsigned int ix) argument
530 mlx5e_rx_res_channel_activate_direct(struct mlx5e_rx_res *res, struct mlx5e_channels *chs, unsigned int ix) argument
545 mlx5e_rx_res_channel_deactivate_direct(struct mlx5e_rx_res *res, unsigned int ix) argument
557 mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs) argument
595 mlx5e_rx_res_channels_deactivate(struct mlx5e_rx_res *res) argument
614 mlx5e_rx_res_xsk_update(struct mlx5e_rx_res *res, struct mlx5e_channels *chs, unsigned int ix, bool xsk) argument
629 mlx5e_rx_res_packet_merge_set_param(struct mlx5e_rx_res *res, struct mlx5e_packet_merge_param *pkt_merge_param) argument
673 mlx5e_rx_res_get_current_hash(struct mlx5e_rx_res *res) argument
678 mlx5e_rx_res_tls_tir_create(struct mlx5e_rx_res *res, unsigned int rxq, struct mlx5e_tir *tir) argument
[all...]
H A Drx_res.h30 void mlx5e_rx_res_destroy(struct mlx5e_rx_res *res);
33 u32 mlx5e_rx_res_get_tirn_direct(struct mlx5e_rx_res *res, unsigned int ix);
34 u32 mlx5e_rx_res_get_tirn_rss(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt);
35 u32 mlx5e_rx_res_get_tirn_rss_inner(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt);
36 u32 mlx5e_rx_res_get_tirn_ptp(struct mlx5e_rx_res *res);
39 void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs);
40 void mlx5e_rx_res_channels_deactivate(struct mlx5e_rx_res *res);
41 void mlx5e_rx_res_xsk_update(struct mlx5e_rx_res *res, struct mlx5e_channels *chs,
45 void mlx5e_rx_res_rss_set_indir_uniform(struct mlx5e_rx_res *res, unsigned int nch);
46 int mlx5e_rx_res_rss_get_rxfh(struct mlx5e_rx_res *res, u3
[all...]
/linux-master/arch/xtensa/include/uapi/asm/
H A Dswab.h22 __u32 res; local
29 : "=&a" (res)
32 return res;
52 * Declaring the temporary variables 'res' and 'tmp' to be 32-bit
57 __u32 res; local
63 : "=&a" (res), "=&a" (tmp)
67 return res;
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_resource_priv.h54 void (*res_free) (struct vmw_resource *res);
93 int (*create) (struct vmw_resource *res);
94 int (*destroy) (struct vmw_resource *res);
95 int (*bind) (struct vmw_resource *res,
97 int (*unbind) (struct vmw_resource *res,
100 void (*commit_notify)(struct vmw_resource *res,
102 int (*dirty_alloc)(struct vmw_resource *res);
103 void (*dirty_free)(struct vmw_resource *res);
104 int (*dirty_sync)(struct vmw_resource *res);
105 void (*dirty_range_add)(struct vmw_resource *res, size_
135 struct vmw_resource res; member in struct:vmw_simple_resource
[all...]
H A Dvmwgfx_resource.c39 * @res: The resource
41 void vmw_resource_mob_attach(struct vmw_resource *res) argument
43 struct vmw_bo *gbo = res->guest_memory_bo;
47 res->used_prio = (res->res_dirty) ? res->func->dirty_prio :
48 res->func->prio;
55 new = (res->guest_memory_offset < this->guest_memory_offset) ?
59 rb_link_node(&res->mob_node, parent, new);
60 rb_insert_color(&res
69 vmw_resource_mob_detach(struct vmw_resource *res) argument
81 vmw_resource_reference(struct vmw_resource *res) argument
88 vmw_resource_reference_unless_doomed(struct vmw_resource *res) argument
100 vmw_resource_release_id(struct vmw_resource *res) argument
114 struct vmw_resource *res = local
168 struct vmw_resource *res = *p_res; local
183 vmw_resource_alloc_id(struct vmw_resource *res) argument
213 vmw_resource_init(struct vmw_private *dev_priv, struct vmw_resource *res, bool delay_id, void (*res_free) (struct vmw_resource *res), const struct vmw_res_func *func) argument
263 struct vmw_resource *res; local
297 struct vmw_resource *res; local
322 vmw_resource_buf_alloc(struct vmw_resource *res, bool interruptible) argument
363 vmw_resource_do_validate(struct vmw_resource *res, struct ttm_validate_buffer *val_buf, bool dirtying) argument
443 vmw_resource_unreserve(struct vmw_resource *res, bool dirty_set, bool dirty, bool switch_guest_memory, struct vmw_bo *new_guest_memory_bo, unsigned long new_guest_memory_offset) argument
508 vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, struct vmw_resource *res, bool interruptible, struct ttm_validate_buffer *val_buf) argument
570 vmw_resource_reserve(struct vmw_resource *res, bool interruptible, bool no_guest_memory) argument
625 vmw_resource_do_evict(struct ww_acquire_ctx *ticket, struct vmw_resource *res, bool interruptible) argument
672 vmw_resource_validate(struct vmw_resource *res, bool intr, bool dirtying) argument
761 struct vmw_resource *res = local
871 vmw_resource_needs_backup(const struct vmw_resource *res) argument
957 vmw_resource_pin(struct vmw_resource *res, bool interruptible) argument
1018 vmw_resource_unpin(struct vmw_resource *res) argument
1047 vmw_res_type(const struct vmw_resource *res) argument
1059 vmw_resource_dirty_update(struct vmw_resource *res, pgoff_t start, pgoff_t end) argument
[all...]
/linux-master/drivers/pnp/
H A Dmanager.c27 struct resource *res = pnp_get_resource(dev, type, bar); local
30 if (res) {
31 res->flags &= ~IORESOURCE_BITS;
32 res->flags |= rule & IORESOURCE_BITS;
35 return res;
40 struct resource *res, local_res; local
42 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx);
43 if (res) {
45 "flags %#lx\n", idx, (unsigned long long) res->start,
46 (unsigned long long) res
83 struct resource *res, local_res; local
134 struct resource *res, local_res; local
193 struct resource *res, local_res; local
[all...]
/linux-master/include/linux/
H A Dkstrtox.h9 int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res);
10 int __must_check _kstrtol(const char *s, unsigned int base, long *res);
12 int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res);
13 int __must_check kstrtoll(const char *s, unsigned int base, long long *res);
25 * @res: Where to write the result of the conversion on success.
30 static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res) argument
38 return kstrtoull(s, base, (unsigned long long *)res);
40 return _kstrtoul(s, base, res);
53 * @res: Where to write the result of the conversion on success.
58 static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) argument
74 kstrtou64(const char *s, unsigned int base, u64 *res) argument
79 kstrtos64(const char *s, unsigned int base, s64 *res) argument
84 kstrtou32(const char *s, unsigned int base, u32 *res) argument
89 kstrtos32(const char *s, unsigned int base, s32 *res) argument
112 kstrtou64_from_user(const char __user *s, size_t count, unsigned int base, u64 *res) argument
117 kstrtos64_from_user(const char __user *s, size_t count, unsigned int base, s64 *res) argument
122 kstrtou32_from_user(const char __user *s, size_t count, unsigned int base, u32 *res) argument
127 kstrtos32_from_user(const char __user *s, size_t count, unsigned int base, s32 *res) argument
[all...]
/linux-master/drivers/infiniband/core/
H A Drestrack.c28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL);
29 if (!dev->res)
32 rt = dev->res;
62 struct rdma_restrack_root *rt = dev->res;
70 struct xarray *xa = &dev->res[i].xa;
114 struct rdma_restrack_root *rt = &dev->res[type];
127 static struct ib_device *res_to_dev(struct rdma_restrack_entry *res) argument
129 switch (res->type) {
131 return container_of(res, struct ib_pd, res)
159 rdma_restrack_attach_task(struct rdma_restrack_entry *res, struct task_struct *task) argument
177 rdma_restrack_set_name(struct rdma_restrack_entry *res, const char *caller) argument
210 rdma_restrack_new(struct rdma_restrack_entry *res, enum rdma_restrack_type type) argument
223 rdma_restrack_add(struct rdma_restrack_entry *res) argument
269 rdma_restrack_get(struct rdma_restrack_entry *res) argument
288 struct rdma_restrack_entry *res; local
302 struct rdma_restrack_entry *res; local
312 rdma_restrack_put(struct rdma_restrack_entry *res) argument
322 rdma_restrack_del(struct rdma_restrack_entry *res) argument
[all...]
/linux-master/drivers/firmware/smccc/
H A Dkvm_guest.c17 struct arm_smccc_res res; local
23 arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_CALL_UID_FUNC_ID, &res);
24 if (res.a0 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_0 ||
25 res.a1 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_1 ||
26 res.a2 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_2 ||
27 res.a3 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_3)
30 memset(&res, 0, sizeof(res));
31 arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_FEATURES_FUNC_ID, &res);
33 val[0] = lower_32_bits(res
[all...]
/linux-master/include/kunit/
H A Dresource.h51 * static int kunit_kmalloc_init(struct kunit_resource *res, void *context)
54 * res->data = kmalloc(params->size, params->gfp);
56 * if (!res->data)
62 * static void kunit_kmalloc_free(struct kunit_resource *res)
64 * kfree(res->data);
98 * @res: resource
100 static inline void kunit_get_resource(struct kunit_resource *res) argument
102 kref_get(&res->refcount);
111 struct kunit_resource *res = container_of(kref, struct kunit_resource, local
114 if (res
136 kunit_put_resource(struct kunit_resource *res) argument
169 kunit_add_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, struct kunit_resource *res, void *data) argument
191 kunit_add_named_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, struct kunit_resource *res, const char *name, void *data) argument
243 struct kunit_resource *res; local
286 struct kunit_resource *res; local
309 kunit_resource_name_match(struct kunit *test, struct kunit_resource *res, void *match_name) argument
327 struct kunit_resource *res, *found = NULL; local
[all...]
/linux-master/tools/testing/selftests/futex/functional/
H A Dfutex_requeue.c44 int res, ret = RET_PASS; local
82 res = futex_cmp_requeue(f1, 0, &f2, 0, 1, 0);
83 if (res != 1) {
85 res ? errno : res,
86 res ? strerror(errno) : "");
92 res = futex_wake(&f2, 1, 0);
93 if (res != 1) {
95 res ? errno : res,
[all...]
/linux-master/lib/kunit/
H A Dstatic_stub.c20 static void __kunit_static_stub_resource_free(struct kunit_resource *res) argument
22 kfree(res->data);
27 struct kunit_resource *res,
30 /* This pointer is only valid if res is a static stub resource. */
31 struct kunit_static_stub_ctx *ctx = res->data;
34 if (res->free != &__kunit_static_stub_resource_free)
43 struct kunit_resource *res; local
47 res = kunit_find_resource(test,
51 if (!res)
54 ctx = res
26 __kunit_static_stub_resource_match(struct kunit *test, struct kunit_resource *res, void *match_real_fn_addr) argument
62 struct kunit_resource *res; local
92 struct kunit_resource *res; local
[all...]
H A Dresource.c17 * the data value passed in. Doesn't initialize res->should_kfree.
22 struct kunit_resource *res,
28 res->free = free;
29 kref_init(&res->refcount);
32 ret = init(res, data);
36 res->data = data;
40 list_add_tail(&res->node, &test->resources);
48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) argument
54 was_linked = !list_empty(&res->node);
55 list_del_init(&res
19 __kunit_add_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, struct kunit_resource *res, void *data) argument
66 struct kunit_resource *res = kunit_find_resource(test, match, local
82 struct kunit_resource res; member in struct:kunit_action_ctx
87 __kunit_action_free(struct kunit_resource *res) argument
119 int res = kunit_add_action(test, action, ctx); local
127 __kunit_action_match(struct kunit *test, struct kunit_resource *res, void *match_data) argument
146 struct kunit_resource *res; local
166 struct kunit_resource *res; local
[all...]
/linux-master/arch/x86/include/asm/
H A Dolpc_ofw.h15 #define olpc_ofw(name, args, res) \
16 __olpc_ofw((name), ARRAY_SIZE(args), args, ARRAY_SIZE(res), res)
19 void **res);
/linux-master/arch/mips/pci/
H A Dpci-bcm47xx.c39 int res; local
42 res = ssb_pcibios_plat_dev_init(dev);
43 if (res < 0) {
45 return res;
50 res = ssb_pcibios_map_irq(dev, slot, pin);
53 if (res < 2) {
55 return res;
58 dev->irq = res;
66 int res; local
68 res
[all...]
/linux-master/drivers/dax/hmem/
H A Ddevice.c22 struct resource *res; local
26 for (res = hmem_active.child; res; res = res->sibling) {
27 rc = fn(host, (int) res->desc, res);
36 static void __hmem_register_resource(int target_nid, struct resource *res) argument
42 new = __request_region(&hmem_active, res->start, resource_size(res), "",
67 hmem_register_resource(int target_nid, struct resource *res) argument
77 hmem_register_one(struct resource *res, void *data) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dlocal_kptr_stash.c89 struct node_data *res; local
95 res = bpf_obj_new(typeof(*res));
96 if (!res)
98 res->key = val;
100 res = bpf_kptr_xchg(&mapval->node, res);
101 if (res)
102 bpf_obj_drop(res);
116 struct plain_local *res; local
137 struct local_with_root *res; local
173 struct node_data *res; local
193 struct prog_test_ref_kfunc *res; local
[all...]
H A Dlocal_kptr_stash_fail.c47 struct node_data2 *res; local
54 res = bpf_obj_new(typeof(*res));
55 if (!res)
57 res->key[0] = 40;
59 res = bpf_kptr_xchg(&mapval->node, res);
60 if (res)
61 bpf_obj_drop(res);
70 struct node_data *res; local
[all...]
/linux-master/drivers/pcmcia/
H A Drsrc_iodyn.c27 const struct resource *res,
33 start = (res->start & ~data->mask) + data->offset;
34 if (start < res->start)
38 if (res->flags & IORESOURCE_IO) {
45 if (res->flags & IORESOURCE_IO) {
46 if ((res->start + size - 1) >= 1024)
47 start = res->end;
59 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, local
70 ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1,
74 ret = allocate_resource(&ioport_resource, res, nu
26 pcmcia_align(void *align_data, const struct resource *res, resource_size_t size, resource_size_t align) argument
106 struct resource *res = s->io[i].res; local
[all...]
/linux-master/arch/m68k/lib/
H A Duaccess.c13 unsigned long tmp, res; local
49 : "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp)
52 return res;
59 unsigned long tmp, res; local
93 : "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp)
96 return res;
106 unsigned long res; local
137 : "=d" (res), "+a" (to)
140 return res;
/linux-master/arch/powerpc/sysdev/
H A Drtc_cmos_setup.c24 struct resource res[2]; local
28 memset(&res, 0, sizeof(res));
34 ret = of_address_to_resource(np, 0, &res[0]);
43 if (res[0].start != RTC_PORT(0))
56 res[1].start = 8;
57 res[1].end = 8;
58 res[1].flags = IORESOURCE_IRQ;
63 &res[0], num_res);
/linux-master/Documentation/usb/
H A Dusbdevfs-drop-permissions.c21 int res; local
23 res = ioctl(fd, USBDEVFS_DROP_PRIVILEGES, &mask);
24 if (res)
25 printf("ERROR: USBDEVFS_DROP_PRIVILEGES returned %d\n", res);
32 int res; local
34 res = ioctl(fd, USBDEVFS_RESET);
35 if (!res)
39 -res, strerror(-res));
44 int i, res; local
[all...]

Completed in 297 milliseconds

1234567891011>>