Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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);
162 u8 cmd, void *buf_in, u16 in_size, void *buf_out,
167 void *buf_in, u16 in_size, void *buf_out,
172 u16 in_size, void *buf_out, u16 *out_size, u32 timeout);
Dhinic_hw_mbox.c192 const void *buf_in, u16 in_size, u16 offset) in check_func_id() argument
196 if (in_size < offset + sizeof(func_idx)) { in check_func_id()
199 in_size, offset); in check_func_id()
216 void *buf_in, u16 in_size) in hinic_mbox_check_func_id_8B() argument
218 return check_func_id(hwdev, func_idx, buf_in, in_size, in hinic_mbox_check_func_id_8B()
1006 void *buf_in, u16 in_size, void *buf_out, in hinic_mbox_to_func() argument
1024 err = send_mbox_to_func(func_to_func, mod, cmd, buf_in, in_size, in hinic_mbox_to_func()
1056 void *buf_in, u16 in_size) in mbox_func_params_valid() argument
1058 if (in_size > HINIC_MBOX_DATA_SIZE) { in mbox_func_params_valid()
1061 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.c216 void *buf_in, u16 in_size, void *buf_out, u16 *out_size) in hinic_port_msg_cmd() argument
223 buf_in, in_size, buf_out, out_size, in hinic_port_msg_cmd()
228 void *buf_in, u16 in_size, void *buf_out, in hinic_hilink_msg_cmd() argument
236 buf_in, in_size, buf_out, out_size, in hinic_hilink_msg_cmd()
538 u16 in_size, void *buf_out, in hinic_hwdev_cb_register() argument
594 u16 in_size, void *buf_out, u16 *out_size) in nic_mgmt_msg_handler() argument
624 in_size, buf_out, out_size); in nic_mgmt_msg_handler()
671 u16 in_size, void *buf_out, u16 *out_size) in comm_mgmt_msg_handler() argument
684 (&pfhwdev->hwdev, buf_in, in_size, in comm_mgmt_msg_handler()
699 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.c256 void *buf_in, u16 in_size, in hinic_register_vf_msg_handler() argument
285 void *buf_in, u16 in_size, in hinic_unregister_vf_msg_handler() argument
302 void *buf_in, u16 in_size, in hinic_change_vf_mtu_msg_handler() argument
309 in_size, buf_out, out_size); in hinic_change_vf_mtu_msg_handler()
320 void *buf_in, u16 in_size, in hinic_get_vf_mac_msg_handler() argument
339 void *buf_in, u16 in_size, in hinic_set_vf_mac_msg_handler() argument
361 in_size, buf_out, out_size); in hinic_set_vf_mac_msg_handler()
373 void *buf_in, u16 in_size, in hinic_del_vf_mac_msg_handler() argument
394 in_size, buf_out, out_size); in hinic_del_vf_mac_msg_handler()
405 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.c240 void *buf_in, u32 in_size) in cmdq_set_direct_wqe_data() argument
244 wqe_scmd->buf_desc.buf_len = in_size; in cmdq_set_direct_wqe_data()
245 memcpy(wqe_scmd->buf_desc.data, buf_in, in_size); in cmdq_set_direct_wqe_data()
278 void *buf_in, u16 in_size, in cmdq_set_direct_wqe() argument
303 cmdq_set_direct_wqe_data(direct_wqe, buf_in, in_size); in cmdq_set_direct_wqe()
423 u16 in_size) in cmdq_set_arm_bit() argument
453 in_size, NULL, wrapped, HINIC_CMD_ACK_TYPE_CMDQ, in cmdq_set_arm_bit()
/kernel/linux/linux-5.10/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.c379 while (*left > 0 && b->in_pos < b->in_size in dict_uncompressed()
381 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed()
469 if (b->in_pos == b->in_size) in rc_read_init()
868 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
910 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
918 s->rc.in_limit = b->in_size - LZMA_IN_REQUIRED; in lzma2_lzma()
931 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
953 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { in xz_dec_lzma2_run()
1104 || (b->in_pos == b->in_size in xz_dec_lzma2_run()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-heap.c119 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local
132 in_size = out_size; in dma_heap_ioctl()
134 in_size = 0; in dma_heap_ioctl()
137 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl()
146 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in dma_heap_ioctl()
152 if (ksize > in_size) in dma_heap_ioctl()
153 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/squashfs/
Dxz_wrapper.c130 stream->buf.in_size = 0; in squashfs_xz_uncompress()
138 if (stream->buf.in_pos == stream->buf.in_size) { in squashfs_xz_uncompress()
152 stream->buf.in_size = avail; in squashfs_xz_uncompress()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_ishtp.c166 u8 *in_msg, size_t in_size) in ish_send() argument
179 client_data->response.max_size = in_size; in ish_send()
495 size_t in_size = sizeof(struct cros_ish_in_msg) + msg->insize; in cros_ec_pkt_xfer_ish() local
499 if (in_size > ec_dev->din_size) { in cros_ec_pkt_xfer_ish()
502 in_size, ec_dev->din_size); in cros_ec_pkt_xfer_ish()
539 (u8 *)in_msg, in_size); in cros_ec_pkt_xfer_ish()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/base/firmware_loader/
Dmain.c382 size_t in_size, const void *in_buffer) in fw_decompress_xz_single() argument
392 xz_buf.in_size = in_size; in fw_decompress_xz_single()
408 size_t in_size, const void *in_buffer) in fw_decompress_xz_pages() argument
420 xz_buf.in_size = in_size; in fw_decompress_xz_pages()
455 size_t in_size, const void *in_buffer) in fw_decompress_xz() argument
459 return fw_decompress_xz_single(dev, fw_priv, in_size, in_buffer); in fw_decompress_xz()
461 return fw_decompress_xz_pages(dev, fw_priv, in_size, in_buffer); in fw_decompress_xz()
488 size_t in_size, in fw_get_filesystem_firmware() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_pci.c304 void *in_msg, size_t in_size, in prestera_fw_cmd_send() argument
314 if (ALIGN(in_size, 4) > fw->cmd_mbox_len) in prestera_fw_cmd_send()
324 prestera_fw_write(fw, PRESTERA_CMD_REQ_LEN_REG, in_size); in prestera_fw_cmd_send()
325 memcpy_toio(fw->cmd_mbox, in_msg, in_size); in prestera_fw_cmd_send()
345 memcpy_fromio(out_msg, fw->cmd_mbox + in_size, ret_size); in prestera_fw_cmd_send()
353 void *in_msg, size_t in_size, void *out_msg, in prestera_fw_send_req() argument
362 ret = prestera_fw_cmd_send(fw, in_msg, in_size, out_msg, out_size, waitms); in prestera_fw_send_req()
/kernel/linux/linux-5.10/include/linux/decompress/
Dunxz.h13 int unxz(unsigned char *in, long in_size,
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1727 static struct mlx5_cmd_msg *alloc_msg(struct mlx5_core_dev *dev, int in_size, in alloc_msg() argument
1735 if (in_size <= 16) in alloc_msg()
1740 if (in_size > ch->max_inbox_size) in alloc_msg()
1751 msg->len = in_size; in alloc_msg()
1761 msg = mlx5_alloc_cmd_msg(dev, gfp, in_size, 0); in alloc_msg()
1770 static int cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out, in cmd_exec() argument
1795 inb = alloc_msg(dev, in_size, gfp); in cmd_exec()
1803 err = mlx5_copy_to_msg(inb, in, in_size, token); in cmd_exec()
1839 int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out, in mlx5_cmd_exec() argument
1844 err = cmd_exec(dev, in, in_size, out, out_size, NULL, NULL, false); in mlx5_cmd_exec()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dxz.h139 size_t in_size; member
/kernel/linux/linux-5.10/sound/soc/intel/common/
Dsst-dsp-priv.h52 size_t in_size; member

123