| /linux/tools/bpf/bpftool/ |
| H A D | cfg.c | 50 #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() 103 p_err("OOM when allocating BB node"); in func_append_bb() 109 list_add(&new_bb->l, &bb->l); in func_append_bb() [all …]
|
| /linux/fs/smb/server/ |
| H A D | smbfsctl.h | 32 #define FSCTL_IS_PATHNAME_VALID 0x0009002C /* BB add struct */ 33 #define FSCTL_GET_COMPRESSION 0x0009003C /* BB add struct */ 34 #define FSCTL_SET_COMPRESSION 0x0009C040 /* BB add struct */ 35 #define FSCTL_QUERY_FAT_BPB 0x00090058 /* BB add struct */ 37 #define FSCTL_FILESYSTEM_GET_STATS 0x00090060 /* BB add struct */ 38 #define FSCTL_GET_NTFS_VOLUME_DATA 0x00090064 /* BB add struct */ 39 #define FSCTL_GET_RETRIEVAL_POINTERS 0x00090073 /* BB add struct */ 40 #define FSCTL_IS_VOLUME_DIRTY 0x00090078 /* BB add struct */ 41 #define FSCTL_ALLOW_EXTENDED_DASD_IO 0x00090083 /* BB add struct */ 43 #define FSCTL_FIND_FILES_BY_SID 0x0009008F /* BB add struct */ [all …]
|
| /linux/fs/smb/common/ |
| H A D | smbfsctl.h | 63 #define FSCTL_IS_PATHNAME_VALID 0x0009002C /* BB add struct */ 64 #define FSCTL_GET_COMPRESSION 0x0009003C /* BB add struct */ 65 #define FSCTL_SET_COMPRESSION 0x0009C040 /* BB add struct */ 66 #define FSCTL_QUERY_FAT_BPB 0x00090058 /* BB add struct */ 68 #define FSCTL_FILESYSTEM_GET_STATS 0x00090060 /* BB add struct */ 69 #define FSCTL_GET_NTFS_VOLUME_DATA 0x00090064 /* BB add struct */ 70 #define FSCTL_GET_RETRIEVAL_POINTERS 0x00090073 /* BB add struct */ 71 #define FSCTL_IS_VOLUME_DIRTY 0x00090078 /* BB add struct */ 72 #define FSCTL_ALLOW_EXTENDED_DASD_IO 0x00090083 /* BB add struct */ 74 #define FSCTL_FIND_FILES_BY_SID 0x0009008F /* BB add struct */ [all …]
|
| /linux/arch/x86/events/intel/ |
| H A D | bts.c | 84 struct bts_buffer *bb; in bts_buffer_setup_aux() local 105 bb = kzalloc_node(struct_size(bb, buf, nr_buf), GFP_KERNEL, node); in bts_buffer_setup_aux() 106 if (!bb) in bts_buffer_setup_aux() 109 bb->nr_pages = nr_pages; in bts_buffer_setup_aux() 110 bb->nr_bufs = nr_buf; in bts_buffer_setup_aux() 111 bb->snapshot = overwrite; in bts_buffer_setup_aux() 112 bb->data_pages = pages; in bts_buffer_setup_aux() 113 bb->real_size = size - size % BTS_RECORD_SIZE; in bts_buffer_setup_aux() 115 for (pg = 0, nr_buf = 0, offset = 0, pad = 0; nr_buf < bb->nr_bufs; nr_buf++) { in bts_buffer_setup_aux() 120 bb->buf[nr_buf].page = page; in bts_buffer_setup_aux() [all …]
|
| /linux/block/ |
| H A D | badblocks.c | 457 static int prev_by_hint(struct badblocks *bb, sector_t s, int hint) in prev_by_hint() argument 460 u64 *p = bb->page; in prev_by_hint() 463 while ((hint < hint_end) && ((hint + 1) <= bb->count) && in prev_by_hint() 465 if ((hint + 1) == bb->count || BB_OFFSET(p[hint + 1]) > s) { in prev_by_hint() 481 static int prev_badblocks(struct badblocks *bb, struct badblocks_context *bad, in prev_badblocks() argument 489 if (!bb->count) in prev_badblocks() 493 ret = prev_by_hint(bb, s, hint); in prev_badblocks() 499 hi = bb->count; in prev_badblocks() 500 p = bb->page; in prev_badblocks() 534 static bool can_merge_front(struct badblocks *bb, int prev, in can_merge_front() argument [all …]
|
| /linux/include/linux/ |
| H A D | badblocks.h | 51 int badblocks_check(struct badblocks *bb, sector_t s, sector_t sectors, 53 bool badblocks_set(struct badblocks *bb, sector_t s, sector_t sectors, 55 bool badblocks_clear(struct badblocks *bb, sector_t s, sector_t sectors); 56 void ack_all_badblocks(struct badblocks *bb); 57 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack); 58 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, 60 int badblocks_init(struct badblocks *bb, int enable); 61 void badblocks_exit(struct badblocks *bb); 63 int devm_init_badblocks(struct device *dev, struct badblocks *bb); 64 static inline void devm_exit_badblocks(struct device *dev, struct badblocks *bb) in devm_exit_badblocks() argument [all …]
|
| /linux/net/tipc/ |
| H A D | bcast.c | 98 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/drivers/gpu/drm/xe/ |
| H A D | xe_migrate.c | 111 /* First slot is reserved for mapping of PT bo and bb, start from 1 */ in xe_migrate_vm_addr() 584 struct xe_bb *bb, u32 at_pt, in emit_pte() argument 608 bb->cs[bb->len++] = MI_STORE_DATA_IMM | MI_SDI_NUM_QW(chunk); in emit_pte() 609 bb->cs[bb->len++] = ofs; in emit_pte() 610 bb->cs[bb->len++] = 0; in emit_pte() 638 bb->cs[bb->len++] = lower_32_bits(addr); in emit_pte() 639 bb->cs[bb->len++] = upper_32_bits(addr); in emit_pte() 648 static void emit_copy_ccs(struct xe_gt *gt, struct xe_bb *bb, in emit_copy_ccs() argument 654 u32 *cs = bb->cs + bb->len; in emit_copy_ccs() 685 bb->len = cs - bb->cs; in emit_copy_ccs() [all …]
|
| H A D | xe_gsc_submit.c | 177 struct xe_bb *bb; in xe_gsc_pkt_submit_kernel() local 188 bb = xe_bb_new(gt, 8, false); in xe_gsc_pkt_submit_kernel() 189 if (IS_ERR(bb)) in xe_gsc_pkt_submit_kernel() 190 return PTR_ERR(bb); in xe_gsc_pkt_submit_kernel() 192 bb->cs[bb->len++] = GSC_HECI_CMD_PKT; in xe_gsc_pkt_submit_kernel() 193 bb->cs[bb->len++] = lower_32_bits(addr_in); in xe_gsc_pkt_submit_kernel() 194 bb->cs[bb->len++] = upper_32_bits(addr_in); in xe_gsc_pkt_submit_kernel() 195 bb->cs[bb->len++] = size_in; in xe_gsc_pkt_submit_kernel() 196 bb->cs[bb->len++] = lower_32_bits(addr_out); in xe_gsc_pkt_submit_kernel() 197 bb->cs[bb->len++] = upper_32_bits(addr_out); in xe_gsc_pkt_submit_kernel() [all …]
|
| H A D | xe_gt.c | 150 static int emit_job_sync(struct xe_exec_queue *q, struct xe_bb *bb, in emit_job_sync() argument 157 job = xe_bb_create_job(q, bb); in emit_job_sync() 177 struct xe_bb *bb; in emit_nop_job() local 180 bb = xe_bb_new(gt, 4, false); in emit_nop_job() 181 if (IS_ERR(bb)) in emit_nop_job() 182 return PTR_ERR(bb); in emit_nop_job() 184 ret = emit_job_sync(q, bb, HZ); in emit_nop_job() 185 xe_bb_free(bb, NULL); in emit_nop_job() 196 struct xe_bb *bb; in emit_wa_job() local 223 bb = xe_bb_new(gt, bb_len, false); in emit_wa_job() [all …]
|
| /linux/drivers/nvdimm/ |
| H A D | badrange.c | 165 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() 177 * @bb: badblocks instance to populate 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() [all …]
|
| /linux/arch/alpha/boot/tools/ |
| H A D | objstrip.c | 109 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/scripts/gcc-plugins/ |
| H A D | latent_entropy_plugin.c | 340 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 …]
|
| H A D | stackleak_plugin.c | 59 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 …]
|
| /linux/arch/mips/lib/ |
| H A D | multi3.c | 35 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/lib/crypto/powerpc/ |
| H A D | curve25519.h | 139 fe51 da, cb, aa, bb; in curve25519_fe51() local 152 fsqr(bb, b); // BB = B^2 in curve25519_fe51() 157 fsub(e, aa, bb); // E = AA - BB in curve25519_fe51() 158 fmul(x2, aa, bb); // x2 = AA * BB in curve25519_fe51() 165 fadd(b, bb, z3); // BB + 121666 * E in curve25519_fe51() 167 fmul(z2, e, b); // z2 = e * (BB + (DA + CB)^2) in curve25519_fe51()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_rtrefcount_btree.h | 118 struct xfs_btree_block *bb, in xfs_rtrefcount_broot_ptr_addr() argument 122 return xfs_rtrefcount_ptr_addr(bb, index, in xfs_rtrefcount_broot_ptr_addr() 149 xfs_rtrefcount_broot_space(struct xfs_mount *mp, struct xfs_rtrefcount_root *bb) in xfs_rtrefcount_broot_space() argument 151 return xfs_rtrefcount_broot_space_calc(mp, be16_to_cpu(bb->bb_level), in xfs_rtrefcount_broot_space() 152 be16_to_cpu(bb->bb_numrecs)); in xfs_rtrefcount_broot_space() 174 xfs_rtrefcount_droot_space(struct xfs_btree_block *bb) in xfs_rtrefcount_droot_space() argument 176 return xfs_rtrefcount_droot_space_calc(be16_to_cpu(bb->bb_level), in xfs_rtrefcount_droot_space() 177 be16_to_cpu(bb->bb_numrecs)); in xfs_rtrefcount_droot_space()
|
| H A D | xfs_rtrmap_btree.h | 129 struct xfs_btree_block *bb, in xfs_rtrmap_broot_ptr_addr() argument 133 return xfs_rtrmap_ptr_addr(bb, index, in xfs_rtrmap_broot_ptr_addr() 160 xfs_rtrmap_broot_space(struct xfs_mount *mp, struct xfs_rtrmap_root *bb) in xfs_rtrmap_broot_space() argument 162 return xfs_rtrmap_broot_space_calc(mp, be16_to_cpu(bb->bb_level), in xfs_rtrmap_broot_space() 163 be16_to_cpu(bb->bb_numrecs)); in xfs_rtrmap_broot_space() 185 xfs_rtrmap_droot_space(struct xfs_btree_block *bb) in xfs_rtrmap_droot_space() argument 187 return xfs_rtrmap_droot_space_calc(be16_to_cpu(bb->bb_level), in xfs_rtrmap_droot_space() 188 be16_to_cpu(bb->bb_numrecs)); in xfs_rtrmap_droot_space()
|
| H A D | xfs_bmap_btree.h | 151 struct xfs_btree_block *bb, in xfs_bmap_broot_ptr_addr() argument 155 return xfs_bmbt_ptr_addr(mp, bb, i, xfs_bmbt_maxrecs(mp, sz, false)); in xfs_bmap_broot_ptr_addr() 178 struct xfs_bmdr_block *bb) in xfs_bmap_broot_space() argument 180 return xfs_bmap_broot_space_calc(mp, be16_to_cpu(bb->bb_numrecs)); in xfs_bmap_broot_space() 196 xfs_bmap_bmdr_space(struct xfs_btree_block *bb) in xfs_bmap_bmdr_space() argument 198 return xfs_bmdr_space_calc(be16_to_cpu(bb->bb_numrecs)); in xfs_bmap_bmdr_space()
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 388 ASSERT_EQ(mkdir("/tmp/B/BB", 0777), 0); in FIXTURE_SETUP() 394 ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 414 ASSERT_EQ(mkdir("/mnt/B/BB", 0777), 0); in FIXTURE_SETUP() 416 ASSERT_EQ(mount("testing", "/tmp/B/BB", "devpts", in FIXTURE_SETUP() 526 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F() 561 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F() 597 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F() 621 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F() 624 ASSERT_EQ(is_shared_mount("/mnt/A/AA/B/BB"), true); in TEST_F() 651 new_flags = read_mnt_flags("/mnt/A/AA/B/BB"); in TEST_F() [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-gpio.c | 347 struct spi_bitbang *bb; in spi_gpio_probe() local 386 bb = &spi_gpio->bitbang; in spi_gpio_probe() 387 bb->ctlr = host; in spi_gpio_probe() 394 bb->chipselect = spi_gpio_chipselect; in spi_gpio_probe() 395 bb->set_line_direction = spi_gpio_set_direction; in spi_gpio_probe() 396 bb->set_mosi_idle = spi_gpio_set_mosi_idle; in spi_gpio_probe() 399 bb->txrx_word[SPI_MODE_0] = spi_gpio_spec_txrx_word_mode0; in spi_gpio_probe() 400 bb->txrx_word[SPI_MODE_1] = spi_gpio_spec_txrx_word_mode1; in spi_gpio_probe() 401 bb->txrx_word[SPI_MODE_2] = spi_gpio_spec_txrx_word_mode2; in spi_gpio_probe() 402 bb->txrx_word[SPI_MODE_3] = spi_gpio_spec_txrx_word_mode3; in spi_gpio_probe() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-wiimote.h | 226 /* DRM_K: BB*2 */ 229 /* DRM_KA: BB*2 AA*3 */ 232 /* DRM_KE: BB*2 EE*8 */ 235 /* DRM_KAI: BB*2 AA*3 II*12 */ 238 /* DRM_KEE: BB*2 EE*19 */ 241 /* DRM_KAE: BB*2 AA*3 EE*16 */ 244 /* DRM_KIE: BB*2 II*10 EE*9 */ 247 /* DRM_KAIE: BB*2 AA*3 II*10 EE*6 */ 253 /* DRM_SKAI1: BB*2 AA*1 II*18 */ 256 /* DRM_SKAI2: BB*2 AA*1 II*18 */
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | tc_tunnel_key.sh | 117 $MZ h1-et -c 1 -p 930 -a 00:aa:bb:cc:dd:ee -b 00:ee:dd:cc:bb:aa -t ip -q 121 $MZ h1-et -c 1 -p 931 -a 00:aa:bb:cc:dd:ee -b 00:ee:dd:cc:bb:aa -t ip -q 131 $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/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_ring_submission.c | 207 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/Documentation/devicetree/bindings/power/supply/ |
| H A D | twl4030-charger.yaml | 32 ti,bb-uvolt: 36 ti,bb-uamp: 63 ti,bb-uvolt = <3200000>; 64 ti,bb-uamp = <150>;
|