Home
last modified time | relevance | path

Searched refs:res_ptr (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/arch/ia64/hp/common/
Dsba_iommu.c465 static unsigned long ptr_to_pide(struct ioc *ioc, unsigned long *res_ptr, in ptr_to_pide() argument
468 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3) in ptr_to_pide()
486 unsigned long *res_ptr; in sba_search_bitmap() local
494 ASSERT(res_ptr < res_end); in sba_search_bitmap()
506 res_ptr = ioc->res_hint; in sba_search_bitmap()
508 res_ptr = (ulong *)ioc->res_map; in sba_search_bitmap()
522 for(; res_ptr < res_end ; res_ptr++) { in sba_search_bitmap()
523 if (likely(*res_ptr != ~0UL)) { in sba_search_bitmap()
524 bitshiftcnt = ffz(*res_ptr); in sba_search_bitmap()
525 *res_ptr |= (1UL << bitshiftcnt); in sba_search_bitmap()
[all …]
/linux-2.6.39/arch/parisc/kernel/
Dpci-dma.c63 u_long *res_ptr = (unsigned long *)pcxl_res_map; in dump_resmap() local
67 for(; i < (pcxl_res_size / sizeof(unsigned long)); ++i, ++res_ptr) in dump_resmap()
68 printk("%08lx ", *res_ptr); in dump_resmap()
230 for(; res_ptr < res_end; ++res_ptr) \
232 if(0 == ((*res_ptr) & mask)) { \
233 *res_ptr |= mask; \
234 idx = (int)((u_long)res_ptr - (u_long)pcxl_res_map); \
241 u##size *res_ptr = (u##size *)&(pcxl_res_map[pcxl_res_hint & ~((size >> 3) - 1)]); \
244 res_ptr = (u##size *)&pcxl_res_map[0]; \
297 …u##size *res_ptr = (u##size *)&(pcxl_res_map[(idx) + (((size >> 3) - 1) & (~((size >> 3) - 1)))]);…
[all …]
/linux-2.6.39/drivers/parisc/
Dsba_iommu.c317 static unsigned long ptr_to_pide(struct ioc *ioc, unsigned long *res_ptr, in ptr_to_pide() argument
320 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3) in ptr_to_pide()
337 unsigned long *res_ptr = ioc->res_hint; in sba_search_bitmap() local
356 for(; res_ptr < res_end; ++res_ptr) { in sba_search_bitmap()
357 tpide = ptr_to_pide(ioc, res_ptr, 0); in sba_search_bitmap()
361 if ((*res_ptr == 0) && !ret) { in sba_search_bitmap()
362 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap()
368 res_ptr++; in sba_search_bitmap()
383 res_ptr++; in sba_search_bitmap()
387 DBG_RES("%s() o %ld %p", __func__, o, res_ptr); in sba_search_bitmap()
[all …]
Dccio-dma.c295 for(; res_ptr < res_end; ++res_ptr) { \
298 idx = (unsigned int)((unsigned long)res_ptr - (unsigned long)ioc->res_map); \
300 if ((0 == (*res_ptr & mask)) && !ret) { \
301 *res_ptr |= mask; \
309 u##size *res_ptr = (u##size *)&((ioc)->res_map[ioa->res_hint & ~((size >> 3) - 1)]); \
312 res_ptr = (u##size *)&(ioc)->res_map[0]; \
417 u##size *res_ptr = (u##size *)&((ioc)->res_map[res_idx]); \
418 BUG_ON((*res_ptr & mask) != mask); \
419 *res_ptr &= ~(mask);
1107 u32 *res_ptr = (u32 *)ioc->res_map; in ccio_proc_bitmap_info() local
[all …]