Lines Matching refs:ret

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()
993 int ret; in start_Tx_FEC2() local
996 ret = p2G4_dev_req_txv2_nc_b(&tx_status.tx_req, tx_buf, &tx_status.tx_resp); in start_Tx_FEC2()
997 handle_Tx_response(ret); in start_Tx_FEC2()
1136 static void handle_Rx_response(int ret){ in handle_Rx_response() argument
1137 if (ret == -1) { in handle_Rx_response()
1141 } else if (ret == P2G4_MSG_ABORTREEVAL) { in handle_Rx_response()
1147 …} else if ((ret == P2G4_MSG_RXV2_ADDRESSFOUND) && (radio_state == RAD_RX /*if we havent aborted*/… in handle_Rx_response()
1162 } else if ((ret == P2G4_MSG_RXV2_END) && (radio_state == RAD_RX /*if we havent aborted*/)) { in handle_Rx_response()
1209 int ret = p2G4_dev_req_imm_RSSI_nc_b(&rssi_req, &rssi_resp);
1211 if (ret == -1) {
1229 int ret = p2G4_dev_provide_new_rxv2_abort_nc_b(abort); in Rx_abort_eval_respond() local
1231 handle_Rx_response(ret); in Rx_abort_eval_respond()
1283 int ret; in start_Rx() local
1285 ret = p2G4_dev_req_rxv2_nc_b(&rx_status.rx_req_fec1, rx_addresses, in start_Rx()
1289 ret = p2G4_dev_req_rxv2_nc_b(&rx_status.rx_req, rx_addresses, in start_Rx()
1297 handle_Rx_response(ret); in start_Rx()
1326 int ret; in start_Rx_FEC2() local
1328 ret = p2G4_dev_req_rxv2_nc_b(&rx_status.rx_req, NULL, in start_Rx_FEC2()
1332 handle_Rx_response(ret); in start_Rx_FEC2()
1364 int ret = p2G4_dev_rxv2_cont_after_addr_nc_b(accept_packet, &rx_status.rx_req.abort); in Rx_Addr_received() local
1367 handle_Rx_response(ret); in Rx_Addr_received()
1458 static void handle_CCA_response(int ret){ in handle_CCA_response() argument
1459 if (ret == -1){ in handle_CCA_response()
1462 } else if ( ret == P2G4_MSG_CCA_END ) { in handle_CCA_response()
1470 } else if ( ret == P2G4_MSG_ABORTREEVAL ) { in handle_CCA_response()
1487 int ret = p2G4_dev_provide_new_cca_abort_nc_b(abort); in CCA_abort_eval_respond() local
1489 handle_CCA_response(ret); in CCA_abort_eval_respond()
1512 int ret = p2G4_dev_req_cca_nc_b(&cca_status.cca_req, &cca_status.cca_resp); in start_CCA_ED() local
1513 handle_CCA_response(ret); in start_CCA_ED()