Home
last modified time | relevance | path

Searched refs:use_cnt (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/net/ethernet/netronome/nfp/abm/
H A Dqdisc.c113 qdisc->children[i]->use_cnt--; in nfp_abm_qdisc_unlink_children()
124 if (qdisc->use_cnt) in nfp_abm_qdisc_offload_stop()
199 qdisc->use_cnt == 1 && in nfp_abm_offload_compile_red()
204 qdisc->use_cnt == 1; in nfp_abm_offload_compile_red()
292 if (!qdisc->use_cnt) in nfp_abm_qdisc_clear_mq()
316 WARN(qdisc->use_cnt != mq_refs, "non-zero qdisc use count: %d (- %d)\n", in nfp_abm_qdisc_clear_mq()
317 qdisc->use_cnt, mq_refs); in nfp_abm_qdisc_clear_mq()
415 qdisc->use_cnt--; in nfp_abm_qdisc_destroy()
448 child->use_cnt++; in nfp_abm_qdisc_graft()
597 if (qdisc->use_cnt) in nfp_abm_gred_replace()
[all …]
H A Dmain.h157 unsigned int use_cnt; member
/linux/drivers/infiniband/hw/irdma/
H A Dhmc.c518 hmc_info->sd_table.use_cnt++; in irdma_add_sd_table_entry()
521 sd_entry->u.bp.use_cnt++; in irdma_add_sd_table_entry()
591 pd_table->use_cnt++; in irdma_add_pd_table_entry()
594 pd_entry->bp.use_cnt++; in irdma_add_pd_table_entry()
635 if (--pd_entry->bp.use_cnt) in irdma_remove_pd_bp()
639 pd_table->use_cnt--; in irdma_remove_pd_bp()
654 if (!pd_table->use_cnt) in irdma_remove_pd_bp()
670 if (--sd_entry->u.bp.use_cnt) in irdma_prep_remove_sd_bp()
673 hmc_info->sd_table.use_cnt--; in irdma_prep_remove_sd_bp()
690 if (sd_entry->u.pd_table.use_cnt) in irdma_prep_remove_pd_page()
[all …]
H A Dhmc.h62 u32 use_cnt; member
76 u32 use_cnt; member
92 u32 use_cnt; member
H A Duda.c204 ctx->mg_ctx_info[idx].use_cnt++; in irdma_sc_add_mcast_grp()
218 ctx->mg_ctx_info[free_entry_idx].use_cnt = 1; in irdma_sc_add_mcast_grp()
245 ctx->mg_ctx_info[idx].use_cnt--; in irdma_sc_del_mcast_grp()
247 if (!ctx->mg_ctx_info[idx].use_cnt) { in irdma_sc_del_mcast_grp()
H A Dirdma.h89 u32 use_cnt; member
H A Dcm.h239 u32 use_cnt; member
H A Dhw.c2150 entry->use_cnt++; in irdma_lookup_apbvt_entry()
2348 entry->use_cnt = 1; in irdma_add_apbvt()
2372 if (--entry->use_cnt) { in irdma_del_apbvt()
/linux/net/ipv4/
H A Dudp_tunnel_nic.c23 u16 use_cnt; member
75 return entry->use_cnt == 0 && !entry->flags; in udp_tunnel_nic_entry_is_free()
81 return entry->use_cnt && !(entry->flags & ~UDP_TUNNEL_NIC_ENTRY_FROZEN); in udp_tunnel_nic_entry_is_present()
174 if (entry->use_cnt) in __udp_tunnel_nic_get_port()
374 WARN_ON(entry->use_cnt + (u32)use_cnt_adj > U16_MAX); in udp_tunnel_nic_entry_adj()
379 entry->use_cnt += use_cnt_adj; in udp_tunnel_nic_entry_adj()
380 if (!dodgy && !entry->use_cnt == !(entry->use_cnt - use_cnt_adj)) in udp_tunnel_nic_entry_adj()
484 entry->use_cnt = 1; in udp_tunnel_nic_add_new()
574 if (!entry->use_cnt) in __udp_tunnel_nic_reset_ntf()
664 int adj_cnt = -utn->entries[i][j].use_cnt; in udp_tunnel_nic_flush()
/linux/drivers/power/supply/
H A Dpower_supply_core.c433 if (atomic_read(&psy->use_cnt) >= 0 && in power_supply_set_battery_charged()
471 atomic_inc(&psy->use_cnt); in power_supply_get_by_name()
487 atomic_dec(&psy->use_cnt); in power_supply_put()
528 atomic_inc(&psy->use_cnt); in power_supply_get_by_phandle()
1203 if (atomic_read(&psy->use_cnt) <= 0) { in power_supply_get_property()
1222 if (atomic_read(&psy->use_cnt) <= 0 || !psy->desc->set_property) in power_supply_set_property()
1237 if (atomic_read(&psy->use_cnt) <= 0 || in power_supply_external_power_changed()
1434 atomic_inc(&psy->use_cnt); in __power_supply_register()
1531 WARN_ON(atomic_dec_return(&psy->use_cnt)); in power_supply_unregister()
/linux/net/smc/
H A Dsmc_ism.c302 int use_cnt = 0; in smc_nl_handle_smcd_dev() local
314 use_cnt = atomic_read(&smcd->lgr_cnt); in smc_nl_handle_smcd_dev()
315 if (nla_put_u32(skb, SMC_NLA_DEV_USE_CNT, use_cnt)) in smc_nl_handle_smcd_dev()
317 if (nla_put_u8(skb, SMC_NLA_DEV_IS_CRIT, use_cnt > 0)) in smc_nl_handle_smcd_dev()
/linux/include/linux/
H A Dpower_supply.h305 atomic_t use_cnt; member
/linux/scripts/
H A Dcheckpatch.pl6034 my $use_cnt = () = $tmp_stmt =~ /\b$arg\b/g;
6035 if ($use_cnt > 1) {
/linux/tools/lib/bpf/
H A Dlibbpf.c1094 int use_cnt = 0; in bpf_object_adjust_struct_ops_autoload() local
1114 use_cnt++; in bpf_object_adjust_struct_ops_autoload()
1119 if (use_cnt) in bpf_object_adjust_struct_ops_autoload()