/linux/drivers/s390/cio/ |
A D | device_pgid.c | 139 struct pgid *pgid = &cdev->private->dma_area->pgid[i]; in spid_build_cp() local 141 pgid->inf.fc = fn; in spid_build_cp() 291 static int pgid_cmp(struct pgid *p1, struct pgid *p2) in pgid_cmp() 303 struct pgid *pgid = &cdev->private->dma_area->pgid[0]; in pgid_analyze() local 321 first = pgid; in pgid_analyze() 335 struct pgid *pgid; in pgid_to_donepm() local 345 pgid = &cdev->private->dma_area->pgid[i]; in pgid_to_donepm() 366 static void pgid_fill(struct ccw_device *cdev, struct pgid *pgid) in pgid_fill() argument 371 memcpy(&cdev->private->dma_area->pgid[i], pgid, in pgid_fill() 382 struct pgid *pgid; in snid_done() local [all …]
|
A D | css.h | 57 struct pgid { struct 121 struct pgid global_pgid;
|
A D | io_sch.h | 127 struct pgid pgid[8]; /* path group IDs per chpid*/ member
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A 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() 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 …]
|
A D | cxgb4_dcb.h | 105 u32 pgid; /* Priority Group[0..7] */ member
|
/linux/drivers/net/ethernet/qlogic/qede/ |
A 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 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 …]
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot.c | 1133 int pgid = port; in ocelot_fdb_add() local 1136 pgid = PGID_CPU; in ocelot_fdb_add() 1872 pgid = kzalloc(sizeof(*pgid), GFP_KERNEL); in ocelot_pgid_alloc() 1873 if (!pgid) in ocelot_pgid_alloc() 1881 return pgid; in ocelot_pgid_alloc() 1890 kfree(pgid); in ocelot_pgid_free() 1912 if (pgid->index && pgid->ports == mc->ports) { in ocelot_mdb_get_pgid() 1914 return pgid; in ocelot_mdb_get_pgid() 1993 mc->pgid = pgid; in ocelot_port_mdb_add() 2000 pgid->index); in ocelot_port_mdb_add() [all …]
|
A D | ocelot.h | 91 struct ocelot_pgid *pgid; member
|
/linux/include/linux/qed/ |
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/include/linux/ceph/ |
A 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/net/ceph/ |
A 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()
|
A D | osdmap.c | 679 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare() 1384 struct ceph_pg pgid; 1404 pg->pgid = pgid; /* struct */ 2295 if (s == pgid->seed) in ceph_pg_is_split() 2432 struct ceph_pg *pgid) in raw_pg_to_pg() argument 2434 pgid->pool = raw_pgid->pool; in raw_pg_to_pg() 2577 const struct ceph_pg *pgid, in apply_upmap() argument 2806 struct ceph_pg pgid; in ceph_pg_to_up_acting_osds() local 2831 struct ceph_pg pgid; in ceph_pg_to_primary_shard() local 2839 spgid->pgid = pgid; /* struct */ in ceph_pg_to_primary_shard() [all …]
|
A D | osd_client.c | 439 dest->pgid = src->pgid; /* struct */ in target_copy() 1625 legacy_change = ceph_pg_compare(&t->pgid, &pgid) || in calc_target() 1632 t->pgid = pgid; /* struct */ in calc_target() 2201 struct ceph_pg pgid; in encode_request_finish() local 2300 __func__, req, req->r_tid, req->r_t.pgid.pool, req->r_t.pgid.seed, in send_request() 2301 req->r_t.spgid.pgid.pool, req->r_t.spgid.pgid.seed, in send_request() 3558 struct ceph_pg pgid; member 3687 __func__, req, req->r_tid, m.flags, m.pgid.pool, m.pgid.seed, in handle_reply() 3731 req->r_t.pgid.pool = 0; in handle_reply() 4303 m->spgid.pgid.pool, m->spgid.pgid.seed, m->spgid.shard, m->id); in handle_backoff_block() [all …]
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_dcb.c | 144 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 …]
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_dcb_nl.c | 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 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 …]
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_dcb_nl.c | 409 u8 __always_unused *prio_type, u8 *pgid, in ice_dcbnl_get_pg_tc_cfg_tx() argument 423 *pgid = pi->qos_cfg.local_dcbx_cfg.etscfg.prio_table[prio]; in ice_dcbnl_get_pg_tc_cfg_tx() 425 *pgid); in ice_dcbnl_get_pg_tc_cfg_tx() 481 if (pgid >= ICE_MAX_TRAFFIC_CLASS) in ice_dcbnl_get_pg_bwg_cfg_tx() 484 *bw_pct = pi->qos_cfg.local_dcbx_cfg.etscfg.tcbwtable[pgid]; in ice_dcbnl_get_pg_bwg_cfg_tx() 486 pgid, *bw_pct); in ice_dcbnl_get_pg_bwg_cfg_tx() 505 if (pgid >= ICE_MAX_TRAFFIC_CLASS) in ice_dcbnl_set_pg_bwg_cfg_tx() 510 new_cfg->etscfg.tcbwtable[pgid] = bw_pct; in ice_dcbnl_set_pg_bwg_cfg_tx() 524 u8 __always_unused *prio_type, u8 *pgid, in ice_dcbnl_get_pg_tc_cfg_rx() argument 538 *pgid = pi->qos_cfg.local_dcbx_cfg.etscfg.prio_table[prio]; in ice_dcbnl_get_pg_tc_cfg_rx() [all …]
|
/linux/include/soc/mscc/ |
A D | ocelot.h | 71 #define for_each_unicast_dest_pgid(ocelot, pgid) \ argument 72 for ((pgid) = 0; \ 73 (pgid) < (ocelot)->num_phys_ports; \ 74 (pgid)++) 77 for ((pgid) = (ocelot)->num_phys_ports + 1; \ 78 (pgid) < PGID_BLACKHOLE; \ 79 (pgid)++) 81 #define for_each_aggr_pgid(ocelot, pgid) \ argument 82 for ((pgid) = PGID_AGGR; \ 83 (pgid) < PGID_SRC; \ [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A 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()
|
A 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/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_dcbnl.c | 696 u8 pgid, u8 bw_pct, u8 up_map) in mlx5e_dcbnl_setpgtccfgtx() argument 707 if (pgid >= CEE_DCBX_MAX_PGS) { in mlx5e_dcbnl_setpgtccfgtx() 713 cee_cfg->prio_to_pg_map[priority] = pgid; in mlx5e_dcbnl_setpgtccfgtx() 717 int pgid, u8 bw_pct) in mlx5e_dcbnl_setpgbwgcfgtx() argument 722 if (pgid >= CEE_DCBX_MAX_PGS) { in mlx5e_dcbnl_setpgbwgcfgtx() 728 cee_cfg->pg_bw_pct[pgid] = bw_pct; in mlx5e_dcbnl_setpgbwgcfgtx() 733 u8 *pgid, u8 *bw_pct, u8 *up_map) in mlx5e_dcbnl_getpgtccfgtx() argument 754 *pgid = 0; in mlx5e_dcbnl_getpgtccfgtx() 758 int pgid, u8 *bw_pct) in mlx5e_dcbnl_getpgbwgcfgtx() argument 762 if (pgid >= CEE_DCBX_MAX_PGS) { in mlx5e_dcbnl_getpgbwgcfgtx() [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A 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() 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 …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_dcb.c | 1979 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 …]
|
/linux/net/dcb/ |
A D | dcbnl.c | 557 u8 prio, pgid, tc_pct, up_map; in __dcbnl_pg_getcfg() local 602 pgid = DCB_ATTR_VALUE_UNDEFINED; in __dcbnl_pg_getcfg() 611 &pgid, &tc_pct, &up_map); in __dcbnl_pg_getcfg() 616 &pgid, &tc_pct, &up_map); in __dcbnl_pg_getcfg() 773 u8 pgid; in __dcbnl_pg_setcfg() local 804 pgid = DCB_ATTR_VALUE_UNDEFINED; in __dcbnl_pg_setcfg() 828 prio, pgid, tc_pct, up_map); in __dcbnl_pg_setcfg() 833 prio, pgid, tc_pct, up_map); in __dcbnl_pg_setcfg() 1177 u8 pgid, up_map, prio, tc_pct; in dcbnl_cee_pg_fill() local 1191 pgid = DCB_ATTR_VALUE_UNDEFINED; in dcbnl_cee_pg_fill() [all …]
|
/linux/fs/ceph/ |
A D | ioctl.c | 190 struct ceph_pg pgid; in ceph_ioctl_get_dataloc() local 215 r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid); in ceph_ioctl_get_dataloc() 223 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); in ceph_ioctl_get_dataloc()
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_msg.c | 1161 pid_t pgid, pid; in vmw_mksstat_remove_ioctl() local 1168 pgid = task_pgrp_vnr(current); in vmw_mksstat_remove_ioctl() 1169 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl() 1174 if (pid == pgid) { in vmw_mksstat_remove_ioctl()
|