Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dkfd_crat.c802 static int kfd_fill_cu_for_cpu(int numa_node_id, int *avail_size, in kfd_fill_cu_for_cpu() argument
808 *avail_size -= sizeof(struct crat_subtype_computeunit); in kfd_fill_cu_for_cpu()
809 if (*avail_size < 0) in kfd_fill_cu_for_cpu()
841 static int kfd_fill_mem_info_for_cpu(int numa_node_id, int *avail_size, in kfd_fill_mem_info_for_cpu() argument
849 *avail_size -= sizeof(struct crat_subtype_memory); in kfd_fill_mem_info_for_cpu()
850 if (*avail_size < 0) in kfd_fill_mem_info_for_cpu()
879 static int kfd_fill_iolink_info_for_cpu(int numa_node_id, int *avail_size, in kfd_fill_iolink_info_for_cpu() argument
899 *avail_size -= sizeof(struct crat_subtype_iolink); in kfd_fill_iolink_info_for_cpu()
900 if (*avail_size < 0) in kfd_fill_iolink_info_for_cpu()
935 int avail_size = *size; in kfd_create_vcrat_image_cpu() local
[all …]
/Linux-v5.4/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.4/drivers/staging/media/hantro/
Dhantro_drv.c62 size_t avail_size; in hantro_enc_buf_finish() local
64 avail_size = vb2_plane_size(buf, 0) - ctx->vpu_dst_fmt->header_size; in hantro_enc_buf_finish()
65 if (bytesused > avail_size) in hantro_enc_buf_finish()