Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/platform/chrome/
H A 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,
H A Dcros_ec_proto.c73 request->data_len = msg->outsize; in prepare_tx()
101 out[2] = msg->outsize; in prepare_tx_legacy()
150 msg->outsize = 0; in cros_ec_wait_until_complete()
461 msg->outsize = sizeof(*pver); in cros_ec_get_host_command_version_mask()
631 msg->outsize, in cros_ec_cmd_xfer()
640 msg->outsize, in cros_ec_cmd_xfer()
697 msg->outsize = 0; in get_next_event_xfer()
741 msg->outsize = 0; in get_keyboard_state_event()
1010 size_t outsize, in cros_ec_cmd() argument
1023 msg->outsize = outsize; in cros_ec_cmd()
[all …]
H A Dcros_ec_proto_test.c37 msg->outsize = EC_PROTO2_MAX_PARAM_SIZE; in cros_ec_proto_test_prepare_tx_legacy_normal()
78 msg->outsize = EC_PROTO2_MAX_PARAM_SIZE + 1; in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize()
94 msg->outsize = 0x88; in cros_ec_proto_test_prepare_tx_normal()
270 KUNIT_EXPECT_EQ(test, mock->msg.outsize, 0); in cros_ec_proto_test_query_all_normal()
290 KUNIT_EXPECT_EQ(test, mock->msg.outsize, 0); in cros_ec_proto_test_query_all_normal()
341 KUNIT_EXPECT_EQ(test, mock->msg.outsize, 0); in cros_ec_proto_test_query_all_normal()
392 KUNIT_EXPECT_EQ(test, mock->msg.outsize, 0); in cros_ec_proto_test_query_all_no_pd_return_error()
1558 buf.msg.outsize = 2; in cros_ec_proto_test_cmd_xfer_normal()
1618 buf.msg.outsize = 2; in cros_ec_proto_test_cmd_xfer_excess_msg_insize()
1656 buf.msg.outsize = 0xff + 1; in cros_ec_proto_test_cmd_xfer_excess_msg_outsize_without_passthru()
[all …]
H A Dcros_kunit_util.c37 if (msg->outsize) { in cros_kunit_ec_xfer_mock()
38 mock->i_data = kunit_kzalloc(mock->test, msg->outsize, GFP_KERNEL); in cros_kunit_ec_xfer_mock()
40 memcpy(mock->i_data, msg->data, msg->outsize); in cros_kunit_ec_xfer_mock()
H A Dcros_ec_i2c.c83 packet_len = msg->outsize + request_header_size; in cros_ec_pkt_xfer_i2c()
221 packet_len = msg->outsize + 4; in cros_ec_cmd_xfer_i2c()
230 out_buf[2] = msg->outsize; in cros_ec_cmd_xfer_i2c()
234 for (i = 0; i < msg->outsize; i++) { in cros_ec_cmd_xfer_i2c()
238 out_buf[3 + msg->outsize] = sum; in cros_ec_cmd_xfer_i2c()
H A Dcros_ec_sysfs.c100 msg->outsize = sizeof(*param); in reboot_store()
130 msg->outsize = 0; in version_show()
215 msg->outsize = 0; in flashinfo_show()
251 msg->outsize = sizeof(*param); in kb_wake_angle_show()
288 msg->outsize = sizeof(*param); in kb_wake_angle_store()
H A Dcros_ec_chardev.c283 if (u_cmd.outsize > EC_MAX_MSG_BYTES || in cros_ec_chardev_ioctl_xcmd()
287 s_cmd = kzalloc(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()
H A Dcros_ec_vbc.c40 msg->outsize = para_sz; in vboot_context_read()
83 msg->outsize = para_sz; in vboot_context_write()
H A Dcros_ec_lpc.c215 if (msg->outsize > EC_PROTO2_MAX_PARAM_SIZE || in cros_ec_cmd_xfer_lpc()
219 msg->outsize, msg->insize); in cros_ec_cmd_xfer_lpc()
226 args.data_size = msg->outsize; in cros_ec_cmd_xfer_lpc()
232 sum += cros_ec_lpc_ops.write(EC_LPC_ADDR_HOST_PARAM, msg->outsize, in cros_ec_cmd_xfer_lpc()
/openbmc/linux/fs/coda/
H A Dupcall.c66 outsize = insize; \
79 int insize, outsize, error; in venus_rootfid() local
97 int insize, outsize, error; in venus_getattr() local
116 int insize, outsize, error; in venus_setattr() local
136 int insize, outsize, error; in venus_lookup() local
165 int insize, outsize, error; in venus_close() local
444 int insize, outsize, error; in venus_fsync() local
460 int insize, outsize, error; in venus_access() local
480 int insize, outsize, error; in venus_pioctl() local
518 &outsize, inp); in venus_pioctl()
[all …]
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbiosattr-interface.c120 u32 insize, u32 outsize) in hp_wmi_perform_query() argument
129 mid = hp_encode_outsize_for_pvsz(outsize); in hp_wmi_perform_query()
174 if (!outsize) in hp_wmi_perform_query()
177 actual_outsize = min_t(u32, outsize, obj->buffer.length - sizeof(*bios_return)); in hp_wmi_perform_query()
178 memcpy_and_pad(buffer, outsize, obj->buffer.pointer + sizeof(*bios_return), in hp_wmi_perform_query()
H A Dbioscfg.c491 int hp_encode_outsize_for_pvsz(int outsize) in hp_encode_outsize_for_pvsz() argument
493 if (outsize > 4096) in hp_encode_outsize_for_pvsz()
495 if (outsize > 1024) in hp_encode_outsize_for_pvsz()
497 if (outsize > 128) in hp_encode_outsize_for_pvsz()
499 if (outsize > 4) in hp_encode_outsize_for_pvsz()
501 if (outsize > 0) in hp_encode_outsize_for_pvsz()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A 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()
H A 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()
H A Dsun8i_ui_layer.c104 u32 outsize, insize; in sun8i_ui_layer_update_coord() local
122 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord()
135 if (insize != outsize || hphase || vphase) { in sun8i_ui_layer_update_coord()
160 outsize); in sun8i_ui_layer_update_coord()
H A Dsun8i_vi_layer.c108 u32 outsize, insize; in sun8i_vi_layer_update_coord() local
148 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord()
168 if (insize != outsize || subsampled || hphase || vphase) { in sun8i_vi_layer_update_coord()
240 outsize); in sun8i_vi_layer_update_coord()
/openbmc/linux/drivers/power/supply/
H A Dcros_peripheral_charger.c58 unsigned int outsize, in cros_pchg_ec_command() argument
66 msg = kzalloc(struct_size(msg, data, max(outsize, insize)), GFP_KERNEL); in cros_pchg_ec_command()
72 msg->outsize = outsize; in cros_pchg_ec_command()
75 if (outsize) in cros_pchg_ec_command()
76 memcpy(msg->data, outdata, outsize); in cros_pchg_ec_command()
H A Dcros_usbpd-charger.c100 unsigned int outsize, in cros_usbpd_charger_ec_command() argument
108 msg = kzalloc(struct_size(msg, data, max(outsize, insize)), GFP_KERNEL); in cros_usbpd_charger_ec_command()
114 msg->outsize = outsize; in cros_usbpd_charger_ec_command()
117 if (outsize) in cros_usbpd_charger_ec_command()
118 memcpy(msg->data, outdata, outsize); in cros_usbpd_charger_ec_command()
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_wb.c68 u32 dst_format, pattern, ystride0, ystride1, outsize, chroma_samp; in dpu_hw_wb_setup_format() local
108 outsize = (drm_rect_height(&data->roi) << 16) | drm_rect_width(&data->roi); in dpu_hw_wb_setup_format()
110 outsize = (data->dest.height << 16) | data->dest.width; in dpu_hw_wb_setup_format()
118 DPU_REG_WRITE(c, WB_OUT_SIZE, outsize); in dpu_hw_wb_setup_format()
H A Ddpu_hw_lm.c52 u32 outsize; in dpu_hw_lm_setup_out() local
57 outsize = mixer->out_height << 16 | mixer->out_width; in dpu_hw_lm_setup_out()
58 DPU_REG_WRITE(c, LM_OUT_SIZE, outsize); in dpu_hw_lm_setup_out()
/openbmc/linux/drivers/extcon/
H A Dextcon-usbc-cros-ec.c64 unsigned int outsize, in cros_ec_pd_command() argument
71 msg = kzalloc(struct_size(msg, data, 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()
/openbmc/linux/include/linux/platform_data/
H A Dcros_ec_proto.h80 uint32_t outsize; member
262 size_t outsize, void *indata, size_t insize);
/openbmc/linux/drivers/platform/x86/hp/
H A Dhp-wmi.c278 static inline int encode_outsize_for_pvsz(int outsize) in encode_outsize_for_pvsz() argument
280 if (outsize > 4096) in encode_outsize_for_pvsz()
282 if (outsize > 1024) in encode_outsize_for_pvsz()
284 if (outsize > 128) in encode_outsize_for_pvsz()
286 if (outsize > 4) in encode_outsize_for_pvsz()
288 if (outsize > 0) in encode_outsize_for_pvsz()
314 void *buffer, int insize, int outsize) in hp_wmi_perform_query() argument
324 mid = encode_outsize_for_pvsz(outsize); in hp_wmi_perform_query()
370 if (!outsize) in hp_wmi_perform_query()
373 actual_outsize = min(outsize, (int)(obj->buffer.length - sizeof(*bios_return))); in hp_wmi_perform_query()
[all …]
/openbmc/linux/drivers/media/cec/platform/cros-ec/
H A 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()
/openbmc/linux/drivers/usb/serial/
H A 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()
1121 return GPS_OUT_BUFSIZ-garmin_data_p->outsize; in garmin_write_room()

12