Lines Matching refs:p_ntf
102 NFCSTATUS phNxpNciHal_process_ext_rsp (uint8_t *p_ntf, uint16_t *p_len) in phNxpNciHal_process_ext_rsp() argument
108 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
109 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
110 p_ntf[4] == 0x03 && in phNxpNciHal_process_ext_rsp()
111 p_ntf[5] == 0x05 && in phNxpNciHal_process_ext_rsp()
114 p_ntf[4] = 0xFF; in phNxpNciHal_process_ext_rsp()
115 p_ntf[5] = 0xFF; in phNxpNciHal_process_ext_rsp()
116 p_ntf[6] = 0xFF; in phNxpNciHal_process_ext_rsp()
120 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
121 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
122 p_ntf[4] == 0x01 && in phNxpNciHal_process_ext_rsp()
123 p_ntf[5] == 0x05 && in phNxpNciHal_process_ext_rsp()
124 p_ntf[6] == 0x02 && in phNxpNciHal_process_ext_rsp()
129 p_ntf[5] = 0x03; in phNxpNciHal_process_ext_rsp()
134 if(p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
135 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
136 p_ntf[4] == 0x02 && in phNxpNciHal_process_ext_rsp()
137 p_ntf[5] == 0x04 && in phNxpNciHal_process_ext_rsp()
148 if (phNxpNciHal_NfcDep_comapre_ntf(p_ntf, *p_len) == NFCSTATUS_FAILED) in phNxpNciHal_process_ext_rsp()
150 status = phNxpNciHal_NfcDep_rsp_ext(p_ntf,p_len); in phNxpNciHal_process_ext_rsp()
161 status = phNxpNciHal_kovio_rsp_ext(p_ntf,p_len); in phNxpNciHal_process_ext_rsp()
163 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
164 p_ntf[1] == 0x05) in phNxpNciHal_process_ext_rsp()
171 switch (p_ntf[4]) in phNxpNciHal_process_ext_rsp()
194 switch (p_ntf[5]) in phNxpNciHal_process_ext_rsp()
230 switch (p_ntf[6]) in phNxpNciHal_process_ext_rsp()
281 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
282 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
283 p_ntf[2] == 0x15 && in phNxpNciHal_process_ext_rsp()
284 p_ntf[4] == 0x01 && in phNxpNciHal_process_ext_rsp()
285 p_ntf[5] == 0x06 && in phNxpNciHal_process_ext_rsp()
286 p_ntf[6] == 0x06) in phNxpNciHal_process_ext_rsp()
290 p_ntf[21] = 0x01; in phNxpNciHal_process_ext_rsp()
291 p_ntf[22] = 0x01; in phNxpNciHal_process_ext_rsp()
300 else if (p_ntf[0] == 0x00 && in phNxpNciHal_process_ext_rsp()
301 p_ntf[1] == 0x00 && in phNxpNciHal_process_ext_rsp()
308 if (p_ntf[p_ntf[2]+ 2] == 0x00) in phNxpNciHal_process_ext_rsp()
311 p_ntf[2]--; in phNxpNciHal_process_ext_rsp()
316 p_ntf[p_ntf[2]+ 2] |= 0x01; in phNxpNciHal_process_ext_rsp()
319 else if (p_ntf[2] == 0x02 && in phNxpNciHal_process_ext_rsp()
320 p_ntf[1] == 0x00 && icode_detected == 1) in phNxpNciHal_process_ext_rsp()
324 else if(p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
325 p_ntf[1] == 0x06 && icode_detected == 1) in phNxpNciHal_process_ext_rsp()
332 p_ntf[0] == 0x40 && in phNxpNciHal_process_ext_rsp()
333 p_ntf[1] == 0x02 && in phNxpNciHal_process_ext_rsp()
334 p_ntf[2] == 0x01 && in phNxpNciHal_process_ext_rsp()
335 p_ntf[3] == 0x06 ) in phNxpNciHal_process_ext_rsp()
337 …IHAL_D ("> Deinit workaround for LLCP set_config 0x%x 0x%x 0x%x", p_ntf[21], p_ntf[22], p_ntf[23]); in phNxpNciHal_process_ext_rsp()
338 p_ntf[0] = 0x40; in phNxpNciHal_process_ext_rsp()
339 p_ntf[1] = 0x02; in phNxpNciHal_process_ext_rsp()
340 p_ntf[2] = 0x02; in phNxpNciHal_process_ext_rsp()
341 p_ntf[3] = 0x00; in phNxpNciHal_process_ext_rsp()
342 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
345 else if ((p_ntf[0] == 0x40) && (p_ntf[1] == 0x01)) in phNxpNciHal_process_ext_rsp()
347 int len = p_ntf[2] + 2; /*include 2 byte header*/ in phNxpNciHal_process_ext_rsp()
348 wFwVerRsp= (((uint32_t)p_ntf[len - 2])<< 16U)|(((uint32_t)p_ntf[len - 1])<< 8U)|p_ntf[len]; in phNxpNciHal_process_ext_rsp()
352 memcpy(bCoreInitRsp, p_ntf, *p_len); in phNxpNciHal_process_ext_rsp()
353 NXPLOG_NCIHAL_D ("NxpNci> FW Version: %x.%x.%x", p_ntf[len-2], p_ntf[len-1], p_ntf[len]); in phNxpNciHal_process_ext_rsp()
356 else if(p_ntf[0] == 0x42 && p_ntf[1] == 0x00 && ee_disc_done == 0x01) in phNxpNciHal_process_ext_rsp()
359 if(p_ntf[4] == 0x01) in phNxpNciHal_process_ext_rsp()
361 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
368 else if(p_ntf[0] == 0x61 && p_ntf[1] == 0x03 /*&& cleanup_timer!=0*/) in phNxpNciHal_process_ext_rsp()
373 if(0== (*(p_ntf + 2 + (*(p_ntf+2))))) in phNxpNciHal_process_ext_rsp()
381 RfDiscID=p_ntf[3]; in phNxpNciHal_process_ext_rsp()
382 RfProtocolType=p_ntf[4]; in phNxpNciHal_process_ext_rsp()
389 else if(p_ntf[0] == 0x41 && p_ntf[1] == 0x04 && cleanup_timer!=0) in phNxpNciHal_process_ext_rsp()
394 else if(p_ntf[0] == 0x60 && p_ntf[1] == 0x00) in phNxpNciHal_process_ext_rsp()
398 !(p_ntf[2] == 0x06 && p_ntf[3] == 0xA0 && p_ntf[4] == 0x00 in phNxpNciHal_process_ext_rsp()
399 && ((p_ntf[5] == 0xC9 && p_ntf[6] == 0x95 in phNxpNciHal_process_ext_rsp()
400 && p_ntf[7] == 0x00 && p_ntf[8] == 0x00) in phNxpNciHal_process_ext_rsp()
401 || (p_ntf[5] == 0x07 && p_ntf[6] == 0x39 in phNxpNciHal_process_ext_rsp()
402 && p_ntf[7] == 0xF2 && p_ntf[8] == 0x00)) )) in phNxpNciHal_process_ext_rsp()
411 else if(p_ntf[0] == 0x61 && p_ntf[1] == 0x05 in phNxpNciHal_process_ext_rsp()
412 && p_ntf[4] == 0x02 && p_ntf[5] == 0x80 in phNxpNciHal_process_ext_rsp()
413 && p_ntf[6] == 0x00 ) in phNxpNciHal_process_ext_rsp()
416 rf_technology_length_param = p_ntf[9]; in phNxpNciHal_process_ext_rsp()
417 if((p_ntf[ 9 + rf_technology_length_param] & 0x20) != 0x20) in phNxpNciHal_process_ext_rsp()
419 p_ntf[4] = 0x80; in phNxpNciHal_process_ext_rsp()
424 p_ntf[0] == 0x4F && in phNxpNciHal_process_ext_rsp()
425 p_ntf[1] == 0x11 && in phNxpNciHal_process_ext_rsp()
426 p_ntf[2] == 0x01 ) in phNxpNciHal_process_ext_rsp()
428 if (p_ntf[3] == 0x00) in phNxpNciHal_process_ext_rsp()
431 p_ntf[0] = 0x60; in phNxpNciHal_process_ext_rsp()
432 p_ntf[1] = 0x06; in phNxpNciHal_process_ext_rsp()
433 p_ntf[2] = 0x03; in phNxpNciHal_process_ext_rsp()
434 p_ntf[3] = 0x01; in phNxpNciHal_process_ext_rsp()
435 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
436 p_ntf[5] = 0x01; in phNxpNciHal_process_ext_rsp()
442 p_ntf[0] = 0x60; in phNxpNciHal_process_ext_rsp()
443 p_ntf[1] = 0x08; in phNxpNciHal_process_ext_rsp()
444 p_ntf[2] = 0x02; in phNxpNciHal_process_ext_rsp()
445 p_ntf[3] = 0xB2; in phNxpNciHal_process_ext_rsp()
446 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
452 p_ntf[0] == 0x6F && in phNxpNciHal_process_ext_rsp()
453 p_ntf[1] == 0x11 && in phNxpNciHal_process_ext_rsp()
454 p_ntf[2] == 0x01 ) in phNxpNciHal_process_ext_rsp()
456 if (p_ntf[3] == 0x01) in phNxpNciHal_process_ext_rsp()
459 p_ntf[0] = 0x00; in phNxpNciHal_process_ext_rsp()
460 p_ntf[1] = 0x00; in phNxpNciHal_process_ext_rsp()
461 p_ntf[2] = 0x01; in phNxpNciHal_process_ext_rsp()
462 p_ntf[3] = 0x7E; in phNxpNciHal_process_ext_rsp()
467 p_ntf[0] = 0x60; in phNxpNciHal_process_ext_rsp()
468 p_ntf[1] = 0x08; in phNxpNciHal_process_ext_rsp()
469 p_ntf[2] = 0x02; in phNxpNciHal_process_ext_rsp()
470 p_ntf[3] = 0xB2; in phNxpNciHal_process_ext_rsp()
471 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()