Lines Matching refs:c

454     wifi_console_t *c = internal_info->c;  in whd_wifi_read_wlan_log_unsafe()  local
456 c = &internal_info->console; in whd_wifi_read_wlan_log_unsafe()
498 …hd_bus_transfer_backplane_bytes(whd_driver, BUS_READ, address, sizeof(c->log), (uint8_t *)&c->log); in whd_wifi_read_wlan_log_unsafe()
506 if (c->buf == NULL) in whd_wifi_read_wlan_log_unsafe()
508 c->bufsize = dtoh32(c->log.buf_size); in whd_wifi_read_wlan_log_unsafe()
509 c->buf = whd_mem_malloc(c->bufsize); in whd_wifi_read_wlan_log_unsafe()
510 if (c->buf == NULL) in whd_wifi_read_wlan_log_unsafe()
519 c->last = whd_driver->internal_info.con_lastpos; in whd_wifi_read_wlan_log_unsafe()
521 index = dtoh32(c->log.idx); in whd_wifi_read_wlan_log_unsafe()
524 if (index > c->bufsize) in whd_wifi_read_wlan_log_unsafe()
532 if (index == c->last) in whd_wifi_read_wlan_log_unsafe()
542 address = dtoh32(c->log.buf); in whd_wifi_read_wlan_log_unsafe()
543 …t = whd_bus_transfer_backplane_bytes(whd_driver, BUS_READ, address, c->bufsize, (uint8_t *)c->buf); in whd_wifi_read_wlan_log_unsafe()
550 while (c->last != index) in whd_wifi_read_wlan_log_unsafe()
554 if (c->last == index) in whd_wifi_read_wlan_log_unsafe()
559 if (c->last >= n) in whd_wifi_read_wlan_log_unsafe()
561 c->last -= n; in whd_wifi_read_wlan_log_unsafe()
565 c->last = c->bufsize - n; in whd_wifi_read_wlan_log_unsafe()
568 whd_driver->internal_info.con_lastpos = c->last; in whd_wifi_read_wlan_log_unsafe()
573 ch = c->buf[c->last]; in whd_wifi_read_wlan_log_unsafe()
574 c->last = (c->last + 1) % c->bufsize; in whd_wifi_read_wlan_log_unsafe()
590 whd_driver->internal_info.con_lastpos = c->last; in whd_wifi_read_wlan_log_unsafe()