Lines Matching refs:block_cb
1301 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_bind() local
1305 block_cb = flow_block_cb_lookup(f->block, in dpaa2_switch_setup_tc_block_bind()
1309 if (!block_cb) { in dpaa2_switch_setup_tc_block_bind()
1316 block_cb = flow_block_cb_alloc(dpaa2_switch_port_setup_tc_block_cb_ig, in dpaa2_switch_setup_tc_block_bind()
1318 if (IS_ERR(block_cb)) in dpaa2_switch_setup_tc_block_bind()
1319 return PTR_ERR(block_cb); in dpaa2_switch_setup_tc_block_bind()
1323 filter_block = flow_block_cb_priv(block_cb); in dpaa2_switch_setup_tc_block_bind()
1326 flow_block_cb_incref(block_cb); in dpaa2_switch_setup_tc_block_bind()
1332 flow_block_cb_add(block_cb, f); in dpaa2_switch_setup_tc_block_bind()
1333 list_add_tail(&block_cb->driver_list, in dpaa2_switch_setup_tc_block_bind()
1340 if (!flow_block_cb_decref(block_cb)) in dpaa2_switch_setup_tc_block_bind()
1341 flow_block_cb_free(block_cb); in dpaa2_switch_setup_tc_block_bind()
1351 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_unbind() local
1354 block_cb = flow_block_cb_lookup(f->block, in dpaa2_switch_setup_tc_block_unbind()
1357 if (!block_cb) in dpaa2_switch_setup_tc_block_unbind()
1360 filter_block = flow_block_cb_priv(block_cb); in dpaa2_switch_setup_tc_block_unbind()
1362 if (!err && !flow_block_cb_decref(block_cb)) { in dpaa2_switch_setup_tc_block_unbind()
1363 flow_block_cb_remove(block_cb, f); in dpaa2_switch_setup_tc_block_unbind()
1364 list_del(&block_cb->driver_list); in dpaa2_switch_setup_tc_block_unbind()