Lines Matching refs:block_cb
1714 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_qevent_bind() local
1719 block_cb = flow_block_cb_lookup(f->block, mlxsw_sp_qevent_block_cb, mlxsw_sp); in mlxsw_sp_setup_tc_block_qevent_bind()
1720 if (!block_cb) { in mlxsw_sp_setup_tc_block_qevent_bind()
1724 block_cb = flow_block_cb_alloc(mlxsw_sp_qevent_block_cb, mlxsw_sp, qevent_block, in mlxsw_sp_setup_tc_block_qevent_bind()
1726 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_qevent_bind()
1728 return PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1732 qevent_block = flow_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1734 flow_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1763 flow_block_cb_add(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_bind()
1764 list_add_tail(&block_cb->driver_list, &mlxsw_sp_qevent_block_cb_list); in mlxsw_sp_setup_tc_block_qevent_bind()
1774 if (!flow_block_cb_decref(block_cb)) in mlxsw_sp_setup_tc_block_qevent_bind()
1775 flow_block_cb_free(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind()
1786 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_qevent_unbind() local
1788 block_cb = flow_block_cb_lookup(f->block, mlxsw_sp_qevent_block_cb, mlxsw_sp); in mlxsw_sp_setup_tc_block_qevent_unbind()
1789 if (!block_cb) in mlxsw_sp_setup_tc_block_qevent_unbind()
1791 qevent_block = flow_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_qevent_unbind()
1802 if (!flow_block_cb_decref(block_cb)) { in mlxsw_sp_setup_tc_block_qevent_unbind()
1803 flow_block_cb_remove(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_unbind()
1804 list_del(&block_cb->driver_list); in mlxsw_sp_setup_tc_block_qevent_unbind()