Lines Matching refs:block_cb
1313 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_bind() local
1317 block_cb = flow_block_cb_lookup(f->block, in dpaa2_switch_setup_tc_block_bind()
1321 if (!block_cb) { in dpaa2_switch_setup_tc_block_bind()
1328 block_cb = flow_block_cb_alloc(dpaa2_switch_port_setup_tc_block_cb_ig, in dpaa2_switch_setup_tc_block_bind()
1330 if (IS_ERR(block_cb)) in dpaa2_switch_setup_tc_block_bind()
1331 return PTR_ERR(block_cb); in dpaa2_switch_setup_tc_block_bind()
1335 filter_block = flow_block_cb_priv(block_cb); in dpaa2_switch_setup_tc_block_bind()
1338 flow_block_cb_incref(block_cb); in dpaa2_switch_setup_tc_block_bind()
1344 flow_block_cb_add(block_cb, f); in dpaa2_switch_setup_tc_block_bind()
1345 list_add_tail(&block_cb->driver_list, in dpaa2_switch_setup_tc_block_bind()
1352 if (!flow_block_cb_decref(block_cb)) in dpaa2_switch_setup_tc_block_bind()
1353 flow_block_cb_free(block_cb); in dpaa2_switch_setup_tc_block_bind()
1363 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_unbind() local
1366 block_cb = flow_block_cb_lookup(f->block, in dpaa2_switch_setup_tc_block_unbind()
1369 if (!block_cb) in dpaa2_switch_setup_tc_block_unbind()
1372 filter_block = flow_block_cb_priv(block_cb); in dpaa2_switch_setup_tc_block_unbind()
1374 if (!err && !flow_block_cb_decref(block_cb)) { in dpaa2_switch_setup_tc_block_unbind()
1375 flow_block_cb_remove(block_cb, f); in dpaa2_switch_setup_tc_block_unbind()
1376 list_del(&block_cb->driver_list); in dpaa2_switch_setup_tc_block_unbind()