Lines Matching refs:wm_index

605 	int wm_index;  in ocelot_sb_port_pool_get()  local
610 wm_index = BUF_P_RSRV_I(port); in ocelot_sb_port_pool_get()
612 wm_index = BUF_P_RSRV_E(port); in ocelot_sb_port_pool_get()
616 wm_index = REF_P_RSRV_I(port); in ocelot_sb_port_pool_get()
618 wm_index = REF_P_RSRV_E(port); in ocelot_sb_port_pool_get()
624 *p_threshold = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_port_pool_get()
636 int wm_index, err; in ocelot_sb_port_pool_set() local
642 wm_index = BUF_P_RSRV_I(port); in ocelot_sb_port_pool_set()
644 wm_index = BUF_P_RSRV_E(port); in ocelot_sb_port_pool_set()
648 wm_index = REF_P_RSRV_I(port); in ocelot_sb_port_pool_set()
650 wm_index = REF_P_RSRV_E(port); in ocelot_sb_port_pool_set()
659 old_thr = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_port_pool_set()
660 ocelot_wm_write(ocelot, wm_index, threshold); in ocelot_sb_port_pool_set()
664 ocelot_wm_write(ocelot, wm_index, old_thr); in ocelot_sb_port_pool_set()
680 int wm_index; in ocelot_sb_tc_pool_bind_get() local
685 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
687 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
691 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
693 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
699 *p_threshold = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_tc_pool_bind_get()
718 int wm_index, err; in ocelot_sb_tc_pool_bind_set() local
732 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
734 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
738 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
740 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
749 old_thr = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_tc_pool_bind_set()
750 ocelot_wm_write(ocelot, wm_index, threshold); in ocelot_sb_tc_pool_bind_set()
753 ocelot_wm_write(ocelot, wm_index, old_thr); in ocelot_sb_tc_pool_bind_set()
822 int wm_index; in ocelot_sb_occ_port_pool_get() local
827 wm_index = BUF_P_RSRV_I(port); in ocelot_sb_occ_port_pool_get()
829 wm_index = BUF_P_RSRV_E(port); in ocelot_sb_occ_port_pool_get()
833 wm_index = REF_P_RSRV_I(port); in ocelot_sb_occ_port_pool_get()
835 wm_index = REF_P_RSRV_E(port); in ocelot_sb_occ_port_pool_get()
841 ocelot_wm_status(ocelot, wm_index, p_cur, p_max); in ocelot_sb_occ_port_pool_get()
855 int wm_index; in ocelot_sb_occ_tc_port_bind_get() local
860 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
862 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
866 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
868 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
874 ocelot_wm_status(ocelot, wm_index, p_cur, p_max); in ocelot_sb_occ_tc_port_bind_get()