Home
last modified time | relevance | path

Searched refs:res_idx (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/drivers/parisc/
Dccio-dma.c294 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument
302 res_idx = idx;\
303 ioc->res_hint = res_idx + (size >> 3); \
308 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \ argument
311 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
313 CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
342 unsigned int res_idx; in ccio_alloc_range() local
374 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
376 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
379 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xffff, 16); in ccio_alloc_range()
[all …]
/linux-2.6.39/arch/parisc/kernel/
Dpci-dma.c251 int res_idx; in pcxl_alloc_range() local
264 PCXL_FIND_FREE_MAPPING(res_idx, mask, 8); in pcxl_alloc_range()
266 PCXL_FIND_FREE_MAPPING(res_idx, mask, 16); in pcxl_alloc_range()
268 PCXL_FIND_FREE_MAPPING(res_idx, mask, 32); in pcxl_alloc_range()
281 res_idx, mask, pcxl_res_hint); in pcxl_alloc_range()
293 return (pcxl_dma_start + (res_idx << (PAGE_SHIFT + 3))); in pcxl_alloc_range()
308 unsigned int res_idx = (vaddr - pcxl_dma_start) >> (PAGE_SHIFT + 3); in pcxl_free_range() local
315 res_idx, size, pages_mapped, mask); in pcxl_free_range()
320 PCXL_FREE_MAPPINGS(res_idx, mask, 8); in pcxl_free_range()
322 PCXL_FREE_MAPPINGS(res_idx, mask, 16); in pcxl_free_range()
[all …]