/freebsd/sys/dev/ixl/ |
H A D | i40e_hmc.h | 66 u32 ref_cnt; member 81 u32 ref_cnt; member 98 u32 ref_cnt; member 114 #define I40E_INC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt++) 115 #define I40E_INC_PD_REFCNT(pd_table) ((pd_table)->ref_cnt++) 116 #define I40E_INC_BP_REFCNT(bp) ((bp)->ref_cnt++) 118 #define I40E_DEC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt--) 119 #define I40E_DEC_PD_REFCNT(pd_table) ((pd_table)->ref_cnt--) 120 #define I40E_DEC_BP_REFCNT(bp) ((bp)->ref_cnt--)
|
H A D | i40e_hmc.c | 252 if (pd_entry->bp.ref_cnt) in i40e_remove_pd_bp() 268 if (!pd_table->ref_cnt) in i40e_remove_pd_bp() 288 if (sd_entry->u.bp.ref_cnt) { in i40e_prep_remove_sd_bp() 336 if (sd_entry->u.pd_table.ref_cnt) { in i40e_prep_remove_pd_page()
|
H A D | i40e_lan_hmc.c | 223 hw->hmc.sd_table.ref_cnt = 0; in i40e_init_lan_hmc()
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | ossl_core_bio.c | 19 CRYPTO_REF_COUNT ref_cnt; member 32 cb->ref_cnt = 1; in core_bio_new() 40 return CRYPTO_UP_REF(&cb->ref_cnt, &ref, cb->ref_lock); in ossl_core_bio_up_ref() 48 CRYPTO_DOWN_REF(&cb->ref_cnt, &ref, cb->ref_lock); in ossl_core_bio_free()
|
/freebsd/crypto/heimdal/base/ |
H A D | heimbase.c | 43 heim_base_atomic_type ref_cnt; member 52 heim_base_atomic_type ref_cnt; member 94 if (p->ref_cnt == heim_base_atomic_max) in heim_retain() 97 if ((heim_base_atomic_inc(&p->ref_cnt) - 1) == 0) in heim_retain() 117 if (p->ref_cnt == heim_base_atomic_max) in heim_release() 120 old = heim_base_atomic_dec(&p->ref_cnt) + 1; in heim_release() 261 p->ref_cnt = 1; in heim_alloc() 300 p->ref_cnt = 1; in _heim_alloc_object()
|
/freebsd/contrib/ofed/opensm/complib/ |
H A D | cl_dispatcher.c | 102 cl_atomic_dec(&p_msg->p_dest_reg->ref_cnt); in __cl_disp_worker() 108 cl_atomic_dec(&p_msg->p_src_reg->ref_cnt); in __cl_disp_worker() 228 p_reg->ref_cnt = 0; in cl_disp_register() 276 while (p_reg->ref_cnt > 0) in cl_disp_unregister() 336 cl_atomic_inc(&p_src_reg->ref_cnt); in cl_disp_post() 339 cl_atomic_inc(&p_dest_reg->ref_cnt); in cl_disp_post()
|
/freebsd/sys/dev/phy/ |
H A D | phy.c | 325 phynode->ref_cnt++; in phy_create() 339 KASSERT(phynode->ref_cnt > 0, in phy_enable() 357 KASSERT(phynode->ref_cnt > 0, in phy_disable() 377 KASSERT(phynode->ref_cnt > 0, in phy_set_mode() 393 KASSERT(phynode->ref_cnt > 0, in phy_status() 427 KASSERT(phynode->ref_cnt > 0, in phy_release() 437 phynode->ref_cnt--; in phy_release()
|
H A D | phy_usb.c | 123 KASSERT(phynode->ref_cnt > 0, in phy_usb_set_mode() 138 KASSERT(phynode->ref_cnt > 0, in phy_usb_get_mode()
|
H A D | phy_internal.h | 56 int ref_cnt; /* Reference counter */ member
|
/freebsd/sys/dev/regulator/ |
H A D | regulator.c | 119 int ref_cnt; /* Reference counter */ member 914 regnode->ref_cnt++; in regulator_create() 930 KASSERT(regnode->ref_cnt > 0, in regulator_enable() 947 KASSERT(regnode->ref_cnt > 0, in regulator_disable() 967 KASSERT(regnode->ref_cnt > 0, in regulator_stop() 985 KASSERT(regnode->ref_cnt > 0, in regulator_status() 1005 KASSERT(regnode->ref_cnt > 0, in regulator_get_voltage() 1021 KASSERT(regnode->ref_cnt > 0, in regulator_set_voltage() 1042 KASSERT(regnode->ref_cnt > 0, in regulator_check_voltage() 1057 KASSERT(regnode->ref_cnt > 0, in regulator_get_name() [all …]
|
/freebsd/sys/dev/clk/ |
H A D | clk.c | 118 int ref_cnt; /* Reference counter */ member 1176 clknode->ref_cnt++; in clk_create() 1188 KASSERT(clknode->ref_cnt > 0, in clk_get_freq() 1205 KASSERT(clknode->ref_cnt > 0, in clk_set_freq() 1222 KASSERT(clknode->ref_cnt > 0, in clk_test_freq() 1238 KASSERT(clknode->ref_cnt > 0, in clk_get_parent() 1261 KASSERT(clknode->ref_cnt > 0, in clk_set_parent_by_clk() 1263 KASSERT(parentnode->ref_cnt > 0, in clk_set_parent_by_clk() 1278 KASSERT(clknode->ref_cnt > 0, in clk_enable() 1295 KASSERT(clknode->ref_cnt > 0, in clk_disable() [all …]
|
/freebsd/sys/contrib/dpdk_rte_lpm/ |
H A D | rte_lpm6.c | 86 uint32_t ref_cnt; /**< table reference counter */ member 574 tbl_hdr->ref_cnt = 0; in init_tbl8_header() 715 lpm->tbl8_hdrs[tbl_ind].ref_cnt++; in add_step() 756 lpm->tbl8_hdrs[tbl_ind].ref_cnt++; in add_step() 807 lpm->tbl8_hdrs[tbl_ind].ref_cnt++; in add_step() 1281 if (--owner_tbl_hdr->ref_cnt == 0) in remove_tbl() 1359 if (--tbl_hdr->ref_cnt == 0) { in rte_lpm6_delete()
|
/freebsd/sys/dev/cxgbe/cxgbei/ |
H A D | cxgbei.h | 95 u_int ref_cnt; member
|
H A D | icl_cxgbei.c | 177 KASSERT(icp->ref_cnt != 0, ("freeing deleted PDU")); in icl_cxgbei_conn_pdu_free() 185 KASSERT(ic != NULL || icp->ref_cnt == 1, in icl_cxgbei_conn_pdu_free() 188 if (atomic_fetchadd_int(&icp->ref_cnt, -1) != 1) in icl_cxgbei_conn_pdu_free() 233 if (atomic_fetchadd_int(&icp->ref_cnt, -1) == 1) in icl_cxgbei_pdu_done() 265 icp->ref_cnt = 1; in icl_cxgbei_new_pdu() 422 if (atomic_fetchadd_int(&icp->ref_cnt, -1) == 1) in finalize_pdu() 572 if (atomic_fetchadd_int(&icp->ref_cnt, -1) == 1) in cxgbei_free_mext_pg() 657 atomic_add_int(&icp->ref_cnt, 1); in icl_cxgbei_conn_pdu_append_bio() 766 m_extaddref(m, __DECONST(char *, addr), len, &icp->ref_cnt, in icl_cxgbei_conn_pdu_append_data()
|
/freebsd/sys/dev/iscsi/ |
H A D | icl_soft.c | 90 u_int ref_cnt; member 192 KASSERT(isp->ref_cnt == 0, ("freeing active PDU")); in icl_soft_conn_pdu_free() 230 if (atomic_fetchadd_int(&isp->ref_cnt, -1) == 1) in icl_soft_pdu_done() 1105 if (atomic_fetchadd_int(&isp->ref_cnt, -1) == 1) in icl_soft_free_mext_pg() 1145 atomic_add_int(&isp->ref_cnt, 1); in icl_soft_conn_pdu_append_bio() 1238 m_extaddref(newmb, __DECONST(char *, addr), len, &isp->ref_cnt, in icl_soft_conn_pdu_append_data() 1324 isp->ref_cnt++; in icl_soft_conn_pdu_queue_cb()
|
/freebsd/contrib/ofed/opensm/include/complib/ |
H A D | cl_dispatcher.h | 269 atomic32_t ref_cnt; member
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_dev.c | 424 u32 ref_cnt; member 591 if (!p_filters[filter_idx].ref_cnt) { in __ecore_llh_shadow_add_filter() 598 *p_ref_cnt = ++p_filters[filter_idx].ref_cnt; in __ecore_llh_shadow_add_filter() 649 if (!p_filters[filter_idx].ref_cnt) { in __ecore_llh_shadow_remove_filter() 655 *p_ref_cnt = --p_filters[filter_idx].ref_cnt; in __ecore_llh_shadow_remove_filter() 656 if (!p_filters[filter_idx].ref_cnt) in __ecore_llh_shadow_remove_filter() 1172 u32 high, low, ref_cnt; in ecore_llh_add_mac_filter() local 1185 &filter, &filter_idx, &ref_cnt); in ecore_llh_add_mac_filter() 1194 if (ref_cnt == 1) { in ecore_llh_add_mac_filter() 1208 ref_cnt); in ecore_llh_add_mac_filter() [all …]
|
H A D | ecore_rdma.h | 139 int ref_cnt; member
|
H A D | ecore_rdma.c | 218 p_hwfn->p_rdma_info->ref_cnt++; in ecore_rdma_inc_ref_cnt() 230 p_hwfn->p_rdma_info->ref_cnt--; in ecore_rdma_dec_ref_cnt() 256 wait_count = p_hwfn->p_rdma_info->ref_cnt; in ecore_rdma_deactivate() 258 while (p_hwfn->p_rdma_info->ref_cnt) { in ecore_rdma_deactivate() 263 p_hwfn->p_rdma_info->ref_cnt); in ecore_rdma_deactivate()
|
/freebsd/sys/sys/ |
H A D | mbuf.h | 908 m_extaddref(struct mbuf *m, char *buf, u_int size, u_int *ref_cnt, in m_extaddref() argument 912 KASSERT(ref_cnt != NULL, ("%s: ref_cnt not provided", __func__)); in m_extaddref() 914 atomic_add_int(ref_cnt, 1); in m_extaddref() 917 m->m_ext.ext_cnt = ref_cnt; in m_extaddref()
|
/freebsd/sys/dev/ice/ |
H A D | ice_switch.c | 1573 v_map->ref_cnt = 1; 2206 } else if (list_elem->vsi_list_info->ref_cnt > 1) { in ice_remove_rule_internal() 2207 /* a ref_cnt > 1 indicates that the vsi_list is being in ice_remove_rule_internal() 2208 * shared by multiple rules. Decrement the ref_cnt and in ice_remove_rule_internal() 2212 list_elem->vsi_list_info->ref_cnt--; in ice_remove_rule_internal() 2215 /* a ref_cnt of 1 indicates the vsi_list is only used in ice_remove_rule_internal() 2587 /* reuse VSI list for new rule and increment ref_cnt */ in ice_add_vlan_internal() 2590 map_info->ref_cnt++; in ice_add_vlan_internal() 2597 } else if (v_list_itr->vsi_list_info->ref_cnt == 1) { in ice_add_vlan_internal() 2618 v_list_itr->vsi_list_info->ref_cnt > in ice_add_vlan_internal() [all...] |
H A D | ice_switch.h | 347 u16 ref_cnt; 342 u16 ref_cnt; global() member
|
H A D | ice_lib.c | 5948 ", vsi_count = %3d, vsi_list_id = %3d, ref_cnt = %3d", in ice_sysctl_dump_ethertype_filters() 5951 fm_entry->vsi_list_info->ref_cnt); in ice_sysctl_dump_ethertype_filters() 6017 ", vsi_count = %3d, vsi_list_id = %3d, ref_cnt = %3d", in ice_sysctl_dump_ethertype_mac_filters() 6020 fm_entry->vsi_list_info->ref_cnt); in ice_sysctl_dump_ethertype_mac_filters() 6088 ", vsi_count = %3d, vsi_list_id = %3d, ref_cnt = %3d", in ice_sysctl_dump_state_flags() 6091 fm_entry->vsi_list_info->ref_cnt); in ice_sysctl_dump_state_flags() 6160 ", vsi_count = %3d, vsi_list_id = %3d, ref_cnt = %3d", 6163 fm_entry->vsi_list_info->ref_cnt);
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | hsi_struct_def.h | 55575 uint16_t ref_cnt; member
|