| /freebsd-13.1/sys/dev/vmware/vmci/ |
| H A D | vmci_resource.c | 171 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 D | vmci_datagram.c | 28 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 D | vmci_doorbell.c | 29 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-13.1/sys/sys/ |
| H A D | rman.h | 104 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 D | racct.h | 177 int racct_add(struct proc *p, int resource, uint64_t amount); 181 int racct_set(struct proc *p, int resource, uint64_t amount); 184 void racct_sub(struct proc *p, int resource, uint64_t amount); 186 uint64_t racct_get_limit(struct proc *p, int resource); 187 uint64_t racct_get_available(struct proc *p, int resource); 208 racct_add(struct proc *p, int resource, uint64_t amount) in racct_add() argument 220 racct_add_force(struct proc *p, int resource, uint64_t amount) in racct_add_force() argument 225 racct_set(struct proc *p, int resource, uint64_t amount) in racct_set() argument 237 racct_sub(struct proc *p, int resource, uint64_t amount) in racct_sub() argument 247 racct_get_limit(struct proc *p, int resource) in racct_get_limit() argument [all …]
|
| /freebsd-13.1/share/examples/hast/ |
| H A D | ucarp_up.sh | 35 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 D | ucarp_down.sh | 35 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-13.1/sys/kern/ |
| H A D | kern_racct.c | 524 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() 735 error = racct_set(p, resource, amount); in racct_set_unlocked() 862 KASSERT(RACCT_CAN_DROP(resource), in racct_sub() 903 KASSERT(RACCT_CAN_DROP(resource), in racct_sub_cred() [all …]
|
| H A D | bus_if.m | 45 static struct resource * struct 275 * valid if the resource type is). If a resource was allocated and the 327 struct resource *_r; 349 struct resource *_r; 372 struct resource *_r; 394 struct resource *_r; 416 struct resource *_res; 456 struct resource *_res; 485 struct resource *_irq; 509 struct resource *_irq; [all …]
|
| /freebsd-13.1/contrib/sendmail/libsm/ |
| H A D | memstat.c | 70 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 D | t-memstat.c | 47 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-13.1/contrib/ntp/lib/isc/unix/ |
| H A D | resource.c | 42 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-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | CrashRecoveryContext.h | 160 T *resource; 161 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() argument 162 : CrashRecoveryContextCleanup(context), resource(resource) {} in CrashRecoveryContextCleanupBase() 184 T *resource) in CrashRecoveryContextDestructorCleanup() argument 186 CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDestructorCleanup() 189 this->resource->~T(); in recoverResources() 200 CrashRecoveryContextDeleteCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDeleteCleanup() 202 void recoverResources() override { delete this->resource; } in recoverResources() 211 T *resource) in CrashRecoveryContextReleaseRefCleanup() argument 213 T>(context, resource) {} in CrashRecoveryContextReleaseRefCleanup() [all …]
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/edac/ |
| H A D | apm-xgene-edac.txt | 15 - regmap-csw : Regmap of the CPU switch fabric (CSW) resource. 16 - regmap-mcba : Regmap of the MCB-A (memory bridge) resource. 17 - regmap-mcbb : Regmap of the MCB-B (memory bridge) resource. 18 - regmap-efuse : Regmap of the PMD efuse resource. 19 - regmap-rb : Regmap of the register bus resource. This property 23 - reg : First resource shall be the CPU bus (PCP) resource. 29 - reg : First resource shall be the memory controller unit 30 (MCU) resource. 36 - reg : First resource shall be the PMD resource. 42 - reg : First resource shall be the L3 EDAC resource. [all …]
|
| /freebsd-13.1/sys/arm/arm/ |
| H A D | nexus.c | 88 struct resource *); 92 static int nexus_bind_intr(device_t, device_t, struct resource *, int); 97 struct resource *irq, void *cookie, const char *descr); 99 struct resource *); 101 struct resource *); 219 static struct resource * 223 struct resource *rv; in nexus_alloc_resource() 257 struct resource *res) in nexus_release_resource() 324 nexus_describe_intr(device_t dev, device_t child, struct resource *irq, in nexus_describe_intr() 342 struct resource *r) in nexus_activate_resource() [all …]
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/perf/ |
| H A D | apm-xgene-pmu.txt | 16 - regmap-csw : Regmap of the CPU switch fabric (CSW) resource. 17 - regmap-mcba : Regmap of the MCB-A (memory bridge) resource. 18 - regmap-mcbb : Regmap of the MCB-B (memory bridge) resource. 19 - reg : First resource shall be the CPU bus PMU resource. 24 - reg : First resource shall be the L3C PMU resource. 28 - reg : First resource shall be the IOB PMU resource. 32 - reg : First resource shall be the MCB PMU resource. 37 - reg : First resource shall be the MC PMU resource.
|
| /freebsd-13.1/contrib/ntp/lib/isc/win32/ |
| H A D | resource.c | 38 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-13.1/sys/dev/sound/isa/ |
| H A D | sbc.c | 87 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-13.1/sys/dev/quicc/ |
| H A D | quicc_bfe.h | 41 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-13.1/sys/dev/pci/ |
| H A D | pcib_private.h | 57 struct resource *pcib_host_res_alloc(struct pcib_host_resources *hr, 61 device_t dev, int type, struct resource *r, rman_res_t start, 80 struct resource **res; 96 struct resource *res; 137 struct resource *pcie_irq; 157 struct resource *pci_domain_alloc_bus(int domain, device_t dev, int *rid, 160 struct resource *r, rman_res_t start, rman_res_t end); 162 struct resource *r); 163 struct resource *pcib_alloc_subbus(struct pcib_secbus *bus, device_t child, 186 struct resource *r, rman_res_t start, rman_res_t end); [all …]
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/ata/ |
| H A D | apm-xgene.txt | 9 - reg : First memory resource shall be the AHCI memory 10 resource. 11 Second memory resource shall be the host controller 12 core memory resource. 13 Third memory resource shall be the host controller 14 diagnostic memory resource. 15 4th memory resource shall be the host controller 16 AXI memory resource. 17 5th optional memory resource shall be the host 18 controller MUX memory resource if required.
|
| /freebsd-13.1/sys/dev/exca/ |
| H A D | excavar.h | 110 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-13.1/sys/x86/x86/ |
| H A D | nexus.c | 112 struct resource *irq, void *cookie, 115 struct resource *); 117 struct resource *); 119 struct resource *r, 125 struct resource *); 373 static struct resource * 379 struct resource *rv; in nexus_alloc_resource() 437 struct resource *r) in nexus_activate_resource() 461 struct resource *r) in nexus_deactivate_resource() 558 struct resource *r) in nexus_release_resource() [all …]
|
| /freebsd-13.1/sys/dev/dpaa/ |
| H A D | fman.h | 39 struct resource *mem_res; 40 struct resource *irq_res; 41 struct resource *err_irq_res; 58 struct resource * fman_alloc_resource(device_t bus, device_t child, int type, 61 int type, int rid, struct resource *res); 63 struct resource *res);
|
| /freebsd-13.1/sys/dev/puc/ |
| H A D | puc_bfe.h | 45 struct resource *b_res; 61 struct resource *sc_ires; 90 struct resource *puc_bus_alloc_resource(device_t, device_t, int, int *, 95 int puc_bus_release_resource(device_t, device_t, int, int, struct resource *); 96 int puc_bus_setup_intr(device_t, device_t, struct resource *, int, 98 int puc_bus_teardown_intr(device_t, device_t, struct resource *, void *);
|