Lines Matching refs:acmd
294 static bool amt_host_if_init(struct amt_host_if *acmd, in amt_host_if_init() argument
297 acmd->send_timeout = (send_timeout) ? send_timeout : 20000; in amt_host_if_init()
298 acmd->initialized = mei_init(&acmd->mei_cl, &MEI_IAMTHIF, 0, verbose); in amt_host_if_init()
299 return acmd->initialized; in amt_host_if_init()
302 static void amt_host_if_deinit(struct amt_host_if *acmd) in amt_host_if_deinit() argument
304 mei_deinit(&acmd->mei_cl); in amt_host_if_deinit()
305 acmd->initialized = false; in amt_host_if_deinit()
367 static uint32_t amt_host_if_call(struct amt_host_if *acmd, in amt_host_if_call() argument
378 in_buf_sz = acmd->mei_cl.buf_size; in amt_host_if_call()
385 written = mei_send_msg(&acmd->mei_cl, in amt_host_if_call()
386 command, command_sz, acmd->send_timeout); in amt_host_if_call()
390 out_buf_sz = mei_recv_msg(&acmd->mei_cl, *read_buf, in_buf_sz, 2000); in amt_host_if_call()
441 struct amt_host_if acmd; in main() local
449 if (!amt_host_if_init(&acmd, 5000, verbose)) { in main()
454 status = amt_get_code_versions(&acmd, &ver); in main()
456 amt_host_if_deinit(&acmd); in main()