Home
last modified time | relevance | path

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

/linux/fs/xfs/scrub/
H A Dbitmap.c62 #define for_each_xbitmap64_extent(bn, bitmap) \ in INTERVAL_TREE_DEFINE() argument
63 for ((bn) = rb_entry_safe(rb_first(&(bitmap)->xb_root.rb_root), \ in INTERVAL_TREE_DEFINE()
65 (bn) != NULL; \
66 (bn) = rb_entry_safe(rb_next(&(bn)->bn_rbnode), \
76 struct xbitmap64_node *bn; local
80 while ((bn = xbitmap64_tree_iter_first(&bitmap->xb_root, start, last))) {
81 if (bn->bn_start < start && bn->bn_last > last) {
82 uint64_t old_last = bn->bn_last;
85 xbitmap64_tree_remove(bn, &bitmap->xb_root);
86 bn->bn_last = start - 1;
[all …]
/linux/drivers/net/bonding/
H A Dbond_procfs.c288 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local
290 if (bn->proc_dir) { in bond_create_proc_entry()
292 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry()
304 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local
306 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry()
307 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry()
316 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
318 if (!bn->proc_dir) { in bond_create_proc_dir()
319 bn->proc_dir = proc_mkdir(KBUILD_MODNAME, bn->net->proc_net); in bond_create_proc_dir()
320 if (!bn->proc_dir) in bond_create_proc_dir()
[all …]
H A Dbond_sysfs.c38 const struct bond_net *bn = in bonding_show_bonds() local
45 list_for_each_entry_rcu(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()
803 int __net_init bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
807 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
808 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs()
[all …]
H A Dbond_main.c6469 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local
6483 list_add_tail_rcu(&bond->bond_list, &bn->dev_list); in bond_init()
6542 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local
6544 bn->net = net; in bond_net_init()
6545 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init()
6547 bond_create_proc_dir(bn); in bond_net_init()
6548 bond_create_sysfs(bn); in bond_net_init()
6559 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_pre_exit() local
6561 bond_destroy_sysfs(bn); in bond_net_pre_exit()
6567 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_exit_rtnl() local
[all …]
/linux/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()
199 result = of_address_to_resource(bn, i, &res); in bsr_add_node()
273 static int bsr_create_devs(struct device_node *bn) in bsr_create_devs() argument
277 while (bn) { in bsr_create_devs()
278 ret = bsr_add_node(bn); in bsr_create_devs()
280 of_node_put(bn); in bsr_create_devs()
283 bn = of_find_compatible_node(bn, NULL, "ibm,bsr"); in bsr_create_devs()
/linux/fs/jfs/
H A 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/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()
[all …]
/linux/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 = 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 …]
/linux/fs/gfs2/
H A Dxattr.c153 u64 bn; in ea_foreach() local
157 bn = be64_to_cpu(*eablk); in ea_foreach()
159 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &eabh); in ea_foreach()
242 u64 bn = 0; in ea_dealloc_unstuffed() local
260 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
266 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
288 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
290 if (bstart + blen == bn) in ea_dealloc_unstuffed()
295 bstart = bn; in ea_dealloc_unstuffed()
1299 u64 bn; in ea_dealloc_indirect() local
[all …]
H A Ddir.c868 u64 bn; in new_leaf() local
875 error = gfs2_alloc_blocks(ip, &bn, &n, 0); in new_leaf()
878 bh = gfs2_meta_new(ip->i_gl, bn); in new_leaf()
882 gfs2_trans_remove_revoke(GFS2_SB(inode), bn, 1); in new_leaf()
918 u64 bn; in dir_make_exhash() local
930 bn = bh->b_blocknr; in dir_make_exhash()
977 *lp = cpu_to_be64(bn); in dir_make_exhash()
1006 u64 bn, leaf_no; in dir_split_leaf() local
1035 bn = nbh->b_blocknr; in dir_split_leaf()
1061 lp[x] = cpu_to_be64(bn); in dir_split_leaf()
[all …]
H A Drgrp.h44 int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
/linux/drivers/md/persistent-data/
H A Ddm-btree.c1472 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local
1477 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values()
1479 memcpy(&value_le, value_ptr(bn, i), sizeof(value_le)); in prefetch_values()
1487 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local
1489 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node()
1524 struct btree_node *bn; in inc_or_backtrack() local
1531 bn = dm_block_data(n->b); in inc_or_backtrack()
1534 if (n->index < le32_to_cpu(bn->header.nr_entries)) in inc_or_backtrack()
1547 struct btree_node *bn; in find_leaf() local
1552 bn = dm_block_data(n->b); in find_leaf()
[all …]
/linux/drivers/net/
H A Dbareudp.c636 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() argument
641 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev()
652 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() local
658 t = bareudp_find_dev(bn, conf); in bareudp_configure()
680 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure()
778 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_init_net() local
780 INIT_LIST_HEAD(&bn->bareudp_list); in bareudp_init_net()
787 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_exit_rtnl_net() local
790 list_for_each_entry_safe(bareudp, next, &bn->bareudp_list, next) in bareudp_exit_rtnl_net()
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dvsc7326_reg.h87 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
/linux/include/net/
H A Dbonding.h719 void bond_create_proc_dir(struct bond_net *bn);
720 void bond_destroy_proc_dir(struct bond_net *bn);
730 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
734 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
/linux/drivers/nvme/target/
H A Dnvmet.h528 static inline void nvmet_clear_aen_bit(struct nvmet_req *req, u32 bn) in nvmet_clear_aen_bit() argument
533 clear_bit(bn, &req->sq->ctrl->aen_masked); in nvmet_clear_aen_bit()
536 static inline bool nvmet_aen_bit_disabled(struct nvmet_ctrl *ctrl, u32 bn) in nvmet_aen_bit_disabled() argument
538 if (!(READ_ONCE(ctrl->aen_enabled) & (1 << bn))) in nvmet_aen_bit_disabled()
540 return test_and_set_bit(bn, &ctrl->aen_masked); in nvmet_aen_bit_disabled()
/linux/drivers/infiniband/hw/mlx4/
H A 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/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_entity.h228 u8 bn[PN_LEN + 1]; member
H A Dcudbg_lib.c2735 memcpy(vpd_data->bn, vpd.pn, PN_LEN + 1); in cudbg_collect_vpd_data()
/linux/security/apparmor/
H A Dlabel.c168 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp() argument
177 AA_BUG(bn <= 0); in vec_cmp()
179 for (i = 0; i < an && i < bn; i++) { in vec_cmp()
186 return an - bn; in vec_cmp()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c147 .country = LOCALES(bn, 11n),
/linux/drivers/net/ethernet/sfc/
H A Dmae.c1844 unsigned int bn = field.lbn + i * 8; in efx_mae_table_populate() local
1845 unsigned int wn = bn / 32; in efx_mae_table_populate()
1849 v <<= (bn % 32); in efx_mae_table_populate()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-pci-defs.h624 uint32_t bn:8; member
630 uint32_t bn:8;
/linux/drivers/md/
H A Draid5.c4556 sector_t bn = raid5_compute_blocknr(sh, i, 1); in handle_stripe_expansion() local
4557 sector_t s = raid5_compute_sector(conf, bn, 0, in handle_stripe_expansion()