Home
last modified time | relevance | path

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

/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.c54 struct bond_net *bn = in bonding_show_bonds() local
61 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
78 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
82 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
98 struct bond_net *bn = in bonding_store_bonds() local
112 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
124 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
770 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
774 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
775 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs()
[all …]
Dbond_main.c4644 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local
4654 list_add_tail(&bond->bond_list, &bn->dev_list); in bond_init()
4719 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local
4721 bn->net = net; in bond_net_init()
4722 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init()
4724 bond_create_proc_dir(bn); in bond_net_init()
4725 bond_create_sysfs(bn); in bond_net_init()
4732 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_exit() local
4736 bond_destroy_sysfs(bn); in bond_net_exit()
4740 list_for_each_entry_safe(bond, tmp_bond, &bn->dev_list, bond_list) in bond_net_exit()
[all …]
/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()
/drivers/usb/storage/
Dene_ub6250.c679 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read() local
682 u32 bnByte = bn * 0x200; in sd_scsi_read()
685 if (bn > info->bl_num) in sd_scsi_read()
695 bnByte = bn; in sd_scsi_read()
719 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write() local
722 u32 bnByte = bn * 0x200; in sd_scsi_write()
725 if (bn > info->bl_num) in sd_scsi_write()
735 bnByte = bn; in sd_scsi_write()
873 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage() local
888 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage()
[all …]
/drivers/staging/speakup/
Dmain.c858 static int bn; variable
863 bn = currbuf; in say_sentence_num()
865 if (prev && --bn == -1) in say_sentence_num()
866 bn = 1; in say_sentence_num()
868 if (num > numsentences[bn]) in say_sentence_num()
871 spkup_write(sentmarks[bn][num], sentbufend[bn] - sentmarks[bn][num]); in say_sentence_num()
878 int i, bn; in get_sentence_buf() local
884 bn = currbuf; in get_sentence_buf()
888 numsentences[bn] = 0; in get_sentence_buf()
889 sentmarks[bn][0] = &sentbuf[bn][0]; in get_sentence_buf()
[all …]
/drivers/md/persistent-data/
Ddm-btree.c994 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local
999 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values()
1001 memcpy(&value_le, value_ptr(bn, i), sizeof(value_le)); in prefetch_values()
1009 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local
1011 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node()
1046 struct btree_node *bn; in inc_or_backtrack() local
1053 bn = dm_block_data(n->b); in inc_or_backtrack()
1056 if (n->index < le32_to_cpu(bn->header.nr_entries)) in inc_or_backtrack()
1069 struct btree_node *bn; in find_leaf() local
1074 bn = dm_block_data(n->b); in find_leaf()
[all …]
/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
/drivers/infiniband/hw/mlx4/
Dmad.c223 u32 bn, pkey_change_bitmap; in smp_snoop() local
261 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod) & 0xFFFF; in smp_snoop()
266 i + bn*32, be16_to_cpu(base[i])); in smp_snoop()
268 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32]) { in smp_snoop()
270 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32] = in smp_snoop()
276 port_num, bn, pkey_change_bitmap); in smp_snoop()
282 __propagate_pkey_ev(dev, port_num, bn, in smp_snoop()
297 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod); in smp_snoop()
298 mlx4_ib_update_cache_on_guid_change(dev, bn, port_num, in smp_snoop()
300 mlx4_ib_notify_slaves_on_guid_change(dev, bn, port_num, in smp_snoop()
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c147 .country = LOCALES(bn, 11n),
/drivers/md/
Draid5.c3991 sector_t bn = raid5_compute_blocknr(sh, i, 1); in handle_stripe_expansion() local
3992 sector_t s = raid5_compute_sector(conf, bn, 0, in handle_stripe_expansion()