Home
last modified time | relevance | path

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

12345678910>>...46

/freebsd/sys/dev/vmware/vmci/
H A Dvmci_resource.c20 static void vmci_resource_do_remove(struct vmci_resource *resource);
163 vmci_resource_add(struct vmci_resource *resource, in vmci_resource_add() argument
169 ASSERT(resource); in vmci_resource_add()
174 resource_handle.resource); in vmci_resource_add()
178 vmci_hashtable_init_entry(&resource->hash_entry, resource_handle); in vmci_resource_add()
179 resource->type = resource_type; in vmci_resource_add()
180 resource->container_free_cb = container_free_cb; in vmci_resource_add()
181 resource->container_object = container_object; in vmci_resource_add()
185 &resource->hash_entry); in vmci_resource_add()
215 struct vmci_resource *resource; in vmci_resource_remove() local
[all …]
H A Dvmci_datagram.c25 struct vmci_resource resource; member
42 static void datagram_free_cb(void *resource);
105 vmci_resource_release(&entry->resource); in datagram_release_cb()
184 result = vmci_resource_add(&entry->resource, in datagram_create_hnd()
188 "(handle=0x%x:0x%x).\n", handle.context, handle.resource); in datagram_create_hnd()
294 struct vmci_resource *resource; in vmci_datagram_destroy_handle() local
296 resource = vmci_resource_get(handle, in vmci_datagram_destroy_handle()
298 if (resource == NULL) { in vmci_datagram_destroy_handle()
300 "(handle=0x%x:0x%x).\n", handle.context, handle.resource); in vmci_datagram_destroy_handle()
303 entry = RESOURCE_CONTAINER(resource, struct datagram_entry, resource); in vmci_datagram_destroy_handle()
[all …]
H A Dvmci_doorbell.c26 struct vmci_resource resource; member
177 vmci_resource_release(&entry->resource); in vmci_doorbell_release_cb()
212 struct vmci_resource *resource; in vmci_doorbell_get_priv_flags() local
214 resource = vmci_resource_get(handle, in vmci_doorbell_get_priv_flags()
216 if (resource == NULL) in vmci_doorbell_get_priv_flags()
219 resource, struct vmci_doorbell_entry, resource); in vmci_doorbell_get_priv_flags()
221 vmci_resource_release(resource); in vmci_doorbell_get_priv_flags()
289 vmci_resource_hold(&entry->resource); in vmci_doorbell_index_table_add()
383 vmci_resource_release(&entry->resource); in vmci_doorbell_index_table_remove()
528 if (VMCI_INVALID_ID == handle->resource) { in vmci_doorbell_create()
[all …]
/freebsd/sys/sys/
H A Drman.h102 struct resource { struct
124 int rman_activate_resource(struct resource *r);
125 int rman_adjust_resource(struct resource *r, rman_res_t start, rman_res_t end);
127 bus_space_handle_t rman_get_bushandle(const struct resource *);
128 bus_space_tag_t rman_get_bustag(const struct resource *);
129 rman_res_t rman_get_end(const struct resource *);
130 device_t rman_get_device(const struct resource *);
131 u_int rman_get_flags(const struct resource *);
132 void *rman_get_irq_cookie(const struct resource *);
133 void rman_get_mapping(const struct resource *, struct resource_map *);
[all …]
H A Dracct.h174 int racct_add(struct proc *p, int resource, uint64_t amount);
175 void racct_add_cred(struct ucred *cred, int resource, uint64_t amount);
176 void racct_add_force(struct proc *p, int resource, uint64_t amount);
178 int racct_set(struct proc *p, int resource, uint64_t amount);
179 int racct_set_unlocked(struct proc *p, int resource, uint64_t amount);
180 void racct_set_force(struct proc *p, int resource, uint64_t amount);
181 void racct_sub(struct proc *p, int resource, uint64_t amount);
182 void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount);
183 uint64_t racct_get_limit(struct proc *p, int resource);
184 uint64_t racct_get_available(struct proc *p, int resource);
[all …]
H A Dbus.h321 struct resource;
347 int resource_validate_map_request(struct resource *r,
364 struct resource *res; /**< @brief the real resource when allocated */
392 struct resource *
400 struct resource *res);
404 struct resource *
432 struct resource *r);
437 struct resource *r, rman_res_t start,
439 struct resource *
447 struct resource *irq, int cpu);
[all …]
/freebsd/sys/kern/
H A Dkern_racct.c95 static void racct_sub_cred_locked(struct ucred *cred, int resource,
97 static void racct_add_cred_locked(struct ucred *cred, int resource,
397 * Update resource usage in dest. in racct_add_racct()
401 ("%s: resource %d propagation meltdown: dest < 0", in racct_add_racct()
404 ("%s: resource %d propagation meltdown: src < 0", in racct_add_racct()
419 * Update resource usage in dest. in racct_sub_racct()
424 ("%s: resource %d propagation meltdown: dest < 0", in racct_sub_racct()
427 ("%s: resource %d propagation meltdown: src < 0", in racct_sub_racct()
430 ("%s: resource %d propagation meltdown: src > dest", in racct_sub_racct()
478 "%ju allocated for resource in racct_destroy_locked()
509 racct_adjust_resource(struct racct * racct,int resource,int64_t amount) racct_adjust_resource() argument
539 racct_add_locked(struct proc * p,int resource,uint64_t amount,int force) racct_add_locked() argument
570 racct_add(struct proc * p,int resource,uint64_t amount) racct_add() argument
590 racct_add_force(struct proc * p,int resource,uint64_t amount) racct_add_force() argument
604 racct_add_cred_locked(struct ucred * cred,int resource,uint64_t amount) racct_add_cred_locked() argument
622 racct_add_cred(struct ucred * cred,int resource,uint64_t amount) racct_add_cred() argument
660 racct_set_locked(struct proc * p,int resource,uint64_t amount,int force) racct_set_locked() argument
722 racct_set_unlocked(struct proc * p,int resource,uint64_t amount) racct_set_unlocked() argument
734 racct_set(struct proc * p,int resource,uint64_t amount) racct_set() argument
750 racct_set_force(struct proc * p,int resource,uint64_t amount) racct_set_force() argument
770 racct_get_limit(struct proc * p,int resource) racct_get_limit() argument
796 racct_get_available(struct proc * p,int resource) racct_get_available() argument
843 racct_sub(struct proc * p,int resource,uint64_t amount) racct_sub() argument
870 racct_sub_cred_locked(struct ucred * cred,int resource,uint64_t amount) racct_sub_cred_locked() argument
887 racct_sub_cred(struct ucred * cred,int resource,uint64_t amount) racct_sub_cred() argument
[all...]
H A Dbus_if.m44 static struct resource * struct
265 * @brief Allocate a system resource
268 * The types are defined in <machine/resource.h>; the meaning of the
269 * resource-ID field varies from bus to bus (but @p *rid == 0 is always
270 * valid if the resource type is). If a resource was allocated and the
273 * BUS_ACTIVATE_RESOURCE() when it actually uses the resource.
277 * @param _type the type of resource to allocate
278 * @param _rid a pointer to the resource identifier
279 * @param _start hint at the start of the resource range - pass
281 * @param _end hint at the end of the resource range - pass
[all …]
/freebsd/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);
273 if (strncmp(buf, resource, l) == 0 && buf[l] == ':')
[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/sys/dev/qat/qat_common/
H A Dadf_gen2_hw_data.c13 read_csr_ring_head(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_head()
19 write_csr_ring_head(struct resource *csr_base_addr, in write_csr_ring_head()
28 read_csr_ring_tail(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_tail()
34 write_csr_ring_tail(struct resource *csr_base_addr, in write_csr_ring_tail()
43 read_csr_e_stat(struct resource *csr_base_addr, u32 bank) in read_csr_e_stat()
49 write_csr_ring_config(struct resource *csr_base_addr, in write_csr_ring_config()
58 read_csr_ring_base(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_base()
64 write_csr_ring_base(struct resource *csr_base_addr, in write_csr_ring_base()
73 write_csr_int_flag(struct resource *csr_base_addr, u32 bank, u32 value) in write_csr_int_flag()
79 write_csr_int_srcsel(struct resource *csr_base_addr, u32 bank) in write_csr_int_srcsel()
[all …]
H A Dadf_gen4vf_hw_csr_data.c13 read_csr_ring_head(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_head()
19 write_csr_ring_head(struct resource *csr_base_addr, in write_csr_ring_head()
28 read_csr_ring_tail(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_tail()
34 write_csr_ring_tail(struct resource *csr_base_addr, in write_csr_ring_tail()
43 read_csr_e_stat(struct resource *csr_base_addr, u32 bank) in read_csr_e_stat()
49 write_csr_ring_config(struct resource *csr_base_addr, in write_csr_ring_config()
58 read_csr_ring_base(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_base()
64 write_csr_ring_base(struct resource *csr_base_addr, in write_csr_ring_base()
73 write_csr_int_flag(struct resource *csr_base_addr, u32 bank, u32 value) in write_csr_int_flag()
79 write_csr_int_srcsel(struct resource *csr_base_addr, u32 bank) in write_csr_int_srcsel()
[all …]
H A Dadf_gen4_hw_data.c17 read_csr_ring_head(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_head()
23 write_csr_ring_head(struct resource *csr_base_addr, in write_csr_ring_head()
32 read_csr_ring_tail(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_tail()
38 write_csr_ring_tail(struct resource *csr_base_addr, in write_csr_ring_tail()
47 read_csr_e_stat(struct resource *csr_base_addr, u32 bank) in read_csr_e_stat()
53 write_csr_ring_config(struct resource *csr_base_addr, in write_csr_ring_config()
62 read_csr_ring_base(struct resource *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_base()
68 write_csr_ring_base(struct resource *csr_base_addr, in write_csr_ring_base()
77 write_csr_int_flag(struct resource *csr_base_addr, u32 bank, u32 value) in write_csr_int_flag()
83 write_csr_int_srcsel(struct resource *csr_base_addr, u32 bank) in write_csr_int_srcsel()
[all …]
H A Dadf_dev_err.c31 adf_get_intstatsssm(struct resource *pmisc_bar_addr, size_t dev) in adf_get_intstatsssm()
37 adf_get_pperr(struct resource *pmisc_bar_addr, size_t dev) in adf_get_pperr()
43 adf_get_pperrid(struct resource *pmisc_bar_addr, size_t dev) in adf_get_pperrid()
49 adf_get_uerrssmsh(struct resource *pmisc_bar_addr, size_t dev) in adf_get_uerrssmsh()
55 adf_get_uerrssmshad(struct resource *pmisc_bar_addr, size_t dev) in adf_get_uerrssmshad()
61 adf_get_uerrssmmmp0(struct resource *pmisc_bar_addr, size_t dev) in adf_get_uerrssmmmp0()
67 adf_get_uerrssmmmp1(struct resource *pmisc_bar_addr, size_t dev) in adf_get_uerrssmmmp1()
73 adf_get_uerrssmmmp2(struct resource *pmisc_bar_addr, size_t dev) in adf_get_uerrssmmmp2()
79 adf_get_uerrssmmmp3(struct resource *pmisc_bar_addr, size_t dev) in adf_get_uerrssmmmp3()
85 adf_get_uerrssmmmp4(struct resource *pmisc_bar_addr, size_t dev) in adf_get_uerrssmmmp4()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DCrashRecoveryContext.h162 T *resource;
163 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() argument
164 : CrashRecoveryContextCleanup(context), resource(resource) {} in CrashRecoveryContextCleanupBase()
186 T *resource) in CrashRecoveryContextDestructorCleanup() argument
188 CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDestructorCleanup()
191 this->resource->~T(); in recoverResources()
200 CrashRecoveryContextDeleteCleanup(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextDeleteCleanup() argument
202 CrashRecoveryContextDeleteCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDeleteCleanup()
204 void recoverResources() override { delete this->resource; } in recoverResources()
213 T *resource) in CrashRecoveryContextReleaseRefCleanup() argument
[all …]
/freebsd/sys/contrib/device-tree/Bindings/edac/
H A Dapm-xgene-edac.txt15 - 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/sys/contrib/device-tree/Bindings/perf/
H A Dapm-xgene-pmu.txt16 - 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/sys/dev/pci/
H A Dpcib_private.h54 struct resource *pcib_host_res_alloc(struct pcib_host_resources *hr,
58 device_t dev, struct resource *r, rman_res_t start,
75 struct resource **res;
89 struct resource *res;
120 struct resource *pcie_mem;
121 struct resource *pcie_irq;
141 struct resource *pci_domain_alloc_bus(int domain, device_t dev, int *rid,
144 struct resource *r, rman_res_t start, rman_res_t end);
146 struct resource *r);
148 struct resource *r);
[all …]
H A Dpci_private.h43 struct resource *sc_bus;
149 struct resource *pci_reserve_map(device_t dev, device_t child, int type,
153 struct resource *pci_alloc_multi_resource(device_t dev, device_t child,
157 struct resource *pci_vf_alloc_mem_resource(device_t dev, device_t child,
161 struct resource *r);
163 struct resource *r);
165 struct resource *r);
167 struct resource *r, rman_res_t start, rman_res_t end);
169 struct resource *r, struct resource_map_request *argsp,
172 struct resource *r, struct resource_map *map);
/freebsd/sys/dev/quicc/
H A Dquicc_bfe.h39 struct resource *sc_rres; /* Register resource. */
43 struct resource *sc_ires; /* Interrupt resource. */
62 struct resource *quicc_bus_alloc_resource(device_t, device_t, int, int *,
67 int quicc_bus_release_resource(device_t, device_t, struct resource *);
68 int quicc_bus_setup_intr(device_t, device_t, struct resource *, int,
70 int quicc_bus_teardown_intr(device_t, device_t, struct resource *, void *);
/freebsd/sys/contrib/device-tree/Bindings/ata/
H A Dapm-xgene.txt9 - 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/sys/dev/qat/include/common/
H A Dadf_accel_devices.h112 struct resource *virt_addr;
255 u32 (*read_csr_ring_head)(struct resource *csr_base_addr,
258 void (*write_csr_ring_head)(struct resource *csr_base_addr,
262 u32 (*read_csr_ring_tail)(struct resource *csr_base_addr,
265 void (*write_csr_ring_tail)(struct resource *csr_base_addr,
269 u32 (*read_csr_e_stat)(struct resource *csr_base_addr, u32 bank);
270 void (*write_csr_ring_config)(struct resource *csr_base_addr,
274 bus_addr_t (*read_csr_ring_base)(struct resource *csr_base_addr,
277 void (*write_csr_ring_base)(struct resource *csr_base_addr,
281 void (*write_csr_int_flag)(struct resource *csr_base_addr,
[all …]
/freebsd/sys/dev/exca/
H A Dexcavar.h109 int exca_io_map(struct exca_softc *sc, int width, struct resource *r);
110 int exca_io_unmap_res(struct exca_softc *sc, struct resource *res);
112 int exca_mem_map(struct exca_softc *sc, int kind, struct resource *res);
113 int exca_mem_set_flags(struct exca_softc *sc, struct resource *res,
115 int exca_mem_set_offset(struct exca_softc *sc, struct resource *res,
117 int exca_mem_unmap_res(struct exca_softc *sc, struct resource *res);
125 struct resource *res);
127 struct resource *res);
/freebsd/sys/dev/pccbb/
H A Dpccbbvar.h43 struct resource *res;
58 struct resource *base_res;
59 struct resource *irq_res;
111 struct resource *r);
112 struct resource *cbb_alloc_resource(device_t brdev, device_t child,
118 struct resource *r);
133 struct resource *r);
134 int cbb_setup_intr(device_t dev, device_t child, struct resource *irq,
137 int cbb_teardown_intr(device_t dev, device_t child, struct resource *irq,
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dioport.h35 (struct resource) { \
40 struct resource { struct
46 resource_size(const struct resource *r) in resource_size()
52 resource_contains(struct resource *a, struct resource *b) in resource_contains()

12345678910>>...46