Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 19 of 19) sorted by relevance

/lib/
Dfind_next_bit.c24 unsigned long offset) in find_next_bit() argument
26 const unsigned long *p = addr + BITOP_WORD(offset); in find_next_bit()
27 unsigned long result = offset & ~(BITS_PER_LONG-1); in find_next_bit()
30 if (offset >= size) in find_next_bit()
33 offset %= BITS_PER_LONG; in find_next_bit()
34 if (offset) { in find_next_bit()
36 tmp &= (~0UL << offset); in find_next_bit()
70 unsigned long offset) in find_next_zero_bit() argument
72 const unsigned long *p = addr + BITOP_WORD(offset); in find_next_zero_bit()
73 unsigned long result = offset & ~(BITS_PER_LONG-1); in find_next_zero_bit()
[all …]
Diovec.c60 int offset, int len) in memcpy_toiovecend() argument
65 if (unlikely(offset >= iov->iov_len)) { in memcpy_toiovecend()
66 offset -= iov->iov_len; in memcpy_toiovecend()
69 copy = min_t(unsigned int, iov->iov_len - offset, len); in memcpy_toiovecend()
70 if (copy_to_user(iov->iov_base + offset, kdata, copy)) in memcpy_toiovecend()
72 offset = 0; in memcpy_toiovecend()
86 int offset, int len) in memcpy_fromiovecend() argument
93 while (offset >= iov->iov_len) { in memcpy_fromiovecend()
94 offset -= iov->iov_len; in memcpy_fromiovecend()
99 u8 __user *base = iov->iov_base + offset; in memcpy_fromiovecend()
[all …]
Dradix-tree.c88 int offset) in tag_set() argument
90 __set_bit(offset, node->tags[tag]); in tag_set()
94 int offset) in tag_clear() argument
96 __clear_bit(offset, node->tags[tag]); in tag_clear()
100 int offset) in tag_get() argument
102 return test_bit(offset, node->tags[tag]); in tag_get()
152 unsigned long size, unsigned long offset) in radix_tree_find_next_bit() argument
155 return find_next_bit(addr, size, offset); in radix_tree_find_next_bit()
157 if (offset < size) { in radix_tree_find_next_bit()
160 addr += offset / BITS_PER_LONG; in radix_tree_find_next_bit()
[all …]
Dscatterlist.c366 unsigned long offset, unsigned long size, in sg_alloc_table_from_pages() argument
397 chunk_size = ((j - cur_page) << PAGE_SHIFT) - offset; in sg_alloc_table_from_pages()
398 sg_set_page(s, pages[cur_page], min(size, chunk_size), offset); in sg_alloc_table_from_pages()
400 offset = 0; in sg_alloc_table_from_pages()
422 return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT; in sg_page_count()
479 miter->__offset = pgoffset ? 0 : sg->offset; in sg_miter_get_next_page()
480 miter->__remaining = sg->offset + sg->length - in sg_miter_get_next_page()
507 bool sg_miter_skip(struct sg_mapping_iter *miter, off_t offset) in sg_miter_skip() argument
511 while (offset) { in sg_miter_skip()
517 consumed = min_t(off_t, offset, miter->__remaining); in sg_miter_skip()
[all …]
Dproportions.c108 int offset; in prop_change_shift() local
118 offset = pd->pg[pd->index].shift - shift; in prop_change_shift()
119 if (!offset) in prop_change_shift()
126 if (offset < 0) in prop_change_shift()
127 events <<= -offset; in prop_change_shift()
129 events >>= offset; in prop_change_shift()
172 int offset = *pl_shift - new_shift; in prop_adjust_shift() local
174 if (!offset) in prop_adjust_shift()
177 if (offset < 0) in prop_adjust_shift()
178 *pl_period <<= -offset; in prop_adjust_shift()
[all …]
Ddma-debug.c75 size_t offset; member
392 return page_to_phys(pfn_to_page(entry->pfn)) + entry->offset; in phys_addr()
458 (entry->offset >> L1_CACHE_SHIFT); in to_cacheline_number()
1240 void debug_dma_map_page(struct device *dev, struct page *page, size_t offset, in debug_dma_map_page() argument
1259 entry->offset = offset, in debug_dma_map_page()
1269 void *addr = page_address(page) + offset; in debug_dma_map_page()
1356 entry->offset = s->offset, in debug_dma_map_sg()
1407 .offset = s->offset, in debug_dma_unmap_sg()
1443 entry->offset = (size_t) virt & PAGE_MASK; in debug_dma_alloc_coherent()
1459 .offset = (size_t) virt & PAGE_MASK, in debug_dma_free_coherent()
[all …]
Dts_kmp.c49 unsigned int i, q = 0, text_len, consumed = state->offset; in kmp_find()
67 state->offset = consumed + i + 1; in kmp_find()
68 return state->offset - kmp->pattern_len; in kmp_find()
Dtest_firmware.c26 size_t size, loff_t *offset) in test_fw_misc_read() argument
32 rc = simple_read_from_buffer(buf, size, offset, in test_fw_misc_read()
Ddevres.c25 void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, in devm_ioremap() argument
34 addr = ioremap(offset, size); in devm_ioremap()
54 void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset, in devm_ioremap_nocache() argument
63 addr = ioremap_nocache(offset, size); in devm_ioremap_nocache()
Dswiotlb.c396 unsigned int offset = orig_addr & ~PAGE_MASK; in swiotlb_bounce() local
402 sz = min_t(size_t, PAGE_SIZE - offset, size); in swiotlb_bounce()
407 memcpy(vaddr, buffer + offset, sz); in swiotlb_bounce()
409 memcpy(buffer + offset, vaddr, sz); in swiotlb_bounce()
416 offset = 0; in swiotlb_bounce()
731 unsigned long offset, size_t size, in swiotlb_map_page() argument
735 phys_addr_t map, phys = page_to_phys(page) + offset; in swiotlb_map_page()
Didr.c939 int offset = starting_id % IDA_BITMAP_BITS; in ida_get_new_above() local
952 offset = 0; in ida_get_new_above()
973 t = find_next_zero_bit(bitmap->bitmap, IDA_BITMAP_BITS, offset); in ida_get_new_above()
977 offset = 0; in ida_get_new_above()
1016 int offset = id % IDA_BITMAP_BITS; in ida_remove() local
1038 if (!bitmap || !test_bit(offset, bitmap->bitmap)) in ida_remove()
1042 __clear_bit(offset, bitmap->bitmap); in ida_remove()
Ddecompress_unlzma.c394 int offset; in process_bit1() local
460 offset = 0; in process_bit1()
470 offset = 1 << LZMA_LEN_NUM_LOW_BITS; in process_bit1()
475 offset = ((1 << LZMA_LEN_NUM_LOW_BITS) in process_bit1()
482 len += offset; in process_bit1()
Dts_bm.c65 unsigned int i, text_len, consumed = state->offset; in bm_find()
Dbitmap.c1062 int offset; /* bit offset region in bitmap[index] */ in __reg_op() local
1075 offset = pos - (index * BITS_PER_LONG); in __reg_op()
1085 mask <<= offset; in __reg_op()
Dts_fsm.c143 unsigned block_len = 0, strict, consumed = state->offset; in fsm_find()
255 state->offset = consumed + block_idx; in fsm_find()
/lib/lzo/
Dlzo1x_decompress_safe.c68 size_t offset; in lzo1x_decompress_safe() local
75 offset = ip - ip_last; in lzo1x_decompress_safe()
76 if (unlikely(offset > MAX_255_COUNT)) in lzo1x_decompress_safe()
79 offset = (offset << 8) - offset; in lzo1x_decompress_safe()
80 t += offset + 15 + *ip++; in lzo1x_decompress_safe()
136 size_t offset; in lzo1x_decompress_safe() local
143 offset = ip - ip_last; in lzo1x_decompress_safe()
144 if (unlikely(offset > MAX_255_COUNT)) in lzo1x_decompress_safe()
147 offset = (offset << 8) - offset; in lzo1x_decompress_safe()
148 t += offset + 31 + *ip++; in lzo1x_decompress_safe()
[all …]
/lib/zlib_inflate/
Dinflate.c625 state->offset = (unsigned)this.val; in zlib_inflate()
631 state->offset += BITS(state->extra); in zlib_inflate()
635 if (state->offset > state->dmax) { in zlib_inflate()
641 if (state->offset > state->whave + out - left) { in zlib_inflate()
650 if (state->offset > copy) { /* copy from window */ in zlib_inflate()
651 copy = state->offset - copy; in zlib_inflate()
661 from = put - state->offset; in zlib_inflate()
Dinflate.h93 unsigned offset; /* distance back to copy string from */ member
/lib/xz/
Dxz_dec_lzma2.c322 size_t offset = dict->pos - dist - 1; in dict_get() local
325 offset += dict->end; in dict_get()
327 return dict->full > 0 ? dict->buf[offset] : 0; in dict_get()
587 uint32_t offset; in lzma_literal() local
597 offset = 0x100; in lzma_literal()
600 match_bit = match_byte & offset; in lzma_literal()
602 i = offset + match_bit + symbol; in lzma_literal()
606 offset &= match_bit; in lzma_literal()
609 offset &= ~match_bit; in lzma_literal()