Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/bonding/
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->net->proc_net); in bond_create_proc_dir()
318 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()
806 int 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->class_attr_bonding_masters.attr); in bond_create_sysfs()
[all …]
Dbond_main.c6268 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local
6279 list_add_tail(&bond->bond_list, &bn->dev_list); in bond_init()
6338 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local
6340 bn->net = net; in bond_net_init()
6341 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init()
6343 bond_create_proc_dir(bn); in bond_net_init()
6344 bond_create_sysfs(bn); in bond_net_init()
6351 struct bond_net *bn; in bond_net_exit_batch() local
6356 bn = net_generic(net, bond_net_id); in bond_net_exit_batch()
6357 bond_destroy_sysfs(bn); in bond_net_exit_batch()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/fs/freevxfs/
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()
/linux-6.1.9/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.c128 s64 bn; in xtLookup() local
164 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
221 s64 bn; /* block number */ in xtSearch() local
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 = bn; in xtSearch()
441 btsp->bn = bn; in xtSearch()
483 BT_PUSH(btstack, bn, index); in xtSearch()
486 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;\
/linux-6.1.9/lib/
Dmaple_tree.c146 struct maple_big_node *bn; member
1832 struct maple_big_node *bn, unsigned char *mid_split, unsigned long min) in mab_calc_split() argument
1834 unsigned char b_end = bn->b_end; in mab_calc_split()
1836 unsigned char slot_min, slot_count = mt_slots[bn->type]; in mab_calc_split()
1846 split = b_end - mt_min_slots[bn->type]; in mab_calc_split()
1848 if (!ma_is_leaf(bn->type)) in mab_calc_split()
1852 if (!bn->slot[split]) in mab_calc_split()
1865 if (unlikely(mab_middle_node(bn, split, slot_count))) { in mab_calc_split()
1869 slot_min = mt_min_slots[bn->type]; in mab_calc_split()
1877 while (((bn->pivot[split] - min) < slot_count - 1) && in mab_calc_split()
[all …]
/linux-6.1.9/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()
877 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage() local
892 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage()
[all …]
/linux-6.1.9/drivers/accessibility/speakup/
Dmain.c863 static int bn; variable
868 bn = currbuf; in say_sentence_num()
870 if (prev && --bn == -1) in say_sentence_num()
871 bn = 1; in say_sentence_num()
873 if (num > numsentences[bn]) in say_sentence_num()
876 spkup_write(sentmarks[bn][num], sentbufend[bn] - sentmarks[bn][num]); in say_sentence_num()
883 int i, bn; in get_sentence_buf() local
889 bn = currbuf; in get_sentence_buf()
893 numsentences[bn] = 0; in get_sentence_buf()
894 sentmarks[bn][0] = &sentbuf[bn][0]; in get_sentence_buf()
[all …]
/linux-6.1.9/fs/gfs2/
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
[all …]
Ddir.c864 u64 bn; in new_leaf() local
871 error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); in new_leaf()
874 bh = gfs2_meta_new(ip->i_gl, bn); in new_leaf()
878 gfs2_trans_remove_revoke(GFS2_SB(inode), bn, 1); in new_leaf()
915 u64 bn; in dir_make_exhash() local
927 bn = bh->b_blocknr; in dir_make_exhash()
974 *lp = cpu_to_be64(bn); in dir_make_exhash()
1005 u64 bn, leaf_no; in dir_split_leaf() local
1034 bn = nbh->b_blocknr; in dir_split_leaf()
1060 lp[x] = cpu_to_be64(bn); in dir_split_leaf()
[all …]
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, NULL); 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()
[all …]
Drgrp.h44 extern int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
/linux-6.1.9/drivers/net/
Dbareudp.c600 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() argument
605 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev()
616 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() local
622 t = bareudp_find_dev(bn, conf); in bareudp_configure()
644 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure()
739 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_init_net() local
741 INIT_LIST_HEAD(&bn->bareudp_list); in bareudp_init_net()
747 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_destroy_tunnels() local
750 list_for_each_entry_safe(bareudp, next, &bn->bareudp_list, next) in bareudp_destroy_tunnels()
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/md/persistent-data/
Ddm-btree.c1461 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local
1466 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values()
1468 memcpy(&value_le, value_ptr(bn, i), sizeof(value_le)); in prefetch_values()
1476 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local
1478 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node()
1513 struct btree_node *bn; in inc_or_backtrack() local
1520 bn = dm_block_data(n->b); in inc_or_backtrack()
1523 if (n->index < le32_to_cpu(bn->header.nr_entries)) in inc_or_backtrack()
1536 struct btree_node *bn; in find_leaf() local
1541 bn = dm_block_data(n->b); in find_leaf()
[all …]
/linux-6.1.9/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
/linux-6.1.9/drivers/nvme/target/
Dnvmet.h422 static inline void nvmet_clear_aen_bit(struct nvmet_req *req, u32 bn) in nvmet_clear_aen_bit() argument
427 clear_bit(bn, &req->sq->ctrl->aen_masked); in nvmet_clear_aen_bit()
430 static inline bool nvmet_aen_bit_disabled(struct nvmet_ctrl *ctrl, u32 bn) in nvmet_aen_bit_disabled() argument
432 if (!(READ_ONCE(ctrl->aen_enabled) & (1 << bn))) in nvmet_aen_bit_disabled()
434 return test_and_set_bit(bn, &ctrl->aen_masked); in nvmet_aen_bit_disabled()
/linux-6.1.9/include/net/
Dbonding.h695 void bond_create_proc_dir(struct bond_net *bn);
696 void bond_destroy_proc_dir(struct bond_net *bn);
706 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
710 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
/linux-6.1.9/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()
/linux-6.1.9/drivers/crypto/
Dsa2ul.c786 unsigned long bn; in sa_free_ctx_info() local
788 bn = ctx->sc_id - data->sc_id_start; in sa_free_ctx_info()
790 __clear_bit(bn, data->ctx_bm); in sa_free_ctx_info()
803 unsigned long bn; in sa_init_ctx_info() local
807 bn = find_first_zero_bit(data->ctx_bm, SA_MAX_NUM_CTX); in sa_init_ctx_info()
808 __set_bit(bn, data->ctx_bm); in sa_init_ctx_info()
812 ctx->sc_id = (u16)(data->sc_id_start + bn); in sa_init_ctx_info()
825 __clear_bit(bn, data->ctx_bm); in sa_init_ctx_info()
/linux-6.1.9/drivers/pci/controller/
Dpcie-mediatek.c367 u32 bn = bus->number; in mtk_pcie_config_read() local
373 return mtk_pcie_hw_rd_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_read()
380 u32 bn = bus->number; in mtk_pcie_config_write() local
386 return mtk_pcie_hw_wr_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_write()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_entity.h228 u8 bn[PN_LEN + 1]; member

12