Home
last modified time | relevance | path

Searched refs:free_space (Results 1 – 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/acpi/x86/
Dapple.c32 void *free_space; in acpi_extract_apple_properties() local
100 free_space = &newprops[1 + 3 * numvalid]; in acpi_extract_apple_properties()
114 newprops[k].string.pointer = free_space; in acpi_extract_apple_properties()
115 memcpy(free_space, key->string.pointer, key->string.length); in acpi_extract_apple_properties()
116 free_space += key->string.length + 1; in acpi_extract_apple_properties()
123 newprops[v].buffer.pointer = free_space; in acpi_extract_apple_properties()
124 memcpy(free_space, val->buffer.pointer, in acpi_extract_apple_properties()
126 free_space += val->buffer.length; in acpi_extract_apple_properties()
130 WARN_ON(free_space != (void *)newprops + newsize); in acpi_extract_apple_properties()
/kernel/linux/linux-5.10/include/linux/
Dvmw_vmci_defs.h857 u64 free_space; in vmci_q_header_free_space() local
871 free_space = produce_q_size - (tail - head) - 1; in vmci_q_header_free_space()
873 free_space = head - tail - 1; in vmci_q_header_free_space()
875 return free_space; in vmci_q_header_free_space()
892 s64 free_space; in vmci_q_header_buf_ready() local
894 free_space = vmci_q_header_free_space(consume_q_header, in vmci_q_header_buf_ready()
896 if (free_space < VMCI_SUCCESS) in vmci_q_header_buf_ready()
897 return free_space; in vmci_q_header_buf_ready()
899 return consume_q_size - free_space - 1; in vmci_q_header_buf_ready()
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
Detnaviv_cmdbuf.c29 int free_space; member
99 suballoc->free_space = 0; in etnaviv_cmdbuf_init()
102 suballoc->free_space, in etnaviv_cmdbuf_init()
128 suballoc->free_space = 1; in etnaviv_cmdbuf_free()
/kernel/linux/linux-5.10/fs/reiserfs/
Dlbalance.c315 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 …]
Dfix_node.c511 int free_space; in get_num_ver() local
513 free_space = max_node_size - total_node_size - IH_SIZE; in get_num_ver()
515 op_check_left(vi, free_space, start_bytes, in get_num_ver()
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Dutcopy.c237 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()
Dacutils.h132 u8 *free_space; member
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/nx-gzip/
Dgunz_test.c285 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()
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dfree-space-tests.c362 if (cache->free_space_ctl->free_space != 0) { in check_cache_empty()
592 if (cache->free_space_ctl->free_space != (SZ_1M + sectorsize)) { in test_steal_space_from_bitmap_to_extent()
615 if (cache->free_space_ctl->free_space != sectorsize) { in test_steal_space_from_bitmap_to_extent()
782 if (cache->free_space_ctl->free_space != (SZ_1M + 2 * sectorsize)) { in test_steal_space_from_bitmap_to_extent()
804 if (cache->free_space_ctl->free_space != 2 * sectorsize) { in test_steal_space_from_bitmap_to_extent()
/kernel/linux/linux-5.10/net/vmw_vsock/
Dvmci_transport_notify_qstate.c263 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()
Dvirtio_transport_common.c342 u32 free_space; in virtio_transport_stream_do_dequeue() local
374 free_space = vvs->buf_alloc - (vvs->fwd_cnt - vvs->last_fwd_cnt); in virtio_transport_stream_do_dequeue()
386 if (free_space < VIRTIO_VSOCK_MAX_PKT_BUF_SIZE) { in virtio_transport_stream_do_dequeue()
523 s64 free_space; in virtio_transport_notify_poll_out() local
525 free_space = vsock_stream_has_space(vsk); in virtio_transport_notify_poll_out()
526 if (free_space > 0) in virtio_transport_notify_poll_out()
528 else if (free_space == 0) in virtio_transport_notify_poll_out()
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Denc28j60.c1016 int free_space; in enc28j60_get_free_rxfifo() local
1021 free_space = -1; in enc28j60_get_free_rxfifo()
1029 free_space = (erxnd - erxst) - (erxwr - erxrd); in enc28j60_get_free_rxfifo()
1031 free_space = (erxnd - erxst); in enc28j60_get_free_rxfifo()
1033 free_space = erxrd - erxwr - 1; in enc28j60_get_free_rxfifo()
1038 __func__, free_space); in enc28j60_get_free_rxfifo()
1039 return free_space; in enc28j60_get_free_rxfifo()
/kernel/linux/linux-5.10/net/sunrpc/
Dxdr.c366 unsigned int free_space = tailbuf_len - tail->iov_len; in _shift_data_right_tail() local
368 if (len < free_space) in _shift_data_right_tail()
369 free_space = len; in _shift_data_right_tail()
370 if (len > free_space) in _shift_data_right_tail()
371 len = free_space; in _shift_data_right_tail()
373 tail->iov_len += free_space; in _shift_data_right_tail()
378 memmove(p, tail->iov_base, tail->iov_len - free_space); in _shift_data_right_tail()
379 result += tail->iov_len - free_space; in _shift_data_right_tail()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_output.c2946 int free_space = tcp_space(sk); in __tcp_select_window() local
2951 mptcp_space(sk, &free_space, &allowed_space); in __tcp_select_window()
2960 if (free_space < (full_space >> 1)) { in __tcp_select_window()
2970 free_space = round_down(free_space, 1 << tp->rx_opt.rcv_wscale); in __tcp_select_window()
2979 if (free_space < (allowed_space >> 4) || free_space < mss) in __tcp_select_window()
2983 if (free_space > tp->rcv_ssthresh) in __tcp_select_window()
2984 free_space = tp->rcv_ssthresh; in __tcp_select_window()
2990 window = free_space; in __tcp_select_window()
3007 if (window <= free_space - mss || window > free_space) in __tcp_select_window()
3008 window = rounddown(free_space, mss); in __tcp_select_window()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dctree.c3676 int free_space, u32 left_nritems, in __push_leaf_right() argument
3713 if (space + push_space * 2 > free_space) in __push_leaf_right()
3722 if (this_item_size + sizeof(*item) + push_space > free_space) in __push_leaf_right()
3830 int free_space; in push_leaf_right() local
3855 free_space = btrfs_leaf_free_space(right); in push_leaf_right()
3856 if (free_space < data_size) in push_leaf_right()
3865 free_space = btrfs_leaf_free_space(right); in push_leaf_right()
3866 if (free_space < data_size) in push_leaf_right()
3893 right, free_space, left_nritems, min_slot); in push_leaf_right()
3910 int free_space, u32 right_nritems, in __push_leaf_left() argument
[all …]
Dfree-space-cache.h48 u64 free_space; member
Dinode-map.c205 root->free_ino_ctl->free_space > 0); in btrfs_find_free_ino()
208 root->free_ino_ctl->free_space == 0) in btrfs_find_free_ino()
Dfree-space-cache.c912 matched = (ctl->free_space == (block_group->length - used - in load_free_space_cache()
1655 ctl->free_space -= info->bytes; in unlink_free_space()
1674 ctl->free_space += info->bytes; in link_free_space()
1753 ctl->free_space -= bytes; in bitmap_clear_bits()
1771 ctl->free_space += bytes; in bitmap_set_bits()
3050 ctl->free_space -= bytes; in btrfs_alloc_from_cluster()
3332 if (ctl->free_space < bytes) { in btrfs_find_space_cluster()
3472 if (ctl->free_space < minlen) in trim_no_bitmap()
3637 if (ctl->free_space < minlen) { in trim_bitmaps()
Ddelayed-inode.c699 int free_space; in btrfs_batch_insert_items() local
714 free_space = btrfs_leaf_free_space(leaf); in btrfs_batch_insert_items()
724 free_space) { in btrfs_batch_insert_items()
Dextent-tree.c3669 if (free_space_ctl->free_space < in find_free_extent_unclustered()
3674 free_space_ctl->free_space); in find_free_extent_unclustered()
/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/
Dvmci_queue_pair.c2538 s64 free_space; in qp_enqueue_locked() local
2548 free_space = vmci_q_header_free_space(produce_q->q_header, in qp_enqueue_locked()
2551 if (free_space == 0) in qp_enqueue_locked()
2554 if (free_space < VMCI_SUCCESS) in qp_enqueue_locked()
2555 return (ssize_t) free_space; in qp_enqueue_locked()
2557 written = (size_t) (free_space > buf_size ? buf_size : free_space); in qp_enqueue_locked()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_user.c1398 bool free_space = false; in tcmu_handle_completions() local
1421 free_space = true; in tcmu_handle_completions()
1446 if (free_space) in tcmu_handle_completions()
1447 free_space = tcmu_run_tmr_queue(udev); in tcmu_handle_completions()
1460 return free_space; in tcmu_handle_completions()
/kernel/linux/linux-5.10/drivers/md/
Draid5-cache.c419 sector_t free_space; in r5c_update_log_state() local
426 free_space = r5l_ring_distance(log, log->log_start, in r5c_update_log_state()
429 if (free_space < 2 * reclaim_space) in r5c_update_log_state()
436 if (free_space < 3 * reclaim_space) in r5c_update_log_state()
/kernel/linux/linux-5.10/fs/ocfs2/
Ddir.c3348 unsigned int rec_len, new_rec_len, free_space = dir->i_sb->s_blocksize; in ocfs2_find_dir_space_id() local
3355 free_space = ocfs2_dir_trailer_blk_off(sb) - i_size_read(dir); in ocfs2_find_dir_space_id()
3357 free_space = dir->i_sb->s_blocksize - i_size_read(dir); in ocfs2_find_dir_space_id()
3399 new_rec_len = le16_to_cpu(last_de->rec_len) + free_space; in ocfs2_find_dir_space_id()
Dxattr.c1425 int free_space; in ocfs2_xa_check_space_helper() local
1430 free_space = free_start - in ocfs2_xa_check_space_helper()
1434 if (free_space < 0) in ocfs2_xa_check_space_helper()
1436 if (free_space < needed_space) in ocfs2_xa_check_space_helper()

12