Home
last modified time | relevance | path

Searched full:capacity (Results 1 – 25 of 317) sorted by relevance

12345678910>>...13

/openbmc/qemu/util/
H A Dfifo8.c25 void fifo8_create(Fifo8 *fifo, uint32_t capacity) in fifo8_create() argument
27 fifo->data = g_new(uint8_t, capacity); in fifo8_create()
28 fifo->capacity = capacity; in fifo8_create()
39 assert(fifo->num < fifo->capacity); in fifo8_push()
40 fifo->data[(fifo->head + fifo->num) % fifo->capacity] = data; in fifo8_push()
48 assert(fifo->num + num <= fifo->capacity); in fifo8_push_all()
50 start = (fifo->head + fifo->num) % fifo->capacity; in fifo8_push_all()
52 if (start + num <= fifo->capacity) { in fifo8_push_all()
55 avail = fifo->capacity - start; in fifo8_push_all()
69 fifo->head %= fifo->capacity; in fifo8_pop()
[all …]
H A Dbuffer.c42 size_t old = buffer->capacity; in buffer_adj_size()
43 buffer->capacity = buffer_req_size(buffer, len); in buffer_adj_size()
44 buffer->buffer = g_realloc(buffer->buffer, buffer->capacity); in buffer_adj_size()
46 old, buffer->capacity); in buffer_adj_size()
49 * to current capacity if it is larger than the average. */ in buffer_adj_size()
51 buffer->capacity << BUFFER_AVG_SIZE_SHIFT); in buffer_adj_size()
83 if (new < buffer->capacity >> 3 && in buffer_shrink()
93 if ((buffer->capacity - buffer->offset) < len) { in buffer_reserve()
116 trace_buffer_free(buffer->name ?: "unnamed", buffer->capacity); in buffer_free()
120 buffer->capacity = 0; in buffer_free()
[all …]
/openbmc/qemu/io/
H A Dchannel-buffer.c29 qio_channel_buffer_new(size_t capacity) in qio_channel_buffer_new() argument
35 if (capacity) { in qio_channel_buffer_new()
36 ioc->data = g_new0(uint8_t, capacity); in qio_channel_buffer_new()
37 ioc->capacity = capacity; in qio_channel_buffer_new()
48 ioc->capacity = ioc->usage = ioc->offset = 0; in qio_channel_buffer_finalize()
97 if ((bioc->offset + towrite) > bioc->capacity) { in qio_channel_buffer_writev()
98 bioc->capacity = bioc->offset + towrite; in qio_channel_buffer_writev()
99 bioc->data = g_realloc(bioc->data, bioc->capacity); in qio_channel_buffer_writev()
147 bioc->capacity = bioc->usage = bioc->offset = 0; in qio_channel_buffer_close()
/openbmc/qemu/qapi/
H A Dcxl.json373 # A single dynamic capacity extent. This is a contiguous allocation
375 # Capacity Region on a CXL Type 3 Device.
395 # capacity, as defined in Compute Express Link (CXL) Specification,
399 # capacity and is free to do this using any combination of
403 # memory capacity but must do so as a single contiguous
410 # @enable-shared-access: Capacity has already been allocated to a
413 # the capacity with the specified tag available to an additional
414 # host. Capacity is implicit as it matches that already
433 # @cxl-add-dynamic-capacity:
435 # Initiate adding dynamic capacity extents to a host. This simulates
[all …]
/openbmc/qemu/include/io/
H A Dchannel-buffer.h41 size_t capacity; /* Total allocated memory */ member
50 * @capacity: the initial buffer capacity to allocate
57 qio_channel_buffer_new(size_t capacity);
/openbmc/bmcweb/redfish-core/include/generated/enums/
H A Dlicense.hpp20 Capacity, enumerator
40 {AuthorizationScope::Capacity, "Capacity"},
H A Dphysical_context.hpp76 Capacity, enumerator
150 {LogicalContext::Capacity, "Capacity"},
/openbmc/qemu/tests/qtest/
H A Dvirtio-blk-test.c118 uint64_t capacity; in test_basic() local
133 capacity = qvirtio_config_readq(dev, 0); in test_basic()
134 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in test_basic()
356 uint64_t capacity; in indirect() local
370 capacity = qvirtio_config_readq(dev, 0); in indirect()
371 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in indirect()
439 uint64_t capacity; in config() local
448 capacity = qvirtio_config_readq(dev, 0); in config()
449 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in config()
459 capacity = qvirtio_config_readq(dev, 0); in config()
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/
H A DMemoryRegion.v1_0_3.json36 "description": "Definition of memory chunk providing capacity for memory region.",
37 …n": "This type shall contain the definition of a memory chunk providing capacity for memory region…
55 … "description": "The link to the memory chunk providing capacity to the memory region.",
56 …shall contain a link to a resource of type `MemoryChunks` that provides capacity to the memory reg…
72 … of a memory extent identifying an available address range in the dynamic capacity memory region.",
197 … "description": "The set of memory chunks providing capacity for this memory region.",
208 …ption": "This property shall contain the set of memory chunks providing capacity for this memory r…
223 …emory extents defining address ranges available for an access in dynamic capacity memory regions.",
271 …"description": "An indication of whether the capacity released from this memory region will be san…
272 …roperty shall indicate whether the device has been configured such that capacity released from thi…
H A DPCIeDevice.v1_19_0.json108 … "description": "The CXL dynamic capacity device (DCD) information for this CXL device.",
109 …"longDescription": "This property shall contain the CXL dynamic capacity device (DCD) information …
195 "description": "The CXL dynamic capacity device (DCD) information for a CXL device.",
196 …"longDescription": "This type shall contain the CXL dynamic capacity device (DCD) information for …
213 …tion": "The set of selection policies supported by the CXL device when dynamic capacity is added.",
224 …the CXL Specification-defined dynamic capacity policies that are supported by this CXL device when…
230 …"description": "The maximum number of dynamic capacity memory regions available per host from this…
231 …escription": "This property shall contain the maximum number of dynamic capacity memory regions av…
266 …ion": "The set of removal policies supported by the CXL device when dynamic capacity is released.",
277 …the CXL Specification-defined dynamic capacity policies that are supported by this CXL device when…
[all …]
H A DReservoir.v1_0_2.json98 "description": "The capacity of the reservoir (L).",
99 … "longDescription": "This property shall contain the capacity of the reservoir in liter units.",
137 "description": "The fluid capacity filled (percent).",
139 …"longDescription": "This property shall contain the amount of fluid capacity, in percent units, fi…
291 "Reserve": "A reservoir providing reserve fluid capacity."
/openbmc/u-boot/board/freescale/common/
H A Dsdhc_boot.c46 * In High Capacity SD Cards (> 2 GBytes), the 32-bit source address and in mmc_get_env_addr()
49 * Capacity specification. in mmc_get_env_addr()
59 if ((tmp + CONFIG_ENV_SIZE > mmc->capacity) || in mmc_get_env_addr()
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/
H A DPCIeDevice.v1_19_0.json108 … "description": "The CXL dynamic capacity device (DCD) information for this CXL device.",
109 …"longDescription": "This property shall contain the CXL dynamic capacity device (DCD) information …
195 "description": "The CXL dynamic capacity device (DCD) information for a CXL device.",
196 …"longDescription": "This type shall contain the CXL dynamic capacity device (DCD) information for …
213 …tion": "The set of selection policies supported by the CXL device when dynamic capacity is added.",
224 …the CXL Specification-defined dynamic capacity policies that are supported by this CXL device when…
230 …"description": "The maximum number of dynamic capacity memory regions available per host from this…
231 …escription": "This property shall contain the maximum number of dynamic capacity memory regions av…
266 …ion": "The set of removal policies supported by the CXL device when dynamic capacity is released.",
277 …the CXL Specification-defined dynamic capacity policies that are supported by this CXL device when…
[all …]
H A DPhysicalContext.json8 "Capacity",
16 "Capacity": "Capacity-related logical context.", string
/openbmc/qemu/include/qemu/
H A Dbuffer.h31 * array, with separate tracking of capacity and usage. This
37 size_t capacity; member
58 * Try to shrink the buffer. Checks current buffer capacity and size
59 * and reduces capacity in case only a fraction of the buffer is
H A Dfifo32.h27 * @capacity: capacity of the newly created FIFO expressed in 32 bit words
33 static inline void fifo32_create(Fifo32 *fifo, uint32_t capacity) in fifo32_create() argument
35 fifo8_create(&fifo->fifo, capacity * sizeof(uint32_t)); in fifo32_create()
H A Dfifo8.h8 uint32_t capacity; member
16 * @capacity: capacity of the newly created FIFO
18 * Create a FIFO of the specified capacity. Clients should call fifo8_destroy()
21 void fifo8_create(Fifo8 *fifo, uint32_t capacity);
/openbmc/openbmc/meta-openembedded/meta-gnome/recipes-support/ibus/ibus/
H A D0002-util-IMdkit-Fix-incompatible-pointer-types-in-Transp.patch97 if (++offset_cache->size > offset_cache->capacity) {
98 - offset_cache->capacity *= OFFSET_CACHE_GROWTH_FACTOR;
101 offset_cache->capacity * sizeof (Xi18nAtomOffsetPair));
103 + offset_cache->capacity *= OFFSET_CACHE_GROWTH_FACTOR;
/openbmc/phosphor-dbus-interfaces/yaml/org/freedesktop/UPower/
H A DDevice.interface.yaml243 - name: Capacity
247 "The capacity of the power source expressed as a percentage between 0
248 and 100. The capacity of the battery will reduce with age. A capacity
252 capacity and in this case the capacity property will be unset. This
/openbmc/openpower-vpd-parser/vpd-manager/src/
H A Dddimm_parser.cpp111 "Capacity calculation failed for channels per DIMM. DDIMM Byte " in getDdr5BasedDdimmSize()
141 "Capacity calculation failed for bus width per channel. DDIMM " in getDdr5BasedDdimmSize()
158 "Capacity calculation failed for die per package. DDIMM Byte 4 " in getDdr5BasedDdimmSize()
174 "Capacity calculation failed for SDRAM Density per Die. DDIMM " in getDdr5BasedDdimmSize()
209 "Capacity calculation failed for dram width DDIMM Byte 6 value " in getDdr5BasedDdimmSize()
238 // Calculate SDRAM capacity in getDdr4BasedDdimmSize()
246 "Bad data in VPD byte 4. Can't calculate SDRAM capacity and so " in getDdr4BasedDdimmSize()
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/
H A DMemoryRegion_v1.xml118 …<Annotation Term="OData.Description" String="An indication of whether the capacity released from t…
119 …roperty shall indicate whether the device has been configured such that capacity released from thi…
128 …mory extents defining address ranges available for an access in dynamic capacity memory regions."/>
131 …<Annotation Term="OData.Description" String="The set of memory chunks providing capacity for this …
132 … String="This property shall contain the set of memory chunks providing capacity for this memory r…
147 …of a memory extent identifying an available address range in the dynamic capacity memory region."/>
174 …<Annotation Term="OData.Description" String="Definition of memory chunk providing capacity for mem…
175 …ing="This type shall contain the definition of a memory chunk providing capacity for memory region…
184 …Term="OData.Description" String="The link to the memory chunk providing capacity to the memory reg…
185 …shall contain a link to a resource of type `MemoryChunks` that provides capacity to the memory reg…
/openbmc/u-boot/board/freescale/p1_p2_rdb_pc/
H A Dddr.c23 .capacity = 1073741824u,
54 .capacity = 1073741824u,
85 .capacity = 2147483648u,
122 .capacity = 1073741824u,
160 .capacity = 1073741824u,
/openbmc/bmcweb/include/
H A Dcredential_pipe.hpp43 explicit_bzero(user.data(), user.capacity()); in ~CredentialsPipe()
44 explicit_bzero(pass.data(), pass.capacity()); in ~CredentialsPipe()
/openbmc/u-boot/drivers/scsi/
H A Dscsi.c360 lbaint_t *capacity, unsigned long *blksz) in scsi_read_capacity() argument
362 *capacity = 0; in scsi_read_capacity()
374 *capacity = ((lbaint_t)pccb->pdata[0] << 24) | in scsi_read_capacity()
379 if (*capacity != 0xffffffff) { in scsi_read_capacity()
380 /* Read capacity (10) was sufficient for this drive. */ in scsi_read_capacity()
388 /* Read capacity (10) was insufficient. Use read capacity (16). */ in scsi_read_capacity()
399 *capacity = ((uint64_t)pccb->pdata[0] << 56) | in scsi_read_capacity()
493 lbaint_t capacity; in scsi_detect_dev() local
541 if (scsi_read_capacity(dev, pccb, &capacity, &blksz)) { in scsi_detect_dev()
545 dev_desc->lba = capacity; in scsi_detect_dev()
/openbmc/qemu/block/export/
H A Dvduse-blk.c210 config.capacity = in vduse_blk_resize()
212 vduse_dev_update_config(vblk_exp->dev, sizeof(config.capacity), in vduse_blk_resize()
213 offsetof(struct virtio_blk_config, capacity), in vduse_blk_resize()
214 (char *)&config.capacity); in vduse_blk_resize()
311 config.capacity = in vduse_blk_exp_create()

12345678910>>...13