| /kernel/linux/linux-4.19/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/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/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-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-4.19/fs/fscache/ |
| D | object.c | 1 /* FS-Cache object state machine handler 11 * See Documentation/filesystems/caching/object.txt for a description of the 12 * object state machine and the in-kernel representations. 78 * The object state machine. 117 * In such a situation, object->state remembers the state the machine should 153 static inline void fscache_done_parent_op(struct fscache_object *object) in fscache_done_parent_op() argument 155 struct fscache_object *parent = object->parent; in fscache_done_parent_op() 158 object->debug_id, parent->debug_id, parent->n_ops); in fscache_done_parent_op() 169 * Object state machine dispatcher. 171 static void fscache_object_sm_dispatcher(struct fscache_object *object) in fscache_object_sm_dispatcher() argument [all …]
|
| D | operation.c | 33 * object and processor if needed. 60 * This will get its own ref on the object. 64 struct fscache_cookie *cookie = op->object->cookie; in fscache_enqueue_operation() 67 op->object->debug_id, op->debug_id, atomic_read(&op->usage)); in fscache_enqueue_operation() 71 ASSERT(fscache_object_is_available(op->object)); in fscache_enqueue_operation() 100 static void fscache_run_op(struct fscache_object *object, in fscache_run_op() argument 106 object->n_in_progress++; in fscache_run_op() 112 trace_fscache_op(object->cookie, op, fscache_op_run); in fscache_run_op() 119 static void fscache_report_unexpected_submission(struct fscache_object *object, in fscache_report_unexpected_submission() argument 132 op->debug_id, object->debug_id, object->state->name); in fscache_report_unexpected_submission() [all …]
|
| /kernel/linux/linux-4.19/arch/parisc/math-emu/ |
| D | float.h | 61 #define Sall(object) (object) argument 62 #define Ssign(object) Bitfield_extract( 0, 1,object) argument 63 #define Ssignedsign(object) Bitfield_signed_extract( 0, 1,object) argument 64 #define Sexponent(object) Bitfield_extract( 1, 8,object) argument 65 #define Smantissa(object) Bitfield_mask( 9, 23,object) argument 66 #define Ssignaling(object) Bitfield_extract( 9, 1,object) argument 67 #define Ssignalingnan(object) Bitfield_extract( 1, 9,object) argument 68 #define Shigh2mantissa(object) Bitfield_extract( 9, 2,object) argument 69 #define Sexponentmantissa(object) Bitfield_mask( 1, 31,object) argument 70 #define Ssignexponent(object) Bitfield_extract( 0, 9,object) argument [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-4.19/fs/cachefiles/ |
| D | interface.c | 24 * allocate an object record for a cookie lookup and prepare the lookup data 31 struct cachefiles_object *object; in cachefiles_alloc_object() local 46 /* create a new object record and a temporary leaf image */ in cachefiles_alloc_object() 47 object = kmem_cache_alloc(cachefiles_object_jar, cachefiles_gfp); in cachefiles_alloc_object() 48 if (!object) in cachefiles_alloc_object() 51 ASSERTCMP(object->backer, ==, NULL); in cachefiles_alloc_object() 53 BUG_ON(test_bit(CACHEFILES_OBJECT_ACTIVE, &object->flags)); in cachefiles_alloc_object() 54 atomic_set(&object->usage, 1); in cachefiles_alloc_object() 56 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object() 58 object->type = cookie->def->type; in cachefiles_alloc_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 …]
|
| /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-4.19/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-4.19/mm/ |
| D | kmemleak.c | 50 * Note that the kmemleak_object.use_count is incremented when an object is 58 * scan_mutex [-> object->lock] -> kmemleak_lock -> other_object->lock (SINGLE_DEPTH_NESTING) 60 * No kmemleak_lock and object->lock nesting is allowed outside scan_mutex 119 #define MSECS_MIN_AGE 5000 /* minimum object age for reporting */ 144 * object->lock. Insertions or deletions from object_list, gray_list or 151 unsigned int flags; /* object status flags */ 156 /* object usage count; object freed when use_count == 0 */ 164 /* the total number of pointers found pointing to this object */ 168 /* memory ranges to be scanned inside an object (empty for all) */ 179 /* flag set after the first reporting of an unreference object */ [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-4.19/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-4.19/scripts/coccinelle/api/ |
| D | drm-get-put.cocci | 15 expression object; 19 - drm_connector_reference(object) 20 + drm_connector_get(object) 22 - drm_connector_unreference(object) 23 + drm_connector_put(object) 25 - drm_framebuffer_reference(object) 26 + drm_framebuffer_get(object) 28 - drm_framebuffer_unreference(object) 29 + drm_framebuffer_put(object) 31 - drm_gem_object_reference(object) [all …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | fscache-cache.h | 74 struct fscache_object *fsdef; /* object for the fsdef index */ 83 * operation to be applied to a cache object 103 struct list_head pend_link; /* link in object->pending_ops */ 104 struct fscache_object *object; /* object to be operated upon */ member 112 #define FSCACHE_OP_DEC_READ_CNT 6 /* decrement object->n_reads on destruction */ 219 * - defer writes until cache object lookup completion 233 /* allocate an object record for a cookie */ 237 /* look up the object for a cookie 240 int (*lookup_object)(struct fscache_object *object); 243 void (*lookup_complete)(struct fscache_object *object); [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-4.19/Documentation/filesystems/caching/ |
| D | backend-api.txt | 47 (*) "fsdef" which should point to the object representation for the FS-Cache 49 here. FS-Cache keeps the caller's reference to the index object if 117 The fields that might be of use to the backend describe the object 119 The object definition contain functions supplied by the netfs for loading 124 (*) In-cache object representation: 140 the case of CacheFS, they're embedded in CacheFS's internal object 144 that refer to a particular object. In such a case it should be printed 147 Each object contains a pointer to the cookie that represents the object it 148 is backing. An object should retired when put_object() is called if it is 150 initialised by calling fscache_object_init(object). [all …]
|