Lines Matching refs:framep
564 struct pn544_i2c_fw_frame_write *framep; in pn544_hci_i2c_fw_write_cmd() local
572 framep = (struct pn544_i2c_fw_frame_write *) frame; in pn544_hci_i2c_fw_write_cmd()
574 params_len = sizeof(framep->be_dest_addr) + in pn544_hci_i2c_fw_write_cmd()
575 sizeof(framep->be_datalen) + datalen; in pn544_hci_i2c_fw_write_cmd()
576 framelen = params_len + sizeof(framep->cmd) + in pn544_hci_i2c_fw_write_cmd()
577 sizeof(framep->be_length); in pn544_hci_i2c_fw_write_cmd()
579 framep->cmd = PN544_FW_CMD_WRITE; in pn544_hci_i2c_fw_write_cmd()
581 put_unaligned_be16(params_len, &framep->be_length); in pn544_hci_i2c_fw_write_cmd()
583 framep->be_dest_addr[0] = (dest_addr & 0xff0000) >> 16; in pn544_hci_i2c_fw_write_cmd()
584 framep->be_dest_addr[1] = (dest_addr & 0xff00) >> 8; in pn544_hci_i2c_fw_write_cmd()
585 framep->be_dest_addr[2] = dest_addr & 0xff; in pn544_hci_i2c_fw_write_cmd()
587 put_unaligned_be16(datalen, &framep->be_datalen); in pn544_hci_i2c_fw_write_cmd()
589 memcpy(framep->data, data, datalen); in pn544_hci_i2c_fw_write_cmd()
691 struct pn544_i2c_fw_secure_frame *framep; in pn544_hci_i2c_fw_secure_write_frame() local
694 framep = (struct pn544_i2c_fw_secure_frame *) phy->fw_blob_data; in pn544_hci_i2c_fw_secure_write_frame()
696 phy->fw_blob_size = get_unaligned_be16(&framep->be_datalen) in pn544_hci_i2c_fw_secure_write_frame()
701 framep->cmd != PN544_FW_CMD_SECURE_WRITE) in pn544_hci_i2c_fw_secure_write_frame()
728 if (framep->cmd == PN544_FW_CMD_RESET) { in pn544_hci_i2c_fw_secure_write_frame()