Lines Matching refs:block_cb
1305 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_bind() local
1309 block_cb = flow_block_cb_lookup(f->block, in dpaa2_switch_setup_tc_block_bind()
1313 if (!block_cb) { in dpaa2_switch_setup_tc_block_bind()
1320 block_cb = flow_block_cb_alloc(dpaa2_switch_port_setup_tc_block_cb_ig, in dpaa2_switch_setup_tc_block_bind()
1322 if (IS_ERR(block_cb)) in dpaa2_switch_setup_tc_block_bind()
1323 return PTR_ERR(block_cb); in dpaa2_switch_setup_tc_block_bind()
1327 filter_block = flow_block_cb_priv(block_cb); in dpaa2_switch_setup_tc_block_bind()
1330 flow_block_cb_incref(block_cb); in dpaa2_switch_setup_tc_block_bind()
1336 flow_block_cb_add(block_cb, f); in dpaa2_switch_setup_tc_block_bind()
1337 list_add_tail(&block_cb->driver_list, in dpaa2_switch_setup_tc_block_bind()
1344 if (!flow_block_cb_decref(block_cb)) in dpaa2_switch_setup_tc_block_bind()
1345 flow_block_cb_free(block_cb); in dpaa2_switch_setup_tc_block_bind()
1355 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_unbind() local
1358 block_cb = flow_block_cb_lookup(f->block, in dpaa2_switch_setup_tc_block_unbind()
1361 if (!block_cb) in dpaa2_switch_setup_tc_block_unbind()
1364 filter_block = flow_block_cb_priv(block_cb); in dpaa2_switch_setup_tc_block_unbind()
1366 if (!err && !flow_block_cb_decref(block_cb)) { in dpaa2_switch_setup_tc_block_unbind()
1367 flow_block_cb_remove(block_cb, f); in dpaa2_switch_setup_tc_block_unbind()
1368 list_del(&block_cb->driver_list); in dpaa2_switch_setup_tc_block_unbind()