/linux-6.6.21/drivers/s390/cio/ |
D | device_pgid.c | 140 struct pgid *pgid = &cdev->private->dma_area->pgid[i]; in spid_build_cp() local 142 pgid->inf.fc = fn; in spid_build_cp() 144 cp->cda = (u32)virt_to_phys(pgid); in spid_build_cp() 145 cp->count = sizeof(*pgid); in spid_build_cp() 281 static int pgid_is_reset(struct pgid *p) in pgid_is_reset() 292 static int pgid_cmp(struct pgid *p1, struct pgid *p2) in pgid_cmp() 295 sizeof(struct pgid) - 1); in pgid_cmp() 301 static void pgid_analyze(struct ccw_device *cdev, struct pgid **p, in pgid_analyze() 304 struct pgid *pgid = &cdev->private->dma_area->pgid[0]; in pgid_analyze() local 305 struct pgid *first = NULL; in pgid_analyze() [all …]
|
D | css.h | 57 struct pgid { struct 121 struct pgid global_pgid;
|
D | io_sch.h | 127 struct pgid pgid[8]; /* path group IDs per chpid*/ member
|
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_vlan.c | 118 void sparx5_pgid_update_mask(struct sparx5_port *port, int pgid, bool enable) in sparx5_pgid_update_mask() argument 127 spx5_rmw(val, mask, sparx5, ANA_AC_PGID_CFG(pgid)); in sparx5_pgid_update_mask() 131 spx5_rmw(val, mask, sparx5, ANA_AC_PGID_CFG1(pgid)); in sparx5_pgid_update_mask() 135 spx5_rmw(val, mask, sparx5, ANA_AC_PGID_CFG2(pgid)); in sparx5_pgid_update_mask() 141 void sparx5_pgid_clear(struct sparx5 *spx5, int pgid) in sparx5_pgid_clear() argument 143 spx5_wr(0, spx5, ANA_AC_PGID_CFG(pgid)); in sparx5_pgid_clear() 144 spx5_wr(0, spx5, ANA_AC_PGID_CFG1(pgid)); in sparx5_pgid_clear() 145 spx5_wr(0, spx5, ANA_AC_PGID_CFG2(pgid)); in sparx5_pgid_clear() 148 void sparx5_pgid_read_mask(struct sparx5 *spx5, int pgid, u32 portmask[3]) in sparx5_pgid_read_mask() argument 150 portmask[0] = spx5_rd(spx5, ANA_AC_PGID_CFG(pgid)); in sparx5_pgid_read_mask() [all …]
|
D | sparx5_switchdev.c | 35 int pgid; in sparx5_port_update_mcast_ip_flood() local 37 for (pgid = PGID_IPV4_MC_DATA; pgid <= PGID_IPV6_MC_CTRL; pgid++) in sparx5_port_update_mcast_ip_flood() 38 sparx5_pgid_update_mask(port, pgid, should_flood); in sparx5_port_update_mcast_ip_flood() 506 static void sparx5_cpu_copy_ena(struct sparx5 *spx5, u16 pgid, bool enable) in sparx5_cpu_copy_ena() argument 510 ANA_AC_PGID_MISC_CFG(pgid)); in sparx5_cpu_copy_ena()
|
D | sparx5_mactable.c | 80 int sparx5_mact_learn(struct sparx5 *sparx5, int pgid, in sparx5_mact_learn() argument 85 if (pgid < SPX5_PORTS) { in sparx5_mact_learn() 87 addr = pgid % 32; in sparx5_mact_learn() 88 addr += (pgid / 32) << 5; /* Add upsid */ in sparx5_mact_learn() 91 addr = pgid - SPX5_PORTS; in sparx5_mact_learn()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 281 int dcb_type = pcmd->u.dcb.pgid.type; in cxgb4_dcb_handle_fw_update() 333 dcb->pgid = be32_to_cpu(fwdcb->pgid.pgid); in cxgb4_dcb_handle_fw_update() 439 u8 *prio_type, u8 *pgid, u8 *bw_per, in cxgb4_getpgtccfg() argument 447 *prio_type = *pgid = *bw_per = *up_tc_map = 0; in cxgb4_getpgtccfg() 454 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; in cxgb4_getpgtccfg() 460 *pgid = (be32_to_cpu(pcmd.u.dcb.pgid.pgid) >> (tc * 4)) & 0xf; in cxgb4_getpgtccfg() 474 *bw_per = pcmd.u.dcb.pgrate.pgrate[*pgid]; in cxgb4_getpgtccfg() 478 if (*pgid != 0xF) in cxgb4_getpgtccfg() 483 u8 *prio_type, u8 *pgid, u8 *bw_per, in cxgb4_getpgtccfg_tx() argument 487 return cxgb4_getpgtccfg(dev, (7 - tc), prio_type, pgid, bw_per, in cxgb4_getpgtccfg_tx() [all …]
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/ |
D | qede_dcbnl.c | 34 u8 *prio_type, u8 *pgid, u8 *bw_pct, in qede_dcbnl_getpgtccfgtx() argument 40 pgid, bw_pct, up_map); in qede_dcbnl_getpgtccfgtx() 44 int pgid, u8 *bw_pct) in qede_dcbnl_getpgbwgcfgtx() argument 48 edev->ops->dcb->getpgbwgcfgtx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgtx() 52 u8 *prio_type, u8 *pgid, u8 *bw_pct, in qede_dcbnl_getpgtccfgrx() argument 57 edev->ops->dcb->getpgtccfgrx(edev->cdev, prio, prio_type, pgid, bw_pct, in qede_dcbnl_getpgtccfgrx() 62 int pgid, u8 *bw_pct) in qede_dcbnl_getpgbwgcfgrx() argument 66 edev->ops->dcb->getpgbwgcfgrx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgrx() 121 u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) in qede_dcbnl_setpgtccfgtx() argument 125 return edev->ops->dcb->setpgtccfgtx(edev->cdev, prio, pri_type, pgid, in qede_dcbnl_setpgtccfgtx() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mscc/ |
D | ocelot.c | 1800 struct ocelot_pgid *pgid; in ocelot_pgid_alloc() local 1802 pgid = kzalloc(sizeof(*pgid), GFP_KERNEL); in ocelot_pgid_alloc() 1803 if (!pgid) in ocelot_pgid_alloc() 1806 pgid->ports = ports; in ocelot_pgid_alloc() 1807 pgid->index = index; in ocelot_pgid_alloc() 1808 refcount_set(&pgid->refcount, 1); in ocelot_pgid_alloc() 1809 list_add_tail(&pgid->list, &ocelot->pgids); in ocelot_pgid_alloc() 1811 return pgid; in ocelot_pgid_alloc() 1814 static void ocelot_pgid_free(struct ocelot *ocelot, struct ocelot_pgid *pgid) in ocelot_pgid_free() argument 1816 if (!refcount_dec_and_test(&pgid->refcount)) in ocelot_pgid_free() [all …]
|
/linux-6.6.21/include/linux/ceph/ |
D | osdmap.h | 30 struct ceph_pg pgid; member 153 struct ceph_pg pgid; member 231 static inline int ceph_decode_pgid(void **p, void *end, struct ceph_pg *pgid) in ceph_decode_pgid() argument 246 pgid->pool = ceph_decode_64(p); in ceph_decode_pgid() 247 pgid->seed = ceph_decode_32(p); in ceph_decode_pgid() 273 bool ceph_pg_is_split(const struct ceph_pg *pgid, u32 old_pg_num, 289 const struct ceph_pg *pgid);
|
/linux-6.6.21/include/linux/qed/ |
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-6.6.21/net/ceph/ |
D | debugfs.c | 96 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, in osdmap_show() 97 pg->pgid.seed); in osdmap_show() 107 seq_printf(s, "primary_temp %llu.%x %d\n", pg->pgid.pool, in osdmap_show() 108 pg->pgid.seed, pg->primary_temp.osd); in osdmap_show() 114 seq_printf(s, "pg_upmap %llu.%x [", pg->pgid.pool, in osdmap_show() 115 pg->pgid.seed); in osdmap_show() 125 seq_printf(s, "pg_upmap_items %llu.%x [", pg->pgid.pool, in osdmap_show() 126 pg->pgid.seed); in osdmap_show() 178 seq_printf(s, "%llu.%x", spgid->pgid.pool, spgid->pgid.seed); in dump_spgid() 187 seq_printf(s, "osd%d\t%llu.%x\t", t->osd, t->pgid.pool, t->pgid.seed); in dump_target()
|
D | osdmap.c | 695 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare() 730 DEFINE_RB_FUNCS2(pg_mapping, struct ceph_pg_mapping, pgid, ceph_pg_compare, in DEFINE_RB_FUNCS2() argument 1400 struct ceph_pg pgid; in decode_pg_mapping() local 1403 ret = ceph_decode_pgid(p, end, &pgid); in decode_pg_mapping() 1407 pg = lookup_pg_mapping(mapping_root, &pgid); in decode_pg_mapping() 1420 pg->pgid = pgid; /* struct */ in decode_pg_mapping() 2290 bool ceph_pg_is_split(const struct ceph_pg *pgid, u32 old_pg_num, in ceph_pg_is_split() argument 2297 WARN_ON(pgid->seed >= old_pg_num); in ceph_pg_is_split() 2303 u32 s = next_bit | pgid->seed; in ceph_pg_is_split() 2305 if (s < old_pg_num || s == pgid->seed) in ceph_pg_is_split() [all …]
|
D | osd_client.c | 466 dest->pgid = src->pgid; /* struct */ in target_copy() 1610 struct ceph_pg pgid, last_pgid; in calc_target() local 1657 __ceph_object_locator_to_pg(pi, &t->target_oid, &t->target_oloc, &pgid); in calc_target() 1658 last_pgid.pool = pgid.pool; in calc_target() 1659 last_pgid.seed = ceph_stable_mod(pgid.seed, t->pg_num, t->pg_num_mask); in calc_target() 1661 ceph_pg_to_up_acting_osds(osdc->osdmap, pi, &pgid, &up, &acting); in calc_target() 1684 legacy_change = ceph_pg_compare(&t->pgid, &pgid) || in calc_target() 1691 t->pgid = pgid; /* struct */ in calc_target() 1692 ceph_pg_to_primary_shard(osdc->osdmap, pi, &pgid, &t->spgid); in calc_target() 2020 hoid->hash = t->pgid.seed; in hoid_fill_from_target() [all …]
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.c | 144 u8 pgid; member 660 u8 i, tc, pgid; in qlcnic_dcb_fill_cee_tc_params() local 675 pgid = QLC_DCB_GET_PGID_PRIO(each->prio_pg_map[0], i); in qlcnic_dcb_fill_cee_tc_params() 677 pgid = QLC_DCB_GET_PGID_PRIO(each->prio_pg_map[1], i); in qlcnic_dcb_fill_cee_tc_params() 679 tc_cfg->pgid = pgid; in qlcnic_dcb_fill_cee_tc_params() 682 type->pg_cfg[tc_cfg->pgid].prio_count++; in qlcnic_dcb_fill_cee_tc_params() 793 u8 *pgid, u8 *bw_per, u8 *up_tc_map) in qlcnic_dcb_get_pg_tc_cfg_tx() argument 801 *prio = *pgid = *bw_per = *up_tc_map = 0; in qlcnic_dcb_get_pg_tc_cfg_tx() 814 *pgid = tc_cfg->pgid; in qlcnic_dcb_get_pg_tc_cfg_tx() 817 pg = *pgid; in qlcnic_dcb_get_pg_tc_cfg_tx() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb_nl.c | 402 static void i40e_dcbnl_set_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, in i40e_dcbnl_set_pg_bwg_cfg_tx() argument 412 if (pgid >= I40E_MAX_TRAFFIC_CLASS) in i40e_dcbnl_set_pg_bwg_cfg_tx() 415 pf->tmp_cfg.etscfg.tcbwtable[pgid] = bw_pct; in i40e_dcbnl_set_pg_bwg_cfg_tx() 417 pgid, bw_pct); in i40e_dcbnl_set_pg_bwg_cfg_tx() 435 u8 __always_unused pgid, in i40e_dcbnl_set_pg_tc_cfg_rx() argument 453 static void i40e_dcbnl_set_pg_bwg_cfg_rx(struct net_device *netdev, int pgid, in i40e_dcbnl_set_pg_bwg_cfg_rx() argument 474 u8 *pgid, in i40e_dcbnl_get_pg_tc_cfg_tx() argument 487 *pgid = pf->hw.local_dcbx_config.etscfg.prioritytable[prio]; in i40e_dcbnl_get_pg_tc_cfg_tx() 489 prio, *pgid); in i40e_dcbnl_get_pg_tc_cfg_tx() 500 static void i40e_dcbnl_get_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, in i40e_dcbnl_get_pg_bwg_cfg_tx() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_mdb.c | 19 struct lan966x_pgid_entry *pgid; member 264 lan966x_pgid_entry_del(lan966x, mdb_entry->pgid); in lan966x_mdb_l2_add() 282 mdb_entry->pgid = pgid_entry; in lan966x_mdb_l2_add() 328 lan966x_pgid_entry_del(lan966x, mdb_entry->pgid); in lan966x_mdb_l2_del() 344 mdb_entry->pgid = pgid_entry; in lan966x_mdb_l2_del() 416 lan966x_pgid_entry_del(lan966x, mdb_entry->pgid); in lan966x_mdb_l2_cpu_copy() 426 mdb_entry->pgid = pgid_entry; in lan966x_mdb_l2_cpu_copy() 471 lan966x_pgid_entry_del(lan966x, mdb_entry->pgid); in lan966x_mdb_l2_cpu_remove() 481 mdb_entry->pgid = pgid_entry; in lan966x_mdb_l2_cpu_remove() 546 lan966x_mac_learn(lan966x, mdb_entry->pgid->index, in lan966x_mdb_restore_entries()
|
D | lan966x_mac.c | 73 static int __lan966x_mac_learn_locked(struct lan966x *lan966x, int pgid, in __lan966x_mac_learn_locked() argument 87 ANA_MACACCESS_DEST_IDX_SET(pgid) | in __lan966x_mac_learn_locked() 95 static int __lan966x_mac_learn(struct lan966x *lan966x, int pgid, in __lan966x_mac_learn() argument 104 ret = __lan966x_mac_learn_locked(lan966x, pgid, cpu_copy, mac, vid, type); in __lan966x_mac_learn()
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_dcb_nl.c | 434 u8 __always_unused *prio_type, u8 *pgid, in ice_dcbnl_get_pg_tc_cfg_tx() argument 448 *pgid = pi->qos_cfg.local_dcbx_cfg.etscfg.prio_table[prio]; in ice_dcbnl_get_pg_tc_cfg_tx() 450 *pgid); in ice_dcbnl_get_pg_tc_cfg_tx() 502 ice_dcbnl_get_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, u8 *bw_pct) in ice_dcbnl_get_pg_bwg_cfg_tx() argument 511 if (pgid >= ICE_MAX_TRAFFIC_CLASS) in ice_dcbnl_get_pg_bwg_cfg_tx() 514 *bw_pct = pi->qos_cfg.local_dcbx_cfg.etscfg.tcbwtable[pgid]; in ice_dcbnl_get_pg_bwg_cfg_tx() 516 pgid, *bw_pct); in ice_dcbnl_get_pg_bwg_cfg_tx() 526 ice_dcbnl_set_pg_bwg_cfg_tx(struct net_device *netdev, int pgid, u8 bw_pct) in ice_dcbnl_set_pg_bwg_cfg_tx() argument 535 if (pgid >= ICE_MAX_TRAFFIC_CLASS) in ice_dcbnl_set_pg_bwg_cfg_tx() 545 new_cfg->etscfg.tcbwtable[pgid] = bw_pct; in ice_dcbnl_set_pg_bwg_cfg_tx() [all …]
|
/linux-6.6.21/include/soc/mscc/ |
D | ocelot.h | 73 #define for_each_unicast_dest_pgid(ocelot, pgid) \ argument 74 for ((pgid) = 0; \ 75 (pgid) < (ocelot)->num_phys_ports; \ 76 (pgid)++) 78 #define for_each_nonreserved_multicast_dest_pgid(ocelot, pgid) \ argument 79 for ((pgid) = (ocelot)->num_phys_ports + 1; \ 80 (pgid) < PGID_BLACKHOLE; \ 81 (pgid)++) 83 #define for_each_aggr_pgid(ocelot, pgid) \ argument 84 for ((pgid) = PGID_AGGR; \ [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dcbnl.c | 698 u8 pgid, u8 bw_pct, u8 up_map) in mlx5e_dcbnl_setpgtccfgtx() argument 709 if (pgid >= CEE_DCBX_MAX_PGS) { in mlx5e_dcbnl_setpgtccfgtx() 715 cee_cfg->prio_to_pg_map[priority] = pgid; in mlx5e_dcbnl_setpgtccfgtx() 719 int pgid, u8 bw_pct) in mlx5e_dcbnl_setpgbwgcfgtx() argument 724 if (pgid >= CEE_DCBX_MAX_PGS) { in mlx5e_dcbnl_setpgbwgcfgtx() 730 cee_cfg->pg_bw_pct[pgid] = bw_pct; in mlx5e_dcbnl_setpgbwgcfgtx() 735 u8 *pgid, u8 *bw_pct, u8 *up_map) in mlx5e_dcbnl_getpgtccfgtx() argument 755 if (mlx5_query_port_prio_tc(mdev, priority, pgid)) in mlx5e_dcbnl_getpgtccfgtx() 756 *pgid = 0; in mlx5e_dcbnl_getpgtccfgtx() 760 int pgid, u8 *bw_pct) in mlx5e_dcbnl_getpgbwgcfgtx() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_dcbx.c | 1350 u8 *pgid, u8 *bw_pct, u8 *up_map) in qed_dcbnl_getpgtccfgtx() argument 1356 *prio_type = *pgid = *bw_pct = *up_map = 0; in qed_dcbnl_getpgtccfgtx() 1366 *pgid = dcbx_info->operational.params.ets_pri_tc_tbl[tc]; in qed_dcbnl_getpgtccfgtx() 1370 static void qed_dcbnl_getpgbwgcfgtx(struct qed_dev *cdev, int pgid, u8 *bw_pct) in qed_dcbnl_getpgbwgcfgtx() argument 1376 DP_VERBOSE(hwfn, QED_MSG_DCB, "pgid = %d\n", pgid); in qed_dcbnl_getpgbwgcfgtx() 1377 if (pgid < 0 || pgid >= QED_MAX_PFC_PRIORITIES) { in qed_dcbnl_getpgbwgcfgtx() 1378 DP_INFO(hwfn, "Invalid pgid %d\n", pgid); in qed_dcbnl_getpgbwgcfgtx() 1386 *bw_pct = dcbx_info->operational.params.ets_tc_bw_tbl[pgid]; in qed_dcbnl_getpgbwgcfgtx() 1564 u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) in qed_dcbnl_setpgtccfgtx() argument 1573 tc, pri_type, pgid, bw_pct, up_map); in qed_dcbnl_setpgtccfgtx() [all …]
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_dcb.c | 1979 u8 prio_type, u8 pgid, u8 bw_pct, in bnx2x_dcbnl_set_pg_tccfg_tx() argument 1984 DP(BNX2X_MSG_DCB, "prio[%d] = %d\n", prio, pgid); in bnx2x_dcbnl_set_pg_tccfg_tx() 2001 bp->dcbx_config_params.admin_configuration_ets_pg[prio] = pgid; in bnx2x_dcbnl_set_pg_tccfg_tx() 2006 int pgid, u8 bw_pct) in bnx2x_dcbnl_set_pg_bwgcfg_tx() argument 2009 DP(BNX2X_MSG_DCB, "pgid[%d] = %d\n", pgid, bw_pct); in bnx2x_dcbnl_set_pg_bwgcfg_tx() 2011 if (!bnx2x_dcbnl_set_valid(bp) || pgid >= DCBX_MAX_NUM_PG_BW_ENTRIES) in bnx2x_dcbnl_set_pg_bwgcfg_tx() 2014 bp->dcbx_config_params.admin_configuration_bw_precentage[pgid] = bw_pct; in bnx2x_dcbnl_set_pg_bwgcfg_tx() 2019 u8 prio_type, u8 pgid, u8 bw_pct, in bnx2x_dcbnl_set_pg_tccfg_rx() argument 2027 int pgid, u8 bw_pct) in bnx2x_dcbnl_set_pg_bwgcfg_rx() argument 2034 u8 *prio_type, u8 *pgid, u8 *bw_pct, in bnx2x_dcbnl_get_pg_tccfg_tx() argument [all …]
|
/linux-6.6.21/net/dcb/ |
D | dcbnl.c | 591 u8 prio, pgid, tc_pct, up_map; in __dcbnl_pg_getcfg() local 636 pgid = DCB_ATTR_VALUE_UNDEFINED; in __dcbnl_pg_getcfg() 645 &pgid, &tc_pct, &up_map); in __dcbnl_pg_getcfg() 650 &pgid, &tc_pct, &up_map); in __dcbnl_pg_getcfg() 656 DCB_TC_ATTR_PARAM_PGID, pgid); in __dcbnl_pg_getcfg() 807 u8 pgid; in __dcbnl_pg_setcfg() local 838 pgid = DCB_ATTR_VALUE_UNDEFINED; in __dcbnl_pg_setcfg() 848 pgid = nla_get_u8(param_tb[DCB_TC_ATTR_PARAM_PGID]); in __dcbnl_pg_setcfg() 862 prio, pgid, tc_pct, up_map); in __dcbnl_pg_setcfg() 867 prio, pgid, tc_pct, up_map); in __dcbnl_pg_setcfg() [all …]
|
/linux-6.6.21/fs/ceph/ |
D | ioctl.c | 191 struct ceph_pg pgid; in ceph_ioctl_get_dataloc() local 216 r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid); in ceph_ioctl_get_dataloc() 224 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); in ceph_ioctl_get_dataloc()
|