Lines Matching refs:size
149 hm->h.size = msg_size; in asihpi_hpi_ioctl()
168 hr->h.size = sizeof(hr->h); in asihpi_hpi_ioctl()
171 uncopied_bytes = copy_to_user(puhr, hr, hr->h.size); in asihpi_hpi_ioctl()
179 hr->h.size = res_max_size; in asihpi_hpi_ioctl()
184 u32 size = 0; in asihpi_hpi_ioctl() local
217 size = hm->m0.u.d.u.data.data_size; in asihpi_hpi_ioctl()
223 if (pa->buffer_size < size) { in asihpi_hpi_ioctl()
228 pa->buffer_size, size); in asihpi_hpi_ioctl()
233 pa->p_buffer = vmalloc(size); in asihpi_hpi_ioctl()
235 pa->buffer_size = size; in asihpi_hpi_ioctl()
240 size); in asihpi_hpi_ioctl()
258 size = 0; in asihpi_hpi_ioctl()
262 if (size && (wrflag == 0)) { in asihpi_hpi_ioctl()
264 copy_from_user(pa->p_buffer, ptr, size); in asihpi_hpi_ioctl()
269 size); in asihpi_hpi_ioctl()
274 if (size && (wrflag == 1)) { in asihpi_hpi_ioctl()
276 copy_to_user(ptr, pa->p_buffer, size); in asihpi_hpi_ioctl()
280 uncopied_bytes, size); in asihpi_hpi_ioctl()
289 if (!hr->h.size) { in asihpi_hpi_ioctl()
295 if (hr->h.size > res_max_size) { in asihpi_hpi_ioctl()
296 HPI_DEBUG_LOG(ERROR, "response too big %d %d\n", hr->h.size, in asihpi_hpi_ioctl()
299 hr->h.specific_error = hr->h.size; in asihpi_hpi_ioctl()
300 hr->h.size = sizeof(hr->h); in asihpi_hpi_ioctl()
303 uncopied_bytes = copy_to_user(puhr, hr, hr->h.size); in asihpi_hpi_ioctl()