Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
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);
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 …]
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()
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 …]
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,
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 …]
Dhinic_hw_dev.h441 u16 in_size, void *buf_out,
450 typedef void (*comm_mgmt_self_msg_proc)(void *handle, void *buf_in, u16 in_size,
613 u16 in_size, void *buf_out,
620 void *buf_in, u16 in_size, void *buf_out,
624 void *buf_in, u16 in_size, void *buf_out,
/linux-6.6.21/lib/xz/
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()
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()
Dxz_dec_lzma2.c383 while (*left > 0 && b->in_pos < b->in_size in dict_uncompressed()
385 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed()
484 if (b->in_pos == b->in_size) in rc_read_init()
884 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
926 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
934 s->rc.in_limit = b->in_size - LZMA_IN_REQUIRED; in lzma2_lzma()
947 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
969 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { in xz_dec_lzma2_run()
1120 || (b->in_pos == b->in_size in xz_dec_lzma2_run()
1228 if (b->in_pos >= b->in_size) in xz_dec_microlzma_run()
[all …]
/linux-6.6.21/lib/
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()
/linux-6.6.21/drivers/dma-buf/
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()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfpcore/
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 …]
/linux-6.6.21/fs/erofs/
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()
/linux-6.6.21/drivers/media/platform/nxp/imx8-isi/
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()
/linux-6.6.21/fs/fuse/
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()
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/
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()
/linux-6.6.21/drivers/watchdog/
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()
/linux-6.6.21/fs/squashfs/
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()
/linux-6.6.21/drivers/base/firmware_loader/
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 …]
/linux-6.6.21/drivers/gpu/drm/
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()
/linux-6.6.21/drivers/crypto/intel/keembay/
Dkeembay-ocs-aes-core.c724 u32 in_size; /* The length of the data to be mapped by src_dll. */ in kmb_ocs_aead_dma_prepare() local
745 in_size = req->cryptlen - tag_size; in kmb_ocs_aead_dma_prepare()
748 out_size = in_size; in kmb_ocs_aead_dma_prepare()
759 tag_size, req->assoclen + in_size); in kmb_ocs_aead_dma_prepare()
768 in_size = req->cryptlen; in kmb_ocs_aead_dma_prepare()
775 out_size = (rctx->mode == OCS_MODE_CCM) ? in_size + tag_size : in kmb_ocs_aead_dma_prepare()
776 in_size; in kmb_ocs_aead_dma_prepare()
778 dst_size = req->assoclen + in_size + tag_size; in kmb_ocs_aead_dma_prepare()
780 *src_dll_size = in_size; in kmb_ocs_aead_dma_prepare()
841 &rctx->src_dll, in_size, in kmb_ocs_aead_dma_prepare()
[all …]
/linux-6.6.21/drivers/platform/chrome/
Dcros_ec_ishtp.c165 u8 *in_msg, size_t in_size) in ish_send() argument
178 client_data->response.max_size = in_size; in ish_send()
494 size_t in_size = sizeof(struct cros_ish_in_msg) + msg->insize; in cros_ec_pkt_xfer_ish() local
498 if (in_size > ec_dev->din_size) { in cros_ec_pkt_xfer_ish()
501 in_size, ec_dev->din_size); in cros_ec_pkt_xfer_ish()
540 (u8 *)in_msg, in_size); in cros_ec_pkt_xfer_ish()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_dpcd.c141 const uint32_t in_size, in dpcd_extend_address_range() argument
146 const uint32_t end_address = END_ADDRESS(in_address, in_size); in dpcd_extend_address_range()
162 *out_size = in_size; in dpcd_extend_address_range()
/linux-6.6.21/drivers/firmware/efi/
Dmemattr.c59 u64 in_size = in->num_pages << EFI_PAGE_SHIFT; in entry_is_valid() local
102 if (md_paddr + md_size < in_paddr + in_size) { in entry_is_valid()

123