Home
last modified time | relevance | path

Searched refs:in_size (Results 1 – 25 of 73) sorted by relevance

123

/openbmc/u-boot/test/
H A Dcompression.c127 void *in, unsigned long in_size, in compress_using_gzip() argument
134 ret = gzip(out, &inout_size, in, in_size); in compress_using_gzip()
142 void *in, unsigned long in_size, in uncompress_using_gzip() argument
147 unsigned long inout_size = in_size; in uncompress_using_gzip()
157 void *in, unsigned long in_size, in compress_using_bzip2() argument
162 ut_asserteq(in_size, strlen(plain)); in compress_using_bzip2()
163 ut_asserteq(0, memcmp(plain, in, in_size)); in compress_using_bzip2()
176 void *in, unsigned long in_size, in uncompress_using_bzip2() argument
183 ret = BZ2_bzBuffToBuffDecompress(out, &inout_size, in, in_size, in uncompress_using_bzip2()
192 void *in, unsigned long in_size, in compress_using_lzma() argument
[all …]
/openbmc/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_mbox.h30 void *buf_in, u16 in_size);
66 u16 in_size, void *buf_out, u16 *out_size);
68 u16 in_size, void *buf_out, u16 *out_size);
127 void *buf_in, u16 in_size,
132 void *buf_in, u16 in_size);
137 u16 in_size, u8 size);
158 u8 cmd, void *buf_in, u16 in_size, void *buf_out,
163 void *buf_in, u16 in_size, void *buf_out,
168 u16 in_size, void *buf_out, u16 *out_size, u32 timeout);
H A Dhinic_hw_mbox.c187 const void *buf_in, u16 in_size, u16 offset) in check_func_id() argument
191 if (in_size < offset + sizeof(func_idx)) { in check_func_id()
194 in_size, offset); in check_func_id()
211 void *buf_in, u16 in_size) in hinic_mbox_check_func_id_8B() argument
213 return check_func_id(hwdev, func_idx, buf_in, in_size, in hinic_mbox_check_func_id_8B()
1001 void *buf_in, u16 in_size, void *buf_out, in hinic_mbox_to_func() argument
1019 err = send_mbox_to_func(func_to_func, mod, cmd, buf_in, in_size, in hinic_mbox_to_func()
1051 void *buf_in, u16 in_size) in mbox_func_params_valid() argument
1053 if (in_size > HINIC_MBOX_DATA_SIZE) { in mbox_func_params_valid()
1056 in_size, HINIC_MBOX_DATA_SIZE); in mbox_func_params_valid()
[all …]
H A Dhinic_hw_mgmt.c33 #define MSG_SZ_IS_VALID(in_size) ((in_size) <= MAX_MSG_LEN) argument
86 u16 in_size, void *buf_out, in hinic_register_mgmt_msg_cb() argument
247 u8 *buf_in, u16 in_size, in msg_to_mgmt_sync() argument
273 err = send_msg_to_mgmt(pf_to_mgmt, mod, cmd, buf_in, in_size, in msg_to_mgmt_sync()
321 u8 *buf_in, u16 in_size, in msg_to_mgmt_async() argument
330 err = send_msg_to_mgmt(pf_to_mgmt, mod, cmd, buf_in, in_size, in msg_to_mgmt_async()
352 void *buf_in, u16 in_size, void *buf_out, u16 *out_size, in hinic_msg_to_mgmt() argument
364 if (!MSG_SZ_IS_VALID(in_size)) { in hinic_msg_to_mgmt()
374 in_size, buf_out, out_size, timeout); in hinic_msg_to_mgmt()
381 return msg_to_mgmt_sync(pf_to_mgmt, mod, cmd, buf_in, in_size, in hinic_msg_to_mgmt()
H A Dhinic_hw_dev.c209 void *buf_in, u16 in_size, void *buf_out, u16 *out_size) in hinic_port_msg_cmd() argument
216 buf_in, in_size, buf_out, out_size, in hinic_port_msg_cmd()
221 void *buf_in, u16 in_size, void *buf_out, in hinic_hilink_msg_cmd() argument
229 buf_in, in_size, buf_out, out_size, in hinic_hilink_msg_cmd()
531 u16 in_size, void *buf_out, in hinic_hwdev_cb_register() argument
587 u16 in_size, void *buf_out, u16 *out_size) in nic_mgmt_msg_handler() argument
617 in_size, buf_out, out_size); in nic_mgmt_msg_handler()
664 u16 in_size, void *buf_out, u16 *out_size) in comm_mgmt_msg_handler() argument
677 (&pfhwdev->hwdev, buf_in, in_size, in comm_mgmt_msg_handler()
692 static void pf_fault_event_handler(void *dev, void *buf_in, u16 in_size, in pf_fault_event_handler() argument
[all …]
H A Dhinic_hw_mgmt.h122 void *buf_in, u16 in_size,
165 u16 in_size, void *buf_out,
173 void *buf_in, u16 in_size, void *buf_out, u16 *out_size,
H A Dhinic_sriov.c258 void *buf_in, u16 in_size, in hinic_register_vf_msg_handler() argument
287 void *buf_in, u16 in_size, in hinic_unregister_vf_msg_handler() argument
304 void *buf_in, u16 in_size, in hinic_change_vf_mtu_msg_handler() argument
311 in_size, buf_out, out_size); in hinic_change_vf_mtu_msg_handler()
322 void *buf_in, u16 in_size, in hinic_get_vf_mac_msg_handler() argument
341 void *buf_in, u16 in_size, in hinic_set_vf_mac_msg_handler() argument
363 in_size, buf_out, out_size); in hinic_set_vf_mac_msg_handler()
375 void *buf_in, u16 in_size, in hinic_del_vf_mac_msg_handler() argument
396 in_size, buf_out, out_size); in hinic_del_vf_mac_msg_handler()
407 void *buf_in, u16 in_size, in hinic_get_vf_link_status_msg_handler() argument
[all …]
/openbmc/linux/lib/xz/
H A Dxz_dec_test.c76 buffers.in_size = 0; in xz_dec_test_open()
122 if (buffers.in_pos == buffers.in_size) { in xz_dec_test_write()
124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write()
125 if (copy_from_user(buffer_in, buf, buffers.in_size)) in xz_dec_test_write()
128 buf += buffers.in_size; in xz_dec_test_write()
129 remaining -= buffers.in_size; in xz_dec_test_write()
145 return size - remaining - (buffers.in_size - buffers.in_pos); in xz_dec_test_write()
H A Dxz_dec_stream.c160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp()
176 size_t *in_pos, size_t in_size) in dec_vli() argument
183 while (*in_pos < in_size) { in dec_vli()
301 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); in dec_index()
349 if (b->in_pos == b->in_size) in crc32_validate()
373 if (b->in_pos == b->in_size) in check_skip()
590 if (b->in_pos == b->in_size) in dec_main()
643 if (b->in_pos == b->in_size) in dec_main()
683 if (b->in_pos == b->in_size) { in dec_main()
765 ret = b->in_pos == b->in_size in xz_dec_run()
/openbmc/linux/lib/
H A Ddecompress_unxz.c253 STATIC int INIT unxz(unsigned char *in, long in_size, in unxz() argument
298 b.in_size = in_size; in unxz()
305 if (b.in_pos == b.in_size && fill != NULL) { in unxz()
311 in_size = fill(in, XZ_IOBUF_SIZE); in unxz()
312 if (in_size < 0) { in unxz()
322 b.in_size = in_size; in unxz()
/openbmc/linux/drivers/dma-buf/
H A Ddma-heap.c132 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local
146 in_size = out_size; in dma_heap_ioctl()
148 in_size = 0; in dma_heap_ioctl()
151 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl()
160 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in dma_heap_ioctl()
166 if (ksize > in_size) in dma_heap_ioctl()
167 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
/openbmc/u-boot/drivers/watchdog/
H A Dtangier_wdt.c56 int in_size; in hw_watchdog_init() local
66 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); in hw_watchdog_init()
69 (u32 *)&ipc_wd_start, in_size, NULL, 0); in hw_watchdog_init()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_nsp.c173 unsigned int in_size; member
456 if (arg->in_buf && arg->in_size) { in nfp_nsp_command_buf_def()
458 arg->in_buf, arg->in_size); in nfp_nsp_command_buf_def()
463 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) { in nfp_nsp_command_buf_def()
464 err = nfp_cpp_write(cpp, cpp_id, cpp_buf + arg->in_size, in nfp_nsp_command_buf_def()
465 arg->out_buf, arg->out_size - arg->in_size); in nfp_nsp_command_buf_def()
534 if (arg->in_size > off) { in nfp_nsp_command_buf_dma_sg()
535 coff = min_t(u64, arg->in_size - off, chunk_size); in nfp_nsp_command_buf_dma_sg()
679 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) in nfp_nsp_command_buf()
680 memset(arg->out_buf, 0, arg->out_size - arg->in_size); in nfp_nsp_command_buf()
[all …]
/openbmc/linux/fs/erofs/
H A Ddecompressor_lzma.c196 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE - rq->pageofs_in); in z_erofs_lzma_decompress()
197 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress()
229 } else if (strm->buf.in_pos == strm->buf.in_size) { in z_erofs_lzma_decompress()
238 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE); in z_erofs_lzma_decompress()
239 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress()
252 memcpy(strm->bounce, strm->buf.in, strm->buf.in_size); in z_erofs_lzma_decompress()
272 DBG_BUGON(strm->buf.in_pos > strm->buf.in_size); in z_erofs_lzma_decompress()
/openbmc/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-hw.c120 const struct v4l2_area *in_size, in mxc_isi_channel_set_scaling() argument
129 in_size->width, in_size->height, in mxc_isi_channel_set_scaling()
132 xscale = mxc_isi_channel_scaling_ratio(in_size->width, out_size->width, in mxc_isi_channel_set_scaling()
134 yscale = mxc_isi_channel_scaling_ratio(in_size->height, out_size->height, in mxc_isi_channel_set_scaling()
165 *bypass = in_size->height == out_size->height && in mxc_isi_channel_set_scaling()
166 in_size->width == out_size->width; in mxc_isi_channel_set_scaling()
355 const struct v4l2_area *in_size, in mxc_isi_channel_config() argument
366 CHNL_IMG_CFG_HEIGHT(in_size->height) | in mxc_isi_channel_config()
367 CHNL_IMG_CFG_WIDTH(in_size->width)); in mxc_isi_channel_config()
370 mxc_isi_channel_set_scaling(pipe, in_encoding, in_size, scale, in mxc_isi_channel_config()
/openbmc/linux/fs/fuse/
H A Dioctl.c182 size_t in_size, out_size, c; in fuse_do_ioctl() local
233 inarg.in_size = in_size = iov_length(in_iov, in_iovs); in fuse_do_ioctl()
241 max_pages = DIV_ROUND_UP(max(in_size, out_size), PAGE_SIZE); in fuse_do_ioctl()
261 if (in_size) { in fuse_do_ioctl()
263 ap.args.in_args[1].size = in_size; in fuse_do_ioctl()
267 iov_iter_init(&ii, ITER_SOURCE, in_iov, in_iovs, in_size); in fuse_do_ioctl()
399 inarg.in_size = size; in fuse_priv_ioctl()
406 args.in_args[1].size = inarg.in_size; in fuse_priv_ioctl()
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_gsc_proxy.c91 u32 in_size; in proxy_send_to_csme() local
99 in_size = hdr->message_size - sizeof(struct intel_gsc_mtl_header); in proxy_send_to_csme()
102 if (in_size < sizeof(struct intel_gsc_proxy_header) || in proxy_send_to_csme()
103 in_size > GSC_PROXY_MAX_MSG_SIZE) { in proxy_send_to_csme()
104 gt_err(gt, "Invalid CSME message size: %u\n", in_size); in proxy_send_to_csme()
108 ret = comp->ops->send(comp->mei_dev, in, in_size); in proxy_send_to_csme()
/openbmc/qemu/migration/
H A Dmultifd-qatzip.c332 uint32_t in_size = p->next_packet_size; in qatzip_recv() local
337 if (in_size > q->in_len) { in qatzip_recv()
351 assert(in_size == 0); in qatzip_recv()
355 ret = qio_channel_read_all(p->c, (void *)q->in_buf, in_size, errp); in qatzip_recv()
360 in_len = in_size; in qatzip_recv()
H A Dmultifd-zlib.c204 uint32_t in_size = p->next_packet_size; in multifd_zlib_recv() local
222 assert(in_size == 0); in multifd_zlib_recv()
226 ret = qio_channel_read_all(p->c, (void *)z->zbuff, in_size, errp); in multifd_zlib_recv()
232 zs->avail_in = in_size; in multifd_zlib_recv()
H A Dmultifd-zstd.c198 uint32_t in_size = p->next_packet_size; in multifd_zstd_recv() local
216 assert(in_size == 0); in multifd_zstd_recv()
220 ret = qio_channel_read_all(p->c, (void *)z->zbuff, in_size, errp); in multifd_zstd_recv()
227 z->in.size = in_size; in multifd_zstd_recv()
/openbmc/linux/drivers/watchdog/
H A Dintel-mid_wdt.c54 int ret, in_size; in wdt_start() local
67 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); in wdt_start()
70 sizeof(ipc_wd_start), in_size); in wdt_start()
/openbmc/linux/fs/squashfs/
H A Dxz_wrapper.c130 stream->buf.in_size = 0; in squashfs_xz_uncompress()
142 if (stream->buf.in_pos == stream->buf.in_size) { in squashfs_xz_uncompress()
156 stream->buf.in_size = avail; in squashfs_xz_uncompress()
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/
H A D0002-interface-remove-C-reserved-keyword.patch189 long writebytes=SG_OFF+cmd_len+in_size;
196 - memcpy(d->private->sg_buffer,cmd,cmd_len+in_size);
197 + memcpy(d->priv->sg_buffer,cmd,cmd_len+in_size);
204 if(bytecheck && out_size>in_size){
205 - memset(d->private->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size);
206 + memset(d->priv->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size);
209 writebytes+=(out_size-in_size);
229 if(bytecheck && in_size+cmd_len<out_size){
231 for(i=in_size;i<out_size;i++)
253 - memcpy(d->private->sg_buffer,cmd+cmd_len,in_size);
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_ioctl.c826 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local
856 out_size = in_size = _IOC_SIZE(cmd); in drm_ioctl()
858 in_size = 0; in drm_ioctl()
861 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl()
887 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in drm_ioctl()
892 if (ksize > in_size) in drm_ioctl()
893 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
/openbmc/linux/drivers/base/firmware_loader/
H A Dmain.c311 size_t in_size, const void *in_buffer) in fw_decompress_zstd() argument
324 if (zstd_get_frame_header(&params, in_buffer, in_size) || in fw_decompress_zstd()
349 len = zstd_decompress_dctx(ctx, out_buf, out_size, in_buffer, in_size); in fw_decompress_zstd()
386 size_t in_size, const void *in_buffer) in fw_decompress_xz_single() argument
396 xz_buf.in_size = in_size; in fw_decompress_xz_single()
412 size_t in_size, const void *in_buffer) in fw_decompress_xz_pages() argument
424 xz_buf.in_size = in_size; in fw_decompress_xz_pages()
459 size_t in_size, const void *in_buffer) in fw_decompress_xz() argument
463 return fw_decompress_xz_single(dev, fw_priv, in_size, in_buffer); in fw_decompress_xz()
465 return fw_decompress_xz_pages(dev, fw_priv, in_size, in_buffer); in fw_decompress_xz()
[all …]

123