Lines Matching refs:pgid
259 int dcb_type = pcmd->u.dcb.pgid.type; in cxgb4_dcb_handle_fw_update()
311 dcb->pgid = be32_to_cpu(fwdcb->pgid.pgid); in cxgb4_dcb_handle_fw_update()
417 u8 *prio_type, u8 *pgid, u8 *bw_per, in cxgb4_getpgtccfg() argument
425 *prio_type = *pgid = *bw_per = *up_tc_map = 0; in cxgb4_getpgtccfg()
432 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; in cxgb4_getpgtccfg()
438 *pgid = (be32_to_cpu(pcmd.u.dcb.pgid.pgid) >> (tc * 4)) & 0xf; in cxgb4_getpgtccfg()
452 *bw_per = pcmd.u.dcb.pgrate.pgrate[*pgid]; in cxgb4_getpgtccfg()
456 if (*pgid != 0xF) in cxgb4_getpgtccfg()
461 u8 *prio_type, u8 *pgid, u8 *bw_per, in cxgb4_getpgtccfg_tx() argument
465 return cxgb4_getpgtccfg(dev, (7 - tc), prio_type, pgid, bw_per, in cxgb4_getpgtccfg_tx()
471 u8 *prio_type, u8 *pgid, u8 *bw_per, in cxgb4_getpgtccfg_rx() argument
475 return cxgb4_getpgtccfg(dev, (7 - tc), prio_type, pgid, bw_per, in cxgb4_getpgtccfg_rx()
480 u8 prio_type, u8 pgid, u8 bw_per, in cxgb4_setpgtccfg_tx() argument
490 if (pgid == DCB_ATTR_VALUE_UNDEFINED) in cxgb4_setpgtccfg_tx()
496 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; in cxgb4_setpgtccfg_tx()
504 _pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid); in cxgb4_setpgtccfg_tx()
506 _pgid |= pgid << (fw_tc * 4); in cxgb4_setpgtccfg_tx()
507 pcmd.u.dcb.pgid.pgid = cpu_to_be32(_pgid); in cxgb4_setpgtccfg_tx()
530 pcmd.u.dcb.pgrate.pgrate[pgid] = bw_per; in cxgb4_setpgtccfg_tx()
542 static void cxgb4_getpgbwgcfg(struct net_device *dev, int pgid, u8 *bw_per, in cxgb4_getpgbwgcfg() argument
563 *bw_per = pcmd.u.dcb.pgrate.pgrate[pgid]; in cxgb4_getpgbwgcfg()
566 static void cxgb4_getpgbwgcfg_tx(struct net_device *dev, int pgid, u8 *bw_per) in cxgb4_getpgbwgcfg_tx() argument
568 return cxgb4_getpgbwgcfg(dev, pgid, bw_per, 1); in cxgb4_getpgbwgcfg_tx()
571 static void cxgb4_getpgbwgcfg_rx(struct net_device *dev, int pgid, u8 *bw_per) in cxgb4_getpgbwgcfg_rx() argument
573 return cxgb4_getpgbwgcfg(dev, pgid, bw_per, 0); in cxgb4_getpgbwgcfg_rx()
576 static void cxgb4_setpgbwgcfg_tx(struct net_device *dev, int pgid, in cxgb4_setpgbwgcfg_tx() argument
594 pcmd.u.dcb.pgrate.pgrate[pgid] = bw_per; in cxgb4_setpgbwgcfg_tx()
940 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; in cxgb4_ieee_read_ets()
947 tc_info = be32_to_cpu(pcmd.u.dcb.pgid.pgid); in cxgb4_ieee_read_ets()
1164 u32 pgid; in cxgb4_cee_peer_getpg() local
1173 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; in cxgb4_cee_peer_getpg()
1179 pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid); in cxgb4_cee_peer_getpg()
1182 pg->prio_pg[7 - i] = (pgid >> (i * 4)) & 0xF; in cxgb4_cee_peer_getpg()