Lines Matching refs:cmd_len
538 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_irq_sync() argument
548 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_irq_sync()
567 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_polling() argument
578 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_polling()
607 u8 *cmd, int cmd_len, in cyapa_i2c_pip_cmd_irq_sync() argument
616 if (!cmd || !cmd_len) in cyapa_i2c_pip_cmd_irq_sync()
628 if (cmd_len >= PIP_MIN_APP_CMD_LENGTH && in cyapa_i2c_pip_cmd_irq_sync()
632 } else if (cmd_len >= PIP_MIN_BL_CMD_LENGTH && in cyapa_i2c_pip_cmd_irq_sync()
641 error = cyapa_do_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync()
657 error = cyapa_do_i2c_pip_cmd_polling(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync()
1053 int cmd_len; in cyapa_pip_bl_initiate() local
1069 cmd_len = sizeof(struct pip_bl_cmd_head) + cmd_data_len + in cyapa_pip_bl_initiate()
1073 put_unaligned_le16(cmd_len - 2, &bl_cmd_head->length); in cyapa_pip_bl_initiate()
1105 cmd, cmd_len, in cyapa_pip_bl_initiate()
1322 u16 cmd_len; in cyapa_pip_write_fw_block() local
1341 cmd_len = sizeof(struct pip_bl_cmd_head) + in cyapa_pip_write_fw_block()
1348 put_unaligned_le16(cmd_len - 2, &bl_cmd_head->length); in cyapa_pip_write_fw_block()
1370 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_pip_write_fw_block()
1436 int cmd_len; in cyapa_gen5_set_interval_time() local
1446 cmd_len = sizeof(struct pip_app_cmd_head) + in cyapa_gen5_set_interval_time()
1468 put_unaligned_le16(cmd_len - (4 - parameter_size) - 2, in cyapa_gen5_set_interval_time()
1476 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_gen5_set_interval_time()
1493 int cmd_len; in cyapa_gen5_get_interval_time() local
1504 cmd_len = sizeof(struct pip_app_cmd_head) + in cyapa_gen5_get_interval_time()
1524 put_unaligned_le16(cmd_len - 2, &app_cmd_head->length); in cyapa_gen5_get_interval_time()
1530 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_gen5_get_interval_time()