Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 780) sorted by relevance

12345678910>>...32

/arch/m68k/sun3x/
Ddvma.c44 #define dvma_entry_paddr(index) (iommu_pte[index] & IOMMU_ADDR_MASK) argument
45 #define dvma_entry_vaddr(index,paddr) ((index << DVMA_PAGE_SHIFT) | \ argument
48 #define dvma_entry_set(index,addr) (iommu_pte[index] = \
52 #define dvma_entry_set(index,addr) (iommu_pte[index] = \ argument
56 #define dvma_entry_clr(index) (iommu_pte[index] = IOMMU_DT_INVALID) argument
68 unsigned long index; in dvma_print() local
70 index = dvma_addr >> DVMA_PAGE_SHIFT; in dvma_print()
72 printk("idx %lx dvma_addr %08lx paddr %08lx\n", index, dvma_addr, in dvma_print()
73 dvma_entry_paddr(index)); in dvma_print()
154 unsigned long end, index; in dvma_map_iommu() local
[all …]
/arch/mips/cavium-octeon/executive/
Dcvmx-helper-sgmii.c45 void __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block);
46 void __cvmx_interrupt_pcsxx_int_en_reg_enable(int index);
56 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) in __cvmx_helper_sgmii_hardware_init_one_time() argument
64 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
66 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); in __cvmx_helper_sgmii_hardware_init_one_time()
74 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
76 cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
86 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
102 cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
107 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
[all …]
Dcvmx-helper-rgmii.c106 int index = port & 0xf; in cvmx_helper_rgmii_internal_loopback() local
114 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in cvmx_helper_rgmii_internal_loopback()
115 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in cvmx_helper_rgmii_internal_loopback()
116 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in cvmx_helper_rgmii_internal_loopback()
117 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
119 cvmx_write_csr(CVMX_ASXX_PRT_LOOP(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
121 cvmx_write_csr(CVMX_ASXX_TX_PRT_EN(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
123 cvmx_write_csr(CVMX_ASXX_RX_PRT_EN(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
125 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
273 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_link_get() local
[all …]
/arch/m68k/coldfire/
Dintc-5272.c40 unsigned char index; member
45 /*MCF_IRQ_SPURIOUS*/ { .icr = 0, .index = 0, .ack = 0, },
46 /*MCF_IRQ_EINT1*/ { .icr = MCFSIM_ICR1, .index = 28, .ack = 1, },
47 /*MCF_IRQ_EINT2*/ { .icr = MCFSIM_ICR1, .index = 24, .ack = 1, },
48 /*MCF_IRQ_EINT3*/ { .icr = MCFSIM_ICR1, .index = 20, .ack = 1, },
49 /*MCF_IRQ_EINT4*/ { .icr = MCFSIM_ICR1, .index = 16, .ack = 1, },
50 /*MCF_IRQ_TIMER1*/ { .icr = MCFSIM_ICR1, .index = 12, .ack = 0, },
51 /*MCF_IRQ_TIMER2*/ { .icr = MCFSIM_ICR1, .index = 8, .ack = 0, },
52 /*MCF_IRQ_TIMER3*/ { .icr = MCFSIM_ICR1, .index = 4, .ack = 0, },
53 /*MCF_IRQ_TIMER4*/ { .icr = MCFSIM_ICR1, .index = 0, .ack = 0, },
[all …]
/arch/powerpc/xmon/
Dspu-dis.c57 const struct spu_opcode *index; in get_index_for_opcode() local
65 if ((index = spu_disassemble_table[opcode & 0x780]) != 0 in get_index_for_opcode()
66 && index->insn_type == RRR) in get_index_for_opcode()
67 return index; in get_index_for_opcode()
69 if ((index = spu_disassemble_table[opcode & 0x7f0]) != 0 in get_index_for_opcode()
70 && (index->insn_type == RI18 || index->insn_type == LBT)) in get_index_for_opcode()
71 return index; in get_index_for_opcode()
73 if ((index = spu_disassemble_table[opcode & 0x7f8]) != 0 in get_index_for_opcode()
74 && index->insn_type == RI10) in get_index_for_opcode()
75 return index; in get_index_for_opcode()
[all …]
/arch/ia64/include/uapi/asm/
Dintel_intrin.h81 #define __ia64_set_dbr(index, val) \ argument
82 __setIndReg(_IA64_REG_INDR_DBR, index, val)
83 #define ia64_set_ibr(index, val) \ argument
84 __setIndReg(_IA64_REG_INDR_IBR, index, val)
85 #define ia64_set_pkr(index, val) \ argument
86 __setIndReg(_IA64_REG_INDR_PKR, index, val)
87 #define ia64_set_pmc(index, val) \ argument
88 __setIndReg(_IA64_REG_INDR_PMC, index, val)
89 #define ia64_set_pmd(index, val) \ argument
90 __setIndReg(_IA64_REG_INDR_PMD, index, val)
[all …]
Dgcc_intrin.h424 #define __ia64_set_dbr(index, val) \ argument
425 asm volatile ("mov dbr[%0]=%1" :: "r"(index), "r"(val) : "memory")
427 #define ia64_set_ibr(index, val) \ argument
428 asm volatile ("mov ibr[%0]=%1" :: "r"(index), "r"(val) : "memory")
430 #define ia64_set_pkr(index, val) \ argument
431 asm volatile ("mov pkr[%0]=%1" :: "r"(index), "r"(val) : "memory")
433 #define ia64_set_pmc(index, val) \ argument
434 asm volatile ("mov pmc[%0]=%1" :: "r"(index), "r"(val) : "memory")
436 #define ia64_set_pmd(index, val) \ argument
437 asm volatile ("mov pmd[%0]=%1" :: "r"(index), "r"(val) : "memory")
[all …]
/arch/s390/crypto/
Dsha_common.c25 unsigned int index; in s390_sha_update() local
29 index = ctx->count & (bsize - 1); in s390_sha_update()
32 if ((index + len) < bsize) in s390_sha_update()
36 if (index) { in s390_sha_update()
37 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update()
41 data += bsize - index; in s390_sha_update()
42 len -= bsize - index; in s390_sha_update()
43 index = 0; in s390_sha_update()
57 memcpy(ctx->buf + index , data, len); in s390_sha_update()
68 unsigned int index, end, plen; in s390_sha_final() local
[all …]
/arch/powerpc/kernel/
Dlegacy_serial.c80 int index; in add_legacy_port() local
97 index = want_index; in add_legacy_port()
99 index = legacy_serial_count; in add_legacy_port()
105 if (index >= MAX_LEGACY_SERIAL_PORTS) in add_legacy_port()
107 if (index >= legacy_serial_count) in add_legacy_port()
108 legacy_serial_count = index + 1; in add_legacy_port()
111 if (legacy_serial_infos[index].np != NULL) { in add_legacy_port()
115 index, legacy_serial_count); in add_legacy_port()
117 legacy_serial_ports[index]; in add_legacy_port()
119 legacy_serial_infos[index]; in add_legacy_port()
[all …]
Dptrace32.c86 int index; in compat_arch_ptrace() local
91 index = (unsigned long) addr >> 2; in compat_arch_ptrace()
92 if ((addr & 3) || (index > PT_FPSCR32)) in compat_arch_ptrace()
96 if (index < PT_FPR0) { in compat_arch_ptrace()
97 ret = ptrace_get_reg(child, index, &tmp); in compat_arch_ptrace()
108 [FPRINDEX(index)]; in compat_arch_ptrace()
123 u32 index; in compat_arch_ptrace() local
131 index = (u64)addr >> 2; in compat_arch_ptrace()
132 numReg = index / 2; in compat_arch_ptrace()
134 if (index % 2) in compat_arch_ptrace()
[all …]
/arch/ia64/sn/pci/pcibr/
Dpcibr_ate.c24 int index; in mark_ate() local
27 for (index = start; length < number; index++, length++) in mark_ate()
28 ate[index] = value; in mark_ate()
39 int index; in find_free_ate() local
42 for (index = start; index < ate_resource->num_ate;) { in find_free_ate()
43 if (!ate[index]) { in find_free_ate()
47 start_free = index; /* Found start free ate */ in find_free_ate()
53 index = i + 1; in find_free_ate()
60 index++; /* Try next ate */ in find_free_ate()
160 void pcibr_ate_free(struct pcibus_info *pcibus_info, int index) in pcibr_ate_free() argument
[all …]
/arch/alpha/kernel/
Dcore_tsunami.c179 tsunami_pchip *pchip = hose->index ? TSUNAMI_pchip1 : TSUNAMI_pchip0; in tsunami_pci_tbi()
246 tsunami_init_one_pchip(tsunami_pchip *pchip, int index) in tsunami_init_one_pchip() argument
254 if (index == 0) in tsunami_init_one_pchip()
266 = (TSUNAMI_MEM(index) & 0xffffffffffL) | 0x80000000000L; in tsunami_init_one_pchip()
268 = (TSUNAMI_IO(index) & 0xffffffffffL) | 0x80000000000L; in tsunami_init_one_pchip()
270 hose->config_space_base = TSUNAMI_CONF(index); in tsunami_init_one_pchip()
271 hose->index = index; in tsunami_init_one_pchip()
273 hose->io_space->start = TSUNAMI_IO(index) - TSUNAMI_IO_BIAS; in tsunami_init_one_pchip()
275 hose->io_space->name = pci_io_names[index]; in tsunami_init_one_pchip()
278 hose->mem_space->start = TSUNAMI_MEM(index) - TSUNAMI_MEM_BIAS; in tsunami_init_one_pchip()
[all …]
/arch/parisc/math-emu/
Ddecode_exc.c69 #define Excp_type(index) Exceptiontype(Fpu_register[index]) argument
70 #define Excp_instr(index) Instructionfield(Fpu_register[index]) argument
71 #define Clear_excp_register(index) Allexception(Fpu_register[index]) = 0 argument
76 #define Fpu_sgl(index) Fpu_register[index*2] argument
78 #define Fpu_dblp1(index) Fpu_register[index*2] argument
79 #define Fpu_dblp2(index) Fpu_register[(index*2)+1] argument
81 #define Fpu_quadp1(index) Fpu_register[index*2] argument
82 #define Fpu_quadp2(index) Fpu_register[(index*2)+1] argument
83 #define Fpu_quadp3(index) Fpu_register[(index*2)+2] argument
84 #define Fpu_quadp4(index) Fpu_register[(index*2)+3] argument
/arch/parisc/kernel/
Dftrace.c27 int index; in push_return_trace() local
38 index = ++current->curr_ret_stack; in push_return_trace()
40 current->ret_stack[index].ret = ret; in push_return_trace()
41 current->ret_stack[index].func = func; in push_return_trace()
42 current->ret_stack[index].calltime = time; in push_return_trace()
43 *depth = index; in push_return_trace()
51 int index; in pop_return_trace() local
53 index = current->curr_ret_stack; in pop_return_trace()
55 if (unlikely(index < 0)) { in pop_return_trace()
64 *ret = current->ret_stack[index].ret; in pop_return_trace()
[all …]
/arch/s390/kernel/
Dcache.c29 struct cache_index_dir *index; member
91 int index = 0; in show_cacheinfo() local
94 seq_printf(m, "cache%-11d: ", index); in show_cacheinfo()
102 index++; in show_cacheinfo()
205 struct cache_index_dir *index; in cache_index_release() local
207 index = kobj_to_cache_index_dir(kobj); in cache_index_release()
208 kfree(index); in cache_index_release()
225 struct cache_index_dir *index; \
227 index = kobj_to_cache_index_dir(kobj); \
233 DEFINE_CACHE_ATTR(size, "%luK\n", index->cache->size >> 10);
[all …]
Dirq.c121 int index = *(loff_t *) v; in show_interrupts() local
125 if (index == 0) { in show_interrupts()
132 if (index < NR_IRQS) { in show_interrupts()
133 if (index >= NR_IRQS_BASE) in show_interrupts()
136 index--; in show_interrupts()
137 seq_printf(p, "%s: ", irqclass_main_desc[index].name); in show_interrupts()
138 irq = irqclass_main_desc[index].irq; in show_interrupts()
144 for (index = 0; index < NR_ARCH_IRQS; index++) { in show_interrupts()
145 seq_printf(p, "%s: ", irqclass_sub_desc[index].name); in show_interrupts()
146 irq = irqclass_sub_desc[index].irq; in show_interrupts()
[all …]
/arch/mips/fw/lib/
Dcmdline.c60 int i, yamon, index = 0; in fw_getenv() local
62 yamon = (strchr(fw_envp(index), '=') == NULL); in fw_getenv()
65 while (fw_envp(index)) { in fw_getenv()
66 if (strncmp(envname, fw_envp(index), i) == 0) { in fw_getenv()
68 result = fw_envp(index + 1); in fw_getenv()
70 } else if (fw_envp(index)[i] == '=') { in fw_getenv() local
71 result = (fw_envp(index + 1) + i); in fw_getenv()
78 index += 2; in fw_getenv()
80 index += 1; in fw_getenv()
/arch/powerpc/sysdev/
Dmmio_nvram.c37 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index) in mmio_nvram_read() argument
41 if (*index >= mmio_nvram_len) in mmio_nvram_read()
43 if (*index + count > mmio_nvram_len) in mmio_nvram_read()
44 count = mmio_nvram_len - *index; in mmio_nvram_read()
48 memcpy_fromio(buf, mmio_nvram_start + *index, count); in mmio_nvram_read()
52 *index += count; in mmio_nvram_read()
73 static ssize_t mmio_nvram_write(char *buf, size_t count, loff_t *index) in mmio_nvram_write() argument
77 if (*index >= mmio_nvram_len) in mmio_nvram_write()
79 if (*index + count > mmio_nvram_len) in mmio_nvram_write()
80 count = mmio_nvram_len - *index; in mmio_nvram_write()
[all …]
/arch/powerpc/mm/
Dmmu_context_hash64.c35 int index; in __init_new_context() local
43 err = ida_get_new_above(&mmu_context_ida, 1, &index); in __init_new_context()
51 if (index > MAX_USER_CONTEXT) { in __init_new_context()
53 ida_remove(&mmu_context_ida, index); in __init_new_context()
58 return index; in __init_new_context()
64 int index; in init_new_context() local
66 index = __init_new_context(); in init_new_context()
67 if (index < 0) in init_new_context()
68 return index; in init_new_context()
77 mm->context.id = index; in init_new_context()
[all …]
Dfsl_booke_mmu.c110 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
122 TLBCAM[index].MAS0 = MAS0_TLBSEL(1) | MAS0_ESEL(index) | MAS0_NV(index+1); in settlbcam()
123 TLBCAM[index].MAS1 = MAS1_VALID | MAS1_IPROT | MAS1_TSIZE(tsize) | MAS1_TID(pid); in settlbcam()
124 TLBCAM[index].MAS2 = virt & PAGE_MASK; in settlbcam()
126 TLBCAM[index].MAS2 |= (flags & _PAGE_WRITETHRU) ? MAS2_W : 0; in settlbcam()
127 TLBCAM[index].MAS2 |= (flags & _PAGE_NO_CACHE) ? MAS2_I : 0; in settlbcam()
128 TLBCAM[index].MAS2 |= (flags & _PAGE_COHERENT) ? MAS2_M : 0; in settlbcam()
129 TLBCAM[index].MAS2 |= (flags & _PAGE_GUARDED) ? MAS2_G : 0; in settlbcam()
130 TLBCAM[index].MAS2 |= (flags & _PAGE_ENDIAN) ? MAS2_E : 0; in settlbcam()
132 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SX | MAS3_SR; in settlbcam()
[all …]
/arch/mips/include/asm/octeon/
Dcvmx-cmd-queue.h142 uint64_t index:13; member
356 if (likely(qptr->index + cmd_count < qptr->pool_size_m1)) { in cvmx_cmd_queue_write()
360 ptr += qptr->index; in cvmx_cmd_queue_write()
361 qptr->index += cmd_count; in cvmx_cmd_queue_write()
386 count = qptr->pool_size_m1 - qptr->index; in cvmx_cmd_queue_write()
387 ptr += qptr->index; in cvmx_cmd_queue_write()
398 qptr->index = cmd_count; in cvmx_cmd_queue_write()
454 if (likely(qptr->index + 2 < qptr->pool_size_m1)) { in cvmx_cmd_queue_write2()
458 ptr += qptr->index; in cvmx_cmd_queue_write2()
459 qptr->index += 2; in cvmx_cmd_queue_write2()
[all …]
/arch/arm/mach-shmobile/
Dsetup-r8a7791.c89 #define __R8A7791_SCIF(scif_type, index, baseaddr, irq) \ argument
90 static struct plat_sci_port scif##index##_platform_data = { \
96 static struct resource scif##index##_resources[] = { \
101 #define R8A7791_SCIF(index, baseaddr, irq) \ argument
102 __R8A7791_SCIF(PORT_SCIF, index, baseaddr, irq)
104 #define R8A7791_SCIFA(index, baseaddr, irq) \ argument
105 __R8A7791_SCIF(PORT_SCIFA, index, baseaddr, irq)
107 #define R8A7791_SCIFB(index, baseaddr, irq) \ argument
108 __R8A7791_SCIF(PORT_SCIFB, index, baseaddr, irq)
126 #define r8a7791_register_scif(index) \ argument
[all …]
/arch/powerpc/platforms/powernv/
Dopal-nvram.c28 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) in opal_nvram_read() argument
33 if (*index >= nvram_size) in opal_nvram_read()
35 off = *index; in opal_nvram_read()
41 *index += count; in opal_nvram_read()
45 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) in opal_nvram_write() argument
50 if (*index >= nvram_size) in opal_nvram_write()
52 off = *index; in opal_nvram_write()
61 *index += count; in opal_nvram_write()
/arch/arm/mach-tegra/
Dcpuidle-tegra30.c40 int index);
70 int index) in tegra30_cpu_cluster_power_down() argument
92 int index) in tegra30_cpu_core_power_down() argument
107 int index) in tegra30_cpu_core_power_down() argument
115 int index) in tegra30_idle_lp2() argument
128 index); in tegra30_idle_lp2()
132 entered_lp2 = tegra30_cpu_core_power_down(dev, drv, index); in tegra30_idle_lp2()
142 return (entered_lp2) ? index : 0; in tegra30_idle_lp2()
/arch/mips/kernel/
Drtlx.c89 int rtlx_open(int index, int can_sleep) in rtlx_open() argument
96 if (index >= RTLX_CHANNELS) { in rtlx_open()
101 if (atomic_inc_return(&channel_wqs[index].in_open) > 1) { in rtlx_open()
102 pr_debug("rtlx_open channel %d already opened\n", index); in rtlx_open()
112 channel_wqs[index].lx_queue, in rtlx_open()
130 &channel_wqs[index].lx_queue, in rtlx_open()
142 finish_wait(&channel_wqs[index].lx_queue, in rtlx_open()
163 chan = &rtlx->channel[index]; in rtlx_open()
173 atomic_dec(&channel_wqs[index].in_open); in rtlx_open()
180 int rtlx_release(int index) in rtlx_release() argument
[all …]

12345678910>>...32