Lines Matching refs:block_cb
2178 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_qevent_bind() local
2184 block_cb = flow_block_cb_lookup(f->block, mlxsw_sp_qevent_block_cb, mlxsw_sp); in mlxsw_sp_setup_tc_block_qevent_bind()
2185 if (!block_cb) { in mlxsw_sp_setup_tc_block_qevent_bind()
2189 block_cb = flow_block_cb_alloc(mlxsw_sp_qevent_block_cb, mlxsw_sp, qevent_block, in mlxsw_sp_setup_tc_block_qevent_bind()
2191 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_qevent_bind()
2193 return PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
2197 qevent_block = flow_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
2199 flow_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
2233 flow_block_cb_add(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_bind()
2234 list_add_tail(&block_cb->driver_list, &mlxsw_sp_qevent_block_cb_list); in mlxsw_sp_setup_tc_block_qevent_bind()
2244 if (!flow_block_cb_decref(block_cb)) in mlxsw_sp_setup_tc_block_qevent_bind()
2245 flow_block_cb_free(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
2256 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_qevent_unbind() local
2258 block_cb = flow_block_cb_lookup(f->block, mlxsw_sp_qevent_block_cb, mlxsw_sp); in mlxsw_sp_setup_tc_block_qevent_unbind()
2259 if (!block_cb) in mlxsw_sp_setup_tc_block_qevent_unbind()
2261 qevent_block = flow_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_qevent_unbind()
2272 if (!flow_block_cb_decref(block_cb)) { in mlxsw_sp_setup_tc_block_qevent_unbind()
2273 flow_block_cb_remove(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_unbind()
2274 list_del(&block_cb->driver_list); in mlxsw_sp_setup_tc_block_qevent_unbind()