/kernel/linux/linux-5.10/lib/ |
D | ts_bm.c | 60 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 …]
|
D | ashldi3.c | 12 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()
|
D | lshrdi3.c | 12 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()
|
D | ashrdi3.c | 12 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()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/ |
D | comedi_buf.c | 24 struct comedi_buf_map *bm = in comedi_buf_map_kref_release() local 29 if (bm->page_list) { in comedi_buf_map_kref_release() 30 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_kref_release() 35 buf = &bm->page_list[0]; in comedi_buf_map_kref_release() 36 dma_free_coherent(bm->dma_hw_dev, in comedi_buf_map_kref_release() 37 PAGE_SIZE * bm->n_pages, in comedi_buf_map_kref_release() 40 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release() 41 buf = &bm->page_list[i]; in comedi_buf_map_kref_release() 46 vfree(bm->page_list); in comedi_buf_map_kref_release() 48 if (bm->dma_dir != DMA_NONE) in comedi_buf_map_kref_release() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/math-emu/ |
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() 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 …]
|
/kernel/linux/linux-5.10/drivers/md/persistent-data/ |
D | dm-block-manager.c | 383 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() 395 if (IS_ERR(bm->bufio)) { in dm_block_manager_create() 396 r = PTR_ERR(bm->bufio); in dm_block_manager_create() 397 kfree(bm); in dm_block_manager_create() 401 bm->read_only = false; in dm_block_manager_create() 403 return bm; in dm_block_manager_create() 410 void dm_block_manager_destroy(struct dm_block_manager *bm) in dm_block_manager_destroy() argument [all …]
|
D | dm-block-manager.h | 37 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 …]
|
D | dm-transaction-manager.c | 60 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 …]
|
/kernel/linux/linux-5.10/fs/affs/ |
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 …]
|
/kernel/linux/linux-5.10/kernel/power/ |
D | snapshot.c | 547 static void memory_bm_position_reset(struct memory_bitmap *bm) in memory_bm_position_reset() argument 549 bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, in memory_bm_position_reset() 551 bm->cur.node = list_entry(bm->cur.zone->leaves.next, in memory_bm_position_reset() 553 bm->cur.node_pfn = 0; in memory_bm_position_reset() 554 bm->cur.node_bit = 0; in memory_bm_position_reset() 557 static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free); 642 static int memory_bm_create(struct memory_bitmap *bm, gfp_t gfp_mask, in memory_bm_create() argument 651 INIT_LIST_HEAD(&bm->zones); in memory_bm_create() 666 list_add_tail(&zone->list, &bm->zones); in memory_bm_create() 669 bm->p_list = ca.chain; in memory_bm_create() [all …]
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | bitmap.c | 14 unsigned long *bm = NULL; in get_bitmap() local 17 bm = bitmap_alloc(nbits); in get_bitmap() 19 if (map && bm) { in get_bitmap() 21 set_bit(map->map[i], 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()
|
D | mem2node.c | 27 unsigned long *bm = NULL; in get_bitmap() local 30 bm = bitmap_alloc(nbits); in get_bitmap() 32 if (map && bm) { in get_bitmap() 34 set_bit(map->map[i], bm); in get_bitmap() 41 free(bm); in get_bitmap() 43 return bm && map ? bm : NULL; in get_bitmap()
|
/kernel/linux/linux-5.10/arch/mips/dec/prom/ |
D | memory.c | 63 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()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | abx500_chargalg.c | 250 struct abx500_bm_data *bm; member 357 di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, in abx500_chargalg_check_charger_enable() 358 di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); in abx500_chargalg_check_charger_enable() 362 di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, in abx500_chargalg_check_charger_enable() 363 di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); in abx500_chargalg_check_charger_enable() 442 timer_expiration = di->bm->main_safety_tmr_h; in abx500_chargalg_start_safety_timer() 446 timer_expiration = di->bm->usb_safety_tmr_h; in abx500_chargalg_start_safety_timer() 724 if (di->batt_data.temp > (di->bm->temp_low + di->t_hyst_norm) && in abx500_chargalg_check_temp() 725 di->batt_data.temp < (di->bm->temp_high - di->t_hyst_norm)) { in abx500_chargalg_check_temp() 732 if (((di->batt_data.temp >= di->bm->temp_high) && in abx500_chargalg_check_temp() [all …]
|
D | ab8500_bmdata.c | 494 struct abx500_bm_data *bm) in ab8500_bm_of_probe() argument 516 bm->no_maintenance = true; in ab8500_bm_of_probe() 517 bm->chg_unknown_bat = true; in ab8500_bm_of_probe() 518 bm->bat_type[BATTERY_UNKNOWN].charge_full_design = 2600; in ab8500_bm_of_probe() 519 bm->bat_type[BATTERY_UNKNOWN].termination_vol = 4150; in ab8500_bm_of_probe() 520 bm->bat_type[BATTERY_UNKNOWN].recharge_cap = 95; in ab8500_bm_of_probe() 521 bm->bat_type[BATTERY_UNKNOWN].normal_cur_lvl = 520; in ab8500_bm_of_probe() 522 bm->bat_type[BATTERY_UNKNOWN].normal_vol_lvl = 4200; in ab8500_bm_of_probe() 531 bm->n_btypes = 4; in ab8500_bm_of_probe() 532 bm->bat_type = bat_type_ext_thermistor; in ab8500_bm_of_probe() [all …]
|
D | ab8500_btemp.c | 103 struct abx500_bm_data *bm; member 155 if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL) { in ab8500_btemp_batctrl_volt_to_res() 161 - di->bm->gnd_lift_resistance * inst_curr) in ab8500_btemp_batctrl_volt_to_res() 217 if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL && enable) { in ab8500_btemp_curr_source_enable() 250 } else if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL && !enable) { in ab8500_btemp_curr_source_enable() 465 id = di->bm->batt_id; in ab8500_btemp_measure_temp() 467 if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL && in ab8500_btemp_measure_temp() 482 di->bm->bat_type[id].r_to_t_tbl, in ab8500_btemp_measure_temp() 483 di->bm->bat_type[id].n_temp_tbl_elements, rbat); in ab8500_btemp_measure_temp() 499 di->bm->bat_type[id].r_to_t_tbl, in ab8500_btemp_measure_temp() [all …]
|
/kernel/linux/linux-5.10/arch/sh/lib/ |
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()
|
D | ashldi3.c | 9 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()
|
D | ashrdi3.c | 9 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()
|
/kernel/linux/linux-5.10/arch/microblaze/lib/ |
D | ashldi3.c | 9 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()
|
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()
|
D | ashrdi3.c | 9 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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | phylink.h | 469 #define phylink_zero(bm) \ argument 470 bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS) 471 #define __phylink_do_bit(op, bm, mode) \ argument 472 op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm) 474 #define phylink_set(bm, mode) __phylink_do_bit(__set_bit, bm, mode) argument 475 #define phylink_clear(bm, mode) __phylink_do_bit(__clear_bit, bm, mode) argument 476 #define phylink_test(bm, mode) __phylink_do_bit(test_bit, bm, mode) argument
|
/kernel/linux/linux-5.10/arch/m68k/lib/ |
D | lshrdi3.c | 38 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()
|