Home
last modified time | relevance | path

Searched full:object (Results 1 – 25 of 3210) sorted by relevance

12345678910>>...129

/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/core/
Dobject.c24 #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 …]
Doproxy.c27 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 …]
Dioctl.c33 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 …]
/Linux-v5.15/arch/parisc/math-emu/
Dfloat.h48 #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 …]
/Linux-v5.15/fs/fscache/
Dobject.c2 /* 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.
112 * In such a situation, object->state remembers the state the machine should
148 static inline void fscache_done_parent_op(struct fscache_object *object) in fscache_done_parent_op() argument
150 struct fscache_object *parent = object->parent; in fscache_done_parent_op()
153 object->debug_id, parent->debug_id, parent->n_ops); in fscache_done_parent_op()
164 * Object state machine dispatcher.
166 static void fscache_object_sm_dispatcher(struct fscache_object *object) in fscache_object_sm_dispatcher() argument
[all …]
Doperation.c32 * object and processor if needed.
59 * This will get its own ref on the object.
63 struct fscache_cookie *cookie = op->object->cookie; in fscache_enqueue_operation()
66 op->object->debug_id, op->debug_id, atomic_read(&op->usage)); in fscache_enqueue_operation()
70 ASSERT(fscache_object_is_available(op->object)); in fscache_enqueue_operation()
99 static void fscache_run_op(struct fscache_object *object, in fscache_run_op() argument
105 object->n_in_progress++; in fscache_run_op()
111 trace_fscache_op(object->cookie, op, fscache_op_run); in fscache_run_op()
118 static void fscache_report_unexpected_submission(struct fscache_object *object, in fscache_report_unexpected_submission() argument
131 op->debug_id, object->debug_id, object->state->name); in fscache_report_unexpected_submission()
[all …]
/Linux-v5.15/mm/
Dkmemleak.c37 * 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
108 #define MSECS_MIN_AGE 5000 /* minimum object age for reporting */
134 * object->lock. Insertions or deletions from object_list, gray_list or
141 unsigned int flags; /* object status flags */
146 /* object usage count; object freed when use_count == 0 */
154 /* the total number of pointers found pointing to this object */
158 /* memory ranges to be scanned inside an object (empty for all) */
169 /* flag set after the first reporting of an unreference object */
[all …]
/Linux-v5.15/fs/cachefiles/
Dinterface.c20 * 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 …]
Dnamei.c24 * 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 ? object->fscache.parent->debug_id : 0); in __cachefiles_printk_object()
45 spin_lock(&object->fscache.lock); in __cachefiles_printk_object()
[all …]
/Linux-v5.15/drivers/acpi/acpica/
Dutdelete.c4 * 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 …]
Dnsobject.c21 * object - Object to be attached
22 * type - Type of object, or ACPI_TYPE_ANY if not
27 * DESCRIPTION: Record the given object as the value associated with the
28 * name whose acpi_handle is passed. If Object is NULL
38 union acpi_operand_object *object, acpi_object_type type) in acpi_ns_attach_object() argument
57 if (!object && (ACPI_TYPE_ANY != type)) { in acpi_ns_attach_object()
59 /* Null object */ in acpi_ns_attach_object()
62 "Null object, but type not ACPI_TYPE_ANY")); in acpi_ns_attach_object()
75 /* Check if this object is already attached */ in acpi_ns_attach_object()
77 if (node->object == object) { in acpi_ns_attach_object()
[all …]
Dutobject.c4 * Module Name: utobject - ACPI object create/delete/size/cache routines
39 * type - ACPI Type of the new object
41 * RETURN: A new internal object, null on failure
43 * DESCRIPTION: Create and initialize a new internal object.
45 * NOTE: We always allocate the worst-case object descriptor because
48 * the most memory efficient, but the efficiency of the object
60 union acpi_operand_object *object; in acpi_ut_create_internal_object_dbg() local
66 /* Allocate the raw object descriptor */ in acpi_ut_create_internal_object_dbg()
68 object = in acpi_ut_create_internal_object_dbg()
71 if (!object) { in acpi_ut_create_internal_object_dbg()
[all …]
Dutcache.c22 * object_size - Size of each cached object
24 * return_cache - Where the new cache object is returned
28 * DESCRIPTION: Create a cache object
44 /* Create the cache object */ in acpi_os_create_cache()
51 /* Populate the cache object and return it */ in acpi_os_create_cache()
66 * PARAMETERS: cache - Handle to cache object
94 /* Delete and unlink one cached state object */ in acpi_os_purge_cache()
111 * PARAMETERS: cache - Handle to cache object
116 * cache object.
133 /* Now we can delete the cache object */ in acpi_os_delete_cache()
[all …]
Ddsmthdat.c25 union acpi_operand_object *object,
38 * PARAMETERS: walk_state - Current walk state object
93 * PARAMETERS: walk_state - Current walk state object
111 if (walk_state->local_variables[index].object) { in acpi_ds_method_data_delete_all()
115 object)); in acpi_ds_method_data_delete_all()
117 /* Detach object (if present) and remove a reference */ in acpi_ds_method_data_delete_all()
127 if (walk_state->arguments[index].object) { in acpi_ds_method_data_delete_all()
130 walk_state->arguments[index].object)); in acpi_ds_method_data_delete_all()
132 /* Detach object (if present) and remove a reference */ in acpi_ds_method_data_delete_all()
147 * walk_state - Current walk state object
[all …]
/Linux-v5.15/Documentation/core-api/
Ddebug-objects.rst2 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 …]
/Linux-v5.15/include/linux/
Dfscache-cache.h70 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 */
214 * - defer writes until cache object lookup completion
228 /* allocate an object record for a cookie */
232 /* look up the object for a cookie
235 int (*lookup_object)(struct fscache_object *object);
238 void (*lookup_complete)(struct fscache_object *object);
[all …]
/Linux-v5.15/Documentation/filesystems/caching/
Dbackend-api.rst48 * "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 …]
Dobject.rst4 In-Kernel Cache Object Representation and Management
13 (*) Object management state machine.
26 FS-Cache maintains an in-kernel representation of each object that a netfs is
41 correspond, but the cookies tree is a superset of the union of the object trees
93 Object Management State Machine
96 Within FS-Cache, each active object is managed by its own individual state
97 machine. The state for an object is kept in the fscache_object struct, in
98 object->state. A cookie may point to a set of objects that are in different
105 representations are hierarchical, and it is expected that an object must
106 be created or accessed with respect to its parent object.
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/nvif/
Dobject.c25 #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 …]
/Linux-v5.15/mm/kasan/
Dcommon.c150 * memory within the object. in __kasan_cache_create()
184 * it in the object. This is the case when: in __kasan_cache_create()
185 * 1. Object is SLAB_TYPESAFE_BY_RCU, which means that it can in __kasan_cache_create()
187 * 2. Object has a constructor, which means it's expected to in __kasan_cache_create()
189 * 3. Object is too small. in __kasan_cache_create()
232 const void *object) in kasan_get_alloc_meta() argument
236 return kasan_reset_tag(object) + cache->kasan_info.alloc_meta_offset; in kasan_get_alloc_meta()
241 const void *object) in kasan_get_free_meta() argument
246 return kasan_reset_tag(object) + cache->kasan_info.free_meta_offset; in kasan_get_free_meta()
260 void __kasan_unpoison_object_data(struct kmem_cache *cache, void *object) in __kasan_unpoison_object_data() argument
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dchan.c50 struct nvkm_fifo_chan_object *object = in nvkm_fifo_chan_child_fini() local
51 container_of(base, typeof(*object), oproxy); in nvkm_fifo_chan_child_fini()
52 struct nvkm_engine *engine = object->oproxy.object->engine; in nvkm_fifo_chan_child_fini()
53 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_fini()
64 nvif_error(&chan->object, in nvkm_fifo_chan_child_fini()
70 if (engn->object) { in nvkm_fifo_chan_child_fini()
71 ret = nvkm_object_fini(engn->object, suspend); in nvkm_fifo_chan_child_fini()
76 nvif_trace(&chan->object, "detached %s\n", name); in nvkm_fifo_chan_child_fini()
83 struct nvkm_fifo_chan_object *object = in nvkm_fifo_chan_child_init() local
84 container_of(base, typeof(*object), oproxy); in nvkm_fifo_chan_child_init()
[all …]
/Linux-v5.15/sound/pci/asihpi/
Dhpimsginit.c17 /* The actual message size for each object type */
19 /* The actual response size for each object type */
27 static void hpi_init_message(struct hpi_message *phm, u16 object, in hpi_init_message() argument
32 if ((object > 0) && (object <= HPI_OBJ_MAXINDEX)) { in hpi_init_message()
33 object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1); in hpi_init_message()
34 size = msg_size[object]; in hpi_init_message()
46 phm->object = object; in hpi_init_message()
56 void hpi_init_response(struct hpi_response *phr, u16 object, u16 function, in hpi_init_response() argument
61 if ((object > 0) && (object <= HPI_OBJ_MAXINDEX)) { in hpi_init_response()
62 object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1); in hpi_init_response()
[all …]
/Linux-v5.15/include/media/
Dmedia-request.h127 * object in it. A reference to the request must be held during the update. This
240 * struct media_request_object_ops - Media request object operations
241 * @prepare: Validate and prepare the request object, optional.
242 * @unprepare: Unprepare the request object, optional.
243 * @queue: Queue the request object, optional.
244 * @unbind: Unbind the request object, optional.
245 * @release: Release the request object, required.
248 int (*prepare)(struct media_request_object *object);
249 void (*unprepare)(struct media_request_object *object);
250 void (*queue)(struct media_request_object *object);
[all …]
/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dttm_object.h32 * Base- and reference object implementation for the various
52 * Describes what type of reference a ref object holds.
54 * TTM_REF_USAGE is a simple refcount on a base object.
57 * buffer object.
60 * buffer object.
74 * One entry per ttm object type.
98 * @hash: hash entry for the per-device object hash.
99 * @type: derived type this object is base class for.
100 * @shareable: Other ttm_object_files can access this object.
103 * NULL if the object was not created by a user request.
[all …]
/Linux-v5.15/security/landlock/
Dobject.c3 * Landlock LSM - Object management
18 #include "object.h"
39 * The caller must own the object (i.e. thanks to object->usage) to safely put
42 void landlock_put_object(struct landlock_object *const object) in landlock_put_object() argument
45 * The call to @object->underops->release(object) might sleep, e.g. in landlock_put_object()
49 if (!object) in landlock_put_object()
53 * If the @object's refcount cannot drop to zero, we can just decrement in landlock_put_object()
55 * happen under @object->lock for synchronization with things like in landlock_put_object()
58 if (refcount_dec_and_lock(&object->usage, &object->lock)) { in landlock_put_object()
59 __acquire(&object->lock); in landlock_put_object()
[all …]

12345678910>>...129