Lines Matching refs:block_cb

1872 	struct flow_block_cb *block_cb;  in mlxsw_sp_setup_tc_block_qevent_bind()  local
1877 block_cb = flow_block_cb_lookup(f->block, mlxsw_sp_qevent_block_cb, mlxsw_sp); in mlxsw_sp_setup_tc_block_qevent_bind()
1878 if (!block_cb) { in mlxsw_sp_setup_tc_block_qevent_bind()
1882 block_cb = flow_block_cb_alloc(mlxsw_sp_qevent_block_cb, mlxsw_sp, qevent_block, in mlxsw_sp_setup_tc_block_qevent_bind()
1884 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_qevent_bind()
1886 return PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1890 qevent_block = flow_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1892 flow_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1921 flow_block_cb_add(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_bind()
1922 list_add_tail(&block_cb->driver_list, &mlxsw_sp_qevent_block_cb_list); in mlxsw_sp_setup_tc_block_qevent_bind()
1932 if (!flow_block_cb_decref(block_cb)) in mlxsw_sp_setup_tc_block_qevent_bind()
1933 flow_block_cb_free(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1944 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_qevent_unbind() local
1946 block_cb = flow_block_cb_lookup(f->block, mlxsw_sp_qevent_block_cb, mlxsw_sp); in mlxsw_sp_setup_tc_block_qevent_unbind()
1947 if (!block_cb) in mlxsw_sp_setup_tc_block_qevent_unbind()
1949 qevent_block = flow_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_qevent_unbind()
1960 if (!flow_block_cb_decref(block_cb)) { in mlxsw_sp_setup_tc_block_qevent_unbind()
1961 flow_block_cb_remove(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_unbind()
1962 list_del(&block_cb->driver_list); in mlxsw_sp_setup_tc_block_qevent_unbind()