Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/linux-2.4.37.9/include/linux/
Dbrlock.h56 static inline void br_read_lock (enum brlock_indices idx) in br_read_lock() argument
65 if (idx >= __BR_END) in br_read_lock()
68 ctr = &__brlock_array[smp_processor_id()][idx]; in br_read_lock()
69 lock = &__br_write_locks[idx].lock; in br_read_lock()
95 static inline void br_read_unlock (enum brlock_indices idx) in br_read_unlock() argument
99 if (idx >= __BR_END) in br_read_unlock()
102 ctr = &__brlock_array[smp_processor_id()][idx]; in br_read_unlock()
110 extern void FASTCALL(__br_write_lock (enum brlock_indices idx));
111 extern void FASTCALL(__br_write_unlock (enum brlock_indices idx));
113 static inline void br_write_lock (enum brlock_indices idx) in br_write_lock() argument
[all …]
/linux-2.4.37.9/drivers/mtd/maps/
Dtqm8xxl.c156 int idx = 0, ret = 0; in init_tqm_mtd() local
170 for(idx = 0 ; idx < FLASH_BANK_MAX ; idx++) in init_tqm_mtd()
175 printk("%s: chip probing count %d\n", __FUNCTION__, idx); in init_tqm_mtd()
177 map_banks[idx] = (struct map_info *)kmalloc(sizeof(struct map_info), GFP_KERNEL); in init_tqm_mtd()
178 if(map_banks[idx] == NULL) in init_tqm_mtd()
184 memset((void *)map_banks[idx], 0, sizeof(struct map_info)); in init_tqm_mtd()
185 map_banks[idx]->name = (char *)kmalloc(16, GFP_KERNEL); in init_tqm_mtd()
186 if(map_banks[idx]->name == NULL) in init_tqm_mtd()
192 memset((void *)map_banks[idx]->name, 0, 16); in init_tqm_mtd()
194 sprintf(map_banks[idx]->name, "TQM8xxL%d", idx); in init_tqm_mtd()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dpci-x86_64.c190 int idx; in pcibios_allocate_bus_resources() local
197 for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { in pcibios_allocate_bus_resources()
198 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
203 printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, dev->slot_name); in pcibios_allocate_bus_resources()
213 int idx, disabled; in pcibios_allocate_resources() local
219 for(idx = 0; idx < 6; idx++) { in pcibios_allocate_resources()
220 r = &dev->resource[idx]; in pcibios_allocate_resources()
234 printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, dev->slot_name); in pcibios_allocate_resources()
258 int idx; in pcibios_assign_resources() local
268 for(idx=0; idx<6; idx++) { in pcibios_assign_resources()
[all …]
Dmpparse.c747 int idx = 0; in mp_register_ioapic() local
760 idx = nr_ioapics++; in mp_register_ioapic()
762 mp_ioapics[idx].mpc_type = MP_IOAPIC; in mp_register_ioapic()
763 mp_ioapics[idx].mpc_flags = MPC_APIC_USABLE; in mp_register_ioapic()
764 mp_ioapics[idx].mpc_apicaddr = address; in mp_register_ioapic()
766 set_fixmap_nocache(FIX_IO_APIC_BASE_0 + idx, address); in mp_register_ioapic()
767 mp_ioapics[idx].mpc_apicid = io_apic_get_unique_id(idx, id); in mp_register_ioapic()
768 mp_ioapics[idx].mpc_apicver = io_apic_get_version(idx); in mp_register_ioapic()
774 mp_ioapic_routing[idx].apic_id = mp_ioapics[idx].mpc_apicid; in mp_register_ioapic()
775 mp_ioapic_routing[idx].irq_start = irq_base; in mp_register_ioapic()
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dpci-i386.c191 int idx; in pcibios_allocate_bus_resources() local
198 for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { in pcibios_allocate_bus_resources()
199 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
204 printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, dev->slot_name); in pcibios_allocate_bus_resources()
214 int idx, disabled; in pcibios_allocate_resources() local
220 for(idx = 0; idx < 6; idx++) { in pcibios_allocate_resources()
221 r = &dev->resource[idx]; in pcibios_allocate_resources()
235 printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, dev->slot_name); in pcibios_allocate_resources()
259 int idx; in pcibios_assign_resources() local
269 for(idx=0; idx<6; idx++) { in pcibios_assign_resources()
[all …]
/linux-2.4.37.9/net/802/
Dcl2llc.c514 int idx; /* index in transition table */ in llc_process_otype2_frame() local
531 idx = type; in llc_process_otype2_frame()
532 idx = (idx << 1) + p_flag_received; in llc_process_otype2_frame()
538 idx = type; in llc_process_otype2_frame()
543 idx = type; in llc_process_otype2_frame()
544 idx = (idx << 1) + lp->p_flag; in llc_process_otype2_frame()
555 idx = type; in llc_process_otype2_frame()
556 idx = (idx << 1); in llc_process_otype2_frame()
558 idx = idx +1; in llc_process_otype2_frame()
559 idx = (idx << 1) + p_flag_received; in llc_process_otype2_frame()
[all …]
/linux-2.4.37.9/drivers/sbus/char/
Dbpp.c571 unsigned idx; in read_ecp() local
576 for (idx = 0 ; idx < repeat ; idx += 1) in read_ecp()
577 buffer[idx] = instances[minor].repeat_byte; in read_ecp()
875 static void probeLptPort(unsigned idx) in probeLptPort() argument
878 const unsigned short lpAddr = base_addrs[idx]; in probeLptPort()
880 instances[idx].present = 0; in probeLptPort()
881 instances[idx].enhanced = 0; in probeLptPort()
882 instances[idx].direction = 0; in probeLptPort()
883 instances[idx].mode = COMPATIBILITY; in probeLptPort()
884 instances[idx].wait_queue = 0; in probeLptPort()
[all …]
/linux-2.4.37.9/drivers/pnp/
Disapnp.c146 unsigned char isapnp_read_byte(unsigned char idx) in isapnp_read_byte() argument
148 write_address(idx); in isapnp_read_byte()
152 unsigned short isapnp_read_word(unsigned char idx) in isapnp_read_word() argument
156 val = isapnp_read_byte(idx); in isapnp_read_word()
157 val = (val << 8) + isapnp_read_byte(idx+1); in isapnp_read_word()
161 unsigned int isapnp_read_dword(unsigned char idx) in isapnp_read_dword() argument
165 val = isapnp_read_byte(idx); in isapnp_read_dword()
166 val = (val << 8) + isapnp_read_byte(idx+1); in isapnp_read_dword()
167 val = (val << 8) + isapnp_read_byte(idx+2); in isapnp_read_dword()
168 val = (val << 8) + isapnp_read_byte(idx+3); in isapnp_read_dword()
[all …]
Disapnp_proc.c428 int idx; in isapnp_print_compatible() local
430 for (idx = 0; idx < DEVICE_COUNT_COMPATIBLE; idx++) { in isapnp_print_compatible()
431 if (dev->vendor_compatible[idx] == 0) in isapnp_print_compatible()
435 dev->vendor_compatible[idx], in isapnp_print_compatible()
436 dev->device_compatible[idx]); in isapnp_print_compatible()
785 int idx, idx1; in isapnp_set_card() local
795 idx = idx1 = simple_strtoul(index, NULL, 0); in isapnp_set_card()
801 printk("isapnp: card '%s' order %i not found\n", value, idx); in isapnp_set_card()
841 int idx, idx1; in isapnp_set_device() local
847 idx = idx1 = simple_strtoul(index, NULL, 0); in isapnp_set_device()
[all …]
/linux-2.4.37.9/drivers/hil/
Dhp_sdc.c168 curr->seq[curr->idx++] = status; in hp_sdc_take()
169 curr->seq[curr->idx++] = data; in hp_sdc_take()
182 curr->actidx = curr->idx; in hp_sdc_take()
183 curr->idx++; in hp_sdc_take()
286 curr->idx += hp_sdc.rqty; in hp_sdc_tasklet()
301 curr->actidx = curr->idx; in hp_sdc_tasklet()
302 curr->idx++; in hp_sdc_tasklet()
313 int idx, curridx; in hp_sdc_put() local
367 idx = curr->actidx; in hp_sdc_put()
377 act = curr->seq[idx]; in hp_sdc_put()
[all …]
Dhp_sdc_mlc.c62 int idx; in hp_sdc_mlc_isr() local
71 idx = 15 - mlc->icount; in hp_sdc_mlc_isr()
73 mlc->ipacket[idx] |= data | HIL_ERR_INT; in hp_sdc_mlc_isr()
76 if (!idx) goto check; in hp_sdc_mlc_isr()
77 if ((mlc->ipacket[idx-1] & HIL_PKT_ADDR_MASK) != in hp_sdc_mlc_isr()
78 (mlc->ipacket[idx] & HIL_PKT_ADDR_MASK)) { in hp_sdc_mlc_isr()
79 mlc->ipacket[idx] &= ~HIL_PKT_ADDR_MASK; in hp_sdc_mlc_isr()
80 mlc->ipacket[idx] |= (mlc->ipacket[idx-1] in hp_sdc_mlc_isr()
87 mlc->ipacket[idx] = in hp_sdc_mlc_isr()
96 && (mlc->ipacket[idx] == (mlc->imatch | idx))) goto done; in hp_sdc_mlc_isr()
[all …]
/linux-2.4.37.9/arch/mips64/mm/
Dtlb-sb1.c28 #define UNIQUE_ENTRYHI(idx) (KSEG0 + ((idx) << (PAGE_SHIFT + 1))) argument
165 int idx; in local_flush_tlb_range() local
170 idx = read_c0_index(); in local_flush_tlb_range()
173 write_c0_entryhi(UNIQUE_ENTRYHI(idx)); in local_flush_tlb_range()
174 if (idx < 0) in local_flush_tlb_range()
193 int oldpid, newpid, idx; in local_flush_tlb_page() local
199 idx = read_c0_index(); in local_flush_tlb_page()
202 if (idx < 0) in local_flush_tlb_page()
205 write_c0_entryhi(UNIQUE_ENTRYHI(idx)); in local_flush_tlb_page()
220 int oldpid, idx; in local_flush_tlb_one() local
[all …]
Dtlb-r4k.c114 int idx; in local_flush_tlb_range() local
121 idx = read_c0_index(); in local_flush_tlb_range()
124 if(idx < 0) in local_flush_tlb_range()
127 write_c0_entryhi(XKPHYS+idx*0x2000); in local_flush_tlb_range()
146 unsigned long oldpid, newpid, idx; in local_flush_tlb_page() local
159 idx = read_c0_index(); in local_flush_tlb_page()
162 if(idx < 0) in local_flush_tlb_page()
165 write_c0_entryhi(XKPHYS+idx*0x2000); in local_flush_tlb_page()
182 int oldpid, idx; in local_flush_tlb_one() local
192 idx = read_c0_index(); in local_flush_tlb_one()
[all …]
/linux-2.4.37.9/arch/mips/mm/
Dtlb-sb1.c29 #define UNIQUE_ENTRYHI(idx) (KSEG0 + ((idx) << (PAGE_SHIFT + 1))) argument
166 int idx; in local_flush_tlb_range() local
171 idx = read_c0_index(); in local_flush_tlb_range()
174 write_c0_entryhi(UNIQUE_ENTRYHI(idx)); in local_flush_tlb_range()
175 if (idx < 0) in local_flush_tlb_range()
194 int oldpid, newpid, idx; in local_flush_tlb_page() local
200 idx = read_c0_index(); in local_flush_tlb_page()
203 if (idx < 0) in local_flush_tlb_page()
206 write_c0_entryhi(UNIQUE_ENTRYHI(idx)); in local_flush_tlb_page()
221 int oldpid, idx; in local_flush_tlb_one() local
[all …]
Dtlb-r4k.c111 int idx; in local_flush_tlb_range() local
118 idx = read_c0_index(); in local_flush_tlb_range()
121 if (idx < 0) in local_flush_tlb_range()
124 write_c0_entryhi(KSEG0 + idx*0x2000); in local_flush_tlb_range()
143 int oldpid, newpid, idx; in local_flush_tlb_page() local
157 idx = read_c0_index(); in local_flush_tlb_page()
160 if(idx < 0) in local_flush_tlb_page()
163 write_c0_entryhi(KSEG0+idx*0x2000); in local_flush_tlb_page()
181 int oldpid, idx; in local_flush_tlb_one() local
191 idx = read_c0_index(); in local_flush_tlb_one()
[all …]
/linux-2.4.37.9/drivers/mtd/
Dafs.c131 u_int mask, off, idx, sz; in parse_afs_partitions() local
146 for (idx = off = sz = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions()
162 idx += 1; in parse_afs_partitions()
173 str = (char *)(parts + idx); in parse_afs_partitions()
178 for (idx = off = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions()
208 parts[idx].name = str; in parse_afs_partitions()
209 parts[idx].size = size; in parse_afs_partitions()
210 parts[idx].offset = img_ptr; in parse_afs_partitions()
211 parts[idx].mask_flags = 0; in parse_afs_partitions()
214 idx, img_ptr, parts[idx].size / 1024, in parse_afs_partitions()
[all …]
/linux-2.4.37.9/include/asm-mips/
Dfixmap.h57 extern void __set_fixmap (enum fixed_addresses idx,
60 #define set_fixmap(idx, phys) \ argument
61 __set_fixmap(idx, phys, PAGE_KERNEL)
65 #define set_fixmap_nocache(idx, phys) \ argument
66 __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
87 static inline unsigned long fix_to_virt(const unsigned int idx) in fix_to_virt() argument
98 if (idx >= __end_of_fixed_addresses) in fix_to_virt()
101 return __fix_to_virt(idx); in fix_to_virt()
/linux-2.4.37.9/include/asm-x86_64/
Dfixmap.h52 extern void __set_fixmap (enum fixed_addresses idx,
55 #define set_fixmap(idx, phys) \ argument
56 __set_fixmap(idx, phys, PAGE_KERNEL)
60 #define set_fixmap_nocache(idx, phys) \ argument
61 __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
76 extern inline unsigned long fix_to_virt(const unsigned int idx) in fix_to_virt() argument
87 if (idx >= __end_of_fixed_addresses) in fix_to_virt()
90 return __fix_to_virt(idx); in fix_to_virt()
/linux-2.4.37.9/arch/sparc/mm/
Dhighmem.c22 unsigned long idx; in kmap_atomic() local
28 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic()
29 vaddr = fix_kmap_begin + idx * PAGE_SIZE; in kmap_atomic()
39 if (!pte_none(*(kmap_pte + idx))) in kmap_atomic()
42 set_pte(kmap_pte + idx, mk_pte(page, kmap_prot)); in kmap_atomic()
56 unsigned long idx = type + KM_TYPE_NR * smp_processor_id(); in kunmap_atomic() local
61 if (vaddr != fix_kmap_begin + idx * PAGE_SIZE) in kunmap_atomic()
76 pte_clear(kmap_pte + idx); in kunmap_atomic()
/linux-2.4.37.9/include/asm-i386/
Dfixmap.h87 extern void __set_fixmap (enum fixed_addresses idx,
90 #define set_fixmap(idx, phys) \ argument
91 __set_fixmap(idx, phys, PAGE_KERNEL)
95 #define set_fixmap_nocache(idx, phys) \ argument
96 __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
117 static inline unsigned long fix_to_virt(const unsigned int idx) in fix_to_virt() argument
128 if (idx >= __end_of_fixed_addresses) in fix_to_virt()
131 return __fix_to_virt(idx); in fix_to_virt()
/linux-2.4.37.9/net/sched/
Destimator.c101 int idx = (int)arg; in est_timer() local
105 for (e = elist[idx].list; e; e = e->next) { in est_timer()
114 rate = (nbytes - e->last_bytes)<<(7 - idx); in est_timer()
119 rate = (npackets - e->last_packets)<<(12 - idx); in est_timer()
126 mod_timer(&elist[idx].timer, jiffies + ((HZ<<idx)/4)); in est_timer()
170 int idx; in qdisc_kill_estimator() local
173 for (idx=0; idx <= EST_MAX_INTERVAL; idx++) { in qdisc_kill_estimator()
175 pest = &elist[idx].list; in qdisc_kill_estimator()
189 if (killed && elist[idx].list == NULL) in qdisc_kill_estimator()
190 del_timer(&elist[idx].timer); in qdisc_kill_estimator()
/linux-2.4.37.9/arch/ppc/math-emu/
Dmath.c221 int idx = 0; in do_mathemu() local
234 idx = (insn >> 16) & 0x1f; in do_mathemu()
237 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp); in do_mathemu()
241 idx = (insn >> 16) & 0x1f; in do_mathemu()
244 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp); in do_mathemu()
246 regs->gpr[idx] = (unsigned long)op1; in do_mathemu()
249 idx = (insn >> 16) & 0x1f; in do_mathemu()
252 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp); in do_mathemu()
256 idx = (insn >> 16) & 0x1f; in do_mathemu()
259 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp); in do_mathemu()
[all …]
/linux-2.4.37.9/fs/xfs/
Dxfs_attr_leaf.h151 xfs_attr_leaf_name_remote(xfs_attr_leafblock_t *leafp, int idx);
152 #define XFS_ATTR_LEAF_NAME_REMOTE(leafp,idx) \ argument
153 xfs_attr_leaf_name_remote(leafp,idx)
155 #define XFS_ATTR_LEAF_NAME_REMOTE(leafp,idx) /* remote name struct ptr */ \ argument
157 &((char *)(leafp))[ INT_GET((leafp)->entries[idx].nameidx, ARCH_CONVERT) ])
161 xfs_attr_leaf_name_local(xfs_attr_leafblock_t *leafp, int idx);
162 #define XFS_ATTR_LEAF_NAME_LOCAL(leafp,idx) \ argument
163 xfs_attr_leaf_name_local(leafp,idx)
165 #define XFS_ATTR_LEAF_NAME_LOCAL(leafp,idx) /* local name struct ptr */ \ argument
167 &((char *)(leafp))[ INT_GET((leafp)->entries[idx].nameidx, ARCH_CONVERT) ])
[all …]
/linux-2.4.37.9/arch/mips/sibyte/cfe/
Dsetup.c111 unsigned int idx; in prom_meminit() local
138 for (idx = 0; cfe_enummem(idx, mem_flags, &addr, &size, &type) != CFE_ERR_NOMORE; in prom_meminit()
139 idx++) { in prom_meminit()
204 int idx; in initrd_setup() local
207 for (idx = 0; idx < sizeof(rdarg)-1; idx++) { in initrd_setup()
208 if (!str[idx] || (str[idx] == ' ')) break; in initrd_setup()
209 rdarg[idx] = str[idx]; in initrd_setup()
212 rdarg[idx] = 0; in initrd_setup()
/linux-2.4.37.9/drivers/char/joystick/
Dspaceorb.c60 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()
131 if (spaceorb->idx) spaceorb_process_packet(spaceorb); in spaceorb_interrupt()
132 spaceorb->idx = 0; in spaceorb_interrupt()
[all …]

12345678910>>...13