Lines Matching refs:resp_len
242 int resp_len; member
316 priv->resp_len = 0; in olpc_xo175_ec_complete()
374 } else if (priv->resp_len >= priv->expected_resp_len) { in olpc_xo175_ec_complete()
377 priv->resp_data[priv->resp_len++] = byte; in olpc_xo175_ec_complete()
378 if (priv->resp_len == priv->expected_resp_len) { in olpc_xo175_ec_complete()
394 priv->resp_len = 1; in olpc_xo175_ec_complete()
474 size_t resp_len, void *ec_cb_arg) in olpc_xo175_ec_cmd() argument
482 dev_dbg(dev, "CMD %x, %zd bytes expected\n", cmd, resp_len); in olpc_xo175_ec_cmd()
485 dev_err(dev, "command len %zd too big!\n", resp_len); in olpc_xo175_ec_cmd()
503 if (resp_len > sizeof(priv->resp_data)) { in olpc_xo175_ec_cmd()
504 dev_err(dev, "response too big: %zd!\n", resp_len); in olpc_xo175_ec_cmd()
507 nr_bytes = resp_len; in olpc_xo175_ec_cmd()
512 resp_len = min(resp_len, nr_bytes); in olpc_xo175_ec_cmd()
526 priv->resp_len = 0; in olpc_xo175_ec_cmd()
552 } else if (priv->resp_len != nr_bytes) { in olpc_xo175_ec_cmd()
554 cmd, priv->resp_len, nr_bytes); in olpc_xo175_ec_cmd()
563 memcpy(resp, priv->resp_data, resp_len); in olpc_xo175_ec_cmd()