Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 1208) sorted by relevance

12345678910>>...49

/freebsd-12.1/sys/dev/vmware/vmci/
H A Dvmci_resource.c171 ASSERT(resource); in vmci_resource_add()
176 resource_handle.resource); in vmci_resource_add()
187 &resource->hash_entry); in vmci_resource_add()
220 if (resource == NULL) in vmci_resource_remove()
259 return (resource); in vmci_resource_get()
286 ASSERT(resource); in vmci_resource_hold()
311 ASSERT(resource); in vmci_resource_do_remove()
314 resource->container_free_cb(resource->container_object); in vmci_resource_do_remove()
338 ASSERT(resource); in vmci_resource_release()
341 &resource->hash_entry); in vmci_resource_release()
[all …]
H A Dvmci_datagram.c28 struct vmci_resource resource; member
297 struct vmci_resource *resource; in vmci_datagram_destroy_handle() local
301 if (resource == NULL) { in vmci_datagram_destroy_handle()
306 entry = RESOURCE_CONTAINER(resource, struct datagram_entry, resource); in vmci_datagram_destroy_handle()
357 if (resource == NULL) in vmci_datagram_get_priv_flags_int()
360 resource); in vmci_datagram_get_priv_flags_int()
455 struct vmci_resource *resource; in vmci_datagram_dispatch_as_guest() local
459 if (NULL == resource) in vmci_datagram_dispatch_as_guest()
523 struct vmci_resource *resource; in vmci_datagram_invoke_guest_handler() local
535 if (NULL == resource) { in vmci_datagram_invoke_guest_handler()
[all …]
H A Dvmci_doorbell.c29 struct vmci_resource resource; member
215 struct vmci_resource *resource; in vmci_doorbell_get_priv_flags() local
217 resource = vmci_resource_get(handle, in vmci_doorbell_get_priv_flags()
219 if (resource == NULL) in vmci_doorbell_get_priv_flags()
222 resource, struct vmci_doorbell_entry, resource); in vmci_doorbell_get_priv_flags()
224 vmci_resource_release(resource); in vmci_doorbell_get_priv_flags()
534 handle->resource); in vmci_doorbell_create()
556 new_handle.resource); in vmci_doorbell_create()
605 struct vmci_resource *resource; in vmci_doorbell_destroy() local
612 if (resource == NULL) { in vmci_doorbell_destroy()
[all …]
/freebsd-12.1/sys/sys/
H A Drman.h104 struct resource { struct
126 int rman_activate_resource(struct resource *r);
131 rman_res_t rman_get_end(struct resource *);
132 device_t rman_get_device(struct resource *);
133 u_int rman_get_flags(struct resource *);
134 void *rman_get_irq_cookie(struct resource *);
136 int rman_get_rid(struct resource *);
137 rman_res_t rman_get_size(struct resource *);
138 rman_res_t rman_get_start(struct resource *);
139 void *rman_get_virtual(struct resource *);
[all …]
H A Dracct.h176 int racct_add(struct proc *p, int resource, uint64_t amount);
180 int racct_set(struct proc *p, int resource, uint64_t amount);
182 void racct_sub(struct proc *p, int resource, uint64_t amount);
184 uint64_t racct_get_limit(struct proc *p, int resource);
185 uint64_t racct_get_available(struct proc *p, int resource);
205 racct_add(struct proc *p, int resource, uint64_t amount) in racct_add() argument
217 racct_add_force(struct proc *p, int resource, uint64_t amount) in racct_add_force() argument
222 racct_set(struct proc *p, int resource, uint64_t amount) in racct_set() argument
234 racct_sub(struct proc *p, int resource, uint64_t amount) in racct_sub() argument
244 racct_get_limit(struct proc *p, int resource) in racct_get_limit() argument
[all …]
H A Dbus.h348 struct resource;
386 struct resource *
398 struct resource *
431 struct resource *
458 struct resource *r,
478 struct resource *
487 struct resource *);
495 struct resource *irq);
497 struct resource *irq);
499 struct resource *r,
[all …]
/freebsd-12.1/share/examples/hast/
H A Ducarp_up.sh35 resource="test"
43 device="/dev/hast/${resource}"
50 pgrep -f "hastd: ${resource} \(secondary\)" >/dev/null 2>&1 || break
53 if pgrep -f "hastd: ${resource} \(secondary\)" >/dev/null 2>&1; then
60 out=`hastctl role primary "${resource}" 2>&1`
74 logger -p local0.debug -t hast "Role for resource ${resource} changed to primary."
81 logger -p local0.error -t hast "File system check for resource ${resource} failed."
84 logger -p local0.debug -t hast "File system check for resource ${resource} finished."
91 logger -p local0.debug -t hast "File system for resource ${resource} mounted."
101 logger -p local0.debug -t hast "ZFS pool for resource ${resource} imported."
[all …]
H A Ducarp_down.sh35 resource="test"
44 device="/dev/hast/${resource}"
58 …logger -p local0.error -t hast "UCARP UP process for resource ${resource} is still running after 3…
70 logger -p local0.error -t hast "Unable to unmount file system for resource ${resource}: ${out}."
73 logger -p local0.debug -t hast "File system for resource ${resource} unmounted."
82 logger -p local0.error -t hast "Unable to export pool for resource ${resource}: ${out}."
85 logger -p local0.debug -t hast "ZFS pool for resource ${resource} exported."
91 out=`hastctl role secondary "${resource}" 2>&1`
93 …logger -p local0.error -t hast "Unable to change to role to secondary for resource ${resource}: ${…
96 logger -p local0.debug -t hast "Role for resource ${resource} changed to secondary."
[all …]
/freebsd-12.1/sys/kern/
H A Dkern_racct.c524 racct->r_resources[resource] += amount; in racct_adjust_resource()
525 if (racct->r_resources[resource] < 0) { in racct_adjust_resource()
526 KASSERT(RACCT_IS_SLOPPY(resource) || RACCT_IS_DECAYING(resource), in racct_adjust_resource()
528 racct->r_resources[resource] = 0; in racct_adjust_resource()
540 if ((resource == RACCT_PCTCPU) && in racct_adjust_resource()
686 if (resource == RACCT_PCTCPU) { in racct_set_locked()
700 resource)); in racct_set_locked()
774 available = rctl_get_limit(p, resource); in racct_get_limit()
850 KASSERT(RACCT_CAN_DROP(resource), in racct_sub()
891 KASSERT(RACCT_CAN_DROP(resource), in racct_sub_cred()
[all …]
H A Dbus_if.m45 static struct resource * struct
263 * valid if the resource type is). If a resource was allocated and the
315 struct resource *_r;
337 struct resource *_r;
360 struct resource *_r;
382 struct resource *_r;
404 struct resource *_res;
427 struct resource *_res;
456 struct resource *_irq;
480 struct resource *_irq;
[all …]
/freebsd-12.1/contrib/sendmail/libsm/
H A Dmemstat.c70 sm_memstat_get(resource, pvalue) in sm_memstat_get() argument
71 char *resource; in sm_memstat_get()
155 sm_memstat_get(resource, pvalue)
156 char *resource;
167 (resource != NULL) ? resource: "freemem");
253 sm_memstat_get(resource, pvalue)
254 char *resource;
261 if (resource == NULL)
268 l = strlen(resource);
329 sm_memstat_get(resource, pvalue)
[all …]
H A Dt-memstat.c47 char *resource; local
51 resource = NULL;
65 resource = strdup(optarg);
66 if (resource == NULL)
90 r2 = sm_memstat_get(resource, &v);
94 resource != NULL ? resource : "default-value",
113 resource != NULL ? resource : "default-value", v);
/freebsd-12.1/contrib/ntp/lib/isc/unix/
H A Dresource.c42 resource2rlim(isc_resource_t resource, int *rlim_resource) { in resource2rlim() argument
45 switch (resource) { in resource2rlim()
94 REQUIRE(resource >= isc_resource_coresize && in resource2rlim()
95 resource <= isc_resource_stacksize); in resource2rlim()
112 result = resource2rlim(resource, &unixresource); in isc_resource_setlimit()
156 if (resource == isc_resource_openfiles && rlim_value == RLIM_INFINITY) { in isc_resource_setlimit()
171 if (resource == isc_resource_openfiles && rlim_value == RLIM_INFINITY) { in isc_resource_setlimit()
178 if (resource == isc_resource_openfiles && rlim_value == RLIM_INFINITY) { in isc_resource_setlimit()
188 if (resource == isc_resource_openfiles && rlim_value == RLIM_INFINITY) { in isc_resource_setlimit()
206 result = resource2rlim(resource, &unixresource); in isc_resource_getlimit()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DCrashRecoveryContext.h148 T *resource;
149 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() argument
150 : CrashRecoveryContextCleanup(context), resource(resource) {} in CrashRecoveryContextCleanupBase()
172 T *resource) in CrashRecoveryContextDestructorCleanup() argument
174 CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDestructorCleanup()
177 this->resource->~T(); in recoverResources()
188 CrashRecoveryContextDeleteCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDeleteCleanup()
190 void recoverResources() override { delete this->resource; } in recoverResources()
199 T *resource) in CrashRecoveryContextReleaseRefCleanup() argument
201 T>(context, resource) {} in CrashRecoveryContextReleaseRefCleanup()
[all …]
/freebsd-12.1/sys/contrib/zstd/contrib/pzstd/utils/
H A DResourcePool.h62 UniquePtr resource{resources_.back(), Deleter{*this}}; in get()
65 return resource; in get()
67 UniquePtr resource{factory_(), Deleter{*this}}; in get()
69 return resource; in get()
74 for (const auto resource : resources_) { in ~ResourcePool() local
75 free_(resource); in ~ResourcePool()
84 void operator() (T *resource) { in operator()
87 if (resource) { in operator()
88 pool_->resources_.push_back(resource); in operator()
/freebsd-12.1/sys/dev/mse/
H A Dmsevar.h57 struct resource *sc_port;
58 struct resource *sc_intr;
60 void (*sc_enablemouse)(struct resource *port);
61 void (*sc_disablemouse)(struct resource *port);
62 void (*sc_getmouse)(struct resource *port, int *dx, int *dy,
114 void (*m_enable)(struct resource *port);
116 void (*m_disable)(struct resource *port);
118 void (*m_get)(struct resource *port, int *dx, int *dy, int *but);
H A Dmse_isa.c158 static void mse_disablelogi(struct resource *port);
161 static void mse_enablelogi(struct resource *port);
175 static void mse_enableati(struct resource *port);
176 static void mse_disableati(struct resource *port);
177 static void mse_getati(struct resource *port, int *dx, int *dy,
288 mse_enablelogi(struct resource *port) in mse_enablelogi()
300 mse_disablelogi(struct resource *port) in mse_disablelogi()
310 mse_getlogi(struct resource *port, int *dx, int *dy, int *but) in mse_getlogi()
351 mse_enableati(struct resource *port) in mse_enableati()
363 mse_disableati(struct resource *port) in mse_disableati()
[all …]
/freebsd-12.1/sys/dev/sound/isa/
H A Dsbc.c87 struct resource *r);
142 sb_rd(struct resource *io, int reg) in sb_rd()
158 sb_dspready(struct resource *io) in sb_dspready()
199 sb_get_byte(struct resource *io) in sb_get_byte()
213 sb_reset_dsp(struct resource *io) in sb_reset_dsp()
222 sb_identify_board(struct resource *io) in sb_identify_board()
286 struct resource *io; in sbc_probe()
372 struct resource *r; in sbc_attach()
539 static struct resource *
545 struct resource **res; in sbc_alloc_resource()
[all …]
/freebsd-12.1/sys/arm/arm/
H A Dnexus.c90 struct resource *);
95 static int nexus_bind_intr(device_t, device_t, struct resource *, int);
102 struct resource *irq, void *cookie, const char *descr);
105 struct resource *);
107 struct resource *);
228 static struct resource *
232 struct resource *rv; in nexus_alloc_resource()
266 struct resource *res) in nexus_release_resource()
355 nexus_describe_intr(device_t dev, device_t child, struct resource *irq, in nexus_describe_intr()
374 struct resource *r) in nexus_activate_resource()
[all …]
/freebsd-12.1/contrib/ntp/lib/isc/win32/
H A Dresource.c38 isc_resource_setlimit(isc_resource_t resource, isc_resourcevalue_t value) { in isc_resource_setlimit() argument
42 if (resource != isc_resource_openfiles) in isc_resource_setlimit()
60 isc_resource_getlimit(isc_resource_t resource, isc_resourcevalue_t *value) { in isc_resource_getlimit() argument
62 if (resource != isc_resource_openfiles) in isc_resource_getlimit()
70 isc_resource_getcurlimit(isc_resource_t resource, isc_resourcevalue_t *value) { in isc_resource_getcurlimit() argument
71 return (isc_resource_getlimit(resource, value)); in isc_resource_getcurlimit()
/freebsd-12.1/sys/dev/pci/
H A Dpcib_private.h58 struct resource *pcib_host_res_alloc(struct pcib_host_resources *hr,
62 device_t dev, int type, struct resource *r, rman_res_t start,
81 struct resource **res;
97 struct resource *res;
138 struct resource *pcie_irq;
153 struct resource *pci_domain_alloc_bus(int domain, device_t dev, int *rid,
156 struct resource *r, rman_res_t start, rman_res_t end);
158 struct resource *r);
159 struct resource *pcib_alloc_subbus(struct pcib_secbus *bus, device_t child,
182 struct resource *r, rman_res_t start, rman_res_t end);
[all …]
/freebsd-12.1/sys/dev/quicc/
H A Dquicc_bfe.h41 struct resource *sc_rres; /* Register resource. */
45 struct resource *sc_ires; /* Interrupt resource. */
65 struct resource *quicc_bus_alloc_resource(device_t, device_t, int, int *,
70 int quicc_bus_release_resource(device_t, device_t, int, int, struct resource *);
71 int quicc_bus_setup_intr(device_t, device_t, struct resource *, int,
73 int quicc_bus_teardown_intr(device_t, device_t, struct resource *, void *);
/freebsd-12.1/sys/x86/x86/
H A Dnexus.c109 struct resource *irq, void *cookie,
112 struct resource *);
114 struct resource *);
116 struct resource *r,
122 struct resource *);
371 static struct resource *
377 struct resource *rv; in nexus_alloc_resource()
435 struct resource *r) in nexus_activate_resource()
459 struct resource *r) in nexus_deactivate_resource()
556 struct resource *r) in nexus_release_resource()
[all …]
/freebsd-12.1/sys/dev/exca/
H A Dexcavar.h110 int exca_io_map(struct exca_softc *sc, int width, struct resource *r);
111 int exca_io_unmap_res(struct exca_softc *sc, struct resource *res);
113 int exca_mem_map(struct exca_softc *sc, int kind, struct resource *res);
114 int exca_mem_set_flags(struct exca_softc *sc, struct resource *res,
116 int exca_mem_set_offset(struct exca_softc *sc, struct resource *res,
118 int exca_mem_unmap_res(struct exca_softc *sc, struct resource *res);
126 int rid, struct resource *res);
128 int rid, struct resource *res);
/freebsd-12.1/sys/dev/bhnd/bhndb/
H A Dbhndb_if.m36 #include <machine/resource.h>
86 struct resource *r)
93 struct resource *r)
195 * @param type The resource type.
196 * @param r The resource to be suspended.
202 struct resource *r;
218 * @param type The resource type.
219 * @param r The resource to be suspended.
225 struct resource *r;
262 * @param irq The bridged interrupt resource.
[all …]

12345678910>>...49