/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_pool.c | 28 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 D | i40e_hmc.h | 39 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 D | i40e_hmc.c | 210 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 D | pids.c | 42 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 D | usnic_uiom_interval_tree.c | 45 #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 D | usnic_uiom_interval_tree.h | 45 unsigned int ref_cnt; member
|
/openbmc/linux/fs/ext4/ |
H A D | ext4_jbd2.c | 36 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 D | rxe_mcast.c | 129 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 D | rxe_pool.c | 130 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 D | rxe_pool.h | 25 struct kref ref_cnt; member 77 #define rxe_read(obj) kref_read(&(obj)->elem.ref_cnt)
|
/openbmc/linux/sound/soc/mediatek/mt8195/ |
H A D | mt8195-afe-clk.c | 100 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 D | mt8188-afe-clk.c | 108 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 D | dra7xx_iodelay.c | 85 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 D | dev_addr_lists.c | 377 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 D | fs_tt_redirect.c | 17 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 D | xen-scsifront.c | 476 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 D | vdec_vp9_if.c | 60 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 D | check-integrity.c | 174 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 D | ipsec.h | 31 u32 ref_cnt; member
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | metadata.c | 19 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 D | ixgbe_ipsec.h | 46 u32 ref_cnt; member
|
/openbmc/linux/drivers/staging/media/rkvdec/ |
H A D | rkvdec-vp9.c | 126 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 D | hid-sensor-hub.c | 36 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 D | rtl8712_recv.h | 91 u32 ref_cnt; member
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_client.h | 157 atomic_t ref_cnt; /* Count of all the client devices of this kind */ member
|