/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_trace.h | 28 __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 D | cros_ec_proto.c | 73 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 D | cros_ec_proto_test.c | 37 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 D | cros_kunit_util.c | 37 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 D | cros_ec_i2c.c | 83 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 D | cros_ec_sysfs.c | 100 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 D | cros_ec_chardev.c | 283 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 D | cros_ec_vbc.c | 40 msg->outsize = para_sz; in vboot_context_read() 83 msg->outsize = para_sz; in vboot_context_write()
|
H A D | cros_ec_lpc.c | 215 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 D | upcall.c | 66 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 D | biosattr-interface.c | 120 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 D | bioscfg.c | 491 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 D | sun8i_ui_scaler.c | 152 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 D | sun8i_vi_scaler.c | 932 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 D | sun8i_ui_layer.c | 104 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 D | sun8i_vi_layer.c | 108 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 D | cros_peripheral_charger.c | 58 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 D | cros_usbpd-charger.c | 100 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 D | dpu_hw_wb.c | 68 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 D | dpu_hw_lm.c | 52 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 D | extcon-usbc-cros-ec.c | 64 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 D | cros_ec_proto.h | 80 uint32_t outsize; member 262 size_t outsize, void *indata, size_t insize);
|
/openbmc/linux/drivers/platform/x86/hp/ |
H A D | hp-wmi.c | 278 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 D | cros-ec-cec.c | 105 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 D | garmin_gps.c | 122 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()
|