/openbmc/qemu/hw/ide/ |
H A D | pci.c | 201 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 D | cmd646.c | 92 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 D | piix.c | 40 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 …]
|
/openbmc/linux/lib/ |
H A D | ts_bm.c | 19 * Note: Since Boyer-Moore (BM) performs searches for matchings from right 31 * matchings spread over multiple fragments, then go BM. 78 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 [all …]
|
/openbmc/linux/arch/powerpc/math-emu/ |
H A D | udivmodti4.c | 15 _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() 66 /* Remainder in 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() [all …]
|
/openbmc/linux/drivers/comedi/ |
H A D | comedi_buf.c | 23 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/qemu/block/ |
H A D | qcow2-bitmap.c | 343 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 …]
|
/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-block-manager.c | 389 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 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_t b); [all …]
|
H A D | dm-transaction-manager.c | 62 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/linux/fs/affs/ |
H A D | bitmap.c | 17 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/u-boot/arch/nios2/lib/ |
H A D | libgcc.c | 57 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/u-boot/arch/arc/lib/ |
H A D | libgcc2.c | 15 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/kernel/power/ |
H A D | snapshot.c | 586 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/linux/Documentation/devicetree/bindings/net/ |
H A D | marvell-neta-bm.txt | 1 * Marvell Armada 380/XP Buffer Manager driver (BM) 5 - compatible: should be "marvell,armada-380-neta-bm". 8 - internal-mem: a phandle to BM internal SRAM definition. 22 In order to see how to hook the BM to a given ethernet port, please 29 bm: bm@c8000 { 30 compatible = "marvell,armada-380-neta-bm"; 40 bm_bppi: bm-bppi {
|
/openbmc/linux/tools/perf/tests/ |
H A D | bitmap.c | 14 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 D | mem2node.c | 27 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/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-385-db-ap.dts | 98 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 …]
|
H A D | armada-xp-openblocks-ax3-4.dts | 114 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 {
|
/openbmc/linux/drivers/xen/events/ |
H A D | events_2l.c | 37 #define BM(x) (unsigned long *)(x) macro 39 #define EVTCHN_FIRST_BIT(w) find_first_bit(BM(&(w)), BITS_PER_EVTCHN_WORD) 52 clear_bit(evtchn, BM(per_cpu(cpu_evtchn_mask, cpu))); in evtchn_2l_remove() 58 clear_bit(evtchn, BM(per_cpu(cpu_evtchn_mask, old_cpu))); in evtchn_2l_bind_to_cpu() 59 set_bit(evtchn, BM(per_cpu(cpu_evtchn_mask, cpu))); in evtchn_2l_bind_to_cpu() 65 sync_clear_bit(port, BM(&s->evtchn_pending[0])); in evtchn_2l_clear_pending() 71 sync_set_bit(port, BM(&s->evtchn_pending[0])); in evtchn_2l_set_pending() 77 return sync_test_bit(port, BM(&s->evtchn_pending[0])); in evtchn_2l_is_pending() 83 sync_set_bit(port, BM(&s->evtchn_mask[0])); in evtchn_2l_mask() 107 sync_clear_bit(port, BM(&s->evtchn_mask[0])); in evtchn_2l_unmask() [all …]
|
/openbmc/u-boot/arch/mips/lib/ |
H A D | lshrdi3.c | 6 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 D | ashldi3.c | 6 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 D | ashldi3.c | 6 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 D | lshrdi3.c | 6 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 D | lshrdi3.c | 9 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()
|