Lines Matching refs:cmd
52 struct atmel_i2c_cmd *cmd = &work_data->cmd; in atmel_ecdh_done() local
63 &cmd->data[RSP_DATA_IDX], n_sz); in atmel_ecdh_done()
81 struct atmel_i2c_cmd *cmd; in atmel_ecdh_set_secret() local
102 cmd = kmalloc(sizeof(*cmd), GFP_KERNEL); in atmel_ecdh_set_secret()
103 if (!cmd) in atmel_ecdh_set_secret()
117 atmel_i2c_init_genkey_cmd(cmd, DATA_SLOT_2); in atmel_ecdh_set_secret()
119 ret = atmel_i2c_send_receive(ctx->client, cmd); in atmel_ecdh_set_secret()
124 memcpy(public_key, &cmd->data[RSP_DATA_IDX], ATMEL_ECC_PUBKEY_SIZE); in atmel_ecdh_set_secret()
127 kfree(cmd); in atmel_ecdh_set_secret()
133 kfree(cmd); in atmel_ecdh_set_secret()
192 ret = atmel_i2c_init_ecdh_cmd(&work_data->cmd, req->src); in atmel_ecdh_compute_shared_secret()