| /openbmc/qemu/util/ |
| H A D | fifo8.c | 25 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 D | buffer.c | 42 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() 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() 148 to->capacity = from->capacity; in buffer_move_empty() [all …]
|
| /openbmc/qemu/io/ |
| H A D | channel-buffer.c | 29 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/tests/qtest/ |
| H A D | virtio-blk-test.c | 118 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 …]
|
| H A D | vhost-user-blk-test.c | 220 uint64_t capacity; in test_basic() local 235 capacity = qvirtio_config_readq(dev, 0); in test_basic() 236 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in test_basic() 465 uint64_t capacity; in indirect() local 479 capacity = qvirtio_config_readq(dev, 0); in indirect() 480 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in indirect() 550 uint64_t capacity; in idx() local 575 capacity = qvirtio_config_readq(dev, 0); in idx() 576 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in idx()
|
| /openbmc/qemu/include/io/ |
| H A D | channel-buffer.h | 41 size_t capacity; /* Total allocated memory */ member 57 qio_channel_buffer_new(size_t capacity);
|
| /openbmc/u-boot/board/freescale/p1_p2_rdb_pc/ |
| H A D | ddr.c | 23 .capacity = 1073741824u, 54 .capacity = 1073741824u, 85 .capacity = 2147483648u, 122 .capacity = 1073741824u, 160 .capacity = 1073741824u,
|
| /openbmc/bmcweb/include/ |
| H A D | credential_pipe.hpp | 43 explicit_bzero(user.data(), user.capacity()); in ~CredentialsPipe() 44 explicit_bzero(pass.data(), pass.capacity()); in ~CredentialsPipe()
|
| /openbmc/qemu/include/qemu/ |
| H A D | fifo32.h | 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 D | fifo8.h | 8 uint32_t capacity; member 21 void fifo8_create(Fifo8 *fifo, uint32_t capacity);
|
| H A D | buffer.h | 37 size_t capacity; member
|
| /openbmc/openbmc/meta-openembedded/meta-gnome/recipes-support/ibus/ibus/ |
| H A D | 0002-util-IMdkit-Fix-incompatible-pointer-types-in-Transp.patch | 97 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/bmcweb/features/kvm/ |
| H A D | kvm_websocket.hpp | 57 if (data.length() > inputBuffer.capacity()) in onMessage() 81 std::size_t bytes = outputBuffer.capacity() - outputBuffer.size(); in doRead() 85 outputBuffer.prepare(outputBuffer.capacity() - outputBuffer.size()), in doRead()
|
| /openbmc/u-boot/drivers/scsi/ |
| H A D | scsi.c | 360 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() 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/u-boot/include/power/ |
| H A D | battery.h | 14 unsigned int capacity; member
|
| /openbmc/qemu/block/export/ |
| H A D | vduse-blk.c | 210 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()
|
| /openbmc/phosphor-mboxd/vpnor/ |
| H A D | pnor_partition_table.hpp | 121 size_t capacity() const in capacity() function in openpower::virtual_pnor::partition::Table 132 return capacity() / blockSize; in blocks()
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-crypto-block.c | 195 g_assert_cmpint(offset + buflen, <=, header->capacity); in test_block_read_func() 210 g_assert_cmpint(header->capacity, ==, 0); in test_block_init_func() 227 g_assert_cmpint(buflen + offset, <=, header->capacity); in test_block_write_func() 290 g_assert_cmpint(header.capacity, >, 0); in test_block() 292 g_assert_cmpint(header.capacity, ==, 0); in test_block()
|
| H A D | crypto-tls-x509-helpers.c | 478 size_t capacity = 1024, offset = 0; in test_tls_write_cert_chain() local 479 char *buffer = g_new0(char, capacity); in test_tls_write_cert_chain() 483 size_t len = capacity - offset; in test_tls_write_cert_chain() 490 capacity = offset + len; in test_tls_write_cert_chain()
|
| /openbmc/hiomapd/vpnor/ |
| H A D | table.hpp | 131 size_t capacity() const in capacity() function in openpower::virtual_pnor::partition::Table 142 return capacity() / blockSize; in blocks()
|
| /openbmc/qemu/ui/ |
| H A D | vnc-enc-zlib.c | 107 zstream->avail_out = vs->output.capacity - vs->output.offset; in vnc_zlib_stop() 117 vs->output.offset = vs->output.capacity - zstream->avail_out; in vnc_zlib_stop()
|
| /openbmc/u-boot/board/freescale/b4860qds/ |
| H A D | ddr.c | 20 .capacity = 4294967296u, 248 pinfo->dimm_params[i][j].capacity; in step_assign_addresses()
|
| /openbmc/u-boot/board/freescale/common/ |
| H A D | sdhc_boot.c | 59 if ((tmp + CONFIG_ENV_SIZE > mmc->capacity) || in mmc_get_env_addr()
|
| /openbmc/u-boot/include/ |
| H A D | fsl_ddr_dimm_params.h | 23 unsigned long long capacity; member
|
| /openbmc/u-boot/drivers/virtio/ |
| H A D | virtio_blk.h | 37 __u64 capacity; member
|