Lines Matching refs:OCELOT_SB_BUF
359 buf_shr_i = ocelot->pool_size[OCELOT_SB_BUF][OCELOT_SB_POOL_ING] - in ocelot_setup_sharing_watermarks()
361 buf_shr_e = ocelot->pool_size[OCELOT_SB_BUF][OCELOT_SB_POOL_EGR] - in ocelot_setup_sharing_watermarks()
391 if (buf_rsrv_i > ocelot->pool_size[OCELOT_SB_BUF][OCELOT_SB_POOL_ING]) { in ocelot_watermark_validate()
396 if (buf_rsrv_e > ocelot->pool_size[OCELOT_SB_BUF][OCELOT_SB_POOL_EGR]) { in ocelot_watermark_validate()
494 [OCELOT_SB_BUF] = {
577 case OCELOT_SB_BUF: in ocelot_sb_port_pool_get()
609 case OCELOT_SB_BUF: in ocelot_sb_port_pool_set()
652 case OCELOT_SB_BUF: in ocelot_sb_tc_pool_bind_get()
699 case OCELOT_SB_BUF: in ocelot_sb_tc_pool_bind_set()
750 case OCELOT_SB_BUF: in ocelot_sb_occ_max_clear()
794 case OCELOT_SB_BUF: in ocelot_sb_occ_port_pool_get()
827 case OCELOT_SB_BUF: in ocelot_sb_occ_tc_port_bind_get()
855 err = devlink_sb_register(ocelot->devlink, OCELOT_SB_BUF, in ocelot_devlink_sb_register()
865 devlink_sb_unregister(ocelot->devlink, OCELOT_SB_BUF); in ocelot_devlink_sb_register()
869 ocelot->pool_size[OCELOT_SB_BUF][OCELOT_SB_POOL_ING] = ocelot->packet_buffer_size; in ocelot_devlink_sb_register()
870 ocelot->pool_size[OCELOT_SB_BUF][OCELOT_SB_POOL_EGR] = ocelot->packet_buffer_size; in ocelot_devlink_sb_register()
882 devlink_sb_unregister(ocelot->devlink, OCELOT_SB_BUF); in ocelot_devlink_sb_unregister()