Home
last modified time | relevance | path

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

12345678910>>...32

/linux-2.4.37.9/arch/m68k/sun3x/
Ddvma.c45 #define dvma_entry_paddr(index) (iommu_pte[index] & IOMMU_ADDR_MASK) argument
46 #define dvma_entry_vaddr(index,paddr) ((index << DVMA_PAGE_SHIFT) | \ argument
49 #define dvma_entry_set(index,addr) (iommu_pte[index] = \
53 #define dvma_entry_set(index,addr) (iommu_pte[index] = \ argument
57 #define dvma_entry_clr(index) (iommu_pte[index] = IOMMU_DT_INVALID) argument
69 unsigned long index; in dvma_print() local
71 index = dvma_addr >> DVMA_PAGE_SHIFT; in dvma_print()
73 printk("idx %lx dvma_addr %08lx paddr %08lx\n", index, dvma_addr, in dvma_print()
74 dvma_entry_paddr(index)); in dvma_print()
154 unsigned long end, index; in dvma_map_iommu() local
[all …]
/linux-2.4.37.9/drivers/sound/emu10k1/
Demuadxmg.c40 u16 index = 0; in emu10k1_addxmgr_alloc() local
49 while (index < (MAXPAGES - 1)) { in emu10k1_addxmgr_alloc()
50 if (pagetable[index] & 0x8000) { in emu10k1_addxmgr_alloc()
52 index += (pagetable[index] & 0x7fff); in emu10k1_addxmgr_alloc()
55 if (pagetable[index] >= numpages) { in emu10k1_addxmgr_alloc()
61 if (pagetable[index] > numpages) in emu10k1_addxmgr_alloc()
62 pagetable[index + numpages] = pagetable[index] - numpages; in emu10k1_addxmgr_alloc()
64 pagetable[index] = (numpages | 0x8000); /* Mark block as used */ in emu10k1_addxmgr_alloc()
68 return index; in emu10k1_addxmgr_alloc()
71 index += pagetable[index]; in emu10k1_addxmgr_alloc()
[all …]
/linux-2.4.37.9/drivers/acpi/dispatcher/
Ddsmthdat.c131 u32 index; in acpi_ds_method_data_delete_all() local
139 for (index = 0; index < ACPI_METHOD_NUM_LOCALS; index++) { in acpi_ds_method_data_delete_all()
140 if (walk_state->local_variables[index].object) { in acpi_ds_method_data_delete_all()
142 index, walk_state->local_variables[index].object)); in acpi_ds_method_data_delete_all()
146 acpi_ns_detach_object (&walk_state->local_variables[index]); in acpi_ds_method_data_delete_all()
152 for (index = 0; index < ACPI_METHOD_NUM_ARGS; index++) { in acpi_ds_method_data_delete_all()
153 if (walk_state->arguments[index].object) { in acpi_ds_method_data_delete_all()
155 index, walk_state->arguments[index].object)); in acpi_ds_method_data_delete_all()
159 acpi_ns_detach_object (&walk_state->arguments[index]); in acpi_ds_method_data_delete_all()
190 u32 index = 0; in acpi_ds_method_data_init_args() local
[all …]
/linux-2.4.37.9/drivers/ide/pci/
Dcmd640.c397 static void __init check_prefetch (unsigned int index) in check_prefetch() argument
399 ide_drive_t *drive = cmd_drives[index]; in check_prefetch()
400 u8 b = get_cmd640_reg(prefetch_regs[index]); in check_prefetch()
402 if (b & prefetch_masks[index]) { /* is prefetch off? */ in check_prefetch()
444 static void set_prefetch_mode (unsigned int index, int mode) in set_prefetch_mode() argument
446 ide_drive_t *drive = cmd_drives[index]; in set_prefetch_mode()
447 int reg = prefetch_regs[index]; in set_prefetch_mode()
459 b &= ~prefetch_masks[index]; /* enable prefetch */ in set_prefetch_mode()
464 b |= prefetch_masks[index]; /* disable prefetch */ in set_prefetch_mode()
473 static void display_clocks (unsigned int index) in display_clocks() argument
[all …]
/linux-2.4.37.9/include/linux/
Dscx200_gpio.h3 u32 scx200_gpio_configure(int index, u32 set, u32 clear);
4 void scx200_gpio_dump(unsigned index);
13 #define __SCx200_GPIO_BANK unsigned bank = index>>5
16 #define __SCx200_GPIO_INDEX index &= 31
22 static inline int scx200_gpio_get(int index) { in scx200_gpio_get() argument
27 return (inl(ioaddr) & (1<<index)) ? 1 : 0; in scx200_gpio_get()
34 static inline int scx200_gpio_current(int index) { in scx200_gpio_current() argument
38 return (scx200_gpio_shadow[bank] & (1<<index)) ? 1 : 0; in scx200_gpio_current()
43 static inline void scx200_gpio_set_high(int index) { in scx200_gpio_set_high() argument
48 set_bit(index, shadow); in scx200_gpio_set_high()
[all …]
Dpagemap.h62 static inline unsigned long _page_hashfn(struct address_space * mapping, unsigned long index) in _page_hashfn() argument
66 return s(i+index) & (PAGE_HASH_SIZE-1); in _page_hashfn()
71 #define page_hash(mapping,index) (page_hash_table+_page_hashfn(mapping,index)) argument
74 unsigned long index, struct page **hash);
75 #define find_get_page(mapping, index) \ argument
76 __find_get_page(mapping, index, page_hash(mapping, index))
78 unsigned long index, struct page **hash);
80 unsigned long index, unsigned int gfp_mask);
84 #define find_lock_page(mapping, index) \ argument
85 __find_lock_page(mapping, index, page_hash(mapping, index))
[all …]
/linux-2.4.37.9/fs/xfs/support/
Dktrace.c175 int index; in ktrace_enter() local
184 index = ktp->kt_index; in ktrace_enter()
189 if (!ktp->kt_rollover && index == ktp->kt_nentries - 1) in ktrace_enter()
192 ASSERT((index >= 0) && (index < ktp->kt_nentries)); in ktrace_enter()
194 ktep = &(ktp->kt_entries[index]); in ktrace_enter()
246 int index; in ktrace_first() local
250 index = ktp->kt_index; in ktrace_first()
252 index = 0; in ktrace_first()
254 ktsp->ks_start = index; in ktrace_first()
255 ktep = &(ktp->kt_entries[index]); in ktrace_first()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dnsp32_io.h13 unsigned int index, in nsp32_write1() argument
16 outb(val, (base + index)); in nsp32_write1()
20 unsigned int index) in nsp32_read1() argument
22 return inb(base + index); in nsp32_read1()
26 unsigned int index, in nsp32_write2() argument
29 outw(val, (base + index)); in nsp32_write2()
33 unsigned int index) in nsp32_read2() argument
35 return inw(base + index); in nsp32_read2()
39 unsigned int index, in nsp32_write4() argument
42 outl(val, (base + index)); in nsp32_write4()
[all …]
/linux-2.4.37.9/arch/s390/kernel/
Ds390_ext.c27 int index; in register_external_interrupt() local
34 index = code & 0xff; in register_external_interrupt()
35 p->next = ext_int_hash[index]; in register_external_interrupt()
36 ext_int_hash[index] = p; in register_external_interrupt()
42 int index; in register_early_external_interrupt() local
48 index = code & 0xff; in register_early_external_interrupt()
49 p->next = ext_int_hash[index]; in register_early_external_interrupt()
50 ext_int_hash[index] = p; in register_early_external_interrupt()
56 int index; in unregister_external_interrupt() local
58 index = code & 0xff; in unregister_external_interrupt()
[all …]
/linux-2.4.37.9/arch/s390x/kernel/
Ds390_ext.c27 int index; in register_external_interrupt() local
34 index = code & 0xff; in register_external_interrupt()
35 p->next = ext_int_hash[index]; in register_external_interrupt()
36 ext_int_hash[index] = p; in register_external_interrupt()
42 int index; in register_early_external_interrupt() local
48 index = code & 0xff; in register_early_external_interrupt()
49 p->next = ext_int_hash[index]; in register_early_external_interrupt()
50 ext_int_hash[index] = p; in register_early_external_interrupt()
56 int index; in unregister_external_interrupt() local
58 index = code & 0xff; in unregister_external_interrupt()
[all …]
/linux-2.4.37.9/arch/alpha/kernel/
Dcore_tsunami.c213 tsunami_pchip *pchip = hose->index ? TSUNAMI_pchip1 : TSUNAMI_pchip0; in tsunami_pci_tbi()
282 tsunami_init_one_pchip(tsunami_pchip *pchip, int index) in tsunami_init_one_pchip() argument
290 if (index == 0) in tsunami_init_one_pchip()
302 = (TSUNAMI_MEM(index) & 0xffffffffff) | 0x80000000000; in tsunami_init_one_pchip()
304 = (TSUNAMI_IO(index) & 0xffffffffff) | 0x80000000000; in tsunami_init_one_pchip()
306 hose->config_space_base = TSUNAMI_CONF(index); in tsunami_init_one_pchip()
307 hose->index = index; in tsunami_init_one_pchip()
309 hose->io_space->start = TSUNAMI_IO(index) - TSUNAMI_IO_BIAS; in tsunami_init_one_pchip()
311 hose->io_space->name = pci_io_names[index]; in tsunami_init_one_pchip()
314 hose->mem_space->start = TSUNAMI_MEM(index) - TSUNAMI_MEM_BIAS; in tsunami_init_one_pchip()
[all …]
Dcore_titan.c236 (hose->index & 1) ? TITAN_pachip1 : TITAN_pachip0; in titan_pci_tbi()
243 if (hose->index & 2) in titan_pci_tbi()
278 titan_init_one_pachip_port(titan_pachip_port *port, int index) in titan_init_one_pachip_port() argument
283 if (index == 0) in titan_init_one_pachip_port()
298 = (TITAN_MEM(index) & 0xffffffffff) | 0x80000000000; in titan_init_one_pachip_port()
300 = (TITAN_IO(index) & 0xffffffffff) | 0x80000000000; in titan_init_one_pachip_port()
302 hose->config_space_base = TITAN_CONF(index); in titan_init_one_pachip_port()
303 hose->index = index; in titan_init_one_pachip_port()
305 hose->io_space->start = TITAN_IO(index) - TITAN_IO_BIAS; in titan_init_one_pachip_port()
307 hose->io_space->name = pci_io_names[index]; in titan_init_one_pachip_port()
[all …]
/linux-2.4.37.9/drivers/acpi/resources/
Drsirq.c84 u8 index; in acpi_rs_irq_resource() local
110 for (i = 0, index = 0; index < 16; index++) { in acpi_rs_irq_resource()
111 if ((temp16 >> index) & 0x01) { in acpi_rs_irq_resource()
112 output_struct->data.irq.interrupts[i] = index; in acpi_rs_irq_resource()
212 u8 index; in acpi_rs_irq_stream() local
240 for(index = 0; in acpi_rs_irq_stream()
241 index < linked_list->data.irq.number_of_interrupts; in acpi_rs_irq_stream()
242 index++) { in acpi_rs_irq_stream()
243 temp8 = (u8) linked_list->data.irq.interrupts[index]; in acpi_rs_irq_stream()
311 u8 index; in acpi_rs_extended_irq_resource() local
[all …]
Drsdump.c71 u8 index = 0; in acpi_rs_dump_irq() local
90 for (index = 0; index < irq_data->number_of_interrupts; index++) { in acpi_rs_dump_irq()
91 acpi_os_printf ("%X ", irq_data->interrupts[index]); in acpi_rs_dump_irq()
116 u8 index = 0; in acpi_rs_dump_dma() local
170 for (index = 0; index < dma_data->number_of_channels; index++) { in acpi_rs_dump_dma()
171 acpi_os_printf ("%X ", dma_data->channels[index]); in acpi_rs_dump_dma()
337 u16 index = 0; in acpi_rs_dump_vendor_specific() local
347 for (index = 0; index < vendor_data->length; index++) { in acpi_rs_dump_vendor_specific()
349 index, vendor_data->reserved[index]); in acpi_rs_dump_vendor_specific()
622 if (0xFF != address16_data->resource_source.index) { in acpi_rs_dump_address16()
[all …]
/linux-2.4.37.9/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
/linux-2.4.37.9/arch/ia64/lib/
Dswiotlb.c131 unsigned int nslots, stride, index, wrap; in map_single() local
153 wrap = index = ALIGN(io_tlb_index, stride); in map_single()
155 if (index >= io_tlb_nslabs) in map_single()
156 wrap = index = 0; in map_single()
164 if (io_tlb_list[index] >= nslots) { in map_single()
167 for (i = index; i < index + nslots; i++) in map_single()
169 for (i = index - 1; (OFFSET(i, IO_TLB_SEGSIZE) != IO_TLB_SEGSIZE -1) in map_single()
172 dma_addr = io_tlb_start + (index << IO_TLB_SHIFT); in map_single()
177 io_tlb_index = ((index + nslots) < io_tlb_nslabs in map_single()
178 ? (index + nslots) : 0); in map_single()
[all …]
/linux-2.4.37.9/include/asm-sh/
Dide.h62 static __inline__ ide_ioreg_t ide_default_io_base_hp600(int index) in ide_default_io_base_hp600() argument
64 switch (index) { in ide_default_io_base_hp600()
74 static __inline__ ide_ioreg_t ide_default_io_base(int index) in ide_default_io_base() argument
77 return ide_default_io_base_hp600(index); in ide_default_io_base()
79 switch (index) { in ide_default_io_base()
112 int index; in ide_init_default_hwifs() local
114 for(index = 0; index < MAX_HWIFS; index++) { in ide_init_default_hwifs()
116 ide_init_hwif_ports(&hw, ide_default_io_base(index), 0, NULL); in ide_init_default_hwifs()
117 hw.irq = ide_default_irq(ide_default_io_base(index)); in ide_init_default_hwifs()
/linux-2.4.37.9/fs/jfs/
Djfs_dtree.c115 s16 index; member
183 static void dtInsertEntry(dtpage_t * p, int index, struct component_name * key,
247 static struct dir_table_slot *find_index(struct inode *ip, u32 index, in find_index() argument
257 if (index < 2) { in find_index()
259 jfs_warn("find_entry called with index = %d", index); in find_index()
265 if (index >= jfs_ip->next_index) { in find_index()
275 slot = &jfs_ip->i_dirtable[index - 2]; in find_index()
277 offset = (index - 2) * sizeof(struct dir_table_slot); in find_index()
303 u32 index) in lock_index() argument
312 if (llck->index >= llck->maxcnt) in lock_index()
[all …]
Djfs_xtree.c89 s16 index; member
159 int index; in xtLookup() local
194 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
206 xad = &p->xad[index]; in xtLookup()
257 int index; in xtLookupList() local
297 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookupList()
300 if (index == le16_to_cpu(p->header.nextindex)) { in xtLookupList()
314 index = XTENTRYSTART; in xtLookupList()
317 xad = &p->xad[index]; in xtLookupList()
383 if (index == le16_to_cpu(p->header.nextindex) - 1) { in xtLookupList()
[all …]
/linux-2.4.37.9/drivers/hotplug/
Dcpqphp_proc.c47 int index; in read_ctrl() local
58 index = 11; in read_ctrl()
60 while (res && index--) { in read_ctrl()
65 index = 11; in read_ctrl()
67 while (res && index--) { in read_ctrl()
72 index = 11; in read_ctrl()
74 while (res && index--) { in read_ctrl()
79 index = 11; in read_ctrl()
81 while (res && index--) { in read_ctrl()
96 int index; in read_dev() local
[all …]
/linux-2.4.37.9/drivers/video/
Dneofb.h172 static inline u8 VGArCR (u8 index) in VGArCR() argument
174 outb (index, 0x3d4); in VGArCR()
178 static inline void VGAwCR (u8 index, u8 val) in VGAwCR() argument
180 outb (index, 0x3d4); in VGAwCR()
184 static inline u8 VGArGR (u8 index) in VGArGR() argument
186 outb (index, 0x3ce); in VGArGR()
190 static inline void VGAwGR (u8 index, u8 val) in VGAwGR() argument
192 outb (index, 0x3ce); in VGAwGR()
196 static inline u8 VGArSEQ (u8 index) in VGArSEQ() argument
198 outb (index, 0x3c4); in VGArSEQ()
[all …]
/linux-2.4.37.9/drivers/acpi/namespace/
Dnsnames.c75 acpi_size index; in acpi_ns_build_external_path() local
84 index = size - 1; in acpi_ns_build_external_path()
85 if (index < ACPI_NAME_SIZE) { in acpi_ns_build_external_path()
94 name_buffer[index] = 0; in acpi_ns_build_external_path()
96 while ((index > ACPI_NAME_SIZE) && (parent_node != acpi_gbl_root_node)) { in acpi_ns_build_external_path()
97 index -= ACPI_NAME_SIZE; in acpi_ns_build_external_path()
101 ACPI_MOVE_32_TO_32 ((name_buffer + index), &parent_node->name); in acpi_ns_build_external_path()
106 index--; in acpi_ns_build_external_path()
107 name_buffer[index] = ACPI_PATH_SEPARATOR; in acpi_ns_build_external_path()
112 name_buffer[index] = AML_ROOT_PREFIX; in acpi_ns_build_external_path()
[all …]
/linux-2.4.37.9/fs/nls/
Dnls_euc-jp.c289 int index; in sjisibm2euc() local
291 index = ((sjis_hi - 0xFA) * (0xFD - 0x40)) + (sjis_lo - 0x40); in sjisibm2euc()
292 if (IS_EUC_IBM2JISX0208(sjisibm2euc_map[index][0], in sjisibm2euc()
293 sjisibm2euc_map[index][1])) { in sjisibm2euc()
294 euc[0] = sjisibm2euc_map[index][0]; in sjisibm2euc()
295 euc[1] = sjisibm2euc_map[index][1]; in sjisibm2euc()
299 euc[1] = sjisibm2euc_map[index][0]; in sjisibm2euc()
300 euc[2] = sjisibm2euc_map[index][1]; in sjisibm2euc()
309 int index, min_index, max_index; in euc2sjisibm_jisx0212() local
317 index = (min_index + max_index) / 2; in euc2sjisibm_jisx0212()
[all …]
/linux-2.4.37.9/drivers/char/
Dcyclades.c1024 cyy_issue_cmd(volatile ucchar *base_addr, u_char cmd, int index) in cyy_issue_cmd() argument
1030 if (cy_readb(base_addr+(CyCCR<<index)) == 0){ in cyy_issue_cmd()
1040 cy_writeb((u_long)base_addr+(CyCCR<<index), cmd); in cyy_issue_cmd()
1053 int index = 0; /* IRQ probing is only for ISA */ in detect_isa_irq() local
1059 cy_writeb((u_long)address + (Cy_ClrIntr<<index), 0); in detect_isa_irq()
1068 cy_writeb((u_long)address + (CyCAR<<index), 0); in detect_isa_irq()
1069 cyy_issue_cmd(address, CyCHAN_CTL|CyENB_XMTR, index); in detect_isa_irq()
1071 cy_writeb((u_long)address + (CyCAR<<index), 0); in detect_isa_irq()
1072 cy_writeb((u_long)address + (CySRER<<index), in detect_isa_irq()
1073 cy_readb(address + (CySRER<<index)) | CyTxRdy); in detect_isa_irq()
[all …]
/linux-2.4.37.9/drivers/ide/legacy/
Dmacide.c97 int index = -1; in macide_init() local
105 index = ide_register_hw(&hw, NULL); in macide_init()
112 index = ide_register_hw(&hw, NULL); in macide_init()
119 index = ide_register_hw(&hw, NULL); in macide_init()
120 if (index == -1) break; in macide_init()
128 ide_drive_t *drive = &ide_hwifs[index].drives[0]; in macide_init()
143 if (index != -1) { in macide_init()
145 printk(KERN_INFO "ide%d: Macintosh Quadra IDE interface\n", index); in macide_init()
147 printk(KERN_INFO "ide%d: Macintosh Powerbook IDE interface\n", index); in macide_init()
149 printk(KERN_INFO "ide%d: Macintosh Powerbook Baboon IDE interface\n", index); in macide_init()
[all …]

12345678910>>...32