Lines Matching refs:pgid

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) >> (tc * 4)) & 0xf;
474 *bw_per = pcmd.u.dcb.pgrate.pgrate[*pgid];
478 if (*pgid != 0xF)
483 u8 *prio_type, u8 *pgid, u8 *bw_per,
487 return cxgb4_getpgtccfg(dev, (7 - tc), prio_type, pgid, bw_per,
493 u8 *prio_type, u8 *pgid, u8 *bw_per,
497 return cxgb4_getpgtccfg(dev, (7 - tc), prio_type, pgid, bw_per,
502 u8 prio_type, u8 pgid, u8 bw_per,
512 if (pgid == DCB_ATTR_VALUE_UNDEFINED)
518 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID;
526 _pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid);
528 _pgid |= pgid << (fw_tc * 4);
529 pcmd.u.dcb.pgid.pgid = cpu_to_be32(_pgid);
552 pcmd.u.dcb.pgrate.pgrate[pgid] = bw_per;
564 static void cxgb4_getpgbwgcfg(struct net_device *dev, int pgid, u8 *bw_per,
585 *bw_per = pcmd.u.dcb.pgrate.pgrate[pgid];
588 static void cxgb4_getpgbwgcfg_tx(struct net_device *dev, int pgid, u8 *bw_per)
590 return cxgb4_getpgbwgcfg(dev, pgid, bw_per, 1);
593 static void cxgb4_getpgbwgcfg_rx(struct net_device *dev, int pgid, u8 *bw_per)
595 return cxgb4_getpgbwgcfg(dev, pgid, bw_per, 0);
598 static void cxgb4_setpgbwgcfg_tx(struct net_device *dev, int pgid,
616 pcmd.u.dcb.pgrate.pgrate[pgid] = bw_per;
962 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID;
969 tc_info = be32_to_cpu(pcmd.u.dcb.pgid.pgid);
1186 u32 pgid;
1195 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID;
1201 pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid);
1204 pg->prio_pg[7 - i] = (pgid >> (i * 4)) & 0xF;