/linux-4.4.14/drivers/net/can/sja1000/ |
D | sja1000_isa.c | 133 int idx = pdev->id; in sja1000_isa_probe() local 137 idx, port[idx], mem[idx], irq[idx]); in sja1000_isa_probe() 139 if (mem[idx]) { in sja1000_isa_probe() 140 if (!request_mem_region(mem[idx], iosize, DRV_NAME)) { in sja1000_isa_probe() 144 base = ioremap_nocache(mem[idx], iosize); in sja1000_isa_probe() 150 if (indirect[idx] > 0 || in sja1000_isa_probe() 151 (indirect[idx] == -1 && indirect[0] > 0)) in sja1000_isa_probe() 153 if (!request_region(port[idx], iosize, DRV_NAME)) { in sja1000_isa_probe() 166 dev->irq = irq[idx]; in sja1000_isa_probe() 168 if (mem[idx]) { in sja1000_isa_probe() [all …]
|
/linux-4.4.14/drivers/net/can/cc770/ |
D | cc770_isa.c | 175 int idx = pdev->id; in cc770_isa_probe() local 180 idx, port[idx], mem[idx], irq[idx]); in cc770_isa_probe() 181 if (mem[idx]) { in cc770_isa_probe() 182 if (!request_mem_region(mem[idx], iosize, KBUILD_MODNAME)) { in cc770_isa_probe() 186 base = ioremap_nocache(mem[idx], iosize); in cc770_isa_probe() 192 if (indirect[idx] > 0 || in cc770_isa_probe() 193 (indirect[idx] == -1 && indirect[0] > 0)) in cc770_isa_probe() 195 if (!request_region(port[idx], iosize, KBUILD_MODNAME)) { in cc770_isa_probe() 208 dev->irq = irq[idx]; in cc770_isa_probe() 210 if (mem[idx]) { in cc770_isa_probe() [all …]
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | drm_buffer.c | 47 int idx; in drm_buffer_alloc() local 63 for (idx = 0; idx < nr_pages; ++idx) { in drm_buffer_alloc() 65 (*buf)->data[idx] = in drm_buffer_alloc() 66 kmalloc(min(PAGE_SIZE, size - idx * PAGE_SIZE), in drm_buffer_alloc() 70 if ((*buf)->data[idx] == NULL) { in drm_buffer_alloc() 73 idx + 1, size, nr_pages); in drm_buffer_alloc() 83 for (; idx >= 0; --idx) in drm_buffer_alloc() 84 kfree((*buf)->data[idx]); in drm_buffer_alloc() 101 int idx; in drm_buffer_copy_from_user() local 110 for (idx = 0; idx < nr_pages; ++idx) { in drm_buffer_copy_from_user() [all …]
|
D | evergreen_cs.c | 755 unsigned idx) in evergreen_cs_track_validate_texture() argument 763 texdw[0] = radeon_get_ib_value(p, idx + 0); in evergreen_cs_track_validate_texture() 764 texdw[1] = radeon_get_ib_value(p, idx + 1); in evergreen_cs_track_validate_texture() 765 texdw[2] = radeon_get_ib_value(p, idx + 2); in evergreen_cs_track_validate_texture() 766 texdw[3] = radeon_get_ib_value(p, idx + 3); in evergreen_cs_track_validate_texture() 767 texdw[4] = radeon_get_ib_value(p, idx + 4); in evergreen_cs_track_validate_texture() 768 texdw[5] = radeon_get_ib_value(p, idx + 5); in evergreen_cs_track_validate_texture() 769 texdw[6] = radeon_get_ib_value(p, idx + 6); in evergreen_cs_track_validate_texture() 770 texdw[7] = radeon_get_ib_value(p, idx + 7); in evergreen_cs_track_validate_texture() 1049 unsigned idx, unsigned reg) in evergreen_packet0_check() argument [all …]
|
D | r600_cs.c | 839 r = radeon_cs_packet_parse(p, &wait_reg_mem, p->idx); in r600_cs_common_vline_parse() 850 wait_reg_mem_info = radeon_get_ib_value(p, wait_reg_mem.idx + 1); in r600_cs_common_vline_parse() 866 if ((radeon_get_ib_value(p, wait_reg_mem.idx + 2) << 2) != vline_status[0]) { in r600_cs_common_vline_parse() 871 if (radeon_get_ib_value(p, wait_reg_mem.idx + 5) != RADEON_VLINE_STAT) { in r600_cs_common_vline_parse() 877 r = radeon_cs_packet_parse(p, &p3reloc, p->idx + wait_reg_mem.count + 2); in r600_cs_common_vline_parse() 881 h_idx = p->idx - 2; in r600_cs_common_vline_parse() 882 p->idx += wait_reg_mem.count + 2; in r600_cs_common_vline_parse() 883 p->idx += p3reloc.count + 2; in r600_cs_common_vline_parse() 920 unsigned idx, unsigned reg) in r600_packet0_check() argument 929 idx, reg); in r600_packet0_check() [all …]
|
D | atom.c | 180 uint32_t idx, val = 0xCDCDCDCD, align, arg; in atom_get_src_int() local 186 idx = U16(*ptr); in atom_get_src_int() 189 DEBUG("REG[0x%04X]", idx); in atom_get_src_int() 190 idx += gctx->reg_block; in atom_get_src_int() 193 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int() 217 idx, 0); in atom_get_src_int() 221 idx = U8(*ptr); in atom_get_src_int() 225 val = get_unaligned_le32((u32 *)&ctx->ps[idx]); in atom_get_src_int() 227 DEBUG("PS[0x%02X,0x%04X]", idx, val); in atom_get_src_int() 230 idx = U8(*ptr); in atom_get_src_int() [all …]
|
D | radeon_test.c | 265 uint32_t handle = ring->idx ^ 0xdeafbeef; in radeon_test_create_and_emit_fence() 268 if (ring->idx == R600_RING_TYPE_UVD_INDEX) { in radeon_test_create_and_emit_fence() 269 r = radeon_uvd_get_create_msg(rdev, ring->idx, handle, NULL); in radeon_test_create_and_emit_fence() 275 r = radeon_uvd_get_destroy_msg(rdev, ring->idx, handle, fence); in radeon_test_create_and_emit_fence() 281 } else if (ring->idx == TN_RING_TYPE_VCE1_INDEX || in radeon_test_create_and_emit_fence() 282 ring->idx == TN_RING_TYPE_VCE2_INDEX) { in radeon_test_create_and_emit_fence() 283 r = radeon_vce_get_create_msg(rdev, ring->idx, handle, NULL); in radeon_test_create_and_emit_fence() 289 r = radeon_vce_get_destroy_msg(rdev, ring->idx, handle, fence); in radeon_test_create_and_emit_fence() 298 DRM_ERROR("Failed to lock ring A %d\n", ring->idx); in radeon_test_create_and_emit_fence() 301 radeon_fence_emit(rdev, fence, ring->idx); in radeon_test_create_and_emit_fence() [all …]
|
D | radeon_vce.c | 476 unsigned idx; in radeon_vce_cs_reloc() local 480 idx = radeon_get_ib_value(p, hi); in radeon_vce_cs_reloc() 482 if (idx >= relocs_chunk->length_dw) { in radeon_vce_cs_reloc() 484 idx, relocs_chunk->length_dw); in radeon_vce_cs_reloc() 488 reloc = &p->relocs[(idx / 4)]; in radeon_vce_cs_reloc() 565 while (p->idx < p->chunk_ib->length_dw) { in radeon_vce_cs_parse() 566 uint32_t len = radeon_get_ib_value(p, p->idx); in radeon_vce_cs_parse() 567 uint32_t cmd = radeon_get_ib_value(p, p->idx + 1); in radeon_vce_cs_parse() 583 handle = radeon_get_ib_value(p, p->idx + 2); in radeon_vce_cs_parse() 602 *size = radeon_get_ib_value(p, p->idx + 8) * in radeon_vce_cs_parse() [all …]
|
/linux-4.4.14/drivers/net/ethernet/ti/ |
D | cpsw_ale.c | 56 int idx; in cpsw_ale_get_field() local 58 idx = start / 32; in cpsw_ale_get_field() 59 start -= idx * 32; in cpsw_ale_get_field() 60 idx = 2 - idx; /* flip */ in cpsw_ale_get_field() 61 return (ale_entry[idx] >> start) & BITMASK(bits); in cpsw_ale_get_field() 67 int idx; in cpsw_ale_set_field() local 70 idx = start / 32; in cpsw_ale_set_field() 71 start -= idx * 32; in cpsw_ale_set_field() 72 idx = 2 - idx; /* flip */ in cpsw_ale_set_field() 73 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field() [all …]
|
/linux-4.4.14/arch/x86/um/ |
D | tls_32.c | 66 int idx; in get_free_idx() local 71 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx() 72 if (!t->arch.tls_array[idx].present) in get_free_idx() 73 return idx + GDT_ENTRY_TLS_MIN; in get_free_idx() 95 int idx; in load_TLS() local 97 for (idx = GDT_ENTRY_TLS_MIN; idx < GDT_ENTRY_TLS_MAX; idx++) { in load_TLS() 99 &to->thread.arch.tls_array[idx - GDT_ENTRY_TLS_MIN]; in load_TLS() 108 curr->tls.entry_number = idx; in load_TLS() 204 int idx, int flushed) in set_tls_entry() argument 208 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in set_tls_entry() [all …]
|
/linux-4.4.14/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
D | Core.pm | 39 foreach my $idx (sort {$a <=> $b} keys %trace_flags) { 40 if (!$value && !$idx) { 45 if ($idx && ($value & $idx) == $idx) { 49 $string .= "$trace_flags{$idx}"; 51 $value &= ~$idx; 69 foreach my $idx (sort {$a <=> $b} keys %{$flag_fields{$event_name}{$field_name}{"values"}}) { 70 if (!$value && !$idx) { 71 $string .= "$flag_fields{$event_name}{$field_name}{'values'}{$idx}"; 74 if ($idx && ($value & $idx) == $idx) { 78 $string .= "$flag_fields{$event_name}{$field_name}{'values'}{$idx}"; [all …]
|
/linux-4.4.14/include/asm-generic/ |
D | fixmap.h | 29 static __always_inline unsigned long fix_to_virt(const unsigned int idx) in fix_to_virt() argument 31 BUILD_BUG_ON(idx >= __end_of_fixed_addresses); in fix_to_virt() 32 return __fix_to_virt(idx); in fix_to_virt() 63 #define set_fixmap(idx, phys) \ argument 64 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL) 68 #define clear_fixmap(idx) \ argument 69 __set_fixmap(idx, 0, FIXMAP_PAGE_CLEAR) 73 #define __set_fixmap_offset(idx, phys, flags) \ argument 76 __set_fixmap(idx, phys, flags); \ 77 addr = fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1)); \ [all …]
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event_intel_uncore_nhmex.c | 243 if (hwc->idx >= UNCORE_PMC_IDX_FIXED) in nhmex_uncore_msr_enable_event() 364 reg1->idx = 0; in nhmex_bbox_hw_config() 376 if (reg1->idx != EXTRA_REG_NONE) { in nhmex_bbox_msr_enable_event() 449 reg1->idx = 0; in nhmex_sbox_hw_config() 461 if (reg1->idx != EXTRA_REG_NONE) { in nhmex_sbox_msr_enable_event() 546 static bool nhmex_mbox_get_shared_reg(struct intel_uncore_box *box, int idx, u64 config) in nhmex_mbox_get_shared_reg() argument 553 if (idx < EXTRA_REG_NHMEX_M_ZDP_CTL_FVC) { in nhmex_mbox_get_shared_reg() 554 er = &box->shared_regs[idx]; in nhmex_mbox_get_shared_reg() 570 idx -= EXTRA_REG_NHMEX_M_ZDP_CTL_FVC; in nhmex_mbox_get_shared_reg() 571 if (WARN_ON_ONCE(idx >= 4)) in nhmex_mbox_get_shared_reg() [all …]
|
D | perf_event.c | 69 int idx = hwc->idx; in x86_perf_event_update() local 72 if (idx == INTEL_PMC_IDX_FIXED_BTS) in x86_perf_event_update() 129 reg->idx = er->idx; in x86_pmu_extra_regs() 567 event->hw.idx = -1; in __x86_pmu_event_init() 572 event->hw.extra_reg.idx = EXTRA_REG_NONE; in __x86_pmu_event_init() 573 event->hw.branch_reg.idx = EXTRA_REG_NONE; in __x86_pmu_event_init() 581 int idx; in x86_pmu_disable_all() local 583 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in x86_pmu_disable_all() 586 if (!test_bit(idx, cpuc->active_mask)) in x86_pmu_disable_all() 588 rdmsrl(x86_pmu_config_addr(idx), val); in x86_pmu_disable_all() [all …]
|
D | perf_event_intel_cstate.c | 112 bool (*test)(int idx); 133 bool test_core(int idx) in test_core() argument 147 if (idx == PERF_CSTATE_CORE_C3_RES || in test_core() 148 idx == PERF_CSTATE_CORE_C6_RES) in test_core() 169 if (idx == PERF_CSTATE_CORE_C3_RES || in test_core() 170 idx == PERF_CSTATE_CORE_C6_RES || in test_core() 171 idx == PERF_CSTATE_CORE_C7_RES) in test_core() 177 if (idx == PERF_CSTATE_CORE_C1_RES || in test_core() 178 idx == PERF_CSTATE_CORE_C6_RES) in test_core() 260 bool test_pkg(int idx) in test_pkg() argument [all …]
|
D | perf_event_intel_uncore.h | 16 #define UNCORE_PCI_DEV_DATA(type, idx) ((type << 8) | idx) argument 165 unsigned uncore_pci_event_ctl(struct intel_uncore_box *box, int idx) in uncore_pci_event_ctl() argument 167 return idx * 4 + box->pmu->type->event_ctl; in uncore_pci_event_ctl() 171 unsigned uncore_pci_perf_ctr(struct intel_uncore_box *box, int idx) in uncore_pci_perf_ctr() argument 173 return idx * 8 + box->pmu->type->perf_ctr; in uncore_pci_perf_ctr() 204 unsigned uncore_msr_event_ctl(struct intel_uncore_box *box, int idx) in uncore_msr_event_ctl() argument 207 (box->pmu->type->pair_ctr_ctl ? 2 * idx : idx) + in uncore_msr_event_ctl() 212 unsigned uncore_msr_perf_ctr(struct intel_uncore_box *box, int idx) in uncore_msr_perf_ctr() argument 215 (box->pmu->type->pair_ctr_ctl ? 2 * idx : idx) + in uncore_msr_perf_ctr() 238 unsigned uncore_event_ctl(struct intel_uncore_box *box, int idx) in uncore_event_ctl() argument [all …]
|
/linux-4.4.14/arch/arm64/kernel/ |
D | perf_event.c | 254 static inline int armv8pmu_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv8pmu_counter_valid() argument 256 return idx >= ARMV8_IDX_CYCLE_COUNTER && in armv8pmu_counter_valid() 257 idx <= ARMV8_IDX_COUNTER_LAST(cpu_pmu); in armv8pmu_counter_valid() 260 static inline int armv8pmu_counter_has_overflowed(u32 pmnc, int idx) in armv8pmu_counter_has_overflowed() argument 262 return pmnc & BIT(ARMV8_IDX_TO_COUNTER(idx)); in armv8pmu_counter_has_overflowed() 265 static inline int armv8pmu_select_counter(int idx) in armv8pmu_select_counter() argument 267 u32 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_select_counter() 271 return idx; in armv8pmu_select_counter() 278 int idx = hwc->idx; in armv8pmu_read_counter() local 281 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_read_counter() [all …]
|
D | perf_regs.c | 10 u64 perf_reg_value(struct pt_regs *regs, int idx) in perf_reg_value() argument 12 if (WARN_ON_ONCE((u32)idx >= PERF_REG_ARM64_MAX)) in perf_reg_value() 21 if ((u32)idx == PERF_REG_ARM64_SP) in perf_reg_value() 23 if ((u32)idx == PERF_REG_ARM64_LR) in perf_reg_value() 27 if ((u32)idx == PERF_REG_ARM64_SP) in perf_reg_value() 30 if ((u32)idx == PERF_REG_ARM64_PC) in perf_reg_value() 33 return regs->regs[idx]; in perf_reg_value()
|
D | ptrace.c | 141 unsigned long idx) in ptrace_hbp_get_event() argument 147 if (idx < ARM_MAX_BRP) in ptrace_hbp_get_event() 148 bp = tsk->thread.debug.hbp_break[idx]; in ptrace_hbp_get_event() 151 if (idx < ARM_MAX_WRP) in ptrace_hbp_get_event() 152 bp = tsk->thread.debug.hbp_watch[idx]; in ptrace_hbp_get_event() 161 unsigned long idx, in ptrace_hbp_set_event() argument 168 if (idx < ARM_MAX_BRP) { in ptrace_hbp_set_event() 169 tsk->thread.debug.hbp_break[idx] = bp; in ptrace_hbp_set_event() 174 if (idx < ARM_MAX_WRP) { in ptrace_hbp_set_event() 175 tsk->thread.debug.hbp_watch[idx] = bp; in ptrace_hbp_set_event() [all …]
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/ |
D | fpga_defs.h | 214 #define MAC_REG_ADDR(idx, reg) (MAC_REG_BASE + (idx) * 128 + (reg)) argument 216 #define MAC_REG_IDLO(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_LO) argument 217 #define MAC_REG_IDHI(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_HI) argument 218 #define MAC_REG_CSR(idx) MAC_REG_ADDR(idx, A_GMAC_CSR) argument 219 #define MAC_REG_IFS(idx) MAC_REG_ADDR(idx, A_GMAC_IFS) argument 220 #define MAC_REG_LARGEFRAMELENGTH(idx) MAC_REG_ADDR(idx, A_GMAC_JUMBO_FRAME_LEN) argument 221 #define MAC_REG_LINKDLY(idx) MAC_REG_ADDR(idx, A_GMAC_LNK_DLY) argument 222 #define MAC_REG_PAUSETIME(idx) MAC_REG_ADDR(idx, A_GMAC_PAUSETIME) argument 223 #define MAC_REG_CASTLO(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_LO) argument 224 #define MAC_REG_MCASTHI(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_HI) argument [all …]
|
/linux-4.4.14/arch/x86/kernel/ |
D | tls.c | 22 int idx; in get_free_idx() local 24 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx() 25 if (desc_empty(&t->tls_array[idx])) in get_free_idx() 26 return idx + GDT_ENTRY_TLS_MIN; in get_free_idx() 82 static void set_tls_desc(struct task_struct *p, int idx, in set_tls_desc() argument 86 struct desc_struct *desc = &t->tls_array[idx - GDT_ENTRY_TLS_MIN]; in set_tls_desc() 112 int do_set_thread_area(struct task_struct *p, int idx, in do_set_thread_area() argument 124 if (idx == -1) in do_set_thread_area() 125 idx = info.entry_number; in do_set_thread_area() 131 if (idx == -1 && can_allocate) { in do_set_thread_area() [all …]
|
/linux-4.4.14/arch/blackfin/kernel/cplb-nompu/ |
D | cplbmgr.c | 39 static inline void write_dcplb_data(int cpu, int idx, unsigned long data, in write_dcplb_data() argument 43 bfin_write32(DCPLB_DATA0 + idx * 4, data); in write_dcplb_data() 44 bfin_write32(DCPLB_ADDR0 + idx * 4, addr); in write_dcplb_data() 48 dcplb_tbl[cpu][idx].addr = addr; in write_dcplb_data() 49 dcplb_tbl[cpu][idx].data = data; in write_dcplb_data() 53 static inline void write_icplb_data(int cpu, int idx, unsigned long data, in write_icplb_data() argument 57 bfin_write32(ICPLB_DATA0 + idx * 4, data); in write_icplb_data() 58 bfin_write32(ICPLB_ADDR0 + idx * 4, addr); in write_icplb_data() 62 icplb_tbl[cpu][idx].addr = addr; in write_icplb_data() 63 icplb_tbl[cpu][idx].data = data; in write_icplb_data() [all …]
|
/linux-4.4.14/mm/ |
D | hugetlb_cgroup.c | 61 int idx; in hugetlb_cgroup_have_usage() local 63 for (idx = 0; idx < hugetlb_max_hstate; idx++) { in hugetlb_cgroup_have_usage() 64 if (page_counter_read(&h_cg->hugepage[idx])) in hugetlb_cgroup_have_usage() 75 int idx; in hugetlb_cgroup_css_alloc() local 82 for (idx = 0; idx < HUGE_MAX_HSTATE; idx++) in hugetlb_cgroup_css_alloc() 83 page_counter_init(&h_cgroup->hugepage[idx], in hugetlb_cgroup_css_alloc() 84 &parent_h_cgroup->hugepage[idx]); in hugetlb_cgroup_css_alloc() 87 for (idx = 0; idx < HUGE_MAX_HSTATE; idx++) in hugetlb_cgroup_css_alloc() 88 page_counter_init(&h_cgroup->hugepage[idx], NULL); in hugetlb_cgroup_css_alloc() 109 static void hugetlb_cgroup_move_parent(int idx, struct hugetlb_cgroup *h_cg, in hugetlb_cgroup_move_parent() argument [all …]
|
D | swap_cgroup.c | 42 unsigned long idx, max; in swap_cgroup_prepare() local 46 for (idx = 0; idx < ctrl->length; idx++) { in swap_cgroup_prepare() 50 ctrl->map[idx] = page; in swap_cgroup_prepare() 54 max = idx; in swap_cgroup_prepare() 55 for (idx = 0; idx < max; idx++) in swap_cgroup_prepare() 56 __free_page(ctrl->map[idx]); in swap_cgroup_prepare()
|
D | early_ioremap.c | 49 static inline void __init __late_set_fixmap(enum fixed_addresses idx, in __late_set_fixmap() argument 57 static inline void __init __late_clear_fixmap(enum fixed_addresses idx) in __late_clear_fixmap() argument 103 enum fixed_addresses idx; in __early_ioremap() local 143 idx = FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*slot; in __early_ioremap() 146 __late_set_fixmap(idx, phys_addr, prot); in __early_ioremap() 148 __early_set_fixmap(idx, phys_addr, prot); in __early_ioremap() 150 --idx; in __early_ioremap() 165 enum fixed_addresses idx; in early_iounmap() local 195 idx = FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*slot; in early_iounmap() 198 __late_clear_fixmap(idx); in early_iounmap() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | device.h | 167 int (*bar )(struct nvkm_device *, int idx, struct nvkm_bar **); 168 int (*bios )(struct nvkm_device *, int idx, struct nvkm_bios **); 169 int (*bus )(struct nvkm_device *, int idx, struct nvkm_bus **); 170 int (*clk )(struct nvkm_device *, int idx, struct nvkm_clk **); 171 int (*devinit)(struct nvkm_device *, int idx, struct nvkm_devinit **); 172 int (*fb )(struct nvkm_device *, int idx, struct nvkm_fb **); 173 int (*fuse )(struct nvkm_device *, int idx, struct nvkm_fuse **); 174 int (*gpio )(struct nvkm_device *, int idx, struct nvkm_gpio **); 175 int (*i2c )(struct nvkm_device *, int idx, struct nvkm_i2c **); 176 int (*ibus )(struct nvkm_device *, int idx, struct nvkm_subdev **); [all …]
|
/linux-4.4.14/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | Core.py | 37 for idx in keys: 38 if not value and not idx: 39 string += flag_fields[event_name][field_name]['values'][idx] 41 if idx and (value & idx) == idx: 44 string += flag_fields[event_name][field_name]['values'][idx] 46 value &= ~idx 56 for idx in keys: 57 if not value and not idx: 58 string = symbolic_fields[event_name][field_name]['values'][idx] 60 if (value == idx): [all …]
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
D | main.c | 58 unsigned int idx = 0; in mt7601u_add_interface() local 59 unsigned int wcid = GROUP_WCID(idx); in mt7601u_add_interface() 66 mvif->idx = idx; in mt7601u_add_interface() 71 mvif->group_wcid.idx = wcid; in mt7601u_add_interface() 82 unsigned int wcid = mvif->group_wcid.idx; in mt7601u_remove_interface() 195 int i, idx = 0; in mt76_wcid_alloc() local 198 idx = ffs(~dev->wcid_mask[i]); in mt76_wcid_alloc() 199 if (!idx) in mt76_wcid_alloc() 202 idx--; in mt76_wcid_alloc() 203 dev->wcid_mask[i] |= BIT(idx); in mt76_wcid_alloc() [all …]
|
D | mac.c | 22 u8 idx = MT76_GET(MT_TXWI_RATE_MCS, rate); in mt76_mac_process_tx_rate() local 24 txrate->idx = 0; in mt76_mac_process_tx_rate() 30 txrate->idx = idx + 4; in mt76_mac_process_tx_rate() 33 if (idx >= 8) in mt76_mac_process_tx_rate() 34 idx -= 8; in mt76_mac_process_tx_rate() 36 txrate->idx = idx; in mt76_mac_process_tx_rate() 43 txrate->idx = idx; in mt76_mac_process_tx_rate() 68 rate[last_rate + 1].idx = -1; in mt76_mac_fill_tx_status() 70 cur_idx = rate[last_rate].idx + st->retry; in mt76_mac_fill_tx_status() 73 rate[i].idx = max_t(int, 0, cur_idx - i); in mt76_mac_fill_tx_status() [all …]
|
/linux-4.4.14/kernel/sched/ |
D | cpudeadline.c | 41 swap(cp->elements[cpu_a].idx, cp->elements[cpu_b].idx); in cpudl_exchange() 44 static void cpudl_heapify(struct cpudl *cp, int idx) in cpudl_heapify() argument 50 l = left_child(idx); in cpudl_heapify() 51 r = right_child(idx); in cpudl_heapify() 52 largest = idx; in cpudl_heapify() 54 if ((l < cp->size) && dl_time_before(cp->elements[idx].dl, in cpudl_heapify() 60 if (largest == idx) in cpudl_heapify() 64 cpudl_exchange(cp, largest, idx); in cpudl_heapify() 65 idx = largest; in cpudl_heapify() 69 static void cpudl_change_key(struct cpudl *cp, int idx, u64 new_dl) in cpudl_change_key() argument [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gk104.c | 145 read_clk(struct gk104_clk *clk, int idx) in read_clk() argument 148 u32 sctl = nvkm_rd32(device, 0x137250 + (idx * 4)); in read_clk() 151 if (idx < 7) { in read_clk() 153 if (ssel & (1 << idx)) { in read_clk() 154 sclk = read_pll(clk, 0x137000 + (idx * 0x20)); in read_clk() 157 sclk = read_div(clk, idx, 0x137160, 0x1371d0); in read_clk() 161 u32 ssrc = nvkm_rd32(device, 0x137160 + (idx * 0x04)); in read_clk() 163 sclk = read_div(clk, idx, 0x137160, 0x1371d0); in read_clk() 172 sclk = read_div(clk, idx, 0x137160, 0x1371d0); in read_clk() 223 calc_div(struct gk104_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() argument [all …]
|
D | gf100.c | 125 read_clk(struct gf100_clk *clk, int idx) in read_clk() argument 128 u32 sctl = nvkm_rd32(device, 0x137250 + (idx * 4)); in read_clk() 132 if (ssel & (1 << idx)) { in read_clk() 133 if (idx < 7) in read_clk() 134 sclk = read_pll(clk, 0x137000 + (idx * 0x20)); in read_clk() 139 sclk = read_div(clk, idx, 0x137160, 0x1371d0); in read_clk() 202 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() argument 213 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() argument 235 sclk = read_vco(clk, 0x137160 + (idx * 4)); in calc_src() 236 if (idx < 7) in calc_src() [all …]
|
D | gt215.c | 43 read_vco(struct gt215_clk *clk, int idx) in read_vco() argument 46 u32 sctl = nvkm_rd32(device, 0x4120 + (idx * 4)); in read_vco() 61 read_clk(struct gt215_clk *clk, int idx, bool ignore_en) in read_clk() argument 67 if (idx >= 0x40) { in read_clk() 76 sctl = nvkm_rd32(device, 0x4120 + (idx * 4)); in read_clk() 99 sclk = read_vco(clk, idx); in read_clk() 108 read_pll(struct gt215_clk *clk, int idx, u32 pll) in read_pll() argument 127 sclk = read_clk(clk, 0x00 + idx, false); in read_pll() 130 sclk = read_clk(clk, 0x10 + idx, false); in read_pll() 184 gt215_clk_info(struct nvkm_clk *base, int idx, u32 khz, in gt215_clk_info() argument [all …]
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
D | pvrusb2-encoder.c | 44 unsigned int idx,addr; in pvr2_encoder_write_words() local 65 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_write_words() 66 addr = idx + offs; in pvr2_encoder_write_words() 70 PVR2_DECOMPOSE_LE(hdw->cmd_buffer, bAddr,data[idx]); in pvr2_encoder_write_words() 90 unsigned int idx; in pvr2_encoder_read_words() local 124 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_read_words() 125 data[idx] = PVR2_COMPOSE_LE(hdw->cmd_buffer,idx*4); in pvr2_encoder_read_words() 151 unsigned int idx; in pvr2_encoder_cmd() local 223 for (idx = 0; idx < arg_cnt_send; idx++) { in pvr2_encoder_cmd() 224 wrData[idx+4] = argp[idx]; in pvr2_encoder_cmd() [all …]
|
D | pvrusb2-ioread.c | 55 unsigned int idx; in pvr2_ioread_init() local 60 for (idx = 0; idx < BUFFER_COUNT; idx++) { in pvr2_ioread_init() 61 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); in pvr2_ioread_init() 62 if (!(cp->buffer_storage[idx])) break; in pvr2_ioread_init() 65 if (idx < BUFFER_COUNT) { in pvr2_ioread_init() 67 for (idx = 0; idx < BUFFER_COUNT; idx++) { in pvr2_ioread_init() 68 if (!(cp->buffer_storage[idx])) continue; in pvr2_ioread_init() 69 kfree(cp->buffer_storage[idx]); in pvr2_ioread_init() 78 unsigned int idx; in pvr2_ioread_done() local 81 for (idx = 0; idx < BUFFER_COUNT; idx++) { in pvr2_ioread_done() [all …]
|
D | pvrusb2-std.c | 123 unsigned int idx; in find_std_name() local 125 for (idx = 0; idx < arrSize; idx++) { in find_std_name() 126 p = arrPtr + idx; in find_std_name() 283 unsigned int idx; in match_std() local 284 for (idx = 0; idx < ARRAY_SIZE(generic_standards); idx++) { in match_std() 285 if (generic_standards[idx].id & id) { in match_std() 286 return generic_standards + idx; in match_std() 295 int idx; in pvr2_std_fill() local 299 idx = std->index; in pvr2_std_fill() 301 std->index = idx; in pvr2_std_fill() [all …]
|
D | pvrusb2-dvb.c | 111 unsigned int idx; in pvr2_dvb_stream_end() local 133 for (idx = 0; idx < PVR2_DVB_BUFFER_COUNT; idx++) { in pvr2_dvb_stream_end() 134 if (!(adap->buffer_storage[idx])) continue; in pvr2_dvb_stream_end() 135 kfree(adap->buffer_storage[idx]); in pvr2_dvb_stream_end() 136 adap->buffer_storage[idx] = NULL; in pvr2_dvb_stream_end() 145 unsigned int idx; in pvr2_dvb_stream_do_start() local 158 for (idx = 0; idx < PVR2_DVB_BUFFER_COUNT; idx++) { in pvr2_dvb_stream_do_start() 159 adap->buffer_storage[idx] = kmalloc(PVR2_DVB_BUFFER_SIZE, in pvr2_dvb_stream_do_start() 161 if (!(adap->buffer_storage[idx])) return -ENOMEM; in pvr2_dvb_stream_do_start() 170 for (idx = 0; idx < PVR2_DVB_BUFFER_COUNT; idx++) { in pvr2_dvb_stream_do_start() [all …]
|
D | pvrusb2-hdw.c | 1367 unsigned int idx; in pvr2_locate_firmware() local 1369 for (idx = 0; idx < fwcount; idx++) { in pvr2_locate_firmware() 1371 fwnames[idx], in pvr2_locate_firmware() 1377 fwnames[idx]); in pvr2_locate_firmware() 1378 return idx; in pvr2_locate_firmware() 1402 for (idx = 0; idx < fwcount; idx++) { in pvr2_locate_firmware() 1405 fwnames[idx]); in pvr2_locate_firmware() 1928 unsigned int idx; in pvr2_hdw_setup_std() local 1929 for (idx = 0; idx < ARRAY_SIZE(std_eeprom_maps); idx++) { in pvr2_hdw_setup_std() 1930 if (std_eeprom_maps[idx].msk ? in pvr2_hdw_setup_std() [all …]
|
/linux-4.4.14/arch/frv/mb93090-mb00/ |
D | pci-frv.c | 86 int idx; in pcibios_allocate_bus_resources() local 93 for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { in pcibios_allocate_bus_resources() 94 r = &dev->resource[idx]; in pcibios_allocate_bus_resources() 97 pci_claim_bridge_resource(dev, idx); in pcibios_allocate_bus_resources() 107 int idx, disabled; in pcibios_allocate_resources() local 113 for(idx = 0; idx < 6; idx++) { in pcibios_allocate_resources() 114 r = &dev->resource[idx]; in pcibios_allocate_resources() 126 if (pci_claim_resource(dev, idx) < 0) { in pcibios_allocate_resources() 150 int idx; in pcibios_assign_resources() local 160 for(idx=0; idx<6; idx++) { in pcibios_assign_resources() [all …]
|
/linux-4.4.14/drivers/irqchip/ |
D | irq-bcm7120-l2.c | 64 unsigned int idx; in bcm7120_l2_intc_irq_handle() local 68 for (idx = 0; idx < b->n_words; idx++) { in bcm7120_l2_intc_irq_handle() 69 int base = idx * IRQS_PER_WORD; in bcm7120_l2_intc_irq_handle() 76 pending = irq_reg_readl(gc, b->stat_offset[idx]) & in bcm7120_l2_intc_irq_handle() 78 data->irq_map_mask[idx]; in bcm7120_l2_intc_irq_handle() 118 unsigned int idx; in bcm7120_l2_intc_init_one() local 135 for (idx = 0; idx < data->n_words; idx++) { in bcm7120_l2_intc_init_one() 137 l1_data->irq_map_mask[idx] |= in bcm7120_l2_intc_init_one() 139 irq * data->n_words + idx); in bcm7120_l2_intc_init_one() 141 l1_data->irq_map_mask[idx] = 0xffffffff; in bcm7120_l2_intc_init_one() [all …]
|
D | irq-bcm7038-l1.c | 123 unsigned int idx; in bcm7038_l1_irq_handle() local 133 for (idx = 0; idx < intc->n_words; idx++) { in bcm7038_l1_irq_handle() 134 int base = idx * IRQS_PER_WORD; in bcm7038_l1_irq_handle() 139 pending = l1_readl(cpu->map_base + reg_status(intc, idx)) & in bcm7038_l1_irq_handle() 140 ~cpu->mask_cache[idx]; in bcm7038_l1_irq_handle() 220 unsigned int idx, in bcm7038_l1_init_one() argument 228 if (of_address_to_resource(dn, idx, &res)) in bcm7038_l1_init_one() 240 cpu = intc->cpus[idx] = kzalloc(sizeof(*cpu) + n_words * sizeof(u32), in bcm7038_l1_init_one() 254 parent_irq = irq_of_parse_and_map(dn, idx); in bcm7038_l1_init_one() 289 int idx, ret; in bcm7038_l1_of_init() local [all …]
|
/linux-4.4.14/drivers/input/misc/ |
D | ad714x.c | 214 static void ad714x_button_state_machine(struct ad714x_chip *ad714x, int idx) in ad714x_button_state_machine() argument 216 struct ad714x_button_plat *hw = &ad714x->hw->button[idx]; in ad714x_button_state_machine() 217 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; in ad714x_button_state_machine() 223 dev_dbg(ad714x->dev, "button %d touched\n", idx); in ad714x_button_state_machine() 233 dev_dbg(ad714x->dev, "button %d released\n", idx); in ad714x_button_state_machine() 249 static void ad714x_slider_cal_sensor_val(struct ad714x_chip *ad714x, int idx) in ad714x_slider_cal_sensor_val() argument 251 struct ad714x_slider_plat *hw = &ad714x->hw->slider[idx]; in ad714x_slider_cal_sensor_val() 267 static void ad714x_slider_cal_highest_stage(struct ad714x_chip *ad714x, int idx) in ad714x_slider_cal_highest_stage() argument 269 struct ad714x_slider_plat *hw = &ad714x->hw->slider[idx]; in ad714x_slider_cal_highest_stage() 270 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; in ad714x_slider_cal_highest_stage() [all …]
|
D | axp20x-pek.c | 40 unsigned int idx; member 44 { .time = 128, .idx = 0 }, 45 { .time = 1000, .idx = 2 }, 46 { .time = 3000, .idx = 1 }, 47 { .time = 2000, .idx = 3 }, 51 { .time = 4000, .idx = 0 }, 52 { .time = 6000, .idx = 1 }, 53 { .time = 8000, .idx = 2 }, 54 { .time = 10000, .idx = 3 }, 93 if (val == axp20x_ea->p_time[i].idx) in axp20x_show_ext_attr() [all …]
|
/linux-4.4.14/lib/ |
D | find_bit.c | 84 unsigned long idx; in find_first_bit() local 86 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit() 87 if (addr[idx]) in find_first_bit() 88 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 102 unsigned long idx; in find_first_zero_bit() local 104 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit() 105 if (addr[idx] != ~0UL) in find_first_zero_bit() 106 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit() 119 unsigned long idx = (size-1) / BITS_PER_LONG; in find_last_bit() local 122 val &= addr[idx]; in find_last_bit() [all …]
|
/linux-4.4.14/drivers/media/dvb-core/ |
D | dvb_ringbuffer.c | 208 ssize_t dvb_ringbuffer_pkt_read_user(struct dvb_ringbuffer *rbuf, size_t idx, in dvb_ringbuffer_pkt_read_user() argument 215 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read_user() 216 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; in dvb_ringbuffer_pkt_read_user() 220 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; in dvb_ringbuffer_pkt_read_user() 222 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read_user() 224 if (copy_to_user(buf, rbuf->data+idx, split)) in dvb_ringbuffer_pkt_read_user() 228 idx = 0; in dvb_ringbuffer_pkt_read_user() 230 if (copy_to_user(buf, rbuf->data+idx, todo)) in dvb_ringbuffer_pkt_read_user() 236 ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, in dvb_ringbuffer_pkt_read() argument 243 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read() [all …]
|
/linux-4.4.14/arch/metag/kernel/perf/ |
D | perf_event.c | 190 struct hw_perf_event *hwc, int idx) in metag_pmu_event_update() argument 206 new_raw_count = metag_pmu->read(idx); in metag_pmu_event_update() 222 struct hw_perf_event *hwc, int idx) in metag_pmu_event_set_period() argument 251 metag_pmu->write(idx, -left & MAX_PERIOD); in metag_pmu_event_set_period() 263 int idx = hwc->idx; in metag_pmu_start() local 265 if (WARN_ON_ONCE(idx == -1)) in metag_pmu_start() 287 metag_pmu_event_set_period(event, hwc, hwc->idx); in metag_pmu_start() 288 cpuc->events[idx] = event; in metag_pmu_start() 289 metag_pmu->enable(hwc, idx); in metag_pmu_start() 301 metag_pmu_event_update(event, hwc, hwc->idx); in metag_pmu_stop() [all …]
|
/linux-4.4.14/drivers/media/pci/pt3/ |
D | pt3_dma.c | 25 static u32 get_dma_base(int idx) in get_dma_base() argument 29 i = (idx == 1 || idx == 2) ? 3 - idx : idx; in get_dma_base() 70 static u8 *next_unit(struct pt3_adapter *adap, int *idx, int *ofs) in next_unit() argument 75 (*idx)++; in next_unit() 76 if (*idx == adap->num_bufs) in next_unit() 77 *idx = 0; in next_unit() 79 return &adap->buffer[*idx].data[*ofs]; in next_unit() 84 int idx, ofs; in pt3_proc_dma() local 86 idx = adap->buf_idx; in pt3_proc_dma() 89 if (adap->buffer[idx].data[ofs] == PT3_BUF_CANARY) in pt3_proc_dma() [all …]
|
/linux-4.4.14/arch/arc/kernel/ |
D | perf_event.c | 85 static uint64_t arc_pmu_read_counter(int idx) in arc_pmu_read_counter() argument 94 write_aux_reg(ARC_REG_PCT_INDEX, idx); in arc_pmu_read_counter() 104 struct hw_perf_event *hwc, int idx) in arc_perf_event_update() argument 107 uint64_t new_raw_count = arc_pmu_read_counter(idx); in arc_perf_event_update() 121 arc_perf_event_update(event, &event->hw, event->hw.idx); in arc_pmu_read() 219 int idx = hwc->idx; in arc_pmu_event_set_period() local 244 write_aux_reg(ARC_REG_PCT_INDEX, idx); in arc_pmu_event_set_period() 263 int idx = hwc->idx; in arc_pmu_start() local 265 if (WARN_ON_ONCE(idx == -1)) in arc_pmu_start() 278 read_aux_reg(ARC_REG_PCT_INT_CTRL) | (1 << idx)); in arc_pmu_start() [all …]
|
/linux-4.4.14/arch/arm/mm/ |
D | highmem.c | 21 static inline void set_fixmap_pte(int idx, pte_t pte) in set_fixmap_pte() argument 23 unsigned long vaddr = __fix_to_virt(idx); in set_fixmap_pte() 57 unsigned int idx; in kmap_atomic() local 82 idx = FIX_KMAP_BEGIN + type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic() 83 vaddr = __fix_to_virt(idx); in kmap_atomic() 96 set_fixmap_pte(idx, mk_pte(page, kmap_prot)); in kmap_atomic() 105 int idx, type; in __kunmap_atomic() local 109 idx = FIX_KMAP_BEGIN + type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 114 BUG_ON(vaddr != __fix_to_virt(idx)); in __kunmap_atomic() 115 set_fixmap_pte(idx, __pte(0)); in __kunmap_atomic() [all …]
|
/linux-4.4.14/arch/blackfin/kernel/cplb-mpu/ |
D | cplbmgr.c | 103 int idx; in dcplb_miss() local 127 int idx = page >> 5; in dcplb_miss() local 130 if (mask[idx] & bit) in dcplb_miss() 149 int idx = page >> 5; in dcplb_miss() local 152 if (mask[idx] & bit) in dcplb_miss() 156 if (mask[idx] & bit) in dcplb_miss() 160 idx = evict_one_dcplb(cpu); in dcplb_miss() 163 dcplb_tbl[cpu][idx].addr = addr; in dcplb_miss() 164 dcplb_tbl[cpu][idx].data = d_data; in dcplb_miss() 167 bfin_write32(DCPLB_DATA0 + idx * 4, d_data); in dcplb_miss() [all …]
|
/linux-4.4.14/arch/sh/kernel/cpu/sh4a/ |
D | ubc.c | 18 #define UBC_CBR(idx) (0xff200000 + (0x20 * idx)) argument 19 #define UBC_CRR(idx) (0xff200004 + (0x20 * idx)) argument 20 #define UBC_CAR(idx) (0xff200008 + (0x20 * idx)) argument 21 #define UBC_CAMR(idx) (0xff20000c + (0x20 * idx)) argument 35 static void sh4a_ubc_enable(struct arch_hw_breakpoint *info, int idx) in sh4a_ubc_enable() argument 37 __raw_writel(UBC_CBR_CE | info->len | info->type, UBC_CBR(idx)); in sh4a_ubc_enable() 38 __raw_writel(info->address, UBC_CAR(idx)); in sh4a_ubc_enable() 41 static void sh4a_ubc_disable(struct arch_hw_breakpoint *info, int idx) in sh4a_ubc_disable() argument 43 __raw_writel(0, UBC_CBR(idx)); in sh4a_ubc_disable() 44 __raw_writel(0, UBC_CAR(idx)); in sh4a_ubc_disable()
|
D | clock-sh7780.c | 36 int idx = (__raw_readl(FRQCR) & 0x0003); in module_clk_recalc() local 37 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 46 int idx = ((__raw_readl(FRQCR) >> 16) & 0x0007); in bus_clk_recalc() local 47 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc() 56 int idx = ((__raw_readl(FRQCR) >> 24) & 0x0001); in cpu_clk_recalc() local 57 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 71 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 73 if (idx < ARRAY_SIZE(sh7780_clk_ops)) in arch_init_clk_ops() 74 *ops = sh7780_clk_ops[idx]; in arch_init_clk_ops() 79 int idx = ((__raw_readl(FRQCR) >> 20) & 0x0007); in shyway_clk_recalc() local [all …]
|
D | clock-sh7770.c | 33 int idx = ((__raw_readl(FRQCR) >> 28) & 0x000f); in module_clk_recalc() local 34 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 43 int idx = (__raw_readl(FRQCR) & 0x000f); in bus_clk_recalc() local 44 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc() 53 int idx = ((__raw_readl(FRQCR) >> 24) & 0x000f); in cpu_clk_recalc() local 54 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 68 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 70 if (idx < ARRAY_SIZE(sh7770_clk_ops)) in arch_init_clk_ops() 71 *ops = sh7770_clk_ops[idx]; in arch_init_clk_ops()
|
D | perf_event.c | 17 #define PPC_CCBR(idx) (0xff200800 + (sizeof(u32) * idx)) argument 18 #define PPC_PMCTR(idx) (0xfc100000 + (sizeof(u32) * idx)) argument 230 static u64 sh4a_pmu_read(int idx) in sh4a_pmu_read() argument 232 return __raw_readl(PPC_PMCTR(idx)); in sh4a_pmu_read() 235 static void sh4a_pmu_disable(struct hw_perf_event *hwc, int idx) in sh4a_pmu_disable() argument 239 tmp = __raw_readl(PPC_CCBR(idx)); in sh4a_pmu_disable() 241 __raw_writel(tmp, PPC_CCBR(idx)); in sh4a_pmu_disable() 244 static void sh4a_pmu_enable(struct hw_perf_event *hwc, int idx) in sh4a_pmu_enable() argument 250 tmp |= idx ? PMCAT_CLR1 : PMCAT_CLR0; in sh4a_pmu_enable() 253 tmp = __raw_readl(PPC_CCBR(idx)); in sh4a_pmu_enable() [all …]
|
D | clock-sh7763.c | 36 int idx = ((__raw_readl(FRQCR) >> 4) & 0x07); in module_clk_recalc() local 37 return clk->parent->rate / p0fc_divisors[idx]; in module_clk_recalc() 46 int idx = ((__raw_readl(FRQCR) >> 16) & 0x07); in bus_clk_recalc() local 47 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc() 65 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 67 if (idx < ARRAY_SIZE(sh7763_clk_ops)) in arch_init_clk_ops() 68 *ops = sh7763_clk_ops[idx]; in arch_init_clk_ops() 73 int idx = ((__raw_readl(FRQCR) >> 20) & 0x07); in shyway_clk_recalc() local 74 return clk->parent->rate / cfc_divisors[idx]; in shyway_clk_recalc()
|
/linux-4.4.14/arch/arm/mach-omap2/ |
D | cm2xxx_3xxx.h | 53 static inline u32 omap2_cm_read_mod_reg(s16 module, u16 idx) in omap2_cm_read_mod_reg() argument 55 return readl_relaxed(cm_base + module + idx); in omap2_cm_read_mod_reg() 58 static inline void omap2_cm_write_mod_reg(u32 val, s16 module, u16 idx) in omap2_cm_write_mod_reg() argument 60 writel_relaxed(val, cm_base + module + idx); in omap2_cm_write_mod_reg() 65 s16 idx) in omap2_cm_rmw_mod_reg_bits() argument 69 v = omap2_cm_read_mod_reg(module, idx); in omap2_cm_rmw_mod_reg_bits() 72 omap2_cm_write_mod_reg(v, module, idx); in omap2_cm_rmw_mod_reg_bits() 78 static inline u32 omap2_cm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask) in omap2_cm_read_mod_bits_shift() argument 82 v = omap2_cm_read_mod_reg(domain, idx); in omap2_cm_read_mod_bits_shift() 89 static inline u32 omap2_cm_set_mod_reg_bits(u32 bits, s16 module, s16 idx) in omap2_cm_set_mod_reg_bits() argument [all …]
|
D | prm2xxx_3xxx.h | 56 static inline u32 omap2_prm_read_mod_reg(s16 module, u16 idx) in omap2_prm_read_mod_reg() argument 58 return readl_relaxed(prm_base + module + idx); in omap2_prm_read_mod_reg() 61 static inline void omap2_prm_write_mod_reg(u32 val, s16 module, u16 idx) in omap2_prm_write_mod_reg() argument 63 writel_relaxed(val, prm_base + module + idx); in omap2_prm_write_mod_reg() 68 s16 idx) in omap2_prm_rmw_mod_reg_bits() argument 72 v = omap2_prm_read_mod_reg(module, idx); in omap2_prm_rmw_mod_reg_bits() 75 omap2_prm_write_mod_reg(v, module, idx); in omap2_prm_rmw_mod_reg_bits() 81 static inline u32 omap2_prm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask) in omap2_prm_read_mod_bits_shift() argument 85 v = omap2_prm_read_mod_reg(domain, idx); in omap2_prm_read_mod_bits_shift() 92 static inline u32 omap2_prm_set_mod_reg_bits(u32 bits, s16 module, s16 idx) in omap2_prm_set_mod_reg_bits() argument [all …]
|
/linux-4.4.14/arch/sh/kernel/cpu/sh5/ |
D | clock-sh5.c | 27 int idx = (__raw_readl(cprc_base + 0x00) >> 6) & 0x0007; in master_clk_init() local 28 clk->rate *= ifc_table[idx]; in master_clk_init() 37 int idx = (__raw_readw(cprc_base) >> 12) & 0x0007; in module_clk_recalc() local 38 return clk->parent->rate / ifc_table[idx]; in module_clk_recalc() 47 int idx = (__raw_readw(cprc_base) >> 3) & 0x0007; in bus_clk_recalc() local 48 return clk->parent->rate / ifc_table[idx]; in bus_clk_recalc() 57 int idx = (__raw_readw(cprc_base) & 0x0007); in cpu_clk_recalc() local 58 return clk->parent->rate / ifc_table[idx]; in cpu_clk_recalc() 72 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 77 if (idx < ARRAY_SIZE(sh5_clk_ops)) in arch_init_clk_ops() [all …]
|
/linux-4.4.14/arch/metag/mm/ |
D | highmem.c | 42 enum fixed_addresses idx; in kmap_atomic() local 52 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic() 53 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic() 55 BUG_ON(!pte_none(*(kmap_pte - idx))); in kmap_atomic() 57 set_pte(kmap_pte - idx, mk_pte(page, PAGE_KERNEL)); in kmap_atomic() 66 int idx, type; in __kunmap_atomic() local 70 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 78 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic() 95 enum fixed_addresses idx; in kmap_atomic_pfn() local 103 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic_pfn() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | fw.c | 66 u8 idx; in _rtl8723e_fill_h2c_command() local 172 for (idx = 0; idx < 4; idx++) { in _rtl8723e_fill_h2c_command() 173 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl8723e_fill_h2c_command() 174 boxcontent[idx]); in _rtl8723e_fill_h2c_command() 182 for (idx = 0; idx < 4; idx++) { in _rtl8723e_fill_h2c_command() 183 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl8723e_fill_h2c_command() 184 boxcontent[idx]); in _rtl8723e_fill_h2c_command() 192 for (idx = 0; idx < 4; idx++) { in _rtl8723e_fill_h2c_command() 193 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl8723e_fill_h2c_command() 194 boxcontent[idx]); in _rtl8723e_fill_h2c_command() [all …]
|
/linux-4.4.14/arch/sh/kernel/cpu/sh3/ |
D | clock-sh7706.c | 28 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in master_clk_init() local 30 clk->rate *= pfc_divisors[idx]; in master_clk_init() 40 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in module_clk_recalc() local 42 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 52 int idx = ((frqcr & 0x8000) >> 13) | ((frqcr & 0x0030) >> 4); in bus_clk_recalc() local 54 return clk->parent->rate / stc_multipliers[idx]; in bus_clk_recalc() 64 int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2); in cpu_clk_recalc() local 66 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 80 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 82 if (idx < ARRAY_SIZE(sh7706_clk_ops)) in arch_init_clk_ops() [all …]
|
D | clock-sh7709.c | 28 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in master_clk_init() local 30 clk->rate *= pfc_divisors[idx]; in master_clk_init() 40 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in module_clk_recalc() local 42 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 52 int idx = (frqcr & 0x0080) ? in bus_clk_recalc() local 55 return clk->parent->rate * stc_multipliers[idx]; in bus_clk_recalc() 65 int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2); in cpu_clk_recalc() local 67 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 81 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 83 if (idx < ARRAY_SIZE(sh7709_clk_ops)) in arch_init_clk_ops() [all …]
|
D | clock-sh3.c | 32 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in master_clk_init() local 34 clk->rate *= pfc_divisors[idx]; in master_clk_init() 44 int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003); in module_clk_recalc() local 46 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 56 int idx = ((frqcr & 0x8000) >> 13) | ((frqcr & 0x0030) >> 4); in bus_clk_recalc() local 58 return clk->parent->rate / stc_multipliers[idx]; in bus_clk_recalc() 68 int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2); in cpu_clk_recalc() local 70 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 84 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 86 if (idx < ARRAY_SIZE(sh3_clk_ops)) in arch_init_clk_ops() [all …]
|
D | clock-sh7712.c | 27 int idx = (frqcr & 0x0300) >> 8; in master_clk_init() local 29 clk->rate *= multipliers[idx]; in master_clk_init() 39 int idx = frqcr & 0x0007; in module_clk_recalc() local 41 return clk->parent->rate / divisors[idx]; in module_clk_recalc() 51 int idx = (frqcr & 0x0030) >> 4; in cpu_clk_recalc() local 53 return clk->parent->rate / divisors[idx]; in cpu_clk_recalc() 66 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 68 if (idx < ARRAY_SIZE(sh7712_clk_ops)) in arch_init_clk_ops() 69 *ops = sh7712_clk_ops[idx]; in arch_init_clk_ops()
|
D | clock-sh7710.c | 38 int idx = (__raw_readw(FRQCR) & 0x0007); in module_clk_recalc() local 39 return clk->parent->rate / md_table[idx]; in module_clk_recalc() 48 int idx = (__raw_readw(FRQCR) & 0x0700) >> 8; in bus_clk_recalc() local 49 return clk->parent->rate / md_table[idx]; in bus_clk_recalc() 58 int idx = (__raw_readw(FRQCR) & 0x0070) >> 4; in cpu_clk_recalc() local 59 return clk->parent->rate / md_table[idx]; in cpu_clk_recalc() 73 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 75 if (idx < ARRAY_SIZE(sh7710_clk_ops)) in arch_init_clk_ops() 76 *ops = sh7710_clk_ops[idx]; in arch_init_clk_ops()
|
D | clock-sh7705.c | 44 int idx = __raw_readw(FRQCR) & 0x0003; in module_clk_recalc() local 45 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 54 int idx = (__raw_readw(FRQCR) & 0x0300) >> 8; in bus_clk_recalc() local 55 return clk->parent->rate / stc_multipliers[idx]; in bus_clk_recalc() 64 int idx = (__raw_readw(FRQCR) & 0x0030) >> 4; in cpu_clk_recalc() local 65 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 79 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 81 if (idx < ARRAY_SIZE(sh7705_clk_ops)) in arch_init_clk_ops() 82 *ops = sh7705_clk_ops[idx]; in arch_init_clk_ops()
|
/linux-4.4.14/arch/x86/crypto/sha-mb/ |
D | sha1_mb_mgr_flush_avx2.S | 69 # idx must be a register not clobbered by sha1_x8_avx2 70 #define idx %r8 macro 133 xor idx, idx 136 cmovne one(%rip), idx 139 cmovne two(%rip), idx 142 cmovne three(%rip), idx 145 cmovne four(%rip), idx 148 cmovne five(%rip), idx 151 cmovne six(%rip), idx 154 cmovne seven(%rip), idx [all …]
|
D | sha1_mb_mgr_submit_avx2.S | 74 # idx must be a register not clobberred by sha1_x8_avx2 75 idx = %r8 define 160 mov idx, len2 161 and $0xF, idx 179 # state and idx are intact 183 imul $_LANE_DATA_size, idx, lane_data 191 or idx, unused_lanes 194 movl $0xFFFFFFFF, _lens(state, idx, 4) 196 vmovd _args_digest(state, idx, 4), %xmm0 197 vpinsrd $1, _args_digest+1*32(state , idx, 4), %xmm0, %xmm0 [all …]
|
/linux-4.4.14/sound/isa/gus/ |
D | gus_mem_proc.c | 61 int idx; in snd_gf1_mem_proc_init() local 66 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init() 67 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init() 72 sprintf(name, "gus-ram-%i", idx); in snd_gf1_mem_proc_init() 78 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init() 79 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init() 83 for (idx = 0; idx < 4; idx++) { in snd_gf1_mem_proc_init() 84 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init() 90 sprintf(name, "gus-rom-%i", idx); in snd_gf1_mem_proc_init() 96 priv->address = idx * 4096 * 1024; in snd_gf1_mem_proc_init()
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_dp_mst_topology.c | 145 int idx = 0; in drm_dp_encode_sideband_msg_hdr() local 148 buf[idx++] = ((hdr->lct & 0xf) << 4) | (hdr->lcr & 0xf); in drm_dp_encode_sideband_msg_hdr() 150 buf[idx++] = hdr->rad[i]; in drm_dp_encode_sideband_msg_hdr() 151 buf[idx++] = (hdr->broadcast << 7) | (hdr->path_msg << 6) | in drm_dp_encode_sideband_msg_hdr() 153 buf[idx++] = (hdr->somt << 7) | (hdr->eomt << 6) | (hdr->seqno << 4); in drm_dp_encode_sideband_msg_hdr() 155 crc4 = drm_dp_msg_header_crc4(buf, (idx * 2) - 1); in drm_dp_encode_sideband_msg_hdr() 156 buf[idx - 1] |= (crc4 & 0xf); in drm_dp_encode_sideband_msg_hdr() 158 *len = idx; in drm_dp_encode_sideband_msg_hdr() 167 u8 idx; in drm_dp_decode_sideband_msg_hdr() local 183 idx = 1; in drm_dp_decode_sideband_msg_hdr() [all …]
|
/linux-4.4.14/drivers/w1/masters/ |
D | ds2482.c | 454 int idx; in ds2482_probe() local 498 for (idx = 0; idx < data->w1_count; idx++) { in ds2482_probe() 499 data->w1_ch[idx].pdev = data; in ds2482_probe() 500 data->w1_ch[idx].channel = idx; in ds2482_probe() 503 data->w1_ch[idx].w1_bm.data = &data->w1_ch[idx]; in ds2482_probe() 504 data->w1_ch[idx].w1_bm.read_byte = ds2482_w1_read_byte; in ds2482_probe() 505 data->w1_ch[idx].w1_bm.write_byte = ds2482_w1_write_byte; in ds2482_probe() 506 data->w1_ch[idx].w1_bm.touch_bit = ds2482_w1_touch_bit; in ds2482_probe() 507 data->w1_ch[idx].w1_bm.triplet = ds2482_w1_triplet; in ds2482_probe() 508 data->w1_ch[idx].w1_bm.reset_bus = ds2482_w1_reset_bus; in ds2482_probe() [all …]
|
/linux-4.4.14/arch/mips/include/asm/ |
D | msa.h | 23 extern void read_msa_wr_b(unsigned idx, union fpureg *to); 24 extern void read_msa_wr_h(unsigned idx, union fpureg *to); 25 extern void read_msa_wr_w(unsigned idx, union fpureg *to); 26 extern void read_msa_wr_d(unsigned idx, union fpureg *to); 37 static inline void read_msa_wr(unsigned idx, union fpureg *to, in read_msa_wr() argument 42 read_msa_wr_b(idx, to); in read_msa_wr() 46 read_msa_wr_h(idx, to); in read_msa_wr() 50 read_msa_wr_w(idx, to); in read_msa_wr() 54 read_msa_wr_d(idx, to); in read_msa_wr() 62 extern void write_msa_wr_b(unsigned idx, union fpureg *from); [all …]
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | perf_event.c | 190 static u64 bfin_pfmon_read(int idx) in bfin_pfmon_read() argument 192 return bfin_read32(PFCNTR0 + (idx * 4)); in bfin_pfmon_read() 195 static void bfin_pfmon_disable(struct hw_perf_event *hwc, int idx) in bfin_pfmon_disable() argument 197 bfin_write_PFCTL(bfin_read_PFCTL() & ~PFCEN(idx, PFCEN_MASK)); in bfin_pfmon_disable() 200 static void bfin_pfmon_enable(struct hw_perf_event *hwc, int idx) in bfin_pfmon_enable() argument 205 if (idx) { in bfin_pfmon_enable() 261 struct hw_perf_event *hwc, int idx) in bfin_perf_event_update() argument 281 new_raw_count = bfin_pfmon_read(idx); in bfin_perf_event_update() 305 int idx = hwc->idx; in bfin_pmu_stop() local 308 bfin_pfmon_disable(hwc, idx); in bfin_pmu_stop() [all …]
|
/linux-4.4.14/arch/alpha/kernel/ |
D | perf_event.c | 132 int idx; member 157 idx0 = ev67_mapping[evtype[0]-1].idx; in ev67_check_constraints() 198 event[0]->hw.idx = idx0; in ev67_check_constraints() 201 event[1]->hw.idx = idx0 ^ 1; in ev67_check_constraints() 232 static inline void alpha_write_pmc(int idx, unsigned long val) in alpha_write_pmc() argument 234 val &= alpha_pmu->pmc_count_mask[idx]; in alpha_write_pmc() 235 val <<= alpha_pmu->pmc_count_shift[idx]; in alpha_write_pmc() 236 val |= (1<<idx); in alpha_write_pmc() 240 static inline unsigned long alpha_read_pmc(int idx) in alpha_read_pmc() argument 245 val >>= alpha_pmu->pmc_count_shift[idx]; in alpha_read_pmc() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
D | lprocfs_counters.c | 44 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_add() argument 54 LASSERTF(0 <= idx && idx < stats->ls_num, in lprocfs_counter_add() 55 "idx %d, ls_num %hu\n", idx, stats->ls_num); in lprocfs_counter_add() 63 header = &stats->ls_cnt_header[idx]; in lprocfs_counter_add() 64 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); in lprocfs_counter_add() 92 void lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_sub() argument 102 LASSERTF(0 <= idx && idx < stats->ls_num, in lprocfs_counter_sub() 103 "idx %d, ls_num %hu\n", idx, stats->ls_num); in lprocfs_counter_sub() 111 header = &stats->ls_cnt_header[idx]; in lprocfs_counter_sub() 112 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); in lprocfs_counter_sub()
|
/linux-4.4.14/arch/mips/include/asm/sibyte/ |
D | bcm1480_regs.h | 552 #define A_BCM1480_HR_BASE(idx) (A_BCM1480_HR_BASE_0 + ((idx)*BCM1480_HR_REGISTER_SPACING)) argument 553 #define A_BCM1480_HR_REGISTER(idx, reg) (A_BCM1480_HR_BASE(idx) + (reg)) argument 563 #define R_BCM1480_HR_RULE_OP(idx) (BCM1480_HR_OP_OFFSET + ((idx)*BCM1480_HR_RULE_SPACING)) argument 564 #define R_BCM1480_HR_RULE_TYPE(idx) (BCM1480_HR_TYPE_OFFSET + ((idx)*BCM1480_HR_RULE_SPACING)) argument 569 #define R_BCM1480_HR_HA_LEAF0(idx) (BCM1480_HR_LEAF_OFFSET + ((idx)*BCM1480_HR_LEAF_SPACING)) argument 576 #define R_BCM1480_HR_PATH(idx) (BCM1480_HR_PATH_OFFSET + ((idx)*BCM1480_HR_PATH_SPACING)) argument 583 #define R_BCM1480_HR_RT_WORD(idx) (BCM1480_HR_ROUTE_OFFSET + ((idx)*BCM1480_HR_ROUTE_SPACING)) argument 601 #define A_BCM1480_PMI_LCL_BASE(idx) (A_BCM1480_PMI_LCL_0 + ((idx)*BCM1480_PM_LCL_REGISTER_SPACING)) argument 602 #define A_BCM1480_PMI_LCL_REGISTER(idx, reg) (A_BCM1480_PMI_LCL_BASE(idx) + (reg)) argument 603 #define A_BCM1480_PMO_LCL_BASE(idx) (A_BCM1480_PMO_LCL_0 + ((idx)*BCM1480_PM_LCL_REGISTER_SPACING)) argument [all …]
|
/linux-4.4.14/arch/sh/kernel/ |
D | perf_event.c | 180 struct hw_perf_event *hwc, int idx) in sh_perf_event_update() argument 200 new_raw_count = sh_pmu->read(idx); in sh_perf_event_update() 224 int idx = hwc->idx; in sh_pmu_stop() local 227 sh_pmu->disable(hwc, idx); in sh_pmu_stop() 228 cpuc->events[idx] = NULL; in sh_pmu_stop() 233 sh_perf_event_update(event, &event->hw, idx); in sh_pmu_stop() 242 int idx = hwc->idx; in sh_pmu_start() local 244 if (WARN_ON_ONCE(idx == -1)) in sh_pmu_start() 250 cpuc->events[idx] = event; in sh_pmu_start() 252 sh_pmu->enable(hwc, idx); in sh_pmu_start() [all …]
|
/linux-4.4.14/arch/mips/mm/ |
D | highmem.c | 48 int idx, type; in kmap_atomic() local 56 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic() 57 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic() 59 BUG_ON(!pte_none(*(kmap_pte - idx))); in kmap_atomic() 61 set_pte(kmap_pte-idx, mk_pte(page, PAGE_KERNEL)); in kmap_atomic() 82 int idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() local 84 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in __kunmap_atomic() 90 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic() 107 int idx, type; in kmap_atomic_pfn() local 113 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_pfn() [all …]
|
D | tlb-r8k.c | 91 signed long idx; in local_flush_tlb_range() local 97 idx = read_c0_tlbset(); in local_flush_tlb_range() 98 if (idx < 0) in local_flush_tlb_range() 101 write_c0_entryhi(CKSEG0 + (idx << (PAGE_SHIFT + 1))); in local_flush_tlb_range() 131 signed long idx; in local_flush_tlb_kernel_range() local 137 idx = read_c0_tlbset(); in local_flush_tlb_kernel_range() 138 if (idx < 0) in local_flush_tlb_kernel_range() 141 write_c0_entryhi(CKSEG0 + (idx << (PAGE_SHIFT + 1))); in local_flush_tlb_kernel_range() 153 signed long idx; in local_flush_tlb_page() local 165 idx = read_c0_tlbset(); in local_flush_tlb_page() [all …]
|
D | tlb-r4k.c | 138 int idx; in local_flush_tlb_range() local 145 idx = read_c0_index(); in local_flush_tlb_range() 148 if (idx < 0) in local_flush_tlb_range() 151 write_c0_entryhi(UNIQUE_ENTRYHI(idx)); in local_flush_tlb_range() 184 int idx; in local_flush_tlb_kernel_range() local 191 idx = read_c0_index(); in local_flush_tlb_kernel_range() 194 if (idx < 0) in local_flush_tlb_kernel_range() 197 write_c0_entryhi(UNIQUE_ENTRYHI(idx)); in local_flush_tlb_kernel_range() 217 int oldpid, newpid, idx; in local_flush_tlb_page() local 228 idx = read_c0_index(); in local_flush_tlb_page() [all …]
|
D | tlb-r3k.c | 104 int idx; in local_flush_tlb_range() local 109 idx = read_c0_index(); in local_flush_tlb_range() 112 if (idx < 0) /* BARRIER */ in local_flush_tlb_range() 141 int idx; in local_flush_tlb_kernel_range() local 146 idx = read_c0_index(); in local_flush_tlb_kernel_range() 149 if (idx < 0) /* BARRIER */ in local_flush_tlb_kernel_range() 166 int oldpid, newpid, idx; in local_flush_tlb_page() local 178 idx = read_c0_index(); in local_flush_tlb_page() 181 if (idx < 0) /* BARRIER */ in local_flush_tlb_page() 194 int idx, pid; in __update_tlb() local [all …]
|
/linux-4.4.14/security/selinux/ |
D | netnode.c | 116 unsigned int idx; in sel_netnode_find() local 121 idx = sel_netnode_hashfn_ipv4(*(__be32 *)addr); in sel_netnode_find() 124 idx = sel_netnode_hashfn_ipv6(addr); in sel_netnode_find() 131 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list) in sel_netnode_find() 158 unsigned int idx; in sel_netnode_insert() local 162 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert() 165 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6); in sel_netnode_insert() 174 list_add_rcu(&node->list, &sel_netnode_hash[idx].list); in sel_netnode_insert() 175 if (sel_netnode_hash[idx].size == SEL_NETNODE_HASH_BKT_LIMIT) { in sel_netnode_insert() 178 rcu_dereference_protected(sel_netnode_hash[idx].list.prev, in sel_netnode_insert() [all …]
|
D | netport.c | 96 unsigned int idx; in sel_netport_find() local 99 idx = sel_netport_hashfn(pnum); in sel_netport_find() 100 list_for_each_entry_rcu(port, &sel_netport_hash[idx].list, list) in sel_netport_find() 117 unsigned int idx; in sel_netport_insert() local 121 idx = sel_netport_hashfn(port->psec.port); in sel_netport_insert() 122 list_add_rcu(&port->list, &sel_netport_hash[idx].list); in sel_netport_insert() 123 if (sel_netport_hash[idx].size == SEL_NETPORT_HASH_BKT_LIMIT) { in sel_netport_insert() 127 sel_netport_hash[idx].list.prev, in sel_netport_insert() 133 sel_netport_hash[idx].size++; in sel_netport_insert() 222 unsigned int idx; in sel_netport_flush() local [all …]
|
D | netif.c | 74 int idx = sel_netif_hashfn(ns, ifindex); in sel_netif_find() local 77 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) in sel_netif_find() 96 int idx; in sel_netif_insert() local 101 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert() 102 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert() 251 int idx; in sel_netif_flush() local 255 for (idx = 0; idx < SEL_NETIF_HASH_SIZE; idx++) in sel_netif_flush() 256 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
|
/linux-4.4.14/arch/arm/kernel/ |
D | perf_event_v7.c | 622 static inline int armv7_pmnc_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv7_pmnc_counter_valid() argument 624 return idx >= ARMV7_IDX_CYCLE_COUNTER && in armv7_pmnc_counter_valid() 625 idx <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); in armv7_pmnc_counter_valid() 628 static inline int armv7_pmnc_counter_has_overflowed(u32 pmnc, int idx) in armv7_pmnc_counter_has_overflowed() argument 630 return pmnc & BIT(ARMV7_IDX_TO_COUNTER(idx)); in armv7_pmnc_counter_has_overflowed() 633 static inline void armv7_pmnc_select_counter(int idx) in armv7_pmnc_select_counter() argument 635 u32 counter = ARMV7_IDX_TO_COUNTER(idx); in armv7_pmnc_select_counter() 644 int idx = hwc->idx; in armv7pmu_read_counter() local 647 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_read_counter() 649 smp_processor_id(), idx); in armv7pmu_read_counter() [all …]
|
D | perf_event_xscale.c | 151 int idx; in xscale1pmu_handle_irq() local 173 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq() 174 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq() 180 if (!xscale1_pmnc_counter_has_overflowed(pmnc, idx)) in xscale1pmu_handle_irq() 210 int idx = hwc->idx; in xscale1pmu_enable_event() local 212 switch (idx) { in xscale1pmu_enable_event() 228 WARN_ONCE(1, "invalid counter number (%d)\n", idx); in xscale1pmu_enable_event() 246 int idx = hwc->idx; in xscale1pmu_disable_event() local 248 switch (idx) { in xscale1pmu_disable_event() 262 WARN_ONCE(1, "invalid counter number (%d)\n", idx); in xscale1pmu_disable_event() [all …]
|
D | perf_event_v6.c | 238 int counter = hwc->idx; in armv6pmu_read_counter() 256 int counter = hwc->idx; in armv6pmu_write_counter() 274 int idx = hwc->idx; in armv6pmu_enable_event() local 276 if (ARMV6_CYCLE_COUNTER == idx) { in armv6pmu_enable_event() 279 } else if (ARMV6_COUNTER0 == idx) { in armv6pmu_enable_event() 283 } else if (ARMV6_COUNTER1 == idx) { in armv6pmu_enable_event() 288 WARN_ONCE(1, "invalid counter number (%d)\n", idx); in armv6pmu_enable_event() 313 int idx; in armv6pmu_handle_irq() local 327 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq() 328 struct perf_event *event = cpuc->events[idx]; in armv6pmu_handle_irq() [all …]
|
/linux-4.4.14/sound/pci/ice1712/ |
D | wtm.c | 82 int id, idx, change; in stac9460_dac_mute_all() local 88 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all() 90 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all() 91 old = stac9460_get(ice, idx); in stac9460_dac_mute_all() 95 stac9460_put(ice, idx, new); in stac9460_dac_mute_all() 107 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all() 109 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all() 110 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all() 114 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_all() 133 int idx, id; in stac9460_dac_mute_get() local [all …]
|
D | prodigy192.c | 92 static int stac9460_dac_mute(struct snd_ice1712 *ice, int idx, in stac9460_dac_mute() argument 97 old = stac9460_get(ice, idx); in stac9460_dac_mute() 102 stac9460_put(ice, idx, new); in stac9460_dac_mute() 112 int idx; in stac9460_dac_mute_get() local 115 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get() 117 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get() 118 val = stac9460_get(ice, idx); in stac9460_dac_mute_get() 127 int idx, change; in stac9460_dac_mute_put() local 130 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put() 132 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put() [all …]
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | perf_event.c | 129 static inline uint32_t xtensa_pmu_read_counter(int idx) in xtensa_pmu_read_counter() argument 131 return get_er(XTENSA_PMU_PM(idx)); in xtensa_pmu_read_counter() 134 static inline void xtensa_pmu_write_counter(int idx, uint32_t v) in xtensa_pmu_write_counter() argument 136 set_er(v, XTENSA_PMU_PM(idx)); in xtensa_pmu_write_counter() 140 struct hw_perf_event *hwc, int idx) in xtensa_perf_event_update() argument 147 new_raw_count = xtensa_pmu_read_counter(event->hw.idx); in xtensa_perf_event_update() 158 struct hw_perf_event *hwc, int idx) in xtensa_perf_event_set_period() argument 185 xtensa_pmu_write_counter(idx, -left); in xtensa_perf_event_set_period() 246 int idx = hwc->idx; in xtensa_pmu_start() local 248 if (WARN_ON_ONCE(idx == -1)) in xtensa_pmu_start() [all …]
|
/linux-4.4.14/drivers/clk/ |
D | clk-scpi.c | 76 int idx; in __scpi_dvfs_round_rate() local 80 for (idx = 0; idx < clk->info->count; idx++, opp++) { in __scpi_dvfs_round_rate() 97 int idx = clk->scpi_ops->dvfs_get_idx(clk->id); in scpi_dvfs_recalc_rate() local 100 if (idx < 0) in scpi_dvfs_recalc_rate() 103 opp = clk->info->opps + idx; in scpi_dvfs_recalc_rate() 117 int idx, max_opp = clk->info->count; in __scpi_find_dvfs_index() local 120 for (idx = 0; idx < max_opp; idx++, opp++) in __scpi_find_dvfs_index() 122 return idx; in __scpi_find_dvfs_index() 191 unsigned int idx = clkspec->args[0], count; in scpi_of_clk_src_get() local 195 if (idx == sclk->id) in scpi_of_clk_src_get() [all …]
|
D | clk-qoriq.c | 640 static int mux_set_parent(struct clk_hw *hw, u8 idx) in mux_set_parent() argument 645 if (idx >= hwc->num_parents) in mux_set_parent() 648 clksel = hwc->parent_to_clksel[idx]; in mux_set_parent() 686 int idx) in get_pll_div() argument 690 if (!(hwc->info->clksel[idx].flags & CLKSEL_VALID)) in get_pll_div() 693 pll = hwc->info->clksel[idx].pll; in get_pll_div() 694 div = hwc->info->clksel[idx].div; in get_pll_div() 704 const char *fmt, int idx) in create_mux_common() argument 713 snprintf(name, sizeof(name), fmt, idx); in create_mux_common() 757 static struct clk * __init create_one_cmux(struct clockgen *cg, int idx) in create_one_cmux() argument [all …]
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_qsfp.c | 276 int idx; in qib_refresh_qsfp_cache() local 342 for (idx = 0; idx < QSFP_VEND_LEN; ++idx) in qib_refresh_qsfp_cache() 343 cks += cp->vendor[idx]; in qib_refresh_qsfp_cache() 353 for (idx = 0; idx < QSFP_VOUI_LEN; ++idx) in qib_refresh_qsfp_cache() 354 cks += cp->oui[idx]; in qib_refresh_qsfp_cache() 359 for (idx = 0; idx < QSFP_PN_LEN; ++idx) in qib_refresh_qsfp_cache() 360 cks += cp->partnum[idx]; in qib_refresh_qsfp_cache() 365 for (idx = 0; idx < QSFP_REV_LEN; ++idx) in qib_refresh_qsfp_cache() 366 cks += cp->rev[idx]; in qib_refresh_qsfp_cache() 371 for (idx = 0; idx < QSFP_ATTEN_LEN; ++idx) in qib_refresh_qsfp_cache() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | disp.c | 59 nvbios_disp_entry(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, u8 *sub) in nvbios_disp_entry() argument 63 if (data && idx < cnt) in nvbios_disp_entry() 64 return data + hdr + (idx * *len); in nvbios_disp_entry() 70 nvbios_disp_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, u8 *sub, in nvbios_disp_parse() argument 73 u16 data = nvbios_disp_entry(bios, idx, ver, len, sub); in nvbios_disp_parse() 82 nvbios_outp_entry(struct nvkm_bios *bios, u8 idx, in nvbios_outp_entry() argument 86 u16 data = nvbios_disp_parse(bios, idx, ver, len, hdr, &info); in nvbios_outp_entry() 96 nvbios_outp_parse(struct nvkm_bios *bios, u8 idx, in nvbios_outp_parse() argument 99 u16 data = nvbios_outp_entry(bios, idx, ver, hdr, cnt, len); in nvbios_outp_parse() 119 u16 data, idx = 0; in nvbios_outp_match() local [all …]
|
D | cstep.c | 59 nvbios_cstepEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) in nvbios_cstepEe() argument 63 if (data && idx < cnt) { in nvbios_cstepEe() 64 data = data + *hdr + (idx * len); in nvbios_cstepEe() 72 nvbios_cstepEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_cstepEp() argument 75 u16 data = nvbios_cstepEe(bios, idx, ver, hdr); in nvbios_cstepEp() 88 u32 data, idx = 0; in nvbios_cstepEm() local 89 while ((data = nvbios_cstepEp(bios, idx++, ver, hdr, info))) { in nvbios_cstepEm() 97 nvbios_cstepXe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) in nvbios_cstepXe() argument 101 if (data && idx < xnr) { in nvbios_cstepXe() 102 data = data + *hdr + (cnt * len) + (idx * xsz); in nvbios_cstepXe() [all …]
|
D | dp.c | 58 nvbios_dpout_entry(struct nvkm_bios *bios, u8 idx, in nvbios_dpout_entry() argument 62 if (data && idx < *cnt) { in nvbios_dpout_entry() 63 u16 outp = nvbios_rd16(bios, data + *hdr + idx * *len); in nvbios_dpout_entry() 87 nvbios_dpout_parse(struct nvkm_bios *bios, u8 idx, in nvbios_dpout_parse() argument 91 u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len); in nvbios_dpout_parse() 133 u16 data, idx = 0; in nvbios_dpout_match() local 134 while ((data = nvbios_dpout_parse(bios, idx++, ver, hdr, cnt, len, info)) || *ver) { in nvbios_dpout_match() 144 nvbios_dpcfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx, in nvbios_dpcfg_entry() argument 155 if (idx < *cnt) in nvbios_dpcfg_entry() 156 return outp + *hdr + (idx * *len); in nvbios_dpcfg_entry() [all …]
|
D | P0260.c | 58 nvbios_P0260Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len) in nvbios_P0260Ee() argument 62 if (data && idx < cnt) in nvbios_P0260Ee() 63 return data + hdr + (idx * *len); in nvbios_P0260Ee() 68 nvbios_P0260Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len, in nvbios_P0260Ep() argument 71 u32 data = nvbios_P0260Ee(bios, idx, ver, len); in nvbios_P0260Ep() 84 nvbios_P0260Xe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *xsz) in nvbios_P0260Xe() argument 88 if (data && idx < xnr) in nvbios_P0260Xe() 89 return data + hdr + (cnt * len) + (idx * *xsz); in nvbios_P0260Xe() 94 nvbios_P0260Xp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_P0260Xp() argument 97 u32 data = nvbios_P0260Xe(bios, idx, ver, hdr); in nvbios_P0260Xp()
|
D | boost.c | 59 nvbios_boostEe(struct nvkm_bios *bios, int idx, in nvbios_boostEe() argument 64 if (data && idx < *cnt) { in nvbios_boostEe() 65 data = data + *hdr + (idx * (*len + (snr * ssz))); in nvbios_boostEe() 75 nvbios_boostEp(struct nvkm_bios *bios, int idx, in nvbios_boostEp() argument 78 u16 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len); in nvbios_boostEp() 92 u32 data, idx = 0; in nvbios_boostEm() local 93 while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) { in nvbios_boostEm() 101 nvbios_boostSe(struct nvkm_bios *bios, int idx, in nvbios_boostSe() argument 104 if (data && idx < cnt) { in nvbios_boostSe() 105 data = data + *hdr + (idx * len); in nvbios_boostSe() [all …]
|
D | M0205.c | 75 nvbios_M0205Ee(struct nvkm_bios *bios, int idx, in nvbios_M0205Ee() argument 80 if (data && idx < *cnt) { in nvbios_M0205Ee() 81 data = data + *hdr + idx * (*len + (snr * ssz)); in nvbios_M0205Ee() 91 nvbios_M0205Ep(struct nvkm_bios *bios, int idx, in nvbios_M0205Ep() argument 95 u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0205Ep() 108 nvbios_M0205Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) in nvbios_M0205Se() argument 113 if (data && idx < cnt) { in nvbios_M0205Se() 114 data = data + *hdr + idx * len; in nvbios_M0205Se() 122 nvbios_M0205Sp(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, in nvbios_M0205Sp() argument 125 u32 data = nvbios_M0205Se(bios, ent, idx, ver, hdr); in nvbios_M0205Sp()
|
D | pmu.c | 33 int idx = 0; in weirdo_pointer() local 34 if (nvbios_image(bios, idx++, &image)) { in weirdo_pointer() 36 while (nvbios_image(bios, idx++, &image)) { in weirdo_pointer() 65 nvbios_pmuEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) in nvbios_pmuEe() argument 69 if (data && idx < cnt) { in nvbios_pmuEe() 70 data = data + *hdr + (idx * len); in nvbios_pmuEe() 78 nvbios_pmuEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_pmuEp() argument 81 u32 data = nvbios_pmuEe(bios, idx, ver, hdr); in nvbios_pmuEp() 96 u8 ver, hdr, idx = 0; in nvbios_pmuRm() local 99 while ((data = nvbios_pmuEp(bios, idx++, &ver, &hdr, &pmuE))) { in nvbios_pmuRm()
|
D | M0209.c | 58 nvbios_M0209Ee(struct nvkm_bios *bios, int idx, in nvbios_M0209Ee() argument 63 if (data && idx < *cnt) { in nvbios_M0209Ee() 64 data = data + *hdr + idx * (*len + (snr * ssz)); in nvbios_M0209Ee() 74 nvbios_M0209Ep(struct nvkm_bios *bios, int idx, in nvbios_M0209Ep() argument 77 u32 data = nvbios_M0209Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0209Ep() 95 nvbios_M0209Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) in nvbios_M0209Se() argument 100 if (data && idx < cnt) { in nvbios_M0209Se() 101 data = data + *hdr + idx * len; in nvbios_M0209Se() 109 nvbios_M0209Sp(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, in nvbios_M0209Sp() argument 116 u32 i, data = nvbios_M0209Se(bios, ent, idx, ver, hdr); in nvbios_M0209Sp()
|
/linux-4.4.14/arch/sh/kernel/cpu/sh4/ |
D | clock-sh4.c | 40 int idx = (__raw_readw(FRQCR) & 0x0007); in module_clk_recalc() local 41 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 50 int idx = (__raw_readw(FRQCR) >> 3) & 0x0007; in bus_clk_recalc() local 51 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc() 60 int idx = (__raw_readw(FRQCR) >> 6) & 0x0007; in cpu_clk_recalc() local 61 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 75 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 77 if (idx < ARRAY_SIZE(sh4_clk_ops)) in arch_init_clk_ops() 78 *ops = sh4_clk_ops[idx]; in arch_init_clk_ops()
|
D | perf_event.c | 205 static u64 sh7750_pmu_read(int idx) in sh7750_pmu_read() argument 207 return (u64)((u64)(__raw_readl(PMCTRH(idx)) & 0xffff) << 32) | in sh7750_pmu_read() 208 __raw_readl(PMCTRL(idx)); in sh7750_pmu_read() 211 static void sh7750_pmu_disable(struct hw_perf_event *hwc, int idx) in sh7750_pmu_disable() argument 215 tmp = __raw_readw(PMCR(idx)); in sh7750_pmu_disable() 217 __raw_writew(tmp, PMCR(idx)); in sh7750_pmu_disable() 220 static void sh7750_pmu_enable(struct hw_perf_event *hwc, int idx) in sh7750_pmu_enable() argument 222 __raw_writew(__raw_readw(PMCR(idx)) | PMCR_PMCLR, PMCR(idx)); in sh7750_pmu_enable() 223 __raw_writew(hwc->config | PMCR_PMEN | PMCR_PMST, PMCR(idx)); in sh7750_pmu_enable()
|
/linux-4.4.14/arch/mn10300/unit-asb2305/ |
D | pci-asb2305.c | 95 int idx; in pcibios_allocate_bus_resources() local 102 for (idx = PCI_BRIDGE_RESOURCES; in pcibios_allocate_bus_resources() 103 idx < PCI_NUM_RESOURCES; in pcibios_allocate_bus_resources() 104 idx++) { in pcibios_allocate_bus_resources() 105 r = &dev->resource[idx]; in pcibios_allocate_bus_resources() 109 pci_claim_bridge_resource(dev, idx) < 0) { in pcibios_allocate_bus_resources() 113 idx, pci_name(dev)); in pcibios_allocate_bus_resources() 130 int idx, disabled; in pcibios_allocate_resources() local 136 for (idx = 0; idx < 6; idx++) { in pcibios_allocate_resources() 137 r = &dev->resource[idx]; in pcibios_allocate_resources() [all …]
|
/linux-4.4.14/drivers/input/serio/ |
D | hp_sdc.c | 193 curr->seq[curr->idx++] = status; in hp_sdc_take() 194 curr->seq[curr->idx++] = data; in hp_sdc_take() 208 curr->actidx = curr->idx; in hp_sdc_take() 209 curr->idx++; in hp_sdc_take() 326 curr->idx += hp_sdc.rqty; in hp_sdc_tasklet() 342 curr->actidx = curr->idx; in hp_sdc_tasklet() 343 curr->idx++; in hp_sdc_tasklet() 355 int idx, curridx; in hp_sdc_put() local 416 idx = curr->actidx; in hp_sdc_put() 427 act = curr->seq[idx]; in hp_sdc_put() [all …]
|
D | hp_sdc_mlc.c | 64 int idx; in hp_sdc_mlc_isr() local 73 idx = 15 - mlc->icount; in hp_sdc_mlc_isr() 75 mlc->ipacket[idx] |= data | HIL_ERR_INT; in hp_sdc_mlc_isr() 77 if (hp_sdc_mlc_priv.got5x || !idx) in hp_sdc_mlc_isr() 79 if ((mlc->ipacket[idx - 1] & HIL_PKT_ADDR_MASK) != in hp_sdc_mlc_isr() 80 (mlc->ipacket[idx] & HIL_PKT_ADDR_MASK)) { in hp_sdc_mlc_isr() 81 mlc->ipacket[idx] &= ~HIL_PKT_ADDR_MASK; in hp_sdc_mlc_isr() 82 mlc->ipacket[idx] |= (mlc->ipacket[idx - 1] in hp_sdc_mlc_isr() 90 mlc->ipacket[idx] = in hp_sdc_mlc_isr() 100 && (mlc->ipacket[idx] == (mlc->imatch | idx))) in hp_sdc_mlc_isr() [all …]
|
/linux-4.4.14/arch/powerpc/mm/ |
D | highmem.c | 35 int idx, type; in kmap_atomic_prot() local 43 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_prot() 44 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic_prot() 46 BUG_ON(!pte_none(*(kmap_pte-idx))); in kmap_atomic_prot() 48 __set_pte_at(&init_mm, vaddr, kmap_pte-idx, mk_pte(page, prot), 1); in kmap_atomic_prot() 70 unsigned int idx; in __kunmap_atomic() local 72 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 73 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in __kunmap_atomic() 79 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic()
|
/linux-4.4.14/arch/microblaze/mm/ |
D | highmem.c | 38 int idx, type; in kmap_atomic_prot() local 47 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_prot() 48 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic_prot() 50 BUG_ON(!pte_none(*(kmap_pte-idx))); in kmap_atomic_prot() 52 set_pte_at(&init_mm, vaddr, kmap_pte-idx, mk_pte(page, prot)); in kmap_atomic_prot() 73 unsigned int idx; in __kunmap_atomic() local 75 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 76 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in __kunmap_atomic() 82 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic()
|
/linux-4.4.14/arch/x86/kernel/apic/ |
D | io_apic.c | 67 #define for_each_ioapic(idx) \ argument 68 for ((idx) = 0; (idx) < nr_ioapics; (idx)++) 69 #define for_each_ioapic_reverse(idx) \ argument 70 for ((idx) = nr_ioapics - 1; (idx) >= 0; (idx)--) 71 #define for_each_pin(idx, pin) \ argument 72 for ((pin) = 0; (pin) < ioapics[(idx)].nr_registers; (pin)++) 73 #define for_each_ioapic_pin(idx, pin) \ argument 74 for_each_ioapic((idx)) \ 75 for_each_pin((idx), (pin)) 232 static void alloc_ioapic_saved_registers(int idx) in alloc_ioapic_saved_registers() argument [all …]
|
/linux-4.4.14/arch/sh/kernel/cpu/sh2a/ |
D | clock-sh7201.c | 39 int idx = (__raw_readw(FREQCR) & 0x0007); in module_clk_recalc() local 40 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 49 int idx = (__raw_readw(FREQCR) & 0x0007); in bus_clk_recalc() local 50 return clk->parent->rate / pfc_divisors[idx]; in bus_clk_recalc() 59 int idx = ((__raw_readw(FREQCR) >> 4) & 0x0007); in cpu_clk_recalc() local 60 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 74 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 83 if (idx < ARRAY_SIZE(sh7201_clk_ops)) in arch_init_clk_ops() 84 *ops = sh7201_clk_ops[idx]; in arch_init_clk_ops()
|
D | clock-sh7203.c | 41 int idx = (__raw_readw(FREQCR) & 0x0007); in module_clk_recalc() local 42 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 51 int idx = (__raw_readw(FREQCR) & 0x0007); in bus_clk_recalc() local 52 return clk->parent->rate / pfc_divisors[idx-2]; in bus_clk_recalc() 70 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 79 if (idx < ARRAY_SIZE(sh7203_clk_ops)) in arch_init_clk_ops() 80 *ops = sh7203_clk_ops[idx]; in arch_init_clk_ops()
|
D | clock-sh7206.c | 38 int idx = (__raw_readw(FREQCR) & 0x0007); in module_clk_recalc() local 39 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc() 57 int idx = (__raw_readw(FREQCR) & 0x0007); in cpu_clk_recalc() local 58 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc() 72 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument 81 if (idx < ARRAY_SIZE(sh7206_clk_ops)) in arch_init_clk_ops() 82 *ops = sh7206_clk_ops[idx]; in arch_init_clk_ops()
|
/linux-4.4.14/arch/score/mm/ |
D | tlb-score.c | 99 int idx; in local_flush_tlb_range() local 105 idx = tlbpt_get(); in local_flush_tlb_range() 108 if (idx < 0) in local_flush_tlb_range() 138 long idx; in local_flush_tlb_kernel_range() local 143 idx = tlbpt_get(); in local_flush_tlb_kernel_range() 144 if (idx < 0) in local_flush_tlb_kernel_range() 163 int oldpid, newpid, idx; in local_flush_tlb_page() local 173 idx = tlbpt_get(); in local_flush_tlb_page() 176 if (idx < 0) /* p_bit(31) - 1: miss, 0: hit*/ in local_flush_tlb_page() 193 int oldpid, idx; in local_flush_tlb_one() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_config.h | 111 #define CFG_GET_MAX_TXQS_NIC_IF(cfg, idx) \ argument 112 ((cfg)->nic_if_cfg[idx].max_txqs) 113 #define CFG_GET_NUM_TXQS_NIC_IF(cfg, idx) \ argument 114 ((cfg)->nic_if_cfg[idx].num_txqs) 115 #define CFG_GET_MAX_RXQS_NIC_IF(cfg, idx) \ argument 116 ((cfg)->nic_if_cfg[idx].max_rxqs) 117 #define CFG_GET_NUM_RXQS_NIC_IF(cfg, idx) \ argument 118 ((cfg)->nic_if_cfg[idx].num_rxqs) 119 #define CFG_GET_NUM_RX_DESCS_NIC_IF(cfg, idx) \ argument 120 ((cfg)->nic_if_cfg[idx].num_rx_descs) [all …]
|
/linux-4.4.14/sound/ |
D | last.c | 27 int idx, ok = 0; in alsa_sound_last_init() local 30 for (idx = 0; idx < SNDRV_CARDS; idx++) in alsa_sound_last_init() 31 if (snd_cards[idx] != NULL) { in alsa_sound_last_init() 32 printk(KERN_INFO " #%i: %s\n", idx, snd_cards[idx]->longname); in alsa_sound_last_init()
|
/linux-4.4.14/drivers/net/ethernet/ibm/emac/ |
D | rgmii.c | 39 #define RGMII_FER_MASK(idx) (0x7 << ((idx) * 4)) argument 40 #define RGMII_FER_RTBI(idx) (0x4 << ((idx) * 4)) argument 41 #define RGMII_FER_RGMII(idx) (0x5 << ((idx) * 4)) argument 42 #define RGMII_FER_TBI(idx) (0x6 << ((idx) * 4)) argument 43 #define RGMII_FER_GMII(idx) (0x7 << ((idx) * 4)) argument 44 #define RGMII_FER_MII(idx) RGMII_FER_GMII(idx) argument 47 #define RGMII_SSR_MASK(idx) (0x7 << ((idx) * 8)) argument 48 #define RGMII_SSR_10(idx) (0x1 << ((idx) * 8)) argument 49 #define RGMII_SSR_100(idx) (0x2 << ((idx) * 8)) argument 50 #define RGMII_SSR_1000(idx) (0x4 << ((idx) * 8)) argument
|
D | zmii.c | 34 #define ZMII_FER_MDI(idx) (0x80000000 >> ((idx) * 4)) argument 38 #define ZMII_FER_SMII(idx) (0x40000000 >> ((idx) * 4)) argument 39 #define ZMII_FER_RMII(idx) (0x20000000 >> ((idx) * 4)) argument 40 #define ZMII_FER_MII(idx) (0x10000000 >> ((idx) * 4)) argument 43 #define ZMII_SSR_SCI(idx) (0x40000000 >> ((idx) * 4)) argument 44 #define ZMII_SSR_FSS(idx) (0x20000000 >> ((idx) * 4)) argument 45 #define ZMII_SSR_SP(idx) (0x10000000 >> ((idx) * 4)) argument
|
/linux-4.4.14/arch/tile/kernel/ |
D | perf_event.c | 355 static inline u64 read_counter(int idx) in read_counter() argument 360 switch (idx) { in read_counter() 374 WARN_ON_ONCE(idx > AUX_PERF_COUNT_1_IDX || in read_counter() 375 idx < PERF_COUNT_0_IDX); in read_counter() 384 static inline void write_counter(int idx, u64 value) in write_counter() argument 387 switch (idx) { in write_counter() 401 WARN_ON_ONCE(idx > AUX_PERF_COUNT_1_IDX || in write_counter() 402 idx < PERF_COUNT_0_IDX); in write_counter() 414 int shift, idx = hwc->idx; in tile_pmu_enable_event() local 420 if (WARN_ON_ONCE(idx == -1)) in tile_pmu_enable_event() [all …]
|
/linux-4.4.14/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 91 u64 (*read_counter)(unsigned int idx); 92 void (*write_counter)(unsigned int idx, u64 val); 183 static unsigned int mipsxx_pmu_swizzle_perf_idx(unsigned int idx) in mipsxx_pmu_swizzle_perf_idx() argument 186 idx = (idx + 2) & 3; in mipsxx_pmu_swizzle_perf_idx() 187 return idx; in mipsxx_pmu_swizzle_perf_idx() 190 static u64 mipsxx_pmu_read_counter(unsigned int idx) in mipsxx_pmu_read_counter() argument 192 idx = mipsxx_pmu_swizzle_perf_idx(idx); in mipsxx_pmu_read_counter() 194 switch (idx) { in mipsxx_pmu_read_counter() 208 WARN_ONCE(1, "Invalid performance counter number (%d)\n", idx); in mipsxx_pmu_read_counter() 213 static u64 mipsxx_pmu_read_counter_64(unsigned int idx) in mipsxx_pmu_read_counter_64() argument [all …]
|
/linux-4.4.14/sound/isa/msnd/ |
D | msnd_pinnacle.c | 892 static int snd_msnd_isa_probe(struct device *pdev, unsigned int idx) in snd_msnd_isa_probe() argument 898 if (has_isapnp(idx) in snd_msnd_isa_probe() 900 || cfg[idx] == SNDRV_AUTO_PORT in snd_msnd_isa_probe() 907 err = snd_card_new(pdev, index[idx], id[idx], THIS_MODULE, in snd_msnd_isa_probe() 916 switch (irq[idx]) { in snd_msnd_isa_probe() 931 switch (mem[idx]) { in snd_msnd_isa_probe() 947 cfg[idx]); in snd_msnd_isa_probe() 949 if (!request_region(cfg[idx], 2, "Pinnacle/Fiji Config")) { in snd_msnd_isa_probe() 951 cfg[idx]); in snd_msnd_isa_probe() 955 if (reset[idx]) in snd_msnd_isa_probe() [all …]
|
/linux-4.4.14/arch/x86/crypto/ |
D | aes-i586-asm_32.S | 93 #define do_col(table, a1,a2,a3,a4, idx, tmp) \ argument 94 movzx %l(idx),%tmp; \ 96 movzx %h(idx),%tmp; \ 97 shr $16,%idx; \ 99 movzx %l(idx),%tmp; \ 100 movzx %h(idx),%idx; \ 102 xor table+3*tlen(,%idx,4),%a4; 107 #define do_fcol(table, a1,a2,a3,a4, idx, tmp, sched) \ argument 109 movzx %l(idx),%tmp; \ 113 movzx %h(idx),%tmp; \ [all …]
|
/linux-4.4.14/include/sound/ |
D | hda_regmap.h | 44 #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ argument 48 (idx)) 58 #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ argument 62 (idx)) 131 int ch, int dir, int idx) in snd_hdac_regmap_get_amp() argument 133 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); in snd_hdac_regmap_get_amp() 155 int ch, int dir, int idx, int mask, int val) in snd_hdac_regmap_update_amp() argument 157 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); in snd_hdac_regmap_update_amp() 176 int dir, int idx) in snd_hdac_regmap_get_amp_stereo() argument 178 unsigned int cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx); in snd_hdac_regmap_get_amp_stereo() [all …]
|
/linux-4.4.14/include/linux/ |
D | rbtree_latch.h | 68 __lt_from_rb(struct rb_node *node, int idx) in __lt_from_rb() argument 70 return container_of(node, struct latch_tree_node, node[idx]); in __lt_from_rb() 74 __lt_insert(struct latch_tree_node *ltn, struct latch_tree_root *ltr, int idx, in __lt_insert() argument 77 struct rb_root *root = <r->tree[idx]; in __lt_insert() 79 struct rb_node *node = <n->node[idx]; in __lt_insert() 85 ltp = __lt_from_rb(parent, idx); in __lt_insert() 98 __lt_erase(struct latch_tree_node *ltn, struct latch_tree_root *ltr, int idx) in __lt_erase() argument 100 rb_erase(<n->node[idx], <r->tree[idx]); in __lt_erase() 104 __lt_find(void *key, struct latch_tree_root *ltr, int idx, in __lt_find() argument 107 struct rb_node *node = rcu_dereference_raw(ltr->tree[idx].rb_node); in __lt_find() [all …]
|
D | ntb.h | 216 int (*mw_get_range)(struct ntb_dev *ntb, int idx, 219 int (*mw_set_trans)(struct ntb_dev *ntb, int idx, 221 int (*mw_clear_trans)(struct ntb_dev *ntb, int idx); 255 u32 (*spad_read)(struct ntb_dev *ntb, int idx); 256 int (*spad_write)(struct ntb_dev *ntb, int idx, u32 val); 258 int (*peer_spad_addr)(struct ntb_dev *ntb, int idx, 260 u32 (*peer_spad_read)(struct ntb_dev *ntb, int idx); 261 int (*peer_spad_write)(struct ntb_dev *ntb, int idx, u32 val); 473 static inline int ntb_mw_get_range(struct ntb_dev *ntb, int idx, in ntb_mw_get_range() argument 477 return ntb->ops->mw_get_range(ntb, idx, base, size, in ntb_mw_get_range() [all …]
|
D | hugetlb_cgroup.h | 54 extern int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, 56 extern void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, 59 extern void hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages, 61 extern void hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, 85 hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup() argument 92 hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge() argument 100 hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages, struct page *page) in hugetlb_cgroup_uncharge_page() argument 106 hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup() argument
|
/linux-4.4.14/arch/sparc/mm/ |
D | highmem.c | 54 long idx, type; in kmap_atomic() local 62 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic() 63 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic() 73 BUG_ON(!pte_none(*(kmap_pte-idx))); in kmap_atomic() 75 set_pte(kmap_pte-idx, mk_pte(page, kmap_prot)); in kmap_atomic() 102 unsigned long idx; in __kunmap_atomic() local 104 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 105 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN+idx)); in __kunmap_atomic() 118 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic()
|
/linux-4.4.14/net/core/ |
D | gen_estimator.c | 115 int idx = (int)arg; in est_timer() local 119 list_for_each_entry_rcu(e, &elist[idx].list, list) { in est_timer() 131 brate = (b.bytes - e->last_bytes)<<(7 - idx); in est_timer() 137 rate <<= (7 - idx); in est_timer() 146 if (!list_empty(&elist[idx].list)) in est_timer() 147 mod_timer(&elist[idx].timer, jiffies + ((HZ/4) << idx)); in est_timer() 216 int idx; in gen_new_estimator() local 230 idx = parm->interval + 2; in gen_new_estimator() 242 if (!elist[idx].timer.function) { in gen_new_estimator() 243 INIT_LIST_HEAD(&elist[idx].list); in gen_new_estimator() [all …]
|
/linux-4.4.14/drivers/hwtracing/coresight/ |
D | coresight-etm4x.c | 276 u8 idx = drvdata->addr_idx; in etm4_set_mode_exclude() local 282 if (BMVAL(drvdata->addr_acc[idx], 0, 1) == ETM_INSTR_ADDR) { in etm4_set_mode_exclude() 283 if (idx % 2 != 0) in etm4_set_mode_exclude() 291 if (drvdata->addr_type[idx] != ETM_ADDR_TYPE_RANGE || in etm4_set_mode_exclude() 292 drvdata->addr_type[idx + 1] != ETM_ADDR_TYPE_RANGE) in etm4_set_mode_exclude() 300 drvdata->viiectlr |= BIT(idx / 2 + 16); in etm4_set_mode_exclude() 301 drvdata->viiectlr &= ~BIT(idx / 2); in etm4_set_mode_exclude() 307 drvdata->viiectlr |= BIT(idx / 2); in etm4_set_mode_exclude() 308 drvdata->viiectlr &= ~BIT(idx / 2 + 16); in etm4_set_mode_exclude() 1076 u8 val, idx; in addr_instdatatype_show() local [all …]
|
/linux-4.4.14/drivers/mtd/ |
D | afs.c | 169 u_int mask, off, idx, sz; in parse_afs_partitions() local 184 for (idx = off = sz = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions() 202 idx += 1; in parse_afs_partitions() 212 str = (char *)(parts + idx); in parse_afs_partitions() 217 for (idx = off = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions() 237 parts[idx].name = str; in parse_afs_partitions() 238 parts[idx].size = (iis.length + mtd->erasesize - 1) & ~(mtd->erasesize - 1); in parse_afs_partitions() 239 parts[idx].offset = img_ptr; in parse_afs_partitions() 240 parts[idx].mask_flags = 0; in parse_afs_partitions() 243 idx, img_ptr, parts[idx].size / 1024, in parse_afs_partitions() [all …]
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | ip6t_NPT.c | 46 unsigned int i, idx; in ip6t_npt_map_pfx() local 57 idx = i / 32; in ip6t_npt_map_pfx() 58 addr->s6_addr32[idx] &= mask; in ip6t_npt_map_pfx() 59 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx]; in ip6t_npt_map_pfx() 63 idx = 3; in ip6t_npt_map_pfx() 65 for (idx = 4; idx < ARRAY_SIZE(addr->s6_addr16); idx++) { in ip6t_npt_map_pfx() 66 if ((__force __sum16)addr->s6_addr16[idx] != in ip6t_npt_map_pfx() 70 if (idx == ARRAY_SIZE(addr->s6_addr16)) in ip6t_npt_map_pfx() 74 sum = ~csum_fold(csum_add(csum_unfold((__force __sum16)addr->s6_addr16[idx]), in ip6t_npt_map_pfx() 78 *(__force __sum16 *)&addr->s6_addr16[idx] = sum; in ip6t_npt_map_pfx()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | highmem.h | 76 int idx, type; in kmap_atomic() local 84 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic() 85 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic() 87 if (!pte_none(*(kmap_pte - idx))) in kmap_atomic() 90 set_pte(kmap_pte - idx, mk_pte(page, kmap_prot)); in kmap_atomic() 110 unsigned int idx; in __kunmap_atomic() local 111 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 113 if (vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)) in __kunmap_atomic() 120 pte_clear(kmap_pte - idx); in __kunmap_atomic()
|
/linux-4.4.14/drivers/clk/samsung/ |
D | clk.c | 109 unsigned int idx, ret; in samsung_clk_register_alias() local 116 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias() 119 idx); in samsung_clk_register_alias() 143 unsigned int idx, ret; in samsung_clk_register_fixed_rate() local 145 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate() 172 unsigned int idx; in samsung_clk_register_fixed_factor() local 174 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_factor() 193 unsigned int idx, ret; in samsung_clk_register_mux() local 195 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_mux() 225 unsigned int idx, ret; in samsung_clk_register_div() local [all …]
|
/linux-4.4.14/arch/x86/pci/ |
D | i386.c | 71 pcibios_save_fw_addr(struct pci_dev *dev, int idx, resource_size_t fw_addr) in pcibios_save_fw_addr() argument 88 map->fw_addr[idx] = fw_addr; in pcibios_save_fw_addr() 94 map->fw_addr[idx] = fw_addr; in pcibios_save_fw_addr() 98 resource_size_t pcibios_retrieve_fw_addr(struct pci_dev *dev, int idx) in pcibios_retrieve_fw_addr() argument 110 fw_addr = map->fw_addr[idx]; in pcibios_retrieve_fw_addr() 210 int idx; in pcibios_allocate_bridge_resources() local 213 for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { in pcibios_allocate_bridge_resources() 214 r = &dev->resource[idx]; in pcibios_allocate_bridge_resources() 219 if (!r->start || pci_claim_bridge_resource(dev, idx) < 0) { in pcibios_allocate_bridge_resources() 250 int idx, disabled, i; in pcibios_allocate_dev_resources() local [all …]
|
/linux-4.4.14/sound/core/ |
D | init.c | 64 static int module_slot_match(struct module *module, int idx) in module_slot_match() argument 70 if (!module || !*module->name || !slots[idx]) in module_slot_match() 74 s2 = slots[idx]; in module_slot_match() 201 int snd_card_new(struct device *parent, int idx, const char *xid, in snd_card_new() argument 223 if (idx < 0) /* first check the matching module-name slot */ in snd_card_new() 224 idx = get_slot_from_bitmask(idx, module_slot_match, module); in snd_card_new() 225 if (idx < 0) /* if not matched, assign an empty slot */ in snd_card_new() 226 idx = get_slot_from_bitmask(idx, check_empty_slot, module); in snd_card_new() 227 if (idx < 0) in snd_card_new() 229 else if (idx < snd_ecards_limit) { in snd_card_new() [all …]
|
/linux-4.4.14/fs/ubifs/ |
D | commit.c | 513 struct ubifs_idx_node idx __aligned(8); 528 struct ubifs_idx_node *idx; in dbg_old_index_check_init() local 537 idx = kmalloc(c->max_idx_node_sz, GFP_NOFS); in dbg_old_index_check_init() 538 if (!idx) in dbg_old_index_check_init() 541 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_old_index_check_init() 545 d->old_zroot_level = le16_to_cpu(idx->level); in dbg_old_index_check_init() 546 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_old_index_check_init() 548 kfree(idx); in dbg_old_index_check_init() 572 struct ubifs_idx_node *idx; in dbg_check_old_index() local 608 idx = &i->idx; in dbg_check_old_index() [all …]
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
D | xt_TCPOPTSTRIP.h | 6 #define tcpoptstrip_set_bit(bmap, idx) \ argument 7 (bmap[(idx) >> 5] |= 1U << (idx & 31)) 8 #define tcpoptstrip_test_bit(bmap, idx) \ argument 9 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
|
/linux-4.4.14/drivers/hwmon/ |
D | menf21bmc_hwmon.c | 35 #define IDX_TO_VOLT_MIN_CMD(idx) (0x40 + idx) argument 36 #define IDX_TO_VOLT_MAX_CMD(idx) (0x50 + idx) argument 37 #define IDX_TO_VOLT_INP_CMD(idx) (0x60 + idx) argument 141 #define create_voltage_sysfs(idx) \ argument 142 static SENSOR_DEVICE_ATTR(in##idx##_input, S_IRUGO, \ 143 show_in, NULL, idx); \ 144 static SENSOR_DEVICE_ATTR(in##idx##_min, S_IRUGO, \ 145 show_min, NULL, idx); \ 146 static SENSOR_DEVICE_ATTR(in##idx##_max, S_IRUGO, \ 147 show_max, NULL, idx); \ [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | fw.c | 374 u8 idx; in _rtl92d_fill_h2c_command() local 473 for (idx = 0; idx < 4; idx++) in _rtl92d_fill_h2c_command() 474 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92d_fill_h2c_command() 475 boxcontent[idx]); in _rtl92d_fill_h2c_command() 480 for (idx = 0; idx < 4; idx++) in _rtl92d_fill_h2c_command() 481 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92d_fill_h2c_command() 482 boxcontent[idx]); in _rtl92d_fill_h2c_command() 487 for (idx = 0; idx < 4; idx++) in _rtl92d_fill_h2c_command() 488 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92d_fill_h2c_command() 489 boxcontent[idx]); in _rtl92d_fill_h2c_command() [all …]
|
/linux-4.4.14/sound/pci/emu10k1/ |
D | emuproc.c | 190 int idx; in snd_emu10k1_proc_read() local 199 for (idx = 0; idx < NUM_G; idx++) { in snd_emu10k1_proc_read() 201 snd_emu10k1_ptr_read(emu, A_FXRT1, idx) : in snd_emu10k1_proc_read() 202 snd_emu10k1_ptr_read(emu, FXRT, idx); in snd_emu10k1_proc_read() 204 snd_emu10k1_ptr_read(emu, A_FXRT2, idx) : in snd_emu10k1_proc_read() 208 idx, in snd_emu10k1_proc_read() 220 idx, in snd_emu10k1_proc_read() 228 for (idx = 0; idx < nefx; idx++) { in snd_emu10k1_proc_read() 229 if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) in snd_emu10k1_proc_read() 230 snd_iprintf(buffer, " Output %02i [%s]\n", idx, outputs[idx]); in snd_emu10k1_proc_read() [all …]
|
D | emumixer.c | 57 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() local 61 if (idx >= 3) in snd_emu10k1_spdif_get() 64 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get() 65 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get() 66 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get() 67 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get() 1158 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put() local 1164 if (idx >= 3) in snd_emu10k1_spdif_put() 1171 change = val != emu->spdif_bits[idx]; in snd_emu10k1_spdif_put() 1173 snd_emu10k1_ptr_write(emu, SPCS0 + idx, 0, val); in snd_emu10k1_spdif_put() [all …]
|
/linux-4.4.14/kernel/rcu/ |
D | srcu.c | 147 static unsigned long srcu_readers_seq_idx(struct srcu_struct *sp, int idx) in srcu_readers_seq_idx() argument 154 t = READ_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->seq[idx]); in srcu_readers_seq_idx() 164 static unsigned long srcu_readers_active_idx(struct srcu_struct *sp, int idx) in srcu_readers_active_idx() argument 171 t = READ_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->c[idx]); in srcu_readers_active_idx() 186 static bool srcu_readers_active_idx_check(struct srcu_struct *sp, int idx) in srcu_readers_active_idx_check() argument 190 seq = srcu_readers_seq_idx(sp, idx); in srcu_readers_active_idx_check() 223 if (srcu_readers_active_idx(sp, idx) != 0) in srcu_readers_active_idx_check() 251 return srcu_readers_seq_idx(sp, idx) == seq; in srcu_readers_active_idx_check() 298 int idx; in __srcu_read_lock() local 300 idx = READ_ONCE(sp->completed) & 0x1; in __srcu_read_lock() [all …]
|
/linux-4.4.14/arch/mips/sibyte/common/ |
D | cfe.c | 101 unsigned int idx; in prom_meminit() local 117 for (idx = 0; cfe_enummem(idx, mem_flags, &addr, &size, &type) != CFE_ERR_NOMORE; in prom_meminit() 118 idx++) { in prom_meminit() 183 int idx; in initrd_setup() local 188 for (idx = 0; idx < sizeof(rdarg)-1; idx++) { in initrd_setup() 189 if (!str[idx] || (str[idx] == ' ')) break; in initrd_setup() 190 rdarg[idx] = str[idx]; in initrd_setup() 193 rdarg[idx] = 0; in initrd_setup()
|
/linux-4.4.14/drivers/net/wireless/iwlegacy/ |
D | 3945-rs.c | 61 u8 idx; member 102 u32 idx = 0; in il3945_get_rate_idx_by_rssi() local 123 while (idx < table_size && rssi < tpt_table[idx].min_rssi) in il3945_get_rate_idx_by_rssi() 124 idx++; in il3945_get_rate_idx_by_rssi() 126 idx = min(idx, table_size - 1); in il3945_get_rate_idx_by_rssi() 128 return tpt_table[idx].idx; in il3945_get_rate_idx_by_rssi() 257 int retries, int idx) in il3945_collect_tx_data() argument 319 ((win->success_ratio * rs_sta->expected_tpt[idx] + in il3945_collect_tx_data() 463 first_idx = sband->bitrates[info->status.rates[0].idx].hw_value; in il3945_rs_tx_status() 543 il3945_get_adjacent_rate(struct il3945_rs_sta *rs_sta, u8 idx, u16 rate_mask, in il3945_get_adjacent_rate() argument [all …]
|
D | 4965-rs.c | 115 int idx = 0; in il4965_hwrate_to_plcp_idx() local 119 idx = (rate_n_flags & 0xff); in il4965_hwrate_to_plcp_idx() 121 if (idx >= RATE_MIMO2_6M_PLCP) in il4965_hwrate_to_plcp_idx() 122 idx = idx - RATE_MIMO2_6M_PLCP; in il4965_hwrate_to_plcp_idx() 124 idx += IL_FIRST_OFDM_RATE; in il4965_hwrate_to_plcp_idx() 126 if (idx >= RATE_9M_IDX) in il4965_hwrate_to_plcp_idx() 127 idx += 1; in il4965_hwrate_to_plcp_idx() 128 if (idx >= IL_FIRST_OFDM_RATE && idx <= IL_LAST_OFDM_RATE) in il4965_hwrate_to_plcp_idx() 129 return idx; in il4965_hwrate_to_plcp_idx() 133 for (idx = 0; idx < ARRAY_SIZE(il_rates); idx++) in il4965_hwrate_to_plcp_idx() [all …]
|
/linux-4.4.14/arch/x86/include/asm/ |
D | fixmap.h | 149 void __native_set_fixmap(enum fixed_addresses idx, pte_t pte); 150 void native_set_fixmap(enum fixed_addresses idx, 154 static inline void __set_fixmap(enum fixed_addresses idx, in __set_fixmap() argument 157 native_set_fixmap(idx, phys, flags); in __set_fixmap() 163 #define __late_set_fixmap(idx, phys, flags) __set_fixmap(idx, phys, flags) argument 164 #define __late_clear_fixmap(idx) __set_fixmap(idx, 0, __pgprot(0)) argument 166 void __early_set_fixmap(enum fixed_addresses idx,
|
/linux-4.4.14/arch/ia64/sn/kernel/ |
D | io_init.c | 152 int idx; in sn_io_slot_fixup() local 177 for (idx = 0; idx <= PCI_ROM_RESOURCE; idx++) { in sn_io_slot_fixup() 179 if (!pcidev_info->pdi_pio_mapped_addr[idx]) { in sn_io_slot_fixup() 183 start = dev->resource[idx].start; in sn_io_slot_fixup() 184 end = dev->resource[idx].end; in sn_io_slot_fixup() 189 addr = pcidev_info->pdi_pio_mapped_addr[idx]; in sn_io_slot_fixup() 191 dev->resource[idx].start = addr; in sn_io_slot_fixup() 192 dev->resource[idx].end = addr + size; in sn_io_slot_fixup() 198 if (dev->resource[idx].parent && dev->resource[idx].parent->child) in sn_io_slot_fixup() 199 release_resource(&dev->resource[idx]); in sn_io_slot_fixup() [all …]
|
/linux-4.4.14/sound/aoa/codecs/ |
D | tas-basstreble.h | 91 static inline u8 tas3004_treble(int idx) in tas3004_treble() argument 93 return tas3004_treble_table[idx]; in tas3004_treble() 127 static inline u8 tas3004_bass(int idx) in tas3004_bass() argument 129 u8 result = tas3004_treble_table[idx]; in tas3004_bass() 131 if (idx >= 50) in tas3004_bass() 132 result += tas3004_bass_diff_to_treble[idx-50]; in tas3004_bass()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | atom.c | 177 uint32_t idx, val = 0xCDCDCDCD, align, arg; in atom_get_src_int() local 183 idx = U16(*ptr); in atom_get_src_int() 186 DEBUG("REG[0x%04X]", idx); in atom_get_src_int() 187 idx += gctx->reg_block; in atom_get_src_int() 190 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int() 214 idx, 0); in atom_get_src_int() 218 idx = U8(*ptr); in atom_get_src_int() 222 val = get_unaligned_le32((u32 *)&ctx->ps[idx]); in atom_get_src_int() 224 DEBUG("PS[0x%02X,0x%04X]", idx, val); in atom_get_src_int() 227 idx = U8(*ptr); in atom_get_src_int() [all …]
|
D | vce_v3_0.c | 51 static void vce_v3_0_mc_resume(struct amdgpu_device *adev, int idx); 116 int idx, i, j, r; in vce_v3_0_start() local 119 for (idx = 0; idx < 2; ++idx) { in vce_v3_0_start() 121 if (adev->vce.harvest_config & (1 << idx)) in vce_v3_0_start() 124 if(idx == 0) in vce_v3_0_start() 132 vce_v3_0_mc_resume(adev, idx); in vce_v3_0_start() 385 static void vce_v3_0_mc_resume(struct amdgpu_device *adev, int idx) in vce_v3_0_mc_resume() argument 410 if (idx == 0) { in vce_v3_0_mc_resume() 440 int idx; in vce_v3_0_is_idle() local 442 for (idx = 0; idx < 2; ++idx) { in vce_v3_0_is_idle() [all …]
|
/linux-4.4.14/drivers/pnp/ |
D | manager.c | 37 static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx) in pnp_assign_port() argument 41 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port() 44 "flags %#lx\n", idx, (unsigned long long) res->start, in pnp_assign_port() 56 pnp_dbg(&dev->dev, " io %d disabled\n", idx); in pnp_assign_port() 68 "(min %#llx max %#llx)\n", idx, in pnp_assign_port() 80 static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx) in pnp_assign_mem() argument 84 res = pnp_find_resource(dev, rule->flags, IORESOURCE_MEM, idx); in pnp_assign_mem() 87 "flags %#lx\n", idx, (unsigned long long) res->start, in pnp_assign_mem() 107 pnp_dbg(&dev->dev, " mem %d disabled\n", idx); in pnp_assign_mem() 119 "(min %#llx max %#llx)\n", idx, in pnp_assign_mem() [all …]
|
/linux-4.4.14/arch/x86/mm/ |
D | highmem_32.c | 36 int idx, type; in kmap_atomic_prot() local 45 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_prot() 46 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic_prot() 47 BUG_ON(!pte_none(*(kmap_pte-idx))); in kmap_atomic_prot() 48 set_pte(kmap_pte-idx, mk_pte(page, prot)); in kmap_atomic_prot() 77 int idx, type; in __kunmap_atomic() local 80 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 83 WARN_ON_ONCE(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in __kunmap_atomic() 91 kpte_clear_flush(kmap_pte-idx, vaddr); in __kunmap_atomic()
|
D | iomap_32.c | 60 int idx, type; in kmap_atomic_prot_pfn() local 66 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic_prot_pfn() 67 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic_prot_pfn() 68 set_pte(kmap_pte - idx, pfn_pte(pfn, prot)); in kmap_atomic_prot_pfn() 102 int idx, type; in iounmap_atomic() local 105 idx = type + KM_TYPE_NR * smp_processor_id(); in iounmap_atomic() 108 WARN_ON_ONCE(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in iounmap_atomic() 116 kpte_clear_flush(kmap_pte-idx, vaddr); in iounmap_atomic()
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | fw_common.c | 295 u8 idx; in _rtl92c_fill_h2c_command() local 398 for (idx = 0; idx < 4; idx++) { in _rtl92c_fill_h2c_command() 399 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92c_fill_h2c_command() 400 boxcontent[idx]); in _rtl92c_fill_h2c_command() 408 for (idx = 0; idx < 4; idx++) { in _rtl92c_fill_h2c_command() 409 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92c_fill_h2c_command() 410 boxcontent[idx]); in _rtl92c_fill_h2c_command() 418 for (idx = 0; idx < 4; idx++) { in _rtl92c_fill_h2c_command() 419 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92c_fill_h2c_command() 420 boxcontent[idx]); in _rtl92c_fill_h2c_command() [all …]
|
/linux-4.4.14/drivers/usb/usbip/ |
D | stub_main.c | 58 int idx = -1; in get_busid_idx() local 63 idx = i; in get_busid_idx() 66 return idx; in get_busid_idx() 71 int idx; in get_busid_priv() local 75 idx = get_busid_idx(busid); in get_busid_priv() 76 if (idx >= 0) in get_busid_priv() 77 bid = &(busid_table[idx]); in get_busid_priv() 113 int idx; in del_match_busid() local 117 idx = get_busid_idx(busid); in del_match_busid() 118 if (idx < 0) in del_match_busid() [all …]
|
/linux-4.4.14/arch/x86/kvm/ |
D | pmu_intel.c | 88 static unsigned intel_find_fixed_event(int idx) in intel_find_fixed_event() argument 90 if (idx >= ARRAY_SIZE(fixed_pmc_events)) in intel_find_fixed_event() 93 return intel_arch_events[fixed_pmc_events[idx]].event_type; in intel_find_fixed_event() 101 return test_bit(pmc->idx, (unsigned long *)&pmu->global_ctrl); in intel_pmc_is_enabled() 110 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc() local 112 return get_fixed_pmc(pmu, idx + MSR_CORE_PERF_FIXED_CTR0); in intel_pmc_idx_to_pmc() 117 static int intel_is_valid_msr_idx(struct kvm_vcpu *vcpu, unsigned idx) in intel_is_valid_msr_idx() argument 120 bool fixed = idx & (1u << 30); in intel_is_valid_msr_idx() 122 idx &= ~(3u << 30); in intel_is_valid_msr_idx() 124 return (!fixed && idx >= pmu->nr_arch_gp_counters) || in intel_is_valid_msr_idx() [all …]
|
D | pmu.c | 65 if (!test_and_set_bit(pmc->idx, in kvm_perf_overflow() 67 __set_bit(pmc->idx, (unsigned long *)&pmu->global_status); in kvm_perf_overflow() 79 if (!test_and_set_bit(pmc->idx, in kvm_perf_overflow_intr() 81 __set_bit(pmc->idx, (unsigned long *)&pmu->global_status); in kvm_perf_overflow_intr() 133 clear_bit(pmc->idx, (unsigned long*)&pmc_to_pmu(pmc)->reprogram_pmi); in pmc_reprogram_counter() 178 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter() argument 189 kvm_x86_ops->pmu_ops->find_fixed_event(idx), in reprogram_fixed_counter() 206 int idx = pmc_idx - INTEL_PMC_IDX_FIXED; in reprogram_counter() local 207 u8 ctrl = fixed_ctrl_field(pmu->fixed_ctr_ctrl, idx); in reprogram_counter() 209 reprogram_fixed_counter(pmc, ctrl, idx); in reprogram_counter() [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
D | binding.c | 70 int idx; member 96 for (i = 0; i < data->idx; i++) in iwl_mvm_binding_cmd() 129 if (WARN_ON_ONCE(data->idx >= MAX_MACS_IN_BINDING)) in iwl_mvm_iface_iterator() 132 data->ids[data->idx] = mvmvif->id; in iwl_mvm_iface_iterator() 133 data->colors[data->idx] = mvmvif->color; in iwl_mvm_iface_iterator() 134 data->idx++; in iwl_mvm_iface_iterator() 160 if (data.idx == 0) { in iwl_mvm_binding_update() 168 if (WARN_ON_ONCE(data.idx >= MAX_MACS_IN_BINDING)) in iwl_mvm_binding_update() 171 data.ids[data.idx] = mvmvif->id; in iwl_mvm_binding_update() 172 data.colors[data.idx] = mvmvif->color; in iwl_mvm_binding_update() [all …]
|
/linux-4.4.14/drivers/bus/ |
D | arm-cci.c | 84 #define CCI_PMU_CNTR_BASE(model, idx) ((idx) * CCI_PMU_CNTR_SIZE(model)) argument 342 int idx; in cci400_get_event_idx() local 352 for (idx = CCI400_PMU_CNTR0_IDX; idx <= CCI_PMU_CNTR_LAST(cci_pmu); ++idx) in cci400_get_event_idx() 353 if (!test_and_set_bit(idx, hw->used_mask)) in cci400_get_event_idx() 354 return idx; in cci400_get_event_idx() 622 static int pmu_is_valid_counter(struct cci_pmu *cci_pmu, int idx) in pmu_is_valid_counter() argument 624 return 0 <= idx && idx <= CCI_PMU_CNTR_LAST(cci_pmu); in pmu_is_valid_counter() 627 static u32 pmu_read_register(struct cci_pmu *cci_pmu, int idx, unsigned int offset) in pmu_read_register() argument 630 CCI_PMU_CNTR_BASE(cci_pmu->model, idx) + offset); in pmu_read_register() 634 int idx, unsigned int offset) in pmu_write_register() argument [all …]
|
/linux-4.4.14/arch/sh/mm/ |
D | kmap.c | 34 enum fixed_addresses idx; in kmap_coherent() local 42 idx = FIX_CMAP_END - in kmap_coherent() 46 vaddr = __fix_to_virt(idx); in kmap_coherent() 48 BUG_ON(!pte_none(*(kmap_coherent_pte - idx))); in kmap_coherent() 49 set_pte(kmap_coherent_pte - idx, mk_pte(page, PAGE_KERNEL)); in kmap_coherent() 58 enum fixed_addresses idx = __virt_to_fix(vaddr); in kunmap_coherent() local 63 pte_clear(&init_mm, vaddr, kmap_coherent_pte - idx); in kunmap_coherent()
|
D | ioremap_fixed.c | 49 enum fixed_addresses idx0, idx; in ioremap_fixed() local 86 idx = idx0; in ioremap_fixed() 89 __set_fixmap(idx, phys_addr, prot); in ioremap_fixed() 91 idx++; in ioremap_fixed() 101 enum fixed_addresses idx; in iounmap_fixed() local 123 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1; in iounmap_fixed() 125 __clear_fixmap(idx, __pgprot(_PAGE_WIRED)); in iounmap_fixed() 126 --idx; in iounmap_fixed()
|
/linux-4.4.14/drivers/clk/imx/ |
D | clk-pfd.c | 32 u8 idx; member 45 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR); in clk_pfd_enable() 54 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET); in clk_pfd_disable() 62 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f; in clk_pfd_recalc_rate() 105 writel_relaxed(0x3f << (pfd->idx * 8), pfd->reg + CLR); in clk_pfd_set_rate() 106 writel_relaxed(frac << (pfd->idx * 8), pfd->reg + SET); in clk_pfd_set_rate() 115 if (readl_relaxed(pfd->reg) & (1 << ((pfd->idx + 1) * 8 - 1))) in clk_pfd_is_enabled() 131 void __iomem *reg, u8 idx) in imx_clk_pfd() argument 142 pfd->idx = idx; in imx_clk_pfd()
|
/linux-4.4.14/tools/perf/util/ |
D | trace-event-parse.c | 177 static int idx; in trace_find_next_event() local 183 idx = 0; in trace_find_next_event() 187 if (idx < pevent->nr_events && event == pevent->events[idx]) { in trace_find_next_event() 188 idx++; in trace_find_next_event() 189 if (idx == pevent->nr_events) in trace_find_next_event() 191 return pevent->events[idx]; in trace_find_next_event() 194 for (idx = 1; idx < pevent->nr_events; idx++) { in trace_find_next_event() 195 if (event == pevent->events[idx - 1]) in trace_find_next_event() 196 return pevent->events[idx]; in trace_find_next_event()
|
/linux-4.4.14/sound/pci/lola/ |
D | lola.h | 390 #define lola_readl(chip, idx, name) \ argument 391 readl((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 392 #define lola_readw(chip, idx, name) \ argument 393 readw((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 394 #define lola_readb(chip, idx, name) \ argument 395 readb((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 396 #define lola_writel(chip, idx, name, val) \ argument 397 writel((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 398 #define lola_writew(chip, idx, name, val) \ argument 399 writew((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name) [all …]
|
D | lola_clock.c | 126 int i, j, nitems, nb_verbs, idx, idx_list; in lola_init_clock_widget() local 152 idx = 0; in lola_init_clock_widget() 159 idx, 0, &val, &res_ex); in lola_init_clock_widget() 201 chip->clock.idx_lookup[idx_list] = idx; in lola_init_clock_widget() 206 if (++idx >= nitems) in lola_init_clock_widget() 233 int lola_set_clock_index(struct lola *chip, unsigned int idx) in lola_set_clock_index() argument 240 chip->clock.idx_lookup[idx], in lola_set_clock_index() 273 int lola_set_clock(struct lola *chip, int idx) in lola_set_clock() argument 278 if (idx == chip->clock.cur_index) { in lola_set_clock() 282 } else if (chip->clock.sample_clock[idx].type == in lola_set_clock() [all …]
|
/linux-4.4.14/drivers/dma/ |
D | mv_xor.h | 44 #define XOR_CURR_DESC(chan) (chan->mmr_high_base + 0x10 + (chan->idx * 4)) 45 #define XOR_NEXT_DESC(chan) (chan->mmr_high_base + 0x00 + (chan->idx * 4)) 46 #define XOR_BYTE_COUNT(chan) (chan->mmr_high_base + 0x20 + (chan->idx * 4)) 47 #define XOR_DEST_POINTER(chan) (chan->mmr_high_base + 0xB0 + (chan->idx * 4)) 48 #define XOR_BLOCK_SIZE(chan) (chan->mmr_high_base + 0xC0 + (chan->idx * 4)) 52 #define XOR_CONFIG(chan) (chan->mmr_base + 0x10 + (chan->idx * 4)) 53 #define XOR_ACTIVATION(chan) (chan->mmr_base + 0x20 + (chan->idx * 4)) 111 unsigned int idx; member 145 u16 idx; member 189 #define mv_hw_desc_slot_idx(hw_desc, idx) \ argument [all …]
|
/linux-4.4.14/drivers/input/touchscreen/ |
D | elo.c | 61 int idx; member 73 elo->data[elo->idx] = data; in elo_process_data_10() 75 switch (elo->idx++) { in elo_process_data_10() 81 elo->idx = 0; in elo_process_data_10() 86 elo->idx = 0; in elo_process_data_10() 125 elo->data[elo->idx] = data; in elo_process_data_6() 127 switch (elo->idx++) { in elo_process_data_6() 131 elo->idx = 0; in elo_process_data_6() 136 elo->idx = 0; in elo_process_data_6() 141 elo->idx = 0; in elo_process_data_6() [all …]
|
D | ad7879-spi.c | 38 u8 idx; in ad7879_spi_xfer() local 63 for (idx = 0; idx < count; ++idx) { in ad7879_spi_xfer() 65 xfers[idx].rx_buf = &rx_buf[idx]; in ad7879_spi_xfer() 67 xfers[idx].tx_buf = &tx_buf[idx]; in ad7879_spi_xfer() 68 xfers[idx].len = 2; in ad7879_spi_xfer() 69 spi_message_add_tail(&xfers[idx], &msg); in ad7879_spi_xfer()
|
/linux-4.4.14/drivers/hid/ |
D | hid-primax.c | 28 int idx = size; in px_raw_event() local 49 while (--idx > 1) { in px_raw_event() 50 if (data[idx] < 0xE0 || data[idx] > 0xE7) in px_raw_event() 52 data[0] |= (1 << (data[idx] - 0xE0)); in px_raw_event() 53 data[idx] = 0; in px_raw_event()
|
/linux-4.4.14/sound/pci/ctxfi/ |
D | cthardware.h | 111 int (*src_commit_write)(struct hw *hw, unsigned int idx, void *blk); 112 int (*src_get_ca)(struct hw *hw, unsigned int idx, void *blk); 118 int (*src_mgr_enbs_src)(void *blk, unsigned int idx); 120 int (*src_mgr_enb_src)(void *blk, unsigned int idx); 122 int (*src_mgr_dsb_src)(void *blk, unsigned int idx); 147 int (*amixer_commit_write)(struct hw *hw, unsigned int idx, void *blk); 160 int (*dai_commit_write)(struct hw *hw, unsigned int idx, void *blk); 164 int (*dao_commit_write)(struct hw *hw, unsigned int idx, void *blk); 169 int (*daio_mgr_enb_dai)(void *blk, unsigned int idx); 170 int (*daio_mgr_dsb_dai)(void *blk, unsigned int idx); [all …]
|
D | cthw20k1.c | 144 unsigned int idx; member 369 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 377 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0); in src_commit_write() 380 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 383 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 392 unsigned int pm_idx = src_param_pitch_mixer(idx); in src_commit_write() 399 hw_write_20kx(hw, SRCSA+idx*0x100, ctl->sa); in src_commit_write() 403 hw_write_20kx(hw, SRCLA+idx*0x100, ctl->la); in src_commit_write() 407 hw_write_20kx(hw, SRCCA+idx*0x100, ctl->ca); in src_commit_write() 412 hw_write_20kx(hw, SRCCF+idx*0x100, 0x0); in src_commit_write() [all …]
|
D | ctamixer.c | 33 return rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master() 39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_next_conj() 44 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index() 206 err = rsc_init(&amixer->rsc, amixer->idx[0], in amixer_rsc_init() 237 unsigned int idx; in get_amixer_rsc() local 253 err = mgr_get_resource(&mgr->mgr, 1, &idx); in get_amixer_rsc() 257 amixer->idx[i] = idx; in get_amixer_rsc() 277 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in get_amixer_rsc() 291 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in put_amixer_rsc() 341 return rsc->idx = container_of(rsc, struct sum, rsc)->idx[0]; in sum_master() [all …]
|
/linux-4.4.14/sound/i2c/other/ |
D | ak4xxx-adda.c | 619 int idx, err, mixer_ch, num_stereo; in build_dac_controls() local 623 for (idx = 0; idx < ak->num_dacs; ) { in build_dac_controls() 639 AK_COMPOSE(idx/2, 1, 0, 0) | AK_INVERT; in build_dac_controls() 670 AK_COMPOSE(idx/2, (idx%2) + 6, 0, 127) | in build_dac_controls() 677 AK_COMPOSE(idx/2, (idx%2) + 4, 0, 127) | in build_dac_controls() 683 int val = idx < 6 ? idx + 2 : (idx - 6) + 0xb; in build_dac_controls() 691 knew.private_value = AK_COMPOSE(0, idx + 4, 0, 255); in build_dac_controls() 696 int addr = idx < 6 ? idx + 4 : idx + 5; in build_dac_controls() 705 AK_COMPOSE(idx/2, (idx%2) + 3, 0, 255); in build_dac_controls() 711 AK_COMPOSE(idx/2, (idx%2) + 6, 0, 255); in build_dac_controls() [all …]
|
/linux-4.4.14/drivers/misc/vmw_vmci/ |
D | vmci_doorbell.c | 47 u32 idx; member 126 static struct dbell_entry *dbell_index_table_find(u32 idx) in dbell_index_table_find() argument 128 u32 bucket = VMCI_DOORBELL_HASH(idx); in dbell_index_table_find() 133 if (idx == dbell->idx) in dbell_index_table_find() 194 entry->idx = new_notify_idx; in dbell_index_table_add() 195 bucket = VMCI_DOORBELL_HASH(entry->idx); in dbell_index_table_add() 212 if (entry->idx == max_notify_idx - 1) { in dbell_index_table_remove() 225 last_notify_idx_released = entry->idx; in dbell_index_table_remove() 365 if (dbell->idx == notify_idx && in dbell_fire_entries() 385 u32 idx; in vmci_dbell_scan_notification_entries() local [all …]
|
/linux-4.4.14/arch/xtensa/mm/ |
D | highmem.c | 42 enum fixed_addresses idx; in kmap_atomic() local 50 idx = kmap_idx(kmap_atomic_idx_push(), in kmap_atomic() 52 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic() 54 BUG_ON(!pte_none(*(kmap_pte + idx))); in kmap_atomic() 56 set_pte(kmap_pte + idx, mk_pte(page, PAGE_KERNEL_EXEC)); in kmap_atomic() 66 int idx = kmap_idx(kmap_atomic_idx(), in __kunmap_atomic() local 75 pte_clear(&init_mm, kvaddr, kmap_pte + idx); in __kunmap_atomic()
|
/linux-4.4.14/drivers/input/joystick/ |
D | spaceorb.c | 59 int idx; member 82 if (spaceorb->idx < 2) return; in spaceorb_process_packet() 83 for (i = 0; i < spaceorb->idx; i++) c ^= data[i]; in spaceorb_process_packet() 89 spaceorb->data[spaceorb->idx - 1] = 0; in spaceorb_process_packet() 90 for (i = 1; i < spaceorb->idx && spaceorb->data[i] == ' '; i++); in spaceorb_process_packet() 96 if (spaceorb->idx != 12) return; in spaceorb_process_packet() 111 if (spaceorb->idx != 5) return; in spaceorb_process_packet() 118 if (spaceorb->idx != 4) return; in spaceorb_process_packet() 134 if (spaceorb->idx) spaceorb_process_packet(spaceorb); in spaceorb_interrupt() 135 spaceorb->idx = 0; in spaceorb_interrupt() [all …]
|
/linux-4.4.14/drivers/scsi/csiostor/ |
D | csio_hw_t5.c | 173 csio_t5_mc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, in csio_t5_mc_read() argument 180 mc_bist_cmd_reg = MC_REG(MC_P_BIST_CMD_A, idx); in csio_t5_mc_read() 181 mc_bist_cmd_addr_reg = MC_REG(MC_P_BIST_CMD_ADDR_A, idx); in csio_t5_mc_read() 182 mc_bist_cmd_len_reg = MC_REG(MC_P_BIST_CMD_LEN_A, idx); in csio_t5_mc_read() 183 mc_bist_status_rdata_reg = MC_REG(MC_P_BIST_STATUS_RDATA_A, idx); in csio_t5_mc_read() 184 mc_bist_data_pattern_reg = MC_REG(MC_P_BIST_DATA_PATTERN_A, idx); in csio_t5_mc_read() 221 csio_t5_edc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, in csio_t5_edc_read() argument 232 #define EDC_REG_T5(reg, idx) (reg + EDC_STRIDE_T5 * idx) in csio_t5_edc_read() argument 234 edc_bist_cmd_reg = EDC_REG_T5(EDC_H_BIST_CMD_A, idx); in csio_t5_edc_read() 235 edc_bist_cmd_addr_reg = EDC_REG_T5(EDC_H_BIST_CMD_ADDR_A, idx); in csio_t5_edc_read() [all …]
|
/linux-4.4.14/drivers/crypto/vmx/ |
D | aesp8-ppc.pl | 400 my ($inp,$out,$key,$rounds,$idx)=map("r$_",(3..7)); 407 li $idx,15 # 15 is not typo 412 lvx v1,$idx,$inp 417 li $idx,16 422 lvx v2,$idx,$key 423 addi $idx,$idx,16 428 lvx v1,$idx,$key 429 addi $idx,$idx,16 435 lvx v2,$idx,$key 436 addi $idx,$idx,16 [all …]
|
/linux-4.4.14/drivers/misc/ |
D | kgdbts.c | 182 int idx; member 368 ts.idx -= 2; in check_single_step() 373 ts.idx -= 4; in check_single_step() 402 ts.idx++; in skip_back_repeat_test() 404 ts.idx -= go_back; in skip_back_repeat_test() 405 fill_get_buf(ts.tst[ts.idx].get); in skip_back_repeat_test() 429 ts.idx--; in put_cont_catch() 439 ts.idx = -1; in emul_reset() 527 ts.idx--; in emul_sstep_put() 713 v2printk("get%i: %s\n", ts.idx, get_buf); in fill_get_buf() [all …]
|
/linux-4.4.14/Documentation/video4linux/cx2341x/ |
D | README.hm12 | 80 int idx = x + (y + i) * dstride; 82 dstu[idx+0] = src[0]; dstv[idx+0] = src[1]; 83 dstu[idx+1] = src[2]; dstv[idx+1] = src[3]; 84 dstu[idx+2] = src[4]; dstv[idx+2] = src[5]; 85 dstu[idx+3] = src[6]; dstv[idx+3] = src[7]; 86 dstu[idx+4] = src[8]; dstv[idx+4] = src[9]; 87 dstu[idx+5] = src[10]; dstv[idx+5] = src[11]; 88 dstu[idx+6] = src[12]; dstv[idx+6] = src[13]; 89 dstu[idx+7] = src[14]; dstv[idx+7] = src[15];
|
/linux-4.4.14/drivers/media/platform/ti-vpe/ |
D | sc.c | 64 int idx; in sc_set_hs_coeffs() local 70 idx = HS_UP_SCALE; in sc_set_hs_coeffs() 78 idx = HS_LE_16_16_SCALE; in sc_set_hs_coeffs() 83 idx = HS_LT_9_16_SCALE + sixteenths - 8; in sc_set_hs_coeffs() 87 if (idx == sc->hs_index) in sc_set_hs_coeffs() 90 cp = scaler_hs_coeffs[idx]; in sc_set_hs_coeffs() 104 sc->hs_index = idx; in sc_set_hs_coeffs() 117 int idx; in sc_set_vs_coeffs() local 123 idx = VS_UP_SCALE; in sc_set_vs_coeffs() 125 idx = VS_1_TO_1_SCALE; in sc_set_vs_coeffs() [all …]
|
/linux-4.4.14/sound/pci/ |
D | ak4531_codec.c | 48 int idx; 50 for (idx = 0; idx < 0x19; idx++) 52 idx, ak4531->regs[idx]); 386 unsigned int idx; in snd_ak4531_mixer() local 410 for (idx = 0; idx <= 0x19; idx++) { in snd_ak4531_mixer() 411 if (idx == AK4531_RESET || idx == AK4531_CLOCK) in snd_ak4531_mixer() 413 …ak4531->write(ak4531, idx, ak4531->regs[idx] = snd_ak4531_initial_map[idx]); /* recording source i… in snd_ak4531_mixer() 415 for (idx = 0; idx < ARRAY_SIZE(snd_ak4531_controls); idx++) { in snd_ak4531_mixer() 416 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ak4531_controls[idx], ak4531))) < 0) { in snd_ak4531_mixer() 450 int idx; in snd_ak4531_resume() local [all …]
|
/linux-4.4.14/arch/powerpc/perf/ |
D | core-fsl-emb.c | 56 static unsigned long read_pmc(int idx) in read_pmc() argument 60 switch (idx) { in read_pmc() 80 printk(KERN_ERR "oops trying to read PMC%d\n", idx); in read_pmc() 89 static void write_pmc(int idx, unsigned long val) in write_pmc() argument 91 switch (idx) { in write_pmc() 111 printk(KERN_ERR "oops trying to write PMC%d\n", idx); in write_pmc() 120 static void write_pmlca(int idx, unsigned long val) in write_pmlca() argument 122 switch (idx) { in write_pmlca() 142 printk(KERN_ERR "oops trying to write PMLCA%d\n", idx); in write_pmlca() 151 static void write_pmlcb(int idx, unsigned long val) in write_pmlcb() argument [all …]
|
/linux-4.4.14/net/wireless/ |
D | wext-compat.c | 435 int idx, struct key_params *params) in __cfg80211_set_encryption() argument 465 if (idx < 4 || idx > 5) in __cfg80211_set_encryption() 467 } else if (idx < 0 || idx > 3) in __cfg80211_set_encryption() 477 if (idx == wdev->wext.default_key && in __cfg80211_set_encryption() 487 err = rdev_del_key(rdev, dev, idx, pairwise, in __cfg80211_set_encryption() 499 memset(wdev->wext.keys->data[idx], 0, in __cfg80211_set_encryption() 500 sizeof(wdev->wext.keys->data[idx])); in __cfg80211_set_encryption() 501 wdev->wext.keys->params[idx].key_len = 0; in __cfg80211_set_encryption() 502 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption() 504 if (idx == wdev->wext.default_key) in __cfg80211_set_encryption() [all …]
|
/linux-4.4.14/kernel/ |
D | user_namespace.c | 156 unsigned idx, extents; in map_id_range_down() local 164 for (idx = 0; idx < extents; idx++) { in map_id_range_down() 165 first = map->extent[idx].first; in map_id_range_down() 166 last = first + map->extent[idx].count - 1; in map_id_range_down() 172 if (idx < extents) in map_id_range_down() 173 id = (id - first) + map->extent[idx].lower_first; in map_id_range_down() 182 unsigned idx, extents; in map_id_down() local 188 for (idx = 0; idx < extents; idx++) { in map_id_down() 189 first = map->extent[idx].first; in map_id_down() 190 last = first + map->extent[idx].count - 1; in map_id_down() [all …]
|
/linux-4.4.14/drivers/reset/sti/ |
D | reset-syscfg.c | 53 unsigned long idx, int assert) in syscfg_reset_program_hw() argument 60 if (idx >= rcdev->nr_resets) in syscfg_reset_program_hw() 63 ch = &rst->channels[idx]; in syscfg_reset_program_hw() 92 unsigned long idx) in syscfg_reset_assert() argument 94 return syscfg_reset_program_hw(rcdev, idx, true); in syscfg_reset_assert() 98 unsigned long idx) in syscfg_reset_deassert() argument 100 return syscfg_reset_program_hw(rcdev, idx, false); in syscfg_reset_deassert() 104 unsigned long idx) in syscfg_reset_dev() argument 106 int err = syscfg_reset_assert(rcdev, idx); in syscfg_reset_dev() 110 return syscfg_reset_deassert(rcdev, idx); in syscfg_reset_dev()
|
/linux-4.4.14/tools/vm/ |
D | slabinfo-gnuplot.sh | 226 local idx=0 232 files[$idx]=$p 233 idx=$idx+1 236 t_files[$idx]=$p 237 idx=$idx+1 240 files[$idx]=$p 241 idx=$idx+1
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_hmc.c | 213 u32 idx) in i40e_remove_pd_bp() argument 223 sd_idx = idx / I40E_HMC_PD_CNT_IN_SD; in i40e_remove_pd_bp() 224 rel_pd_idx = idx % I40E_HMC_PD_CNT_IN_SD; in i40e_remove_pd_bp() 249 I40E_INVALIDATE_PF_HMC_PD(hw, sd_idx, idx); in i40e_remove_pd_bp() 268 u32 idx) in i40e_prep_remove_sd_bp() argument 274 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_sd_bp() 297 u32 idx, bool is_pf) in i40e_remove_sd_bp_new() argument 305 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_remove_sd_bp_new() 306 I40E_CLEAR_PF_SD_ENTRY(hw, idx, I40E_SD_TYPE_DIRECT); in i40e_remove_sd_bp_new() 317 u32 idx) in i40e_prep_remove_pd_page() argument [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | perf_event.c | 178 static u32 sparc_default_read_pmc(int idx) in sparc_default_read_pmc() argument 183 if (idx == PIC_UPPER_INDEX) in sparc_default_read_pmc() 189 static void sparc_default_write_pmc(int idx, u64 val) in sparc_default_write_pmc() argument 194 if (idx == PIC_UPPER_INDEX) in sparc_default_write_pmc() 729 static u32 sparc_vt_read_pmc(int idx) in sparc_vt_read_pmc() argument 731 u64 val = pcr_ops->read_pic(idx); in sparc_vt_read_pmc() 736 static void sparc_vt_write_pmc(int idx, u64 val) in sparc_vt_write_pmc() argument 740 pcr = pcr_ops->read_pcr(idx); in sparc_vt_write_pmc() 744 pcr_ops->write_pic(idx, val & 0xffffffff); in sparc_vt_write_pmc() 746 pcr_ops->write_pcr(idx, pcr); in sparc_vt_write_pmc() [all …]
|
/linux-4.4.14/drivers/dma/ioat/ |
D | prep.c | 44 dma_addr_t addr, u32 offset, int idx) in xor_set_src() argument 46 struct ioat_raw_descriptor *raw = descs[xor_idx_to_desc >> idx & 1]; in xor_set_src() 48 raw->field[xor_idx_to_field[idx]] = addr + offset; in xor_set_src() 51 static dma_addr_t pq_get_src(struct ioat_raw_descriptor *descs[2], int idx) in pq_get_src() argument 53 struct ioat_raw_descriptor *raw = descs[pq_idx_to_desc >> idx & 1]; in pq_get_src() 55 return raw->field[pq_idx_to_field[idx]]; in pq_get_src() 58 static dma_addr_t pq16_get_src(struct ioat_raw_descriptor *desc[3], int idx) in pq16_get_src() argument 60 struct ioat_raw_descriptor *raw = desc[pq16_idx_to_desc[idx]]; in pq16_get_src() 62 return raw->field[pq16_idx_to_field[idx]]; in pq16_get_src() 66 dma_addr_t addr, u32 offset, u8 coef, int idx) in pq_set_src() argument [all …]
|
/linux-4.4.14/arch/arc/mm/ |
D | highmem.c | 67 int idx, cpu_idx; in kmap_atomic() local 76 idx = cpu_idx + KM_TYPE_NR * smp_processor_id(); in kmap_atomic() 77 vaddr = FIXMAP_ADDR(idx); in kmap_atomic() 79 set_pte_at(&init_mm, vaddr, fixmap_page_table + idx, in kmap_atomic() 99 int idx = cpu_idx + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() local 101 WARN_ON(kvaddr != FIXMAP_ADDR(idx)); in __kunmap_atomic() 103 pte_clear(&init_mm, kvaddr, fixmap_page_table + idx); in __kunmap_atomic()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_common.c | 342 u32 idx) in fm10k_update_hw_stats_tx_q() argument 348 id_tx = fm10k_read_reg(hw, FM10K_TXQCTL(idx)); in fm10k_update_hw_stats_tx_q() 352 tx_packets = fm10k_read_hw_stats_32b(hw, FM10K_QPTC(idx), in fm10k_update_hw_stats_tx_q() 357 FM10K_QBTC_L(idx), in fm10k_update_hw_stats_tx_q() 362 id_tx = fm10k_read_reg(hw, FM10K_TXQCTL(idx)); in fm10k_update_hw_stats_tx_q() 393 u32 idx) in fm10k_update_hw_stats_rx_q() argument 399 id_rx = fm10k_read_reg(hw, FM10K_RXQCTL(idx)); in fm10k_update_hw_stats_rx_q() 403 rx_drops = fm10k_read_hw_stats_32b(hw, FM10K_QPRDC(idx), in fm10k_update_hw_stats_rx_q() 406 rx_packets = fm10k_read_hw_stats_32b(hw, FM10K_QPRC(idx), in fm10k_update_hw_stats_rx_q() 411 FM10K_QBRC_L(idx), in fm10k_update_hw_stats_rx_q() [all …]
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_user_sdma.c | 327 unsigned long idx; in ipath_user_sdma_pin_pkt() local 329 for (idx = 0; idx < niov; idx++) { in ipath_user_sdma_pin_pkt() 330 const int npages = ipath_user_sdma_num_pages(iov + idx); in ipath_user_sdma_pin_pkt() 331 const unsigned long addr = (unsigned long) iov[idx].iov_base; in ipath_user_sdma_pin_pkt() 334 addr, iov[idx].iov_len, in ipath_user_sdma_pin_pkt() 343 for (idx = 0; idx < pkt->naddr; idx++) in ipath_user_sdma_pin_pkt() 344 ipath_user_sdma_free_pkt_frag(&dd->pcidev->dev, pq, pkt, idx); in ipath_user_sdma_pin_pkt() 397 unsigned long idx = 0; in ipath_user_sdma_queue_pkts() local 409 while (idx < niov && npkts < maxpkts) { in ipath_user_sdma_queue_pkts() 410 const unsigned long addr = (unsigned long) iov[idx].iov_base; in ipath_user_sdma_queue_pkts() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/512x/ |
D | clock-commonclk.c | 596 static void mpc512x_clk_setup_mclk(struct mclk_setup_data *entry, size_t idx) in mpc512x_clk_setup_mclk() argument 605 clks_idx_pub = MPC512x_CLK_PSC0_MCLK + idx; in mpc512x_clk_setup_mclk() 607 + (idx) * MCLK_MAX_IDX; in mpc512x_clk_setup_mclk() 608 mccr_reg = &clkregs->psc_ccr[idx]; in mpc512x_clk_setup_mclk() 611 clks_idx_pub = MPC512x_CLK_MSCAN0_MCLK + idx; in mpc512x_clk_setup_mclk() 613 + (NR_PSCS + idx) * MCLK_MAX_IDX; in mpc512x_clk_setup_mclk() 614 mccr_reg = &clkregs->mscan_ccr[idx]; in mpc512x_clk_setup_mclk() 623 clks_idx_pub = MPC512x_CLK_OUT0_CLK + idx; in mpc512x_clk_setup_mclk() 625 + (NR_PSCS + NR_MSCANS + NR_SPDIFS + idx) in mpc512x_clk_setup_mclk() 627 mccr_reg = &clkregs->out_ccr[idx]; in mpc512x_clk_setup_mclk() [all …]
|
/linux-4.4.14/arch/s390/kernel/ |
D | cache.c | 71 int idx; in show_cacheinfo() local 77 for (idx = 0; idx < this_cpu_ci->num_leaves; idx++) { in show_cacheinfo() 78 cache = this_cpu_ci->info_list + idx; in show_cacheinfo() 79 seq_printf(m, "cache%-11d: ", idx); in show_cacheinfo() 162 unsigned int level, idx, pvt; in populate_cache_leaves() local 169 for (idx = 0, level = 0; level < this_cpu_ci->num_levels && in populate_cache_leaves() 170 idx < this_cpu_ci->num_leaves; idx++, level++) { in populate_cache_leaves()
|
/linux-4.4.14/drivers/memory/ |
D | tegra20-mc.c | 134 int idx, cid; in tegra20_mc_decode() local 159 idx = n - MC_INT_ERR_SHIFT; in tegra20_mc_decode() 160 if ((idx < 0) || (idx >= ARRAY_SIZE(reg))) { in tegra20_mc_decode() 166 req = mc_readl(mc, reg[idx].offset); in tegra20_mc_decode() 167 cid = (req >> reg[idx].cid_shift) & MC_CLIENT_ID_MASK; in tegra20_mc_decode() 171 addr = mc_readl(mc, reg[idx].offset + sizeof(u32)); in tegra20_mc_decode() 174 reg[idx].message, req, addr, client, in tegra20_mc_decode() 175 (req & BIT(reg[idx].write_bit)) ? "write" : "read", in tegra20_mc_decode() 176 (reg[idx].offset == MC_SECURITY_VIOLATION_STATUS) ? in tegra20_mc_decode()
|
/linux-4.4.14/drivers/net/ethernet/alteon/ |
D | acenic.c | 849 u32 idx; in ace_issue_cmd() local 851 idx = readl(®s->CmdPrd); in ace_issue_cmd() 853 writel(*(u32 *)(cmd), ®s->CmdRng[idx]); in ace_issue_cmd() 854 idx = (idx + 1) % CMD_RING_ENTRIES; in ace_issue_cmd() 856 writel(idx, ®s->CmdPrd); in ace_issue_cmd() 1632 short i, idx; in ace_load_std_rx_ring() local 1637 idx = ap->rx_std_skbprd; in ace_load_std_rx_ring() 1652 ap->skb->rx_std_skbuff[idx].skb = skb; in ace_load_std_rx_ring() 1653 dma_unmap_addr_set(&ap->skb->rx_std_skbuff[idx], in ace_load_std_rx_ring() 1656 rd = &ap->rx_std_ring[idx]; in ace_load_std_rx_ring() [all …]
|
/linux-4.4.14/arch/arm/mach-vexpress/ |
D | spc.c | 277 int idx, max_opp = info->num_opps[cluster]; in ve_spc_round_performance() local 282 for (idx = 0; idx < max_opp; idx++, opps++) { in ve_spc_round_performance() 300 int idx, max_opp = info->num_opps[cluster]; in ve_spc_find_performance_index() local 303 for (idx = 0; idx < max_opp; idx++, opps++) in ve_spc_find_performance_index() 306 return (idx == max_opp) ? -EINVAL : idx; in ve_spc_find_performance_index() 403 uint32_t data = 0, off, ret, idx; in ve_spc_populate_opps() local 413 for (idx = 0; idx < MAX_OPPS; idx++, off += 4, opps++) { in ve_spc_populate_opps() 422 info->num_opps[cluster] = idx; in ve_spc_populate_opps() 430 int idx, ret = 0, max_opp; in ve_init_opp_table() local 439 for (idx = 0; idx < max_opp; idx++, opps++) { in ve_init_opp_table()
|
/linux-4.4.14/drivers/usb/dwc2/ |
D | hcd_ddma.c | 60 static u16 dwc2_desclist_idx_inc(u16 idx, u16 inc, u8 speed) in dwc2_desclist_idx_inc() argument 62 return (idx + inc) & in dwc2_desclist_idx_inc() 67 static u16 dwc2_desclist_idx_dec(u16 idx, u16 inc, u8 speed) in dwc2_desclist_idx_dec() argument 69 return (idx - inc) & in dwc2_desclist_idx_dec() 510 u16 idx) in dwc2_fill_host_isoc_dma_desc() argument 512 struct dwc2_hcd_dma_desc *dma_desc = &qh->desc_list[idx]; in dwc2_fill_host_isoc_dma_desc() 519 qh->n_bytes[idx] = max_xfer_size; in dwc2_fill_host_isoc_dma_desc() 521 qh->n_bytes[idx] = frame_desc->length; in dwc2_fill_host_isoc_dma_desc() 524 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc() 542 u16 idx, inc, n_desc, ntd_max = 0; in dwc2_init_isoc_dma_desc() local [all …]
|
/linux-4.4.14/arch/powerpc/kvm/ |
D | book3s_64_vio_hv.c | 55 unsigned long idx = ioba >> SPAPR_TCE_SHIFT; in kvmppc_h_put_tce() local 64 page = stt->pages[idx / TCES_PER_PAGE]; in kvmppc_h_put_tce() 69 tbl[idx % TCES_PER_PAGE] = tce; in kvmppc_h_put_tce() 87 unsigned long idx = ioba >> SPAPR_TCE_SHIFT; in kvmppc_h_get_tce() local 94 page = stt->pages[idx / TCES_PER_PAGE]; in kvmppc_h_get_tce() 97 vcpu->arch.gpr[4] = tbl[idx % TCES_PER_PAGE]; in kvmppc_h_get_tce()
|
/linux-4.4.14/arch/m68k/kernel/ |
D | pcibios.c | 53 int idx; in pcibios_enable_device() local 58 for (idx = 0; idx < 6; idx++) { in pcibios_enable_device() 60 if (!(mask & (1 << idx))) in pcibios_enable_device() 63 r = dev->resource + idx; in pcibios_enable_device()
|