Home
last modified time | relevance | path

Searched refs:ref_cnt (Results 1 – 25 of 51) sorted by relevance

123

/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_pool.c28 if (e_itr->ref_cnt == 0) in sparx5_pool_put()
31 return --e_itr->ref_cnt; in sparx5_pool_put()
43 if (e_itr->ref_cnt == 0) { in sparx5_pool_get()
45 return ++e_itr->ref_cnt; in sparx5_pool_get()
63 if (e_itr->ref_cnt == 0 && ret == -ENOSPC) in sparx5_pool_get_with_idx()
66 if (e_itr->idx == idx && e_itr->ref_cnt > 0) { in sparx5_pool_get_with_idx()
77 return ++e_itr->ref_cnt; in sparx5_pool_get_with_idx()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_hmc.h39 u32 ref_cnt; member
54 u32 ref_cnt; member
71 u32 ref_cnt; member
87 #define I40E_INC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt++)
88 #define I40E_INC_PD_REFCNT(pd_table) ((pd_table)->ref_cnt++)
89 #define I40E_INC_BP_REFCNT(bp) ((bp)->ref_cnt++)
91 #define I40E_DEC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt--)
92 #define I40E_DEC_PD_REFCNT(pd_table) ((pd_table)->ref_cnt--)
93 #define I40E_DEC_BP_REFCNT(bp) ((bp)->ref_cnt--)
H A Di40e_hmc.c210 if (pd_entry->bp.ref_cnt) in i40e_remove_pd_bp()
226 if (!pd_table->ref_cnt) in i40e_remove_pd_bp()
246 if (sd_entry->u.bp.ref_cnt) { in i40e_prep_remove_sd_bp()
294 if (sd_entry->u.pd_table.ref_cnt) { in i40e_prep_remove_pd_page()
/openbmc/linux/tools/bpf/bpftool/
H A Dpids.c42 for (i = 0; i < refs->ref_cnt; i++) { in add_ref()
47 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref()
54 ref = &refs->refs[refs->ref_cnt]; in add_ref()
57 refs->ref_cnt++; in add_ref()
80 refs->ref_cnt = 1; in add_ref()
207 if (refs->ref_cnt == 0) in emit_obj_refs_json()
215 for (i = 0; i < refs->ref_cnt; i++) { in emit_obj_refs_json()
239 if (refs->ref_cnt == 0) in emit_obj_refs_plain()
246 for (i = 0; i < refs->ref_cnt; i++) { in emit_obj_refs_plain()
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_uiom_interval_tree.c45 #define MAKE_NODE(node, start, end, ref_cnt, flags, err, err_out) \ argument
48 end, ref_cnt, flags); \
57 #define MAKE_NODE_AND_APPEND(node, start, end, ref_cnt, flags, err, \ argument
61 ref_cnt, flags, err, \
70 usnic_uiom_interval_node_alloc(long int start, long int last, int ref_cnt, in usnic_uiom_interval_node_alloc() argument
81 interval->ref_cnt = ref_cnt; in usnic_uiom_interval_node_alloc()
200 iref_cnt = interval->ref_cnt; in usnic_uiom_insert_interval()
261 if (--interval->ref_cnt == 0) in usnic_uiom_remove_interval()
H A Dusnic_uiom_interval_tree.h45 unsigned int ref_cnt; member
/openbmc/linux/fs/ext4/
H A Dext4_jbd2.c36 unsigned long ref_cnt = (unsigned long)handle; in ext4_get_nojournal() local
38 BUG_ON(ref_cnt >= EXT4_NOJOURNAL_MAX_REF_COUNT); in ext4_get_nojournal()
40 ref_cnt++; in ext4_get_nojournal()
41 handle = (handle_t *)ref_cnt; in ext4_get_nojournal()
51 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal() local
53 BUG_ON(ref_cnt == 0); in ext4_put_nojournal()
55 ref_cnt--; in ext4_put_nojournal()
56 handle = (handle_t *)ref_cnt; in ext4_put_nojournal()
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_mcast.c129 kref_get(&mcg->ref_cnt); in __rxe_lookup_mcg()
165 kref_init(&mcg->ref_cnt); in __rxe_init_mcg()
177 kref_get(&mcg->ref_cnt); in __rxe_init_mcg()
244 struct rxe_mcg *mcg = container_of(kref, typeof(*mcg), ref_cnt); in rxe_cleanup_mcg()
262 kref_put(&mcg->ref_cnt, rxe_cleanup_mcg); in __rxe_destroy_mcg()
451 kref_put(&mcg->ref_cnt, rxe_cleanup_mcg); in rxe_attach_mcast()
476 kref_put(&mcg->ref_cnt, rxe_cleanup_mcg); in rxe_detach_mcast()
H A Drxe_pool.c130 kref_init(&elem->ref_cnt); in __rxe_add_to_pool()
161 if (elem && kref_get_unless_zero(&elem->ref_cnt)) in rxe_pool_get_index()
172 struct rxe_pool_elem *elem = container_of(kref, typeof(*elem), ref_cnt); in rxe_elem_release()
242 return kref_get_unless_zero(&elem->ref_cnt); in __rxe_get()
247 return kref_put(&elem->ref_cnt, rxe_elem_release); in __rxe_put()
H A Drxe_pool.h25 struct kref ref_cnt; member
77 #define rxe_read(obj) kref_read(&(obj)->elem.ref_cnt)
/openbmc/linux/sound/soc/mediatek/mt8195/
H A Dmt8195-afe-clk.c100 int ref_cnt; member
211 cfg->ref_cnt = 0; in mt8195_afe_init_apll_tuner()
302 cfg->ref_cnt++; in mt8195_afe_enable_apll_tuner()
303 if (cfg->ref_cnt == 1) in mt8195_afe_enable_apll_tuner()
326 cfg->ref_cnt--; in mt8195_afe_disable_apll_tuner()
327 if (cfg->ref_cnt == 0) in mt8195_afe_disable_apll_tuner()
332 else if (cfg->ref_cnt < 0) in mt8195_afe_disable_apll_tuner()
333 cfg->ref_cnt = 0; in mt8195_afe_disable_apll_tuner()
/openbmc/linux/sound/soc/mediatek/mt8188/
H A Dmt8188-afe-clk.c108 int ref_cnt; member
220 cfg->ref_cnt = 0; in mt8188_afe_init_apll_tuner()
312 cfg->ref_cnt++; in mt8188_afe_enable_apll_tuner()
313 if (cfg->ref_cnt == 1) in mt8188_afe_enable_apll_tuner()
335 cfg->ref_cnt--; in mt8188_afe_disable_apll_tuner()
336 if (cfg->ref_cnt == 0) in mt8188_afe_disable_apll_tuner()
341 else if (cfg->ref_cnt < 0) in mt8188_afe_disable_apll_tuner()
342 cfg->ref_cnt = 0; in mt8188_afe_disable_apll_tuner()
/openbmc/u-boot/arch/arm/mach-omap2/omap5/
H A Ddra7xx_iodelay.c85 u16 refclk_period, dly_cnt, ref_cnt; in calculate_delay() local
93 ref_cnt = (reg & CFG_REG_REF_CNT_MASK) >> CFG_REG_REF_CNT_SHIFT; in calculate_delay()
102 q = 5 * ((ref_cnt * refclk_period) / (dly_cnt * den)); in calculate_delay()
103 r = (10 * ((ref_cnt * refclk_period) % (dly_cnt * den))) / in calculate_delay()
/openbmc/linux/net/core/
H A Ddev_addr_lists.c377 int err, ref_cnt; in __hw_addr_ref_sync_dev() local
386 ref_cnt = ha->refcount - ha->sync_cnt; in __hw_addr_ref_sync_dev()
387 if (unsync && unsync(dev, ha->addr, ref_cnt)) in __hw_addr_ref_sync_dev()
390 ha->refcount = (ref_cnt << 1) + 1; in __hw_addr_ref_sync_dev()
391 ha->sync_cnt = ref_cnt; in __hw_addr_ref_sync_dev()
401 ref_cnt = ha->refcount - ha->sync_cnt; in __hw_addr_ref_sync_dev()
402 err = sync(dev, ha->addr, ref_cnt); in __hw_addr_ref_sync_dev()
406 ha->refcount = ref_cnt << 1; in __hw_addr_ref_sync_dev()
407 ha->sync_cnt = ref_cnt; in __hw_addr_ref_sync_dev()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dfs_tt_redirect.c17 int ref_cnt; member
23 int ref_cnt; member
306 if (--fs_udp->ref_cnt) in mlx5e_fs_tt_redirect_udp_destroy()
324 udp->ref_cnt++; in mlx5e_fs_tt_redirect_udp_create()
343 udp->ref_cnt = 1; in mlx5e_fs_tt_redirect_udp_create()
571 if (--fs_any->ref_cnt) in mlx5e_fs_tt_redirect_any_destroy()
588 fs_any->ref_cnt++; in mlx5e_fs_tt_redirect_any_create()
605 fs_any->ref_cnt = 1; in mlx5e_fs_tt_redirect_any_create()
/openbmc/linux/drivers/scsi/
H A Dxen-scsifront.c476 int err, ref, ref_cnt = 0; in map_data_for_request() local
526 shadow->gref[ref_cnt] = ref; in map_data_for_request()
527 shadow->seg[ref_cnt].gref = ref; in map_data_for_request()
528 shadow->seg[ref_cnt].offset = (uint16_t)off; in map_data_for_request()
534 ref_cnt++; in map_data_for_request()
536 BUG_ON(seg_grants < ref_cnt); in map_data_for_request()
537 seg_grants = ref_cnt; in map_data_for_request()
562 shadow->gref[ref_cnt] = ref; in map_data_for_request()
572 ref_cnt++; in map_data_for_request()
579 shadow->nr_segments = (uint8_t)ref_cnt; in map_data_for_request()
[all …]
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_vp9_if.c60 unsigned int ref_cnt; member
268 if (ref_idx >= 0 && vsi->frm_bufs[ref_idx].ref_cnt > 0) { in vp9_ref_cnt_fb()
269 vsi->frm_bufs[ref_idx].ref_cnt--; in vp9_ref_cnt_fb()
271 if (vsi->frm_bufs[ref_idx].ref_cnt == 0) { in vp9_ref_cnt_fb()
286 vsi->frm_bufs[new_idx].ref_cnt++; in vp9_ref_cnt_fb()
468 vsi->frm_bufs[vsi->new_fb_idx].ref_cnt--; in vp9_swap_frm_bufs()
511 if (vsi->frm_bufs[vsi->new_fb_idx].ref_cnt == 0) { in vp9_swap_frm_bufs()
/openbmc/linux/fs/btrfs/
H A Dcheck-integrity.c174 u32 ref_cnt; member
376 l->ref_cnt = 1; in btrfsic_block_link_init()
1270 l->ref_cnt = 1; in btrfsic_create_link_to_next_block()
1284 l->ref_cnt++; in btrfsic_create_link_to_next_block()
1622 l->ref_cnt, in btrfsic_dump_database()
1830 l->ref_cnt--; in btrfsic_process_written_block()
2382 l->ref_cnt, in btrfsic_print_add_link()
2397 l->ref_cnt, in btrfsic_print_rem_link()
2512 l->ref_cnt = 1; in btrfsic_block_link_lookup_or_add()
2524 l->ref_cnt++; in btrfsic_block_link_lookup_or_add()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.h31 u32 ref_cnt; member
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmetadata.c19 u32 ref_cnt; member
227 mask_entry->ref_cnt = 1; in nfp_add_mask_table()
258 mask_entry->ref_cnt++; in nfp_find_in_mask_table()
293 mask_entry->ref_cnt--; in nfp_check_mask_remove()
294 if (!mask_entry->ref_cnt) { in nfp_check_mask_remove()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.h46 u32 ref_cnt; member
/openbmc/linux/drivers/staging/media/rkvdec/
H A Drkvdec-vp9.c126 struct rkvdec_vp9_refs_counts ref_cnt[2][4][2][6][6]; member
136 struct rkvdec_vp9_refs_counts ref_cnt[2][4][2][6][6]; member
973 &inter_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl()
975 &inter_cnts->ref_cnt[k][i][j][l][m].eob[0]; \ in rkvdec_init_v4l2_vp9_count_tbl()
977 &inter_cnts->ref_cnt[k][i][j][l][m].eob[1]; \ in rkvdec_init_v4l2_vp9_count_tbl()
980 &intra_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl()
982 &intra_cnts->ref_cnt[k][i][j][l][m].eob[0]; \ in rkvdec_init_v4l2_vp9_count_tbl()
984 &intra_cnts->ref_cnt[k][i][j][l][m].eob[1]; \ in rkvdec_init_v4l2_vp9_count_tbl()
/openbmc/linux/drivers/hid/
H A Dhid-sensor-hub.c36 int ref_cnt; member
556 if (!data->ref_cnt) { in sensor_hub_device_open()
564 data->ref_cnt++; in sensor_hub_device_open()
576 data->ref_cnt--; in sensor_hub_device_close()
577 if (!data->ref_cnt) in sensor_hub_device_close()
/openbmc/linux/drivers/staging/rtl8712/
H A Drtl8712_recv.h91 u32 ref_cnt; member
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_client.h157 atomic_t ref_cnt; /* Count of all the client devices of this kind */ member

123