Lines Matching refs:wm_index

574 	int wm_index;  in ocelot_sb_port_pool_get()  local
579 wm_index = BUF_P_RSRV_I(port); in ocelot_sb_port_pool_get()
581 wm_index = BUF_P_RSRV_E(port); in ocelot_sb_port_pool_get()
585 wm_index = REF_P_RSRV_I(port); in ocelot_sb_port_pool_get()
587 wm_index = REF_P_RSRV_E(port); in ocelot_sb_port_pool_get()
593 *p_threshold = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_port_pool_get()
605 int wm_index, err; in ocelot_sb_port_pool_set() local
611 wm_index = BUF_P_RSRV_I(port); in ocelot_sb_port_pool_set()
613 wm_index = BUF_P_RSRV_E(port); in ocelot_sb_port_pool_set()
617 wm_index = REF_P_RSRV_I(port); in ocelot_sb_port_pool_set()
619 wm_index = REF_P_RSRV_E(port); in ocelot_sb_port_pool_set()
628 old_thr = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_port_pool_set()
629 ocelot_wm_write(ocelot, wm_index, threshold); in ocelot_sb_port_pool_set()
633 ocelot_wm_write(ocelot, wm_index, old_thr); in ocelot_sb_port_pool_set()
649 int wm_index; in ocelot_sb_tc_pool_bind_get() local
654 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
656 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
660 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
662 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
668 *p_threshold = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_tc_pool_bind_get()
687 int wm_index, err; in ocelot_sb_tc_pool_bind_set() local
701 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
703 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
707 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
709 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
718 old_thr = ocelot_wm_read(ocelot, wm_index); in ocelot_sb_tc_pool_bind_set()
719 ocelot_wm_write(ocelot, wm_index, threshold); in ocelot_sb_tc_pool_bind_set()
722 ocelot_wm_write(ocelot, wm_index, old_thr); in ocelot_sb_tc_pool_bind_set()
791 int wm_index; in ocelot_sb_occ_port_pool_get() local
796 wm_index = BUF_P_RSRV_I(port); in ocelot_sb_occ_port_pool_get()
798 wm_index = BUF_P_RSRV_E(port); in ocelot_sb_occ_port_pool_get()
802 wm_index = REF_P_RSRV_I(port); in ocelot_sb_occ_port_pool_get()
804 wm_index = REF_P_RSRV_E(port); in ocelot_sb_occ_port_pool_get()
810 ocelot_wm_status(ocelot, wm_index, p_cur, p_max); in ocelot_sb_occ_port_pool_get()
824 int wm_index; in ocelot_sb_occ_tc_port_bind_get() local
829 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
831 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
835 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
837 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_occ_tc_port_bind_get()
843 ocelot_wm_status(ocelot, wm_index, p_cur, p_max); in ocelot_sb_occ_tc_port_bind_get()