Home
last modified time | relevance | path

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

/drivers/gpu/drm/nouveau/core/core/
Devent.c32 if (--event->refs[index * event->types_nr + type] == 0) { in nvkm_event_put()
45 if (++event->refs[index * event->types_nr + type] == 1) { in nvkm_event_get()
59 if (!event->refs || WARN_ON(index >= event->index_nr)) in nvkm_event_send()
78 if (event->refs) { in nvkm_event_fini()
79 kfree(event->refs); in nvkm_event_fini()
80 event->refs = NULL; in nvkm_event_fini()
88 event->refs = kzalloc(sizeof(*event->refs) * index_nr * types_nr, in nvkm_event_init()
90 if (!event->refs) in nvkm_event_init()
Dnotify.c144 if ((notify->event = event), event->refs) { in nvkm_notify_init()
/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_lock.c152 cfs_percpt_atomic_free(atomic_t **refs) in cfs_percpt_atomic_free() argument
154 cfs_percpt_free(refs); in cfs_percpt_atomic_free()
162 atomic_t **refs; in cfs_percpt_atomic_alloc() local
166 refs = cfs_percpt_alloc(cptab, sizeof(*ref)); in cfs_percpt_atomic_alloc()
167 if (refs == NULL) in cfs_percpt_atomic_alloc()
170 cfs_percpt_for_each(ref, i, refs) in cfs_percpt_atomic_alloc()
172 return refs; in cfs_percpt_atomic_alloc()
178 cfs_percpt_atomic_summary(atomic_t **refs) in cfs_percpt_atomic_summary() argument
184 cfs_percpt_for_each(ref, i, refs) in cfs_percpt_atomic_summary()
/drivers/net/ethernet/mellanox/mlx4/
Dport.c59 table->refs[i] = 0; in mlx4_init_mac_table()
72 table->refs[i] = 0; in mlx4_init_vlan_table()
106 if (table->refs[i] && in find_index()
144 if (!table->refs[i]) in mlx4_find_cached_mac()
169 if (!table->refs[i]) { in __mlx4_register_mac()
179 ++table->refs[i]; in __mlx4_register_mac()
202 table->refs[free] = 1; in __mlx4_register_mac()
265 if (--table->refs[index]) { in __mlx4_unregister_mac()
358 if (table->refs[i] && in mlx4_find_cached_vlan()
387 if (free < 0 && (table->refs[i] == 0)) { in __mlx4_register_vlan()
[all …]
Dmlx4.h701 int refs[MLX4_MAX_MAC_NUM]; member
723 int refs[MLX4_MAX_VLAN_NUM]; member
/drivers/staging/lustre/lnet/lnet/
Dlib-eq.c157 int **refs = NULL; in LNetEQFree() local
191 refs = eq->eq_refs; in LNetEQFree()
202 if (refs != NULL) in LNetEQFree()
203 cfs_percpt_free(refs); in LNetEQFree()
/drivers/misc/sgi-xp/
Dxpc.h956 s32 refs = atomic_dec_return(&ch->references); in xpc_msgqueue_deref() local
958 DBUG_ON(refs < 0); in xpc_msgqueue_deref()
959 if (refs == 0) in xpc_msgqueue_deref()
973 s32 refs = atomic_dec_return(&part->references); in xpc_part_deref() local
975 DBUG_ON(refs < 0); in xpc_part_deref()
976 if (refs == 0 && part->setup_state == XPC_P_SS_WTEARDOWN) in xpc_part_deref()
/drivers/gpu/drm/nouveau/core/include/core/
Devent.h23 int *refs; member
/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c1256 if (mvm->refs[ref]) \
1259 BIT(ref), mvm->refs[ref], #ref); \
1270 u32 refs = 0; in iwl_dbgfs_d0i3_refs_read() local
1273 if (mvm->refs[i]) in iwl_dbgfs_d0i3_refs_read()
1274 refs |= BIT(i); in iwl_dbgfs_d0i3_refs_read()
1277 refs); in iwl_dbgfs_d0i3_refs_read()
1315 taken = mvm->refs[IWL_MVM_REF_USER]; in iwl_dbgfs_d0i3_refs_write()
Dmac80211.c217 mvm->refs[ref_type]++; in iwl_mvm_ref()
229 WARN_ON(!mvm->refs[ref_type]--); in iwl_mvm_unref()
244 if (except_ref == i || !mvm->refs[i]) in iwl_mvm_unref_all_except()
248 i, mvm->refs[i]); in iwl_mvm_unref_all_except()
249 for (j = 0; j < mvm->refs[i]; j++) in iwl_mvm_unref_all_except()
251 mvm->refs[i] = 0; in iwl_mvm_unref_all_except()
Dmvm.h645 u8 refs[IWL_MVM_REF_COUNT]; member
Dops.c560 mvm->refs[IWL_MVM_REF_UCODE_DOWN] = 1; in iwl_op_mode_mvm_start()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_private.h393 void cfs_percpt_atomic_free(atomic_t **refs);
395 int cfs_percpt_atomic_summary(atomic_t **refs);
/drivers/staging/android/
Dbinder.c374 struct hlist_head refs; member
1490 !hlist_empty(&node->refs)) in binder_dec_node_nilocked()
1500 if (hlist_empty(&node->refs) && !node->local_strong_refs && in binder_dec_node_nilocked()
1711 hlist_add_head(&new_ref->node_entry, &node->refs); in binder_get_ref_for_node_olocked()
4115 weak = !hlist_empty(&node->refs) || in binder_thread_read()
4990 static int binder_node_release(struct binder_node *node, int refs) in binder_node_release() argument
5005 if (hlist_empty(&node->refs) && node->tmp_refs == 1) { in binder_node_release()
5010 return refs; in binder_node_release()
5022 hlist_for_each_entry(ref, &node->refs, node_entry) { in binder_node_release()
5023 refs++; in binder_node_release()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dobd_config.c725 int refs; in class_decref() local
729 refs = atomic_read(&obd->obd_refcount); in class_decref()
733 CDEBUG(D_INFO, "Decref %s (%p) now %d\n", obd->obd_name, obd, refs); in class_decref()
735 if ((refs == 1) && obd->obd_stopping) { in class_decref()
748 if (refs == 0) { in class_decref()
/drivers/tty/
Dtty_io.c536 int refs = 0; in tty_signal_session_leader() local
547 refs++; in tty_signal_session_leader()
572 return refs; in tty_signal_session_leader()
603 int refs; in __tty_hangup() local
645 refs = tty_signal_session_leader(tty, exit_session); in __tty_hangup()
647 while (refs--) in __tty_hangup()
/drivers/xen/
Dgntdev.c571 if (copy_from_user(map->grants, &u->refs, in gntdev_ioctl_map_grant_ref()
/drivers/block/drbd/
Ddrbd_main.c2894 int refs = 3; in drbd_delete_device() local
2902 refs++; in drbd_delete_device()
2908 kref_sub(&device->kref, refs, drbd_destroy_device); in drbd_delete_device()