Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/bonding/
Dbond_procfs.c284 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local
286 if (bn->proc_dir) { in bond_create_proc_entry()
288 S_IRUGO, bn->proc_dir, in bond_create_proc_entry()
301 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local
303 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry()
304 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry()
313 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
315 if (!bn->proc_dir) { in bond_create_proc_dir()
316 bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); in bond_create_proc_dir()
317 if (!bn->proc_dir) in bond_create_proc_dir()
[all …]
Dbond_sysfs.c55 struct bond_net *bn = in bonding_show_bonds() local
62 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
79 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
83 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
99 struct bond_net *bn = in bonding_store_bonds() local
113 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
125 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.c4594 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local
4604 list_add_tail(&bond->bond_list, &bn->dev_list); in bond_init()
4669 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local
4671 bn->net = net; in bond_net_init()
4672 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init()
4674 bond_create_proc_dir(bn); in bond_net_init()
4675 bond_create_sysfs(bn); in bond_net_init()
4682 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_exit() local
4686 bond_destroy_sysfs(bn); in bond_net_exit()
4690 list_for_each_entry_safe(bond, tmp_bond, &bn->dev_list, bond_list) in bond_net_exit()
[all …]
/linux-4.4.14/fs/freevxfs/
Dvxfs_bmap.c67 vxfs_bmap_ext4(struct inode *ip, long bn) in vxfs_bmap_ext4() argument
80 if (bn >= 0 && bn < d->size) in vxfs_bmap_ext4()
81 return (bn + d->extent); in vxfs_bmap_ext4()
82 bn -= d->size; in vxfs_bmap_ext4()
85 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4()
95 bno = indir[(bn/indsize) % (indsize*bn)] + (bn%indsize); in vxfs_bmap_ext4()
/linux-4.4.14/drivers/char/
Dbsr.c180 static int bsr_add_node(struct device_node *bn) in bsr_add_node() argument
188 bsr_stride = of_get_property(bn, "ibm,lock-stride", &bsr_stride_len); in bsr_add_node()
189 bsr_bytes = of_get_property(bn, "ibm,#lock-bytes", &bsr_bytes_len); in bsr_add_node()
211 result = of_address_to_resource(bn, i, &res); in bsr_add_node()
285 static int bsr_create_devs(struct device_node *bn) in bsr_create_devs() argument
289 while (bn) { in bsr_create_devs()
290 ret = bsr_add_node(bn); in bsr_create_devs()
292 of_node_put(bn); in bsr_create_devs()
295 bn = of_find_compatible_node(bn, NULL, "ibm,bsr"); in bsr_create_devs()
/linux-4.4.14/fs/jfs/
Djfs_dtree.c334 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
372 DTSaddress(dirtab_slot, bn); in add_index()
477 DTSaddress(dirtab_slot, bn); in add_index()
524 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
534 DTSaddress(dirtab_slot, bn); in modify_index()
585 s64 bn; in dtSearch() local
633 for (bn = 0;;) { in dtSearch()
635 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
705 btsp->bn = bn; in dtSearch()
754 btsp->bn = bn; in dtSearch()
[all …]
Djfs_xtree.c152 s64 bn; in xtLookup() local
188 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
245 s64 bn; /* block number */ in xtSearch() local
277 for (bn = 0;;) { in xtSearch()
279 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearch()
360 btsp->bn = bn; in xtSearch()
407 btsp->bn = bn; in xtSearch()
465 btsp->bn = bn; in xtSearch()
507 BT_PUSH(btstack, bn, index); in xtSearch()
510 bn = addressXAD(&p->xad[index]); in xtSearch()
[all …]
Djfs_btree.h112 s64 bn; /* 8: */ member
133 (BTSTACK)->top->bn = BN;\
150 (long long)btstack->stack[i].bn, in BT_STACK_DUMP()
157 BN = (LEAF)->bn;\
/linux-4.4.14/fs/gfs2/
Dbmap.c401 unsigned offset, u64 bn) in gfs2_indirect_init() argument
408 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init()
413 *ptr = cpu_to_be64(bn); in gfs2_indirect_init()
458 u64 bn, dblock = 0; in gfs2_bmap_alloc() local
508 error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); in gfs2_bmap_alloc()
513 gfs2_trans_add_unrevoke(sdp, bn, n); in gfs2_bmap_alloc()
523 gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++); in gfs2_bmap_alloc()
552 mp->mp_list[i-1], bn++); in gfs2_bmap_alloc()
564 dblock = bn; in gfs2_bmap_alloc()
566 *ptr++ = cpu_to_be64(bn++); in gfs2_bmap_alloc()
[all …]
Dxattr.c140 u64 bn; in ea_foreach() local
144 bn = be64_to_cpu(*eablk); in ea_foreach()
146 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, &eabh); in ea_foreach()
235 u64 bn = 0; in ea_dealloc_unstuffed() local
253 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
259 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
280 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
282 if (bstart + blen == bn) in ea_dealloc_unstuffed()
287 bstart = bn; in ea_dealloc_unstuffed()
1322 u64 bn; in ea_dealloc_indirect() local
[all …]
Ddir.c828 u64 bn; in new_leaf() local
836 error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); in new_leaf()
839 bh = gfs2_meta_new(ip->i_gl, bn); in new_leaf()
843 gfs2_trans_add_unrevoke(GFS2_SB(inode), bn, 1); in new_leaf()
880 u64 bn; in dir_make_exhash() local
892 bn = bh->b_blocknr; in dir_make_exhash()
939 *lp = cpu_to_be64(bn); in dir_make_exhash()
971 u64 bn, leaf_no; in dir_split_leaf() local
1000 bn = nbh->b_blocknr; in dir_split_leaf()
1026 lp[x] = cpu_to_be64(bn); in dir_split_leaf()
[all …]
Drgrp.h49 extern int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
Drgrp.c2337 int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *nblocks, in gfs2_alloc_blocks() argument
2412 *bn = block; in gfs2_alloc_blocks()
/linux-4.4.14/drivers/usb/storage/
Dene_ub6250.c670 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read() local
673 u32 bnByte = bn * 0x200; in sd_scsi_read()
676 if (bn > info->bl_num) in sd_scsi_read()
686 bnByte = bn; in sd_scsi_read()
710 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write() local
713 u32 bnByte = bn * 0x200; in sd_scsi_write()
716 if (bn > info->bl_num) in sd_scsi_write()
726 bnByte = bn; in sd_scsi_write()
863 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage() local
881 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage()
[all …]
/linux-4.4.14/drivers/staging/speakup/
Dmain.c855 static int bn; variable
860 bn = currbuf; in say_sentence_num()
862 if (prev && --bn == -1) in say_sentence_num()
863 bn = 1; in say_sentence_num()
865 if (num > numsentences[bn]) in say_sentence_num()
868 spkup_write(sentmarks[bn][num], sentbufend[bn] - sentmarks[bn][num]); in say_sentence_num()
875 int i, bn; in get_sentence_buf() local
881 bn = currbuf; in get_sentence_buf()
885 numsentences[bn] = 0; in get_sentence_buf()
886 sentmarks[bn][0] = &sentbuf[bn][0]; in get_sentence_buf()
[all …]
/linux-4.4.14/fs/reiserfs/
Djournal.c139 struct reiserfs_bitmap_node *bn; in allocate_bitmap_node() local
142 bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS); in allocate_bitmap_node()
143 if (!bn) { in allocate_bitmap_node()
146 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node()
147 if (!bn->data) { in allocate_bitmap_node()
148 kfree(bn); in allocate_bitmap_node()
151 bn->id = id++; in allocate_bitmap_node()
152 INIT_LIST_HEAD(&bn->list); in allocate_bitmap_node()
153 return bn; in allocate_bitmap_node()
159 struct reiserfs_bitmap_node *bn = NULL; in get_bitmap_node() local
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dvsc7326_reg.h86 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
/linux-4.4.14/include/net/
Dbonding.h573 void bond_create_proc_dir(struct bond_net *bn);
574 void bond_destroy_proc_dir(struct bond_net *bn);
584 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
588 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmad.c222 u32 bn, pkey_change_bitmap; in smp_snoop() local
256 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod) & 0xFFFF; in smp_snoop()
261 i + bn*32, be16_to_cpu(base[i])); in smp_snoop()
263 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32]) { in smp_snoop()
265 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32] = in smp_snoop()
271 port_num, bn, pkey_change_bitmap); in smp_snoop()
277 __propagate_pkey_ev(dev, port_num, bn, in smp_snoop()
290 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod); in smp_snoop()
291 mlx4_ib_update_cache_on_guid_change(dev, bn, port_num, in smp_snoop()
293 mlx4_ib_notify_slaves_on_guid_change(dev, bn, port_num, in smp_snoop()
/linux-4.4.14/sound/soc/codecs/
Dtlv320aic31xx.c701 int bn = (aic31xx_divs[i].dosr * aic31xx_divs[i].mdac) / in aic31xx_setup_pll() local
703 if (s < bclk_score && bn > 0) { in aic31xx_setup_pll()
705 bclk_n = bn; in aic31xx_setup_pll()
/linux-4.4.14/fs/xfs/
Dxfs_aops.c605 sector_t bn; in xfs_map_buffer() local
613 bn = (iomap_bn >> (inode->i_blkbits - BBSHIFT)) + in xfs_map_buffer()
616 ASSERT(bn || XFS_IS_REALTIME_INODE(XFS_I(inode))); in xfs_map_buffer()
618 bh->b_blocknr = bn; in xfs_map_buffer()
/linux-4.4.14/arch/ia64/kernel/
Dmca_drv.c552 psr2->bn = 1; in recover_from_read_error()
Dmca.c929 if (ia64_psr(regs)->bn) in finish_pt_regs()
/linux-4.4.14/arch/ia64/include/asm/
Dprocessor.h120 __u64 bn : 1; member
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dchannel.c147 .country = LOCALES(bn, 11n),
/linux-4.4.14/fs/nilfs2/
Dsegment.c2121 static void nilfs_segctor_do_flush(struct nilfs_sc_info *sci, int bn) in nilfs_segctor_do_flush() argument
2124 if (!(sci->sc_flush_request & (1 << bn))) { in nilfs_segctor_do_flush()
2127 sci->sc_flush_request |= (1 << bn); in nilfs_segctor_do_flush()
/linux-4.4.14/Documentation/ia64/
Dfsys.txt235 PSR.bn Unchanged. Note: fsys-mode handlers may clear the bit, if needed.
/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-pci-defs.h793 uint32_t bn:8; member
799 uint32_t bn:8;
/linux-4.4.14/drivers/staging/dgap/
Ddgap.c5784 int bn; in dgap_tty_name_show() local
5805 bn = bd->boardnum; in dgap_tty_name_show()
5876 (un->un_type == DGAP_PRINT) ? "pr" : "tty", bn, cn); in dgap_tty_name_show()
/linux-4.4.14/drivers/md/
Draid5.c3955 sector_t bn = raid5_compute_blocknr(sh, i, 1); in handle_stripe_expansion() local
3956 sector_t s = raid5_compute_sector(conf, bn, 0, in handle_stripe_expansion()