Home
last modified time | relevance | path

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

123

/linux-6.1.9/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.h375 u16 in_size, void *buf_out,
384 typedef void (*comm_mgmt_self_msg_proc)(void *handle, void *buf_in, u16 in_size,
547 u16 in_size, void *buf_out,
554 void *buf_in, u16 in_size, void *buf_out,
558 void *buf_in, u16 in_size, void *buf_out,
Dhinic_hw_cmdq.c235 void *buf_in, u32 in_size) in cmdq_set_direct_wqe_data() argument
239 wqe_scmd->buf_desc.buf_len = in_size; in cmdq_set_direct_wqe_data()
240 memcpy(wqe_scmd->buf_desc.data, buf_in, in_size); in cmdq_set_direct_wqe_data()
273 void *buf_in, u16 in_size, in cmdq_set_direct_wqe() argument
298 cmdq_set_direct_wqe_data(direct_wqe, buf_in, in_size); in cmdq_set_direct_wqe()
418 u16 in_size) in cmdq_set_arm_bit() argument
448 in_size, NULL, wrapped, HINIC_CMD_ACK_TYPE_CMDQ, in cmdq_set_arm_bit()
/linux-6.1.9/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.1.9/lib/
Ddecompress_unxz.c251 STATIC int INIT unxz(unsigned char *in, long in_size, in unxz() argument
296 b.in_size = in_size; in unxz()
303 if (b.in_pos == b.in_size && fill != NULL) { in unxz()
309 in_size = fill(in, XZ_IOBUF_SIZE); in unxz()
310 if (in_size < 0) { in unxz()
320 b.in_size = in_size; in unxz()
/linux-6.1.9/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.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c172 unsigned int in_size; member
455 if (arg->in_buf && arg->in_size) { in nfp_nsp_command_buf_def()
457 arg->in_buf, arg->in_size); in nfp_nsp_command_buf_def()
462 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) { in nfp_nsp_command_buf_def()
463 err = nfp_cpp_write(cpp, cpp_id, cpp_buf + arg->in_size, in nfp_nsp_command_buf_def()
464 arg->out_buf, arg->out_size - arg->in_size); in nfp_nsp_command_buf_def()
533 if (arg->in_size > off) { in nfp_nsp_command_buf_dma_sg()
534 coff = min_t(u64, arg->in_size - off, chunk_size); in nfp_nsp_command_buf_dma_sg()
678 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) in nfp_nsp_command_buf()
679 memset(arg->out_buf, 0, arg->out_size - arg->in_size); in nfp_nsp_command_buf()
[all …]
/linux-6.1.9/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()
226 } else if (strm->buf.in_pos == strm->buf.in_size) { in z_erofs_lzma_decompress()
235 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE); in z_erofs_lzma_decompress()
236 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress()
249 memcpy(strm->bounce, strm->buf.in, strm->buf.in_size); in z_erofs_lzma_decompress()
269 DBG_BUGON(strm->buf.in_pos > strm->buf.in_size); in z_erofs_lzma_decompress()
/linux-6.1.9/fs/fuse/
Dioctl.c173 size_t in_size, out_size, c; in fuse_do_ioctl() local
224 inarg.in_size = in_size = iov_length(in_iov, in_iovs); in fuse_do_ioctl()
232 max_pages = DIV_ROUND_UP(max(in_size, out_size), PAGE_SIZE); in fuse_do_ioctl()
252 if (in_size) { in fuse_do_ioctl()
254 ap.args.in_args[1].size = in_size; in fuse_do_ioctl()
258 iov_iter_init(&ii, WRITE, in_iov, in_iovs, in_size); in fuse_do_ioctl()
392 inarg.in_size = size; in fuse_priv_ioctl()
399 args.in_args[1].size = inarg.in_size; in fuse_priv_ioctl()
/linux-6.1.9/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.1.9/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.1.9/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.1.9/drivers/crypto/keembay/
Dkeembay-ocs-aes-core.c727 u32 in_size; /* The length of the data to be mapped by src_dll. */ in kmb_ocs_aead_dma_prepare() local
748 in_size = req->cryptlen - tag_size; in kmb_ocs_aead_dma_prepare()
751 out_size = in_size; in kmb_ocs_aead_dma_prepare()
762 tag_size, req->assoclen + in_size); in kmb_ocs_aead_dma_prepare()
771 in_size = req->cryptlen; in kmb_ocs_aead_dma_prepare()
778 out_size = (rctx->mode == OCS_MODE_CCM) ? in_size + tag_size : in kmb_ocs_aead_dma_prepare()
779 in_size; in kmb_ocs_aead_dma_prepare()
781 dst_size = req->assoclen + in_size + tag_size; in kmb_ocs_aead_dma_prepare()
783 *src_dll_size = in_size; in kmb_ocs_aead_dma_prepare()
844 &rctx->src_dll, in_size, in kmb_ocs_aead_dma_prepare()
[all …]
/linux-6.1.9/drivers/gpu/drm/
Ddrm_ioctl.c822 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local
852 out_size = in_size = _IOC_SIZE(cmd); in drm_ioctl()
854 in_size = 0; in drm_ioctl()
857 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl()
883 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in drm_ioctl()
888 if (ksize > in_size) in drm_ioctl()
889 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
/linux-6.1.9/drivers/cxl/core/
Dmbox.c165 size_t in_size, void *out, size_t out_size) in cxl_mbox_send_cmd() argument
171 .size_in = in_size, in cxl_mbox_send_cmd()
177 if (in_size > cxlds->payload_size || out_size > cxlds->payload_size) in cxl_mbox_send_cmd()
258 size_t in_size, size_t out_size, u64 in_payload) in cxl_mbox_cmd_ctor() argument
262 .size_in = in_size, in cxl_mbox_cmd_ctor()
265 if (in_size) { in cxl_mbox_cmd_ctor()
267 in_size); in cxl_mbox_cmd_ctor()
/linux-6.1.9/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.1.9/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_dpcd.c138 const uint32_t in_size, in dpcd_extend_address_range() argument
143 const uint32_t end_address = END_ADDRESS(in_address, in_size); in dpcd_extend_address_range()
159 *out_size = in_size; in dpcd_extend_address_range()
/linux-6.1.9/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