Home
last modified time | relevance | path

Searched refs:outsize (Results 1 – 25 of 37) sorted by relevance

12

/kernel/linux/linux-5.10/fs/coda/
Dupcall.c66 outsize = insize; \
79 int insize, outsize, error; in venus_rootfid() local
84 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_rootfid()
97 int insize, outsize, error; in venus_getattr() local
103 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_getattr()
116 int insize, outsize, error; in venus_setattr() local
124 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_setattr()
136 int insize, outsize, error; in venus_lookup() local
150 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_lookup()
165 int insize, outsize, error; in venus_close() local
[all …]
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_trace.h28 __field(uint32_t, outsize)
35 __entry->outsize = cmd->outsize;
41 __entry->outsize, __entry->insize)
51 __field(uint32_t, outsize)
60 __entry->outsize = cmd->outsize;
68 __entry->outsize, __entry->insize,
Dcros_ec_proto.c64 BUG_ON(msg->outsize + sizeof(*request) > ec_dev->dout_size); in prepare_packet()
73 request->data_len = msg->outsize; in prepare_packet()
79 memcpy(out + sizeof(*request), msg->data, msg->outsize); in prepare_packet()
80 for (i = 0; i < msg->outsize; i++) in prepare_packet()
85 return sizeof(*request) + msg->outsize; in prepare_packet()
126 status_msg->outsize = 0; in send_command()
180 BUG_ON(msg->outsize > EC_PROTO2_MAX_PARAM_SIZE); in cros_ec_prepare_tx()
184 out[2] = msg->outsize; in cros_ec_prepare_tx()
186 for (i = 0; i < msg->outsize; i++) in cros_ec_prepare_tx()
188 out[EC_MSG_TX_HEADER_BYTES + msg->outsize] = csum; in cros_ec_prepare_tx()
[all …]
Dcros_usbpd_notify.c71 int outsize, in cros_ec_pd_command() argument
78 msg = kzalloc(sizeof(*msg) + max(insize, outsize), GFP_KERNEL); in cros_ec_pd_command()
83 msg->outsize = outsize; in cros_ec_pd_command()
86 if (outsize) in cros_ec_pd_command()
87 memcpy(msg->data, outdata, outsize); in cros_ec_pd_command()
Dcros_ec_i2c.c80 packet_len = msg->outsize + request_header_size; in cros_ec_pkt_xfer_i2c()
213 packet_len = msg->outsize + 4; in cros_ec_cmd_xfer_i2c()
222 out_buf[2] = msg->outsize; in cros_ec_cmd_xfer_i2c()
226 for (i = 0; i < msg->outsize; i++) { in cros_ec_cmd_xfer_i2c()
230 out_buf[3 + msg->outsize] = sum; in cros_ec_cmd_xfer_i2c()
Dcros_ec_chardev.c283 if (u_cmd.outsize > EC_MAX_MSG_BYTES || in cros_ec_chardev_ioctl_xcmd()
287 s_cmd = kmalloc(sizeof(*s_cmd) + max(u_cmd.outsize, u_cmd.insize), in cros_ec_chardev_ioctl_xcmd()
292 if (copy_from_user(s_cmd, arg, sizeof(*s_cmd) + u_cmd.outsize)) { in cros_ec_chardev_ioctl_xcmd()
297 if (u_cmd.outsize != s_cmd->outsize || in cros_ec_chardev_ioctl_xcmd()
Dcros_ec_sysfs.c100 msg->outsize = sizeof(*param); in reboot_store()
130 msg->outsize = 0; in version_show()
222 msg->outsize = 0; in flashinfo_show()
258 msg->outsize = sizeof(*param); in kb_wake_angle_show()
295 msg->outsize = sizeof(*param); in kb_wake_angle_store()
Dcros_ec_vbc.c40 msg->outsize = para_sz; in vboot_context_read()
83 msg->outsize = para_sz; in vboot_context_write()
Dcros_ec_typec.c305 unsigned int outsize, in cros_typec_ec_command() argument
312 msg = kzalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL); in cros_typec_ec_command()
318 msg->outsize = outsize; in cros_typec_ec_command()
321 if (outsize) in cros_typec_ec_command()
322 memcpy(msg->data, outdata, outsize); in cros_typec_ec_command()
Dcros_ec_lpc.c211 if (msg->outsize > EC_PROTO2_MAX_PARAM_SIZE || in cros_ec_cmd_xfer_lpc()
215 msg->outsize, msg->insize); in cros_ec_cmd_xfer_lpc()
222 args.data_size = msg->outsize; in cros_ec_cmd_xfer_lpc()
228 sum += cros_ec_lpc_ops.write(EC_LPC_ADDR_HOST_PARAM, msg->outsize, in cros_ec_cmd_xfer_lpc()
Dcros_ec.c109 buf.msg.outsize = sizeof(buf.u.req1); in cros_ec_sleep_event()
118 buf.msg.outsize = sizeof(buf.u.req0); in cros_ec_sleep_event()
Dcros_ec_debugfs.c221 msg->outsize = sizeof(*params); in cros_ec_pdinfo_read()
330 msg->outsize = sizeof(*params); in ec_read_version_supported()
373 debug_info->read_msg->outsize = read_params_size; in cros_ec_create_console_log()
/kernel/linux/linux-5.10/drivers/regulator/
Dcros-ec-regulator.c26 void *outdata, u32 outsize, void *indata, u32 insize) in cros_ec_cmd() argument
31 msg = kzalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL); in cros_ec_cmd()
37 msg->outsize = outsize; in cros_ec_cmd()
40 if (outdata && outsize > 0) in cros_ec_cmd()
41 memcpy(msg->data, outdata, outsize); in cros_ec_cmd()
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun8i_ui_scaler.c152 u32 insize, outsize; in sun8i_ui_scaler_setup() local
167 outsize = SUN8I_UI_SCALER_SIZE(dst_w, dst_h); in sun8i_ui_scaler_setup()
170 SUN8I_SCALER_GSU_OUTSIZE(base), outsize); in sun8i_ui_scaler_setup()
Dsun8i_ui_layer.c82 u32 outsize, insize; in sun8i_ui_layer_update_coord() local
100 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord()
110 outsize); in sun8i_ui_layer_update_coord()
112 SUN8I_MIXER_BLEND_OUTSIZE(bld_base), outsize); in sun8i_ui_layer_update_coord()
143 if (insize != outsize || hphase || vphase) { in sun8i_ui_layer_update_coord()
168 outsize); in sun8i_ui_layer_update_coord()
Dsun8i_vi_scaler.c932 u32 insize, outsize; in sun8i_vi_scaler_setup() local
943 outsize = SUN8I_VI_SCALER_SIZE(dst_w, dst_h); in sun8i_vi_scaler_setup()
972 SUN8I_SCALER_VSU_OUTSIZE(base), outsize); in sun8i_vi_scaler_setup()
Dsun8i_vi_layer.c77 u32 outsize, insize; in sun8i_vi_layer_update_coord() local
117 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord()
137 if (insize != outsize || subsampled || hphase || vphase) { in sun8i_vi_layer_update_coord()
209 outsize); in sun8i_vi_layer_update_coord()
/kernel/linux/linux-5.10/drivers/platform/x86/
Dhp-wmi.c179 static inline int encode_outsize_for_pvsz(int outsize) in encode_outsize_for_pvsz() argument
181 if (outsize > 4096) in encode_outsize_for_pvsz()
183 if (outsize > 1024) in encode_outsize_for_pvsz()
185 if (outsize > 128) in encode_outsize_for_pvsz()
187 if (outsize > 4) in encode_outsize_for_pvsz()
189 if (outsize > 0) in encode_outsize_for_pvsz()
215 void *buffer, int insize, int outsize) in hp_wmi_perform_query() argument
232 mid = encode_outsize_for_pvsz(outsize); in hp_wmi_perform_query()
263 if (!outsize) in hp_wmi_perform_query()
266 actual_outsize = min(outsize, (int)(obj->buffer.length - sizeof(*bios_return))); in hp_wmi_perform_query()
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-usbc-cros-ec.c64 unsigned int outsize, in cros_ec_pd_command() argument
71 msg = kzalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL); in cros_ec_pd_command()
77 msg->outsize = outsize; in cros_ec_pd_command()
80 if (outsize) in cros_ec_pd_command()
81 memcpy(msg->data, outdata, outsize); in cros_ec_pd_command()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_lm.c67 u32 outsize; in dpu_hw_lm_setup_out() local
72 outsize = mixer->out_height << 16 | mixer->out_width; in dpu_hw_lm_setup_out()
73 DPU_REG_WRITE(c, LM_OUT_SIZE, outsize); in dpu_hw_lm_setup_out()
/kernel/linux/linux-5.10/drivers/power/supply/
Dcros_usbpd-charger.c99 unsigned int outsize, in cros_usbpd_charger_ec_command() argument
107 msg = kzalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL); in cros_usbpd_charger_ec_command()
113 msg->outsize = outsize; in cros_usbpd_charger_ec_command()
116 if (outsize) in cros_usbpd_charger_ec_command()
117 memcpy(msg->data, outdata, outsize); in cros_usbpd_charger_ec_command()
/kernel/linux/linux-5.10/drivers/media/cec/platform/cros-ec/
Dcros-ec-cec.c105 msg.msg.outsize = sizeof(msg.data); in cros_ec_cec_set_log_addr()
131 msg.msg.outsize = cec_msg->len; in cros_ec_cec_transmit()
155 msg.msg.outsize = sizeof(msg.data); in cros_ec_cec_adap_enable()
/kernel/linux/linux-5.10/drivers/usb/serial/
Dgarmin_gps.c122 int outsize; member
600 k = garmin_data_p->outsize; in gsp_send()
603 garmin_data_p->outsize = 0; in gsp_send()
609 garmin_data_p->outsize = k; in gsp_send()
628 garmin_data_p->outsize = 0; in gsp_send()
860 garmin_data_p->outsize = 0; in garmin_clear()
1123 return GPS_OUT_BUFSIZ-garmin_data_p->outsize; in garmin_write_room()
/kernel/linux/linux-5.10/drivers/pwm/
Dpwm-cros-ec.c75 msg->outsize = sizeof(*params); in cros_ec_pwm_set_duty()
103 msg->outsize = sizeof(*params); in cros_ec_pwm_get_duty()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dcros_ec_codec.c75 uint8_t *out, size_t outsize, in send_ec_host_command() argument
81 msg = kmalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL); in send_ec_host_command()
87 msg->outsize = outsize; in send_ec_host_command()
90 if (outsize) in send_ec_host_command()
91 memcpy(msg->data, out, outsize); in send_ec_host_command()

12