/Linux-v4.19/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu_helper.c | 176 vvalue = vol_table->entries[i].value; in phm_trim_voltage_table() 180 if (vvalue == table->entries[j].value) { in phm_trim_voltage_table() 187 table->entries[table->count].value = vvalue; in phm_trim_voltage_table() 188 table->entries[table->count].smio_low = in phm_trim_voltage_table() 189 vol_table->entries[i].smio_low; in phm_trim_voltage_table() 217 vol_table->entries[i].value = dep_table->entries[i].mvdd; in phm_get_svi2_mvdd_voltage_table() 218 vol_table->entries[i].smio_low = 0; in phm_get_svi2_mvdd_voltage_table() 245 vol_table->entries[i].value = dep_table->entries[i].vddci; in phm_get_svi2_vddci_voltage_table() 246 vol_table->entries[i].smio_low = 0; in phm_get_svi2_vddci_voltage_table() 273 vol_table->entries[i].value = lookup_table->entries[i].us_vdd; in phm_get_svi2_vdd_voltage_table() [all …]
|
D | vega10_processpptables.c | 296 mm_dependency_record = &mm_dependency_table->entries[i]; in get_mm_clock_voltage_table() 297 mm_table->entries[i].vddcInd = mm_dependency_record->ucVddcInd; in get_mm_clock_voltage_table() 298 mm_table->entries[i].samclock = in get_mm_clock_voltage_table() 300 mm_table->entries[i].eclk = le32_to_cpu(mm_dependency_record->ulEClk); in get_mm_clock_voltage_table() 301 mm_table->entries[i].vclk = le32_to_cpu(mm_dependency_record->ulVClk); in get_mm_clock_voltage_table() 302 mm_table->entries[i].dclk = le32_to_cpu(mm_dependency_record->ulDClk); in get_mm_clock_voltage_table() 523 clk_table->entries[i].vddInd = in get_socclk_voltage_dependency_table() 524 clk_dep_table->entries[i].ucVddInd; in get_socclk_voltage_dependency_table() 525 clk_table->entries[i].clk = in get_socclk_voltage_dependency_table() 526 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_socclk_voltage_dependency_table() [all …]
|
/Linux-v4.19/kernel/events/ |
D | callchain.c | 51 struct callchain_cpus_entries *entries; in release_callchain_buffers_rcu() local 54 entries = container_of(head, struct callchain_cpus_entries, rcu_head); in release_callchain_buffers_rcu() 57 kfree(entries->cpu_entries[cpu]); in release_callchain_buffers_rcu() 59 kfree(entries); in release_callchain_buffers_rcu() 64 struct callchain_cpus_entries *entries; in release_callchain_buffers() local 66 entries = callchain_cpus_entries; in release_callchain_buffers() 68 call_rcu(&entries->rcu_head, release_callchain_buffers_rcu); in release_callchain_buffers() 75 struct callchain_cpus_entries *entries; in alloc_callchain_buffers() local 84 entries = kzalloc(size, GFP_KERNEL); in alloc_callchain_buffers() 85 if (!entries) in alloc_callchain_buffers() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | mem2node.c | 46 struct phys_entry *entries, *tmp_entries; in mem2node__init() local 58 entries = zalloc(sizeof(*entries) * max); in mem2node__init() 59 if (!entries) in mem2node__init() 80 struct phys_entry *prev = &entries[j - 1]; in mem2node__init() 89 phys_entry__init(&entries[j++], start, bsize, n->node); in mem2node__init() 94 tmp_entries = realloc(entries, sizeof(*entries) * j); in mem2node__init() 96 entries = tmp_entries; in mem2node__init() 100 entries[i].node, entries[i].start, entries[i].end); in mem2node__init() 102 phys_entry__insert(&entries[i], &map->root); in mem2node__init() 105 map->entries = entries; in mem2node__init() [all …]
|
D | rb_resort.h | 72 struct rb_root entries; \ 79 struct rb_node **p = &sorted->entries.rb_node, *parent = NULL; \ 88 rb_insert_color(sorted_nd, &sorted->entries); \ 92 struct rb_root *entries) \ 96 for (nd = rb_first(entries); nd; nd = rb_next(nd)) { \ 103 static struct __name##_sorted *__name##_sorted__new(struct rb_root *entries, \ 109 sorted->entries = RB_ROOT; \ 110 __name##_sorted__sort(sorted, entries); \ 128 for (__nd = rb_first(&__name->entries); \ 143 DECLARE_RESORT_RB(__name)(&__ilist->rblist.entries, \ [all …]
|
D | pstack.c | 17 void *entries[0]; member 44 if (pstack->entries[i] == key) { in pstack__remove() 46 memmove(pstack->entries + i, in pstack__remove() 47 pstack->entries + i + 1, in pstack__remove() 62 pstack->entries[pstack->top++] = key; in pstack__push() 74 ret = pstack->entries[--pstack->top]; in pstack__pop() 75 pstack->entries[pstack->top] = NULL; in pstack__pop() 83 return pstack->entries[pstack->top - 1]; in pstack__peek()
|
D | syscalltbl.c | 70 struct syscall *entries; in syscalltbl__init_native() local 76 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native() 77 if (tbl->syscalls.entries == NULL) in syscalltbl__init_native() 82 entries[j].name = syscalltbl_native[i]; in syscalltbl__init_native() 83 entries[j].id = i; in syscalltbl__init_native() 88 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native() 107 zfree(&tbl->syscalls.entries); in syscalltbl__delete() 118 struct syscall *sc = bsearch(name, tbl->syscalls.entries, in syscalltbl__id() 128 struct syscall *syscalls = tbl->syscalls.entries; in syscalltbl__strglobmatch_next()
|
D | rblist.c | 16 struct rb_node **p = &rblist->entries.rb_node; in rblist__add_node() 38 rb_insert_color(new_node, &rblist->entries); in rblist__add_node() 46 rb_erase(rb_node, &rblist->entries); in rblist__remove_node() 55 struct rb_node **p = &rblist->entries.rb_node; in __rblist__findnew() 76 rb_insert_color(new_node, &rblist->entries); in __rblist__findnew() 97 rblist->entries = RB_ROOT; in rblist__init() 106 struct rb_node *pos, *next = rb_first(&rblist->entries); in rblist__exit() 127 for (node = rb_first(&rblist->entries); node; node = rb_next(node)) { in rblist__entry()
|
/Linux-v4.19/tools/lib/api/fd/ |
D | array.c | 15 fda->entries = NULL; in fdarray__init() 27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow() local 29 if (entries == NULL) in fdarray__grow() 34 free(entries); in fdarray__grow() 39 fda->entries = entries; in fdarray__grow() 62 free(fda->entries); in fdarray__exit() 81 fda->entries[fda->nr].fd = fd; in fdarray__add() 82 fda->entries[fda->nr].events = revents; in fdarray__add() 97 if (fda->entries[fd].revents & revents) { in fdarray__filter() 105 fda->entries[nr] = fda->entries[fd]; in fdarray__filter() [all …]
|
/Linux-v4.19/arch/x86/kernel/cpu/ |
D | intel.c | 870 if (tlb_lli_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 871 tlb_lli_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() 872 if (tlb_lld_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 873 tlb_lld_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() 876 if (tlb_lli_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 877 tlb_lli_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() 878 if (tlb_lld_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 879 tlb_lld_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() 880 if (tlb_lli_2m[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 881 tlb_lli_2m[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() [all …]
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp_eth.c | 274 union eth_table_entry *entries; in __nfp_eth_read_ports() local 278 entries = kzalloc(NSP_ETH_TABLE_SIZE, GFP_KERNEL); in __nfp_eth_read_ports() 279 if (!entries) in __nfp_eth_read_ports() 282 ret = nfp_nsp_read_eth_table(nsp, entries, NSP_ETH_TABLE_SIZE); in __nfp_eth_read_ports() 289 if (entries[i].port & NSP_ETH_PORT_LANES_MASK) in __nfp_eth_read_ports() 309 if (entries[i].port & NSP_ETH_PORT_LANES_MASK) in __nfp_eth_read_ports() 310 nfp_eth_port_translate(nsp, &entries[i], i, in __nfp_eth_read_ports() 317 kfree(entries); in __nfp_eth_read_ports() 322 kfree(entries); in __nfp_eth_read_ports() 328 union eth_table_entry *entries; in nfp_eth_config_start() local [all …]
|
/Linux-v4.19/tools/perf/tests/ |
D | fdarray.c | 14 fda->entries[fd].fd = fda->nr - fd; in fdarray__init_revents() 15 fda->entries[fd].revents = revents; in fdarray__init_revents() 57 fda->entries[2].revents = POLLIN; in test__fdarray__filter() 58 expected_fd[0] = fda->entries[2].fd; in test__fdarray__filter() 69 if (fda->entries[0].fd != expected_fd[0]) { in test__fdarray__filter() 71 fda->entries[0].fd, expected_fd[0]); in test__fdarray__filter() 76 fda->entries[0].revents = POLLIN; in test__fdarray__filter() 77 expected_fd[0] = fda->entries[0].fd; in test__fdarray__filter() 78 fda->entries[3].revents = POLLIN; in test__fdarray__filter() 79 expected_fd[1] = fda->entries[3].fd; in test__fdarray__filter() [all …]
|
/Linux-v4.19/lib/ |
D | test_rhashtable.c | 76 unsigned int entries; member 141 unsigned int entries) in test_rht_lookup() argument 145 for (i = 0; i < entries; i++) { in test_rht_lookup() 178 static void test_bucket_stats(struct rhashtable *ht, unsigned int entries) in test_bucket_stats() argument 210 total, atomic_read(&ht->nelems), entries, chain_len); in test_bucket_stats() 212 if (total != atomic_read(&ht->nelems) || total != entries) in test_bucket_stats() 217 unsigned int entries) in test_rhashtable() argument 228 pr_info(" Adding %d keys\n", entries); in test_rhashtable() 230 for (i = 0; i < entries; i++) { in test_rhashtable() 245 test_bucket_stats(ht, entries); in test_rhashtable() [all …]
|
D | stackdepot.c | 73 unsigned long entries[1]; /* Variable-sized array of entries. */ member 108 static struct stack_record *depot_alloc_stack(unsigned long *entries, int size, in depot_alloc_stack() argument 111 int required_size = offsetof(struct stack_record, entries) + in depot_alloc_stack() 143 memcpy(stack->entries, entries, size * sizeof(unsigned long)); in depot_alloc_stack() 159 static inline u32 hash_stack(unsigned long *entries, unsigned int size) in hash_stack() argument 161 return jhash2((u32 *)entries, in hash_stack() 183 unsigned long *entries, int size, in find_stack() argument 191 !stackdepot_memcmp(entries, found->entries, size)) in find_stack() 205 trace->entries = stack->entries; in depot_fetch_stack() 230 hash = hash_stack(trace->entries, trace->nr_entries); in depot_save_stack() [all …]
|
/Linux-v4.19/drivers/misc/vmw_vmci/ |
D | vmci_handle_array.c | 66 array->entries[array->size] = handle; in vmci_handle_arr_append_entry() 80 if (vmci_handle_is_equal(array->entries[i], entry_handle)) { in vmci_handle_arr_remove_entry() 81 handle = array->entries[i]; in vmci_handle_arr_remove_entry() 83 array->entries[i] = array->entries[array->size]; in vmci_handle_arr_remove_entry() 84 array->entries[array->size] = VMCI_INVALID_HANDLE; in vmci_handle_arr_remove_entry() 101 handle = array->entries[array->size]; in vmci_handle_arr_remove_tail() 102 array->entries[array->size] = VMCI_INVALID_HANDLE; in vmci_handle_arr_remove_tail() 117 return array->entries[index]; in vmci_handle_arr_get_entry() 126 if (vmci_handle_is_equal(array->entries[i], entry_handle)) in vmci_handle_arr_has_entry() 139 return array->entries; in vmci_handle_arr_get_handles()
|
/Linux-v4.19/tools/perf/trace/beauty/ |
D | ioctl.c | 41 if (nr < strarray__ioctl_tty_cmd.nr_entries && strarray__ioctl_tty_cmd.entries[nr] != NULL) in ioctl__scnprintf_tty_cmd() 42 return scnprintf(bf, size, "%s", strarray__ioctl_tty_cmd.entries[nr]); in ioctl__scnprintf_tty_cmd() 52 if (nr < strarray__drm_ioctl_cmds.nr_entries && strarray__drm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_drm_cmd() 53 return scnprintf(bf, size, "DRM_%s", strarray__drm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_drm_cmd() 63 …if (nr < strarray__sndrv_pcm_ioctl_cmds.nr_entries && strarray__sndrv_pcm_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_pcm_cmd() 64 return scnprintf(bf, size, "SNDRV_PCM_%s", strarray__sndrv_pcm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_sndrv_pcm_cmd() 74 …if (nr < strarray__sndrv_ctl_ioctl_cmds.nr_entries && strarray__sndrv_ctl_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_ctl_cmd() 75 return scnprintf(bf, size, "SNDRV_CTL_%s", strarray__sndrv_ctl_ioctl_cmds.entries[nr]); in ioctl__scnprintf_sndrv_ctl_cmd() 85 if (nr < strarray__kvm_ioctl_cmds.nr_entries && strarray__kvm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_kvm_cmd() 86 return scnprintf(bf, size, "KVM_%s", strarray__kvm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_kvm_cmd() [all …]
|
/Linux-v4.19/arch/x86/kernel/ |
D | e820.c | 81 struct e820_entry *entry = &e820_table->entries[i]; in e820__mapped_any() 105 struct e820_entry *entry = &e820_table->entries[i]; in __e820__mapped_all() 157 if (x >= ARRAY_SIZE(table->entries)) { in __e820__range_add() 163 table->entries[x].addr = start; in __e820__range_add() 164 table->entries[x].size = size; in __e820__range_add() 165 table->entries[x].type = type; in __e820__range_add() 196 e820_table->entries[i].addr, in e820__print_table() 197 e820_table->entries[i].addr + e820_table->entries[i].size - 1); in e820__print_table() 199 e820_print_type(e820_table->entries[i].type); in e820__print_table() 296 struct e820_entry *entries = table->entries; in e820__update_table() local [all …]
|
/Linux-v4.19/virt/kvm/arm/vgic/ |
D | vgic-irqfd.c | 110 struct kvm_irq_routing_entry *entries; in kvm_vgic_setup_default_irq_routing() local 115 entries = kcalloc(nr, sizeof(*entries), GFP_KERNEL); in kvm_vgic_setup_default_irq_routing() 116 if (!entries) in kvm_vgic_setup_default_irq_routing() 120 entries[i].gsi = i; in kvm_vgic_setup_default_irq_routing() 121 entries[i].type = KVM_IRQ_ROUTING_IRQCHIP; in kvm_vgic_setup_default_irq_routing() 122 entries[i].u.irqchip.irqchip = 0; in kvm_vgic_setup_default_irq_routing() 123 entries[i].u.irqchip.pin = i; in kvm_vgic_setup_default_irq_routing() 125 ret = kvm_set_irq_routing(kvm, entries, nr, 0); in kvm_vgic_setup_default_irq_routing() 126 kfree(entries); in kvm_vgic_setup_default_irq_routing()
|
/Linux-v4.19/arch/powerpc/mm/ |
D | mmu_context_iommu.c | 37 u64 entries; /* number of entries in hpas[] */ member 129 long mm_iommu_get(struct mm_struct *mm, unsigned long ua, unsigned long entries, in mm_iommu_get() argument 143 if ((mem->ua == ua) && (mem->entries == entries)) { in mm_iommu_get() 150 if ((mem->ua < (ua + (entries << PAGE_SHIFT))) && in mm_iommu_get() 152 (mem->entries << PAGE_SHIFT)))) { in mm_iommu_get() 159 ret = mm_iommu_adjust_locked_vm(mm, entries, true); in mm_iommu_get() 163 locked_entries = entries; in mm_iommu_get() 176 mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); in mm_iommu_get() 177 mem->hpas = vzalloc(array_size(entries, sizeof(mem->hpas[0]))); in mm_iommu_get() 184 for (i = 0; i < entries; ++i) { in mm_iommu_get() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dpm.c | 290 amdgpu_table->entries = kzalloc(size, GFP_KERNEL); in amdgpu_parse_clk_voltage_dep_table() 291 if (!amdgpu_table->entries) in amdgpu_parse_clk_voltage_dep_table() 294 entry = &atom_table->entries[0]; in amdgpu_parse_clk_voltage_dep_table() 296 amdgpu_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | in amdgpu_parse_clk_voltage_dep_table() 298 amdgpu_table->entries[i].v = le16_to_cpu(entry->usVoltage); in amdgpu_parse_clk_voltage_dep_table() 437 le16_to_cpu(clk_v->entries[0].usSclkLow) | in amdgpu_parse_extended_power_table() 438 (clk_v->entries[0].ucSclkHigh << 16); in amdgpu_parse_extended_power_table() 440 le16_to_cpu(clk_v->entries[0].usMclkLow) | in amdgpu_parse_extended_power_table() 441 (clk_v->entries[0].ucMclkHigh << 16); in amdgpu_parse_extended_power_table() 443 le16_to_cpu(clk_v->entries[0].usVddc); in amdgpu_parse_extended_power_table() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 68 table->entries[i] = 0; in mlx4_init_mac_table() 82 table->entries[i] = 0; in mlx4_init_vlan_table() 105 if (index < 0 || index >= table->max || !table->entries[index]) { in validate_index() 120 (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) in find_index() 128 __be64 *entries) in mlx4_set_port_mac_table() argument 138 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); in mlx4_set_port_mac_table() 160 if (mac == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) { in mlx4_find_cached_mac() 216 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i])))) in __mlx4_register_mac() 218 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(dup_table->entries[i])))) in __mlx4_register_mac() 243 ((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[index_at_dup_port])))) in __mlx4_register_mac() [all …]
|
/Linux-v4.19/drivers/media/dvb-frontends/ |
D | dvb-pll.c | 75 } entries[]; member 88 .entries = { 111 .entries = { 134 .entries = { 152 .entries = { 167 .entries = { 189 .entries = { 203 .entries = { 229 .entries = { 262 .entries = { [all …]
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | r600_dpm.c | 829 radeon_table->entries = kzalloc(size, GFP_KERNEL); in r600_parse_clk_voltage_dep_table() 830 if (!radeon_table->entries) in r600_parse_clk_voltage_dep_table() 833 entry = &atom_table->entries[0]; in r600_parse_clk_voltage_dep_table() 835 radeon_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | in r600_parse_clk_voltage_dep_table() 837 radeon_table->entries[i].v = le16_to_cpu(entry->usVoltage); in r600_parse_clk_voltage_dep_table() 939 kfree(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries); in r600_parse_extended_power_table() 950 kfree(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries); in r600_parse_extended_power_table() 951 kfree(rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk.entries); in r600_parse_extended_power_table() 962 kfree(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries); in r600_parse_extended_power_table() 963 kfree(rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk.entries); in r600_parse_extended_power_table() [all …]
|
/Linux-v4.19/drivers/crypto/qat/qat_common/ |
D | adf_isr.c | 74 pci_dev_info->msix_entries.entries[i].entry = i; in adf_enable_msix() 76 pci_dev_info->msix_entries.entries[0].entry = in adf_enable_msix() 81 pci_dev_info->msix_entries.entries, in adf_enable_msix() 167 struct msix_entry *msixe = pci_dev_info->msix_entries.entries; in adf_request_irqs() 215 struct msix_entry *msixe = pci_dev_info->msix_entries.entries; in adf_free_irqs() 233 struct msix_entry *entries; in adf_isr_alloc_msix_entry_table() local 241 entries = kcalloc_node(msix_num_entries, sizeof(*entries), in adf_isr_alloc_msix_entry_table() 243 if (!entries) in adf_isr_alloc_msix_entry_table() 248 kfree(entries); in adf_isr_alloc_msix_entry_table() 257 accel_dev->accel_pci_dev.msix_entries.entries = entries; in adf_isr_alloc_msix_entry_table() [all …]
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | sysfs-firmware-efi-esrt | 13 Description: The number of entries in the ESRT 18 Description: The maximum number of entries that /could/ be registered 27 What: /sys/firmware/efi/esrt/entries/entry$N/ 31 subdirectory under entries/ . 32 example: /sys/firmware/efi/esrt/entries/entry0/ 34 What: /sys/firmware/efi/esrt/entries/entry$N/fw_type 43 What: /sys/firmware/efi/esrt/entries/entry$N/fw_class 48 What: /sys/firmware/efi/esrt/entries/entry$N/fw_version 54 What: /sys/firmware/efi/esrt/entries/entry$N/lowest_supported_fw_version 59 What: /sys/firmware/efi/esrt/entries/entry$N/capsule_flags [all …]
|