Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 23 of 23) sorted by relevance

/lk-master/external/platform/pico/rp2_common/pico_malloc/
A Dpico_malloc.c34 void *rc = __real_malloc(size); in __wrap_malloc() local
39 if (!rc || ((uint8_t *)rc) + size > (uint8_t*)PICO_DEBUG_MALLOC_LOW_WATER) { in __wrap_malloc()
40 printf("malloc %d %p->%p\n", (uint) size, rc, ((uint8_t *) rc) + size); in __wrap_malloc()
43 check_alloc(rc, size); in __wrap_malloc()
44 return rc; in __wrap_malloc()
51 void *rc = __real_calloc(count, size); in __wrap_calloc() local
56 if (!rc || ((uint8_t *)rc) + size > (uint8_t*)PICO_DEBUG_MALLOC_LOW_WATER) { in __wrap_calloc()
57 printf("calloc %d %p->%p\n", (uint) (count * size), rc, ((uint8_t *) rc) + size); in __wrap_calloc()
60 check_alloc(rc, size); in __wrap_calloc()
61 return rc; in __wrap_calloc()
/lk-master/external/platform/pico/rp2_common/hardware_divider/include/hardware/
A Ddivider.h104 divmod_result_t rc = (((divmod_result_t) sio_hw->div_remainder) << 32u) | sio_hw->div_quotient; in hw_divider_result_nowait() local
105 return rc; in hw_divider_result_nowait()
153 int32_t rc = sio_hw->div_remainder; in hw_divider_u32_remainder_wait() local
155 return rc; in hw_divider_u32_remainder_wait()
167 int32_t rc = sio_hw->div_remainder; in hw_divider_s32_remainder_wait() local
169 return rc; in hw_divider_s32_remainder_wait()
333 int32_t rc = sio_hw->div_remainder; in hw_divider_u32_remainder_inlined() local
335 return rc; in hw_divider_u32_remainder_inlined()
365 int32_t rc = sio_hw->div_remainder; in hw_divider_s32_remainder_inlined() local
367 return rc; in hw_divider_s32_remainder_inlined()
/lk-master/kernel/
A Dport.c216 rc = NO_ERROR; in port_open()
241 if (rc == NO_ERROR) { in port_open()
246 return rc; in port_open()
269 status_t rc = NO_ERROR; in port_group() local
289 if (rc == NO_ERROR) { in port_group()
294 return rc; in port_group()
310 status_t rc = NO_ERROR; in port_group_add() local
314 rc = ERR_TOO_BIG; in port_group_add()
328 return rc; in port_group_add()
460 rc = ERR_BAD_HANDLE; in port_read()
[all …]
/lk-master/external/platform/pico/rp2_common/pico_multicore/
A Dmulticore.c199 bool rc = false; in multicore_lockout_handshake() local
215 rc = true; in multicore_lockout_handshake()
217 } while (!rc); in multicore_lockout_handshake()
219 return rc; in multicore_lockout_handshake()
228 bool rc = multicore_lockout_handshake(LOCKOUT_MAGIC_START, until); in multicore_lockout_start_block_until() local
229 lockout_in_progress = rc; in multicore_lockout_start_block_until()
231 return rc; in multicore_lockout_start_block_until()
248 bool rc = multicore_lockout_handshake(LOCKOUT_MAGIC_END, until); in multicore_lockout_end_block_until() local
249 if (rc) { in multicore_lockout_end_block_until()
253 return rc; in multicore_lockout_end_block_until()
/lk-master/external/platform/pico/rp2_common/pico_stdio_usb/
A Dstdio_usb.c74 int rc = PICO_ERROR_NO_DATA; in stdio_usb_in_chars() local
77 rc = count ? count : PICO_ERROR_NO_DATA; in stdio_usb_in_chars()
80 return rc; in stdio_usb_in_chars()
103 bool rc = add_alarm_in_us(PICO_STDIO_USB_TASK_INTERVAL_US, timer_task, NULL, true); in stdio_usb_init() local
104 if (rc) { in stdio_usb_init()
107 return rc; in stdio_usb_init()
/lk-master/external/platform/pico/rp2_common/hardware_claim/
A Dclaim.c18 bool rc; in hw_is_claimed() local
21 rc = false; in hw_is_claimed()
24 rc = true; in hw_is_claimed()
27 return rc; in hw_is_claimed()
/lk-master/external/platform/pico/common/pico_util/include/pico/util/
A Dqueue.h70 int32_t rc = (int32_t)q->wptr - (int32_t)q->rptr; in queue_get_level_unsafe() local
71 if (rc < 0) { in queue_get_level_unsafe()
72 rc += + q->element_count + 1; in queue_get_level_unsafe()
74 return rc; in queue_get_level_unsafe()
/lk-master/external/platform/pico/common/pico_sync/
A Dsem.c62 bool rc; in __time_critical_func() local
68 rc = true; in __time_critical_func()
70 rc = false; in __time_critical_func()
73 return rc; in __time_critical_func()
/lk-master/lib/bio/
A Ddebug.c39 int rc = 0; in cmd_bio() local
84 rc = err; in cmd_bio()
105 rc = err; in cmd_bio()
147 rc = err; in cmd_bio()
167 rc = err; in cmd_bio()
185 rc = err; in cmd_bio()
209 rc = err; in cmd_bio()
218 rc = partition_publish(argv[2].str, offset); in cmd_bio()
219 dprintf(INFO, "partition_publish returns %d\n", rc); in cmd_bio()
269 return rc; in cmd_bio()
/lk-master/external/platform/pico/common/pico_time/
A Dtime.c220 bool rc = false; in alarm_pool_cancel_alarm() local
228 rc = ph_delete(pool->heap, id); in alarm_pool_cancel_alarm()
231 assert(rc); in alarm_pool_cancel_alarm()
240 return rc; in alarm_pool_cancel_alarm()
277 bool rc = false; in cancel_repeating_timer() local
279 rc = alarm_pool_cancel_alarm(timer->pool, timer->alarm_id); in cancel_repeating_timer()
282 return rc; in cancel_repeating_timer()
/lk-master/external/platform/pico/rp2_common/hardware_sync/
A Dsync.c32 uint rc = striped_spin_lock_num++; in next_striped_spin_lock_num() local
36 return rc; in next_striped_spin_lock_num()
/lk-master/lib/bcache/
A Dbcache.c75 int rc; in flush_block() local
77 rc = bio_write(cache->dev, block->ptr, in flush_block()
80 if (rc < 0) in flush_block()
85 rc = 0; in flush_block()
87 return (rc); in flush_block()
/lk-master/external/platform/pico/rp2_common/pico_stdio/
A Dstdio.c268 int rc = stdio_get_until(buf, sizeof(buf), make_timeout_time_us(timeout_us)); in getchar_timeout_us() local
269 if (rc < 0) return rc; in getchar_timeout_us()
270 assert(rc); in getchar_timeout_us()
/lk-master/external/lib/lwip/netif/ppp/
A Dipcp.c884 int rc = CONFACK; /* Final packet return code */ in ipcp_reqci() local
1131 rc != CONFACK) { /* but prior CI wasnt? */ in ipcp_reqci()
1140 if (rc == CONFREJ) { /* Rejecting prior CI? */ in ipcp_reqci()
1143 if (rc == CONFACK) { /* Ack'd all prior CIs? */ in ipcp_reqci()
1144 rc = CONFNAK; /* Not anymore... */ in ipcp_reqci()
1151 rc != CONFREJ) { /* but no prior ones? */ in ipcp_reqci()
1152 rc = CONFREJ; in ipcp_reqci()
1172 if (rc != CONFREJ && !ho->neg_addr && in ipcp_reqci()
1175 if (rc == CONFACK) { in ipcp_reqci()
1176 rc = CONFNAK; in ipcp_reqci()
[all …]
A Dlcp.c1236 int rc = CONFACK; /* Final packet return code */ in lcp_reqci() local
1579 rc != CONFACK) { /* but prior CI wasnt? */ in lcp_reqci()
1588 if (rc == CONFREJ) { /* Rejecting prior CI? */ in lcp_reqci()
1591 rc = CONFNAK; in lcp_reqci()
1595 rc = CONFREJ; in lcp_reqci()
1610 switch (rc) { in lcp_reqci()
1631 LCPDEBUG(LOG_INFO, ("lcp_reqci: returning CONF%s.\n", CODENAME(rc))); in lcp_reqci()
1632 return (rc); /* Return final code */ in lcp_reqci()
/lk-master/external/platform/pico/rp2_common/hardware_pio/
A Dpio.c82 bool rc = -1 != _pio_find_offset_for_program(pio, program); in pio_can_add_program() local
84 return rc; in pio_can_add_program()
98 bool rc = _pio_can_add_program_at_offset(pio, program, offset); in pio_can_add_program_at_offset() local
100 return rc; in pio_can_add_program_at_offset()
/lk-master/lib/fs/memfs/
A Dmemfs.c235 status_t rc = NO_ERROR; in memfs_truncate() local
243 rc = ERR_INVALID_ARGS; in memfs_truncate()
252 rc = ERR_NO_MEMORY; in memfs_truncate()
261 return rc; in memfs_truncate()
/lk-master/kernel/vm/
A Dvm.c115 status_t rc = arch_mmu_query(&aspace->arch_aspace, (vaddr_t)ptr, &pa, NULL); in vaddr_to_paddr() local
116 if (rc) in vaddr_to_paddr()
/lk-master/lib/fs/
A Ddebug.c139 int rc = 0; in cmd_fs() local
259 return rc; in cmd_fs()
/lk-master/lib/console/
A Dconsole.c511 int rc = env_get(varname, &buffer[outpos], buflen - outpos); in tokenize_command() local
514 int rc = -1; in tokenize_command() local
516 if (rc < 0) { in tokenize_command()
/lk-master/lib/fs/spifs/
A Dspifs.c1009 status_t rc = NO_ERROR; in spifs_truncate() local
1019 rc = ERR_INVALID_ARGS; in spifs_truncate()
1025 rc = spifs_commit_toc(spifs); in spifs_truncate()
1030 return rc; in spifs_truncate()
/lk-master/external/lib/lwip/core/
A Dtcp_in.c443 err_t rc; in tcp_listen_input() local
509 rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK); in tcp_listen_input()
510 if (rc != ERR_OK) { in tcp_listen_input()
512 return rc; in tcp_listen_input()
/lk-master/external/platform/pico/rp2_common/pico_printf/
A Dprintf.c921 bool rc = weak_raw_vprintf(fmt, va); in weak_raw_printf() local
923 return rc; in weak_raw_printf()

Completed in 40 milliseconds