Lines Matching refs:sbsr_pl
1559 char *sbsr_pl, size_t sbsr_pl_len, in mlxsw_sp_sb_sr_occ_query_cb() argument
1585 mlxsw_reg_sbsr_rec_unpack(sbsr_pl, rec_index++, in mlxsw_sp_sb_sr_occ_query_cb()
1599 mlxsw_reg_sbsr_rec_unpack(sbsr_pl, rec_index++, in mlxsw_sp_sb_sr_occ_query_cb()
1616 char *sbsr_pl; in mlxsw_sp_sb_occ_snapshot() local
1621 sbsr_pl = kmalloc(MLXSW_REG_SBSR_LEN, GFP_KERNEL); in mlxsw_sp_sb_occ_snapshot()
1622 if (!sbsr_pl) in mlxsw_sp_sb_occ_snapshot()
1629 mlxsw_reg_sbsr_pack(sbsr_pl, false); in mlxsw_sp_sb_occ_snapshot()
1630 mlxsw_reg_sbsr_port_page_set(sbsr_pl, current_page); in mlxsw_sp_sb_occ_snapshot()
1635 mlxsw_reg_sbsr_pg_buff_mask_set(sbsr_pl, i, 1); in mlxsw_sp_sb_occ_snapshot()
1637 mlxsw_reg_sbsr_tclass_mask_set(sbsr_pl, i, 1); in mlxsw_sp_sb_occ_snapshot()
1647 mlxsw_reg_sbsr_ingress_port_mask_set(sbsr_pl, in mlxsw_sp_sb_occ_snapshot()
1650 mlxsw_reg_sbsr_egress_port_mask_set(sbsr_pl, local_port, 1); in mlxsw_sp_sb_occ_snapshot()
1665 err = mlxsw_reg_trans_query(mlxsw_core, MLXSW_REG(sbsr), sbsr_pl, in mlxsw_sp_sb_occ_snapshot()
1679 kfree(sbsr_pl); in mlxsw_sp_sb_occ_snapshot()
1691 char *sbsr_pl; in mlxsw_sp_sb_occ_max_clear() local
1696 sbsr_pl = kmalloc(MLXSW_REG_SBSR_LEN, GFP_KERNEL); in mlxsw_sp_sb_occ_max_clear()
1697 if (!sbsr_pl) in mlxsw_sp_sb_occ_max_clear()
1703 mlxsw_reg_sbsr_pack(sbsr_pl, true); in mlxsw_sp_sb_occ_max_clear()
1704 mlxsw_reg_sbsr_port_page_set(sbsr_pl, current_page); in mlxsw_sp_sb_occ_max_clear()
1709 mlxsw_reg_sbsr_pg_buff_mask_set(sbsr_pl, i, 1); in mlxsw_sp_sb_occ_max_clear()
1711 mlxsw_reg_sbsr_tclass_mask_set(sbsr_pl, i, 1); in mlxsw_sp_sb_occ_max_clear()
1721 mlxsw_reg_sbsr_ingress_port_mask_set(sbsr_pl, in mlxsw_sp_sb_occ_max_clear()
1724 mlxsw_reg_sbsr_egress_port_mask_set(sbsr_pl, local_port, 1); in mlxsw_sp_sb_occ_max_clear()
1736 err = mlxsw_reg_trans_query(mlxsw_core, MLXSW_REG(sbsr), sbsr_pl, in mlxsw_sp_sb_occ_max_clear()
1749 kfree(sbsr_pl); in mlxsw_sp_sb_occ_max_clear()