| /bsp/samd21/sam_d2x_asflib/common/components/crypto/sha204/ |
| A D | sha204_comm.c | 52 uint8_t sha204c_check_crc(uint8_t *response); 53 uint8_t sha204c_resync(uint8_t size, uint8_t *response); 89 uint8_t sha204c_check_crc(uint8_t *response) in sha204c_check_crc() argument 92 uint8_t count = response[SHA204_BUFFER_POS_COUNT]; in sha204c_check_crc() 95 sha204c_calculate_crc(count, response, crc); in sha204c_check_crc() 97 return (crc[0] == response[count] && crc[1] == response[count + 1]) in sha204c_check_crc() 107 uint8_t sha204c_wakeup(uint8_t *response) in sha204c_wakeup() argument 118 if (response[SHA204_BUFFER_POS_COUNT] != SHA204_RSP_SIZE_MIN) in sha204c_wakeup() 158 uint8_t sha204c_resync(uint8_t size, uint8_t *response) in sha204c_resync() argument 162 uint8_t ret_code = sha204p_resync(size, response); in sha204c_resync() [all …]
|
| A D | sha204_i2c.c | 208 uint8_t sha204p_receive_response(uint8_t size, uint8_t *response) in sha204p_receive_response() argument 215 .buffer = (void *) response in sha204p_receive_response() 221 uint8_t count = response[SHA204_BUFFER_POS_COUNT]; in sha204p_receive_response() 228 twi_package.buffer = response + 1; in sha204p_receive_response() 283 uint8_t sha204p_resync(uint8_t size, uint8_t *response) in sha204p_resync() argument 294 .buffer = (void *) response, in sha204p_resync()
|
| A D | sha204_physical.h | 69 uint8_t sha204p_receive_response(uint8_t size, uint8_t *response); 74 uint8_t sha204p_resync(uint8_t size, uint8_t *response);
|
| A D | sha204_comm.h | 101 uint8_t sha204c_wakeup(uint8_t *response);
|
| /bsp/nxp/mcx/mcxn/frdm-mcxn947/board/ports/ |
| A D | wifi_weather_sample.c | 156 char *response = rt_malloc(INITIAL_RESPONSE_SIZE); in get_weather_forecast() local 157 if(response == NULL) goto free_session_exit; in get_weather_forecast() 162 int bytes_read = webclient_read(session, &response[data_ptr], INITIAL_RESPONSE_SIZE); in get_weather_forecast() 173 response = rt_realloc(response, data_ptr + INITIAL_RESPONSE_SIZE); in get_weather_forecast() 179 parse_weather_data(response); in get_weather_forecast() 181 rt_free(response); in get_weather_forecast()
|
| /bsp/raspberry-pi/raspi3-32/driver/ |
| A D | drv_sdio.c | 179 cmd->response[3] = resp[0]<<8 ; in raspi_transfer_command() 183 cmd->response[0] = resp[0]; in raspi_transfer_command() 184 cmd->response[1] = resp[1]; in raspi_transfer_command() 185 cmd->response[2] = resp[2]; in raspi_transfer_command() 186 cmd->response[3] = resp[3]; in raspi_transfer_command() 190 cmd->response[0] = read32(pdat->virt + EMMC_RESP0); in raspi_transfer_command() 192 …%x %x %x %x (%x, %x)\n", cmd->resptype, cmd->response[0], cmd->response[1], cmd->response[2], cmd-… in raspi_transfer_command() 324 req->cmd->resp[3] = cmd.response[3]; in mmc_request_send() 325 req->cmd->resp[2] = cmd.response[2]; in mmc_request_send() 326 req->cmd->resp[1] = cmd.response[1]; in mmc_request_send() [all …]
|
| /bsp/raspberry-pi/raspi3-64/driver/ |
| A D | drv_sdio.c | 182 cmd->response[3] = resp[0]<<8 ; in raspi_transfer_command() 186 cmd->response[0] = resp[0]; in raspi_transfer_command() 187 cmd->response[1] = resp[1]; in raspi_transfer_command() 188 cmd->response[2] = resp[2]; in raspi_transfer_command() 189 cmd->response[3] = resp[3]; in raspi_transfer_command() 193 cmd->response[0] = read32(pdat->virt + EMMC_RESP0); in raspi_transfer_command() 195 …%x %x %x %x (%x, %x)\n", cmd->resptype, cmd->response[0], cmd->response[1], cmd->response[2], cmd-… in raspi_transfer_command() 325 req->cmd->resp[3] = cmd.response[3]; in mmc_request_send() 326 req->cmd->resp[2] = cmd.response[2]; in mmc_request_send() 327 req->cmd->resp[1] = cmd.response[1]; in mmc_request_send() [all …]
|
| /bsp/raspberry-pi/raspi4-64/drivers/ |
| A D | drv_sdio.c | 183 cmd->response[3] = resp[0]<<8 ; in raspi_transfer_command() 187 cmd->response[0] = resp[0]; in raspi_transfer_command() 188 cmd->response[1] = resp[1]; in raspi_transfer_command() 189 cmd->response[2] = resp[2]; in raspi_transfer_command() 190 cmd->response[3] = resp[3]; in raspi_transfer_command() 194 cmd->response[0] = read32(pdat->virt + EMMC_RESP0); in raspi_transfer_command() 196 …%x %x %x %x (%x, %x)\n", cmd->resptype, cmd->response[0], cmd->response[1], cmd->response[2], cmd-… in raspi_transfer_command() 327 req->cmd->resp[3] = cmd.response[3]; in mmc_request_send() 328 req->cmd->resp[2] = cmd.response[2]; in mmc_request_send() 329 req->cmd->resp[1] = cmd.response[1]; in mmc_request_send() [all …]
|
| /bsp/raspberry-pi/raspi4-32/driver/ |
| A D | drv_sdio.c | 183 cmd->response[3] = resp[0]<<8 ; in raspi_transfer_command() 187 cmd->response[0] = resp[0]; in raspi_transfer_command() 188 cmd->response[1] = resp[1]; in raspi_transfer_command() 189 cmd->response[2] = resp[2]; in raspi_transfer_command() 190 cmd->response[3] = resp[3]; in raspi_transfer_command() 194 cmd->response[0] = read32(pdat->virt + EMMC_RESP0); in raspi_transfer_command() 196 …%x %x %x %x (%x, %x)\n", cmd->resptype, cmd->response[0], cmd->response[1], cmd->response[2], cmd-… in raspi_transfer_command() 327 req->cmd->resp[3] = cmd.response[3]; in mmc_request_send() 328 req->cmd->resp[2] = cmd.response[2]; in mmc_request_send() 329 req->cmd->resp[1] = cmd.response[1]; in mmc_request_send() [all …]
|
| /bsp/qemu-vexpress-a9/drivers/ |
| A D | drv_sdio.c | 136 cmd->response[0] = read32(pdat->virt + PL180_RESP0); in pl180_transfer_command() 140 cmd->response[1] = read32(pdat->virt + PL180_RESP1); in pl180_transfer_command() 141 cmd->response[2] = read32(pdat->virt + PL180_RESP2); in pl180_transfer_command() 142 cmd->response[3] = read32(pdat->virt + PL180_RESP3); in pl180_transfer_command() 358 …:0x%08x [1]:0x%08x [2]:0x%08x [3]:0x%08x", cmd.response[0], cmd.response[1], cmd.response[2], cmd.… in mmc_request_send() 359 req->cmd->resp[3] = cmd.response[3]; in mmc_request_send() 360 req->cmd->resp[2] = cmd.response[2]; in mmc_request_send() 361 req->cmd->resp[1] = cmd.response[1]; in mmc_request_send() 362 req->cmd->resp[0] = cmd.response[0]; in mmc_request_send()
|
| A D | drv_sdio.h | 24 rt_uint32_t response[4]; member
|
| /bsp/bouffalo_lab/libraries/rt_drivers/ |
| A D | drv_sdh.c | 241 SDH_CMD_Cfg_TypeInstance->response[0] = BL_RD_REG(SDH_BASE, SDH_SD_RESP_0); in sdio_host_send_command() 242 SDH_CMD_Cfg_TypeInstance->response[1] = BL_RD_REG(SDH_BASE, SDH_SD_RESP_2); in sdio_host_send_command() 243 SDH_CMD_Cfg_TypeInstance->response[2] = BL_RD_REG(SDH_BASE, SDH_SD_RESP_4); in sdio_host_send_command() 244 SDH_CMD_Cfg_TypeInstance->response[3] = BL_RD_REG(SDH_BASE, SDH_SD_RESP_6); in sdio_host_send_command() 371 cmd->resp[0] = SDH_CMD_Cfg_TypeInstance.response[0]; in rt_hw_sdh_data_transfer() 434 cmd->resp[0] = ((SDH_CMD_Cfg_TypeInstance.response[3] << 8) & ~0xff); in rt_hw_sdh_cmd_transfer() 435 cmd->resp[0] |= ((SDH_CMD_Cfg_TypeInstance.response[2] >> 24) & 0xff); in rt_hw_sdh_cmd_transfer() 436 cmd->resp[1] = ((SDH_CMD_Cfg_TypeInstance.response[2] << 8) & ~0xff); in rt_hw_sdh_cmd_transfer() 438 cmd->resp[2] = ((SDH_CMD_Cfg_TypeInstance.response[1] << 8) & ~0xff); in rt_hw_sdh_cmd_transfer() 440 cmd->resp[3] = ((SDH_CMD_Cfg_TypeInstance.response[3] << 8) & ~0xff); in rt_hw_sdh_cmd_transfer() [all …]
|
| /bsp/nuvoton/libraries/ma35/rtt_port/ |
| A D | drv_sdio.c | 141 cmd->response[3] = (sdh->RESP01 << 8); in nu_sdh_send_commanddone() 145 cmd->response[0] = sdh->RESP01; in nu_sdh_send_commanddone() 146 cmd->response[1] = cmd->response[2] = cmd->response[3] = 0; in nu_sdh_send_commanddone() 505 req->cmd->resp[3] = cmd.response[3]; in nu_sdh_request() 506 req->cmd->resp[2] = cmd.response[2]; in nu_sdh_request() 507 req->cmd->resp[1] = cmd.response[1]; in nu_sdh_request() 508 req->cmd->resp[0] = cmd.response[0]; in nu_sdh_request() 526 req->stop->resp[3] = stop.response[3]; in nu_sdh_request() 527 req->stop->resp[2] = stop.response[2]; in nu_sdh_request() 528 req->stop->resp[1] = stop.response[1]; in nu_sdh_request() [all …]
|
| /bsp/rv32m1_vega/rv32m1_sdk_riscv/sdmmc_2.1.2/src/ |
| A D | fsl_sdmmc.c | 55 …if ((kStatus_Success != transfer(base, &content)) || (command.response[0U] & kSDMMC_R1ErrorAllFlag… in SDMMC_SelectCard() 77 …if ((kStatus_Success != transfer(base, &content)) || (command.response[0U] & kSDMMC_R1ErrorAllFlag… in SDMMC_SendApplicationCommand() 82 if (!(command.response[0U] & kSDMMC_R1ApplicationCommandFlag)) in SDMMC_SendApplicationCommand() 103 …if ((kStatus_Success != transfer(base, &content)) || (command.response[0U] & kSDMMC_R1ErrorAllFlag… in SDMMC_SetBlockCount() 143 …if ((kStatus_Success != transfer(base, &content)) || (command.response[0U] & kSDMMC_R1ErrorAllFlag… in SDMMC_SetBlockSize()
|
| A D | fsl_sd.c | 418 if ((command.response[0U] & kSDMMC_R1ReadyForDataFlag) && in SD_WaitWriteComplete() 466 card->relativeAddress = (command.response[0U] >> 16U); in SD_SendRca() 495 ((command.response[0U]) & kSDMMC_R1ErrorAllFlag)) in SD_SwitchFunction() 589 ((command.response[0U]) & kSDMMC_R1ErrorAllFlag)) in SD_SendScr() 758 ((command.response[0U]) & kSDMMC_R1ErrorAllFlag)) in SD_SetDataBusWidth() 884 SD_DecodeCsd(card, command.response); in SD_SendCsd() 933 SD_DecodeCid(card, command.response); in SD_AllSendCid() 969 if (command.response[0U] & kSD_OcrPowerUpBusyFlag) in SD_ApplicationSendOperationCondition() 977 if (command.response[0U] & kSD_OcrSwitch18AcceptFlag) in SD_ApplicationSendOperationCondition() 982 card->ocr = command.response[0U]; in SD_ApplicationSendOperationCondition() [all …]
|
| /bsp/hc32/libraries/hc32_drivers/ |
| A D | drv_sdio.c | 187 rt_uint32_t response[4]; in _sdio_wait_completed() local 213 (void)SDIOC_GetResponse(instance, SDIOC_RESP_REG_BIT0_31, &response[0]); in _sdio_wait_completed() 214 (void)SDIOC_GetResponse(instance, SDIOC_RESP_REG_BIT32_63, &response[1]); in _sdio_wait_completed() 215 (void)SDIOC_GetResponse(instance, SDIOC_RESP_REG_BIT64_95, &response[2]); in _sdio_wait_completed() 216 (void)SDIOC_GetResponse(instance, SDIOC_RESP_REG_BIT96_127, &response[3]); in _sdio_wait_completed() 218 cmd->resp[0] = (response[3] << 8) + ((response[2] >> 24) & 0xFF); in _sdio_wait_completed() 219 cmd->resp[1] = (response[2] << 8) + ((response[1] >> 24) & 0xFF); in _sdio_wait_completed() 220 cmd->resp[2] = (response[1] << 8) + ((response[0] >> 24) & 0xFF); in _sdio_wait_completed() 221 cmd->resp[3] = (response[0] << 8) + 0x00; in _sdio_wait_completed() 225 (void)SDIOC_GetResponse(instance, SDIOC_RESP_REG_BIT0_31, &response[0]); in _sdio_wait_completed() [all …]
|
| /bsp/nxp/lpc/lpc55sxx/Libraries/drivers/ |
| A D | drv_sdif.c | 195 cmd->resp[3] = fsl_command.response[0]; in lpc_sdmmc_request() 196 cmd->resp[2] = fsl_command.response[1]; in lpc_sdmmc_request() 197 cmd->resp[1] = fsl_command.response[2]; in lpc_sdmmc_request() 198 cmd->resp[0] = fsl_command.response[3]; in lpc_sdmmc_request() 204 cmd->resp[0] = fsl_command.response[0]; in lpc_sdmmc_request()
|
| /bsp/nxp/mcx/mcxn/Libraries/drivers/ |
| A D | drv_sdio.c | 227 cmd->resp[3] = fsl_command.response[0]; in mcx_sdmmc_request() 228 cmd->resp[2] = fsl_command.response[1]; in mcx_sdmmc_request() 229 cmd->resp[1] = fsl_command.response[2]; in mcx_sdmmc_request() 230 cmd->resp[0] = fsl_command.response[3]; in mcx_sdmmc_request() 236 cmd->resp[0] = fsl_command.response[0]; in mcx_sdmmc_request()
|
| /bsp/cvitek/drivers/ |
| A D | drv_sdhci.c | 40 volatile rt_uint32_t response[4]; member 363 memcpy((void *)cmd->resp, (void *)sdhci->response, sizeof(sdhci->response)); in sdhci_send_data_cmd() 412 sdhci->response[i] = mmio_read_32(BASE + SDIF_RESPONSE_01 + (3-i)*4) << 8; in sdhci_cmd_irq() 414 sdhci->response[i] |= mmio_read_8(BASE + SDIF_RESPONSE_01 + (3-i)*4-1); in sdhci_cmd_irq() 416 …>response: [%08x %08x %08x %08x]", sdhci->response[0], sdhci->response[1], sdhci->response[2], sdh… in sdhci_cmd_irq() 420 sdhci->response[0] = mmio_read_32(BASE + SDIF_RESPONSE_01); in sdhci_cmd_irq() 421 LOG_D("sdhci->response: [%08x]", sdhci->response[0]); in sdhci_cmd_irq() 881 memset((void *)sdhci->response, 0, sizeof(sdhci->response)); in rthw_sdhci_request()
|
| /bsp/nxp/imx/imxrt/libraries/drivers/ |
| A D | drv_sdio.c | 314 cmd->resp[3] = fsl_command.response[0]; in _mmc_request() 315 cmd->resp[2] = fsl_command.response[1]; in _mmc_request() 316 cmd->resp[1] = fsl_command.response[2]; in _mmc_request() 317 cmd->resp[0] = fsl_command.response[3]; in _mmc_request() 323 cmd->resp[0] = fsl_command.response[0]; in _mmc_request()
|
| /bsp/hpmicro/libraries/drivers/ |
| A D | drv_sdio.c | 560 LOG_I("resp:0x%08x 0x%08x 0x%08x 0x%08x\n", sdxc_cmd.response[0], in hpm_sdmmc_request() 561 sdxc_cmd.response[1], sdxc_cmd.response[2], sdxc_cmd.response[3]); in hpm_sdmmc_request() 565 LOG_I("resp:0x%08x\n", sdxc_cmd.response[0]); in hpm_sdmmc_request() 599 cmd->resp[3] = sdxc_cmd.response[0]; in hpm_sdmmc_request() 600 cmd->resp[2] = sdxc_cmd.response[1]; in hpm_sdmmc_request() 601 cmd->resp[1] = sdxc_cmd.response[2]; in hpm_sdmmc_request() 602 cmd->resp[0] = sdxc_cmd.response[3]; in hpm_sdmmc_request() 606 cmd->resp[0] = sdxc_cmd.response[0]; in hpm_sdmmc_request()
|
| /bsp/gd32/arm/libraries/gd32_drivers/ |
| A D | drv_sdio.c | 735 if(response &= SD_HIGH_CAPACITY){ in sd_power_on() 1201 response = sdio_response_get(SDIO_RESPONSE0); in sd_block_write() 1921 response = sdio_response_get(SDIO_RESPONSE0); in sd_lock_unlock() 1951 response = sdio_response_get(SDIO_RESPONSE0); in sd_lock_unlock() 2439 uint32_t reg_status = 0, response = 0; in r6_error_check() local 2465 response = sdio_response_get(SDIO_RESPONSE0); in r6_error_check() 2468 *prca = (uint16_t)(response >> 16); in r6_error_check() 2472 if(response & SD_R6_COM_CRC_ERROR){ in r6_error_check() 2474 }else if(response & SD_R6_ILLEGAL_COMMAND){ in r6_error_check() 2533 __IO uint32_t reg_status = 0, response = 0; in sd_card_state_get() local [all …]
|
| /bsp/k230/drivers/interdrv/sdio/ |
| A D | drv_sdhci.c | 339 command->response[3 - i] = sdhci_readl(sdhci_host, SDHCI_RESPONSE + (3 - i) * 4) << 8; in sdhci_receive_command_response() 341 … command->response[3 - i] |= sdhci_readb(sdhci_host, SDHCI_RESPONSE + (3 - i) * 4 - 1); in sdhci_receive_command_response() 344 command->response[0] = sdhci_readl(sdhci_host, SDHCI_RESPONSE); in sdhci_receive_command_response() 349 if (((command->responseErrorFlags) & (command->response[0U])) != 0U) in sdhci_receive_command_response() 755 cmd->resp[3] = sdhci_command.response[0]; in kd_mmc_request() 756 cmd->resp[2] = sdhci_command.response[1]; in kd_mmc_request() 757 cmd->resp[1] = sdhci_command.response[2]; in kd_mmc_request() 758 cmd->resp[0] = sdhci_command.response[3]; in kd_mmc_request() 762 cmd->resp[0] = sdhci_command.response[0]; in kd_mmc_request()
|
| /bsp/nxp/imx/imx6ull-smart/drivers/ |
| A D | drv_sdio.c | 531 cmd->resp[3] = fsl_command.response[0]; in _mmc_request() 532 cmd->resp[2] = fsl_command.response[1]; in _mmc_request() 533 cmd->resp[1] = fsl_command.response[2]; in _mmc_request() 534 cmd->resp[0] = fsl_command.response[3]; in _mmc_request() 540 cmd->resp[0] = fsl_command.response[0]; in _mmc_request()
|
| /bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/ |
| A D | hal_sdio.c | 263 u32 response; in CmdResp1Error() local 282 … response = SDIO->CMD_BUF3 << 24 | SDIO->CMD_BUF2 << 16 | SDIO->CMD_BUF1 << 8 | SDIO->CMD_BUF0; in CmdResp1Error() 283 return (SD_Error)(response & SD_OCR_ERRORBITS); in CmdResp1Error()
|