Home
last modified time | relevance | path

Searched refs:pgid (Results 1 – 25 of 59) sorted by relevance

123

/openbmc/linux/drivers/s390/cio/
H A Ddevice_pgid.c140 struct pgid *pgid = &cdev->private->dma_area->pgid[i]; in spid_build_cp() local
142 pgid->inf.fc = fn; in spid_build_cp()
292 static int pgid_cmp(struct pgid *p1, struct pgid *p2) in pgid_cmp()
304 struct pgid *pgid = &cdev->private->dma_area->pgid[0]; in pgid_analyze() local
322 first = pgid; in pgid_analyze()
336 struct pgid *pgid; in pgid_to_donepm() local
346 pgid = &cdev->private->dma_area->pgid[i]; in pgid_to_donepm()
367 static void pgid_fill(struct ccw_device *cdev, struct pgid *pgid) in pgid_fill() argument
372 memcpy(&cdev->private->dma_area->pgid[i], pgid, in pgid_fill()
383 struct pgid *pgid; in snid_done() local
[all …]
H A Dcss.h57 struct pgid { struct
121 struct pgid global_pgid;
H A Dio_sch.h127 struct pgid pgid[8]; /* path group IDs per chpid*/ member
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vlan.c127 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()
151 portmask[1] = spx5_rd(spx5, ANA_AC_PGID_CFG1(pgid)); in sparx5_pgid_read_mask()
[all …]
H A Dsparx5_switchdev.c35 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()
H A Dsparx5_mactable.c80 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()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_dcb.c281 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()
460 *pgid = (be32_to_cpu(pcmd.u.dcb.pgid.pgid) >> (tc * 4)) & 0xf; in cxgb4_getpgtccfg()
478 if (*pgid != 0xF) in cxgb4_getpgtccfg()
502 u8 prio_type, u8 pgid, u8 bw_per, in cxgb4_setpgtccfg_tx() argument
526 _pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid); in cxgb4_setpgtccfg_tx()
528 _pgid |= pgid << (fw_tc * 4); in cxgb4_setpgtccfg_tx()
529 pcmd.u.dcb.pgid.pgid = cpu_to_be32(_pgid); in cxgb4_setpgtccfg_tx()
969 tc_info = be32_to_cpu(pcmd.u.dcb.pgid.pgid); in cxgb4_ieee_read_ets()
1186 u32 pgid; in cxgb4_cee_peer_getpg() local
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_dcbnl.c34 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
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
130 u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) in qede_dcbnl_setpgtccfgrx() argument
143 return edev->ops->dcb->setpgbwgcfgtx(edev->cdev, pgid, bw_pct); in qede_dcbnl_setpgbwgcfgtx()
[all …]
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot.c1802 pgid = kzalloc(sizeof(*pgid), GFP_KERNEL); in ocelot_pgid_alloc()
1803 if (!pgid) in ocelot_pgid_alloc()
1811 return pgid; in ocelot_pgid_alloc()
1820 kfree(pgid); in ocelot_pgid_free()
1842 if (pgid->index && pgid->ports == mc->ports) { in ocelot_mdb_get_pgid()
1844 return pgid; in ocelot_mdb_get_pgid()
1924 mc->pgid = pgid; in ocelot_port_mdb_add()
1931 pgid->index); in ocelot_port_mdb_add()
1967 if (IS_ERR(pgid)) in ocelot_port_mdb_del()
1969 mc->pgid = pgid; in ocelot_port_mdb_del()
[all …]
/openbmc/linux/include/linux/ceph/
H A Dosdmap.h30 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);
/openbmc/linux/include/linux/qed/
H A Dqed_eth_if.h207 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);
/openbmc/linux/net/ceph/
H A Ddebugfs.c96 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()
H A Dosdmap.c695 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
1400 struct ceph_pg pgid;
1420 pg->pgid = pgid; /* struct */
2311 if (s == pgid->seed) in ceph_pg_is_split()
2448 struct ceph_pg *pgid) in raw_pg_to_pg() argument
2450 pgid->pool = raw_pgid->pool; in raw_pg_to_pg()
2593 const struct ceph_pg *pgid, in apply_upmap() argument
2822 struct ceph_pg pgid; in ceph_pg_to_up_acting_osds() local
2847 struct ceph_pg pgid; in ceph_pg_to_primary_shard() local
2855 spgid->pgid = pgid; /* struct */ in ceph_pg_to_primary_shard()
[all …]
H A Dosd_client.c466 dest->pgid = src->pgid; /* struct */ in target_copy()
1684 legacy_change = ceph_pg_compare(&t->pgid, &pgid) || in calc_target()
1691 t->pgid = pgid; /* struct */ in calc_target()
2261 struct ceph_pg pgid; in encode_request_finish() local
2360 __func__, req, req->r_tid, req->r_t.pgid.pool, req->r_t.pgid.seed, in send_request()
2361 req->r_t.spgid.pgid.pool, req->r_t.spgid.pgid.seed, in send_request()
3673 struct ceph_pg pgid; member
3802 __func__, req, req->r_tid, m.flags, m.pgid.pool, m.pgid.seed, in handle_reply()
3846 req->r_t.pgid.pool = 0; in handle_reply()
4419 m->spgid.pgid.pool, m->spgid.pgid.seed, m->spgid.shard, m->id); in handle_backoff_block()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb_nl.c412 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
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()
509 if (pgid >= I40E_MAX_TRAFFIC_CLASS) in i40e_dcbnl_get_pg_bwg_cfg_tx()
512 *bw_pct = pf->hw.local_dcbx_config.etscfg.tcbwtable[pgid]; in i40e_dcbnl_get_pg_bwg_cfg_tx()
514 pgid, *bw_pct); in i40e_dcbnl_get_pg_bwg_cfg_tx()
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_dcb.c144 u8 pgid; member
660 u8 i, tc, pgid; in qlcnic_dcb_fill_cee_tc_params() local
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()
814 *pgid = tc_cfg->pgid; in qlcnic_dcb_get_pg_tc_cfg_tx()
817 pg = *pgid; in qlcnic_dcb_get_pg_tc_cfg_tx()
821 if (temp->valid && (pg == temp->pgid)) in qlcnic_dcb_get_pg_tc_cfg_tx()
843 if (pgid < 0 || pgid >= QLC_DCB_MAX_PG) in qlcnic_dcb_get_pg_bwg_cfg_tx()
846 pgcfg = &type->pg_cfg[pgid]; in qlcnic_dcb_get_pg_bwg_cfg_tx()
1003 u8 *pgid, u8 *bw_pct, u8 *up_map) in qlcnic_dcb_get_pg_tc_cfg_rx() argument
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mdb.c19 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()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb_nl.c434 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()
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()
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()
559 u8 __always_unused *prio_type, u8 *pgid, in ice_dcbnl_get_pg_tc_cfg_rx() argument
573 *pgid = pi->qos_cfg.local_dcbx_cfg.etscfg.prio_table[prio]; in ice_dcbnl_get_pg_tc_cfg_rx()
[all …]
/openbmc/u-boot/drivers/net/mscc_eswitch/
H A Dmscc_mac_table.c49 const unsigned char mac[ETH_LEN], int pgid) in mscc_mac_table_add() argument
68 ANA_TABLES_MACACCESS_DEST_IDX(pgid) | in mscc_mac_table_add()
H A Dmscc_mac_table.h19 const unsigned char mac[ETH_LEN], int pgid);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dcbnl.c698 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
756 *pgid = 0; in mlx5e_dcbnl_getpgtccfgtx()
760 int pgid, u8 *bw_pct) in mlx5e_dcbnl_getpgbwgcfgtx() argument
764 if (pgid >= CEE_DCBX_MAX_PGS) { in mlx5e_dcbnl_getpgbwgcfgtx()
[all …]
/openbmc/linux/include/soc/mscc/
H A Docelot.h73 #define for_each_unicast_dest_pgid(ocelot, pgid) \ argument
74 for ((pgid) = 0; \
75 (pgid) < (ocelot)->num_phys_ports; \
76 (pgid)++)
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; \
85 (pgid) < PGID_SRC; \
[all …]
/openbmc/u-boot/drivers/net/
H A Dvsc9953.c1576 u32 pgid; in vsc9953_update_dest_members_masks() local
1596 pgid &= ~((u32)(1 << port_no)); in vsc9953_update_dest_members_masks()
1598 pgid |= ((u32)(1 << port_no)); in vsc9953_update_dest_members_masks()
1610 u32 pgid; in vsc9953_update_source_members_masks() local
1620 pgid = (pgid | VSC9953_PGID_PORT_MASK) & in vsc9953_update_source_members_masks()
1623 pgid); in vsc9953_update_source_members_masks()
1628 pgid |= (u32)(1 << port_no); in vsc9953_update_source_members_masks()
1631 pgid &= ~(u32)(1 << port_no); in vsc9953_update_source_members_masks()
1659 u32 pgid; in vsc9953_update_aggr_members_masks() local
1673 pgid = (pgid & ~membr_bitfld_old) | aggr_mask_old; in vsc9953_update_aggr_members_masks()
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_dcbx.c1350 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()
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()
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()
1586 dcbx_set.config.params.ets_pri_tc_tbl[tc] = pgid; in qed_dcbnl_setpgtccfgtx()
1598 u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) in qed_dcbnl_setpgtccfgrx() argument
1611 if (pgid < 0 || pgid >= QED_MAX_PFC_PRIORITIES) { in qed_dcbnl_setpgbwgcfgtx()
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_dcb.c1979 u8 prio_type, u8 pgid, u8 bw_pct, in bnx2x_dcbnl_set_pg_tccfg_tx() argument
2006 int pgid, u8 bw_pct) in bnx2x_dcbnl_set_pg_bwgcfg_tx() argument
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
2052 *up_map = *bw_pct = *prio_type = *pgid = 0; in bnx2x_dcbnl_get_pg_tccfg_tx()
2061 int pgid, u8 *bw_pct) in bnx2x_dcbnl_get_pg_bwgcfg_tx() argument
2064 DP(BNX2X_MSG_DCB, "pgid = %d\n", pgid); in bnx2x_dcbnl_get_pg_bwgcfg_tx()
2075 u8 *prio_type, u8 *pgid, u8 *bw_pct, in bnx2x_dcbnl_get_pg_tccfg_rx() argument
2081 *prio_type = *pgid = *bw_pct = *up_map = 0; in bnx2x_dcbnl_get_pg_tccfg_rx()
[all …]

123