Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/Linux-v5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_overlay.c115 } *items; in vmw_overlay_send_put() local
123 fifo_size = sizeof(*cmds) + sizeof(*flush) + sizeof(*items) * num_items; in vmw_overlay_send_put()
130 items = (typeof(items))&cmds[1]; in vmw_overlay_send_put()
131 flush = (struct vmw_escape_video_flush *)&items[num_items]; in vmw_overlay_send_put()
134 fill_escape(&cmds->escape, sizeof(*items) * (num_items + 1)); in vmw_overlay_send_put()
141 items[i].registerId = i; in vmw_overlay_send_put()
146 items[SVGA_VIDEO_ENABLED].value = true; in vmw_overlay_send_put()
147 items[SVGA_VIDEO_FLAGS].value = arg->flags; in vmw_overlay_send_put()
148 items[SVGA_VIDEO_DATA_OFFSET].value = ptr.offset; in vmw_overlay_send_put()
149 items[SVGA_VIDEO_FORMAT].value = arg->format; in vmw_overlay_send_put()
[all …]
/Linux-v5.10/drivers/staging/media/atomisp/pci/base/refcount/src/
Drefcount.c37 struct ia_css_refcount_entry *items; member
49 if (!myrefcount.items) { in refcount_find_entry()
56 if ((&myrefcount.items[i])->data == 0) { in refcount_find_entry()
59 return &myrefcount.items[i]; in refcount_find_entry()
62 if ((&myrefcount.items[i])->data == ptr) { in refcount_find_entry()
64 return &myrefcount.items[i]; in refcount_find_entry()
79 if (myrefcount.items) { in ia_css_refcount_init()
84 myrefcount.items = in ia_css_refcount_init()
86 if (!myrefcount.items) in ia_css_refcount_init()
89 memset(myrefcount.items, 0, in ia_css_refcount_init()
[all …]
/Linux-v5.10/tools/perf/util/
Dthread_map.c37 int items; in thread_map__new_by_pid() local
42 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid()
43 if (items <= 0) in thread_map__new_by_pid()
46 threads = thread_map__alloc(items); in thread_map__new_by_pid()
48 for (i = 0; i < items; i++) in thread_map__new_by_pid()
50 threads->nr = items; in thread_map__new_by_pid()
54 for (i=0; i<items; i++) in thread_map__new_by_pid()
77 int max_threads = 32, items, i; in __thread_map__new_all_cpus() local
110 items = scandir(path, &namelist, filter, NULL); in __thread_map__new_all_cpus()
111 if (items <= 0) in __thread_map__new_all_cpus()
[all …]
Dconfig.h17 struct list_head items; member
71 perf_config_items__for_each_entry(&section->items, item)
/Linux-v5.10/sound/pci/lola/
Dlola_clock.c128 chip->clock.items = val & 0xff; in lola_init_clock_widget()
130 chip->clock.items); in lola_init_clock_widget()
131 if (chip->clock.items > MAX_SAMPLE_CLOCK_COUNT) { in lola_init_clock_widget()
133 chip->clock.items); in lola_init_clock_widget()
137 nitems = chip->clock.items; in lola_init_clock_widget()
143 unsigned short items[4]; in lola_init_clock_widget() local
152 items[0] = val & 0xfff; in lola_init_clock_widget()
153 items[1] = (val >> 16) & 0xfff; in lola_init_clock_widget()
154 items[2] = res_ex & 0xfff; in lola_init_clock_widget()
155 items[3] = (res_ex >> 16) & 0xfff; in lola_init_clock_widget()
[all …]
Dlola_proc.c59 unsigned short items[4]; in print_clock_widget() local
64 items[0] = val & 0xfff; in print_clock_widget()
65 items[1] = (val >> 16) & 0xfff; in print_clock_widget()
66 items[2] = res_ex & 0xfff; in print_clock_widget()
67 items[3] = (res_ex >> 16) & 0xfff; in print_clock_widget()
69 unsigned char type = items[j] >> 8; in print_clock_widget()
70 unsigned int freq = items[j] & 0xff; in print_clock_widget()
/Linux-v5.10/drivers/staging/comedi/drivers/ni_routing/tools/
Dconvert_py_to_csv.py16 return D.items()
28 for dest, srcD in D.items():
32 S = sorted(S.items(), key = lambda src_destD : src_destD[0])
44 *(((value_to_name[dest],v),) for dest,v in destD.items())
59 for family, dst_src_map in ni_values.ni_route_values.items():
62 for device, dst_src_map in ni_values.ni_device_routes.items():
Dconvert_csv_to_c.py36 for src, destD in D.items():
37 for dest, val in destD.items():
41 D0 = sorted(D0.items(), key=lambda i: eval(i[0], comedi_h.__dict__, Locals))
44 D1 = sorted(D1_D.items(), key=lambda i: eval(i[0], comedi_h.__dict__, Locals))
85 for src, destD in D.items():
86 for dest, val in destD.items():
90 D0 = sorted(D0.items(), key=lambda i: eval(i[0], comedi_h.__dict__, Locals))
96 D1 = [ k for k,v in D1_D.items() if v ]
237 sheets = sorted(self.items(), key=lambda i : tuple(i[0].split('-')[::-1]) )
428 sheets = sorted(self.items(), key=lambda i : i[0] )
Dni_names.py45 k:v for k,v in comedi_h.__dict__.items()
52 val_dict = {v:k for k,v in name_dict.items()}
/Linux-v5.10/Documentation/core-api/
Dworkqueue.rst22 While there are work items on the workqueue the worker executes the
23 functions associated with the work items one after the other. When
43 while an ST wq one for the whole system. Work items had to compete for
86 subsystems and drivers queue work items on and the backend mechanism
87 which manages worker-pools and processes the queued work items.
89 There are two worker-pools, one for normal work items and the other
91 worker-pools to serve work items queued on unbound workqueues - the
94 Subsystems and drivers can create and queue work items through special
96 aspects of the way the work items are executed by setting flags on the
118 number of the currently runnable workers. Generally, work items are
[all …]
Dcircular-buffers.rst41 (1) A 'head' index - the point at which the producer inserts items into the
51 The head index is incremented when items are added, and the tail index when
52 items are removed. The tail index should never jump the head index, and both
56 Typically, items will all be of the same unit size, but this isn't strictly
58 than 1 if multiple items or variable-sized items are to be included in the
82 This returns the amount of space left in the buffer[1] into which items
91 which items can be immediately inserted without having to wrap back to the
99 This returns the number of items currently occupying a buffer[2].
106 This returns the number of consecutive items[2] that can be extracted from
/Linux-v5.10/net/ceph/crush/
Dcrush.c49 kfree(b->h.items); in crush_destroy_bucket_uniform()
57 kfree(b->h.items); in crush_destroy_bucket_list()
63 kfree(b->h.items); in crush_destroy_bucket_tree()
72 kfree(b->h.items); in crush_destroy_bucket_straw()
79 kfree(b->h.items); in crush_destroy_bucket_straw2()
Dmapper.c131 return bucket->items[s]; in bucket_perm_choose()
148 __u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i], in bucket_list_choose()
153 i, x, r, bucket->h.items[i], bucket->item_weights[i], in bucket_list_choose()
159 return bucket->h.items[i]; in bucket_list_choose()
164 return bucket->h.items[0]; in bucket_list_choose()
222 return bucket->h.items[n >> 1]; in bucket_tree_choose()
237 draw = crush_hash32_3(bucket->h.hash, x, bucket->h.items[i], r); in bucket_straw_choose()
245 return bucket->h.items[high]; in bucket_straw_choose()
321 return bucket->h.items; in get_choose_arg_ids()
372 return bucket->h.items[high]; in bucket_straw2_choose()
[all …]
/Linux-v5.10/drivers/acpi/
Dproperty.c846 static int acpi_copy_property_array_u8(const union acpi_object *items, u8 *val, in acpi_copy_property_array_u8() argument
852 if (items[i].type != ACPI_TYPE_INTEGER) in acpi_copy_property_array_u8()
854 if (items[i].integer.value > U8_MAX) in acpi_copy_property_array_u8()
857 val[i] = items[i].integer.value; in acpi_copy_property_array_u8()
862 static int acpi_copy_property_array_u16(const union acpi_object *items, in acpi_copy_property_array_u16() argument
868 if (items[i].type != ACPI_TYPE_INTEGER) in acpi_copy_property_array_u16()
870 if (items[i].integer.value > U16_MAX) in acpi_copy_property_array_u16()
873 val[i] = items[i].integer.value; in acpi_copy_property_array_u16()
878 static int acpi_copy_property_array_u32(const union acpi_object *items, in acpi_copy_property_array_u32() argument
884 if (items[i].type != ACPI_TYPE_INTEGER) in acpi_copy_property_array_u32()
[all …]
/Linux-v5.10/tools/testing/radix-tree/
Dtag_check.c134 struct item *items[BATCH]; in gang_check() local
139 while ((nr_found = radix_tree_gang_lookup_tag(tree, (void **)items, in gang_check()
144 struct item *item = items[i]; in gang_check()
153 index = items[nr_found - 1]->index + 1; in gang_check()
311 struct item *items[BATCH]; in single_check() local
318 ret = radix_tree_gang_lookup_tag(&tree, (void **)items, 0, BATCH, 0); in single_check()
320 ret = radix_tree_gang_lookup_tag(&tree, (void **)items, 1, BATCH, 0); in single_check()
326 ret = radix_tree_gang_lookup_tag(&tree, (void **)items, 0, BATCH, 1); in single_check()
329 ret = radix_tree_gang_lookup_tag(&tree, (void **)items, 0, BATCH, 0); in single_check()
Dtest.c120 struct item *items[chunk]; in item_gang_check_present() local
131 nfound = radix_tree_gang_lookup(root, (void **)items, in item_gang_check_present()
135 assert(items[i]->index == start + into + i); in item_gang_check_present()
146 struct item *items[chunk]; in item_full_scan() local
154 while ((nfound = radix_tree_gang_lookup(root, (void **)items, into, in item_full_scan()
158 assert(items[i]->index == this_index); in item_full_scan()
167 nfound = radix_tree_gang_lookup(root, (void **)items, in item_full_scan()
/Linux-v5.10/tools/perf/scripts/perl/Perf-Trace-Util/
DContext.c38 if (items != 1) in XS()
61 if (items != 1) in XS()
84 if (items != 1) in XS()
112 PERL_UNUSED_VAR(items); /* -W */ in XS()
/Linux-v5.10/security/selinux/ss/
Davtab.c440 u32 items, items2, val, vers = pol->policyvers; in avtab_read_item() local
468 items = 0; in avtab_read_item()
470 val = le32_to_cpu(buf32[items++]); in avtab_read_item()
476 val = le32_to_cpu(buf32[items++]); in avtab_read_item()
482 val = le32_to_cpu(buf32[items++]); in avtab_read_item()
489 val = le32_to_cpu(buf32[items++]); in avtab_read_item()
509 datum.u.data = le32_to_cpu(buf32[items++]); in avtab_read_item()
516 if (items != items2) { in avtab_read_item()
518 items2, items); in avtab_read_item()
530 items = 0; in avtab_read_item()
[all …]
/Linux-v5.10/drivers/gpu/drm/vmwgfx/device_include/
Dsvga_overlay.h76 } items[1]; member
107 } items[1]; member
116 } items[SVGA_VIDEO_NUM_REGS]; member
/Linux-v5.10/drivers/staging/greybus/
Daudio_topology.c68 if (index >= control->items) in gbaudio_map_controlid()
77 if (index >= control->items) in gbaudio_map_controlid()
145 unsigned int items; in gb_generate_enum_strings() local
148 items = le32_to_cpu(gbenum->items); in gb_generate_enum_strings()
149 strings = devm_kcalloc(gb->dev, items, sizeof(char *), GFP_KERNEL); in gb_generate_enum_strings()
152 for (i = 0; i < items; i++) { in gb_generate_enum_strings()
194 max = le32_to_cpu(info->value.enumerated.items); in gbcodec_mixer_ctl_info()
195 uinfo->value.enumerated.items = max; in gbcodec_mixer_ctl_info()
610 if (ucontrol->value.enumerated.item[0] > e->items - 1) in gbcodec_enum_ctl_put()
616 if (ucontrol->value.enumerated.item[1] > e->items - 1) in gbcodec_enum_ctl_put()
[all …]
/Linux-v5.10/drivers/hwtracing/coresight/
Dcoresight-cti-platform.c271 int items, err = 0, nr_sigs; in cti_plat_read_trig_types() local
280 items = cti_plat_count_sig_elements(fwnode, type_name); in cti_plat_read_trig_types()
281 if (items > nr_sigs) in cti_plat_read_trig_types()
285 if (items) { in cti_plat_read_trig_types()
286 values = kcalloc(items, sizeof(u32), GFP_KERNEL); in cti_plat_read_trig_types()
291 values, items); in cti_plat_read_trig_types()
301 if (i < items) { in cti_plat_read_trig_types()
/Linux-v5.10/tools/perf/tests/
Dattr.py209 parser_items = parser_event.items(section);
217 base_items = parser_base.items('event')
244 for exp_name, exp_event in expect.items():
248 for res_name, res_event in result.items():
273 for exp_name, exp_event in expect.items():
290 for name, event in events.items():
295 for iname, ievent in events.items():
/Linux-v5.10/drivers/pinctrl/
Dpinconf-generic.c58 const struct pin_config_item *items, in pinconf_generic_dump_one() argument
68 config = pinconf_to_config_packed(items[i].param, 0); in pinconf_generic_dump_one()
85 seq_puts(s, items[i].display); in pinconf_generic_dump_one()
87 if (items[i].has_arg) { in pinconf_generic_dump_one()
90 if (items[i].format) in pinconf_generic_dump_one()
91 seq_printf(s, " %s)", items[i].format); in pinconf_generic_dump_one()
/Linux-v5.10/Documentation/process/
Ddeprecated.rst230 struct foo items[1];
241 struct foo items[0];
254 struct foo items[];
270 struct foo items[0];
275 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL);
278 size = sizeof(instance->items) * instance->count;
279 memcpy(instance->items, source, size);
283 allocated for the trailing array ``items``. Here are a couple examples of this
301 struct foo items[1];
306 instance = kmalloc(struct_size(instance, items, count - 1), GFP_KERNEL);
[all …]
/Linux-v5.10/fs/ceph/
Dmetric.c24 s32 items = 0; in ceph_mdsc_send_metrics() local
48 items++; in ceph_mdsc_send_metrics()
60 items++; in ceph_mdsc_send_metrics()
72 items++; in ceph_mdsc_send_metrics()
84 items++; in ceph_mdsc_send_metrics()
86 put_unaligned_le32(items, &head->num); in ceph_mdsc_send_metrics()

12345678910>>...12