Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/bonding/
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->net->proc_net); in bond_create_proc_dir()
297 if (!bn->proc_dir) in bond_create_proc_dir()
[all …]
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->class_attr_bonding_masters.attr); in bond_create_sysfs()
[all …]
Dbond_main.c5355 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local
5366 list_add_tail(&bond->bond_list, &bn->dev_list); in bond_init()
5437 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local
5439 bn->net = net; in bond_net_init()
5440 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init()
5442 bond_create_proc_dir(bn); in bond_net_init()
5443 bond_create_sysfs(bn); in bond_net_init()
5450 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_exit() local
5454 bond_destroy_sysfs(bn); in bond_net_exit()
5458 list_for_each_entry_safe(bond, tmp_bond, &bn->dev_list, bond_list) in bond_net_exit()
[all …]
/kernel/linux/linux-5.10/drivers/char/
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, NULL, "ibm,bsr"); in bsr_create_devs()
/kernel/linux/linux-5.10/fs/freevxfs/
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-5.10/fs/jfs/
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
621 for (bn = 0;;) { in dtSearch()
623 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
693 btsp->bn = bn; in dtSearch()
742 btsp->bn = bn; in dtSearch()
[all …]
Djfs_xtree.c139 s64 bn; in xtLookup() local
175 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
232 s64 bn; /* block number */ in xtSearch() local
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 = bn; in xtSearch()
452 btsp->bn = bn; in xtSearch()
494 BT_PUSH(btstack, bn, index); in xtSearch()
497 bn = addressXAD(&p->xad[index]); in xtSearch()
[all …]
Djfs_btree.h99 s64 bn; /* 8: */ member
120 (BTSTACK)->top->bn = BN;\
137 (long long)btstack->stack[i].bn, in BT_STACK_DUMP()
144 BN = (LEAF)->bn;\
/kernel/linux/linux-5.10/drivers/usb/storage/
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()
[all …]
/kernel/linux/linux-5.10/drivers/md/persistent-data/
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 = dm_block_data(n->b); in find_leaf()
[all …]
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
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 = currbuf; in get_sentence_buf()
894 numsentences[bn] = 0; in get_sentence_buf()
895 sentmarks[bn][0] = &sentbuf[bn][0]; in get_sentence_buf()
[all …]
/kernel/linux/linux-5.10/fs/gfs2/
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
[all …]
Ddir.c866 u64 bn; in new_leaf() local
873 error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); in new_leaf()
876 bh = gfs2_meta_new(ip->i_gl, bn); in new_leaf()
880 gfs2_trans_remove_revoke(GFS2_SB(inode), bn, 1); in new_leaf()
917 u64 bn; in dir_make_exhash() local
929 bn = bh->b_blocknr; in dir_make_exhash()
976 *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()
[all …]
Dbmap.c611 unsigned offset, u64 bn) in gfs2_indirect_init() argument
618 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init()
623 *ptr = cpu_to_be64(bn); in gfs2_indirect_init()
669 u64 bn; in gfs2_iomap_alloc() local
710 ret = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); in gfs2_iomap_alloc()
715 gfs2_trans_remove_revoke(sdp, bn, n); in gfs2_iomap_alloc()
726 gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++); in gfs2_iomap_alloc()
755 mp->mp_list[i-1], bn++); in gfs2_iomap_alloc()
767 iomap->addr = bn << inode->i_blkbits; in gfs2_iomap_alloc()
770 *ptr++ = cpu_to_be64(bn++); in gfs2_iomap_alloc()
[all …]
Drgrp.h44 extern int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
/kernel/linux/linux-5.10/fs/reiserfs/
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 = NULL; in get_bitmap_node() local
[all …]
/kernel/linux/linux-5.10/drivers/net/
Dbareudp.c593 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() argument
598 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev()
608 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() local
614 t = bareudp_find_dev(bn, conf); in bareudp_configure()
632 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure()
765 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_init_net() local
767 INIT_LIST_HEAD(&bn->bareudp_list); in bareudp_init_net()
773 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_destroy_tunnels() local
776 list_for_each_entry_safe(bareudp, next, &bn->bareudp_list, next) in bareudp_destroy_tunnels()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dnvmet.h377 static inline void nvmet_clear_aen_bit(struct nvmet_req *req, u32 bn) in nvmet_clear_aen_bit() argument
382 clear_bit(bn, &req->sq->ctrl->aen_masked); in nvmet_clear_aen_bit()
385 static inline bool nvmet_aen_bit_disabled(struct nvmet_ctrl *ctrl, u32 bn) in nvmet_aen_bit_disabled() argument
387 if (!(READ_ONCE(ctrl->aen_enabled) & (1 << bn))) in nvmet_aen_bit_disabled()
389 return test_and_set_bit(bn, &ctrl->aen_masked); in nvmet_aen_bit_disabled()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/
Dvsc7326_reg.h87 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
/kernel/linux/linux-5.10/include/net/
Dbonding.h666 void bond_create_proc_dir(struct bond_net *bn);
667 void bond_destroy_proc_dir(struct bond_net *bn);
677 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
681 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
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_num, in smp_snoop()
/kernel/linux/linux-5.10/drivers/crypto/
Dsa2ul.c764 unsigned long bn; in sa_free_ctx_info() local
766 bn = ctx->sc_id - data->sc_id_start; in sa_free_ctx_info()
768 __clear_bit(bn, data->ctx_bm); in sa_free_ctx_info()
781 unsigned long bn; in sa_init_ctx_info() local
785 bn = find_first_zero_bit(data->ctx_bm, SA_MAX_NUM_CTX); in sa_init_ctx_info()
786 __set_bit(bn, data->ctx_bm); in sa_init_ctx_info()
790 ctx->sc_id = (u16)(data->sc_id_start + bn); in sa_init_ctx_info()
803 __clear_bit(bn, data->ctx_bm); in sa_init_ctx_info()
/kernel/linux/linux-5.10/drivers/pci/controller/
Dpcie-mediatek.c361 u32 bn = bus->number; in mtk_pcie_config_read() local
370 ret = mtk_pcie_hw_rd_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_read()
381 u32 bn = bus->number; in mtk_pcie_config_write() local
387 return mtk_pcie_hw_wr_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_write()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_buddy.c410 struct i915_buddy_block *block, *bn; in igt_buddy_alloc_pessimistic() local
468 list_for_each_entry_safe(block, bn, &blocks, link) { in igt_buddy_alloc_pessimistic()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_entity.h231 u8 bn[PN_LEN + 1]; member

12