Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 7 of 7) sorted by relevance

/hal_microchip-latest/mec5/drivers/
Dmec_eeprom.c218 int mec_hal_eeprom_buffer_rd(struct mec_eeprom_ctrl_regs *regs, uint8_t *dest, uint32_t nbytes) in mec_hal_eeprom_buffer_rd() argument
226 if (!dest || !nbytes || (nbytes > MEC_HAL_EEPROM_MAX_XFR_LEN)) { in mec_hal_eeprom_buffer_rd()
232 for (uint32_t n = 0; n < nbytes; n++) { in mec_hal_eeprom_buffer_rd()
241 uint32_t nbytes) in mec_hal_eeprom_buffer_wr() argument
249 if (!src || !nbytes || (nbytes > MEC_HAL_EEPROM_MAX_XFR_LEN)) { in mec_hal_eeprom_buffer_wr()
254 for (uint32_t n = 0; n < nbytes; n++) { in mec_hal_eeprom_buffer_wr()
275 uint32_t offset, uint32_t nbytes) in mec_hal_eeprom_xfr_start() argument
286 if (!nbytes) { in mec_hal_eeprom_xfr_start()
290 if (nbytes < MEC_HAL_EEPROM_MAX_XFR_LEN) { in mec_hal_eeprom_xfr_start()
291 xfrsz = (uint8_t)nbytes; in mec_hal_eeprom_xfr_start()
[all …]
Dmec_eeprom_api.h79 int mec_hal_eeprom_buffer_rd(struct mec_eeprom_ctrl_regs *regs, uint8_t *dest, uint32_t nbytes);
81 uint32_t nbytes);
84 uint32_t offset, uint32_t nbytes);
Dmec_dmac_api.h91 size_t nbytes; member
147 int mec_hal_dma_chan_mem_set(enum mec_dmac_channel chan, uintptr_t maddr, size_t nbytes);
154 size_t nbytes);
Dmec_dmac.c496 int mec_hal_dma_chan_mem_set(enum mec_dmac_channel chan, uintptr_t maddr, size_t nbytes) in mec_hal_dma_chan_mem_set() argument
507 regs->MEND = maddr + nbytes; in mec_hal_dma_chan_mem_set()
560 size_t nbytes) in mec_hal_dma_chan_reload() argument
576 regs->MEND = src + nbytes; in mec_hal_dma_chan_reload()
580 regs->MEND = dest + nbytes; in mec_hal_dma_chan_reload()
630 regs->MEND = cfg->src_addr + cfg->nbytes; in mec_hal_dma_chan_cfg()
640 regs->MEND = cfg->dst_addr + cfg->nbytes; in mec_hal_dma_chan_cfg()
701 cfg->nbytes = 0u; in mec_hal_dma_chan_cfg_get()
706 cfg->nbytes = mend - mstart; in mec_hal_dma_chan_cfg_get()
Dmec_qspi.c955 uint32_t nbytes = lenb; in mec_hal_qspi_ldma() local
989 while (nbytes && (didx < MEC5_QSPI_NUM_DESCRS)) { in mec_hal_qspi_ldma()
991 nu = nbytes; in mec_hal_qspi_ldma()
1008 nbytes -= (nu << shift); in mec_hal_qspi_ldma()
1018 if (nbytes) { in mec_hal_qspi_ldma()
1136 int mec_hal_qspi_ldma_cfg1(struct mec_qspi_regs *regs, uintptr_t buf_addr, uint32_t nbytes, in mec_hal_qspi_ldma_cfg1() argument
1147 if (!nbytes) { in mec_hal_qspi_ldma_cfg1()
1165 ldma_regs->LEN = nbytes; in mec_hal_qspi_ldma_cfg1()
1173 if (!((buf_addr | nbytes) & 0x3u)) { in mec_hal_qspi_ldma_cfg1()
1192 uint32_t mec_hal_qspi_descrs_cfg1(struct mec_qspi_context *ctx, uint32_t nbytes, uint32_t flags) in mec_hal_qspi_descrs_cfg1() argument
[all …]
Dmec_qspi_api.h296 uint32_t mec_hal_qspi_descrs_cfg1(struct mec_qspi_context *ctx, uint32_t nbytes, uint32_t flags);
302 uint32_t nbytes, uint32_t ldflags);
Dmec_rom_rng.c87 typedef int (*rom_ndrng_read_bytes_nh_td)(uint8_t *dest, int nbytes);