Lines Matching refs:p_ntf
106 NFCSTATUS phNxpNciHal_process_ext_rsp (uint8_t *p_ntf, uint16_t *p_len) in phNxpNciHal_process_ext_rsp() argument
112 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
113 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
114 p_ntf[4] == 0x03 && in phNxpNciHal_process_ext_rsp()
115 p_ntf[5] == 0x05 && in phNxpNciHal_process_ext_rsp()
118 p_ntf[4] = 0xFF; in phNxpNciHal_process_ext_rsp()
119 p_ntf[5] = 0xFF; in phNxpNciHal_process_ext_rsp()
120 p_ntf[6] = 0xFF; in phNxpNciHal_process_ext_rsp()
124 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
125 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
126 p_ntf[4] == 0x01 && in phNxpNciHal_process_ext_rsp()
127 p_ntf[5] == 0x05 && in phNxpNciHal_process_ext_rsp()
128 p_ntf[6] == 0x02 && in phNxpNciHal_process_ext_rsp()
133 p_ntf[5] = 0x03; in phNxpNciHal_process_ext_rsp()
138 if(p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
139 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
140 p_ntf[4] == 0x02 && in phNxpNciHal_process_ext_rsp()
141 p_ntf[5] == 0x04 && in phNxpNciHal_process_ext_rsp()
152 if (phNxpNciHal_NfcDep_comapre_ntf(p_ntf, *p_len) == NFCSTATUS_FAILED) in phNxpNciHal_process_ext_rsp()
154 status = phNxpNciHal_NfcDep_rsp_ext(p_ntf,p_len); in phNxpNciHal_process_ext_rsp()
165 status = phNxpNciHal_kovio_rsp_ext(p_ntf,p_len); in phNxpNciHal_process_ext_rsp()
167 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
168 p_ntf[1] == 0x05) in phNxpNciHal_process_ext_rsp()
177 switch (p_ntf[4]) in phNxpNciHal_process_ext_rsp()
202 switch (p_ntf[5]) in phNxpNciHal_process_ext_rsp()
238 switch (p_ntf[6]) in phNxpNciHal_process_ext_rsp()
289 if (p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
290 p_ntf[1] == 0x05 && in phNxpNciHal_process_ext_rsp()
291 p_ntf[2] == 0x15 && in phNxpNciHal_process_ext_rsp()
292 p_ntf[4] == 0x01 && in phNxpNciHal_process_ext_rsp()
293 p_ntf[5] == 0x06 && in phNxpNciHal_process_ext_rsp()
294 p_ntf[6] == 0x06) in phNxpNciHal_process_ext_rsp()
298 p_ntf[21] = 0x01; in phNxpNciHal_process_ext_rsp()
299 p_ntf[22] = 0x01; in phNxpNciHal_process_ext_rsp()
306 else if (p_ntf[0] == 0x00 && in phNxpNciHal_process_ext_rsp()
307 p_ntf[1] == 0x00 && in phNxpNciHal_process_ext_rsp()
314 if (p_ntf[p_ntf[2]+ 2] == 0x00) in phNxpNciHal_process_ext_rsp()
317 p_ntf[2]--; in phNxpNciHal_process_ext_rsp()
322 p_ntf[p_ntf[2]+ 2] |= 0x01; in phNxpNciHal_process_ext_rsp()
325 else if (p_ntf[2] == 0x02 && in phNxpNciHal_process_ext_rsp()
326 p_ntf[1] == 0x00 && icode_detected == 1) in phNxpNciHal_process_ext_rsp()
330 else if(p_ntf[0] == 0x61 && in phNxpNciHal_process_ext_rsp()
331 p_ntf[1] == 0x06 && icode_detected == 1) 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] == 0x01 && in phNxpNciHal_process_ext_rsp()
341 p_ntf[3] == 0x06 ) in phNxpNciHal_process_ext_rsp()
343 …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()
344 p_ntf[0] = 0x40; in phNxpNciHal_process_ext_rsp()
345 p_ntf[1] = 0x02; in phNxpNciHal_process_ext_rsp()
346 p_ntf[2] = 0x02; in phNxpNciHal_process_ext_rsp()
347 p_ntf[3] = 0x00; in phNxpNciHal_process_ext_rsp()
348 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
351 else if ((p_ntf[0] == 0x40) && (p_ntf[1] == 0x01)) in phNxpNciHal_process_ext_rsp()
353 int len = p_ntf[2] + 2; /*include 2 byte header*/ in phNxpNciHal_process_ext_rsp()
354 wFwVerRsp= (((uint32_t)p_ntf[len - 2])<< 16U)|(((uint32_t)p_ntf[len - 1])<< 8U)|p_ntf[len]; in phNxpNciHal_process_ext_rsp()
358 memcpy(bCoreInitRsp, p_ntf, *p_len); in phNxpNciHal_process_ext_rsp()
359 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()
360 fw_maj_ver = p_ntf[len-1]; in phNxpNciHal_process_ext_rsp()
361 rom_version = p_ntf[len-2]; in phNxpNciHal_process_ext_rsp()
364 else if(p_ntf[0] == 0x42 && p_ntf[1] == 0x00 && ee_disc_done == 0x01) in phNxpNciHal_process_ext_rsp()
367 if(p_ntf[4] == 0x01) in phNxpNciHal_process_ext_rsp()
369 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
376 else if(p_ntf[0] == 0x61 && p_ntf[1] == 0x03 /*&& cleanup_timer!=0*/) in phNxpNciHal_process_ext_rsp()
381 if(0== (*(p_ntf + 2 + (*(p_ntf+2))))) in phNxpNciHal_process_ext_rsp()
389 RfDiscID=p_ntf[3]; in phNxpNciHal_process_ext_rsp()
390 RfProtocolType=p_ntf[4]; in phNxpNciHal_process_ext_rsp()
397 else if(p_ntf[0] == 0x41 && p_ntf[1] == 0x04 && cleanup_timer!=0) in phNxpNciHal_process_ext_rsp()
402 else if(p_ntf[0] == 0x60 && p_ntf[1] == 0x00) in phNxpNciHal_process_ext_rsp()
407 !(p_ntf[2] == 0x06 && p_ntf[3] == 0xA0 && p_ntf[4] == 0x00 in phNxpNciHal_process_ext_rsp()
408 && ((p_ntf[5] == 0xC9 && p_ntf[6] == 0x95 in phNxpNciHal_process_ext_rsp()
409 && p_ntf[7] == 0x00 && p_ntf[8] == 0x00) in phNxpNciHal_process_ext_rsp()
410 || (p_ntf[5] == 0x07 && p_ntf[6] == 0x39 in phNxpNciHal_process_ext_rsp()
411 && p_ntf[7] == 0xF2 && p_ntf[8] == 0x00)) )) in phNxpNciHal_process_ext_rsp()
421 else if(p_ntf[0] == 0x61 && p_ntf[1] == 0x05 in phNxpNciHal_process_ext_rsp()
422 && p_ntf[4] == 0x02 && p_ntf[5] == 0x80 in phNxpNciHal_process_ext_rsp()
423 && p_ntf[6] == 0x00 ) in phNxpNciHal_process_ext_rsp()
426 rf_technology_length_param = p_ntf[9]; in phNxpNciHal_process_ext_rsp()
427 if((p_ntf[ 9 + rf_technology_length_param] & 0x20) != 0x20) in phNxpNciHal_process_ext_rsp()
429 p_ntf[4] = 0x80; in phNxpNciHal_process_ext_rsp()
434 p_ntf[0] == 0x4F && in phNxpNciHal_process_ext_rsp()
435 p_ntf[1] == 0x11 && in phNxpNciHal_process_ext_rsp()
436 p_ntf[2] == 0x01 ) in phNxpNciHal_process_ext_rsp()
438 if (p_ntf[3] == 0x00) in phNxpNciHal_process_ext_rsp()
441 p_ntf[0] = 0x60; in phNxpNciHal_process_ext_rsp()
442 p_ntf[1] = 0x06; in phNxpNciHal_process_ext_rsp()
443 p_ntf[2] = 0x03; in phNxpNciHal_process_ext_rsp()
444 p_ntf[3] = 0x01; in phNxpNciHal_process_ext_rsp()
445 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
446 p_ntf[5] = 0x01; in phNxpNciHal_process_ext_rsp()
452 p_ntf[0] = 0x60; in phNxpNciHal_process_ext_rsp()
453 p_ntf[1] = 0x08; in phNxpNciHal_process_ext_rsp()
454 p_ntf[2] = 0x02; in phNxpNciHal_process_ext_rsp()
455 p_ntf[3] = 0xB2; in phNxpNciHal_process_ext_rsp()
456 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()
462 p_ntf[0] == 0x6F && in phNxpNciHal_process_ext_rsp()
463 p_ntf[1] == 0x11 && in phNxpNciHal_process_ext_rsp()
464 p_ntf[2] == 0x01 ) in phNxpNciHal_process_ext_rsp()
466 if (p_ntf[3] == 0x01) in phNxpNciHal_process_ext_rsp()
469 p_ntf[0] = 0x00; in phNxpNciHal_process_ext_rsp()
470 p_ntf[1] = 0x00; in phNxpNciHal_process_ext_rsp()
471 p_ntf[2] = 0x01; in phNxpNciHal_process_ext_rsp()
472 p_ntf[3] = 0x7E; in phNxpNciHal_process_ext_rsp()
477 p_ntf[0] = 0x60; in phNxpNciHal_process_ext_rsp()
478 p_ntf[1] = 0x08; in phNxpNciHal_process_ext_rsp()
479 p_ntf[2] = 0x02; in phNxpNciHal_process_ext_rsp()
480 p_ntf[3] = 0xB2; in phNxpNciHal_process_ext_rsp()
481 p_ntf[4] = 0x00; in phNxpNciHal_process_ext_rsp()