Lines Matching refs:framep
580 struct pn544_i2c_fw_frame_write *framep; in pn544_hci_i2c_fw_write_cmd() local
588 framep = (struct pn544_i2c_fw_frame_write *) frame; in pn544_hci_i2c_fw_write_cmd()
590 params_len = sizeof(framep->be_dest_addr) + in pn544_hci_i2c_fw_write_cmd()
591 sizeof(framep->be_datalen) + datalen; in pn544_hci_i2c_fw_write_cmd()
592 framelen = params_len + sizeof(framep->cmd) + in pn544_hci_i2c_fw_write_cmd()
593 sizeof(framep->be_length); in pn544_hci_i2c_fw_write_cmd()
595 framep->cmd = PN544_FW_CMD_WRITE; in pn544_hci_i2c_fw_write_cmd()
597 put_unaligned_be16(params_len, &framep->be_length); in pn544_hci_i2c_fw_write_cmd()
599 framep->be_dest_addr[0] = (dest_addr & 0xff0000) >> 16; in pn544_hci_i2c_fw_write_cmd()
600 framep->be_dest_addr[1] = (dest_addr & 0xff00) >> 8; in pn544_hci_i2c_fw_write_cmd()
601 framep->be_dest_addr[2] = dest_addr & 0xff; in pn544_hci_i2c_fw_write_cmd()
603 put_unaligned_be16(datalen, &framep->be_datalen); in pn544_hci_i2c_fw_write_cmd()
605 memcpy(framep->data, data, datalen); in pn544_hci_i2c_fw_write_cmd()
707 struct pn544_i2c_fw_secure_frame *framep; in pn544_hci_i2c_fw_secure_write_frame() local
710 framep = (struct pn544_i2c_fw_secure_frame *) phy->fw_blob_data; in pn544_hci_i2c_fw_secure_write_frame()
712 phy->fw_blob_size = get_unaligned_be16(&framep->be_datalen) in pn544_hci_i2c_fw_secure_write_frame()
717 framep->cmd != PN544_FW_CMD_SECURE_WRITE) in pn544_hci_i2c_fw_secure_write_frame()
744 if (framep->cmd == PN544_FW_CMD_RESET) { in pn544_hci_i2c_fw_secure_write_frame()