/linux-master/drivers/s390/cio/ |
H A D | device_pgid.c | 140 struct pgid *pgid = &cdev->private->dma_area->pgid[i]; local 142 pgid->inf.fc = fn; 144 cp->cda = virt_to_dma32(pgid); 145 cp->count = sizeof(*pgid); 281 static int pgid_is_reset(struct pgid *p) 292 static int pgid_cmp(struct pgid *p1, struct pgid *p2) 295 sizeof(struct pgid) 304 struct pgid *pgid = &cdev->private->dma_area->pgid[0]; local 336 struct pgid *pgid; local 367 pgid_fill(struct ccw_device *cdev, struct pgid *pgid) argument 383 struct pgid *pgid; local [all...] |
H A D | io_sch.h | 127 struct pgid pgid[8]; /* path group IDs per chpid*/ member in struct:ccw_device_dma_area 165 unsigned int pgid_unknown:1;/* unknown pgid state */
|
H A D | css.h | 57 struct pgid { struct 121 struct pgid global_pgid;
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vlan.c | 118 void sparx5_pgid_update_mask(struct sparx5_port *port, int pgid, bool enable) argument 127 spx5_rmw(val, mask, sparx5, ANA_AC_PGID_CFG(pgid)); 131 spx5_rmw(val, mask, sparx5, ANA_AC_PGID_CFG1(pgid)); 135 spx5_rmw(val, mask, sparx5, ANA_AC_PGID_CFG2(pgid)); 141 void sparx5_pgid_clear(struct sparx5 *spx5, int pgid) argument 143 spx5_wr(0, spx5, ANA_AC_PGID_CFG(pgid)); 144 spx5_wr(0, spx5, ANA_AC_PGID_CFG1(pgid)); 145 spx5_wr(0, spx5, ANA_AC_PGID_CFG2(pgid)); 148 void sparx5_pgid_read_mask(struct sparx5 *spx5, int pgid, u32 portmask[3]) argument 150 portmask[0] = spx5_rd(spx5, ANA_AC_PGID_CFG(pgid)); [all...] |
H A D | sparx5_mactable.c | 80 int sparx5_mact_learn(struct sparx5 *sparx5, int pgid, argument 85 if (pgid < SPX5_PORTS) { 87 addr = pgid % 32; 88 addr += (pgid / 32) << 5; /* Add upsid */ 91 addr = pgid - SPX5_PORTS;
|
H A D | sparx5_switchdev.c | 35 int pgid; local 37 for (pgid = PGID_IPV4_MC_DATA; pgid <= PGID_IPV6_MC_CTRL; pgid++) 38 sparx5_pgid_update_mask(port, pgid, should_flood); 506 static void sparx5_cpu_copy_ena(struct sparx5 *spx5, u16 pgid, bool enable) argument 510 ANA_AC_PGID_MISC_CFG(pgid)); 608 /* Clear pgid in case mrouter ports exists
|
/linux-master/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_dcbnl.c | 34 u8 *prio_type, u8 *pgid, u8 *bw_pct, 40 pgid, bw_pct, up_map); 44 int pgid, u8 *bw_pct) 48 edev->ops->dcb->getpgbwgcfgtx(edev->cdev, pgid, bw_pct); 52 u8 *prio_type, u8 *pgid, u8 *bw_pct, 57 edev->ops->dcb->getpgtccfgrx(edev->cdev, prio, prio_type, pgid, bw_pct, 62 int pgid, u8 *bw_pct) 66 edev->ops->dcb->getpgbwgcfgrx(edev->cdev, pgid, bw_pct); 121 u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) 125 return edev->ops->dcb->setpgtccfgtx(edev->cdev, prio, pri_type, pgid, 33 qede_dcbnl_getpgtccfgtx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 43 qede_dcbnl_getpgbwgcfgtx(struct net_device *netdev, int pgid, u8 *bw_pct) argument 51 qede_dcbnl_getpgtccfgrx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 61 qede_dcbnl_getpgbwgcfgrx(struct net_device *netdev, int pgid, u8 *bw_pct) argument 120 qede_dcbnl_setpgtccfgtx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument 129 qede_dcbnl_setpgtccfgrx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument 138 qede_dcbnl_setpgbwgcfgtx(struct net_device *netdev, int pgid, u8 bw_pct) argument 146 qede_dcbnl_setpgbwgcfgrx(struct net_device *netdev, int pgid, u8 bw_pct) argument [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_dcb.c | 281 int dcb_type = pcmd->u.dcb.pgid.type; 333 dcb->pgid = be32_to_cpu(fwdcb->pgid.pgid); 439 u8 *prio_type, u8 *pgid, u8 *bw_per, 447 *prio_type = *pgid = *bw_per = *up_tc_map = 0; 454 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; 460 *pgid = (be32_to_cpu(pcmd.u.dcb.pgid.pgid) >> (t 438 cxgb4_getpgtccfg(struct net_device *dev, int tc, u8 *prio_type, u8 *pgid, u8 *bw_per, u8 *up_tc_map, int local) argument 482 cxgb4_getpgtccfg_tx(struct net_device *dev, int tc, u8 *prio_type, u8 *pgid, u8 *bw_per, u8 *up_tc_map) argument 492 cxgb4_getpgtccfg_rx(struct net_device *dev, int tc, u8 *prio_type, u8 *pgid, u8 *bw_per, u8 *up_tc_map) argument 501 cxgb4_setpgtccfg_tx(struct net_device *dev, int tc, u8 prio_type, u8 pgid, u8 bw_per, u8 up_tc_map) argument 564 cxgb4_getpgbwgcfg(struct net_device *dev, int pgid, u8 *bw_per, int local) argument 588 cxgb4_getpgbwgcfg_tx(struct net_device *dev, int pgid, u8 *bw_per) argument 593 cxgb4_getpgbwgcfg_rx(struct net_device *dev, int pgid, u8 *bw_per) argument 598 cxgb4_setpgbwgcfg_tx(struct net_device *dev, int pgid, u8 bw_per) argument 1186 u32 pgid; local [all...] |
H A D | cxgb4_dcb.h | 105 u32 pgid; /* Priority Group[0..7] */ member in struct:port_dcb_info
|
/linux-master/include/linux/ceph/ |
H A D | osdmap.h | 30 struct ceph_pg pgid; member in struct:ceph_spg 153 struct ceph_pg pgid; member in struct:ceph_pg_mapping 231 static inline int ceph_decode_pgid(void **p, void *end, struct ceph_pg *pgid) argument 246 pgid->pool = ceph_decode_64(p); 247 pgid->seed = ceph_decode_32(p); 273 bool ceph_pg_is_split(const struct ceph_pg *pgid, u32 old_pg_num, 289 const struct ceph_pg *pgid);
|
/linux-master/include/linux/qed/ |
H A D | qed_eth_if.h | 207 u8 *pgid, u8 *bw_pct, u8 *up_map); 208 void (*getpgbwgcfgtx)(struct qed_dev *cdev, int pgid, u8 *bw_pct); 210 u8 *pgid, u8 *bw_pct, u8 *up_map); 211 void (*getpgbwgcfgrx)(struct qed_dev *cdev, int pgid, u8 *bw_pct); 223 u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map); 225 u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map); 226 void (*setpgbwgcfgtx)(struct qed_dev *cdev, int pgid, u8 bw_pct); 227 void (*setpgbwgcfgrx)(struct qed_dev *cdev, int pgid, u8 bw_pct);
|
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 1800 struct ocelot_pgid *pgid; local 1802 pgid = kzalloc(sizeof(*pgid), GFP_KERNEL); 1803 if (!pgid) 1806 pgid->ports = ports; 1807 pgid->index = index; 1808 refcount_set(&pgid->refcount, 1); 1809 list_add_tail(&pgid->list, &ocelot->pgids); 1811 return pgid; 1814 static void ocelot_pgid_free(struct ocelot *ocelot, struct ocelot_pgid *pgid) argument 1826 struct ocelot_pgid *pgid; local 1887 struct ocelot_pgid *pgid; local 1944 struct ocelot_pgid *pgid; local 2149 struct ocelot_pgid *pgid; local [all...] |
H A D | ocelot.h | 74 struct ocelot_pgid *pgid; member in struct:ocelot_multicast
|
/linux-master/net/ceph/ |
H A D | debugfs.c | 96 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, 97 pg->pgid.seed); 107 seq_printf(s, "primary_temp %llu.%x %d\n", pg->pgid.pool, 108 pg->pgid.seed, pg->primary_temp.osd); 114 seq_printf(s, "pg_upmap %llu.%x [", pg->pgid.pool, 115 pg->pgid.seed); 125 seq_printf(s, "pg_upmap_items %llu.%x [", pg->pgid.pool, 126 pg->pgid.seed); 178 seq_printf(s, "%llu.%x", spgid->pgid.pool, spgid->pgid [all...] |
H A D | osdmap.c | 695 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); 727 * rbtree of pg_mapping for handling pg_temp (explicit mapping of pgid 730 DEFINE_RB_FUNCS2(pg_mapping, struct ceph_pg_mapping, pgid, ceph_pg_compare, 1400 struct ceph_pg pgid; local 1403 ret = ceph_decode_pgid(p, end, &pgid); 1407 pg = lookup_pg_mapping(mapping_root, &pgid); 1420 pg->pgid = pgid; /* struct */ 2290 bool ceph_pg_is_split(const struct ceph_pg *pgid, u3 argument 2318 ceph_is_new_interval(const struct ceph_osds *old_acting, const struct ceph_osds *new_acting, const struct ceph_osds *old_up, const struct ceph_osds *new_up, int old_size, int new_size, int old_min_size, int new_min_size, u32 old_pg_num, u32 new_pg_num, bool old_sort_bitwise, bool new_sort_bitwise, bool old_recovery_deletes, bool new_recovery_deletes, const struct ceph_pg *pgid) argument 2446 raw_pg_to_pg(struct ceph_pg_pool_info *pi, const struct ceph_pg *raw_pgid, struct ceph_pg *pgid) argument 2592 apply_upmap(struct ceph_osdmap *osdmap, const struct ceph_pg *pgid, struct ceph_osds *raw) argument 2770 get_temp_osds(struct ceph_osdmap *osdmap, struct ceph_pg_pool_info *pi, const struct ceph_pg *pgid, struct ceph_osds *temp) argument 2822 struct ceph_pg pgid; local 2847 struct ceph_pg pgid; local [all...] |
/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_dcb.c | 144 u8 pgid; member in struct:qlcnic_dcb_tc_cfg 660 u8 i, tc, pgid; local 675 pgid = QLC_DCB_GET_PGID_PRIO(each->prio_pg_map[0], i); 677 pgid = QLC_DCB_GET_PGID_PRIO(each->prio_pg_map[1], i); 679 tc_cfg->pgid = pgid; 682 type->pg_cfg[tc_cfg->pgid].prio_count++; 793 u8 *pgid, u8 *bw_per, u8 *up_tc_map) 801 *prio = *pgid = *bw_per = *up_tc_map = 0; 814 *pgid 792 qlcnic_dcb_get_pg_tc_cfg_tx(struct net_device *netdev, int tc, u8 *prio, u8 *pgid, u8 *bw_per, u8 *up_tc_map) argument 829 qlcnic_dcb_get_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, u8 *bw_pct) argument 1002 qlcnic_dcb_get_pg_tc_cfg_rx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 1009 qlcnic_dcb_get_pg_bwg_cfg_rx(struct net_device *netdev, int pgid, u8 *bw_pct) argument [all...] |
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb_nl.c | 396 * @pgid: the corresponding traffic class 401 static void i40e_dcbnl_set_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, argument 411 if (pgid >= I40E_MAX_TRAFFIC_CLASS) 414 pf->tmp_cfg.etscfg.tcbwtable[pgid] = bw_pct; 416 pgid, bw_pct); 424 * @pgid: the BW group id the traffic class belongs to 434 u8 __always_unused pgid, 446 * @pgid: the corresponding traffic class 452 static void i40e_dcbnl_set_pg_bwg_cfg_rx(struct net_device *netdev, int pgid, argument 465 * @pgid 431 i40e_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev, int __always_unused prio, u8 __always_unused prio_type, u8 __always_unused pgid, u8 __always_unused bw_pct, u8 __always_unused up_map) argument 471 i40e_dcbnl_get_pg_tc_cfg_tx(struct net_device *netdev, int prio, u8 __always_unused *prio_type, u8 *pgid, u8 __always_unused *bw_pct, u8 __always_unused *up_map) argument 499 i40e_dcbnl_get_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, u8 *bw_pct) argument 529 i40e_dcbnl_get_pg_tc_cfg_rx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 555 i40e_dcbnl_get_pg_bwg_cfg_rx(struct net_device *netdev, int pgid, u8 *bw_pct) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_mdb.c | 19 struct lan966x_pgid_entry *pgid; member in struct:lan966x_mdb_entry 207 /* Try to find an existing pgid that uses the same ports as the 217 /* Try to find an empty pgid entry and allocate one in case it finds it, 264 lan966x_pgid_entry_del(lan966x, mdb_entry->pgid); 282 mdb_entry->pgid = pgid_entry; 328 lan966x_pgid_entry_del(lan966x, mdb_entry->pgid); 344 mdb_entry->pgid = pgid_entry; 371 * reason is that for ipv4/ipv6 it doesn't require to use any pgid 372 * entry, while for l2 is required to use pgid entries 388 * reason is that for ipv4/ipv6 it doesn't require to use any pgid [all...] |
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_nl.c | 428 * @pgid: the BW group ID the traffic class belongs to 434 u8 __always_unused *prio_type, u8 *pgid, 448 *pgid = pi->qos_cfg.local_dcbx_cfg.etscfg.prio_table[prio]; 450 *pgid); local 498 * @pgid: corresponding traffic class 502 ice_dcbnl_get_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, u8 *bw_pct) argument 511 if (pgid >= ICE_MAX_TRAFFIC_CLASS) 514 *bw_pct = pi->qos_cfg.local_dcbx_cfg.etscfg.tcbwtable[pgid]; 516 pgid, *bw_pct); local 522 * @pgid 433 ice_dcbnl_get_pg_tc_cfg_tx(struct net_device *netdev, int prio, u8 __always_unused *prio_type, u8 *pgid, u8 __always_unused *bw_pct, u8 __always_unused *up_map) argument 526 ice_dcbnl_set_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, u8 bw_pct) argument 558 ice_dcbnl_get_pg_tc_cfg_rx(struct net_device *netdev, int prio, u8 __always_unused *prio_type, u8 *pgid, u8 __always_unused *bw_pct, u8 __always_unused *up_map) argument 588 ice_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev, int __always_unused prio, u8 __always_unused prio_type, u8 __always_unused pgid, u8 __always_unused bw_pct, u8 __always_unused up_map) argument 607 ice_dcbnl_get_pg_bwg_cfg_rx(struct net_device *netdev, int __always_unused pgid, u8 *bw_pct) argument 628 ice_dcbnl_set_pg_bwg_cfg_rx(struct net_device *netdev, int __always_unused pgid, u8 __always_unused bw_pct) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 698 u8 pgid, u8 bw_pct, u8 up_map) 709 if (pgid >= CEE_DCBX_MAX_PGS) { 715 cee_cfg->prio_to_pg_map[priority] = pgid; 719 int pgid, u8 bw_pct) 724 if (pgid >= CEE_DCBX_MAX_PGS) { 730 cee_cfg->pg_bw_pct[pgid] = bw_pct; 735 u8 *pgid, u8 *bw_pct, u8 *up_map) 755 if (mlx5_query_port_prio_tc(mdev, priority, pgid)) 756 *pgid = 0; 760 int pgid, u 696 mlx5e_dcbnl_setpgtccfgtx(struct net_device *netdev, int priority, u8 prio_type, u8 pgid, u8 bw_pct, u8 up_map) argument 718 mlx5e_dcbnl_setpgbwgcfgtx(struct net_device *netdev, int pgid, u8 bw_pct) argument 733 mlx5e_dcbnl_getpgtccfgtx(struct net_device *netdev, int priority, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 759 mlx5e_dcbnl_getpgbwgcfgtx(struct net_device *netdev, int pgid, u8 *bw_pct) argument [all...] |
/linux-master/include/soc/mscc/ |
H A D | ocelot.h | 73 #define for_each_unicast_dest_pgid(ocelot, pgid) \ 74 for ((pgid) = 0; \ 75 (pgid) < (ocelot)->num_phys_ports; \ 76 (pgid)++) 78 #define for_each_nonreserved_multicast_dest_pgid(ocelot, pgid) \ 79 for ((pgid) = (ocelot)->num_phys_ports + 1; \ 80 (pgid) < PGID_BLACKHOLE; \ 81 (pgid)++) 83 #define for_each_aggr_pgid(ocelot, pgid) \ 84 for ((pgid) [all...] |
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dcbx.c | 1350 u8 *pgid, u8 *bw_pct, u8 *up_map) 1356 *prio_type = *pgid = *bw_pct = *up_map = 0; 1366 *pgid = dcbx_info->operational.params.ets_pri_tc_tbl[tc]; 1370 static void qed_dcbnl_getpgbwgcfgtx(struct qed_dev *cdev, int pgid, u8 *bw_pct) argument 1376 DP_VERBOSE(hwfn, QED_MSG_DCB, "pgid = %d\n", pgid); 1377 if (pgid < 0 || pgid >= QED_MAX_PFC_PRIORITIES) { 1378 DP_INFO(hwfn, "Invalid pgid %d\n", pgid); 1349 qed_dcbnl_getpgtccfgtx(struct qed_dev *cdev, int tc, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 1562 qed_dcbnl_setpgtccfgtx(struct qed_dev *cdev, int tc, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument 1597 qed_dcbnl_setpgtccfgrx(struct qed_dev *cdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument 1603 qed_dcbnl_setpgbwgcfgtx(struct qed_dev *cdev, int pgid, u8 bw_pct) argument 1633 qed_dcbnl_setpgbwgcfgrx(struct qed_dev *cdev, int pgid, u8 bw_pct) argument [all...] |
/linux-master/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_dcb.c | 1979 u8 prio_type, u8 pgid, u8 bw_pct, 1984 DP(BNX2X_MSG_DCB, "prio[%d] = %d\n", prio, pgid); 1995 * to the standard pgid 15 is dedicated to strict 2001 bp->dcbx_config_params.admin_configuration_ets_pg[prio] = pgid; 2006 int pgid, u8 bw_pct) 2009 DP(BNX2X_MSG_DCB, "pgid[%d] = %d\n", pgid, bw_pct); 2011 if (!bnx2x_dcbnl_set_valid(bp) || pgid >= DCBX_MAX_NUM_PG_BW_ENTRIES) 2014 bp->dcbx_config_params.admin_configuration_bw_precentage[pgid] = bw_pct; 2019 u8 prio_type, u8 pgid, u 1978 bnx2x_dcbnl_set_pg_tccfg_tx(struct net_device *netdev, int prio, u8 prio_type, u8 pgid, u8 bw_pct, u8 up_map) argument 2005 bnx2x_dcbnl_set_pg_bwgcfg_tx(struct net_device *netdev, int pgid, u8 bw_pct) argument 2018 bnx2x_dcbnl_set_pg_tccfg_rx(struct net_device *netdev, int prio, u8 prio_type, u8 pgid, u8 bw_pct, u8 up_map) argument 2026 bnx2x_dcbnl_set_pg_bwgcfg_rx(struct net_device *netdev, int pgid, u8 bw_pct) argument 2033 bnx2x_dcbnl_get_pg_tccfg_tx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 2060 bnx2x_dcbnl_get_pg_bwgcfg_tx(struct net_device *netdev, int pgid, u8 *bw_pct) argument 2074 bnx2x_dcbnl_get_pg_tccfg_rx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument 2084 bnx2x_dcbnl_get_pg_bwgcfg_rx(struct net_device *netdev, int pgid, u8 *bw_pct) argument [all...] |
/linux-master/fs/ceph/ |
H A D | ioctl.c | 191 struct ceph_pg pgid; local 216 r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid); 224 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid);
|
/linux-master/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_defs_cna.h | 155 u8 pgid[BFA_CEE_DCBX_MAX_PRIORITY]; member in struct:bfa_cee_dcbx_cfg
|