| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_overlay.c | 109 } *items; in vmw_overlay_send_put() local 117 fifo_size = sizeof(*cmds) + sizeof(*flush) + sizeof(*items) * num_items; in vmw_overlay_send_put() 124 items = (typeof(items))&cmds[1]; in vmw_overlay_send_put() 125 flush = (struct vmw_escape_video_flush *)&items[num_items]; in vmw_overlay_send_put() 128 fill_escape(&cmds->escape, sizeof(*items) * (num_items + 1)); in vmw_overlay_send_put() 135 items[i].registerId = i; in vmw_overlay_send_put() 140 items[SVGA_VIDEO_ENABLED].value = true; in vmw_overlay_send_put() 141 items[SVGA_VIDEO_FLAGS].value = arg->flags; in vmw_overlay_send_put() 142 items[SVGA_VIDEO_DATA_OFFSET].value = ptr.offset; in vmw_overlay_send_put() 143 items[SVGA_VIDEO_FORMAT].value = arg->format; in vmw_overlay_send_put() [all …]
|
| /linux/tools/perf/util/ |
| H A D | thread_map.c | 38 int items; in thread_map__new_by_pid() local 43 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid() 44 if (items <= 0) in thread_map__new_by_pid() 47 threads = thread_map__alloc(items); in thread_map__new_by_pid() 49 for (i = 0; i < items; i++) in thread_map__new_by_pid() 51 threads->nr = items; in thread_map__new_by_pid() 55 for (i=0; i<items; i++) in thread_map__new_by_pid() 78 int max_threads = 32, items, i; in thread_map__new_all_cpus() local 102 items = scandir(path, &namelist, filter, NULL); in thread_map__new_all_cpus() 103 if (items <= 0) { in thread_map__new_all_cpus() [all …]
|
| /linux/rust/syn/ |
| H A D | file.rs | 84 pub items: Vec<Item>, 101 items: { in parse() 102 let mut items = Vec::new(); in parse() localVariable 104 items.push(input.parse()?); in parse() 106 items in parse() 124 tokens.append_all(&self.items); in to_tokens()
|
| /linux/drivers/comedi/drivers/ni_routing/tools/ |
| H A D | convert_py_to_csv.py | 15 return D.items() 27 for dest, srcD in D.items(): 31 S = sorted(S.items(), key = lambda src_destD : src_destD[0]) 43 *(((value_to_name[dest],v),) for dest,v in destD.items()) 58 for family, dst_src_map in ni_values.ni_route_values.items(): 61 for device, dst_src_map in ni_values.ni_device_routes.items():
|
| H A D | convert_csv_to_c.py | 35 for src, destD in D.items(): 36 for dest, val in destD.items(): 40 D0 = sorted(D0.items(), key=lambda i: eval(i[0], comedi_h.__dict__, Locals)) 43 D1 = sorted(D1_D.items(), key=lambda i: eval(i[0], comedi_h.__dict__, Locals)) 84 for src, destD in D.items(): 85 for dest, val in destD.items(): 89 D0 = sorted(D0.items(), key=lambda i: eval(i[0], comedi_h.__dict__, Locals)) 95 D1 = [ k for k,v in D1_D.items() if v ] 233 sheets = sorted(self.items(), key=lambda i : tuple(i[0].split('-')[::-1]) ) 421 sheets = sorted(self.items(), key=lambda i : i[0] )
|
| H A D | ni_names.py | 44 k:v for k,v in comedi_h.__dict__.items() 51 val_dict = {v:k for k,v in name_dict.items()}
|
| /linux/kernel/bpf/ |
| H A D | cfg.c | 177 size_t new_size = sizeof(struct bpf_iarray) + n_elem * sizeof(old->items[0]); in bpf_iarray_realloc() 191 static int copy_insn_array(struct bpf_map *map, u32 start, u32 end, u32 *items) in copy_insn_array() argument 206 items[i - start] = value->xlated_off; in copy_insn_array() 216 static int sort_insn_array_uniq(u32 *items, int cnt) in sort_insn_array_uniq() argument 221 sort(items, cnt, sizeof(items[0]), cmp_ptr_to_u32, NULL); in sort_insn_array_uniq() 224 if (items[i] != items[unique - 1]) in sort_insn_array_uniq() 225 items[unique++] = items[i]; in sort_insn_array_uniq() 258 n = bpf_copy_insn_array_uniq(map, 0, map->max_entries - 1, jt->items); in jt_from_map() 304 if (jt_cur->items[0] >= subprog_start && jt_cur->items[0] < subprog_end) { in jt_from_subprog() 311 memcpy(jt->items + old_cnt, jt_cur->items, jt_cur->cnt << 2); in jt_from_subprog() [all …]
|
| /linux/net/ceph/crush/ |
| H A D | crush.c | 49 kfree(b->h.items); in crush_destroy_bucket_uniform() 56 kfree(b->h.items); in crush_destroy_bucket_list() 61 kfree(b->h.items); in crush_destroy_bucket_tree() 69 kfree(b->h.items); in crush_destroy_bucket_straw() 75 kfree(b->h.items); in crush_destroy_bucket_straw2()
|
| /linux/tools/perf/scripts/perl/Perf-Trace-Util/ |
| H A D | Context.c | 38 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/tools/testing/radix-tree/ |
| H A D | tag_check.c | 134 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()
|
| H A D | test.c | 120 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/sound/pci/lola/ |
| H A D | lola_proc.c | 59 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/drivers/gpu/drm/vmwgfx/device_include/ |
| H A D | svga_overlay.h | 72 } items[1]; member 99 } items[1]; member 109 } items[SVGA_VIDEO_NUM_REGS]; member
|
| /linux/security/selinux/ss/ |
| H A D | avtab.c | 313 u32 items, items2, val, i; in avtab_read_item() local 330 /* Read five or more items: source type, target type, in avtab_read_item() 343 items = 0; in avtab_read_item() 345 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 351 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 357 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 371 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 389 if (items >= items2) { in avtab_read_item() 390 pr_err("SELinux: avtab: entry has too many items (%d/%d)\n", in avtab_read_item() 391 items in avtab_read_item() [all...] |
| /linux/fs/ceph/ |
| H A D | metric.c | 115 s32 items = 0; in ceph_mdsc_send_metrics() local 176 items++; in ceph_mdsc_send_metrics() 189 items++; in ceph_mdsc_send_metrics() 202 items++; in ceph_mdsc_send_metrics() 215 items++; in ceph_mdsc_send_metrics() 226 items++; in ceph_mdsc_send_metrics() 238 items++; in ceph_mdsc_send_metrics() 248 items++; in ceph_mdsc_send_metrics() 258 items++; in ceph_mdsc_send_metrics() 268 items++; in ceph_mdsc_send_metrics() [all …]
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_config.py | 46 for name, value in self._entries.items(): 53 for name, value in self._entries.items(): 65 for name, value in self._entries.items(): 73 for name, value in other._entries.items():
|
| /linux/sound/virtio/ |
| H A D | virtio_kctl.c | 75 !le32_to_cpu(kinfo->value.enumerated.items)) { in virtsnd_kctl_info() 77 "control #%u: no items for enumerated control\n", in virtsnd_kctl_info() 125 uinfo->value.enumerated.items = in virtsnd_kctl_get() 126 le32_to_cpu(kinfo->value.enumerated.items); in virtsnd_kctl_get() 128 if (i >= uinfo->value.enumerated.items) in virtsnd_kctl_get() 131 strscpy(uinfo->value.enumerated.name, kctl->items[i].item, in virtsnd_kctl_get() 355 * virtsnd_kctl_get_enum_items() - Query items for the ENUMERATED element type. 371 unsigned int n = le32_to_cpu(kinfo->value.enumerated.items); in virtsnd_kctl_parse_cfg() 379 kctl->items = devm_kcalloc(&vdev->dev, n, sizeof(*kctl->items), in virtsnd_kctl_parse_cfg() [all...] |
| /linux/tools/cgroup/ |
| H A D | memcg_shrinker.py | 31 items = line.split(' ') 32 ino = int(items[0]) 34 shrinkers.append((int(items[1]), shrinker, ino))
|
| /linux/tools/net/sunrpc/xdrgen/templates/C/struct/encoder/ |
| H A D | fixed_length_array.j2 | 7 if (xdrgen_encode_{{ type }}(xdr, &value->items[i]) < 0) 9 if (xdrgen_encode_{{ type }}(xdr, value->items[i]) < 0)
|
| /linux/tools/net/sunrpc/xdrgen/templates/C/pointer/encoder/ |
| H A D | fixed_length_array.j2 | 7 if (xdrgen_encode_{{ type }}(xdr, &value->items[i]) < 0) 9 if (xdrgen_encode_{{ type }}(xdr, value->items[i]) < 0)
|
| /linux/tools/net/sunrpc/xdrgen/templates/C/typedef/decoder/ |
| H A D | fixed_length_array.j2 | 18 if (xdrgen_decode_{{ type }}(xdr, ptr->items[i]) < 0) 20 if (xdrgen_decode_{{ type }}(xdr, &ptr->items[i]) < 0)
|
| /linux/drivers/platform/mellanox/ |
| H A D | mlxreg-dpu.c | 312 .items = mlxreg_dpu_hotplug_items, 431 mlxreg_dpu->hotplug_data->items = devm_kmemdup(dev, hotplug_data->items, in mlxreg_dpu_copy_hotplug_data() 433 sizeof(*mlxreg_dpu->hotplug_data->items), in mlxreg_dpu_copy_hotplug_data() 435 if (!mlxreg_dpu->hotplug_data->items) in mlxreg_dpu_copy_hotplug_data() 438 item = mlxreg_dpu->hotplug_data->items; in mlxreg_dpu_copy_hotplug_data() 440 item->data = devm_kmemdup(dev, hotplug_data->items[i].data, in mlxreg_dpu_copy_hotplug_data() 441 hotplug_data->items[i].count * sizeof(*item->data), in mlxreg_dpu_copy_hotplug_data()
|
| /linux/tools/net/sunrpc/xdrgen/templates/C/typedef/encoder/ |
| H A D | fixed_length_array.j2 | 18 if (xdrgen_encode_{{ type }}(xdr, &value->items[i]) < 0) 20 if (xdrgen_encode_{{ type }}(xdr, value->items[i]) < 0)
|
| /linux/mm/kmsan/ |
| H A D | init.c | 139 struct page *items[MAX_BLOCKS]; member 152 stack->items[stack->index] = pages; in smallstack_push() 163 ret = stack->items[stack->index]; in smallstack_pop() 164 stack->items[stack->index] = NULL; in smallstack_pop()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/ |
| H A D | fbsr.c | 39 struct list_head items; member 193 list_add_tail(&item->head, &fbsr->items); in fbsr_vram() 222 INIT_LIST_HEAD(&fbsr.items); in r535_fbsr_suspend() 242 list_for_each_entry(item, &fbsr.items, head) { in r535_fbsr_suspend() 270 list_for_each_entry(item, &fbsr.items, head) { in r535_fbsr_suspend() 281 list_for_each_entry_safe(item, temp, &fbsr.items, head) { in r535_fbsr_suspend()
|