Home
last modified time | relevance | path

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

123

/linux/lib/
H A Ddecompress_unxz.c258 STATIC int INIT unxz(unsigned char *in, long in_size, in unxz() argument
303 b.in_size = in_size; in unxz()
310 if (b.in_pos == b.in_size && fill != NULL) { in unxz()
316 in_size = fill(in, XZ_IOBUF_SIZE); in unxz()
317 if (in_size < 0) { in unxz()
327 b.in_size = in_size; in unxz()
405 STATIC int INIT __decompress(unsigned char *in, long in_size, in __decompress() argument
412 return unxz(in, in_size, fill, flush, out, in_used, error); in __decompress()
/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_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 …]
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_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,
H A 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/lib/xz/
H A Dxz_dec_test.c75 buffers.in_size = 0; in xz_dec_test_open()
121 if (buffers.in_pos == buffers.in_size) { in xz_dec_test_write()
123 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write()
124 if (copy_from_user(buffer_in, buf, buffers.in_size)) in xz_dec_test_write()
127 buf += buffers.in_size; in xz_dec_test_write()
128 remaining -= buffers.in_size; in xz_dec_test_write()
144 return size - remaining - (buffers.in_size - buffers.in_pos); in xz_dec_test_write()
H A Dxz_dec_stream.c159 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp()
175 size_t *in_pos, size_t in_size) in dec_vli() argument
182 while (*in_pos < in_size) { in dec_vli()
300 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); in dec_index()
348 if (b->in_pos == b->in_size) in crc32_validate()
372 if (b->in_pos == b->in_size) in check_skip()
589 if (b->in_pos == b->in_size) in dec_main()
642 if (b->in_pos == b->in_size) in dec_main()
682 if (b->in_pos == b->in_size) { in dec_main()
764 ret = b->in_pos == b->in_size in xz_dec_run()
H A Dxz_dec_lzma2.c382 while (*left > 0 && b->in_pos < b->in_size in dict_uncompressed()
384 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed()
483 if (b->in_pos == b->in_size) in rc_read_init()
883 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
925 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
933 s->rc.in_limit = b->in_size - LZMA_IN_REQUIRED; in lzma2_lzma()
946 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
967 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { in xz_dec_lzma2_run()
1118 || (b->in_pos == b->in_size in xz_dec_lzma2_run()
1225 if (b->in_pos >= b->in_size) in xz_dec_microlzma_run()
[all …]
/linux/drivers/dma-buf/
H A Ddma-heap.c131 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local
145 in_size = out_size; in dma_heap_ioctl()
147 in_size = 0; in dma_heap_ioctl()
150 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl()
159 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in dma_heap_ioctl()
165 if (ksize > in_size) in dma_heap_ioctl()
166 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
/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 …]
/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()
353 const struct v4l2_area *in_size, in mxc_isi_channel_config() argument
364 CHNL_IMG_CFG_HEIGHT(in_size->height) | in mxc_isi_channel_config()
365 CHNL_IMG_CFG_WIDTH(in_size->width)); in mxc_isi_channel_config()
368 mxc_isi_channel_set_scaling(pipe, in_encoding, in_size, scale, in mxc_isi_channel_config()
/linux/fs/erofs/
H A Ddecompressor_lzma.c189 buf.in_size = min(rq->inputsize, PAGE_SIZE - rq->pageofs_in); in z_erofs_lzma_decompress()
190 rq->inputsize -= buf.in_size; in z_erofs_lzma_decompress()
195 dctx.inbuf_sz = buf.in_size; in z_erofs_lzma_decompress()
206 buf.in_size = dctx.inbuf_sz; in z_erofs_lzma_decompress()
211 DBG_BUGON(buf.in_pos > buf.in_size); in z_erofs_lzma_decompress()
/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()
/linux/drivers/watchdog/
H A Dintel-mid_wdt.c58 int ret, in_size; in wdt_start() local
71 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); in wdt_start()
74 sizeof(ipc_wd_start), in_size); in wdt_start()
/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()
/linux/drivers/platform/chrome/
H A 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()
469 size_t in_size = sizeof(struct cros_ish_in_msg) + msg->insize; in cros_ec_pkt_xfer_ish() local
473 if (in_size > ec_dev->din_size) { in cros_ec_pkt_xfer_ish()
476 in_size, ec_dev->din_size); in cros_ec_pkt_xfer_ish()
515 (u8 *)in_msg, in_size); in cros_ec_pkt_xfer_ish()
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/
H A 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/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c1830 static struct mlx5_cmd_msg *alloc_msg(struct mlx5_core_dev *dev, int in_size, in alloc_msg() argument
1838 if (in_size <= 16) in alloc_msg()
1843 if (in_size > ch->max_inbox_size) in alloc_msg()
1854 msg->len = in_size; in alloc_msg()
1864 msg = mlx5_alloc_cmd_msg(dev, gfp, in_size, 0); in alloc_msg()
1877 static int cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out, in cmd_exec() argument
1905 inb = alloc_msg(dev, in_size, gfp); in cmd_exec()
1913 err = mlx5_copy_to_msg(inb, in, in_size, token); in cmd_exec()
2019 int mlx5_cmd_do(struct mlx5_core_dev *dev, void *in, int in_size, void *out, int out_size) in mlx5_cmd_do() argument
2021 int err = cmd_exec(dev, in, in_size, out, out_size, NULL, NULL, false); in mlx5_cmd_do()
[all …]
/linux/include/linux/decompress/
H A Dunxz.h12 int unxz(unsigned char *in, long in_size,
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_pci.c382 void *in_msg, size_t in_size, in prestera_fw_cmd_send() argument
392 if (ALIGN(in_size, 4) > prestera_fw_cmdq_len(fw, qid)) in prestera_fw_cmd_send()
402 prestera_fw_write(fw, PRESTERA_CMDQ_REQ_LEN_REG(qid), in_size); in prestera_fw_cmd_send()
404 memcpy_toio(prestera_fw_cmdq_buf(fw, qid), in_msg, in_size); in prestera_fw_cmd_send()
426 prestera_fw_cmdq_buf(fw, qid) + in_size, ret_size); in prestera_fw_cmd_send()
435 void *in_msg, size_t in_size, void *out_msg, in prestera_fw_send_req() argument
444 ret = prestera_fw_cmd_send(fw, qid, in_msg, in_size, out_msg, out_size, in prestera_fw_send_req()
/linux/drivers/gpu/ipu-v3/
H A Dipu-ic.c217 u32 in_size, u32 out_size, in calc_resize_coeffs() argument
229 if (in_size > 4096) { in calc_resize_coeffs()
239 if ((out_size << 2) < in_size) { in calc_resize_coeffs()
246 temp_size = in_size; in calc_resize_coeffs()

123