/Linux-v4.19/drivers/net/bonding/ |
D | bond_procfs.c | 263 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local 265 if (bn->proc_dir) { in bond_create_proc_entry() 267 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry() 279 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local 281 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry() 282 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry() 291 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 293 if (!bn->proc_dir) { in bond_create_proc_dir() 294 bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); in bond_create_proc_dir() 295 if (!bn->proc_dir) in bond_create_proc_dir() [all …]
|
D | bond_sysfs.c | 54 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() 774 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument 778 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs() 779 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs() [all …]
|
D | bond_main.c | 4732 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local 4743 list_add_tail(&bond->bond_list, &bn->dev_list); in bond_init() 4810 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local 4812 bn->net = net; in bond_net_init() 4813 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init() 4815 bond_create_proc_dir(bn); in bond_net_init() 4816 bond_create_sysfs(bn); in bond_net_init() 4823 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_exit() local 4827 bond_destroy_sysfs(bn); in bond_net_exit() 4831 list_for_each_entry_safe(bond, tmp_bond, &bn->dev_list, bond_list) in bond_net_exit() [all …]
|
/Linux-v4.19/drivers/char/ |
D | bsr.c | 180 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-v4.19/fs/freevxfs/ |
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-v4.19/fs/jfs/ |
D | jfs_dtree.c | 334 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 634 for (bn = 0;;) { in dtSearch() 636 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch() 706 btsp->bn = bn; in dtSearch() 755 btsp->bn = bn; in dtSearch() [all …]
|
D | jfs_xtree.c | 152 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 …]
|
D | jfs_btree.h | 112 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-v4.19/drivers/usb/storage/ |
D | ene_ub6250.c | 680 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read() local 683 u32 bnByte = bn * 0x200; in sd_scsi_read() 686 if (bn > info->bl_num) in sd_scsi_read() 696 bnByte = bn; in sd_scsi_read() 720 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write() local 723 u32 bnByte = bn * 0x200; in sd_scsi_write() 726 if (bn > info->bl_num) in sd_scsi_write() 736 bnByte = bn; in sd_scsi_write() 878 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage() local 893 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage() [all …]
|
/Linux-v4.19/drivers/md/persistent-data/ |
D | dm-btree.c | 999 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local 1004 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values() 1006 memcpy(&value_le, value_ptr(bn, i), sizeof(value_le)); in prefetch_values() 1014 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local 1016 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node() 1051 struct btree_node *bn; in inc_or_backtrack() local 1058 bn = dm_block_data(n->b); in inc_or_backtrack() 1061 if (n->index < le32_to_cpu(bn->header.nr_entries)) in inc_or_backtrack() 1074 struct btree_node *bn; in find_leaf() local 1079 bn = dm_block_data(n->b); in find_leaf() [all …]
|
/Linux-v4.19/drivers/staging/speakup/ |
D | main.c | 865 static int bn; variable 870 bn = currbuf; in say_sentence_num() 872 if (prev && --bn == -1) in say_sentence_num() 873 bn = 1; in say_sentence_num() 875 if (num > numsentences[bn]) in say_sentence_num() 878 spkup_write(sentmarks[bn][num], sentbufend[bn] - sentmarks[bn][num]); in say_sentence_num() 885 int i, bn; in get_sentence_buf() local 891 bn = currbuf; in get_sentence_buf() 895 numsentences[bn] = 0; in get_sentence_buf() 896 sentmarks[bn][0] = &sentbuf[bn][0]; in get_sentence_buf() [all …]
|
/Linux-v4.19/fs/gfs2/ |
D | xattr.c | 141 u64 bn; in ea_foreach() local 145 bn = be64_to_cpu(*eablk); in ea_foreach() 147 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &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() 1281 u64 bn; in ea_dealloc_indirect() local [all …]
|
D | dir.c | 869 u64 bn; in new_leaf() local 876 error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); in new_leaf() 879 bh = gfs2_meta_new(ip->i_gl, bn); in new_leaf() 883 gfs2_trans_add_unrevoke(GFS2_SB(inode), bn, 1); in new_leaf() 920 u64 bn; in dir_make_exhash() local 932 bn = bh->b_blocknr; in dir_make_exhash() 979 *lp = cpu_to_be64(bn); in dir_make_exhash() 1011 u64 bn, leaf_no; in dir_split_leaf() local 1040 bn = nbh->b_blocknr; in dir_split_leaf() 1066 lp[x] = cpu_to_be64(bn); in dir_split_leaf() [all …]
|
D | bmap.c | 573 unsigned offset, u64 bn) in gfs2_indirect_init() argument 580 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init() 585 *ptr = cpu_to_be64(bn); in gfs2_indirect_init() 632 u64 bn; in gfs2_iomap_alloc() local 673 ret = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); in gfs2_iomap_alloc() 678 gfs2_trans_add_unrevoke(sdp, bn, n); in gfs2_iomap_alloc() 689 gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++); in gfs2_iomap_alloc() 718 mp->mp_list[i-1], bn++); in gfs2_iomap_alloc() 730 iomap->addr = bn << inode->i_blkbits; in gfs2_iomap_alloc() 733 *ptr++ = cpu_to_be64(bn++); in gfs2_iomap_alloc() [all …]
|
D | rgrp.h | 49 extern int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
|
/Linux-v4.19/fs/reiserfs/ |
D | journal.c | 140 struct reiserfs_bitmap_node *bn; in allocate_bitmap_node() local 143 bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS); in allocate_bitmap_node() 144 if (!bn) { in allocate_bitmap_node() 147 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node() 148 if (!bn->data) { in allocate_bitmap_node() 149 kfree(bn); in allocate_bitmap_node() 152 bn->id = id++; in allocate_bitmap_node() 153 INIT_LIST_HEAD(&bn->list); in allocate_bitmap_node() 154 return bn; in allocate_bitmap_node() 160 struct reiserfs_bitmap_node *bn = NULL; in get_bitmap_node() local [all …]
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb/ |
D | vsc7326_reg.h | 87 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
|
/Linux-v4.19/include/net/ |
D | bonding.h | 640 void bond_create_proc_dir(struct bond_net *bn); 641 void bond_destroy_proc_dir(struct bond_net *bn); 651 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 655 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
|
/Linux-v4.19/drivers/infiniband/hw/mlx4/ |
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-v4.19/drivers/pci/controller/ |
D | pcie-mediatek.c | 352 u32 bn = bus->number; in mtk_pcie_config_read() local 361 ret = mtk_pcie_hw_rd_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_read() 372 u32 bn = bus->number; in mtk_pcie_config_write() local 378 return mtk_pcie_hw_wr_cfg(port, bn, devfn, where, size, val); in mtk_pcie_config_write()
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/ |
D | cudbg_entity.h | 243 u8 bn[PN_LEN + 1]; member
|
/Linux-v4.19/sound/soc/codecs/ |
D | tlv320aic31xx.c | 817 int bn = (aic31xx_divs[i].dosr * aic31xx_divs[i].mdac) / in aic31xx_setup_pll() local 819 if (s < bclk_score && bn > 0) { in aic31xx_setup_pll() 821 bclk_n = bn; in aic31xx_setup_pll()
|
/Linux-v4.19/security/apparmor/ |
D | label.c | 169 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp() argument 178 AA_BUG(bn <= 0); in vec_cmp() 180 for (i = 0; i < an && i < bn; i++) { in vec_cmp() 187 return an - bn; in vec_cmp()
|
/Linux-v4.19/arch/ia64/kernel/ |
D | mca_drv.c | 553 psr2->bn = 1; in recover_from_read_error()
|
/Linux-v4.19/arch/ia64/include/asm/ |
D | processor.h | 119 __u64 bn : 1; member
|