/linux/drivers/net/bonding/ |
A D | bond_procfs.c | 271 if (bn->proc_dir) { in bond_create_proc_entry() 273 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry() 287 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry() 288 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry() 297 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 299 if (!bn->proc_dir) { in bond_create_proc_dir() 300 bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); in bond_create_proc_dir() 301 if (!bn->proc_dir) in bond_create_proc_dir() 312 if (bn->proc_dir) { in bond_destroy_proc_dir() 313 remove_proc_entry(DRV_NAME, bn->net->proc_net); in bond_destroy_proc_dir() [all …]
|
A D | bond_sysfs.c | 38 struct bond_net *bn = in bonding_show_bonds() local 45 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds() 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() 793 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument 801 bn->net); in bond_create_sysfs() 814 if (netdev_name_in_use(bn->net, in bond_create_sysfs() 826 void bond_destroy_sysfs(struct bond_net *bn) in bond_destroy_sysfs() argument [all …]
|
A D | bond_main.c | 5867 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local 5887 list_add_tail(&bond->bond_list, &bn->dev_list); in bond_init() 5958 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local 5960 bn->net = net; in bond_net_init() 5961 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init() 5963 bond_create_proc_dir(bn); in bond_net_init() 5964 bond_create_sysfs(bn); in bond_net_init() 5971 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_exit() local 5975 bond_destroy_sysfs(bn); in bond_net_exit() 5979 list_for_each_entry_safe(bond, tmp_bond, &bn->dev_list, bond_list) in bond_net_exit() [all …]
|
/linux/drivers/char/ |
A D | bsr.c | 166 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/fs/freevxfs/ |
A D | vxfs_bmap.c | 67 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()
|
/linux/fs/jfs/ |
A D | jfs_dtree.c | 572 s64 bn; in dtSearch() local 693 btsp->bn = bn; in dtSearch() 742 btsp->bn = bn; in dtSearch() 815 s64 bn; in dtInsert() local 2074 s64 bn; in dtDelete() local 2439 s64 bn; in dtRelocate() local 2696 btsp->bn = bn; in dtSearchNode() 3359 btsp->bn = bn; in dtReadFirst() 3485 bn = parent->bn; in dtReadNext() 3512 parent->bn = bn; in dtReadNext() [all …]
|
A D | jfs_xtree.c | 139 s64 bn; in xtLookup() local 347 btsp->bn = bn; in xtSearch() 394 btsp->bn = bn; in xtSearch() 452 btsp->bn = bn; in xtSearch() 532 s64 bn; in xtInsert() local 1356 s64 bn; in xtExtend() local 1519 s64 bn; in xtTailgate() local 1698 s64 bn; in xtUpdate() local 2945 btsp->bn = bn; in xtSearchNode() 3469 bn = parent->bn; in xtTruncate() [all …]
|
A D | jfs_btree.h | 99 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/drivers/usb/storage/ |
A D | ene_ub6250.c | 684 u32 bnByte = bn * 0x200; in sd_scsi_read() 687 if (bn > info->bl_num) in sd_scsi_read() 697 bnByte = bn; in sd_scsi_read() 724 u32 bnByte = bn * 0x200; in sd_scsi_write() 727 if (bn > info->bl_num) in sd_scsi_write() 737 bnByte = bn; in sd_scsi_write() 1193 u32 bn = PhyBlockAddr; in ms_read_eraseblock() local 1205 bcb->CDB[4] = (unsigned char)(bn); in ms_read_eraseblock() 1650 if (bn > info->bl_num) in ms_scsi_read() 1667 bcb->CDB[5] = (unsigned char)(bn); in ms_scsi_read() [all …]
|
/linux/drivers/accessibility/speakup/ |
A D | main.c | 863 static int bn; variable 868 bn = currbuf; in say_sentence_num() 871 bn = 1; 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() 906 numsentences[bn]++; in get_sentence_buf() 907 sentmarks[bn][numsentences[bn]] = in get_sentence_buf() [all …]
|
/linux/fs/gfs2/ |
A D | xattr.c | 149 u64 bn; in ea_foreach() local 153 bn = be64_to_cpu(*eablk); in ea_foreach() 238 u64 bn = 0; in ea_dealloc_unstuffed() local 286 if (bstart + blen == bn) in ea_dealloc_unstuffed() 291 bstart = bn; in ea_dealloc_unstuffed() 1295 u64 bn; in ea_dealloc_indirect() local 1301 if (bstart + blen == bn) in ea_dealloc_indirect() 1306 bstart = bn; in ea_dealloc_indirect() 1340 u64 bn; in ea_dealloc_indirect() local 1346 if (bstart + blen == bn) in ea_dealloc_indirect() [all …]
|
A D | bmap.c | 611 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 715 gfs2_trans_remove_revoke(sdp, bn, n); in __gfs2_iomap_alloc() 755 mp->mp_list[i-1], bn++); in __gfs2_iomap_alloc() 770 *ptr++ = cpu_to_be64(bn++); in __gfs2_iomap_alloc() 1451 u64 bn, bstart, isize_blks; in sweep_bh_for_rgrps() local 1470 bn = be64_to_cpu(*p); in sweep_bh_for_rgrps() 1548 if (bstart + blen == bn) { in sweep_bh_for_rgrps() [all …]
|
A D | dir.c | 864 u64 bn; in new_leaf() local 874 bh = gfs2_meta_new(ip->i_gl, bn); 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() 1732 u64 bn; in dir_new_leaf() local 1742 if (!bn) in dir_new_leaf() [all …]
|
A D | rgrp.h | 44 extern int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
|
/linux/fs/reiserfs/ |
A D | journal.c | 142 if (!bn) { 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() 152 return bn; in allocate_bitmap_node() 169 return bn; in get_bitmap_node() 172 if (!bn) { in get_bitmap_node() 176 return bn; in get_bitmap_node() 185 kfree(bn); in free_bitmap_node() 199 if (bn) { in allocate_bitmap_nodes() [all …]
|
/linux/drivers/md/persistent-data/ |
A D | dm-btree.c | 1459 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local 1464 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values() 1474 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local 1476 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node() 1511 struct btree_node *bn; in inc_or_backtrack() local 1518 bn = dm_block_data(n->b); in inc_or_backtrack() 1534 struct btree_node *bn; in find_leaf() local 1539 bn = dm_block_data(n->b); in find_leaf() 1541 if (le32_to_cpu(bn->header.flags) & LEAF_NODE) in find_leaf() 1611 struct btree_node *bn = dm_block_data(n->b); in dm_btree_cursor_get_value() local [all …]
|
/linux/drivers/net/ |
A D | bareudp.c | 592 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() argument 597 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev() 607 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() local 613 t = bareudp_find_dev(bn, conf); in bareudp_configure() 631 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure() 760 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_init_net() local 762 INIT_LIST_HEAD(&bn->bareudp_list); in bareudp_init_net() 768 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_destroy_tunnels() local 771 list_for_each_entry_safe(bareudp, next, &bn->bareudp_list, next) in bareudp_destroy_tunnels()
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
A D | vsc7326_reg.h | 87 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
|
/linux/drivers/nvme/target/ |
A D | nvmet.h | 391 static inline void nvmet_clear_aen_bit(struct nvmet_req *req, u32 bn) in nvmet_clear_aen_bit() argument 396 clear_bit(bn, &req->sq->ctrl->aen_masked); in nvmet_clear_aen_bit() 399 static inline bool nvmet_aen_bit_disabled(struct nvmet_ctrl *ctrl, u32 bn) in nvmet_aen_bit_disabled() argument 401 if (!(READ_ONCE(ctrl->aen_enabled) & (1 << bn))) in nvmet_aen_bit_disabled() 403 return test_and_set_bit(bn, &ctrl->aen_masked); in nvmet_aen_bit_disabled()
|
/linux/include/net/ |
A D | bonding.h | 667 void bond_create_proc_dir(struct bond_net *bn); 668 void bond_destroy_proc_dir(struct bond_net *bn); 678 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 682 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | mad.c | 226 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/drivers/crypto/ |
A D | sa2ul.c | 786 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/drivers/pci/controller/ |
A D | pcie-mediatek.c | 367 u32 bn = bus->number; in mtk_pcie_config_read() local 376 ret = mtk_pcie_hw_rd_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_read() 387 u32 bn = bus->number; in mtk_pcie_config_write() local 393 return mtk_pcie_hw_wr_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_write()
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_buddy.c | 408 struct i915_buddy_block *block, *bn; in igt_buddy_alloc_pessimistic() local 466 list_for_each_entry_safe(block, bn, &blocks, link) { in igt_buddy_alloc_pessimistic()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cudbg_entity.h | 228 u8 bn[PN_LEN + 1]; member
|