Lines Matching refs:qdisc_state

162 	struct mlxsw_sp_qdisc_state *qdisc_state = mlxsw_sp_port->qdisc;  in mlxsw_sp_qdisc_find()  local
164 if (!qdisc_state) in mlxsw_sp_qdisc_find()
167 return &qdisc_state->root_qdisc; in mlxsw_sp_qdisc_find()
168 return mlxsw_sp_qdisc_walk(&qdisc_state->root_qdisc, in mlxsw_sp_qdisc_find()
185 struct mlxsw_sp_qdisc_state *qdisc_state = mlxsw_sp_port->qdisc; in mlxsw_sp_qdisc_find_by_handle() local
187 if (!qdisc_state) in mlxsw_sp_qdisc_find_by_handle()
189 return mlxsw_sp_qdisc_walk(&qdisc_state->root_qdisc, in mlxsw_sp_qdisc_find_by_handle()
1166 struct mlxsw_sp_qdisc_state *qdisc_state = mlxsw_sp_port->qdisc; in mlxsw_sp_qdisc_future_fifo_replace() local
1168 if (handle == qdisc_state->future_handle && in mlxsw_sp_qdisc_future_fifo_replace()
1169 qdisc_state->future_fifos[band]) in mlxsw_sp_qdisc_future_fifo_replace()
1181 struct mlxsw_sp_qdisc_state *qdisc_state = mlxsw_sp_port->qdisc; in mlxsw_sp_qdisc_future_fifos_init() local
1183 qdisc_state->future_handle = handle; in mlxsw_sp_qdisc_future_fifos_init()
1184 memset(qdisc_state->future_fifos, 0, sizeof(qdisc_state->future_fifos)); in mlxsw_sp_qdisc_future_fifos_init()
1190 struct mlxsw_sp_qdisc_state *qdisc_state = mlxsw_sp_port->qdisc; in __mlxsw_sp_setup_tc_fifo() local
1198 if (parent_handle != qdisc_state->future_handle) { in __mlxsw_sp_setup_tc_fifo()
1209 qdisc_state->future_fifos[band] = true; in __mlxsw_sp_setup_tc_fifo()
1211 qdisc_state->future_fifos[band] = false; in __mlxsw_sp_setup_tc_fifo()
2322 struct mlxsw_sp_qdisc_state *qdisc_state; in mlxsw_sp_tc_qdisc_init() local
2324 qdisc_state = kzalloc(sizeof(*qdisc_state), GFP_KERNEL); in mlxsw_sp_tc_qdisc_init()
2325 if (!qdisc_state) in mlxsw_sp_tc_qdisc_init()
2328 mutex_init(&qdisc_state->lock); in mlxsw_sp_tc_qdisc_init()
2329 mlxsw_sp_port->qdisc = qdisc_state; in mlxsw_sp_tc_qdisc_init()