| /linux/drivers/net/ethernet/broadcom/bnge/ |
| H A D | bnge_netdev.c | 37 static void bnge_free_stats_mem(struct bnge_net *bn, in bnge_free_stats_mem() argument 40 struct bnge_dev *bd = bn->bd; in bnge_free_stats_mem() 49 static int bnge_alloc_stats_mem(struct bnge_net *bn, in bnge_alloc_stats_mem() argument 52 struct bnge_dev *bd = bn->bd; in bnge_alloc_stats_mem() 62 static void bnge_free_ring_stats(struct bnge_net *bn) in bnge_free_ring_stats() argument 64 struct bnge_dev *bd = bn->bd; in bnge_free_ring_stats() 67 if (!bn->bnapi) in bnge_free_ring_stats() 71 struct bnge_napi *bnapi = bn->bnapi[i]; in bnge_free_ring_stats() 74 bnge_free_stats_mem(bn, &nqr->stats); in bnge_free_ring_stats() 78 static int bnge_alloc_ring_stats(struct bnge_net *bn) in bnge_alloc_ring_stats() argument [all …]
|
| H A D | bnge_txrx.h | 10 static inline u32 bnge_tx_avail(struct bnge_net *bn, in bnge_tx_avail() argument 15 return bn->tx_ring_size - (used & bn->tx_ring_mask); in bnge_tx_avail() 31 static inline void bnge_db_write_relaxed(struct bnge_net *bn, in bnge_db_write_relaxed() argument 34 bnge_writeq_relaxed(bn->bd, db->db_key64 | DB_RING_IDX(db, idx), in bnge_db_write_relaxed() 44 #define SET_TX_OPAQUE(bn, txr, idx, bds) \ argument 46 ((bds) << TX_OPAQUE_BDS_SHIFT) | ((idx) & (bn)->tx_ring_mask)) 53 #define TX_OPAQUE_PROD(bn, opq) ((TX_OPAQUE_IDX(opq) + TX_OPAQUE_BDS(opq)) &\ argument 54 (bn)->tx_ring_mask) 66 #define RX_RING(bn, x) (((x) & (bn)->rx_ring_mask) >> (BNGE_PAGE_SHIFT - 4)) argument 67 #define RX_AGG_RING(bn, x) (((x) & (bn)->rx_agg_ring_mask) >> \ argument [all …]
|
| H A D | bnge_txrx.c | 36 struct bnge_net *bn; in bnge_msix() local 39 bn = bnapi->bn; in bnge_msix() 41 cons = RING_CMP(bn, nqr->nq_raw_cons); in bnge_msix() 48 static struct rx_agg_cmp *bnge_get_tpa_agg(struct bnge_net *bn, in bnge_get_tpa_agg() argument 57 static struct rx_agg_cmp *bnge_get_agg(struct bnge_net *bn, in bnge_get_agg() argument 63 cp_cons = RING_CMP(bn, ADV_RAW_CMP(cp_cons, curr)); in bnge_get_agg() 73 struct bnge_net *bn = bnapi->bn; in bnge_reuse_rx_agg_bufs() local 90 agg = bnge_get_tpa_agg(bn, rxr, idx, start + i); in bnge_reuse_rx_agg_bufs() 92 agg = bnge_get_agg(bn, cpr, idx, start + i); in bnge_reuse_rx_agg_bufs() 113 prod_bd = &rxr->rx_agg_desc_ring[RX_AGG_RING(bn, prod)] in bnge_reuse_rx_agg_bufs() [all …]
|
| H A D | bnge_hwrm_lib.h | 34 int bnge_hwrm_vnic_set_hds(struct bnge_net *bn, struct bnge_vnic_info *vnic); 37 int bnge_hwrm_vnic_set_rss(struct bnge_net *bn, 39 int bnge_hwrm_vnic_cfg(struct bnge_net *bn, struct bnge_vnic_info *vnic); 40 void bnge_hwrm_update_rss_hash_cfg(struct bnge_net *bn); 50 void bnge_hwrm_stat_ctx_free(struct bnge_net *bn); 51 int bnge_hwrm_stat_ctx_alloc(struct bnge_net *bn); 52 int hwrm_ring_free_send_msg(struct bnge_net *bn, struct bnge_ring_struct *ring, 54 int hwrm_ring_alloc_send_msg(struct bnge_net *bn,
|
| H A D | bnge_hwrm_lib.c | 707 int bnge_hwrm_vnic_set_hds(struct bnge_net *bn, struct bnge_vnic_info *vnic) in bnge_hwrm_vnic_set_hds() argument 709 u16 hds_thresh = (u16)bn->netdev->cfg_pending->hds_thresh; in bnge_hwrm_vnic_set_hds() 711 struct bnge_dev *bd = bn->bd; in bnge_hwrm_vnic_set_hds() 720 req->jumbo_thresh = cpu_to_le16(bn->rx_buf_use_size); in bnge_hwrm_vnic_set_hds() 755 __bnge_hwrm_vnic_set_rss(struct bnge_net *bn, in __bnge_hwrm_vnic_set_rss() argument 759 struct bnge_dev *bd = bn->bd; in __bnge_hwrm_vnic_set_rss() 761 bnge_fill_hw_rss_tbl(bn, vnic); in __bnge_hwrm_vnic_set_rss() 770 int bnge_hwrm_vnic_set_rss(struct bnge_net *bn, in bnge_hwrm_vnic_set_rss() argument 774 struct bnge_dev *bd = bn->bd; in bnge_hwrm_vnic_set_rss() 787 __bnge_hwrm_vnic_set_rss(bn, req, vnic); in bnge_hwrm_vnic_set_rss() [all …]
|
| H A D | bnge_netdev.h | 200 #define RX_RING(bn, x) (((x) & (bn)->rx_ring_mask) >> (BNGE_PAGE_SHIFT - 4)) argument 201 #define RX_AGG_RING(bn, x) (((x) & (bn)->rx_agg_ring_mask) >> \ argument 205 #define TX_RING(bn, x) (((x) & (bn)->tx_ring_mask) >> (BNGE_PAGE_SHIFT - 4)) argument 211 #define RING_RX(bn, idx) ((idx) & (bn)->rx_ring_mask) argument 214 #define RING_RX_AGG(bn, idx) ((idx) & (bn)->rx_agg_ring_mask) argument 470 struct bnge_net *bn; member 561 void bnge_fill_hw_rss_tbl(struct bnge_net *bn, struct bnge_vnic_info *vnic); 562 int bnge_alloc_rx_data(struct bnge_net *bn, struct bnge_rx_ring_info *rxr, 565 u8 *__bnge_alloc_rx_frag(struct bnge_net *bn, dma_addr_t *mapping, 567 int bnge_alloc_rx_netmem(struct bnge_net *bn, struct bnge_rx_ring_info *rxr,
|
| H A D | bnge_rmem.c | 442 void bnge_init_ring_struct(struct bnge_net *bn) in bnge_init_ring_struct() argument 444 struct bnge_dev *bd = bn->bd; in bnge_init_ring_struct() 448 struct bnge_napi *bnapi = bn->bnapi[i]; in bnge_init_ring_struct() 458 rmem->nr_pages = bn->cp_nr_pages; in bnge_init_ring_struct() 470 rmem->nr_pages = bn->rx_nr_pages; in bnge_init_ring_struct() 474 rmem->vmem_size = SW_RXBD_RING_SIZE * bn->rx_nr_pages; in bnge_init_ring_struct() 479 rmem->nr_pages = bn->rx_agg_nr_pages; in bnge_init_ring_struct() 483 rmem->vmem_size = SW_RXBD_AGG_RING_SIZE * bn->rx_agg_nr_pages; in bnge_init_ring_struct() 490 rmem->nr_pages = bn->tx_nr_pages; in bnge_init_ring_struct() 494 rmem->vmem_size = SW_TXBD_RING_SIZE * bn->tx_nr_pages; in bnge_init_ring_struct()
|
| H A D | bnge_ethtool.c | 18 struct bnge_net *bn = netdev_priv(dev); in bnge_get_drvinfo() local 19 struct bnge_dev *bd = bn->bd; in bnge_get_drvinfo()
|
| H A D | bnge.h | 220 struct bnge_net *bn = netdev_priv(bd->netdev); in bnge_is_agg_reqd() local 222 if (bn->priv_flags & BNGE_NET_EN_TPA || in bnge_is_agg_reqd() 223 bn->priv_flags & BNGE_NET_EN_JUMBO) in bnge_is_agg_reqd()
|
| /linux/fs/xfs/scrub/ |
| H A D | bitmap.c | 62 #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 D | bond_procfs.c | 286 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local 288 if (bn->proc_dir) { in bond_create_proc_entry() 290 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry() 302 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local 304 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry() 305 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry() 314 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 316 if (!bn->proc_dir) { in bond_create_proc_dir() 317 bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); in bond_create_proc_dir() 318 if (!bn->proc_dir) in bond_create_proc_dir() [all …]
|
| H A D | bond_sysfs.c | 38 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 …]
|
| /linux/drivers/char/ |
| H A D | bsr.c | 169 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/freevxfs/ |
| H A D | vxfs_bmap.c | 43 vxfs_bmap_ext4(struct inode *ip, long bn) in vxfs_bmap_ext4() argument 57 if (bn >= 0 && bn < fs32_to_cpu(sbi, d->size)) in vxfs_bmap_ext4() 58 return (bn + fs32_to_cpu(sbi, d->extent)); in vxfs_bmap_ext4() 59 bn -= fs32_to_cpu(sbi, d->size); in vxfs_bmap_ext4() 62 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4() 73 bno = fs32_to_cpu(sbi, indir[(bn / indsize) % (indsize * bn)]) + in vxfs_bmap_ext4() 74 (bn % indsize); in vxfs_bmap_ext4()
|
| /linux/fs/jfs/ |
| H A D | jfs_xtree.c | 111 static inline xtpage_t *xt_getpage(struct inode *ip, s64 bn, struct metapage **mp) in xt_getpage() argument 116 BT_GETPAGE(ip, bn, *mp, xtpage_t, PSIZE, p, rc, i_xtroot); in xt_getpage() 124 ((bn == 0) ? XTROOTMAXSLOT : PSIZE >> L2XTSLOTSIZE))) { in xt_getpage() 144 s64 bn; in xtLookup() local 180 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup() 236 s64 bn; /* block number */ in xtSearch() local 268 for (bn = 0;;) { in xtSearch() 270 p = xt_getpage(ip, bn, &mp); in xtSearch() 351 btsp->bn = bn; in xtSearch() 398 btsp->bn = bn; in xtSearch() [all …]
|
| H A D | jfs_dtree.c | 322 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument 360 DTSaddress(dirtab_slot, bn); in add_index() 465 DTSaddress(dirtab_slot, bn); in add_index() 512 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument 522 DTSaddress(dirtab_slot, bn); in modify_index() 573 s64 bn; in dtSearch() local 622 for (bn = 0;;) { in dtSearch() 624 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch() 699 btsp->bn = bn; in dtSearch() 748 btsp->bn = bn; in dtSearch() [all …]
|
| H 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/ |
| H A D | ene_ub6250.c | 678 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/lib/ |
| H A D | maple_tree.c | 161 struct maple_big_node *bn; member 1693 struct maple_big_node *bn, unsigned char *mid_split) in mab_calc_split() argument 1695 unsigned char b_end = bn->b_end; in mab_calc_split() 1697 unsigned char slot_count = mt_slots[bn->type]; in mab_calc_split() 1712 if (unlikely(mab_middle_node(bn, split, slot_count))) { in mab_calc_split() 1720 split = mab_no_null_split(bn, split, slot_count); in mab_calc_split() 1723 *mid_split = mab_no_null_split(bn, *mid_split, slot_count); in mab_calc_split() 2025 unsigned char b_end = mast->bn->b_end; in mast_rebalance_next() 2028 mast->bn, b_end); in mast_rebalance_next() 2039 unsigned char b_end = mast->bn->b_end; in mast_rebalance_prev() [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | main.c | 864 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 D | xattr.c | 153 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 D | bmap.c | 610 unsigned offset, u64 bn) in gfs2_indirect_init() argument 617 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init() 622 *ptr = cpu_to_be64(bn); in gfs2_indirect_init() 667 u64 bn; in __gfs2_iomap_alloc() local 708 ret = gfs2_alloc_blocks(ip, &bn, &n, 0); in __gfs2_iomap_alloc() 713 gfs2_trans_remove_revoke(sdp, bn, n); in __gfs2_iomap_alloc() 724 gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++); in __gfs2_iomap_alloc() 753 mp->mp_list[i-1], bn++); in __gfs2_iomap_alloc() 765 iomap->addr = bn << inode->i_blkbits; in __gfs2_iomap_alloc() 768 *ptr++ = cpu_to_be64(bn++); in __gfs2_iomap_alloc() [all …]
|
| /linux/drivers/md/persistent-data/ |
| H A D | dm-btree.c | 1472 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 D | bareudp.c | 633 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() argument 638 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev() 649 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() local 655 t = bareudp_find_dev(bn, conf); in bareudp_configure() 677 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure() 775 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_init_net() local 777 INIT_LIST_HEAD(&bn->bareudp_list); in bareudp_init_net() 784 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_exit_rtnl_net() local 787 list_for_each_entry_safe(bareudp, next, &bn->bareudp_list, next) in bareudp_exit_rtnl_net()
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | vsc7326_reg.h | 87 #define REG_TRAFFIC_SHAPER_BUCKET(ie,bn) CRA(0x2,ie&1,0x0a + (bn>7) | ((bn&7)<<4)) argument
|