Home
last modified time | relevance | path

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

12

/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.c63 if (msg->outsize + sizeof(*request) > ec_dev->dout_size) in prepare_tx()
73 request->data_len = msg->outsize; in prepare_tx()
79 memcpy(out + sizeof(*request), msg->data, msg->outsize); in prepare_tx()
80 for (i = 0; i < msg->outsize; i++) in prepare_tx()
85 return sizeof(*request) + msg->outsize; in prepare_tx()
95 if (msg->outsize > EC_PROTO2_MAX_PARAM_SIZE) in prepare_tx_legacy()
101 out[2] = msg->outsize; in prepare_tx_legacy()
103 for (i = 0; i < msg->outsize; i++) in prepare_tx_legacy()
105 out[EC_MSG_TX_HEADER_BYTES + msg->outsize] = csum; in prepare_tx_legacy()
107 return EC_MSG_TX_PROTO_BYTES + msg->outsize; in prepare_tx_legacy()
[all …]
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()
132 msg->outsize = ec_dev->dout_size - sizeof(struct ec_host_request) + 1; in cros_ec_proto_test_prepare_tx_bad_msg_outsize()
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()
306 KUNIT_EXPECT_EQ(test, mock->msg.outsize, sizeof(*data)); in cros_ec_proto_test_query_all_normal()
325 KUNIT_EXPECT_EQ(test, mock->msg.outsize, sizeof(*data)); 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()
[all …]
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()
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()
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()
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()
Dcros_ec_vbc.c40 msg->outsize = para_sz; in vboot_context_read()
83 msg->outsize = para_sz; in vboot_context_write()
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()
Dcros_ec_lightbar.c100 msg->outsize = sizeof(struct ec_params_lightbar); in alloc_lightbar_cmd_msg()
120 msg->outsize = sizeof(param->cmd); in get_lightbar_version()
467 msg->outsize = count + extra_bytes; in program_store()
Dcros_ec_sensorhub_ring.c123 sensorhub->msg->outsize = sizeof(struct ec_params_motion_sense); in cros_ec_sensorhub_ring_fifo_enable()
786 sensorhub->msg->outsize = 1; in cros_ec_sensorhub_ring_handler()
821 sensorhub->msg->outsize = in cros_ec_sensorhub_ring_handler()
1010 sensorhub->msg->outsize = 1; in cros_ec_sensorhub_ring_add()
/drivers/platform/x86/hp/hp-bioscfg/
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()
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()
/drivers/power/supply/
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()
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()
/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_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_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()
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()
/drivers/extcon/
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()
/drivers/gpu/drm/msm/disp/dpu1/
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()
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()
/drivers/platform/x86/hp/
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 …]
/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()
/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()
1121 return GPS_OUT_BUFSIZ-garmin_data_p->outsize; in garmin_write_room()

12