Home
last modified time | relevance | path

Searched refs:bb (Results 1 – 25 of 130) sorted by relevance

123456

/Linux-v6.6/block/
Dbadblocks.c53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() argument
58 u64 *p = bb->page; in badblocks_check()
63 if (bb->shift > 0) { in badblocks_check()
65 s >>= bb->shift; in badblocks_check()
66 target += (1<<bb->shift) - 1; in badblocks_check()
67 target >>= bb->shift; in badblocks_check()
72 seq = read_seqbegin(&bb->lock); in badblocks_check()
75 hi = bb->count; in badblocks_check()
120 if (read_seqretry(&bb->lock, seq)) in badblocks_check()
127 static void badblocks_update_acked(struct badblocks *bb) in badblocks_update_acked() argument
[all …]
/Linux-v6.6/tools/bpf/bpftool/
Dcfg.c50 #define bb_prev(bb) list_prev_entry(bb, l) argument
51 #define bb_next(bb) list_next_entry(bb, l) argument
91 struct bb_node *new_bb, *bb; in func_append_bb() local
93 list_for_each_entry(bb, &func->bbs, l) { in func_append_bb()
94 if (bb->head == insn) in func_append_bb()
95 return bb; in func_append_bb()
96 else if (bb->head > insn) in func_append_bb()
100 bb = bb_prev(bb); in func_append_bb()
109 list_add(&new_bb->l, &bb->l); in func_append_bb()
116 struct bb_node *bb; in func_insert_dummy_bb() local
[all …]
/Linux-v6.6/net/tipc/
Dbcast.c98 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_calc_bc_threshold() local
101 bb->bc_threshold = 1 + (cluster_size * bb->rc_ratio / 100); in tipc_bcbase_calc_bc_threshold()
109 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_select_primary() local
110 int all_dests = tipc_link_bc_peers(bb->link); in tipc_bcbase_select_primary()
111 int max_win = tipc_link_max_win(bb->link); in tipc_bcbase_select_primary()
112 int min_win = tipc_link_min_win(bb->link); in tipc_bcbase_select_primary()
115 bb->primary_bearer = INVALID_BEARER_ID; in tipc_bcbase_select_primary()
116 bb->bcast_support = true; in tipc_bcbase_select_primary()
122 if (!bb->dests[i]) in tipc_bcbase_select_primary()
126 if (mtu < tipc_link_mtu(bb->link)) { in tipc_bcbase_select_primary()
[all …]
/Linux-v6.6/crypto/
Drmd160.c51 u32 aa, bb, cc, dd, ee, aaa, bbb, ccc, ddd, eee; in rmd160_transform() local
55 bb = state[1]; in rmd160_transform()
68 ROUND(aa, bb, cc, dd, ee, F1, K1, in[0], 11); in rmd160_transform()
69 ROUND(ee, aa, bb, cc, dd, F1, K1, in[1], 14); in rmd160_transform()
70 ROUND(dd, ee, aa, bb, cc, F1, K1, in[2], 15); in rmd160_transform()
71 ROUND(cc, dd, ee, aa, bb, F1, K1, in[3], 12); in rmd160_transform()
72 ROUND(bb, cc, dd, ee, aa, F1, K1, in[4], 5); in rmd160_transform()
73 ROUND(aa, bb, cc, dd, ee, F1, K1, in[5], 8); in rmd160_transform()
74 ROUND(ee, aa, bb, cc, dd, F1, K1, in[6], 7); in rmd160_transform()
75 ROUND(dd, ee, aa, bb, cc, F1, K1, in[7], 9); in rmd160_transform()
[all …]
/Linux-v6.6/include/linux/
Dbadblocks.h44 int badblocks_check(struct badblocks *bb, sector_t s, int sectors,
46 int badblocks_set(struct badblocks *bb, sector_t s, int sectors,
48 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors);
49 void ack_all_badblocks(struct badblocks *bb);
50 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack);
51 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len,
53 int badblocks_init(struct badblocks *bb, int enable);
54 void badblocks_exit(struct badblocks *bb);
56 int devm_init_badblocks(struct device *dev, struct badblocks *bb);
57 static inline void devm_exit_badblocks(struct device *dev, struct badblocks *bb) in devm_exit_badblocks() argument
[all …]
/Linux-v6.6/arch/alpha/boot/tools/
Dobjstrip.c109 unsigned long bb[64], sum = 0; in main() local
124 memset(bb, 0, sizeof(bb)); in main()
125 strcpy((char *) bb, "Linux SRM bootblock"); in main()
126 bb[60] = size / BLOCK_SIZE; /* count */ in main()
127 bb[61] = 1; /* starting sector # */ in main()
128 bb[62] = 0; /* flags---must be 0 */ in main()
130 sum += bb[i]; in main()
132 bb[63] = sum; in main()
133 if (write(ofd, bb, sizeof(bb)) != sizeof(bb)) { in main()
/Linux-v6.6/arch/mips/lib/
Dmulti3.c35 TWunion res, aa, bb; in __multi3() local
38 bb.ti = b; in __multi3()
45 res.s.low = dmulu(aa.s.low, bb.s.low); in __multi3()
46 res.s.high = dmuhu(aa.s.low, bb.s.low); in __multi3()
47 res.s.high += dmulu(aa.s.high, bb.s.low); in __multi3()
48 res.s.high += dmulu(aa.s.low, bb.s.high); in __multi3()
/Linux-v6.6/drivers/nvdimm/
Dbadrange.c165 static void set_badblock(struct badblocks *bb, sector_t s, int num) in set_badblock() argument
167 dev_dbg(bb->dev, "Found a bad range (0x%llx, 0x%llx)\n", in set_badblock()
170 if (badblocks_set(bb, s, num, 1)) in set_badblock()
171 dev_info_once(bb->dev, "%s: failed for sector %llx\n", in set_badblock()
185 static void __add_badblock_range(struct badblocks *bb, u64 ns_offset, u64 len) in __add_badblock_range() argument
205 set_badblock(bb, s, done); in __add_badblock_range()
210 set_badblock(bb, start_sector, num_sectors); in __add_badblock_range()
214 struct badblocks *bb, const struct range *range) in badblocks_populate() argument
239 __add_badblock_range(bb, start - range->start, len); in badblocks_populate()
253 __add_badblock_range(bb, 0, len); in badblocks_populate()
[all …]
Dpmem.c41 return pmem->bb.dev; in to_dev()
93 badblocks_clear(&pmem->bb, sector, blks); in pmem_clear_bb()
173 if (unlikely(is_bad_pmem(&pmem->bb, sector, len))) in pmem_do_read()
188 if (unlikely(is_bad_pmem(&pmem->bb, sector, len))) { in pmem_do_write()
250 struct badblocks *bb = &pmem->bb; in __pmem_direct_access() local
259 if (bb->count && in __pmem_direct_access()
260 badblocks_check(bb, sector, num, &first_bad, &num_bad)) { in __pmem_direct_access()
273 dev_dbg(pmem->bb.dev, "start sector(%llu), nr_pages(%ld), first_bad(%llu), actual_nr(%ld)\n", in __pmem_direct_access()
284 if (bb->count) in __pmem_direct_access()
332 struct device *dev = pmem->bb.dev; in pmem_recovery_write()
[all …]
Dclaim.c270 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) in nsio_rw_bytes()
277 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) { in nsio_rw_bytes()
289 badblocks_clear(&nsio->bb, sector, cleared); in nsio_rw_bytes()
321 if (devm_init_badblocks(dev, &nsio->bb)) in devm_nsio_enable()
323 nvdimm_badblocks_populate(to_nd_region(ndns->dev.parent), &nsio->bb, in devm_nsio_enable()
336 devm_exit_badblocks(dev, &nsio->bb); in devm_nsio_disable()
/Linux-v6.6/scripts/gcc-plugins/
Dlatent_entropy_plugin.c340 static void perturb_local_entropy(basic_block bb, tree local_entropy) in perturb_local_entropy() argument
349 gsi = gsi_after_labels(bb); in perturb_local_entropy()
383 static bool handle_tail_calls(basic_block bb, tree local_entropy) in handle_tail_calls() argument
387 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in handle_tail_calls()
431 static void init_local_entropy(basic_block bb, tree local_entropy) in init_local_entropy() argument
437 gimple_stmt_iterator gsi = gsi_after_labels(bb); in init_local_entropy()
503 basic_block bb; in latent_entropy_execute() local
511 bb = single_succ(ENTRY_BLOCK_PTR_FOR_FN(cfun)); in latent_entropy_execute()
512 if (!single_pred_p(bb)) { in latent_entropy_execute()
515 bb = single_succ(ENTRY_BLOCK_PTR_FOR_FN(cfun)); in latent_entropy_execute()
[all …]
Dstackleak_plugin.c59 basic_block bb; in add_stack_tracking_gcall() local
70 bb = gimple_bb(gimple_call); in add_stack_tracking_gcall()
74 gimple_call, bb->count, in add_stack_tracking_gcall()
75 compute_call_stmt_bb_frequency(current_function_decl, bb)); in add_stack_tracking_gcall()
173 basic_block bb, entry_bb; in stackleak_instrument_execute() local
190 FOR_EACH_BB_FN(bb, cfun) { in stackleak_instrument_execute()
191 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in stackleak_instrument_execute()
210 if (bb == entry_bb) in stackleak_instrument_execute()
245 bb = entry_bb; in stackleak_instrument_execute()
246 if (!single_pred_p(bb)) { in stackleak_instrument_execute()
[all …]
Dstructleak_plugin.c118 basic_block bb; in initialize() local
125 bb = single_succ(ENTRY_BLOCK_PTR_FOR_FN(cfun)); in initialize()
128 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in initialize()
170 basic_block bb; in structleak_execute() local
176 bb = single_succ(ENTRY_BLOCK_PTR_FOR_FN(cfun)); in structleak_execute()
177 if (!single_pred_p(bb)) { in structleak_execute()
Dsancov_plugin.c35 basic_block bb; in sancov_execute() local
42 FOR_EACH_BB_FN(bb, cfun) { in sancov_execute()
45 gimple_stmt_iterator gsi = gsi_after_labels(bb); in sancov_execute()
/Linux-v6.6/drivers/spi/
Dspi-gpio.c392 struct spi_bitbang *bb; in spi_gpio_probe() local
429 bb = &spi_gpio->bitbang; in spi_gpio_probe()
430 bb->master = host; in spi_gpio_probe()
437 bb->chipselect = spi_gpio_chipselect; in spi_gpio_probe()
438 bb->set_line_direction = spi_gpio_set_direction; in spi_gpio_probe()
441 bb->txrx_word[SPI_MODE_0] = spi_gpio_spec_txrx_word_mode0; in spi_gpio_probe()
442 bb->txrx_word[SPI_MODE_1] = spi_gpio_spec_txrx_word_mode1; in spi_gpio_probe()
443 bb->txrx_word[SPI_MODE_2] = spi_gpio_spec_txrx_word_mode2; in spi_gpio_probe()
444 bb->txrx_word[SPI_MODE_3] = spi_gpio_spec_txrx_word_mode3; in spi_gpio_probe()
446 bb->txrx_word[SPI_MODE_0] = spi_gpio_txrx_word_mode0; in spi_gpio_probe()
[all …]
/Linux-v6.6/fs/xfs/libxfs/
Dxfs_bmap_btree.h64 #define XFS_BMAP_BROOT_PTR_ADDR(mp, bb, i, sz) \ argument
65 XFS_BMBT_PTR_ADDR(mp, bb, i, xfs_bmbt_maxrecs(mp, sz, 0))
71 #define XFS_BMAP_BROOT_SPACE(mp, bb) \ argument
72 (XFS_BMAP_BROOT_SPACE_CALC(mp, be16_to_cpu((bb)->bb_numrecs)))
76 #define XFS_BMAP_BMDR_SPACE(bb) \ argument
77 (XFS_BMDR_SPACE_CALC(be16_to_cpu((bb)->bb_numrecs)))
/Linux-v6.6/net/netfilter/
Dnft_set_pipapo.c444 if (likely(f->bb == 8)) in nft_pipapo_lookup()
546 if (f->bb == 8) in pipapo_get()
548 else if (f->bb == 4) in pipapo_get()
642 new_lt = kvzalloc(f->groups * NFT_PIPAPO_BUCKETS(f->bb) * in pipapo_resize()
653 for (bucket = 0; bucket < NFT_PIPAPO_BUCKETS(f->bb); bucket++) { in pipapo_resize()
703 pos += f->bsize * NFT_PIPAPO_BUCKETS(f->bb) * group; in pipapo_bucket_set()
838 int groups, bb; in pipapo_lt_bits_adjust() local
841 lt_size = f->groups * NFT_PIPAPO_BUCKETS(f->bb) * f->bsize * in pipapo_lt_bits_adjust()
844 if (f->bb == NFT_PIPAPO_GROUP_BITS_SMALL_SET && in pipapo_lt_bits_adjust()
847 bb = NFT_PIPAPO_GROUP_BITS_LARGE_SET; in pipapo_lt_bits_adjust()
[all …]
Dnft_set_pipapo.h25 #define NFT_PIPAPO_GROUPS_PER_BYTE(f) (BITS_PER_BYTE / (f)->bb)
50 #define NFT_PIPAPO_BUCKETS(bb) (1 << (bb)) argument
125 int bb; member
/Linux-v6.6/drivers/gpu/drm/i915/gt/
Dselftest_ring_submission.c207 struct i915_vma *bb; in __live_ctx_switch_wa() local
211 bb = create_wally(engine); in __live_ctx_switch_wa()
212 if (IS_ERR(bb)) in __live_ctx_switch_wa()
213 return PTR_ERR(bb); in __live_ctx_switch_wa()
215 result = i915_gem_object_pin_map_unlocked(bb->obj, I915_MAP_WC); in __live_ctx_switch_wa()
217 intel_context_put(bb->private); in __live_ctx_switch_wa()
218 i915_vma_unpin_and_release(&bb, 0); in __live_ctx_switch_wa()
223 engine->wa_ctx.vma = bb; in __live_ctx_switch_wa()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddcn20_fpu.c1745 struct _vcs_dpi_soc_bounding_box_st *bb, in dcn20_update_bounding_box() argument
1759 memset(bb->clock_limits, 0, sizeof(bb->clock_limits)); in dcn20_update_bounding_box()
1774 bb->clock_limits[i].state = i; in dcn20_update_bounding_box()
1775 bb->clock_limits[i].dram_speed_mts = uclk_states[i] * 16 / 1000; in dcn20_update_bounding_box()
1781 bb->clock_limits[i].fabricclk_mhz = (min_fclk_required_by_uclk < min_dcfclk) ? in dcn20_update_bounding_box()
1784bb->clock_limits[i].socclk_mhz = (bb->clock_limits[i].fabricclk_mhz > max_clocks->socClockInKhz / … in dcn20_update_bounding_box()
1785 max_clocks->socClockInKhz / 1000 : bb->clock_limits[i].fabricclk_mhz; in dcn20_update_bounding_box()
1787bb->clock_limits[i].dcfclk_mhz = (bb->clock_limits[i].fabricclk_mhz > max_clocks->dcfClockInKhz / … in dcn20_update_bounding_box()
1788 max_clocks->dcfClockInKhz / 1000 : bb->clock_limits[i].fabricclk_mhz; in dcn20_update_bounding_box()
1790 bb->clock_limits[i].dispclk_mhz = max_clocks->displayClockInKhz / 1000; in dcn20_update_bounding_box()
[all …]
Ddcn20_fpu.h55 void dcn20_cap_soc_clocks(struct _vcs_dpi_soc_bounding_box_st *bb,
58 struct _vcs_dpi_soc_bounding_box_st *bb,
63 struct _vcs_dpi_soc_bounding_box_st *bb);
/Linux-v6.6/tools/testing/selftests/net/forwarding/
Dtc_tunnel_key.sh119 $MZ h1-et -c 1 -p 930 -a 00:aa:bb:cc:dd:ee -b 00:ee:dd:cc:bb:aa -t ip -q
123 $MZ h1-et -c 1 -p 931 -a 00:aa:bb:cc:dd:ee -b 00:ee:dd:cc:bb:aa -t ip -q
133 $MZ h1-et -c 1 -p 931 -a 00:aa:bb:cc:dd:ee -b 00:ee:dd:cc:bb:aa -t ip -q
/Linux-v6.6/drivers/gpu/drm/i915/gvt/
Dscheduler.c526 struct intel_vgpu_shadow_bb *bb; in prepare_shadow_batch_buffer() local
530 list_for_each_entry(bb, &workload->shadow_bb, list) { in prepare_shadow_batch_buffer()
538 if (bb->bb_offset) in prepare_shadow_batch_buffer()
539 bb->bb_start_cmd_va = workload->shadow_ring_buffer_va in prepare_shadow_batch_buffer()
540 + bb->bb_offset; in prepare_shadow_batch_buffer()
551 if (!bb->ppgtt) { in prepare_shadow_batch_buffer()
554 i915_gem_object_lock(bb->obj, &ww); in prepare_shadow_batch_buffer()
556 bb->vma = i915_gem_object_ggtt_pin_ww(bb->obj, &ww, in prepare_shadow_batch_buffer()
558 if (IS_ERR(bb->vma)) { in prepare_shadow_batch_buffer()
559 ret = PTR_ERR(bb->vma); in prepare_shadow_batch_buffer()
[all …]
/Linux-v6.6/drivers/pci/
Dp2pdma.c579 struct pci_dev *a = provider, *b = client, *bb; in calc_map_type_and_dist() local
603 bb = b; in calc_map_type_and_dist()
605 while (bb) { in calc_map_type_and_dist()
606 if (a == bb) in calc_map_type_and_dist()
609 bb = pci_upstream_bridge(bb); in calc_map_type_and_dist()
621 bb = b; in calc_map_type_and_dist()
623 while (bb) { in calc_map_type_and_dist()
624 if (a == bb) in calc_map_type_and_dist()
627 if (pci_bridge_has_acs_redir(bb)) { in calc_map_type_and_dist()
628 seq_buf_print_bus_devfn(&acs_list, bb); in calc_map_type_and_dist()
[all …]
/Linux-v6.6/arch/parisc/kernel/
Drelocate_kernel.S83 bb,<,n %r3, 31 - IND_DONE_BIT, boot
84 bb,>=,n %r3, 31 - IND_INDIRECTION_BIT, .Lnotind
90 bb,>=,n %r3, 31 - IND_DESTINATION_BIT, .Lnotdest
95 bb,>= %r3, 31 - IND_SOURCE_BIT, .Lloop

123456