| /linux/drivers/net/ethernet/broadcom/bnge/ |
| H A D | bnge_netdev.c | 38 static void bnge_free_stats_mem(struct bnge_net *bn, in bnge_free_stats_mem() argument 41 struct bnge_dev *bd = bn->bd; in bnge_free_stats_mem() 54 static int bnge_alloc_stats_mem(struct bnge_net *bn, in bnge_alloc_stats_mem() argument 57 struct bnge_dev *bd = bn->bd; in bnge_alloc_stats_mem() 79 bnge_free_stats_mem(bn, stats); in bnge_alloc_stats_mem() 83 static void bnge_free_ring_stats(struct bnge_net *bn) in bnge_free_ring_stats() argument 85 struct bnge_dev *bd = bn->bd; in bnge_free_ring_stats() 88 if (!bn->bnapi) in bnge_free_ring_stats() 92 struct bnge_napi *bnapi = bn->bnapi[i]; in bnge_free_ring_stats() 95 bnge_free_stats_mem(bn, &nqr->stats); in bnge_free_ring_stats() [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, 60 int bnge_update_link(struct bnge_net *bn, bool chng_link_state); 62 int bnge_hwrm_set_link_setting(struct bnge_net *bn, bool set_pause); [all …]
|
| H A D | bnge_hwrm_lib.c | 737 int bnge_hwrm_vnic_set_hds(struct bnge_net *bn, struct bnge_vnic_info *vnic) in bnge_hwrm_vnic_set_hds() argument 739 u16 hds_thresh = (u16)bn->netdev->cfg_pending->hds_thresh; in bnge_hwrm_vnic_set_hds() 741 struct bnge_dev *bd = bn->bd; in bnge_hwrm_vnic_set_hds() 750 req->jumbo_thresh = cpu_to_le16(bn->rx_buf_use_size); in bnge_hwrm_vnic_set_hds() 785 __bnge_hwrm_vnic_set_rss(struct bnge_net *bn, in __bnge_hwrm_vnic_set_rss() argument 789 struct bnge_dev *bd = bn->bd; in __bnge_hwrm_vnic_set_rss() 791 bnge_fill_hw_rss_tbl(bn, vnic); in __bnge_hwrm_vnic_set_rss() 800 int bnge_hwrm_vnic_set_rss(struct bnge_net *bn, in bnge_hwrm_vnic_set_rss() argument 804 struct bnge_dev *bd = bn->bd; in bnge_hwrm_vnic_set_rss() 817 __bnge_hwrm_vnic_set_rss(bn, req, vnic); in bnge_hwrm_vnic_set_rss() [all …]
|
| H A D | bnge_netdev.h | 203 #define RX_RING(bn, x) (((x) & (bn)->rx_ring_mask) >> (BNGE_PAGE_SHIFT - 4)) argument 204 #define RX_AGG_RING(bn, x) (((x) & (bn)->rx_agg_ring_mask) >> \ argument 208 #define TX_RING(bn, x) (((x) & (bn)->tx_ring_mask) >> (BNGE_PAGE_SHIFT - 4)) argument 214 #define RING_RX(bn, idx) ((idx) & (bn)->rx_ring_mask) argument 217 #define RING_RX_AGG(bn, idx) ((idx) & (bn)->rx_agg_ring_mask) argument 544 struct bnge_net *bn; member 641 void bnge_fill_hw_rss_tbl(struct bnge_net *bn, struct bnge_vnic_info *vnic); 642 int bnge_alloc_rx_data(struct bnge_net *bn, struct bnge_rx_ring_info *rxr, 645 u8 *__bnge_alloc_rx_frag(struct bnge_net *bn, dma_addr_t *mapping, 647 int bnge_alloc_rx_netmem(struct bnge_net *bn, struct bnge_rx_ring_info *rxr, [all …]
|
| H A D | bnge.h | 231 struct bnge_net *bn = netdev_priv(bd->netdev); in bnge_is_agg_reqd() local 233 if (bn->priv_flags & BNGE_NET_EN_TPA || in bnge_is_agg_reqd() 234 bn->priv_flags & BNGE_NET_EN_JUMBO) in bnge_is_agg_reqd()
|
| H A D | bnge_rmem.h | 200 void bnge_init_ring_struct(struct bnge_net *bn);
|
| /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/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/drivers/net/ |
| H A D | bareudp.c | 636 static struct bareudp_dev *bareudp_find_dev(struct bareudp_net *bn, in bareudp_find_dev() 641 mutex_lock(&bn->lock); in bareudp_find_dev() 643 list_for_each_entry(bareudp, &bn->bareudp_list, next) { in bareudp_find_dev() 648 mutex_unlock(&bn->lock); in bareudp_find_dev() 657 struct bareudp_net *bn = net_generic(net, bareudp_net_id); in bareudp_configure() 663 t = bareudp_find_dev(bn, conf); in bareudp_configure() 685 mutex_lock(&bn->lock); in bareudp_configure() 686 list_add(&bareudp->next, &bn->bareudp_list); in bareudp_configure() 687 mutex_unlock(&bn->lock); in bareudp_configure() 717 struct bareudp_net *bn; in bareudp_dellink() 635 bareudp_find_dev(struct bareudp_net * bn,const struct bareudp_conf * conf) bareudp_find_dev() argument 656 struct bareudp_net *bn = net_generic(net, bareudp_net_id); bareudp_configure() local 716 struct bareudp_net *bn; bareudp_dellink() local 799 struct bareudp_net *bn = net_generic(net, bareudp_net_id); bareudp_init_net() local 810 struct bareudp_net *bn = net_generic(net, bareudp_net_id); bareudp_exit_rtnl_net() local 823 struct bareudp_net *bn = net_generic(net, bareudp_net_id); bareudp_exit_net() local [all...] |
| /linux/fs/jfs/ |
| 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/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 | 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() 668 u64 bn; in __gfs2_iomap_alloc() local 709 ret = gfs2_alloc_blocks(ip, &bn, &n, 0); in __gfs2_iomap_alloc() 714 gfs2_trans_remove_revoke(sdp, bn, n); in __gfs2_iomap_alloc() 725 gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++); in __gfs2_iomap_alloc() 754 mp->mp_list[i-1], bn++); in __gfs2_iomap_alloc() 766 iomap->addr = bn << inode->i_blkbits; in __gfs2_iomap_alloc() 769 *ptr++ = cpu_to_be64(bn++); in __gfs2_iomap_alloc() [all …]
|
| H A D | rgrp.h | 44 int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
|
| /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/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
|
| /linux/include/net/ |
| H A D | bonding.h | 720 void bond_create_proc_dir(struct bond_net *bn); 721 void bond_destroy_proc_dir(struct bond_net *bn); 731 static inline void bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument 735 static inline void bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
|
| /linux/drivers/nvme/target/ |
| H A D | nvmet.h | 534 static inline void nvmet_clear_aen_bit(struct nvmet_req *req, u32 bn) in nvmet_clear_aen_bit() 539 clear_bit(bn, &req->sq->ctrl->aen_masked); 542 static inline bool nvmet_aen_bit_disabled(struct nvmet_ctrl *ctrl, u32 bn) in nvmet_aen_bit_disabled() 544 if (!(READ_ONCE(ctrl->aen_enabled) & (1 << bn))) in nvmet_aen_bit_disabled() 546 return test_and_set_bit(bn, &ctrl->aen_masked); 532 nvmet_clear_aen_bit(struct nvmet_req * req,u32 bn) nvmet_clear_aen_bit() argument 540 nvmet_aen_bit_disabled(struct nvmet_ctrl * ctrl,u32 bn) nvmet_aen_bit_disabled() argument
|
| /linux/drivers/infiniband/hw/mlx4/ |
| H 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/net/bonding/ |
| H A D | bond_main.c | 6480 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_init() local 6494 list_add_tail_rcu(&bond->bond_list, &bn->dev_list); in bond_init() 6553 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_init() local 6555 bn->net = net; in bond_net_init() 6556 INIT_LIST_HEAD(&bn->dev_list); in bond_net_init() 6558 bond_create_proc_dir(bn); in bond_net_init() 6559 bond_create_sysfs(bn); in bond_net_init() 6570 struct bond_net *bn = net_generic(net, bond_net_id); in bond_net_pre_exit() local 6572 bond_destroy_sysfs(bn); in bond_net_pre_exit() 6578 struct bond_net *bn in bond_net_exit_rtnl() local 6592 struct bond_net *bn; bond_net_exit_batch() local [all...] |
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cudbg_entity.h | 228 u8 bn[PN_LEN + 1]; member
|
| /linux/security/apparmor/ |
| H A D | label.c | 169 struct aa_profile * const *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/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | channel.c | 147 .country = LOCALES(bn, 11n),
|
| /linux/include/net/bluetooth/ |
| H A D | hci.h | 3169 __u8 bn; member 3184 __u8 bn; member 3205 __u8 bn; member
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | mae.c | 1844 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()
|