Home
last modified time | relevance | path

Searched refs:avail_size (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_crat.c827 static int kfd_fill_cu_for_cpu(int numa_node_id, int *avail_size, in kfd_fill_cu_for_cpu() argument
833 *avail_size -= sizeof(struct crat_subtype_computeunit); in kfd_fill_cu_for_cpu()
834 if (*avail_size < 0) in kfd_fill_cu_for_cpu()
866 static int kfd_fill_mem_info_for_cpu(int numa_node_id, int *avail_size, in kfd_fill_mem_info_for_cpu() argument
874 *avail_size -= sizeof(struct crat_subtype_memory); in kfd_fill_mem_info_for_cpu()
875 if (*avail_size < 0) in kfd_fill_mem_info_for_cpu()
904 static int kfd_fill_iolink_info_for_cpu(int numa_node_id, int *avail_size, in kfd_fill_iolink_info_for_cpu() argument
924 *avail_size -= sizeof(struct crat_subtype_iolink); in kfd_fill_iolink_info_for_cpu()
925 if (*avail_size < 0) in kfd_fill_iolink_info_for_cpu()
960 int avail_size = *size; in kfd_create_vcrat_image_cpu() local
[all …]
/Linux-v5.10/drivers/net/wimax/i2400m/
Dcontrol.c168 size_t offset, length, avail_size; in i2400m_tlv_buffer_walk() local
186 avail_size = buf_size - offset; in i2400m_tlv_buffer_walk()
187 if (avail_size < sizeof(*tlv_pos)) { in i2400m_tlv_buffer_walk()
194 if (avail_size < sizeof(*tlv_pos) + length) { in i2400m_tlv_buffer_walk()
198 tlv_buf, buf_size, type, offset, avail_size, in i2400m_tlv_buffer_walk()
/Linux-v5.10/net/mptcp/
Dprotocol.c888 int mss_now, avail_size, size_goal, offset, ret, frag_truesize = 0; in mptcp_sendmsg_frag() local
917 avail_size = size_goal; in mptcp_sendmsg_frag()
933 avail_size = size_goal - skb->len; in mptcp_sendmsg_frag()
948 psize = min_t(size_t, pfrag->size - offset, avail_size); in mptcp_sendmsg_frag()
966 psize = min_t(size_t, dfrag->data_len, avail_size); in mptcp_sendmsg_frag()