Searched refs:new_spi (Results 1 – 2 of 2) sorted by relevance
492 spi_dev_t *new_spi = aos_calloc(1, sizeof(*new_spi)); in board_parse_spi() local493 if (NULL == new_spi) { in board_parse_spi()498 *new_spi = device; in board_parse_spi()499 ret = board_add_new_item(MODULE_SPI, spi_id, new_spi); in board_parse_spi()507 if (NULL != new_spi) { in board_parse_spi()508 aos_free(new_spi); in board_parse_spi()509 new_spi = NULL; in board_parse_spi()
557 spi_dev_t *new_spi = amp_calloc(1, sizeof(*new_spi)); in board_parse_spi() local558 if (NULL == new_spi) in board_parse_spi()564 *new_spi = device; in board_parse_spi()565 ret = board_add_new_item(MODULE_SPI, spi_id, new_spi); in board_parse_spi()575 if (NULL != new_spi) in board_parse_spi()577 amp_free(new_spi); in board_parse_spi()578 new_spi = NULL; in board_parse_spi()
Completed in 6 milliseconds