Home
last modified time | relevance | path

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

12345

/linux/lib/
A Dts_bm.c96 i = matchpat(&bm->pattern[bm->patlen-1], bm->patlen, in bm_find()
138 bm->bad_shift[i] = bm->patlen; in compute_prefix_tbl()
140 bm->bad_shift[bm->pattern[i]] = bm->patlen - 1 - i; in compute_prefix_tbl()
142 bm->bad_shift[tolower(bm->pattern[i])] in compute_prefix_tbl()
150 bm->good_shift[i] = bm->patlen; in compute_prefix_tbl()
154 bm->good_shift[g] = bm->patlen-j-g; in compute_prefix_tbl()
164 struct ts_bm *bm; in bm_init() local
175 bm->patlen = len; in bm_init()
176 bm->pattern = (u8 *) bm->good_shift + prefix_tbl_len; in bm_init()
190 return bm->pattern; in bm_get_pattern()
[all …]
A 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()
A 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()
A 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/drivers/comedi/
A Dcomedi_buf.c49 kfree(bm); in comedi_buf_map_kref_release()
81 bm = kzalloc(sizeof(*bm), GFP_KERNEL); in comedi_buf_map_alloc()
82 if (!bm) in comedi_buf_map_alloc()
132 return bm; in comedi_buf_map_alloc()
157 if (!bm) in __comedi_buf_alloc()
191 if (bm) in comedi_buf_map_get()
197 if (bm) in comedi_buf_map_put()
240 if (bm && bm->n_pages) in comedi_buf_map_from_subdev_get()
243 bm = NULL; in comedi_buf_map_from_subdev_get()
246 return bm; in comedi_buf_map_from_subdev_get()
[all …]
/linux/arch/powerpc/math-emu/
A Dudivmodti4.c15 _FP_I_TYPE b, bm; in _fp_udivmodti4() local
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()
77 if (bm == 0) in _fp_udivmodti4()
97 d0 = d0 << bm; in _fp_udivmodti4()
100 n0 = n0 << bm; in _fp_udivmodti4()
112 r0 = n0 >> bm; in _fp_udivmodti4()
134 if (bm == 0) in _fp_udivmodti4()
[all …]
/linux/drivers/md/persistent-data/
A Ddm-block-manager.c391 bm = kmalloc(sizeof(*bm), GFP_KERNEL); in dm_block_manager_create()
392 if (!bm) { in dm_block_manager_create()
404 kfree(bm); in dm_block_manager_create()
408 bm->read_only = false; in dm_block_manager_create()
410 return bm; in dm_block_manager_create()
420 kfree(bm); in dm_block_manager_destroy()
632 return bm ? bm->read_only : true; in dm_bm_is_read_only()
638 if (bm) in dm_bm_set_read_only()
639 bm->read_only = true; in dm_bm_set_read_only()
645 if (bm) in dm_bm_set_read_write()
[all …]
A Ddm-block-manager.h38 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);
77 int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b,
81 int dm_bm_write_lock(struct dm_block_manager *bm, dm_block_t b,
112 int dm_bm_flush(struct dm_block_manager *bm);
117 void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b);
130 bool dm_bm_is_read_only(struct dm_block_manager *bm);
131 void dm_bm_set_read_only(struct dm_block_manager *bm);
[all …]
A Ddm-transaction-manager.c70 dm_bm_prefetch(bm, p->blocks[i]); in prefetch_issue()
94 struct dm_block_manager *bm; member
174 tm->bm = bm; in dm_tm_create()
223 return dm_bm_flush(tm->bm); in dm_tm_pre_commit()
235 return dm_bm_flush(tm->bm); in dm_tm_commit()
284 r = dm_bm_read_lock(tm->bm, orig, v, &orig_block); in __shadow_block()
302 dm_bm_block_size(tm->bm)); in __shadow_block()
346 return dm_bm_read_lock(tm->bm, b, v, blk); in dm_tm_read_lock()
450 return tm->bm; in dm_tm_get_bm()
455 prefetch_issue(&tm->prefetches, tm->bm); in dm_tm_issue_prefetches()
[all …]
/linux/fs/affs/
A 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()
31 free += bm->bm_free; in affs_count_free_blocks()
42 struct affs_bm_info *bm; in affs_free_block() local
84 bm->bm_free++; in affs_free_block()
119 struct affs_bm_info *bm; in affs_alloc_block() local
150 if (bm->bm_free) in affs_alloc_block()
160 bm++; in affs_alloc_block()
165 bm = sbi->s_bitmap; in affs_alloc_block()
166 } while (!bm->bm_free); in affs_alloc_block()
[all …]
/linux/kernel/power/
A Dsnapshot.c590 bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, in memory_bm_position_reset()
592 bm->cur.node = list_entry(bm->cur.zone->leaves.next, in memory_bm_position_reset()
755 zone = bm->cur.zone; in memory_bm_find_bit()
784 node = bm->cur.node; in memory_bm_find_bit()
894 if (!list_is_last(&bm->cur.node->list, &bm->cur.zone->leaves)) { in rtree_next_node()
895 bm->cur.node = list_entry(bm->cur.node->list.next, in rtree_next_node()
904 if (!list_is_last(&bm->cur.zone->list, &bm->zones)) { in rtree_next_node()
905 bm->cur.zone = list_entry(bm->cur.zone->list.next, in rtree_next_node()
907 bm->cur.node = list_entry(bm->cur.zone->leaves.next, in rtree_next_node()
935 pages = bm->cur.zone->end_pfn - bm->cur.zone->start_pfn; in memory_bm_next_pfn()
[all …]
/linux/tools/perf/tests/
A Dbitmap.c14 unsigned long *bm; in get_bitmap() local
16 bm = bitmap_zalloc(nbits); in get_bitmap()
18 if (map && bm) { in get_bitmap()
23 __set_bit(cpu.cpu, bm); in get_bitmap()
27 return bm; in get_bitmap()
32 unsigned long *bm = get_bitmap(str, NBITS); in test_bitmap() local
36 bitmap_scnprintf(bm, NBITS, buf, sizeof(buf)); in test_bitmap()
40 free(bm); in test_bitmap()
A 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/arch/mips/dec/prom/
A 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/arch/microblaze/lib/
A 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()
A 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()
A 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/arch/arm/boot/dts/marvell/
A 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 {
A 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 …]
A Darmada-xp-db.dts98 buffer-manager = <&bm>;
99 bm,pool-long = <0>;
105 buffer-manager = <&bm>;
106 bm,pool-long = <1>;
112 buffer-manager = <&bm>;
113 bm,pool-long = <2>;
119 buffer-manager = <&bm>;
120 bm,pool-long = <3>;
123 bm@c0000 {
178 bm-bppi {
A Darmada-xp-gp.dts124 buffer-manager = <&bm>;
125 bm,pool-long = <0>;
131 buffer-manager = <&bm>;
132 bm,pool-long = <1>;
138 buffer-manager = <&bm>;
139 bm,pool-long = <2>;
145 buffer-manager = <&bm>;
146 bm,pool-long = <3>;
159 bm@c0000 {
175 bm-bppi {
/linux/include/linux/
A Dphylink.h635 #define phylink_zero(bm) \ argument
636 bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)
637 #define __phylink_do_bit(op, bm, mode) \ argument
638 op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm)
640 #define phylink_set(bm, mode) __phylink_do_bit(__set_bit, bm, mode) argument
641 #define phylink_clear(bm, mode) __phylink_do_bit(__clear_bit, bm, mode) argument
642 #define phylink_test(bm, mode) __phylink_do_bit(test_bit, bm, mode) argument
/linux/drivers/md/
A Ddm-clone-metadata.c142 struct dm_block_manager *bm; member
254 BUG_ON(dm_bm_block_size(bm) % sizeof(__le64)); in __superblock_all_zeroes()
255 nr_words = dm_bm_block_size(bm) / sizeof(__le64); in __superblock_all_zeroes()
444 cmd->bm = dm_block_manager_create(cmd->bdev, in __create_persistent_data_structures()
447 if (IS_ERR(cmd->bm)) { in __create_persistent_data_structures()
449 return PTR_ERR(cmd->bm); in __create_persistent_data_structures()
454 dm_block_manager_destroy(cmd->bm); in __create_persistent_data_structures()
463 dm_block_manager_destroy(cmd->bm); in __destroy_persistent_data_structures()
814 if (cmd->fail_io || dm_bm_is_read_only(cmd->bm)) in dm_clone_metadata_commit()
973 dm_bm_set_read_only(cmd->bm); in dm_clone_metadata_set_read_only()
[all …]
/linux/fs/reiserfs/
A Dbitmap.c278 unsigned bm; in bmap_hash_id() local
281 bm = 1; in bmap_hash_id()
286 if (!bm) in bmap_hash_id()
287 bm = 1; in bmap_hash_id()
291 bm = 0; in bmap_hash_id()
292 return bm; in bmap_hash_id()
353 unsigned int bm, off; in scan_bitmap() local
386 for (; bm < end_bm; bm++, off = 0) { in scan_bitmap()
400 for (; bm < end_bm; bm++, off = 0) { in scan_bitmap()
803 int bm = 0; in dirid_groups() local
[all …]
/linux/drivers/power/supply/
A Dab8500_fg.c226 struct ab8500_bm_data *bm; member
794 (100 * di->bm->fg_res); in ab8500_fg_acc_cur_work()
915 (di->bm->fg_res / 10) + resistance); in ab8500_fg_battery_resistance()
918 resistance += di->bm->fg_res / 10; in ab8500_fg_battery_resistance()
1338 di->bm->capacity_scaling) { in ab8500_fg_check_capacity_limits()
1391 if (di->bm->capacity_scaling) { in ab8500_fg_check_capacity_limits()
1452 di->bm->fg_params->accu_charging); in ab8500_fg_algorithm_charging()
2189 bi = di->bm->bi; in ab8500_fg_get_ext_psy_data()
2219 if (di->bm->capacity_scaling) in ab8500_fg_get_ext_psy_data()
2238 if (di->bm->capacity_scaling) in ab8500_fg_get_ext_psy_data()
[all …]

Completed in 59 milliseconds

12345