Lines Matching refs:saf_pkt
539 struct espi_saf_packet saf_pkt = {0}; in saf_read() local
545 saf_pkt.flash_addr = spi_addr; in saf_read()
546 saf_pkt.buf = dest; in saf_read()
555 saf_pkt.len = chunk_len; in saf_read()
557 rc = espi_saf_flash_read(espi_saf_dev, &saf_pkt); in saf_read()
565 saf_pkt.flash_addr += chunk_len; in saf_read()
566 saf_pkt.buf += chunk_len; in saf_read()
581 struct espi_saf_packet saf_pkt = {0}; in saf_erase_block() local
585 saf_pkt.len = 4096U; in saf_erase_block()
589 saf_pkt.len = (32U * 1024U); in saf_erase_block()
593 saf_pkt.len = (64U * 1024U); in saf_erase_block()
600 saf_pkt.flash_addr = spi_addr; in saf_erase_block()
602 rc = espi_saf_flash_erase(espi_saf_dev, &saf_pkt); in saf_erase_block()
617 struct espi_saf_packet saf_pkt = {0}; in saf_page_prog() local
627 saf_pkt.flash_addr = spi_addr; in saf_page_prog()
628 saf_pkt.buf = (uint8_t *)src; in saf_page_prog()
637 saf_pkt.len = (uint32_t)chunk_len; in saf_page_prog()
639 rc = espi_saf_flash_write(espi_saf_dev, &saf_pkt); in saf_page_prog()
646 saf_pkt.flash_addr += chunk_len; in saf_page_prog()
647 saf_pkt.buf += chunk_len; in saf_page_prog()