Home
last modified time | relevance | path

Searched refs:bn (Results 1 – 25 of 34) sorted by relevance

12

/linux/fs/xfs/scrub/
H A Dbitmap.c62 #define for_each_xbitmap64_extent(bn, bitmap) \ in INTERVAL_TREE_DEFINE() argument
63 for ((bn) = rb_entry_safe(rb_first(&(bitmap)->xb_root.rb_root), \ in INTERVAL_TREE_DEFINE()
65 (bn) != NULL; \
66 (bn) = rb_entry_safe(rb_next(&(bn)->bn_rbnode), \
76 struct xbitmap64_node *bn; local
80 while ((bn = xbitmap64_tree_iter_first(&bitmap->xb_root, start, last))) {
81 if (bn->bn_start < start && bn->bn_last > last) {
82 uint64_t old_last = bn
183 struct xbitmap64_node *bn; xbitmap64_destroy() local
218 struct xbitmap64_node *bn; xbitmap64_disunion() local
239 struct xbitmap64_node *bn; xbitmap64_hweight() local
255 struct xbitmap64_node *bn; xbitmap64_walk() local
282 struct xbitmap64_node *bn; xbitmap64_test() local
337 for_each_xbitmap32_extent(bn,bitmap) INTERVAL_TREE_DEFINE() argument
351 struct xbitmap32_node *bn; global() local
458 struct xbitmap32_node *bn; xbitmap32_destroy() local
493 struct xbitmap32_node *bn; xbitmap32_disunion() local
514 struct xbitmap32_node *bn; xbitmap32_hweight() local
530 struct xbitmap32_node *bn; xbitmap32_walk() local
557 struct xbitmap32_node *bn; xbitmap32_test() local
577 struct xbitmap32_node *bn; xbitmap32_count_set_regions() local
[all...]
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_netdev.c52 struct bnge_net *bn = netdev_priv(bd->netdev); in bnge_set_tpa_flags() local
54 bn->priv_flags &= ~BNGE_NET_EN_TPA; in bnge_set_tpa_flags()
57 bn->priv_flags |= BNGE_NET_EN_LRO; in bnge_set_tpa_flags()
59 bn->priv_flags |= BNGE_NET_EN_GRO; in bnge_set_tpa_flags()
62 static void bnge_init_l2_fltr_tbl(struct bnge_net *bn) in bnge_init_l2_fltr_tbl() argument
67 INIT_HLIST_HEAD(&bn->l2_fltr_hash_tbl[i]); in bnge_init_l2_fltr_tbl()
68 get_random_bytes(&bn->hash_seed, sizeof(bn->hash_seed)); in bnge_init_l2_fltr_tbl()
73 struct bnge_net *bn = netdev_priv(bd->netdev); in bnge_set_ring_params() local
78 rx_size = SKB_DATA_ALIGN(bn in bnge_set_ring_params()
158 struct bnge_net *bn; bnge_netdev_alloc() local
[all...]
H A Dbnge_ethtool.c18 struct bnge_net *bn = netdev_priv(dev); in bnge_get_drvinfo() local
19 struct bnge_dev *bd = bn->bd; in bnge_get_drvinfo()
H A Dbnge.h204 struct bnge_net *bn = netdev_priv(bd->netdev); in bnge_is_agg_reqd() local
206 if (bn->priv_flags & BNGE_NET_EN_TPA || in bnge_is_agg_reqd()
207 bn->priv_flags & BNGE_NET_EN_JUMBO) in bnge_is_agg_reqd()
/linux/fs/bcachefs/
H A Dbtree_io.h114 struct btree_node *bn = container_of(i, struct btree_node, keys); in bset_encrypt() local
115 unsigned bytes = (void *) &bn->keys - (void *) &bn->flags; in bset_encrypt()
118 &bn->flags, bytes); in bset_encrypt()
211 struct btree_node *bn) in compat_btree_node() argument
215 !bpos_eq(bn->min_key, POS_MIN) && in compat_btree_node()
217 bn->min_key = bpos_nosnap_predecessor(bn->min_key); in compat_btree_node()
221 bn->max_key.snapshot = 0; in compat_btree_node()
223 compat_bpos(level, btree_id, version, big_endian, write, &bn in compat_btree_node()
[all...]
H A Dbtree_node_scan.c132 struct btree_node *bn = b->data; in try_read_btree_node() local
149 if (le64_to_cpu(bn->magic) != bset_magic(c)) in try_read_btree_node()
152 if (bch2_csum_type_is_encryption(BSET_CSUM_TYPE(&bn->keys))) { in try_read_btree_node()
156 struct nonce nonce = btree_nonce(&bn->keys, 0); in try_read_btree_node()
157 unsigned bytes = (void *) &bn->keys - (void *) &bn->flags; in try_read_btree_node()
159 bch2_encrypt(c, BSET_CSUM_TYPE(&bn->keys), nonce, &bn->flags, bytes); in try_read_btree_node()
162 if (btree_id_is_alloc(BTREE_NODE_ID(bn))) in try_read_btree_node()
165 if (BTREE_NODE_LEVEL(bn) > in try_read_btree_node()
[all...]
H A Dbtree_io.c29 static void bch2_btree_node_header_to_text(struct printbuf *out, struct btree_node *bn) in bch2_btree_node_header_to_text() argument
31 bch2_btree_id_level_to_text(out, BTREE_NODE_ID(bn), BTREE_NODE_LEVEL(bn)); in bch2_btree_node_header_to_text()
32 prt_printf(out, " seq %llx %llu\n", bn->keys.seq, BTREE_NODE_SEQ(bn)); in bch2_btree_node_header_to_text()
34 bch2_bpos_to_text(out, bn->min_key); in bch2_btree_node_header_to_text()
37 bch2_bpos_to_text(out, bn->max_key); in bch2_btree_node_header_to_text()
793 struct btree_node *bn = in validate_bset() local
802 btree_err_on(bp->seq != bn->keys.seq, in validate_bset()
809 btree_err_on(BTREE_NODE_ID(bn) ! in validate_bset()
1521 struct btree_node *bn = data; btree_node_sectors_written() local
1544 struct btree_node *bn = data; btree_node_has_extra_bsets() local
1577 struct btree_node *bn = ra->buf[i]; CLOSURE_CALLBACK() local
1618 struct btree_node *bn = ra->buf[i]; CLOSURE_CALLBACK() local
2325 struct btree_node *bn = NULL; __bch2_btree_node_write() local
[all...]
/linux/drivers/char/
H A Dbsr.c169 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, NUL in bsr_create_devs()
[all...]
/linux/fs/freevxfs/
H A Dvxfs_bmap.c32 * @bn: logical block.
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 in vxfs_bmap_ext4()
[all...]
/linux/fs/jfs/
H A Djfs_dtree.c322 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
360 DTSaddress(dirtab_slot, bn); in add_index()
465 DTSaddress(dirtab_slot, bn); in add_index()
512 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
522 DTSaddress(dirtab_slot, bn); in modify_index()
573 s64 bn; in dtSearch() local
620 * by convention, root bn = 0. in dtSearch()
622 for (bn = 0;;) { in dtSearch()
624 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
699 btsp->bn in dtSearch()
821 s64 bn; dtInsert() local
2082 s64 bn; dtDelete() local
2616 add_missing_indices(struct inode * inode,s64 bn) add_missing_indices() argument
2725 s64 bn; jfs_readdir() local
3063 s64 bn; dtReadFirst() local
3148 s64 bn; dtReadNext() local
3644 s64 bn = 0; dtInsertEntry() local
4248 s64 bn; dtModify() local
[all...]
H A Djfs_btree.h18 s64 next; right sibling bn
19 s64 prev; left sibling bn
99 s64 bn; /* 8: */ member
120 (BTSTACK)->top->bn = BN;\
136 printk(KERN_ERR "bn = %Lx, index = %d\n", in BT_STACK_DUMP()
137 (long long)btstack->stack[i].bn, in BT_STACK_DUMP()
144 BN = (LEAF)->bn;\
/linux/drivers/net/bonding/
H A Dbond_sysfs.c38 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()
62 static struct net_device *bond_get_by_name(const struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
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
809 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
810 sysfs_attr_init(&bn in bond_create_sysfs()
838 bond_destroy_sysfs(struct bond_net * bn) bond_destroy_sysfs() argument
[all...]
H A Dbond_main.c6554 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local
6568 list_add_tail_rcu(&bond->bond_list, &bn->dev_list); in bond_init()
6627 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local
6629 bn->net = net; in bond_net_init()
6630 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init()
6632 bond_create_proc_dir(bn); in bond_net_init()
6633 bond_create_sysfs(bn); in bond_net_init()
6644 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_pre_exit() local
6646 bond_destroy_sysfs(bn); in bond_net_pre_exit()
6652 struct bond_net *bn in bond_net_exit_rtnl() local
6666 struct bond_net *bn; bond_net_exit_batch() local
[all...]
/linux/lib/
H A Dmaple_tree.c163 struct maple_big_node *bn; member
1864 * @bn: The maple_big_node with the data
1870 struct maple_big_node *bn, unsigned char *mid_split) in mab_calc_split() argument
1872 unsigned char b_end = bn->b_end; in mab_calc_split()
1874 unsigned char slot_count = mt_slots[bn->type]; in mab_calc_split()
1884 split = b_end - mt_min_slots[bn->type]; in mab_calc_split()
1886 if (!ma_is_leaf(bn->type)) in mab_calc_split()
1890 if (!bn->slot[split]) in mab_calc_split()
1903 if (unlikely(mab_middle_node(bn, split, slot_count))) { in mab_calc_split()
1911 split = mab_no_null_split(bn, spli in mab_calc_split()
[all...]
/linux/drivers/accessibility/speakup/
H A Dmain.c864 static int bn; variable
869 bn = currbuf; in say_sentence_num()
871 if (prev && --bn == -1) in say_sentence_num()
872 bn = 1; in say_sentence_num()
874 if (num > numsentences[bn]) 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 in get_sentence_buf()
[all...]
/linux/fs/gfs2/
H A Dxattr.c153 u64 bn; in ea_foreach() local
157 bn = be64_to_cpu(*eablk); in ea_foreach()
159 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &eabh); in ea_foreach()
242 u64 bn = 0; in ea_dealloc_unstuffed() local
260 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
266 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
288 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
290 if (bstart + blen == bn) in ea_dealloc_unstuffed()
295 bstart = bn; in ea_dealloc_unstuffed()
1299 u64 bn; in ea_dealloc_indirect() local
1344 u64 bn; ea_dealloc_indirect() local
[all...]
H A Ddir.c868 u64 bn; in new_leaf() local
875 error = gfs2_alloc_blocks(ip, &bn, &n, 0); in new_leaf()
878 bh = gfs2_meta_new(ip->i_gl, bn); in new_leaf()
882 gfs2_trans_remove_revoke(GFS2_SB(inode), bn, 1); 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()
1006 u64 bn, leaf_no; in dir_split_leaf() local
1035 bn = nbh->b_blocknr; in dir_split_leaf()
1061 lp[x] = cpu_to_be64(bn); in dir_split_leaf()
1732 u64 bn; dir_new_leaf() local
[all...]
H A Dbmap.c610 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
708 ret = gfs2_alloc_blocks(ip, &bn, &n, 0); in __gfs2_iomap_alloc()
713 gfs2_trans_remove_revoke(sdp, bn, n); in __gfs2_iomap_alloc()
724 gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++); in __gfs2_iomap_alloc()
753 mp->mp_list[i-1], bn++); in __gfs2_iomap_alloc()
765 iomap->addr = bn << inode->i_blkbits; in __gfs2_iomap_alloc()
768 *ptr++ = cpu_to_be64(bn in __gfs2_iomap_alloc()
1469 u64 bn, bstart, isize_blks; sweep_bh_for_rgrps() local
[all...]
H A Drgrp.h44 int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
/linux/drivers/md/persistent-data/
H A Ddm-btree.c1472 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()
1479 memcpy(&value_le, value_ptr(bn, i), sizeof(value_le)); 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()
1534 if (n->index < le32_to_cpu(bn->header.nr_entries)) in inc_or_backtrack()
1547 struct btree_node *bn; in find_leaf() local
1552 bn in find_leaf()
1625 struct btree_node *bn = dm_block_data(n->b); dm_btree_cursor_get_value() local
[all...]
/linux/drivers/net/
H A Dbareudp.c633 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() argument
638 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev()
649 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() local
655 t = bareudp_find_dev(bn, conf); in bareudp_configure()
677 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure()
775 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_init_net() local
777 INIT_LIST_HEAD(&bn->bareudp_list); in bareudp_init_net()
784 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_exit_rtnl_net() local
787 list_for_each_entry_safe(bareudp, next, &bn->bareudp_list, next) in bareudp_exit_rtnl_net()
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dvsc7326_reg.h84 * bn = bucket number 0-10 (yes, 11 buckets)
87 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
/linux/include/net/
H A Dbonding.h718 void bond_create_proc_dir(struct bond_net *bn);
719 void bond_destroy_proc_dir(struct bond_net *bn);
729 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
733 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
/linux/drivers/infiniband/hw/mlx4/
H A Dmad.c226 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_nu in smp_snoop()
[all...]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_entity.h228 u8 bn[PN_LEN + 1]; member

12