Home
last modified time | relevance | path

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

123456

/openbmc/qemu/hw/ide/
H A Dpci.c201 BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); in bmdma_start_dma() local
203 bm->dma_cb = dma_cb; in bmdma_start_dma()
204 bm->cur_prd_last = 0; in bmdma_start_dma()
205 bm->cur_prd_addr = 0; in bmdma_start_dma()
206 bm->cur_prd_len = 0; in bmdma_start_dma()
208 if (bm->status & BM_STATUS_DMAING) { in bmdma_start_dma()
209 bm->dma_cb(bmdma_active_if(bm), 0); in bmdma_start_dma()
223 BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); in bmdma_prepare_buf() local
224 IDEState *s = bmdma_active_if(bm); in bmdma_prepare_buf()
225 PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); in bmdma_prepare_buf()
[all …]
H A Dcmd646.c92 BMDMAState *bm = opaque; in bmdma_read() local
93 PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); in bmdma_read()
102 val = bm->cmd; in bmdma_read()
108 val = bm->status; in bmdma_read()
111 if (bm == &bm->pci_dev->bmdma[0]) { in bmdma_read()
129 BMDMAState *bm = opaque; in bmdma_write() local
130 PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); in bmdma_write()
139 bmdma_cmd_writeb(bm, val); in bmdma_write()
148 bmdma_status_writeb(bm, val); in bmdma_write()
151 if (bm == &bm->pci_dev->bmdma[0]) { in bmdma_write()
[all …]
H A Dpiix.c40 BMDMAState *bm = opaque; in bmdma_read() local
49 val = bm->cmd; in bmdma_read()
52 val = bm->status; in bmdma_read()
66 BMDMAState *bm = opaque; in bmdma_write() local
76 bmdma_cmd_writeb(bm, val); in bmdma_write()
79 bmdma_status_writeb(bm, val); in bmdma_write()
95 BMDMAState *bm = &d->bmdma[i]; in bmdma_setup_bar() local
97 memory_region_init_io(&bm->extra_io, OBJECT(d), &piix_bmdma_ops, bm, in bmdma_setup_bar()
99 memory_region_add_subregion(&d->bmdma_bar, i * 8, &bm->extra_io); in bmdma_setup_bar()
100 memory_region_init_io(&bm->addr_ioport, OBJECT(d), in bmdma_setup_bar()
[all …]
H A Dvia.c42 BMDMAState *bm = opaque; in bmdma_read() local
51 val = bm->cmd; in bmdma_read()
54 val = bm->status; in bmdma_read()
68 BMDMAState *bm = opaque; in bmdma_write() local
77 bmdma_cmd_writeb(bm, val); in bmdma_write()
80 bmdma_status_writeb(bm, val); in bmdma_write()
97 BMDMAState *bm = &d->bmdma[i]; in bmdma_setup_bar() local
99 memory_region_init_io(&bm->extra_io, OBJECT(d), &via_bmdma_ops, bm, in bmdma_setup_bar()
101 memory_region_add_subregion(&d->bmdma_bar, i * 8, &bm->extra_io); in bmdma_setup_bar()
102 memory_region_init_io(&bm->addr_ioport, OBJECT(d), in bmdma_setup_bar()
[all …]
/openbmc/linux/lib/
H A Dts_bm.c78 struct ts_bm *bm = ts_config_priv(conf); in bm_find() local
85 int shift = bm->patlen - 1; in bm_find()
96 i = matchpat(&bm->pattern[bm->patlen-1], bm->patlen, in bm_find()
98 if (i == bm->patlen) { in bm_find()
101 return consumed + (shift-(bm->patlen-1)); in bm_find()
104 bs = bm->bad_shift[text[shift-i]]; in bm_find()
107 shift = max_t(int, shift-i+bs, shift+bm->good_shift[i]); in bm_find()
133 static void compute_prefix_tbl(struct ts_bm *bm, int flags) in compute_prefix_tbl() argument
138 bm->bad_shift[i] = bm->patlen; in compute_prefix_tbl()
139 for (i = 0; i < bm->patlen - 1; i++) { in compute_prefix_tbl()
[all …]
/openbmc/linux/drivers/comedi/
H A 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 …]
/openbmc/linux/arch/powerpc/math-emu/
H A 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 …]
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-block-manager.c389 struct dm_block_manager *bm; in dm_block_manager_create() local
391 bm = kmalloc(sizeof(*bm), GFP_KERNEL); in dm_block_manager_create()
392 if (!bm) { in dm_block_manager_create()
397 bm->bufio = dm_bufio_client_create(bdev, block_size, max_held_per_thread, in dm_block_manager_create()
402 if (IS_ERR(bm->bufio)) { in dm_block_manager_create()
403 r = PTR_ERR(bm->bufio); 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()
417 void dm_block_manager_destroy(struct dm_block_manager *bm) in dm_block_manager_destroy() argument
[all …]
H 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);
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_t b);
[all …]
H A Ddm-transaction-manager.c62 static void prefetch_issue(struct prefetch_set *p, struct dm_block_manager *bm) in prefetch_issue() argument
70 dm_bm_prefetch(bm, p->blocks[i]); in prefetch_issue()
94 struct dm_block_manager *bm; member
162 static struct dm_transaction_manager *dm_tm_create(struct dm_block_manager *bm, in dm_tm_create() argument
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()
253 r = dm_bm_write_lock_zero(tm->bm, new_block, v, result); in dm_tm_new_block()
284 r = dm_bm_read_lock(tm->bm, orig, v, &orig_block); in __shadow_block()
295 r = dm_bm_write_lock_zero(tm->bm, new, v, result); in __shadow_block()
[all …]
/openbmc/qemu/block/
H A Dqcow2-bitmap.c343 Qcow2Bitmap *bm, Error **errp) in load_bitmap() argument
350 granularity = 1U << bm->granularity_bits; in load_bitmap()
351 bitmap = bdrv_create_dirty_bitmap(bs, granularity, bm->name, errp); in load_bitmap()
356 if (bm->flags & BME_FLAG_IN_USE) { in load_bitmap()
361 ret = bitmap_table_load(bs, &bm->table, &bitmap_table); in load_bitmap()
365 "bitmap '%s'", bm->name); in load_bitmap()
369 ret = load_bitmap_data(bs, bitmap_table, bm->table.size, bitmap); in load_bitmap()
372 bm->name); in load_bitmap()
505 static void bitmap_free(Qcow2Bitmap *bm) in bitmap_free() argument
507 if (bm == NULL) { in bitmap_free()
[all …]
H A Ddirty-bitmap.c87 BdrvDirtyBitmap *bm; in bdrv_find_dirty_bitmap() local
90 QLIST_FOREACH(bm, &bs->dirty_bitmaps, list) { in bdrv_find_dirty_bitmap()
91 if (bm->name && !strcmp(name, bm->name)) { in bdrv_find_dirty_bitmap()
92 return bm; in bdrv_find_dirty_bitmap()
374 BdrvDirtyBitmap *bm, *next; in bdrv_release_named_dirty_bitmaps() local
377 QLIST_FOREACH_SAFE(bm, &bs->dirty_bitmaps, list, next) { in bdrv_release_named_dirty_bitmaps()
378 if (bdrv_dirty_bitmap_name(bm)) { in bdrv_release_named_dirty_bitmaps()
379 bdrv_release_dirty_bitmap_locked(bm); in bdrv_release_named_dirty_bitmaps()
454 BdrvDirtyBitmap *bm; in bdrv_query_dirty_bitmaps() local
459 QLIST_FOREACH(bm, &bs->dirty_bitmaps, list) { in bdrv_query_dirty_bitmaps()
[all …]
/openbmc/linux/fs/affs/
H 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()
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 …]
/openbmc/linux/kernel/power/
H A Dsnapshot.c586 static void memory_bm_position_reset(struct memory_bitmap *bm) in memory_bm_position_reset() argument
588 bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, in memory_bm_position_reset()
590 bm->cur.node = list_entry(bm->cur.zone->leaves.next, in memory_bm_position_reset()
592 bm->cur.node_pfn = 0; in memory_bm_position_reset()
593 bm->cur.cur_pfn = BM_END_OF_MAP; in memory_bm_position_reset()
594 bm->cur.node_bit = 0; in memory_bm_position_reset()
597 static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free);
682 static int memory_bm_create(struct memory_bitmap *bm, gfp_t gfp_mask, in memory_bm_create() argument
691 INIT_LIST_HEAD(&bm->zones); in memory_bm_create()
706 list_add_tail(&zone->list, &bm->zones); in memory_bm_create()
[all …]
/openbmc/u-boot/arch/nios2/lib/
H A Dlibgcc.c57 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; in __ashldi3() local
60 if (bm <= 0) in __ashldi3()
63 w.s.high = (UWtype) uu.s.low << -bm; in __ashldi3()
67 const UWtype carries = (UWtype) uu.s.low >> bm; in __ashldi3()
83 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; in __ashrdi3() local
86 if (bm <= 0) in __ashrdi3()
90 w.s.low = uu.s.high >> -bm; in __ashrdi3()
94 const UWtype carries = (UWtype) uu.s.high << bm; in __ashrdi3()
110 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; in __lshrdi3() local
113 if (bm <= 0) in __lshrdi3()
[all …]
/openbmc/linux/tools/perf/tests/
H A 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()
H 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()
/openbmc/u-boot/arch/arc/lib/
H A Dlibgcc2.c15 const shift_count_type bm = W_TYPE_SIZE - b; in __ashldi3() local
18 if (bm <= 0) { in __ashldi3()
20 w.s.high = (UWtype)uu.s.low << -bm; in __ashldi3()
22 const UWtype carries = (UWtype) uu.s.low >> bm; in __ashldi3()
38 const shift_count_type bm = W_TYPE_SIZE - b; in __ashrdi3() local
41 if (bm <= 0) { in __ashrdi3()
44 w.s.low = uu.s.high >> -bm; in __ashrdi3()
46 const UWtype carries = (UWtype) uu.s.high << bm; in __ashrdi3()
62 const shift_count_type bm = W_TYPE_SIZE - b; in __lshrdi3() local
65 if (bm <= 0) { in __lshrdi3()
[all …]
/openbmc/linux/arch/mips/dec/prom/
H 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()
/openbmc/u-boot/arch/mips/lib/
H A Dlshrdi3.c6 word_type bm; in __lshrdi3() local
12 bm = 32 - b; in __lshrdi3()
14 if (bm <= 0) { in __lshrdi3()
16 w.s.low = (unsigned int) uu.s.high >> -bm; in __lshrdi3()
18 const unsigned int carries = (unsigned int) uu.s.high << bm; in __lshrdi3()
H A Dashldi3.c6 word_type bm; in __ashldi3() local
12 bm = 32 - b; in __ashldi3()
14 if (bm <= 0) { in __ashldi3()
16 w.s.high = (unsigned int) uu.s.low << -bm; in __ashldi3()
18 const unsigned int carries = (unsigned int) uu.s.low >> bm; in __ashldi3()
/openbmc/u-boot/arch/sh/lib/
H A Dashldi3.c6 word_type bm; in __ashldi3() local
12 bm = 32 - b; in __ashldi3()
14 if (bm <= 0) { in __ashldi3()
16 w.s.high = (unsigned int) uu.s.low << -bm; in __ashldi3()
18 const unsigned int carries = (unsigned int) uu.s.low >> bm; in __ashldi3()
H A Dlshrdi3.c6 word_type bm; in __lshrdi3() local
12 bm = 32 - b; in __lshrdi3()
14 if (bm <= 0) { in __lshrdi3()
16 w.s.low = (unsigned int) uu.s.high >> -bm; in __lshrdi3()
18 const unsigned int carries = (unsigned int) uu.s.high << bm; in __lshrdi3()
/openbmc/linux/arch/microblaze/lib/
H 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()
H 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()

123456