Home
last modified time | relevance | path

Searched refs:bm (Results 1 – 25 of 105) sorted by relevance

12345

/Linux-v6.1/lib/
Dts_bm.c60 struct ts_bm *bm = ts_config_priv(conf); in bm_find() local
63 int shift = bm->patlen - 1, bs; in bm_find()
75 for (i = 0; i < bm->patlen; i++) in bm_find()
78 != bm->pattern[bm->patlen-1-i]) in bm_find()
83 return consumed + (shift-(bm->patlen-1)); in bm_find()
85 next: bs = bm->bad_shift[text[shift-i]]; in bm_find()
88 shift = max_t(int, shift-i+bs, shift+bm->good_shift[i]); in bm_find()
114 static void compute_prefix_tbl(struct ts_bm *bm, int flags) in compute_prefix_tbl() argument
119 bm->bad_shift[i] = bm->patlen; in compute_prefix_tbl()
120 for (i = 0; i < bm->patlen - 1; i++) { in compute_prefix_tbl()
[all …]
Dlshrdi3.c12 word_type bm; in __lshrdi3() local
18 bm = 32 - b; in __lshrdi3()
20 if (bm <= 0) { in __lshrdi3()
22 w.s.low = (unsigned int) uu.s.high >> -bm; in __lshrdi3()
24 const unsigned int carries = (unsigned int) uu.s.high << bm; in __lshrdi3()
Dashldi3.c12 word_type bm; in __ashldi3() local
18 bm = 32 - b; in __ashldi3()
20 if (bm <= 0) { in __ashldi3()
22 w.s.high = (unsigned int) uu.s.low << -bm; in __ashldi3()
24 const unsigned int carries = (unsigned int) uu.s.low >> bm; in __ashldi3()
Dashrdi3.c12 word_type bm; in __ashrdi3() local
18 bm = 32 - b; in __ashrdi3()
20 if (bm <= 0) { in __ashrdi3()
24 w.s.low = uu.s.high >> -bm; in __ashrdi3()
26 const unsigned int carries = (unsigned int) uu.s.high << bm; in __ashrdi3()
/Linux-v6.1/drivers/comedi/
Dcomedi_buf.c23 struct comedi_buf_map *bm = in comedi_buf_map_kref_release() local
28 if (bm->page_list) { in comedi_buf_map_kref_release()
29 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_kref_release()
34 buf = &bm->page_list[0]; in comedi_buf_map_kref_release()
35 dma_free_coherent(bm->dma_hw_dev, in comedi_buf_map_kref_release()
36 PAGE_SIZE * bm->n_pages, in comedi_buf_map_kref_release()
39 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release()
40 buf = &bm->page_list[i]; in comedi_buf_map_kref_release()
45 vfree(bm->page_list); in comedi_buf_map_kref_release()
47 if (bm->dma_dir != DMA_NONE) in comedi_buf_map_kref_release()
[all …]
/Linux-v6.1/arch/powerpc/math-emu/
Dudivmodti4.c15 _FP_I_TYPE b, bm; in _fp_udivmodti4() local
51 count_leading_zeros (bm, d0); in _fp_udivmodti4()
53 if (bm != 0) in _fp_udivmodti4()
58 d0 = d0 << bm; in _fp_udivmodti4()
59 n1 = (n1 << bm) | (n0 >> (_FP_W_TYPE_SIZE - bm)); in _fp_udivmodti4()
60 n0 = n0 << bm; in _fp_udivmodti4()
75 count_leading_zeros (bm, d0); in _fp_udivmodti4()
77 if (bm == 0) in _fp_udivmodti4()
95 b = _FP_W_TYPE_SIZE - bm; in _fp_udivmodti4()
97 d0 = d0 << bm; in _fp_udivmodti4()
[all …]
/Linux-v6.1/drivers/md/persistent-data/
Ddm-block-manager.c383 struct dm_block_manager *bm; in dm_block_manager_create() local
385 bm = kmalloc(sizeof(*bm), GFP_KERNEL); in dm_block_manager_create()
386 if (!bm) { in dm_block_manager_create()
391 bm->bufio = dm_bufio_client_create(bdev, block_size, max_held_per_thread, in dm_block_manager_create()
396 if (IS_ERR(bm->bufio)) { in dm_block_manager_create()
397 r = PTR_ERR(bm->bufio); in dm_block_manager_create()
398 kfree(bm); in dm_block_manager_create()
402 bm->read_only = false; in dm_block_manager_create()
404 return bm; in dm_block_manager_create()
411 void dm_block_manager_destroy(struct dm_block_manager *bm) in dm_block_manager_destroy() argument
[all …]
Ddm-block-manager.h37 void dm_block_manager_destroy(struct dm_block_manager *bm);
39 unsigned dm_bm_block_size(struct dm_block_manager *bm);
40 dm_block_t dm_bm_nr_blocks(struct dm_block_manager *bm);
73 int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b,
77 int dm_bm_write_lock(struct dm_block_manager *bm, dm_block_t b,
85 int dm_bm_read_try_lock(struct dm_block_manager *bm, dm_block_t b,
93 int dm_bm_write_lock_zero(struct dm_block_manager *bm, dm_block_t b,
108 int dm_bm_flush(struct dm_block_manager *bm);
113 void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b);
126 bool dm_bm_is_read_only(struct dm_block_manager *bm);
[all …]
Ddm-transaction-manager.c60 static void prefetch_issue(struct prefetch_set *p, struct dm_block_manager *bm) in prefetch_issue() argument
68 dm_bm_prefetch(bm, p->blocks[i]); in prefetch_issue()
92 struct dm_block_manager *bm; member
160 static struct dm_transaction_manager *dm_tm_create(struct dm_block_manager *bm, in dm_tm_create() argument
172 tm->bm = bm; in dm_tm_create()
218 return dm_bm_flush(tm->bm); in dm_tm_pre_commit()
230 return dm_bm_flush(tm->bm); in dm_tm_commit()
248 r = dm_bm_write_lock_zero(tm->bm, new_block, v, result); in dm_tm_new_block()
279 r = dm_bm_read_lock(tm->bm, orig, v, &orig_block); in __shadow_block()
290 r = dm_bm_write_lock_zero(tm->bm, new, v, result); in __shadow_block()
[all …]
/Linux-v6.1/fs/affs/
Dbitmap.c17 struct affs_bm_info *bm; in affs_count_free_blocks() local
28 bm = AFFS_SB(sb)->s_bitmap; in affs_count_free_blocks()
30 for (i = AFFS_SB(sb)->s_bmap_count; i > 0; bm++, i--) in affs_count_free_blocks()
31 free += bm->bm_free; in affs_count_free_blocks()
42 struct affs_bm_info *bm; in affs_free_block() local
55 bm = &sbi->s_bitmap[bmap]; in affs_free_block()
62 bh = affs_bread(sb, bm->bm_key); in affs_free_block()
84 bm->bm_free++; in affs_free_block()
95 affs_error(sb,"affs_free_block","Cannot read bitmap block %u", bm->bm_key); in affs_free_block()
119 struct affs_bm_info *bm; in affs_alloc_block() local
[all …]
/Linux-v6.1/kernel/power/
Dsnapshot.c585 static void memory_bm_position_reset(struct memory_bitmap *bm) in memory_bm_position_reset() argument
587 bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, in memory_bm_position_reset()
589 bm->cur.node = list_entry(bm->cur.zone->leaves.next, in memory_bm_position_reset()
591 bm->cur.node_pfn = 0; in memory_bm_position_reset()
592 bm->cur.node_bit = 0; in memory_bm_position_reset()
595 static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free);
680 static int memory_bm_create(struct memory_bitmap *bm, gfp_t gfp_mask, in memory_bm_create() argument
689 INIT_LIST_HEAD(&bm->zones); in memory_bm_create()
704 list_add_tail(&zone->list, &bm->zones); in memory_bm_create()
707 bm->p_list = ca.chain; in memory_bm_create()
[all …]
/Linux-v6.1/tools/perf/tests/
Dbitmap.c14 unsigned long *bm = NULL; in get_bitmap() local
17 bm = bitmap_zalloc(nbits); in get_bitmap()
19 if (map && bm) { in get_bitmap()
21 set_bit(perf_cpu_map__cpu(map, i).cpu, bm); in get_bitmap()
26 return bm; in get_bitmap()
31 unsigned long *bm = get_bitmap(str, NBITS); in test_bitmap() local
35 bitmap_scnprintf(bm, NBITS, buf, sizeof(buf)); in test_bitmap()
39 free(bm); in test_bitmap()
Dmem2node.c27 unsigned long *bm = NULL; in get_bitmap() local
29 bm = bitmap_zalloc(nbits); in get_bitmap()
31 if (map && bm) { in get_bitmap()
36 set_bit(cpu.cpu, bm); in get_bitmap()
42 free(bm); in get_bitmap()
44 return bm && map ? bm : NULL; in get_bitmap()
/Linux-v6.1/arch/mips/dec/prom/
Dmemory.c63 memmap *bm; in rex_setup_memory_region() local
66 bm = (memmap *)CKSEG0ADDR(0x28000); in rex_setup_memory_region()
68 bitmap_size = rex_getbitmap(bm); in rex_setup_memory_region()
72 if (bm->bitmap[i] == 0xff) in rex_setup_memory_region()
73 mem_size += (8 * bm->pagesize); in rex_setup_memory_region()
75 mem_start += (8 * bm->pagesize); in rex_setup_memory_region()
78 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region()
/Linux-v6.1/arch/microblaze/lib/
Dashldi3.c9 word_type bm; in __ashldi3() local
15 bm = 32 - b; in __ashldi3()
17 if (bm <= 0) { in __ashldi3()
19 w.s.high = (unsigned int) uu.s.low << -bm; in __ashldi3()
21 const unsigned int carries = (unsigned int) uu.s.low >> bm; in __ashldi3()
Dlshrdi3.c9 word_type bm; in __lshrdi3() local
15 bm = 32 - b; in __lshrdi3()
17 if (bm <= 0) { in __lshrdi3()
19 w.s.low = (unsigned int) uu.s.high >> -bm; in __lshrdi3()
21 const unsigned int carries = (unsigned int) uu.s.high << bm; in __lshrdi3()
Dashrdi3.c9 word_type bm; in __ashrdi3() local
15 bm = 32 - b; in __ashrdi3()
17 if (bm <= 0) { in __ashrdi3()
21 w.s.low = uu.s.high >> -bm; in __ashrdi3()
23 const unsigned int carries = (unsigned int) uu.s.high << bm; in __ashrdi3()
/Linux-v6.1/arch/sh/lib/
Dashldi3.c9 word_type bm; in __ashldi3() local
15 bm = 32 - b; in __ashldi3()
17 if (bm <= 0) { in __ashldi3()
19 w.s.high = (unsigned int) uu.s.low << -bm; in __ashldi3()
21 const unsigned int carries = (unsigned int) uu.s.low >> bm; in __ashldi3()
Dlshrdi3.c9 word_type bm; in __lshrdi3() local
15 bm = 32 - b; in __lshrdi3()
17 if (bm <= 0) { in __lshrdi3()
19 w.s.low = (unsigned int) uu.s.high >> -bm; in __lshrdi3()
21 const unsigned int carries = (unsigned int) uu.s.high << bm; in __lshrdi3()
Dashrdi3.c9 word_type bm; in __ashrdi3() local
15 bm = 32 - b; in __ashrdi3()
17 if (bm <= 0) { in __ashrdi3()
21 w.s.low = uu.s.high >> -bm; in __ashrdi3()
23 const unsigned int carries = (unsigned int) uu.s.high << bm; in __ashrdi3()
/Linux-v6.1/arch/arm/boot/dts/
Darmada-xp-openblocks-ax3-4.dts114 buffer-manager = <&bm>;
115 bm,pool-long = <0>;
121 buffer-manager = <&bm>;
122 bm,pool-long = <1>;
128 buffer-manager = <&bm>;
129 bm,pool-long = <2>;
135 buffer-manager = <&bm>;
136 bm,pool-long = <3>;
166 bm@c0000 {
171 bm-bppi {
Darmada-385-db-ap.dts98 buffer-manager = <&bm>;
99 bm,pool-long = <1>;
100 bm,pool-short = <3>;
108 buffer-manager = <&bm>;
109 bm,pool-long = <2>;
110 bm,pool-short = <3>;
129 buffer-manager = <&bm>;
130 bm,pool-long = <0>;
131 bm,pool-short = <3>;
134 bm@c8000 {
[all …]
/Linux-v6.1/arch/m68k/lib/
Dashldi3.c38 word_type bm; in __ashldi3() local
46 bm = (sizeof (SItype) * BITS_PER_UNIT) - b; in __ashldi3()
47 if (bm <= 0) in __ashldi3()
50 w.s.high = (USItype)uu.s.low << -bm; in __ashldi3()
54 USItype carries = (USItype)uu.s.low >> bm; in __ashldi3()
Dlshrdi3.c38 word_type bm; in __lshrdi3() local
46 bm = (sizeof (SItype) * BITS_PER_UNIT) - b; in __lshrdi3()
47 if (bm <= 0) in __lshrdi3()
50 w.s.low = (USItype)uu.s.high >> -bm; in __lshrdi3()
54 USItype carries = (USItype)uu.s.high << bm; in __lshrdi3()
Dashrdi3.c38 word_type bm; in __ashrdi3() local
46 bm = (sizeof (SItype) * BITS_PER_UNIT) - b; in __ashrdi3()
47 if (bm <= 0) in __ashrdi3()
51 w.s.low = uu.s.high >> -bm; in __ashrdi3()
55 USItype carries = (USItype)uu.s.high << bm; in __ashrdi3()

12345