Searched refs:block_cb (Results 1 – 3 of 3) sorted by relevance
810 void *tcf_block_cb_priv(struct tcf_block_cb *block_cb) in tcf_block_cb_priv() argument812 return block_cb->cb_priv; in tcf_block_cb_priv()818 { struct tcf_block_cb *block_cb; in tcf_block_cb_lookup() local820 list_for_each_entry(block_cb, &block->cb_list, list) in tcf_block_cb_lookup()821 if (block_cb->cb == cb && block_cb->cb_ident == cb_ident) in tcf_block_cb_lookup()822 return block_cb; in tcf_block_cb_lookup()827 void tcf_block_cb_incref(struct tcf_block_cb *block_cb) in tcf_block_cb_incref() argument829 block_cb->refcnt++; in tcf_block_cb_incref()833 unsigned int tcf_block_cb_decref(struct tcf_block_cb *block_cb) in tcf_block_cb_decref() argument835 return --block_cb->refcnt; in tcf_block_cb_decref()[all …]
73 void *tcf_block_cb_priv(struct tcf_block_cb *block_cb);76 void tcf_block_cb_incref(struct tcf_block_cb *block_cb);77 unsigned int tcf_block_cb_decref(struct tcf_block_cb *block_cb);86 struct tcf_block_cb *block_cb);144 void *tcf_block_cb_priv(struct tcf_block_cb *block_cb) in tcf_block_cb_priv() argument157 void tcf_block_cb_incref(struct tcf_block_cb *block_cb) in tcf_block_cb_incref() argument162 unsigned int tcf_block_cb_decref(struct tcf_block_cb *block_cb) in tcf_block_cb_decref() argument186 struct tcf_block_cb *block_cb) in __tcf_block_cb_unregister() argument
1507 struct tcf_block_cb *block_cb; in mlxsw_sp_setup_tc_block_flower_bind() local1510 block_cb = tcf_block_cb_lookup(block, mlxsw_sp_setup_tc_block_cb_flower, in mlxsw_sp_setup_tc_block_flower_bind()1512 if (!block_cb) { in mlxsw_sp_setup_tc_block_flower_bind()1516 block_cb = __tcf_block_cb_register(block, in mlxsw_sp_setup_tc_block_flower_bind()1519 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_flower_bind()1520 err = PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()1524 acl_block = tcf_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()1526 tcf_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()1540 if (!tcf_block_cb_decref(block_cb)) { in mlxsw_sp_setup_tc_block_flower_bind()1541 __tcf_block_cb_unregister(block, block_cb); in mlxsw_sp_setup_tc_block_flower_bind()[all …]