| /linux-6.15/fs/xfs/scrub/ |
| H A D | bitmap.c | 66 (bn) = rb_entry_safe(rb_next(&(bn)->bn_rbnode), \ 81 if (bn->bn_start < start && bn->bn_last > last) { 226 bn->bn_last - bn->bn_start + 1); in xbitmap64_disunion() 243 ret += bn->bn_last - bn->bn_start + 1; in xbitmap64_hweight() 259 error = fn(bn->bn_start, bn->bn_last - bn->bn_start + 1, priv); in xbitmap64_walk() 286 if (!bn) in xbitmap64_test() 356 if (bn->bn_start < start && bn->bn_last > last) { 501 bn->bn_last - bn->bn_start + 1); in xbitmap32_disunion() 518 ret += bn->bn_last - bn->bn_start + 1; in xbitmap32_hweight() 534 error = fn(bn->bn_start, bn->bn_last - bn->bn_start + 1, priv); in xbitmap32_walk() [all …]
|
| /linux-6.15/fs/bcachefs/ |
| H A D | btree_io.h | 108 struct btree_node *bn = container_of(i, struct btree_node, keys); in bset_encrypt() local 109 unsigned bytes = (void *) &bn->keys - (void *) &bn->flags; in bset_encrypt() 112 &bn->flags, bytes); in bset_encrypt() 201 struct btree_node *bn) in compat_btree_node() argument 205 !bpos_eq(bn->min_key, POS_MIN) && in compat_btree_node() 207 bn->min_key = bpos_nosnap_predecessor(bn->min_key); in compat_btree_node() 211 bn->max_key.snapshot = 0; in compat_btree_node() 213 compat_bpos(level, btree_id, version, big_endian, write, &bn->min_key); in compat_btree_node() 218 bn->max_key.snapshot = U32_MAX; in compat_btree_node() 222 !bpos_eq(bn->min_key, POS_MIN) && in compat_btree_node() [all …]
|
| H A D | btree_node_scan.c | 168 bch2_bio_map(bio, bn, PAGE_SIZE); in try_read_btree_node() 190 unsigned bytes = (void *) &bn->keys - (void *) &bn->flags; in try_read_btree_node() 192 bch2_encrypt(c, BSET_CSUM_TYPE(&bn->keys), nonce, &bn->flags, bytes); in try_read_btree_node() 195 if (btree_id_is_alloc(BTREE_NODE_ID(bn))) in try_read_btree_node() 201 if (BTREE_NODE_ID(bn) >= BTREE_ID_NR_MAX) in try_read_btree_node() 206 .btree_id = BTREE_NODE_ID(bn), in try_read_btree_node() 207 .level = BTREE_NODE_LEVEL(bn), in try_read_btree_node() 208 .seq = BTREE_NODE_SEQ(bn), in try_read_btree_node() 209 .cookie = le64_to_cpu(bn->keys.seq), in try_read_btree_node() 210 .min_key = bn->min_key, in try_read_btree_node() [all …]
|
| H A D | btree_io.c | 29 bch2_btree_id_level_to_text(out, BTREE_NODE_ID(bn), BTREE_NODE_LEVEL(bn)); in bch2_btree_node_header_to_text() 30 prt_printf(out, " seq %llx %llu\n", bn->keys.seq, BTREE_NODE_SEQ(bn)); in bch2_btree_node_header_to_text() 32 bch2_bpos_to_text(out, bn->min_key); in bch2_btree_node_header_to_text() 35 bch2_bpos_to_text(out, bn->max_key); in bch2_btree_node_header_to_text() 754 struct btree_node *bn = in validate_bset() local 829 &bn->format); in validate_bset() 2344 bn = data; in __bch2_btree_node_write() 2345 *bn = *b->data; in __bch2_btree_node_write() 2346 i = &bn->keys; in __bch2_btree_node_write() 2411 if (bn) in __bch2_btree_node_write() [all …]
|
| /linux-6.15/drivers/net/bonding/ |
| H A D | bond_procfs.c | 288 if (bn->proc_dir) { in bond_create_proc_entry() 290 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry() 304 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry() 305 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry() 314 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 316 if (!bn->proc_dir) { in bond_create_proc_dir() 317 bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); in bond_create_proc_dir() 318 if (!bn->proc_dir) in bond_create_proc_dir() 328 if (bn->proc_dir) { in bond_destroy_proc_dir() 329 remove_proc_entry(DRV_NAME, bn->net->proc_net); in bond_destroy_proc_dir() [all …]
|
| H A D | bond_sysfs.c | 38 const struct bond_net *bn = in bonding_show_bonds() local 45 list_for_each_entry_rcu(bond, &bn->dev_list, bond_list) { in bonding_show_bonds() 66 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name() 82 const struct bond_net *bn = in bonding_store_bonds() local 96 rv = bond_create(bn->net, ifname); in bonding_store_bonds() 108 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds() 805 int __net_init bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument 810 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs() 813 bn->net); in bond_create_sysfs() 826 if (netdev_name_in_use(bn->net, in bond_create_sysfs() [all …]
|
| /linux-6.15/drivers/char/ |
| H A D | bsr.c | 169 static int bsr_add_node(struct device_node *bn) in bsr_add_node() argument 177 bsr_stride = of_get_property(bn, "ibm,lock-stride", &bsr_stride_len); in bsr_add_node() 178 bsr_bytes = of_get_property(bn, "ibm,#lock-bytes", &bsr_bytes_len); in bsr_add_node() 200 result = of_address_to_resource(bn, i, &res); in bsr_add_node() 274 static int bsr_create_devs(struct device_node *bn) in bsr_create_devs() argument 278 while (bn) { in bsr_create_devs() 279 ret = bsr_add_node(bn); in bsr_create_devs() 281 of_node_put(bn); in bsr_create_devs() 284 bn = of_find_compatible_node(bn, NULL, "ibm,bsr"); in bsr_create_devs()
|
| /linux-6.15/fs/freevxfs/ |
| H A D | vxfs_bmap.c | 43 vxfs_bmap_ext4(struct inode *ip, long bn) in vxfs_bmap_ext4() argument 57 if (bn >= 0 && bn < fs32_to_cpu(sbi, d->size)) in vxfs_bmap_ext4() 58 return (bn + fs32_to_cpu(sbi, d->extent)); in vxfs_bmap_ext4() 59 bn -= fs32_to_cpu(sbi, d->size); in vxfs_bmap_ext4() 62 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4() 73 bno = fs32_to_cpu(sbi, indir[(bn / indsize) % (indsize * bn)]) + in vxfs_bmap_ext4() 74 (bn % indsize); in vxfs_bmap_ext4()
|
| /linux-6.15/fs/jfs/ |
| H A D | jfs_dtree.c | 573 s64 bn; in dtSearch() local 699 btsp->bn = bn; in dtSearch() 748 btsp->bn = bn; in dtSearch() 821 s64 bn; in dtInsert() local 2082 s64 bn; in dtDelete() local 2714 s64 bn; in jfs_readdir() local 3051 s64 bn; in dtReadFirst() local 3077 btsp->bn = bn; in dtReadFirst() 3210 bn = parent->bn; in dtReadNext() 3237 parent->bn = bn; in dtReadNext() [all …]
|
| H A D | jfs_xtree.c | 128 s64 bn; in xtLookup() local 336 btsp->bn = bn; in xtSearch() 383 btsp->bn = bn; in xtSearch() 441 btsp->bn = bn; in xtSearch() 521 s64 bn; in xtInsert() local 1345 s64 bn; in xtExtend() local 1504 s64 bn; in xtUpdate() local 2194 s64 bn; in xtTruncate() local 2265 bn = 0; in xtTruncate() 2508 bn = parent->bn; in xtTruncate() [all …]
|
| H A D | jfs_btree.h | 99 s64 bn; /* 8: */ member 120 (BTSTACK)->top->bn = BN;\ 137 (long long)btstack->stack[i].bn, in BT_STACK_DUMP() 144 BN = (LEAF)->bn;\
|
| /linux-6.15/lib/ |
| H A D | maple_tree.c | 2684 mab_mas_cp(mast->bn, 1 + split, mast->bn->b_end, mast->r, false); in mast_cp_to_nodes() 2711 if (mast->bn->pivot[mast->bn->b_end - 1] >= mast->orig_r->max) in mast_combine_cp_right() 2845 unlikely(mast->bn->b_end <= mt_min_slots[mast->bn->type])) in mas_spanning_rebalance() 2973 mast.bn = b_node; in mas_rebalance() 3174 if (mast->bn->pivot[mast->bn->b_end - 1] == mas->max) in mast_fill_bnode() 3179 mast->bn, mast->bn->b_end); in mast_fill_bnode() 3181 mast->bn->b_end--; in mast_fill_bnode() 3199 mab_mas_cp(mast->bn, split + 1, mast->bn->b_end, mast->r, false); in mast_split_data() 3254 mast->bn->b_end++; in mas_push_data() 3260 mas_mab_cp(&tmp_mas, 0, end, mast->bn, mast->bn->b_end); in mas_push_data() [all …]
|
| /linux-6.15/drivers/usb/storage/ |
| H A D | ene_ub6250.c | 681 u32 bnByte = bn * 0x200; in sd_scsi_read() 684 if (bn > info->bl_num) in sd_scsi_read() 694 bnByte = bn; in sd_scsi_read() 721 u32 bnByte = bn * 0x200; in sd_scsi_write() 724 if (bn > info->bl_num) in sd_scsi_write() 734 bnByte = bn; in sd_scsi_write() 1190 u32 bn = PhyBlockAddr; in ms_read_eraseblock() local 1202 bcb->CDB[4] = (unsigned char)(bn); in ms_read_eraseblock() 1647 if (bn > info->bl_num) in ms_scsi_read() 1664 bcb->CDB[5] = (unsigned char)(bn); in ms_scsi_read() [all …]
|
| /linux-6.15/drivers/accessibility/speakup/ |
| H A D | main.c | 864 static int bn; variable 869 bn = currbuf; in say_sentence_num() 872 bn = 1; in say_sentence_num() 877 spkup_write(sentmarks[bn][num], sentbufend[bn] - sentmarks[bn][num]); in say_sentence_num() 884 int i, bn; in get_sentence_buf() local 890 bn = currbuf; in get_sentence_buf() 894 numsentences[bn] = 0; in get_sentence_buf() 895 sentmarks[bn][0] = &sentbuf[bn][0]; in get_sentence_buf() 907 numsentences[bn]++; in get_sentence_buf() 908 sentmarks[bn][numsentences[bn]] = in get_sentence_buf() [all …]
|
| /linux-6.15/fs/gfs2/ |
| H A D | xattr.c | 153 u64 bn; in ea_foreach() local 157 bn = be64_to_cpu(*eablk); in ea_foreach() 242 u64 bn = 0; in ea_dealloc_unstuffed() local 290 if (bstart + blen == bn) in ea_dealloc_unstuffed() 295 bstart = bn; in ea_dealloc_unstuffed() 1299 u64 bn; in ea_dealloc_indirect() local 1305 if (bstart + blen == bn) in ea_dealloc_indirect() 1310 bstart = bn; in ea_dealloc_indirect() 1344 u64 bn; in ea_dealloc_indirect() local 1350 if (bstart + blen == bn) in ea_dealloc_indirect() [all …]
|
| H A D | dir.c | 867 u64 bn; in new_leaf() local 877 bh = gfs2_meta_new(ip->i_gl, bn); in new_leaf() 918 u64 bn; in dir_make_exhash() local 930 bn = bh->b_blocknr; in dir_make_exhash() 977 *lp = cpu_to_be64(bn); in dir_make_exhash() 1008 u64 bn, leaf_no; in dir_split_leaf() local 1037 bn = nbh->b_blocknr; in dir_split_leaf() 1063 lp[x] = cpu_to_be64(bn); in dir_split_leaf() 1734 u64 bn; in dir_new_leaf() local 1744 if (!bn) in dir_new_leaf() [all …]
|
| H A D | bmap.c | 610 unsigned offset, u64 bn) in gfs2_indirect_init() argument 617 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init() 622 *ptr = cpu_to_be64(bn); in gfs2_indirect_init() 667 u64 bn; in __gfs2_iomap_alloc() local 713 gfs2_trans_remove_revoke(sdp, bn, n); in __gfs2_iomap_alloc() 753 mp->mp_list[i-1], bn++); in __gfs2_iomap_alloc() 768 *ptr++ = cpu_to_be64(bn++); in __gfs2_iomap_alloc() 1463 u64 bn, bstart, isize_blks; in sweep_bh_for_rgrps() local 1482 bn = be64_to_cpu(*p); in sweep_bh_for_rgrps() 1560 if (bstart + blen == bn) { in sweep_bh_for_rgrps() [all …]
|
| H A D | rgrp.h | 44 int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
|
| /linux-6.15/drivers/md/persistent-data/ |
| H A D | dm-btree.c | 1472 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local 1477 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values() 1487 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local 1489 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node() 1524 struct btree_node *bn; in inc_or_backtrack() local 1531 bn = dm_block_data(n->b); in inc_or_backtrack() 1547 struct btree_node *bn; in find_leaf() local 1552 bn = dm_block_data(n->b); in find_leaf() 1554 if (le32_to_cpu(bn->header.flags) & LEAF_NODE) in find_leaf() 1625 struct btree_node *bn = dm_block_data(n->b); in dm_btree_cursor_get_value() local [all …]
|
| /linux-6.15/drivers/net/ |
| H A D | bareudp.c | 632 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() argument 637 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev() 648 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() local 654 t = bareudp_find_dev(bn, conf); in bareudp_configure() 676 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure() 774 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_init_net() local 776 INIT_LIST_HEAD(&bn->bareudp_list); in bareudp_init_net() 782 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_destroy_tunnels() local 785 list_for_each_entry_safe(bareudp, next, &bn->bareudp_list, next) in bareudp_destroy_tunnels()
|
| /linux-6.15/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | vsc7326_reg.h | 87 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
|
| /linux-6.15/include/net/ |
| H A D | bonding.h | 715 void bond_create_proc_dir(struct bond_net *bn); 716 void bond_destroy_proc_dir(struct bond_net *bn); 726 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 730 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
|
| /linux-6.15/drivers/nvme/target/ |
| H A D | nvmet.h | 522 static inline void nvmet_clear_aen_bit(struct nvmet_req *req, u32 bn) in nvmet_clear_aen_bit() argument 527 clear_bit(bn, &req->sq->ctrl->aen_masked); in nvmet_clear_aen_bit() 530 static inline bool nvmet_aen_bit_disabled(struct nvmet_ctrl *ctrl, u32 bn) in nvmet_aen_bit_disabled() argument 532 if (!(READ_ONCE(ctrl->aen_enabled) & (1 << bn))) in nvmet_aen_bit_disabled() 534 return test_and_set_bit(bn, &ctrl->aen_masked); in nvmet_aen_bit_disabled()
|
| /linux-6.15/drivers/infiniband/hw/mlx4/ |
| H A D | mad.c | 226 u32 bn, pkey_change_bitmap; in smp_snoop() local 264 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod) & 0xFFFF; in smp_snoop() 269 i + bn*32, be16_to_cpu(base[i])); in smp_snoop() 271 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32]) { in smp_snoop() 273 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32] = in smp_snoop() 279 port_num, bn, pkey_change_bitmap); in smp_snoop() 285 __propagate_pkey_ev(dev, port_num, bn, in smp_snoop() 300 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod); in smp_snoop() 301 mlx4_ib_update_cache_on_guid_change(dev, bn, port_num, in smp_snoop() 303 mlx4_ib_notify_slaves_on_guid_change(dev, bn, port_num, in smp_snoop()
|
| /linux-6.15/drivers/crypto/ |
| H A D | sa2ul.c | 787 unsigned long bn; in sa_free_ctx_info() local 789 bn = ctx->sc_id - data->sc_id_start; in sa_free_ctx_info() 791 __clear_bit(bn, data->ctx_bm); in sa_free_ctx_info() 804 unsigned long bn; in sa_init_ctx_info() local 808 bn = find_first_zero_bit(data->ctx_bm, SA_MAX_NUM_CTX); in sa_init_ctx_info() 809 __set_bit(bn, data->ctx_bm); in sa_init_ctx_info() 813 ctx->sc_id = (u16)(data->sc_id_start + bn); in sa_init_ctx_info() 826 __clear_bit(bn, data->ctx_bm); in sa_init_ctx_info()
|