/linux-4.1.27/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.1.27/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.1.27/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 | 752 unsigned idx) in evergreen_cs_track_validate_texture() argument 760 texdw[0] = radeon_get_ib_value(p, idx + 0); in evergreen_cs_track_validate_texture() 761 texdw[1] = radeon_get_ib_value(p, idx + 1); in evergreen_cs_track_validate_texture() 762 texdw[2] = radeon_get_ib_value(p, idx + 2); in evergreen_cs_track_validate_texture() 763 texdw[3] = radeon_get_ib_value(p, idx + 3); in evergreen_cs_track_validate_texture() 764 texdw[4] = radeon_get_ib_value(p, idx + 4); in evergreen_cs_track_validate_texture() 765 texdw[5] = radeon_get_ib_value(p, idx + 5); in evergreen_cs_track_validate_texture() 766 texdw[6] = radeon_get_ib_value(p, idx + 6); in evergreen_cs_track_validate_texture() 767 texdw[7] = radeon_get_ib_value(p, idx + 7); in evergreen_cs_track_validate_texture() 1046 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_vce.c | 458 unsigned idx; in radeon_vce_cs_reloc() local 462 idx = radeon_get_ib_value(p, hi); in radeon_vce_cs_reloc() 464 if (idx >= relocs_chunk->length_dw) { in radeon_vce_cs_reloc() 466 idx, relocs_chunk->length_dw); in radeon_vce_cs_reloc() 470 reloc = &p->relocs[(idx / 4)]; in radeon_vce_cs_reloc() 547 while (p->idx < p->chunk_ib->length_dw) { in radeon_vce_cs_parse() 548 uint32_t len = radeon_get_ib_value(p, p->idx); in radeon_vce_cs_parse() 549 uint32_t cmd = radeon_get_ib_value(p, p->idx + 1); in radeon_vce_cs_parse() 565 handle = radeon_get_ib_value(p, p->idx + 2); in radeon_vce_cs_parse() 584 *size = radeon_get_ib_value(p, p->idx + 8) * in radeon_vce_cs_parse() [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 …]
|
/linux-4.1.27/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.1.27/arch/x86/um/ |
D | tls_32.c | 65 int idx; in get_free_idx() local 70 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx() 71 if (!t->arch.tls_array[idx].present) in get_free_idx() 72 return idx + GDT_ENTRY_TLS_MIN; in get_free_idx() 94 int idx; in load_TLS() local 96 for (idx = GDT_ENTRY_TLS_MIN; idx < GDT_ENTRY_TLS_MAX; idx++) { in load_TLS() 98 &to->thread.arch.tls_array[idx - GDT_ENTRY_TLS_MIN]; in load_TLS() 107 curr->tls.entry_number = idx; in load_TLS() 203 int idx, int flushed) in set_tls_entry() argument 207 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in set_tls_entry() [all …]
|
/linux-4.1.27/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.1.27/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() 60 #define set_fixmap(idx, phys) \ argument 61 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL) 65 #define clear_fixmap(idx) \ argument 66 __set_fixmap(idx, 0, FIXMAP_PAGE_CLEAR) 70 #define __set_fixmap_offset(idx, phys, flags) \ argument 73 __set_fixmap(idx, phys, flags); \ 74 addr = fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1)); \ [all …]
|
/linux-4.1.27/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() 562 event->hw.idx = -1; in __x86_pmu_event_init() 567 event->hw.extra_reg.idx = EXTRA_REG_NONE; in __x86_pmu_event_init() 568 event->hw.branch_reg.idx = EXTRA_REG_NONE; in __x86_pmu_event_init() 576 int idx; in x86_pmu_disable_all() local 578 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in x86_pmu_disable_all() 581 if (!test_bit(idx, cpuc->active_mask)) in x86_pmu_disable_all() 583 rdmsrl(x86_pmu_config_addr(idx), val); in x86_pmu_disable_all() [all …]
|
D | perf_event_intel_uncore.h | 16 #define UNCORE_PCI_DEV_DATA(type, idx) ((type << 8) | idx) argument 156 unsigned uncore_pci_event_ctl(struct intel_uncore_box *box, int idx) in uncore_pci_event_ctl() argument 158 return idx * 4 + box->pmu->type->event_ctl; in uncore_pci_event_ctl() 162 unsigned uncore_pci_perf_ctr(struct intel_uncore_box *box, int idx) in uncore_pci_perf_ctr() argument 164 return idx * 8 + box->pmu->type->perf_ctr; in uncore_pci_perf_ctr() 195 unsigned uncore_msr_event_ctl(struct intel_uncore_box *box, int idx) in uncore_msr_event_ctl() argument 198 (box->pmu->type->pair_ctr_ctl ? 2 * idx : idx) + in uncore_msr_event_ctl() 203 unsigned uncore_msr_perf_ctr(struct intel_uncore_box *box, int idx) in uncore_msr_perf_ctr() argument 206 (box->pmu->type->pair_ctr_ctl ? 2 * idx : idx) + in uncore_msr_perf_ctr() 229 unsigned uncore_event_ctl(struct intel_uncore_box *box, int idx) in uncore_event_ctl() argument [all …]
|
D | perf_event_intel.c | 1392 int idx = hwc->idx - INTEL_PMC_IDX_FIXED; in intel_pmu_disable_fixed() local 1395 mask = 0xfULL << (idx * 4); in intel_pmu_disable_fixed() 1412 if (unlikely(hwc->idx == INTEL_PMC_IDX_FIXED_BTS)) { in intel_pmu_disable_event() 1418 cpuc->intel_ctrl_guest_mask &= ~(1ull << hwc->idx); in intel_pmu_disable_event() 1419 cpuc->intel_ctrl_host_mask &= ~(1ull << hwc->idx); in intel_pmu_disable_event() 1420 cpuc->intel_cp_status &= ~(1ull << hwc->idx); in intel_pmu_disable_event() 1442 int idx = hwc->idx - INTEL_PMC_IDX_FIXED; in intel_pmu_enable_fixed() local 1462 bits <<= (idx * 4); in intel_pmu_enable_fixed() 1463 mask = 0xfULL << (idx * 4); in intel_pmu_enable_fixed() 1476 if (unlikely(hwc->idx == INTEL_PMC_IDX_FIXED_BTS)) { in intel_pmu_enable_event() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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 | early_ioremap.c | 48 static inline void __init __late_set_fixmap(enum fixed_addresses idx, in __late_set_fixmap() argument 56 static inline void __init __late_clear_fixmap(enum fixed_addresses idx) in __late_clear_fixmap() argument 102 enum fixed_addresses idx; in __early_ioremap() local 142 idx = FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*slot; in __early_ioremap() 145 __late_set_fixmap(idx, phys_addr, prot); in __early_ioremap() 147 __early_set_fixmap(idx, phys_addr, prot); in __early_ioremap() 149 --idx; in __early_ioremap() 164 enum fixed_addresses idx; in early_iounmap() local 194 idx = FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*slot; in early_iounmap() 197 __late_clear_fixmap(idx); in early_iounmap() [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()
|
/linux-4.1.27/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.1.27/kernel/sched/ |
D | cpudeadline.c | 46 swap(cp->elements[cpu_a].idx, cp->elements[cpu_b].idx); in cpudl_exchange() 49 static void cpudl_heapify(struct cpudl *cp, int idx) in cpudl_heapify() argument 55 l = left_child(idx); in cpudl_heapify() 56 r = right_child(idx); in cpudl_heapify() 57 largest = idx; in cpudl_heapify() 59 if ((l < cp->size) && dl_time_before(cp->elements[idx].dl, in cpudl_heapify() 65 if (largest == idx) in cpudl_heapify() 69 cpudl_exchange(cp, largest, idx); in cpudl_heapify() 70 idx = largest; in cpudl_heapify() 74 static void cpudl_change_key(struct cpudl *cp, int idx, u64 new_dl) in cpudl_change_key() argument [all …]
|
D | proc.c | 157 int idx = calc_load_idx; in calc_load_write_idx() local 170 idx++; in calc_load_write_idx() 172 return idx & 1; in calc_load_write_idx() 191 int idx = calc_load_write_idx(); in calc_load_enter_idle() local 192 atomic_long_add(delta, &calc_load_idle[idx]); in calc_load_enter_idle() 218 int idx = calc_load_read_idx(); in calc_load_fold_idle() local 221 if (atomic_long_read(&calc_load_idle[idx])) in calc_load_fold_idle() 222 delta = atomic_long_xchg(&calc_load_idle[idx], 0); in calc_load_fold_idle() 441 decay_load_missed(unsigned long load, unsigned long missed_updates, int idx) in decay_load_missed() argument 448 if (missed_updates >= degrade_zero_ticks[idx]) in decay_load_missed() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/arch/arm64/kernel/ |
D | perf_event.c | 153 int idx) in armpmu_event_set_period() argument 185 armpmu->write_counter(idx, (u64)(-left) & 0xffffffff); in armpmu_event_set_period() 195 int idx) in armpmu_event_update() argument 202 new_raw_count = armpmu->read_counter(idx); in armpmu_event_update() 222 if (hwc->idx < 0) in armpmu_read() 225 armpmu_event_update(event, hwc, hwc->idx); in armpmu_read() 239 armpmu->disable(hwc, hwc->idx); in armpmu_stop() 241 armpmu_event_update(event, hwc, hwc->idx); in armpmu_stop() 267 armpmu_event_set_period(event, hwc, hwc->idx); in armpmu_start() 268 armpmu->enable(hwc, hwc->idx); in armpmu_start() [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.1.27/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() 94 enum fixed_addresses idx; in kmap_atomic_pfn() local 101 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic_pfn() [all …]
|
/linux-4.1.27/drivers/irqchip/ |
D | irq-bcm7120-l2.c | 59 unsigned int idx; in bcm7120_l2_intc_irq_handle() local 63 for (idx = 0; idx < b->n_words; idx++) { in bcm7120_l2_intc_irq_handle() 64 int base = idx * IRQS_PER_WORD; in bcm7120_l2_intc_irq_handle() 71 pending = irq_reg_readl(gc, b->stat_offset[idx]) & in bcm7120_l2_intc_irq_handle() 113 unsigned int idx; in bcm7120_l2_intc_init_one() local 124 for (idx = 0; idx < data->n_words; idx++) { in bcm7120_l2_intc_init_one() 126 data->irq_map_mask[idx] |= in bcm7120_l2_intc_init_one() 128 irq * data->n_words + idx); in bcm7120_l2_intc_init_one() 130 data->irq_map_mask[idx] = 0xffffffff; in bcm7120_l2_intc_init_one() 216 unsigned int idx, irq, flags; in bcm7120_l2_intc_probe() local [all …]
|
D | irq-bcm7038-l1.c | 124 unsigned int idx; in bcm7038_l1_irq_handle() local 134 for (idx = 0; idx < intc->n_words; idx++) { in bcm7038_l1_irq_handle() 135 int base = idx * IRQS_PER_WORD; in bcm7038_l1_irq_handle() 140 pending = l1_readl(cpu->map_base + reg_status(intc, idx)) & in bcm7038_l1_irq_handle() 141 ~cpu->mask_cache[idx]; in bcm7038_l1_irq_handle() 221 unsigned int idx, in bcm7038_l1_init_one() argument 229 if (of_address_to_resource(dn, idx, &res)) in bcm7038_l1_init_one() 241 cpu = intc->cpus[idx] = kzalloc(sizeof(*cpu) + n_words * sizeof(u32), in bcm7038_l1_init_one() 255 parent_irq = irq_of_parse_and_map(dn, idx); in bcm7038_l1_init_one() 290 int idx, ret; in bcm7038_l1_of_init() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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() 81 int idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() local 83 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in __kunmap_atomic() 89 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic() 105 int idx, type; in kmap_atomic_pfn() local 110 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 | 101 int idx; in local_flush_tlb_range() local 106 idx = read_c0_index(); in local_flush_tlb_range() 109 if (idx < 0) /* BARRIER */ in local_flush_tlb_range() 138 int idx; in local_flush_tlb_kernel_range() local 143 idx = read_c0_index(); in local_flush_tlb_kernel_range() 146 if (idx < 0) /* BARRIER */ in local_flush_tlb_kernel_range() 163 int oldpid, newpid, idx; in local_flush_tlb_page() local 175 idx = read_c0_index(); in local_flush_tlb_page() 178 if (idx < 0) /* BARRIER */ in local_flush_tlb_page() 191 int idx, pid; in __update_tlb() local [all …]
|
/linux-4.1.27/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.1.27/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 81 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic() 82 vaddr = __fix_to_virt(idx); in kmap_atomic() 95 set_fixmap_pte(idx, mk_pte(page, kmap_prot)); in kmap_atomic() 104 int idx, type; in __kunmap_atomic() local 108 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 113 BUG_ON(vaddr != __fix_to_virt(idx)); in __kunmap_atomic() 114 set_fixmap_pte(idx, __pte(0)); in __kunmap_atomic() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/net/wireless/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | lprocfs_counters.c | 47 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_add() argument 57 LASSERTF(0 <= idx && idx < stats->ls_num, in lprocfs_counter_add() 58 "idx %d, ls_num %hu\n", idx, stats->ls_num); in lprocfs_counter_add() 66 header = &stats->ls_cnt_header[idx]; in lprocfs_counter_add() 67 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); in lprocfs_counter_add() 98 void lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount) in lprocfs_counter_sub() argument 108 LASSERTF(0 <= idx && idx < stats->ls_num, in lprocfs_counter_sub() 109 "idx %d, ls_num %hu\n", idx, stats->ls_num); in lprocfs_counter_sub() 117 header = &stats->ls_cnt_header[idx]; in lprocfs_counter_sub() 118 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); in lprocfs_counter_sub()
|
/linux-4.1.27/arch/arm/mach-shmobile/ |
D | board-marzen.c | 208 #define MARZEN_VIN(idx) \ argument 209 static struct resource vin##idx##_resources[] __initdata = { \ 210 DEFINE_RES_MEM(0xffc50000 + 0x1000 * (idx), 0x1000), \ 211 DEFINE_RES_IRQ(gic_iid(0x5f + (idx))), \ 214 static struct platform_device_info vin##idx##_info __initdata = { \ 216 .id = idx, \ 217 .res = vin##idx##_resources, \ 218 .num_res = ARRAY_SIZE(vin##idx##_resources), \ 226 #define MARZEN_CAMERA(idx) \ argument 227 static struct i2c_board_info camera##idx##_info = { \ [all …]
|
/linux-4.1.27/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.1.27/arch/arm/kernel/ |
D | perf_event_v7.c | 616 static inline int armv7_pmnc_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv7_pmnc_counter_valid() argument 618 return idx >= ARMV7_IDX_CYCLE_COUNTER && in armv7_pmnc_counter_valid() 619 idx <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); in armv7_pmnc_counter_valid() 622 static inline int armv7_pmnc_counter_has_overflowed(u32 pmnc, int idx) in armv7_pmnc_counter_has_overflowed() argument 624 return pmnc & BIT(ARMV7_IDX_TO_COUNTER(idx)); in armv7_pmnc_counter_has_overflowed() 627 static inline void armv7_pmnc_select_counter(int idx) in armv7_pmnc_select_counter() argument 629 u32 counter = ARMV7_IDX_TO_COUNTER(idx); in armv7_pmnc_select_counter() 638 int idx = hwc->idx; in armv7pmu_read_counter() local 641 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_read_counter() 643 smp_processor_id(), idx); in armv7pmu_read_counter() [all …]
|
D | perf_event_xscale.c | 143 int idx; in xscale1pmu_handle_irq() local 165 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq() 166 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq() 172 if (!xscale1_pmnc_counter_has_overflowed(pmnc, idx)) in xscale1pmu_handle_irq() 202 int idx = hwc->idx; in xscale1pmu_enable_event() local 204 switch (idx) { in xscale1pmu_enable_event() 220 WARN_ONCE(1, "invalid counter number (%d)\n", idx); in xscale1pmu_enable_event() 238 int idx = hwc->idx; in xscale1pmu_disable_event() local 240 switch (idx) { in xscale1pmu_disable_event() 254 WARN_ONCE(1, "invalid counter number (%d)\n", idx); in xscale1pmu_disable_event() [all …]
|
D | perf_event_v6.c | 230 int counter = hwc->idx; in armv6pmu_read_counter() 248 int counter = hwc->idx; in armv6pmu_write_counter() 266 int idx = hwc->idx; in armv6pmu_enable_event() local 268 if (ARMV6_CYCLE_COUNTER == idx) { in armv6pmu_enable_event() 271 } else if (ARMV6_COUNTER0 == idx) { in armv6pmu_enable_event() 275 } else if (ARMV6_COUNTER1 == idx) { in armv6pmu_enable_event() 280 WARN_ONCE(1, "invalid counter number (%d)\n", idx); in armv6pmu_enable_event() 305 int idx; in armv6pmu_handle_irq() local 319 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq() 320 struct perf_event *event = cpuc->events[idx]; in armv6pmu_handle_irq() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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 | 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 | 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 = nv_ro16(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 154 if (idx < *cnt) in nvbios_dpcfg_entry() 155 return outp + *hdr + (idx * *len); in nvbios_dpcfg_entry() [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() 78 nvbios_pmuEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) in nvbios_pmuEe() argument 82 if (data && idx < cnt) { in nvbios_pmuEe() 83 data = data + *hdr + (idx * len); in nvbios_pmuEe() 91 nvbios_pmuEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_pmuEp() argument 94 u32 data = nvbios_pmuEe(bios, idx, ver, hdr); in nvbios_pmuEp() 109 u8 ver, hdr, idx = 0; in nvbios_pmuRm() local 112 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()
|
D | dcb.c | 100 dcb_outp(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len) in dcb_outp() argument 104 if (dcb && idx < cnt) in dcb_outp() 105 return dcb + hdr + (idx * *len); in dcb_outp() 122 dcb_outp_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, in dcb_outp_parse() argument 125 u16 dcb = dcb_outp(bios, idx, ver, len); in dcb_outp_parse() 199 u16 dcb, idx = 0; in dcb_outp_match() local 200 while ((dcb = dcb_outp_parse(bios, idx++, ver, len, outp))) { in dcb_outp_match() 213 int ret, idx = -1; in dcb_outp_foreach() local 217 while ((outp = dcb_outp(bios, ++idx, &ver, &len))) { in dcb_outp_foreach() 228 ret = exec(bios, data, idx, outp); in dcb_outp_foreach()
|
/linux-4.1.27/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.1.27/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() 72 unsigned int idx; in __kunmap_atomic() local 74 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 75 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in __kunmap_atomic() 81 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic()
|
/linux-4.1.27/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() 69 unsigned int idx; in __kunmap_atomic() local 71 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 72 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in __kunmap_atomic() 78 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic()
|
/linux-4.1.27/drivers/bus/ |
D | arm-cci.c | 80 #define CCI_PMU_CNTR_BASE(idx) ((idx) * SZ_4K) argument 236 static int pmu_is_valid_counter(struct cci_pmu *cci_pmu, int idx) in pmu_is_valid_counter() argument 238 return CCI_PMU_CYCLE_CNTR_IDX <= idx && in pmu_is_valid_counter() 239 idx <= CCI_PMU_CNTR_LAST(cci_pmu); in pmu_is_valid_counter() 242 static u32 pmu_read_register(int idx, unsigned int offset) in pmu_read_register() argument 244 return readl_relaxed(pmu->base + CCI_PMU_CNTR_BASE(idx) + offset); in pmu_read_register() 247 static void pmu_write_register(u32 value, int idx, unsigned int offset) in pmu_write_register() argument 249 return writel_relaxed(value, pmu->base + CCI_PMU_CNTR_BASE(idx) + offset); in pmu_write_register() 252 static void pmu_disable_counter(int idx) in pmu_disable_counter() argument 254 pmu_write_register(0, idx, CCI_PMU_CNTR_CTRL); in pmu_disable_counter() [all …]
|
/linux-4.1.27/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() 108 unsigned long idx, vaddr = (unsigned long)ptr; in kmap_atomic_to_page() local [all …]
|
D | iomap_32.c | 60 int idx, type; in kmap_atomic_prot_pfn() local 65 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic_prot_pfn() 66 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic_prot_pfn() 67 set_pte(kmap_pte - idx, pfn_pte(pfn, prot)); in kmap_atomic_prot_pfn() 101 int idx, type; in iounmap_atomic() local 104 idx = type + KM_TYPE_NR * smp_processor_id(); in iounmap_atomic() 107 WARN_ON_ONCE(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in iounmap_atomic() 115 kpte_clear_flush(kmap_pte-idx, vaddr); in iounmap_atomic()
|
/linux-4.1.27/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.1.27/arch/x86/kernel/apic/ |
D | io_apic.c | 57 #define for_each_ioapic(idx) \ argument 58 for ((idx) = 0; (idx) < nr_ioapics; (idx)++) 59 #define for_each_ioapic_reverse(idx) \ argument 60 for ((idx) = nr_ioapics - 1; (idx) >= 0; (idx)--) 61 #define for_each_pin(idx, pin) \ argument 62 for ((pin) = 0; (pin) < ioapics[(idx)].nr_registers; (pin)++) 63 #define for_each_ioapic_pin(idx, pin) \ argument 64 for_each_ioapic((idx)) \ 65 for_each_pin((idx), (pin)) 229 static void alloc_ioapic_saved_registers(int idx) in alloc_ioapic_saved_registers() argument [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/arc/kernel/ |
D | perf_event.c | 70 static uint64_t arc_pmu_read_counter(int idx) in arc_pmu_read_counter() argument 79 write_aux_reg(ARC_REG_PCT_INDEX, idx); in arc_pmu_read_counter() 89 struct hw_perf_event *hwc, int idx) in arc_perf_event_update() argument 96 new_raw_count = arc_pmu_read_counter(idx); in arc_perf_event_update() 109 arc_perf_event_update(event, &event->hw, event->hw.idx); in arc_pmu_read() 191 int idx = hwc->idx; in arc_pmu_start() local 193 if (WARN_ON_ONCE(idx == -1)) in arc_pmu_start() 202 write_aux_reg(ARC_REG_PCT_INDEX, idx); in arc_pmu_start() 209 int idx = hwc->idx; in arc_pmu_stop() local 213 write_aux_reg(ARC_REG_PCT_INDEX, idx); in arc_pmu_stop() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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() 101 unsigned long idx; in __kunmap_atomic() local 103 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 104 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN+idx)); in __kunmap_atomic() 117 pte_clear(&init_mm, vaddr, kmap_pte-idx); in __kunmap_atomic()
|
/linux-4.1.27/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() 136 rate = (b.packets - e->last_packets)<<(12 - idx); in est_timer() 145 if (!list_empty(&elist[idx].list)) in est_timer() 146 mod_timer(&elist[idx].timer, jiffies + ((HZ/4) << idx)); in est_timer() 215 int idx; in gen_new_estimator() local 229 idx = parm->interval + 2; in gen_new_estimator() 241 if (!elist[idx].timer.function) { in gen_new_estimator() 242 INIT_LIST_HEAD(&elist[idx].list); in gen_new_estimator() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/arch/mn10300/include/asm/ |
D | highmem.h | 76 int idx, type; in kmap_atomic() local 83 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic() 84 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic() 86 if (!pte_none(*(kmap_pte - idx))) in kmap_atomic() 89 set_pte(kmap_pte - idx, mk_pte(page, kmap_prot)); in kmap_atomic() 108 unsigned int idx; in __kunmap_atomic() local 109 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic() 111 if (vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)) in __kunmap_atomic() 118 pte_clear(kmap_pte - idx); in __kunmap_atomic()
|
/linux-4.1.27/drivers/clk/samsung/ |
D | clk.c | 105 unsigned int idx, ret; in samsung_clk_register_alias() local 112 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias() 115 idx); in samsung_clk_register_alias() 138 unsigned int idx, ret; in samsung_clk_register_fixed_rate() local 140 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate() 167 unsigned int idx; in samsung_clk_register_fixed_factor() local 169 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_factor() 188 unsigned int idx, ret; in samsung_clk_register_mux() local 190 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_mux() 220 unsigned int idx, ret; in samsung_clk_register_div() local [all …]
|
/linux-4.1.27/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.1.27/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() 208 int snd_card_new(struct device *parent, int idx, const char *xid, in snd_card_new() argument 230 if (idx < 0) /* first check the matching module-name slot */ in snd_card_new() 231 idx = get_slot_from_bitmask(idx, module_slot_match, module); in snd_card_new() 232 if (idx < 0) /* if not matched, assign an empty slot */ in snd_card_new() 233 idx = get_slot_from_bitmask(idx, check_empty_slot, module); in snd_card_new() 234 if (idx < 0) in snd_card_new() 236 else if (idx < snd_ecards_limit) { in snd_card_new() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/net/wireless/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.1.27/sound/pci/emu10k1/ |
D | emuproc.c | 191 int idx; in snd_emu10k1_proc_read() local 200 for (idx = 0; idx < NUM_G; idx++) { in snd_emu10k1_proc_read() 202 snd_emu10k1_ptr_read(emu, A_FXRT1, idx) : in snd_emu10k1_proc_read() 203 snd_emu10k1_ptr_read(emu, FXRT, idx); in snd_emu10k1_proc_read() 205 snd_emu10k1_ptr_read(emu, A_FXRT2, idx) : in snd_emu10k1_proc_read() 209 idx, in snd_emu10k1_proc_read() 221 idx, in snd_emu10k1_proc_read() 229 for (idx = 0; idx < nefx; idx++) { in snd_emu10k1_proc_read() 230 if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) in snd_emu10k1_proc_read() 231 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.1.27/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 = ACCESS_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 = ACCESS_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() 297 int idx; in __srcu_read_lock() local 299 idx = ACCESS_ONCE(sp->completed) & 0x1; in __srcu_read_lock() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/include/linux/ |
D | hugetlb_cgroup.h | 56 extern int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, 58 extern void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, 61 extern void hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages, 63 extern void hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, 87 hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup() argument 94 hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge() argument 102 hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages, struct page *page) in hugetlb_cgroup_uncharge_page() argument 108 hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup() argument
|
/linux-4.1.27/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() 109 pnp_dbg(&dev->dev, " mem %d disabled\n", idx); in pnp_assign_mem() 121 "(min %#llx max %#llx)\n", idx, in pnp_assign_mem() [all …]
|
/linux-4.1.27/net/mac80211/ |
D | rate.c | 199 static void rc_send_low_basicrate(s8 *idx, u32 basic_rates, in rc_send_low_basicrate() argument 206 if (*idx < 0) in rc_send_low_basicrate() 208 if (basic_rates & (1 << *idx)) in rc_send_low_basicrate() 211 for (i = *idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_basicrate() 213 *idx = i; in rc_send_low_basicrate() 235 info->control.rates[0].idx = 0; in __rate_control_send_low() 246 info->control.rates[0].idx = i; in __rate_control_send_low() 276 info->control.rates[0].idx = mcast_rate - 1; in rate_control_send_low() 287 rc_send_low_basicrate(&info->control.rates[0].idx, in rate_control_send_low() 303 for (j = rate->idx; j >= 0; j--) { in rate_idx_match_legacy_mask() [all …]
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192c/ |
D | fw_common.c | 294 u8 idx; in _rtl92c_fill_h2c_command() local 397 for (idx = 0; idx < 4; idx++) { in _rtl92c_fill_h2c_command() 398 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92c_fill_h2c_command() 399 boxcontent[idx]); in _rtl92c_fill_h2c_command() 407 for (idx = 0; idx < 4; idx++) { in _rtl92c_fill_h2c_command() 408 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92c_fill_h2c_command() 409 boxcontent[idx]); in _rtl92c_fill_h2c_command() 417 for (idx = 0; idx < 4; idx++) { in _rtl92c_fill_h2c_command() 418 rtl_write_byte(rtlpriv, box_reg + idx, in _rtl92c_fill_h2c_command() 419 boxcontent[idx]); in _rtl92c_fill_h2c_command() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/arch/sh/mm/ |
D | kmap.c | 34 enum fixed_addresses idx; in kmap_coherent() local 41 idx = FIX_CMAP_END - in kmap_coherent() 45 vaddr = __fix_to_virt(idx); in kmap_coherent() 47 BUG_ON(!pte_none(*(kmap_coherent_pte - idx))); in kmap_coherent() 48 set_pte(kmap_coherent_pte - idx, mk_pte(page, PAGE_KERNEL)); in kmap_coherent() 57 enum fixed_addresses idx = __virt_to_fix(vaddr); in kunmap_coherent() local 62 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.1.27/arch/arm/mach-imx/ |
D | clk-pfd.c | 33 u8 idx; member 46 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR); in clk_pfd_enable() 55 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET); in clk_pfd_disable() 63 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f; in clk_pfd_recalc_rate() 106 writel_relaxed(0x3f << (pfd->idx * 8), pfd->reg + CLR); in clk_pfd_set_rate() 107 writel_relaxed(frac << (pfd->idx * 8), pfd->reg + SET); in clk_pfd_set_rate() 116 if (readl_relaxed(pfd->reg) & (1 << ((pfd->idx + 1) * 8 - 1))) in clk_pfd_is_enabled() 132 void __iomem *reg, u8 idx) in imx_clk_pfd() argument 143 pfd->idx = idx; in imx_clk_pfd()
|
/linux-4.1.27/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.1.27/drivers/dma/ |
D | mv_xor.h | 39 #define XOR_CURR_DESC(chan) (chan->mmr_high_base + 0x10 + (chan->idx * 4)) 40 #define XOR_NEXT_DESC(chan) (chan->mmr_high_base + 0x00 + (chan->idx * 4)) 41 #define XOR_BYTE_COUNT(chan) (chan->mmr_high_base + 0x20 + (chan->idx * 4)) 42 #define XOR_DEST_POINTER(chan) (chan->mmr_high_base + 0xB0 + (chan->idx * 4)) 43 #define XOR_BLOCK_SIZE(chan) (chan->mmr_high_base + 0xC0 + (chan->idx * 4)) 47 #define XOR_CONFIG(chan) (chan->mmr_base + 0x10 + (chan->idx * 4)) 48 #define XOR_ACTIVATION(chan) (chan->mmr_base + 0x20 + (chan->idx * 4)) 105 unsigned int idx; member 143 u16 idx; member 187 #define mv_hw_desc_slot_idx(hw_desc, idx) \ argument [all …]
|
/linux-4.1.27/drivers/power/reset/ |
D | at91-reset.c | 176 int idx = 0; in at91_reset_of_probe() local 185 at91_ramc_base[idx] = of_iomap(np, 0); in at91_reset_of_probe() 186 if (!at91_ramc_base[idx]) { in at91_reset_of_probe() 190 idx++; in at91_reset_of_probe() 202 int idx = 0; in at91_reset_platform_probe() local 211 for (idx = 0; idx < 2; idx++) { in at91_reset_platform_probe() 212 res = platform_get_resource(pdev, IORESOURCE_MEM, idx + 1 ); in at91_reset_platform_probe() 213 at91_ramc_base[idx] = devm_ioremap(&pdev->dev, res->start, in at91_reset_platform_probe() 215 if (!at91_ramc_base[idx]) { in at91_reset_platform_probe()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/xtensa/mm/ |
D | highmem.c | 42 enum fixed_addresses idx; in kmap_atomic() local 49 idx = kmap_idx(kmap_atomic_idx_push(), in kmap_atomic() 51 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic() 53 BUG_ON(!pte_none(*(kmap_pte + idx))); in kmap_atomic() 55 set_pte(kmap_pte + idx, mk_pte(page, PAGE_KERNEL_EXEC)); in kmap_atomic() 65 int idx = kmap_idx(kmap_atomic_idx(), in __kunmap_atomic() local 74 pte_clear(&init_mm, kvaddr, kmap_pte + idx); in __kunmap_atomic()
|
/linux-4.1.27/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.1.27/tools/perf/util/ |
D | trace-event-parse.c | 207 static int idx; in trace_find_next_event() local 213 idx = 0; in trace_find_next_event() 217 if (idx < pevent->nr_events && event == pevent->events[idx]) { in trace_find_next_event() 218 idx++; in trace_find_next_event() 219 if (idx == pevent->nr_events) in trace_find_next_event() 221 return pevent->events[idx]; in trace_find_next_event() 224 for (idx = 1; idx < pevent->nr_events; idx++) { in trace_find_next_event() 225 if (event == pevent->events[idx - 1]) in trace_find_next_event() 226 return pevent->events[idx]; in trace_find_next_event()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/scripts/kconfig/ |
D | qconf.h | 100 int mapIdx(colIdx idx) in mapIdx() argument 102 return colMap[idx]; in mapIdx() 104 void addColumn(colIdx idx, const QString& label) in addColumn() argument 106 colMap[idx] = Parent::addColumn(label); in addColumn() 107 colRevMap[colMap[idx]] = idx; in addColumn() 109 void removeColumn(colIdx idx) in removeColumn() argument 111 int col = colMap[idx]; in removeColumn() 114 colRevMap[col] = colMap[idx] = -1; in removeColumn() 179 void setText(colIdx idx, const QString& text) in setText() argument 181 Parent::setText(listView()->mapIdx(idx), text); in setText() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/sound/pci/ |
D | ak4531_codec.c | 52 int idx; 54 for (idx = 0; idx < 0x19; idx++) 56 idx, ak4531->regs[idx]); 390 unsigned int idx; in snd_ak4531_mixer() local 414 for (idx = 0; idx <= 0x19; idx++) { in snd_ak4531_mixer() 415 if (idx == AK4531_RESET || idx == AK4531_CLOCK) in snd_ak4531_mixer() 417 …ak4531->write(ak4531, idx, ak4531->regs[idx] = snd_ak4531_initial_map[idx]); /* recording source i… in snd_ak4531_mixer() 419 for (idx = 0; idx < ARRAY_SIZE(snd_ak4531_controls); idx++) { in snd_ak4531_mixer() 420 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ak4531_controls[idx], ak4531))) < 0) { in snd_ak4531_mixer() 454 int idx; in snd_ak4531_resume() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/kernel/ |
D | user_namespace.c | 155 unsigned idx, extents; in map_id_range_down() local 163 for (idx = 0; idx < extents; idx++) { in map_id_range_down() 164 first = map->extent[idx].first; in map_id_range_down() 165 last = first + map->extent[idx].count - 1; in map_id_range_down() 171 if (idx < extents) in map_id_range_down() 172 id = (id - first) + map->extent[idx].lower_first; in map_id_range_down() 181 unsigned idx, extents; in map_id_down() local 187 for (idx = 0; idx < extents; idx++) { in map_id_down() 188 first = map->extent[idx].first; in map_id_down() 189 last = first + map->extent[idx].count - 1; in map_id_down() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/drivers/i2c/busses/ |
D | i2c-ibm_iic.c | 86 printk(KERN_DEBUG "ibm-iic%d: %s\n", dev->idx, header); in dump_iic_regs() 139 DBG("%d: init\n", dev->idx); in iic_dev_init() 186 DBG("%d: soft reset\n", dev->idx); in iic_dev_reset() 195 DBG("%d: trying to regain bus control\n", dev->idx); in iic_dev_reset() 251 dev->idx); in iic_smbus_quick() 255 DBG("%d: smbus_quick(0x%02x)\n", dev->idx, p->addr); in iic_smbus_quick() 308 DBG("%d: smbus_quick -> %s\n", dev->idx, res ? "NACK" : "ACK"); in iic_smbus_quick() 318 DBG("%d: smbus_quick - bus is stuck\n", dev->idx); in iic_smbus_quick() 332 dev->idx, in_8(&iic->sts), in_8(&iic->extsts)); in iic_handler() 350 DBG("%d: xfer error, EXTSTS = 0x%02x\n", dev->idx, in iic_xfer_result() [all …]
|
/linux-4.1.27/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.1.27/arch/arm64/include/asm/ |
D | pmu.h | 50 void (*enable)(struct hw_perf_event *evt, int idx); 51 void (*disable)(struct hw_perf_event *evt, int idx); 56 u32 (*read_counter)(int idx); 57 void (*write_counter)(int idx, u32 val); 76 int idx); 80 int idx);
|
/linux-4.1.27/net/nfc/ |
D | netlink.c | 79 if (nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target->idx) || in nfc_genl_send_target() 117 u32 idx; in __get_device_from_cb() local 129 idx = nla_get_u32(nfc_genl_family.attrbuf[NFC_ATTR_DEVICE_INDEX]); in __get_device_from_cb() 131 dev = nfc_get_device(idx); in __get_device_from_cb() 199 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_targets_found() 258 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_tm_activated() 290 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_tm_deactivated() 321 nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || in nfc_genl_device_added() 353 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_device_removed() 388 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_llc_send_sdres() [all …]
|
/linux-4.1.27/arch/powerpc/platforms/512x/ |
D | clock-commonclk.c | 595 static void mpc512x_clk_setup_mclk(struct mclk_setup_data *entry, size_t idx) in mpc512x_clk_setup_mclk() argument 604 clks_idx_pub = MPC512x_CLK_PSC0_MCLK + idx; in mpc512x_clk_setup_mclk() 606 + (idx) * MCLK_MAX_IDX; in mpc512x_clk_setup_mclk() 607 mccr_reg = &clkregs->psc_ccr[idx]; in mpc512x_clk_setup_mclk() 610 clks_idx_pub = MPC512x_CLK_MSCAN0_MCLK + idx; in mpc512x_clk_setup_mclk() 612 + (NR_PSCS + idx) * MCLK_MAX_IDX; in mpc512x_clk_setup_mclk() 613 mccr_reg = &clkregs->mscan_ccr[idx]; in mpc512x_clk_setup_mclk() 622 clks_idx_pub = MPC512x_CLK_OUT0_CLK + idx; in mpc512x_clk_setup_mclk() 624 + (NR_PSCS + NR_MSCANS + NR_SPDIFS + idx) in mpc512x_clk_setup_mclk() 626 mccr_reg = &clkregs->out_ccr[idx]; in mpc512x_clk_setup_mclk() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_user_sdma.c | 328 unsigned long idx; in ipath_user_sdma_pin_pkt() local 330 for (idx = 0; idx < niov; idx++) { in ipath_user_sdma_pin_pkt() 331 const int npages = ipath_user_sdma_num_pages(iov + idx); in ipath_user_sdma_pin_pkt() 332 const unsigned long addr = (unsigned long) iov[idx].iov_base; in ipath_user_sdma_pin_pkt() 335 addr, iov[idx].iov_len, in ipath_user_sdma_pin_pkt() 344 for (idx = 0; idx < pkt->naddr; idx++) in ipath_user_sdma_pin_pkt() 345 ipath_user_sdma_free_pkt_frag(&dd->pcidev->dev, pq, pkt, idx); in ipath_user_sdma_pin_pkt() 398 unsigned long idx = 0; in ipath_user_sdma_queue_pkts() local 410 while (idx < niov && npkts < maxpkts) { in ipath_user_sdma_queue_pkts() 411 const unsigned long addr = (unsigned long) iov[idx].iov_base; in ipath_user_sdma_queue_pkts() [all …]
|
/linux-4.1.27/drivers/pci/ |
D | htirq.c | 31 unsigned idx; member 42 pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx); in write_ht_irq_msg() 46 pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx + 1); in write_ht_irq_msg() 87 int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update) in __ht_create_irq() argument 105 if (idx > max_irq) in __ht_create_irq() 115 cfg->idx = 0x10 + (idx * 2); in __ht_create_irq() 146 int ht_create_irq(struct pci_dev *dev, int idx) in ht_create_irq() argument 148 return __ht_create_irq(dev, idx, NULL); in ht_create_irq()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_hmc.c | 204 u32 idx) in i40e_remove_pd_bp() argument 214 sd_idx = idx / I40E_HMC_PD_CNT_IN_SD; in i40e_remove_pd_bp() 215 rel_pd_idx = idx % I40E_HMC_PD_CNT_IN_SD; in i40e_remove_pd_bp() 240 I40E_INVALIDATE_PF_HMC_PD(hw, sd_idx, idx); in i40e_remove_pd_bp() 258 u32 idx) in i40e_prep_remove_sd_bp() argument 264 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_sd_bp() 287 u32 idx, bool is_pf) in i40e_remove_sd_bp_new() argument 293 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_remove_sd_bp_new() 295 I40E_CLEAR_PF_SD_ENTRY(hw, idx, I40E_SD_TYPE_DIRECT); in i40e_remove_sd_bp_new() 313 u32 idx) in i40e_prep_remove_pd_page() argument [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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()
|
/linux-4.1.27/sound/pci/hda/ |
D | hda_intel_trace.h | 21 __field( int, idx ) 27 __entry->idx = (dev)->index; 31 TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd) 42 __field( int, idx ) 49 __entry->idx = (dev)->index; 54 TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay)
|
/linux-4.1.27/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.1.27/drivers/net/wireless/ipw2x00/ |
D | libipw_wx.c | 525 int i, idx, ret = 0; in libipw_wx_set_encodeext() local 535 idx = encoding->flags & IW_ENCODE_INDEX; in libipw_wx_set_encodeext() 536 if (idx) { in libipw_wx_set_encodeext() 537 if (idx < 1 || idx > WEP_KEYS) in libipw_wx_set_encodeext() 539 idx--; in libipw_wx_set_encodeext() 541 idx = ieee->crypt_info.tx_keyidx; in libipw_wx_set_encodeext() 544 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext() 548 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_set_encodeext() 551 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext() 627 new_crypt->priv = new_crypt->ops->init(idx); in libipw_wx_set_encodeext() [all …]
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
D | txrx.c | 75 BUG_ON(rates[0].idx < 0); in tx_policy_build() 80 if (rates[i].idx < 0) { in tx_policy_build() 84 if (rates[i].idx > rates[i - 1].idx) { in tx_policy_build() 94 if (rates[j].idx == rates[i].idx) { in tx_policy_build() 96 } else if (rates[j].idx > rates[i].idx) { in tx_policy_build() 128 rates[0].idx > 4 && rates[0].count > 2 && in tx_policy_build() 129 rates[1].idx < 2) { in tx_policy_build() 130 int mid_rate = (rates[0].idx + 4) >> 1; in tx_policy_build() 140 rates[2].idx = 4; in tx_policy_build() 145 rates[1].idx = mid_rate; in tx_policy_build() [all …]
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
D | netjet.c | 45 int idx; member 57 int idx; member 188 fill_mem(struct tiger_ch *bc, u32 idx, u32 cnt, u32 fill) in fill_mem() argument 194 bc->bch.nr, fill, cnt, idx, card->send.idx); in fill_mem() 201 val = card->send.start[idx]; in fill_mem() 204 card->send.start[idx++] = val; in fill_mem() 205 if (idx >= card->send.size) in fill_mem() 206 idx = 0; in fill_mem() 239 bc->idx = 0; in mode_tiger() 253 bc->idx = 0; in mode_tiger() [all …]
|
/linux-4.1.27/drivers/clk/mxs/ |
D | clk-ref.c | 33 u8 idx; member 42 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + CLR); in clk_ref_enable() 51 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + SET); in clk_ref_disable() 59 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; in clk_ref_recalc_rate() 97 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate() 129 void __iomem *reg, u8 idx) in mxs_clk_ref() argument 146 ref->idx = idx; in mxs_clk_ref()
|
/linux-4.1.27/net/netlabel/ |
D | netlabel_kapi.c | 483 u32 idx; in netlbl_catmap_walk() local 492 idx = offset / NETLBL_CATMAP_MAPSIZE; in netlbl_catmap_walk() 495 idx = 0; in netlbl_catmap_walk() 498 bitmap = iter->bitmap[idx] >> bit; in netlbl_catmap_walk() 507 (NETLBL_CATMAP_MAPSIZE * idx) + bit; in netlbl_catmap_walk() 509 if (++idx >= NETLBL_CATMAP_MAPCNT) { in netlbl_catmap_walk() 512 idx = 0; in netlbl_catmap_walk() 516 bitmap = iter->bitmap[idx]; in netlbl_catmap_walk() 538 u32 idx; in netlbl_catmap_walkrng() local 548 idx = offset / NETLBL_CATMAP_MAPSIZE; in netlbl_catmap_walkrng() [all …]
|
/linux-4.1.27/tools/perf/tests/ |
D | evsel-roundtrip-name.c | 10 int type, op, err = 0, ret = 0, i, idx; in perf_evsel__roundtrip_cache_name_test() local 33 idx = 0; in perf_evsel__roundtrip_cache_name_test() 45 if (evsel->idx != idx) in perf_evsel__roundtrip_cache_name_test() 48 ++idx; in perf_evsel__roundtrip_cache_name_test() 84 if (strcmp(perf_evsel__name(evsel), names[evsel->idx])) { in __perf_evsel__name_array_test() 86 pr_debug("%s != %s\n", perf_evsel__name(evsel), names[evsel->idx]); in __perf_evsel__name_array_test()
|
/linux-4.1.27/arch/x86/tools/ |
D | gen-insn-attr-x86.awk | 260 idx = "0x" substr($1, 1, index($1,":") - 1) 261 if (idx in table) 262 semantic_error("Redefine " idx " in " tname) 275 table[idx] = "INAT_MAKE_ESCAPE(" escape[ref] ")" 337 lptable1[idx] = add_flags(lptable1[idx],flags) 341 lptable2[idx] = add_flags(lptable2[idx],flags) 345 lptable3[idx] = add_flags(lptable3[idx],flags) 349 table[idx] = add_flags(table[idx],flags) 353 table[idx] = add_flags(table[idx],variant)
|
/linux-4.1.27/drivers/w1/slaves/ |
D | w1_ds2433.c | 215 int addr, len, idx; in eeprom_write() local 229 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { in eeprom_write() 230 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { in eeprom_write() 240 idx = 0; in eeprom_write() 241 while (idx < count) { in eeprom_write() 242 addr = off + idx; in eeprom_write() 244 if (len > (count - idx)) in eeprom_write() 245 len = count - idx; in eeprom_write() 247 if (w1_f23_write(sl, addr, len, &buf[idx]) < 0) { in eeprom_write() 251 idx += len; in eeprom_write()
|
/linux-4.1.27/sound/pci/asihpi/ |
D | hpioctl.c | 340 int idx, nm, low_latency_mode = 0, irq_supported = 0; in asihpi_adapter_probe() local 372 for (idx = 0; idx < nm; idx++) { in asihpi_adapter_probe() 373 HPI_DEBUG_LOG(INFO, "resource %d %pR\n", idx, in asihpi_adapter_probe() 374 &pci_dev->resource[idx]); in asihpi_adapter_probe() 376 if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { in asihpi_adapter_probe() 377 memlen = pci_resource_len(pci_dev, idx); in asihpi_adapter_probe() 378 pci.ap_mem_base[idx] = in asihpi_adapter_probe() 379 ioremap(pci_resource_start(pci_dev, idx), in asihpi_adapter_probe() 381 if (!pci.ap_mem_base[idx]) { in asihpi_adapter_probe() 502 for (idx = 0; idx < HPI_MAX_ADAPTER_MEM_SPACES; idx++) { in asihpi_adapter_probe() [all …]
|
/linux-4.1.27/sound/pci/mixart/ |
D | mixart_mixer.c | 723 int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int idx) in mixart_update_playback_stream_level() argument 734 set_level.stream_level.desc.stream_idx = idx; in mixart_update_playback_stream_level() 738 idx += MIXART_PLAYBACK_STREAMS; in mixart_update_playback_stream_level() 750 if(chip->digital_playback_active[idx][i]) in mixart_update_playback_stream_level() 751 volume[i] = chip->digital_playback_volume[idx][i]; in mixart_update_playback_stream_level() 777 int err, i, idx; in mixart_update_capture_stream_level() local 784 idx = 1; in mixart_update_capture_stream_level() 787 idx = 0; in mixart_update_capture_stream_level() 802 set_level.level[i].digital_level = mixart_digital_level[chip->digital_capture_volume[idx][i]]; in mixart_update_capture_stream_level() 837 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_get() local [all …]
|