Home
last modified time | relevance | path

Searched refs:bn (Results 1 - 25 of 76) sorted by relevance

1234

/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dbitmap.c59 #define for_each_xbitmap_extent(bn, bitmap) \
60 for ((bn) = rb_entry_safe(rb_first(&(bitmap)->xb_root.rb_root), \
62 (bn) != NULL; \
63 (bn) = rb_entry_safe(rb_next(&(bn)->bn_rbnode), \
73 struct xbitmap_node *bn; in xbitmap_clear() local
77 while ((bn = xbitmap_tree_iter_first(&bitmap->xb_root, start, last))) { in xbitmap_clear()
78 if (bn->bn_start < start && bn->bn_last > last) { in xbitmap_clear()
79 uint64_t old_last = bn in xbitmap_clear()
180 struct xbitmap_node *bn; xbitmap_destroy() local
215 struct xbitmap_node *bn; xbitmap_disunion() local
325 struct xbitmap_node *bn; xbitmap_hweight() local
341 struct xbitmap_node *bn; xbitmap_walk() local
368 struct xbitmap_node *bn; xbitmap_test() local
[all...]
/kernel/linux/linux-5.10/drivers/net/bonding/
H A Dbond_procfs.c265 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local
267 if (bn->proc_dir) { in bond_create_proc_entry()
269 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry()
281 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local
283 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry()
284 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry()
293 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
295 if (!bn->proc_dir) { in bond_create_proc_dir()
296 bn->proc_dir = proc_mkdir(DRV_NAME, bn in bond_create_proc_dir()
306 bond_destroy_proc_dir(struct bond_net *bn) bond_destroy_proc_dir() argument
[all...]
H A Dbond_sysfs.c38 struct bond_net *bn = in bonding_show_bonds() local
45 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
62 static struct net_device *bond_get_by_name(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 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()
771 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
775 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
776 sysfs_attr_init(&bn in bond_create_sysfs()
804 bond_destroy_sysfs(struct bond_net *bn) bond_destroy_sysfs() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/bonding/
H A Dbond_procfs.c286 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local
288 if (bn->proc_dir) { in bond_create_proc_entry()
290 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry()
302 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local
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 in bond_create_proc_dir()
326 bond_destroy_proc_dir(struct bond_net *bn) bond_destroy_proc_dir() argument
[all...]
H A Dbond_sysfs.c38 const struct bond_net *bn = in bonding_show_bonds() local
45 list_for_each_entry(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()
806 int __net_init bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
810 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
811 sysfs_attr_init(&bn in bond_create_sysfs()
839 bond_destroy_sysfs(struct bond_net *bn) bond_destroy_sysfs() argument
[all...]
/kernel/linux/linux-5.10/fs/freevxfs/
H A Dvxfs_bmap.c67 vxfs_bmap_ext4(struct inode *ip, long bn) in vxfs_bmap_ext4() argument
81 if (bn >= 0 && bn < fs32_to_cpu(sbi, d->size)) in vxfs_bmap_ext4()
82 return (bn + fs32_to_cpu(sbi, d->extent)); in vxfs_bmap_ext4()
83 bn -= fs32_to_cpu(sbi, d->size); in vxfs_bmap_ext4()
86 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4()
97 bno = fs32_to_cpu(sbi, indir[(bn / indsize) % (indsize * bn)]) + in vxfs_bmap_ext4()
98 (bn % indsize); in vxfs_bmap_ext4()
/kernel/linux/linux-6.6/fs/freevxfs/
H A Dvxfs_bmap.c43 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()
/kernel/linux/linux-5.10/fs/jfs/
H A Djfs_xtree.c139 s64 bn; in xtLookup() local
175 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
222 * btstack contains (bn, index) of search path traversed to the entry.
232 s64 bn; /* block number */ in xtSearch() local
262 * by convention, root bn = 0. in xtSearch()
264 for (bn = 0;;) { in xtSearch()
266 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearch()
347 btsp->bn = bn; in xtSearch()
394 btsp->bn in xtSearch()
532 s64 bn; xtInsert() local
1356 s64 bn; xtExtend() local
1519 s64 bn; xtTailgate() local
1698 s64 bn; xtUpdate() local
2165 s64 bn, xaddr; xtAppend() local
2331 s64 bn; xtDelete() local
2564 s64 bn; xtRelocate() local
2885 s64 bn; /* block number */ xtSearchNode() local
3155 s64 bn; xtTruncate() local
3707 s64 bn; xtTruncate_pmap() local
[all...]
H A Djfs_dtree.c321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
359 DTSaddress(dirtab_slot, bn); in add_index()
464 DTSaddress(dirtab_slot, bn); in add_index()
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
521 DTSaddress(dirtab_slot, bn); in modify_index()
572 s64 bn; in dtSearch() local
619 * by convention, root bn = 0. in dtSearch()
621 for (bn = 0;;) { in dtSearch()
623 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
698 btsp->bn in dtSearch()
820 s64 bn; dtInsert() local
2079 s64 bn; dtDelete() local
2444 s64 bn; dtRelocate() local
2639 s64 bn; dtSearchNode() local
2911 add_missing_indices(struct inode *inode, s64 bn) add_missing_indices() argument
3009 s64 bn; jfs_readdir() local
3338 s64 bn; dtReadFirst() local
3416 s64 bn; dtReadNext() local
3912 s64 bn = 0; dtInsertEntry() local
4516 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;\
/kernel/linux/linux-6.6/fs/jfs/
H A Djfs_xtree.c128 s64 bn; in xtLookup() local
164 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
211 * btstack contains (bn, index) of search path traversed to the entry.
221 s64 bn; /* block number */ in xtSearch() local
251 * by convention, root bn = 0. in xtSearch()
253 for (bn = 0;;) { in xtSearch()
255 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearch()
336 btsp->bn = bn; in xtSearch()
383 btsp->bn in xtSearch()
521 s64 bn; xtInsert() local
1345 s64 bn; xtExtend() local
1504 s64 bn; xtUpdate() local
1950 s64 bn, xaddr; xtAppend() local
2194 s64 bn; xtTruncate() local
2746 s64 bn; xtTruncate_pmap() local
[all...]
H A Djfs_dtree.c321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
359 DTSaddress(dirtab_slot, bn); in add_index()
464 DTSaddress(dirtab_slot, bn); in add_index()
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
521 DTSaddress(dirtab_slot, bn); in modify_index()
572 s64 bn; in dtSearch() local
619 * by convention, root bn = 0. in dtSearch()
621 for (bn = 0;;) { in dtSearch()
623 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
698 btsp->bn in dtSearch()
820 s64 bn; dtInsert() local
2079 s64 bn; dtDelete() local
2613 add_missing_indices(struct inode *inode, s64 bn) add_missing_indices() argument
2711 s64 bn; jfs_readdir() local
3040 s64 bn; dtReadFirst() local
3118 s64 bn; dtReadNext() local
3614 s64 bn = 0; dtInsertEntry() local
4218 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;\
/kernel/linux/linux-5.10/drivers/char/
H A Dbsr.c166 static int bsr_add_node(struct device_node *bn) in bsr_add_node() argument
174 bsr_stride = of_get_property(bn, "ibm,lock-stride", &bsr_stride_len); in bsr_add_node()
175 bsr_bytes = of_get_property(bn, "ibm,#lock-bytes", &bsr_bytes_len); in bsr_add_node()
197 result = of_address_to_resource(bn, i, &res); in bsr_add_node()
271 static int bsr_create_devs(struct device_node *bn) in bsr_create_devs() argument
275 while (bn) { in bsr_create_devs()
276 ret = bsr_add_node(bn); in bsr_create_devs()
278 of_node_put(bn); in bsr_create_devs()
281 bn = of_find_compatible_node(bn, NUL in bsr_create_devs()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-6.6/lib/
H A Dmaple_tree.c147 struct maple_big_node *bn; member
1867 * @bn: The maple_big_node with the data
1873 struct maple_big_node *bn, unsigned char *mid_split, unsigned long min) in mab_calc_split()
1875 unsigned char b_end = bn->b_end; in mab_calc_split()
1877 unsigned char slot_min, slot_count = mt_slots[bn->type]; in mab_calc_split()
1887 split = b_end - mt_min_slots[bn->type]; in mab_calc_split()
1889 if (!ma_is_leaf(bn->type)) in mab_calc_split()
1893 if (!bn->slot[split]) in mab_calc_split()
1906 if (unlikely(mab_middle_node(bn, split, slot_count))) { in mab_calc_split()
1910 slot_min = mt_min_slots[bn in mab_calc_split()
1872 mab_calc_split(struct ma_state *mas, struct maple_big_node *bn, unsigned char *mid_split, unsigned long min) mab_calc_split() argument
3444 mas_reuse_node(struct ma_wr_state *wr_mas, struct maple_big_node *bn, unsigned char end) mas_reuse_node() argument
[all...]
/kernel/linux/linux-5.10/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...]
/kernel/linux/linux-5.10/drivers/md/persistent-data/
H A Ddm-btree.c1003 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local
1008 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values()
1010 memcpy(&value_le, value_ptr(bn, i), sizeof(value_le)); in prefetch_values()
1018 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local
1020 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node()
1055 struct btree_node *bn; in inc_or_backtrack() local
1062 bn = dm_block_data(n->b); in inc_or_backtrack()
1065 if (n->index < le32_to_cpu(bn->header.nr_entries)) in inc_or_backtrack()
1078 struct btree_node *bn; in find_leaf() local
1083 bn in find_leaf()
1155 struct btree_node *bn = dm_block_data(n->b); dm_btree_cursor_get_value() local
[all...]
/kernel/linux/linux-5.10/fs/gfs2/
H A Dxattr.c138 u64 bn; in ea_foreach() local
142 bn = be64_to_cpu(*eablk); in ea_foreach()
144 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &eabh); in ea_foreach()
232 u64 bn = 0; in ea_dealloc_unstuffed() local
250 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
256 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
277 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
279 if (bstart + blen == bn) in ea_dealloc_unstuffed()
284 bstart = bn; in ea_dealloc_unstuffed()
1283 u64 bn; in ea_dealloc_indirect() local
1328 u64 bn; ea_dealloc_indirect() local
[all...]
/kernel/linux/linux-6.6/fs/gfs2/
H A Dxattr.c149 u64 bn; in ea_foreach() local
153 bn = be64_to_cpu(*eablk); in ea_foreach()
155 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &eabh); in ea_foreach()
238 u64 bn = 0; in ea_dealloc_unstuffed() local
256 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
262 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
284 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
286 if (bstart + blen == bn) in ea_dealloc_unstuffed()
291 bstart = bn; in ea_dealloc_unstuffed()
1295 u64 bn; in ea_dealloc_indirect() local
1340 u64 bn; ea_dealloc_indirect() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/storage/
H A Dene_ub6250.c678 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read() local
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()
718 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write() local
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()
876 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage() local
891 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage()
1189 u32 bn = PhyBlockAddr; ms_read_eraseblock() local
1641 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | ms_scsi_read() local
1740 u32 bn = ((cdb[2] << 24) & 0xff000000) | ms_scsi_write() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/storage/
H A Dene_ub6250.c678 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read() local
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()
718 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write() local
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()
877 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage() local
892 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage()
1190 u32 bn = PhyBlockAddr; ms_read_eraseblock() local
1642 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | ms_scsi_read() local
1741 u32 bn = ((cdb[2] << 24) & 0xff000000) | ms_scsi_write() local
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/fs/reiserfs/
H A Djournal.c138 struct reiserfs_bitmap_node *bn; in allocate_bitmap_node() local
141 bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS); in allocate_bitmap_node()
142 if (!bn) { in allocate_bitmap_node()
145 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node()
146 if (!bn->data) { in allocate_bitmap_node()
147 kfree(bn); in allocate_bitmap_node()
150 bn->id = id++; in allocate_bitmap_node()
151 INIT_LIST_HEAD(&bn->list); in allocate_bitmap_node()
152 return bn; in allocate_bitmap_node()
158 struct reiserfs_bitmap_node *bn in get_bitmap_node() local
178 free_bitmap_node(struct super_block *sb, struct reiserfs_bitmap_node *bn) free_bitmap_node() argument
196 struct reiserfs_bitmap_node *bn = NULL; allocate_bitmap_nodes() local
260 struct reiserfs_bitmap_node *bn; free_bitmap_nodes() local
974 b_blocknr_t bn; flush_commit_list() local
[all...]
/kernel/linux/linux-6.6/fs/reiserfs/
H A Djournal.c138 struct reiserfs_bitmap_node *bn; in allocate_bitmap_node() local
141 bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS); in allocate_bitmap_node()
142 if (!bn) { in allocate_bitmap_node()
145 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node()
146 if (!bn->data) { in allocate_bitmap_node()
147 kfree(bn); in allocate_bitmap_node()
150 bn->id = id++; in allocate_bitmap_node()
151 INIT_LIST_HEAD(&bn->list); in allocate_bitmap_node()
152 return bn; in allocate_bitmap_node()
158 struct reiserfs_bitmap_node *bn in get_bitmap_node() local
178 free_bitmap_node(struct super_block *sb, struct reiserfs_bitmap_node *bn) free_bitmap_node() argument
196 struct reiserfs_bitmap_node *bn = NULL; allocate_bitmap_nodes() local
260 struct reiserfs_bitmap_node *bn; free_bitmap_nodes() local
974 b_blocknr_t bn; flush_commit_list() local
[all...]

Completed in 43 milliseconds

1234