Searched refs:ret (Results 1 – 6 of 6) sorted by relevance
/nrf_hw_models-latest/src/HW_models/ |
D | NHW_UART_backend_pty_int.c | 49 int ret; in nhw_upty_slave_connected() local 51 ret = poll(&pfd, 1, 0); in nhw_upty_slave_connected() 52 if (ret == -1) { in nhw_upty_slave_connected() 84 int ret = system(command); in attach_to_tty() local 86 if (ret != 0) { in attach_to_tty() 88 WARN("The command returned %i\n", WEXITSTATUS(ret)); in attach_to_tty() 105 int ret; in nhw_upty_open_ptty() local 112 ret = grantpt(master_pty); in nhw_upty_open_ptty() 113 if (ret == -1) { in nhw_upty_open_ptty() 119 ret = unlockpt(master_pty); in nhw_upty_open_ptty() [all …]
|
D | NHW_54_AAR_CCM_ECB.c | 286 int ret; in nhw_AAR_resolve_logic() local 296 #define IF_NOT_READ_ERROR(ret) \ in nhw_AAR_resolve_logic() argument 297 if (ret < 0) { \ in nhw_AAR_resolve_logic() 304 ret = nhw_EVDMA_start(&in_evdma, (void *)NRF_AAR_regs[inst]->IN.PTR); in nhw_AAR_resolve_logic() 305 if (ret) { in nhw_AAR_resolve_logic() 308 ret = nhw_EVDMA_start(&out_evdma, (void *)NRF_AAR_regs[inst]->OUT.PTR); in nhw_AAR_resolve_logic() 309 if (ret) { in nhw_AAR_resolve_logic() 313 ret = nhw_EVDMA_access(&in_evdma, NHW_EVDMA_READ, in nhw_AAR_resolve_logic() 316 IF_NOT_READ_ERROR(ret); in nhw_AAR_resolve_logic() 318 ret = nhw_EVDMA_access(&in_evdma, NHW_EVDMA_READ, in nhw_AAR_resolve_logic() [all …]
|
D | crc.c | 25 uint32_t ret; in rev_24() local 26 ret = rev_byte((input >> 0) & 0xff) << 16 in rev_24() 29 return ret; in rev_24() 36 uint16_t ret; in rev_16() local 37 ret = rev_byte((input >> 0) & 0xff) << 8 in rev_16() 39 return ret; in rev_16()
|
D | NHW_RADIO.c | 825 static void handle_Tx_response(int ret){ in handle_Tx_response() argument 826 if (ret == -1){ in handle_Tx_response() 829 } else if (ret == P2G4_MSG_TX_END) { in handle_Tx_response() 833 } else if ( ret == P2G4_MSG_ABORTREEVAL ) { in handle_Tx_response() 870 int ret = p2G4_dev_provide_new_tx_abort_nc_b(abort); in Tx_abort_eval_respond() local 872 handle_Tx_response(ret); in Tx_abort_eval_respond() 978 int ret; in start_Tx() local 981 ret = p2G4_dev_req_txv2_nc_b(&tx_status.tx_req_fec1, &CI, &tx_status.tx_resp); in start_Tx() 984 ret = p2G4_dev_req_txv2_nc_b(&tx_status.tx_req, tx_buf, &tx_status.tx_resp); in start_Tx() 986 handle_Tx_response(ret); in start_Tx() [all …]
|
D | NHW_UART_backend_pty.c | 115 int ret; in nhw_upty_tx_byte() local 129 ret = write(u_el->out_fd, &data, 1); in nhw_upty_tx_byte() 130 (void) ret; in nhw_upty_tx_byte() 175 int ret; in nhw_upty_check_for_input() local 182 ret = read(u_el->in_fd, &byte, 1); in nhw_upty_check_for_input() 183 if (ret != -1) { in nhw_upty_check_for_input()
|
D | NHW_UART_backend_fifo.c | 297 int ret = read(u_el->fifo_rx, buf, size); in uf_rx_lowlevel_read() local 298 if (ret != (int)size) { in uf_rx_lowlevel_read() 300 if (ret == 0) { in uf_rx_lowlevel_read() 304 ret, strerror(errno)); in uf_rx_lowlevel_read() 307 return ret; in uf_rx_lowlevel_read()
|