/linux-master/drivers/md/persistent-data/ |
H A D | dm-block-manager.h | 38 void dm_block_manager_destroy(struct dm_block_manager *bm); 39 void dm_block_manager_reset(struct dm_block_manager *bm); 41 unsigned int dm_bm_block_size(struct dm_block_manager *bm); 42 dm_block_t dm_bm_nr_blocks(struct dm_block_manager *bm); 75 int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b, 79 int dm_bm_write_lock(struct dm_block_manager *bm, dm_block_t b, 87 int dm_bm_read_try_lock(struct dm_block_manager *bm, dm_block_t b, 95 int dm_bm_write_lock_zero(struct dm_block_manager *bm, dm_block_t b, 110 int dm_bm_flush(struct dm_block_manager *bm); 115 void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_ [all...] |
H A D | dm-block-manager.c | 389 struct dm_block_manager *bm; local 391 bm = kmalloc(sizeof(*bm), GFP_KERNEL); 392 if (!bm) { 397 bm->bufio = dm_bufio_client_create(bdev, block_size, max_held_per_thread, 402 if (IS_ERR(bm->bufio)) { 403 r = PTR_ERR(bm->bufio); 404 kfree(bm); 408 bm->read_only = false; 410 return bm; 417 dm_block_manager_destroy(struct dm_block_manager *bm) argument 424 dm_block_manager_reset(struct dm_block_manager *bm) argument 430 dm_bm_block_size(struct dm_block_manager *bm) argument 436 dm_bm_nr_blocks(struct dm_block_manager *bm) argument 441 dm_bm_validate_buffer(struct dm_block_manager *bm, struct dm_buffer *buf, struct buffer_aux *aux, struct dm_block_validator *v) argument 469 dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result) argument 502 dm_bm_write_lock(struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result) argument 538 dm_bm_read_try_lock(struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result) argument 571 dm_bm_write_lock_zero(struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result) argument 616 dm_bm_flush(struct dm_block_manager *bm) argument 625 dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b) argument 630 dm_bm_is_read_only(struct dm_block_manager *bm) argument 636 dm_bm_set_read_only(struct dm_block_manager *bm) argument 643 dm_bm_set_read_write(struct dm_block_manager *bm) argument [all...] |
H A D | dm-transaction-manager.c | 62 static void prefetch_issue(struct prefetch_set *p, struct dm_block_manager *bm) argument 70 dm_bm_prefetch(bm, p->blocks[i]); 94 struct dm_block_manager *bm; member in struct:dm_transaction_manager 162 static struct dm_transaction_manager *dm_tm_create(struct dm_block_manager *bm, argument 174 tm->bm = bm; 223 return dm_bm_flush(tm->bm); 235 return dm_bm_flush(tm->bm); 253 r = dm_bm_write_lock_zero(tm->bm, new_block, v, result); 284 r = dm_bm_read_lock(tm->bm, ori 461 dm_tm_create_internal(struct dm_block_manager *bm, dm_block_t sb_location, struct dm_transaction_manager **tm, struct dm_space_map **sm, int create, void *sm_root, size_t sm_len) argument 504 dm_tm_create_with_sm(struct dm_block_manager *bm, dm_block_t sb_location, struct dm_transaction_manager **tm, struct dm_space_map **sm) argument 512 dm_tm_open_with_sm(struct dm_block_manager *bm, dm_block_t sb_location, void *sm_root, size_t root_len, struct dm_transaction_manager **tm, struct dm_space_map **sm) argument [all...] |
H A D | dm-transaction-manager.h | 145 int dm_tm_create_with_sm(struct dm_block_manager *bm, dm_block_t sb_location, 149 int dm_tm_open_with_sm(struct dm_block_manager *bm, dm_block_t sb_location,
|
/linux-master/arch/microblaze/lib/ |
H A D | lshrdi3.c | 9 word_type bm; local 15 bm = 32 - b; 17 if (bm <= 0) { 19 w.s.low = (unsigned int) uu.s.high >> -bm; 21 const unsigned int carries = (unsigned int) uu.s.high << bm;
|
H A D | ashldi3.c | 9 word_type bm; local 15 bm = 32 - b; 17 if (bm <= 0) { 19 w.s.high = (unsigned int) uu.s.low << -bm; 21 const unsigned int carries = (unsigned int) uu.s.low >> bm;
|
H A D | ashrdi3.c | 9 word_type bm; local 15 bm = 32 - b; 17 if (bm <= 0) { 21 w.s.low = uu.s.high >> -bm; 23 const unsigned int carries = (unsigned int) uu.s.high << bm;
|
/linux-master/lib/ |
H A D | ts_bm.c | 78 struct ts_bm *bm = ts_config_priv(conf); local 85 int shift = bm->patlen - 1; 96 i = matchpat(&bm->pattern[bm->patlen-1], bm->patlen, 98 if (i == bm->patlen) { 101 return consumed + (shift-(bm->patlen-1)); 104 bs = bm->bad_shift[text[shift-i]]; 107 shift = max_t(int, shift-i+bs, shift+bm->good_shift[i]); 133 static void compute_prefix_tbl(struct ts_bm *bm, in argument 164 struct ts_bm *bm; local 189 struct ts_bm *bm = ts_config_priv(conf); local 195 struct ts_bm *bm = ts_config_priv(conf); local [all...] |
H A D | ashldi3.c | 12 word_type bm; local 18 bm = 32 - b; 20 if (bm <= 0) { 22 w.s.high = (unsigned int) uu.s.low << -bm; 24 const unsigned int carries = (unsigned int) uu.s.low >> bm;
|
H A D | ashrdi3.c | 12 word_type bm; local 18 bm = 32 - b; 20 if (bm <= 0) { 24 w.s.low = uu.s.high >> -bm; 26 const unsigned int carries = (unsigned int) uu.s.high << bm;
|
H A D | lshrdi3.c | 12 word_type bm; local 18 bm = 32 - b; 20 if (bm <= 0) { 22 w.s.low = (unsigned int) uu.s.high >> -bm; 24 const unsigned int carries = (unsigned int) uu.s.high << bm;
|
/linux-master/arch/powerpc/math-emu/ |
H A D | udivmodti4.c | 15 _FP_I_TYPE b, bm; local 51 count_leading_zeros (bm, d0); 53 if (bm != 0) 58 d0 = d0 << bm; 59 n1 = (n1 << bm) | (n0 >> (_FP_W_TYPE_SIZE - bm)); 60 n0 = n0 << bm; 66 /* Remainder in n0 >> bm. */ 75 count_leading_zeros (bm, d0); 77 if (bm [all...] |
/linux-master/drivers/comedi/ |
H A D | comedi_buf.c | 23 struct comedi_buf_map *bm = local 28 if (bm->page_list) { 29 if (bm->dma_dir != DMA_NONE) { 34 buf = &bm->page_list[0]; 35 dma_free_coherent(bm->dma_hw_dev, 36 PAGE_SIZE * bm->n_pages, 39 for (i = 0; i < bm->n_pages; i++) { 40 buf = &bm->page_list[i]; 45 vfree(bm->page_list); 47 if (bm 56 struct comedi_buf_map *bm; local 77 struct comedi_buf_map *bm; local 145 struct comedi_buf_map *bm; local 189 comedi_buf_map_get(struct comedi_buf_map *bm) argument 195 comedi_buf_map_put(struct comedi_buf_map *bm) argument 203 comedi_buf_map_access(struct comedi_buf_map *bm, unsigned long offset, void *buf, int len, int write) argument 231 struct comedi_buf_map *bm = NULL; local 251 struct comedi_buf_map *bm = s->async->buf_map; local [all...] |
H A D | comedi_internal.h | 31 void comedi_buf_map_get(struct comedi_buf_map *bm); 32 int comedi_buf_map_put(struct comedi_buf_map *bm); 33 int comedi_buf_map_access(struct comedi_buf_map *bm, unsigned long offset,
|
/linux-master/tools/perf/tests/ |
H A D | bitmap.c | 14 unsigned long *bm = NULL; local 17 bm = bitmap_zalloc(nbits); 19 if (map && bm) { 21 __set_bit(perf_cpu_map__cpu(map, i).cpu, bm); 26 return bm; 31 unsigned long *bm = get_bitmap(str, NBITS); local 35 bitmap_scnprintf(bm, NBITS, buf, sizeof(buf)); 39 free(bm);
|
H A D | mem2node.c | 27 unsigned long *bm = NULL; local 29 bm = bitmap_zalloc(nbits); 31 if (map && bm) { 36 __set_bit(cpu.cpu, bm); 42 free(bm); 44 return bm && map ? bm : NULL;
|
/linux-master/fs/affs/ |
H A D | bitmap.c | 17 struct affs_bm_info *bm; local 28 bm = AFFS_SB(sb)->s_bitmap; 30 for (i = AFFS_SB(sb)->s_bmap_count; i > 0; bm++, i--) 31 free += bm->bm_free; 42 struct affs_bm_info *bm; local 55 bm = &sbi->s_bitmap[bmap]; 62 bh = affs_bread(sb, bm->bm_key); 84 bm->bm_free++; 95 affs_error(sb,"affs_free_block","Cannot read bitmap block %u", bm->bm_key); 119 struct affs_bm_info *bm; local 246 struct affs_bm_info *bm; local [all...] |
/linux-master/arch/mips/dec/prom/ |
H A D | memory.c | 63 memmap *bm; local 66 bm = (memmap *)CKSEG0ADDR(0x28000); 68 bitmap_size = rex_getbitmap(bm); 72 if (bm->bitmap[i] == 0xff) 73 mem_size += (8 * bm->pagesize); 75 mem_start += (8 * bm->pagesize); 78 mem_start += mem_size + (8 * bm->pagesize);
|
/linux-master/kernel/power/ |
H A D | snapshot.c | 588 static void memory_bm_position_reset(struct memory_bitmap *bm) argument 590 bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, 592 bm->cur.node = list_entry(bm->cur.zone->leaves.next, 594 bm->cur.node_pfn = 0; 595 bm->cur.cur_pfn = BM_END_OF_MAP; 596 bm->cur.node_bit = 0; 599 static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free); 684 static int memory_bm_create(struct memory_bitmap *bm, gfp_ argument 727 memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free) argument 748 memory_bm_find_bit(struct memory_bitmap *bm, unsigned long pfn, void **addr, unsigned int *bit_nr) argument 815 memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn) argument 826 mem_bm_set_bit_check(struct memory_bitmap *bm, unsigned long pfn) argument 839 memory_bm_clear_bit(struct memory_bitmap *bm, unsigned long pfn) argument 850 memory_bm_clear_current(struct memory_bitmap *bm) argument 858 memory_bm_get_current(struct memory_bitmap *bm) argument 863 memory_bm_test_bit(struct memory_bitmap *bm, unsigned long pfn) argument 874 memory_bm_pfn_present(struct memory_bitmap *bm, unsigned long pfn) argument 892 rtree_next_node(struct memory_bitmap *bm) argument 929 memory_bm_next_pfn(struct memory_bitmap *bm) argument 974 memory_bm_recycle(struct memory_bitmap *bm) argument 1085 mark_nosave_pages(struct memory_bitmap *bm) argument 1200 struct memory_bitmap *bm = free_pages_map; local 2054 alloc_highmem_pages(struct memory_bitmap *bm, unsigned int nr_highmem) argument 2074 alloc_highmem_pages(struct memory_bitmap *bm, unsigned int n) argument 2216 pack_pfns(unsigned long *buf, struct memory_bitmap *bm, struct memory_bitmap *zero_bm) argument 2312 mark_unsafe_pages(struct memory_bitmap *bm) argument 2370 unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm, struct memory_bitmap *zero_bm) argument 2426 count_highmem_image_pages(struct memory_bitmap *bm) argument 2459 prepare_highmem_image(struct memory_bitmap *bm, unsigned int *nr_highmem_p) argument 2593 count_highmem_image_pages(struct memory_bitmap *bm) argument 2595 prepare_highmem_image(struct memory_bitmap *bm, unsigned int *nr_highmem_p) argument 2630 prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm, struct memory_bitmap *zero_bm) argument 2726 get_buffer(struct memory_bitmap *bm, struct chain_allocator *ca) argument [all...] |
/linux-master/arch/mips/math-emu/ |
H A D | sp_div.c | 16 unsigned int bm; local 118 for (bm = SP_MBIT(SP_FBITS + 2); bm; bm >>= 1) { 121 rm |= bm;
|
H A D | dp_div.c | 16 u64 bm; local 118 for (bm = DP_MBIT(DP_FBITS + 2); bm; bm >>= 1) { 121 rm |= bm;
|
/linux-master/include/linux/ |
H A D | phylink.h | 590 #define phylink_zero(bm) \ 591 bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS) 592 #define __phylink_do_bit(op, bm, mode) \ 593 op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm) 595 #define phylink_set(bm, mode) __phylink_do_bit(__set_bit, bm, mode) 596 #define phylink_clear(bm, mode) __phylink_do_bit(__clear_bit, bm, mode) 597 #define phylink_test(bm, mode) __phylink_do_bit(test_bit, bm, mod [all...] |
/linux-master/drivers/power/supply/ |
H A D | ab8500_bmdata.c | 6 #include "ab8500-bm.h" 141 struct ab8500_bm_data *bm) 147 ret = power_supply_get_battery_info(psy, &bm->bi); 152 bi = bm->bi; 232 bm->temp_hysteresis = AB8500_TEMP_HYSTERESIS; 238 struct ab8500_bm_data *bm) 240 power_supply_put_battery_info(psy, bm->bi); 140 ab8500_bm_of_probe(struct power_supply *psy, struct ab8500_bm_data *bm) argument 237 ab8500_bm_of_remove(struct power_supply *psy, struct ab8500_bm_data *bm) argument
|
/linux-master/scripts/ |
H A D | sign-file.c | 237 BIO *bd, *bm; local 297 bm = BIO_new_file(module_name, "rb"); 298 ERR(!bm, "%s", module_name); 325 ERR(CMS_final(cms, bm, NULL, CMS_NOCERTS | CMS_BINARY) != 1, 329 pkcs7 = PKCS7_sign(x509, private_key, NULL, bm, 354 BIO_free(bm); 366 ERR(BIO_reset(bm) < 0, "%s", module_name); 367 while ((n = BIO_read(bm, buf, sizeof(buf))), 371 BIO_free(bm);
|
/linux-master/arch/x86/mm/pat/ |
H A D | cpa-test.c | 120 unsigned long *bm; local 130 bm = vzalloc((max_pfn_mapped + 7) / 8); 131 if (!bm) { 167 if (test_bit(pfn + k, bm)) { 171 __set_bit(pfn + k, bm); 213 vfree(bm);
|