/linux-6.12.1/drivers/acpi/x86/ |
D | apple.c | 33 void *free_space; in acpi_extract_apple_properties() local 104 free_space = &newprops[1 + 3 * numvalid]; in acpi_extract_apple_properties() 118 newprops[k].string.pointer = free_space; in acpi_extract_apple_properties() 119 memcpy(free_space, key->string.pointer, key->string.length); in acpi_extract_apple_properties() 120 free_space += key->string.length + 1; in acpi_extract_apple_properties() 127 newprops[v].string.pointer = free_space; in acpi_extract_apple_properties() 128 memcpy(free_space, val->string.pointer, in acpi_extract_apple_properties() 130 free_space += val->string.length + 1; in acpi_extract_apple_properties() 133 newprops[v].buffer.pointer = free_space; in acpi_extract_apple_properties() 134 memcpy(free_space, val->buffer.pointer, in acpi_extract_apple_properties() [all …]
|
/linux-6.12.1/include/linux/ |
D | vmw_vmci_defs.h | 919 u64 free_space; in vmci_q_header_free_space() local 933 free_space = produce_q_size - (tail - head) - 1; in vmci_q_header_free_space() 935 free_space = head - tail - 1; in vmci_q_header_free_space() 937 return free_space; in vmci_q_header_free_space() 954 s64 free_space; in vmci_q_header_buf_ready() local 956 free_space = vmci_q_header_free_space(consume_q_header, in vmci_q_header_buf_ready() 958 if (free_space < VMCI_SUCCESS) in vmci_q_header_buf_ready() 959 return free_space; in vmci_q_header_buf_ready() 961 return consume_q_size - free_space - 1; in vmci_q_header_buf_ready()
|
/linux-6.12.1/drivers/md/dm-vdo/ |
D | packer.c | 106 if (active_bin->free_space > bin->free_space) { in insert_in_sorted_list() 128 bin->free_space = VDO_COMPRESSED_BLOCK_DATA_SIZE; in make_bin() 354 bin->free_space = VDO_COMPRESSED_BLOCK_DATA_SIZE; in remove_from_bin() 503 if (bin->free_space < data_vio->compression.size) in add_data_vio_to_packer_bin() 507 bin->free_space -= data_vio->compression.size; in add_data_vio_to_packer_bin() 511 (bin->free_space == 0)) in add_data_vio_to_packer_bin() 534 if (bin->free_space >= data_vio->compression.size) in select_bin() 548 (VDO_COMPRESSED_BLOCK_DATA_SIZE - fullest_bin->free_space)) in select_bin() 687 bin->free_space += lock_holder->compression.size; in vdo_remove_lock_holder_from_packer() 752 (canceled ? "Canceled" : ""), bin->slots_used, bin->free_space); in dump_packer_bin()
|
D | packer.h | 69 size_t free_space; member
|
/linux-6.12.1/drivers/gpu/drm/etnaviv/ |
D | etnaviv_cmdbuf.c | 29 int free_space; member 99 suballoc->free_space = 0; in etnaviv_cmdbuf_init() 102 suballoc->free_space, in etnaviv_cmdbuf_init() 131 suballoc->free_space = 1; in etnaviv_cmdbuf_free()
|
/linux-6.12.1/fs/reiserfs/ |
D | lbalance.c | 315 int nr, free_space; in leaf_copy_items_entirely() local 339 free_space = blkh_free_space(blkh); in leaf_copy_items_entirely() 360 free_space -= (IH_SIZE * cpy_num); in leaf_copy_items_entirely() 361 set_blkh_free_space(blkh, free_space); in leaf_copy_items_entirely() 375 RFALSE(free_space < j - last_inserted_loc, in leaf_copy_items_entirely() 377 free_space, j - last_inserted_loc); in leaf_copy_items_entirely() 390 set_blkh_free_space(blkh, free_space - (j - last_inserted_loc)); in leaf_copy_items_entirely() 907 int nr, free_space; in leaf_insert_into_buf() local 916 free_space = blkh_free_space(blkh); in leaf_insert_into_buf() 919 RFALSE(free_space < ih_item_len(inserted_item_ih) + IH_SIZE, in leaf_insert_into_buf() [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_txrx_lib.c | 355 u32 free_space; in __ice_xmit_xdp_ring() local 358 free_space = ICE_DESC_UNUSED(xdp_ring); in __ice_xmit_xdp_ring() 359 if (free_space < ICE_RING_QUARTER(xdp_ring)) in __ice_xmit_xdp_ring() 360 free_space += ice_clean_xdp_irq(xdp_ring); in __ice_xmit_xdp_ring() 362 if (unlikely(!free_space)) in __ice_xmit_xdp_ring() 368 if (free_space < nr_frags + 1) in __ice_xmit_xdp_ring()
|
D | ice_xsk.c | 688 u32 free_space; in ice_xmit_xdp_tx_zc() local 691 free_space = ICE_DESC_UNUSED(xdp_ring); in ice_xmit_xdp_tx_zc() 692 if (free_space < ICE_RING_QUARTER(xdp_ring)) in ice_xmit_xdp_tx_zc() 693 free_space += ice_clean_xdp_irq_zc(xdp_ring, xsk_pool); in ice_xmit_xdp_tx_zc() 695 if (unlikely(!free_space)) in ice_xmit_xdp_tx_zc() 701 if (free_space < nr_frags + 1) in ice_xmit_xdp_tx_zc()
|
/linux-6.12.1/tools/testing/selftests/powerpc/nx-gzip/ |
D | gunz_test.c | 285 int write_sz, free_space, source_sz; in decompress_file() local 433 free_space = NX_MAX(0, fifo_free_bytes(used_in, fifo_in_len) in decompress_file() 445 read_sz = NX_MIN(free_space, first_free); in decompress_file() 451 free_space = free_space - n; in decompress_file() 463 read_sz = NX_MIN(free_space, last_free); in decompress_file() 468 free_space = free_space - n; /* Decrease free space */ in decompress_file()
|
/linux-6.12.1/drivers/acpi/acpica/ |
D | utcopy.c | 237 info->free_space, in acpi_ut_copy_ielement_to_eelement() 251 ACPI_CAST_PTR(union acpi_object, info->free_space); in acpi_ut_copy_ielement_to_eelement() 274 info->free_space += object_space; in acpi_ut_copy_ielement_to_eelement() 317 info.free_space = buffer + in acpi_ut_copy_ipackage_to_epackage() 325 ACPI_CAST_PTR(union acpi_object, info.free_space); in acpi_ut_copy_ipackage_to_epackage() 333 info.free_space += external_object->package.count * in acpi_ut_copy_ipackage_to_epackage()
|
D | acutils.h | 135 u8 *free_space; member
|
/linux-6.12.1/net/vmw_vsock/ |
D | vmci_transport_notify_qstate.c | 263 u64 free_space; in vmci_transport_notify_pkt_recv_post_dequeue() local 271 free_space = in vmci_transport_notify_pkt_recv_post_dequeue() 273 was_full = free_space == copied; in vmci_transport_notify_pkt_recv_post_dequeue()
|
D | virtio_transport_common.c | 586 u32 free_space; in virtio_transport_stream_do_dequeue() local 629 free_space = vvs->buf_alloc - fwd_cnt_delta; in virtio_transport_stream_do_dequeue() 645 (free_space < VIRTIO_VSOCK_MAX_PKT_BUF_SIZE || low_rx_bytes)) in virtio_transport_stream_do_dequeue() 956 s64 free_space; in virtio_transport_notify_poll_out() local 958 free_space = vsock_stream_has_space(vsk); in virtio_transport_notify_poll_out() 959 if (free_space > 0) in virtio_transport_notify_poll_out() 961 else if (free_space == 0) in virtio_transport_notify_poll_out()
|
/linux-6.12.1/fs/btrfs/tests/ |
D | free-space-tests.c | 362 if (cache->free_space_ctl->free_space != 0) { in check_cache_empty() 591 if (cache->free_space_ctl->free_space != (SZ_1M + sectorsize)) { in test_steal_space_from_bitmap_to_extent() 614 if (cache->free_space_ctl->free_space != sectorsize) { in test_steal_space_from_bitmap_to_extent() 781 if (cache->free_space_ctl->free_space != (SZ_1M + 2 * sectorsize)) { in test_steal_space_from_bitmap_to_extent() 803 if (cache->free_space_ctl->free_space != 2 * sectorsize) { in test_steal_space_from_bitmap_to_extent()
|
/linux-6.12.1/net/ipv4/ |
D | tcp_output.c | 3093 int free_space = tcp_space(sk); in __tcp_select_window() local 3098 mptcp_space(sk, &free_space, &allowed_space); in __tcp_select_window() 3116 if (free_space < (full_space >> 1)) { in __tcp_select_window() 3125 free_space = round_down(free_space, 1 << tp->rx_opt.rcv_wscale); in __tcp_select_window() 3134 if (free_space < (allowed_space >> 4) || free_space < mss) in __tcp_select_window() 3138 if (free_space > tp->rcv_ssthresh) in __tcp_select_window() 3139 free_space = tp->rcv_ssthresh; in __tcp_select_window() 3145 window = free_space; in __tcp_select_window() 3162 if (window <= free_space - mss || window > free_space) in __tcp_select_window() 3163 window = rounddown(free_space, mss); in __tcp_select_window() [all …]
|
/linux-6.12.1/drivers/md/dm-vdo/indexer/ |
D | index-layout.c | 160 struct layout_region free_space; member 475 if (isl->free_space.block_count > 0) in make_index_save_region_table() 502 if (isl->free_space.block_count > 0) in make_index_save_region_table() 503 *lr++ = isl->free_space; in make_index_save_region_table() 623 isl->free_space = (struct layout_region) { in reset_index_save_layout() 1036 isl->free_space = (struct layout_region) { in instantiate_index_save_layout() 1476 isl->free_space = *last_region; in reconstruct_index_save() 1479 isl->free_space = (struct layout_region) { in reconstruct_index_save() 1519 result = verify_region(&isl->free_space, next_block, RL_KIND_EMPTY, in reconstruct_index_save() 1524 next_block += isl->free_space.block_count; in reconstruct_index_save()
|
/linux-6.12.1/drivers/net/ethernet/microchip/ |
D | enc28j60.c | 1015 int free_space; in enc28j60_get_free_rxfifo() local 1020 free_space = -1; in enc28j60_get_free_rxfifo() 1028 free_space = (erxnd - erxst) - (erxwr - erxrd); in enc28j60_get_free_rxfifo() 1030 free_space = (erxnd - erxst); in enc28j60_get_free_rxfifo() 1032 free_space = erxrd - erxwr - 1; in enc28j60_get_free_rxfifo() 1037 __func__, free_space); in enc28j60_get_free_rxfifo() 1038 return free_space; in enc28j60_get_free_rxfifo()
|
/linux-6.12.1/net/sunrpc/ |
D | xdr.c | 563 unsigned int free_space, newlen; in xdr_buf_try_expand() local 566 free_space = min_t(unsigned int, sum - buf->len, len); in xdr_buf_try_expand() 567 newlen = xdr_buf_pages_fill_sparse(buf, buf->len + free_space, in xdr_buf_try_expand() 569 free_space = newlen - buf->len; in xdr_buf_try_expand() 571 len -= free_space; in xdr_buf_try_expand() 578 free_space = min_t(unsigned int, buf->buflen - sum, len); in xdr_buf_try_expand() 579 tail->iov_len += free_space; in xdr_buf_try_expand() 580 buf->len += free_space; in xdr_buf_try_expand()
|
/linux-6.12.1/fs/btrfs/ |
D | free-space-cache.h | 80 u64 free_space; member
|
D | ctree.c | 3125 int free_space, u32 left_nritems, in __push_leaf_right() argument 3159 if (space + push_space * 2 > free_space) in __push_leaf_right() 3169 push_space > free_space) in __push_leaf_right() 3268 int free_space; in push_leaf_right() local 3288 free_space = btrfs_leaf_free_space(right); in push_leaf_right() 3289 if (free_space < data_size) in push_leaf_right() 3322 free_space, left_nritems, min_slot); in push_leaf_right() 3340 int free_space, u32 right_nritems, in __push_leaf_left() argument 3368 if (space + push_space * 2 > free_space) in __push_leaf_left() 3378 free_space) in __push_leaf_left() [all …]
|
D | free-space-cache.c | 1024 matched = (tmp_ctl.free_space == (block_group->length - used - in load_free_space_cache() 1833 ctl->free_space -= info->bytes; in unlink_free_space() 1855 ctl->free_space += info->bytes; in link_free_space() 1911 ctl->free_space -= bytes; in bitmap_clear_bits() 1934 ctl->free_space += bytes; in btrfs_bitmap_set_bits() 2723 ctl->free_space += to_free; in __btrfs_add_free_space_zoned() 3295 ctl->free_space -= bytes; in btrfs_alloc_from_cluster() 3592 if (ctl->free_space < bytes) { in btrfs_find_space_cluster() 3732 if (ctl->free_space < minlen) in trim_no_bitmap() 3897 if (ctl->free_space < minlen) { in trim_bitmaps()
|
/linux-6.12.1/drivers/md/persistent-data/ |
D | dm-btree.c | 1007 unsigned int free_space; in rebalance_or_split() local 1019 r = get_node_free_space(s->info, left_b, &free_space); in rebalance_or_split() 1023 if (free_space >= SPACE_THRESHOLD) in rebalance_or_split() 1037 r = get_node_free_space(s->info, right_b, &free_space); in rebalance_or_split() 1041 if (free_space >= SPACE_THRESHOLD) in rebalance_or_split()
|
/linux-6.12.1/drivers/misc/vmw_vmci/ |
D | vmci_queue_pair.c | 2545 s64 free_space; in qp_enqueue_locked() local 2555 free_space = vmci_q_header_free_space(produce_q->q_header, in qp_enqueue_locked() 2558 if (free_space == 0) in qp_enqueue_locked() 2561 if (free_space < VMCI_SUCCESS) in qp_enqueue_locked() 2562 return (ssize_t) free_space; in qp_enqueue_locked() 2564 written = (size_t) (free_space > buf_size ? buf_size : free_space); in qp_enqueue_locked()
|
/linux-6.12.1/drivers/target/ |
D | target_core_user.c | 1447 bool free_space = false; in tcmu_handle_completions() local 1471 free_space = true; in tcmu_handle_completions() 1501 if (free_space) in tcmu_handle_completions() 1502 free_space = tcmu_run_tmr_queue(udev); in tcmu_handle_completions() 1515 return free_space; in tcmu_handle_completions()
|
/linux-6.12.1/fs/bcachefs/ |
D | alloc_foreground.c | 725 u64 free_space = dev_buckets_available(ca, BCH_WATERMARK_normal); in bch2_dev_stripe_increment_inlined() local 726 u64 free_space_inv = free_space in bch2_dev_stripe_increment_inlined() 727 ? div64_u64(1ULL << 48, free_space) in bch2_dev_stripe_increment_inlined()
|