Lines Matching refs:sb_index

505 int ocelot_sb_pool_get(struct ocelot *ocelot, unsigned int sb_index,  in ocelot_sb_pool_get()  argument
509 if (sb_index >= OCELOT_SB_NUM) in ocelot_sb_pool_get()
514 *pool_info = ocelot_sb_pool[sb_index]; in ocelot_sb_pool_get()
515 pool_info->size = ocelot->pool_size[sb_index][pool_index]; in ocelot_sb_pool_get()
530 int ocelot_sb_pool_set(struct ocelot *ocelot, unsigned int sb_index, in ocelot_sb_pool_set() argument
538 if (sb_index >= OCELOT_SB_NUM) { in ocelot_sb_pool_set()
554 old_pool_size = ocelot->pool_size[sb_index][pool_index]; in ocelot_sb_pool_set()
555 ocelot->pool_size[sb_index][pool_index] = size; in ocelot_sb_pool_set()
559 ocelot->pool_size[sb_index][pool_index] = old_pool_size; in ocelot_sb_pool_set()
571 unsigned int sb_index, u16 pool_index, in ocelot_sb_port_pool_get() argument
576 switch (sb_index) { in ocelot_sb_port_pool_get()
594 *p_threshold *= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_port_pool_get()
602 unsigned int sb_index, u16 pool_index, in ocelot_sb_port_pool_set() argument
608 switch (sb_index) { in ocelot_sb_port_pool_set()
626 threshold /= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_port_pool_set()
645 unsigned int sb_index, u16 tc_index, in ocelot_sb_tc_pool_bind_get() argument
651 switch (sb_index) { in ocelot_sb_tc_pool_bind_get()
669 *p_threshold *= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_tc_pool_bind_get()
682 unsigned int sb_index, u16 tc_index, in ocelot_sb_tc_pool_bind_set() argument
698 switch (sb_index) { in ocelot_sb_tc_pool_bind_set()
716 threshold /= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_tc_pool_bind_set()
735 int ocelot_sb_occ_snapshot(struct ocelot *ocelot, unsigned int sb_index) in ocelot_sb_occ_snapshot() argument
744 int ocelot_sb_occ_max_clear(struct ocelot *ocelot, unsigned int sb_index) in ocelot_sb_occ_max_clear() argument
749 switch (sb_index) { in ocelot_sb_occ_max_clear()
788 unsigned int sb_index, u16 pool_index, in ocelot_sb_occ_port_pool_get() argument
793 switch (sb_index) { in ocelot_sb_occ_port_pool_get()
811 *p_cur *= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_occ_port_pool_get()
812 *p_max *= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_occ_port_pool_get()
820 unsigned int sb_index, u16 tc_index, in ocelot_sb_occ_tc_port_bind_get() argument
826 switch (sb_index) { in ocelot_sb_occ_tc_port_bind_get()
844 *p_cur *= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_occ_tc_port_bind_get()
845 *p_max *= ocelot_sb_pool[sb_index].cell_size; in ocelot_sb_occ_tc_port_bind_get()