Lines Matching refs:framep
574 struct pn544_i2c_fw_frame_write *framep; in pn544_hci_i2c_fw_write_cmd() local
582 framep = (struct pn544_i2c_fw_frame_write *) frame; in pn544_hci_i2c_fw_write_cmd()
584 params_len = sizeof(framep->be_dest_addr) + in pn544_hci_i2c_fw_write_cmd()
585 sizeof(framep->be_datalen) + datalen; in pn544_hci_i2c_fw_write_cmd()
586 framelen = params_len + sizeof(framep->cmd) + in pn544_hci_i2c_fw_write_cmd()
587 sizeof(framep->be_length); in pn544_hci_i2c_fw_write_cmd()
589 framep->cmd = PN544_FW_CMD_WRITE; in pn544_hci_i2c_fw_write_cmd()
591 put_unaligned_be16(params_len, &framep->be_length); in pn544_hci_i2c_fw_write_cmd()
593 framep->be_dest_addr[0] = (dest_addr & 0xff0000) >> 16; in pn544_hci_i2c_fw_write_cmd()
594 framep->be_dest_addr[1] = (dest_addr & 0xff00) >> 8; in pn544_hci_i2c_fw_write_cmd()
595 framep->be_dest_addr[2] = dest_addr & 0xff; in pn544_hci_i2c_fw_write_cmd()
597 put_unaligned_be16(datalen, &framep->be_datalen); in pn544_hci_i2c_fw_write_cmd()
599 memcpy(framep->data, data, datalen); in pn544_hci_i2c_fw_write_cmd()
701 struct pn544_i2c_fw_secure_frame *framep; in pn544_hci_i2c_fw_secure_write_frame() local
704 framep = (struct pn544_i2c_fw_secure_frame *) phy->fw_blob_data; in pn544_hci_i2c_fw_secure_write_frame()
706 phy->fw_blob_size = get_unaligned_be16(&framep->be_datalen) in pn544_hci_i2c_fw_secure_write_frame()
711 framep->cmd != PN544_FW_CMD_SECURE_WRITE) in pn544_hci_i2c_fw_secure_write_frame()
738 if (framep->cmd == PN544_FW_CMD_RESET) { in pn544_hci_i2c_fw_secure_write_frame()