| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/core/ |
| D | object.c | 24 #include <core/object.h> 32 struct nvkm_object *object; in nvkm_object_search() local 39 object = rb_entry(node, typeof(*object), node); in nvkm_object_search() 40 if (handle < object->object) in nvkm_object_search() 43 if (handle > object->object) in nvkm_object_search() 53 object = &client->object; in nvkm_object_search() 57 if (unlikely(func && object->func != func)) in nvkm_object_search() 59 return object; in nvkm_object_search() 63 nvkm_object_remove(struct nvkm_object *object) in nvkm_object_remove() argument 67 spin_lock_irqsave(&object->client->obj_lock, flags); in nvkm_object_remove() [all …]
|
| D | oproxy.c | 27 nvkm_oproxy_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_oproxy_mthd() argument 29 return nvkm_object_mthd(nvkm_oproxy(object)->object, mthd, data, size); in nvkm_oproxy_mthd() 33 nvkm_oproxy_ntfy(struct nvkm_object *object, u32 mthd, in nvkm_oproxy_ntfy() argument 36 return nvkm_object_ntfy(nvkm_oproxy(object)->object, mthd, pevent); in nvkm_oproxy_ntfy() 40 nvkm_oproxy_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_oproxy_map() argument 43 struct nvkm_oproxy *oproxy = nvkm_oproxy(object); in nvkm_oproxy_map() 44 return nvkm_object_map(oproxy->object, argv, argc, type, addr, size); in nvkm_oproxy_map() 48 nvkm_oproxy_unmap(struct nvkm_object *object) in nvkm_oproxy_unmap() argument 50 struct nvkm_oproxy *oproxy = nvkm_oproxy(object); in nvkm_oproxy_unmap() 52 if (unlikely(!oproxy->object)) in nvkm_oproxy_unmap() [all …]
|
| D | ioctl.c | 34 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_nop() argument 41 nvif_ioctl(object, "nop size %d\n", size); in nvkm_ioctl_nop() 43 nvif_ioctl(object, "nop vers %lld\n", args->v0.version); in nvkm_ioctl_nop() 53 nvkm_ioctl_sclass_(struct nvkm_object *object, int index, struct nvkm_oclass *oclass) in nvkm_ioctl_sclass_() argument 55 if ( object->func->uevent && in nvkm_ioctl_sclass_() 56 !object->func->uevent(object, NULL, 0, NULL) && index-- == 0) { in nvkm_ioctl_sclass_() 64 if (object->func->sclass) in nvkm_ioctl_sclass_() 65 return object->func->sclass(object, index, oclass); in nvkm_ioctl_sclass_() 72 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_sclass() argument 80 nvif_ioctl(object, "sclass size %d\n", size); in nvkm_ioctl_sclass() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/ |
| D | object.c | 24 #include <core/object.h> 32 struct nvkm_object *object; in nvkm_object_search() local 37 object = rb_entry(node, typeof(*object), node); in nvkm_object_search() 38 if (handle < object->object) in nvkm_object_search() 41 if (handle > object->object) in nvkm_object_search() 48 object = &client->object; in nvkm_object_search() 52 if (unlikely(func && object->func != func)) in nvkm_object_search() 54 return object; in nvkm_object_search() 58 nvkm_object_remove(struct nvkm_object *object) in nvkm_object_remove() argument 60 if (!RB_EMPTY_NODE(&object->node)) in nvkm_object_remove() [all …]
|
| D | oproxy.c | 27 nvkm_oproxy_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_oproxy_mthd() argument 29 return nvkm_object_mthd(nvkm_oproxy(object)->object, mthd, data, size); in nvkm_oproxy_mthd() 33 nvkm_oproxy_ntfy(struct nvkm_object *object, u32 mthd, in nvkm_oproxy_ntfy() argument 36 return nvkm_object_ntfy(nvkm_oproxy(object)->object, mthd, pevent); in nvkm_oproxy_ntfy() 40 nvkm_oproxy_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_oproxy_map() argument 43 struct nvkm_oproxy *oproxy = nvkm_oproxy(object); in nvkm_oproxy_map() 44 return nvkm_object_map(oproxy->object, argv, argc, type, addr, size); in nvkm_oproxy_map() 48 nvkm_oproxy_unmap(struct nvkm_object *object) in nvkm_oproxy_unmap() argument 50 return nvkm_object_unmap(nvkm_oproxy(object)->object); in nvkm_oproxy_unmap() 54 nvkm_oproxy_rd08(struct nvkm_object *object, u64 addr, u8 *data) in nvkm_oproxy_rd08() argument [all …]
|
| D | ioctl.c | 33 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_nop() argument 40 nvif_ioctl(object, "nop size %d\n", size); in nvkm_ioctl_nop() 42 nvif_ioctl(object, "nop vers %lld\n", args->v0.version); in nvkm_ioctl_nop() 51 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_sclass() argument 59 nvif_ioctl(object, "sclass size %d\n", size); in nvkm_ioctl_sclass() 61 nvif_ioctl(object, "sclass vers %d count %d\n", in nvkm_ioctl_sclass() 66 while (object->func->sclass && in nvkm_ioctl_sclass() 67 object->func->sclass(object, i, &oclass) >= 0) { in nvkm_ioctl_sclass() 89 struct nvkm_object *object = NULL; in nvkm_ioctl_new() local 96 "route %02x token %llx object %016llx\n", in nvkm_ioctl_new() [all …]
|
| /kernel/linux/linux-5.10/arch/parisc/math-emu/ |
| D | float.h | 48 #define Sall(object) (object) argument 49 #define Ssign(object) Bitfield_extract( 0, 1,object) argument 50 #define Ssignedsign(object) Bitfield_signed_extract( 0, 1,object) argument 51 #define Sexponent(object) Bitfield_extract( 1, 8,object) argument 52 #define Smantissa(object) Bitfield_mask( 9, 23,object) argument 53 #define Ssignaling(object) Bitfield_extract( 9, 1,object) argument 54 #define Ssignalingnan(object) Bitfield_extract( 1, 9,object) argument 55 #define Shigh2mantissa(object) Bitfield_extract( 9, 2,object) argument 56 #define Sexponentmantissa(object) Bitfield_mask( 1, 31,object) argument 57 #define Ssignexponent(object) Bitfield_extract( 0, 9,object) argument [all …]
|
| /kernel/linux/linux-6.6/arch/parisc/math-emu/ |
| D | float.h | 48 #define Sall(object) (object) argument 49 #define Ssign(object) Bitfield_extract( 0, 1,object) argument 50 #define Ssignedsign(object) Bitfield_signed_extract( 0, 1,object) argument 51 #define Sexponent(object) Bitfield_extract( 1, 8,object) argument 52 #define Smantissa(object) Bitfield_mask( 9, 23,object) argument 53 #define Ssignaling(object) Bitfield_extract( 9, 1,object) argument 54 #define Ssignalingnan(object) Bitfield_extract( 1, 9,object) argument 55 #define Shigh2mantissa(object) Bitfield_extract( 9, 2,object) argument 56 #define Sexponentmantissa(object) Bitfield_mask( 1, 31,object) argument 57 #define Ssignexponent(object) Bitfield_extract( 0, 9,object) argument [all …]
|
| /kernel/linux/linux-5.10/fs/fscache/ |
| D | object.c | 2 /* FS-Cache object state machine handler 7 * See Documentation/filesystems/caching/object.rst for a description of the 8 * object state machine and the in-kernel representations. 74 * The object state machine. 113 * In such a situation, object->state remembers the state the machine should 149 static inline void fscache_done_parent_op(struct fscache_object *object) in fscache_done_parent_op() argument 151 struct fscache_object *parent = object->parent; in fscache_done_parent_op() 154 object->debug_id, parent->debug_id, parent->n_ops); in fscache_done_parent_op() 165 * Object state machine dispatcher. 167 static void fscache_object_sm_dispatcher(struct fscache_object *object) in fscache_object_sm_dispatcher() argument [all …]
|
| D | operation.c | 29 * object and processor if needed. 56 * This will get its own ref on the object. 60 struct fscache_cookie *cookie = op->object->cookie; in fscache_enqueue_operation() 63 op->object->debug_id, op->debug_id, atomic_read(&op->usage)); in fscache_enqueue_operation() 67 ASSERT(fscache_object_is_available(op->object)); in fscache_enqueue_operation() 96 static void fscache_run_op(struct fscache_object *object, in fscache_run_op() argument 102 object->n_in_progress++; in fscache_run_op() 108 trace_fscache_op(object->cookie, op, fscache_op_run); in fscache_run_op() 115 static void fscache_report_unexpected_submission(struct fscache_object *object, in fscache_report_unexpected_submission() argument 128 op->debug_id, object->debug_id, object->state->name); in fscache_report_unexpected_submission() [all …]
|
| /kernel/linux/linux-6.6/fs/cachefiles/ |
| D | interface.c | 19 * Allocate a cache object record. 26 struct cachefiles_object *object; in cachefiles_alloc_object() local 30 object = kmem_cache_zalloc(cachefiles_object_jar, GFP_KERNEL); in cachefiles_alloc_object() 31 if (!object) in cachefiles_alloc_object() 34 if (cachefiles_ondemand_init_obj_info(object, volume)) { in cachefiles_alloc_object() 35 kmem_cache_free(cachefiles_object_jar, object); in cachefiles_alloc_object() 39 refcount_set(&object->ref, 1); in cachefiles_alloc_object() 41 spin_lock_init(&object->lock); in cachefiles_alloc_object() 42 INIT_LIST_HEAD(&object->cache_link); in cachefiles_alloc_object() 43 object->volume = volume; in cachefiles_alloc_object() [all …]
|
| D | ondemand.c | 21 struct cachefiles_object *object = file->private_data; in cachefiles_ondemand_fd_release() local 28 if (!object) in cachefiles_ondemand_fd_release() 31 info = object->ondemand; in cachefiles_ondemand_fd_release() 32 cache = object->volume->cache; in cachefiles_ondemand_fd_release() 39 cachefiles_ondemand_set_object_close(object); in cachefiles_ondemand_fd_release() 53 trace_cachefiles_ondemand_fd_release(object, object_id); in cachefiles_ondemand_fd_release() 54 cachefiles_put_object(object, cachefiles_obj_put_ondemand_fd); in cachefiles_ondemand_fd_release() 62 struct cachefiles_object *object = kiocb->ki_filp->private_data; in cachefiles_ondemand_fd_write_iter() local 63 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_write_iter() 70 spin_lock(&object->lock); in cachefiles_ondemand_fd_write_iter() [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | kmemleak.c | 37 * Note that the kmemleak_object.use_count is incremented when an object is 45 * scan_mutex [-> object->lock] -> kmemleak_lock -> other_object->lock (SINGLE_DEPTH_NESTING) 47 * No kmemleak_lock and object->lock nesting is allowed outside scan_mutex 107 #define MSECS_MIN_AGE 5000 /* minimum object age for reporting */ 132 * object->lock. Insertions or deletions from object_list, gray_list or 139 unsigned int flags; /* object status flags */ 144 /* object usage count; object freed when use_count == 0 */ 152 /* the total number of pointers found pointing to this object */ 156 /* memory ranges to be scanned inside an object (empty for all) */ 167 /* flag set after the first reporting of an unreference object */ [all …]
|
| /kernel/linux/linux-6.6/mm/ |
| D | kmemleak.c | 40 * Note that the kmemleak_object.use_count is incremented when an object is 48 * scan_mutex [-> object->lock] -> kmemleak_lock -> other_object->lock (SINGLE_DEPTH_NESTING) 50 * No kmemleak_lock and object->lock nesting is allowed outside scan_mutex 112 #define MSECS_MIN_AGE 5000 /* minimum object age for reporting */ 138 * object->lock. Insertions or deletions from object_list, gray_list or 145 unsigned int flags; /* object status flags */ 150 /* object usage count; object freed when use_count == 0 */ 159 /* the total number of pointers found pointing to this object */ 163 /* memory ranges to be scanned inside an object (empty for all) */ 173 /* flag set after the first reporting of an unreference object */ [all …]
|
| /kernel/linux/linux-5.10/fs/cachefiles/ |
| D | interface.c | 20 * allocate an object record for a cookie lookup and prepare the lookup data 27 struct cachefiles_object *object; in cachefiles_alloc_object() local 42 /* create a new object record and a temporary leaf image */ in cachefiles_alloc_object() 43 object = kmem_cache_alloc(cachefiles_object_jar, cachefiles_gfp); in cachefiles_alloc_object() 44 if (!object) in cachefiles_alloc_object() 47 ASSERTCMP(object->backer, ==, NULL); in cachefiles_alloc_object() 49 BUG_ON(test_bit(CACHEFILES_OBJECT_ACTIVE, &object->flags)); in cachefiles_alloc_object() 50 atomic_set(&object->usage, 1); in cachefiles_alloc_object() 52 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object() 54 object->type = cookie->def->type; in cachefiles_alloc_object() [all …]
|
| D | namei.c | 24 * dump debugging info about an object 27 void __cachefiles_printk_object(struct cachefiles_object *object, in __cachefiles_printk_object() argument 34 pr_err("%sobject: OBJ%x\n", prefix, object->fscache.debug_id); in __cachefiles_printk_object() 36 prefix, object->fscache.state->name, in __cachefiles_printk_object() 37 object->fscache.flags, work_busy(&object->fscache.work), in __cachefiles_printk_object() 38 object->fscache.events, object->fscache.event_mask); in __cachefiles_printk_object() 40 prefix, object->fscache.n_ops, object->fscache.n_in_progress, in __cachefiles_printk_object() 41 object->fscache.n_exclusive); in __cachefiles_printk_object() 43 prefix, object->fscache.parent); in __cachefiles_printk_object() 45 spin_lock(&object->fscache.lock); in __cachefiles_printk_object() [all …]
|
| /kernel/linux/linux-5.10/drivers/acpi/acpica/ |
| D | utdelete.c | 4 * Module Name: utdelete - object deletion and reference count utilities 18 static void acpi_ut_delete_internal_obj(union acpi_operand_object *object); 21 acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action); 27 * PARAMETERS: object - Object to be deleted 31 * DESCRIPTION: Low level object deletion, after reference counts have been 36 static void acpi_ut_delete_internal_obj(union acpi_operand_object *object) in acpi_ut_delete_internal_obj() argument 45 ACPI_FUNCTION_TRACE_PTR(ut_delete_internal_obj, object); in acpi_ut_delete_internal_obj() 47 if (!object) { in acpi_ut_delete_internal_obj() 52 * Must delete or free any pointers within the object that are not in acpi_ut_delete_internal_obj() 55 switch (object->common.type) { in acpi_ut_delete_internal_obj() [all …]
|
| /kernel/linux/linux-6.6/drivers/acpi/acpica/ |
| D | utdelete.c | 4 * Module Name: utdelete - object deletion and reference count utilities 18 static void acpi_ut_delete_internal_obj(union acpi_operand_object *object); 21 acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action); 27 * PARAMETERS: object - Object to be deleted 31 * DESCRIPTION: Low level object deletion, after reference counts have been 36 static void acpi_ut_delete_internal_obj(union acpi_operand_object *object) in acpi_ut_delete_internal_obj() argument 45 ACPI_FUNCTION_TRACE_PTR(ut_delete_internal_obj, object); in acpi_ut_delete_internal_obj() 47 if (!object) { in acpi_ut_delete_internal_obj() 52 * Must delete or free any pointers within the object that are not in acpi_ut_delete_internal_obj() 55 switch (object->common.type) { in acpi_ut_delete_internal_obj() [all …]
|
| /kernel/linux/linux-5.10/Documentation/core-api/ |
| D | debug-objects.rst | 2 The object-lifetime debugging infrastructure 21 debugobjects is not changing the data structure of the real object so it 29 object type and add calls into the debug code at appropriate places. The 30 data structure to describe the object type needs at minimum the name of 31 the object type. Optional functions can and should be provided to fixup 53 Each of these functions takes the address of the real object and a 54 pointer to the object type specific debug description structure. 71 object is called. 73 When the real object is already tracked by debugobjects it is checked, 74 whether the object can be initialized. Initializing is not allowed for [all …]
|
| /kernel/linux/linux-6.6/Documentation/core-api/ |
| D | debug-objects.rst | 2 The object-lifetime debugging infrastructure 21 debugobjects is not changing the data structure of the real object so it 29 object type and add calls into the debug code at appropriate places. The 30 data structure to describe the object type needs at minimum the name of 31 the object type. Optional functions can and should be provided to fixup 53 Each of these functions takes the address of the real object and a 54 pointer to the object type specific debug description structure. 71 object is called. 73 When the real object is already tracked by debugobjects it is checked, 74 whether the object can be initialized. Initializing is not allowed for [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | fscache-cache.h | 70 struct fscache_object *fsdef; /* object for the fsdef index */ 79 * operation to be applied to a cache object 99 struct list_head pend_link; /* link in object->pending_ops */ 100 struct fscache_object *object; /* object to be operated upon */ member 108 #define FSCACHE_OP_DEC_READ_CNT 6 /* decrement object->n_reads on destruction */ 215 * - defer writes until cache object lookup completion 229 /* allocate an object record for a cookie */ 233 /* look up the object for a cookie 236 int (*lookup_object)(struct fscache_object *object); 239 void (*lookup_complete)(struct fscache_object *object); [all …]
|
| /kernel/linux/linux-5.10/Documentation/filesystems/caching/ |
| D | backend-api.rst | 48 * "fsdef" which should point to the object representation for the FS-Cache 50 here. FS-Cache keeps the caller's reference to the index object if 114 The fields that might be of use to the backend describe the object 116 The object definition contain functions supplied by the netfs for loading 121 * In-cache object representation:: 137 the case of CacheFS, they're embedded in CacheFS's internal object 141 that refer to a particular object. In such a case it should be printed 144 Each object contains a pointer to the cookie that represents the object it 145 is backing. An object should retired when put_object() is called if it is 147 initialised by calling fscache_object_init(object). [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/ |
| D | object.c | 25 #include <nvif/object.h> 31 nvif_object_ioctl(struct nvif_object *object, void *data, u32 size, void **hack) in nvif_object_ioctl() argument 33 struct nvif_client *client = object->client; in nvif_object_ioctl() 39 if (object != &client->object) in nvif_object_ioctl() 40 args->v0.object = nvif_handle(object); in nvif_object_ioctl() 42 args->v0.object = 0; in nvif_object_ioctl() 47 return client->driver->ioctl(client->object.priv, data, size, hack); in nvif_object_ioctl() 58 nvif_object_sclass_get(struct nvif_object *object, struct nvif_sclass **psclass) in nvif_object_sclass_get() argument 76 ret = nvif_object_ioctl(object, args, size, NULL); in nvif_object_sclass_get() 102 nvif_object_rd(struct nvif_object *object, int size, u64 addr) in nvif_object_rd() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/ |
| D | object.c | 25 #include <nvif/object.h> 31 nvif_object_ioctl(struct nvif_object *object, void *data, u32 size, void **hack) in nvif_object_ioctl() argument 33 struct nvif_client *client = object->client; in nvif_object_ioctl() 39 if (object != &client->object) in nvif_object_ioctl() 40 args->v0.object = nvif_handle(object); in nvif_object_ioctl() 42 args->v0.object = 0; in nvif_object_ioctl() 47 return client->driver->ioctl(client->object.priv, client->super, in nvif_object_ioctl() 59 nvif_object_sclass_get(struct nvif_object *object, struct nvif_sclass **psclass) in nvif_object_sclass_get() argument 77 ret = nvif_object_ioctl(object, args, size, NULL); in nvif_object_sclass_get() 103 nvif_object_rd(struct nvif_object *object, int size, u64 addr) in nvif_object_rd() argument [all …]
|
| /kernel/linux/linux-6.6/tools/lib/perf/include/internal/ |
| D | rc_check.h | 40 * Interpose the indirection. Result will hold the indirection and object is the 43 #define ADD_RC_CHK(result, object) (result = object, object) argument 46 #define RC_CHK_ACCESS(object) object argument 48 /* Frees the object and the indirection layer. */ 49 #define RC_CHK_FREE(object) free(object) argument 52 #define RC_CHK_GET(result, object) ADD_RC_CHK(result, object) argument 55 #define RC_CHK_PUT(object) {} argument 71 * Interpose the indirection. Result will hold the indirection and object is the 74 #define ADD_RC_CHK(result, object) \ argument 76 object ? (result = malloc(sizeof(*result)), \ [all …]
|