Home | History | Annotate | Download | only in src

Lines Matching full:ps_frame_info

738     phLlcNfc_Frame_t        *ps_frame_info = NULL;
756 ps_frame_info = &(psLlcCtxt->s_frameinfo);
757 ps_store_frame = &(ps_frame_info->s_send_store);
760 (ps_frame_info->n_s != ((ps_store_frame->winsize_cnt +
767 ps_frame_info->n_s);
775 llc_header = (uint8_t)(llc_header | ps_frame_info->n_r);
798 ps_frame_info->write_status = result;
811 ps_frame_info->write_wait_call = (phLlcNfc_eSentFrameType_t)
812 (((resend_i_frame == ps_frame_info->write_wait_call) ||
813 (rejected_i_frame == ps_frame_info->write_wait_call)) ?
814 ps_frame_info->write_wait_call : user_i_frame);
822 ps_frame_info->n_s);
826 ps_frame_info->sent_frame_type = user_i_frame;
842 phLlcNfc_Frame_t *ps_frame_info = NULL;
860 ps_frame_info = &(psLlcCtxt->s_frameinfo);
861 ps_store_frame = &(ps_frame_info->s_send_store);
880 ps_frame_info->rejected_ns = DEFAULT_PACKET_INPUT;
892 llc_header = (uint8_t)(llc_header | ps_frame_info->n_r);
915 ps_frame_info->write_status = result;
921 ps_frame_info->write_wait_call = (phLlcNfc_eSentFrameType_t)
923 (resend_i_frame != ps_frame_info->write_wait_call))?
924 rejected_i_frame : ps_frame_info->write_wait_call);
939 ps_frame_info
941 if ((ns_rejected + 1) < ps_frame_info->n_s)
943 ps_frame_info->rejected_ns = (uint8_t)(ns_rejected + 1);
945 ps_frame_info->write_status = PHNFCSTVAL(CID_NFC_LLC,
951 ps_frame_info->rejected_ns = DEFAULT_PACKET_INPUT;
952 ps_frame_info->write_wait_call = user_i_frame;
956 ps_frame_info->write_wait_call = rejected_i_frame;
961 ps_frame_info->rejected_ns = DEFAULT_PACKET_INPUT;
964 if (ps_frame_info->n_s < (ps_store_frame->start_pos +
967 ps_frame_info->write_wait_call = user_i_frame;
984 phLlcNfc_Frame_t *ps_frame_info = NULL;
1008 ps_frame_info = &(psLlcCtxt->s_frameinfo);
1010 ps_store_frame = &(ps_frame_info->s_send_store);
1018 PH_LLCNFC_DEBUG("SEND TIMEOUT CALL N S value : 0x%02X\n", ps_frame_info->n_s);
1035 llc_header = (uint8_t)(llc_header | ps_frame_info->n_r);
1058 ps_frame_info->write_status = result;
1063 ps_frame_info->write_wait_call = resend_i_frame;
1104 ps_frame_info->sent_frame_type = resend_i_frame;
1117 ps_frame_info->write_status = NFCSTATUS_BUSY;
1118 ps_frame_info->write_wait_call = resend_i_frame;
1129 (ps_frame_info->n_s != ((ps_store_frame->winsize_cnt +
1133 ps_frame_info->write_status = PHNFCSTVAL (CID_NFC_LLC,
1135 ps_frame_info->write_wait_call = user_i_frame;
1151 (ps_frame_info->n_s != ((ps_store_frame->winsize_cnt +
1155 ps_frame_info->write_status = PHNFCSTVAL (CID_NFC_LLC,
1157 ps_frame_info->write_wait_call = user_i_frame;
1176 phLlcNfc_Frame_t *ps_frame_info = NULL;
1189 ps_frame_info = &(psLlcCtxt->s_frameinfo);
1190 ps_store_frame = &(ps_frame_info->s_send_store);
1191 ps_recv_pkt = &(ps_frame_info->s_recvpacket);
1204 no_of_del_frames = phLlcNfc_H_UpdateIFrameList (ps_frame_info,
1205 &(ps_frame_info->s_send_store));
1217 if (((ps_frame_info->n_s > recvd_nr) &&
1218 (0 == ((ps_frame_info->n_s + 1) % PH_LLCNFC_MOD_NS_NR)))
1219 || (recvd_nr > ps_frame_info->n_s))
1233 if ((ns_index == ps_frame_info->n_r)
1236 || ((ns_index < ps_frame_info->n_r) &&
1237 ((ps_frame_info->n_r - ns_index) < ps_frame_info->window_size))
1238 || ((ns_index > ps_frame_info->n_r) &&
1239 ((ns_index - ps_frame_info->n_r) > ps_frame_info->window_size))
1245 ps_frame_info->recv_error_count = 0;
1246 ps_frame_info->send_error_count = 0;
1257 if (((ns_index < ps_frame_info->n_r) &&
1258 ((ps_frame_info->n_r - ns_index) < ps_frame_info->window_size))
1259 || ((ns_index > ps_frame_info->n_r) &&
1260 ((ns_index - ps_frame_info->n_r) > ps_frame_info->window_size)))
1262 ps_frame_info->n_r = ((ns_index + 1)
1270 ps_frame_info->n_r = ((ps_frame_info->n_r + 1)
1274 ps_frame_info->resp_recvd_count = (uint8_t)
1275 (ps_frame_info->resp_recvd_count + 1);
1280 if (NFCSTATUS_BUSY == PHNFCSTATUS (ps_frame_info->write_status))
1289 (ps_frame_info->n_s != ((ps_store_frame->winsize_cnt +
1312 eframe_type = ((resend_i_frame == ps_frame_info->sent_frame_type)?
1323 ps_frame_info->send_error_count = (uint8_t)
1324 (ps_frame_info->send_error_count + 1);
1328 if (ps_frame_info->send_error_count < RECV_ERROR_FRAME_COUNT)
1335 if (((ps_frame_info->n_r > 0) && (ns_index == (ps_frame_info->n_r - 1)))
1336 || ((0 == ps_frame_info->n_r) &&
1347 eframe_type = ((resend_i_frame == ps_frame_info->sent_frame_type)?
1362 PH_LLCNFC_DEBUG("SEND ERROR COUNT : 0x%02X\n", ps_frame_info->send_error_count);
1397 if (NFCSTATUS_BUSY == PHNFCSTATUS (ps_frame_info->write_status))
1407 if (ps_frame_info->window_size == ps_frame_info->resp_recvd_count)
1411 (void)phLlcNfc_H_CreateSFramePayload (ps_frame_info, &(s_packet_info), cmdtype);
1418 if (0 == ps_frame_info->send_error_count)
1420 ps_frame_info->write_wait_call = invalid_frame;
1422 ps_frame_info->sent_frame_type = eframe_type;
1431 if ((TRUE != ps_frame_info->write_pending) &&
1432 (PH_LLCNFC_READPEND_REMAIN_BYTE != ps_frame_info->read_pending) &&
1437 (void)phLlcNfc_H_CreateSFramePayload (ps_frame_info, &(s_packet_info), cmdtype);
1444 if (0 == ps_frame_info->send_error_count)
1446 ps_frame_info->write_wait_call = invalid_frame;
1448 ps_frame_info->sent_frame_type = eframe_type;
1463 phLlcNfc_Frame_t *ps_frame_info = NULL;
1474 ps_frame_info = &(psLlcCtxt->s_frameinfo);
1475 ps_uframe_pkt = &(ps_frame_info->s_recvpacket);
1486 result = phLlcNfc_H_Update_ReceivedRSETInfo (ps_frame_info,
1502 ps_frame_info->write_status = result;
1503 ps_frame_info->write_wait_call = invalid_frame;
1506 ps_frame_info->sent_frame_type =
1507 ((ps_frame_info->sent_frame_type != init_u_rset_frame) ?
1514 ps_frame_info->write_wait_call =
1515 ((ps_frame_info->sent_frame_type != init_u_rset_frame) ?
1528 if (ps_frame_info->s_send_store.winsize_cnt > 0)
1533 &(ps_frame_info->s_send_store, 0);
1536 &(ps_frame_info->s_send_store));
1541 if ((init_u_rset_frame == ps_frame_info->sent_frame_type) &&
1544 ps_frame_info->sent_frame_type = write_resp_received;
1582 phLlcNfc_Frame_t *ps_frame_info = NULL;
1588 ps_frame_info = &(psLlcCtxt->s_frameinfo);
1589 ps_recv_pkt = &(ps_frame_info->s_recvpacket);
1590 ps_store_frame = &(ps_frame_info->s_send_store);
1601 no_of_del_frames = phLlcNfc_H_UpdateIFrameList (ps_frame_info,
1602 &(ps_frame_info->s_send_store));
1608 prev_win_count = ps_frame_info->s_send_store.winsize_cnt;
1626 ps_frame_info->recv_error_count = 0;
1627 ps_frame_info->send_error_count = 0;
1631 ps_frame_info->recv_error_count = (uint8_t)
1632 (ps_frame_info->recv_error_count + 1);
1635 if (ps_frame_info->recv_error_count >= RECV_ERROR_FRAME_COUNT)
1639 else if (NFCSTATUS_BUSY == PHNFCSTATUS(ps_frame_info->write_status))
1646 (ps_frame_info->n_s != ((ps_store_frame->winsize_cnt +
1657 (ps_store_frame->winsize_cnt < ps_frame_info->window_size))
1682 ps_frame_info->recv_error_count = (uint8_t)
1683 (ps_frame_info->recv_error_count + 1);
1687 if (ps_frame_info->recv_error_count < RECV_ERROR_FRAME_COUNT)
1701 ps_frame_info->recv_error_count = (uint8_t)
1702 (ps_frame_info->recv_error_count + 1);
1709 ps_frame_info->recv_error_count = (uint8_t)
1710 (ps_frame_info->recv_error_count + 1);
1717 if (ps_frame_info->recv_error_count >= RECV_ERROR_FRAME_COUNT)
1725 PH_LLCNFC_DEBUG("RECV ERROR COUNT : 0x%02X\n", ps_frame_info->recv_error_count);
2098 phLlcNfc_Frame_t *ps_frame_info = NULL;
2100 ps_frame_info = &(psLlcCtxt->s_frameinfo);
2101 ps_store_info = &(ps_frame_info->s_send_store);
2104 PH_LLCNFC_DEBUG ("\n\nLLC : ps_frame_info->write_wait_call before call %08X\n", ps_frame_info->write_wait_call);
2106 ps_frame_info->write_status = NFCSTATUS_PENDING;
2107 switch (ps_frame_info->write_wait_call)
2111 ps_frame_info->write_wait_call = invalid_frame;
2118 ps_frame_info->write_wait_call = invalid_frame;
2125 ps_frame_info->write_wait_call = invalid_frame;
2127 ps_frame_info->rejected_ns);
2135 ps_frame_info->write_wait_call = invalid_frame;
2141 ps_frame_info->write_wait_call = invalid_frame;
2148 ps_frame_info->write_wait_call = invalid_frame;
2153 PH_LLCNFC_DEBUG ("\n\nLLC : ps_frame_info->write_wait_call after call %08X\n", ps_frame_info->write_wait_call);
2165 phLlcNfc_Frame_t *ps_frame_info = NULL;
2167 ps_frame_info = &(psLlcCtxt->s_frameinfo);
2182 ps_frame_info->write_status = result;
2189 ps_frame_info->sent_frame_type = u_rset_frame;
2195 ps_frame_info->write_wait_call = u_rset_frame;