Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 113) sorted by relevance

12345

/lk-master/dev/keys/
A Dkeys.c43 void keys_post_event(uint16_t code, int16_t value) { in keys_post_event() argument
44 if (code >= MAX_KEYS) { in keys_post_event()
45 dprintf(INFO, "Invalid keycode posted: %d\n", code); in keys_post_event()
51 bitmap_set(key_bitmap, code); in keys_post_event()
53 bitmap_clear(key_bitmap, code); in keys_post_event()
58 int keys_get_state(uint16_t code) { in keys_get_state() argument
59 if (code >= MAX_KEYS) { in keys_get_state()
60 dprintf(INFO, "Invalid keycode requested: %d\n", code); in keys_get_state()
63 return bitmap_test(key_bitmap, code); in keys_get_state()
/lk-master/arch/m68k/
A Dexceptions.c19 void m68k_exception(void *frame, uint8_t code) { in m68k_exception() argument
20 LTRACEF("frame %p, code %hhu\n", frame, code); in m68k_exception()
22 panic("unimplemented exception %hhu\n", code); in m68k_exception()
25 void m68k_irq(void *frame, uint8_t code) { in m68k_irq() argument
26 LTRACEF("frame %p, code %hhu\n", frame, code); in m68k_irq()
28 if (unlikely(code == 0)) { in m68k_irq()
33 enum handler_return ret = m68k_platform_irq(code); in m68k_irq()
A Dlinker.ld7 code PT_LOAD FLAGS(5); /* PF_R|PF_X */
25 } :code
/lk-master/app/moot/
A Dusbboot.c99 uint32_t code; member
125 resp->code = USB_RESP_NO_ERROR; in handle_usb_cmd()
130 resp->code = USB_RESP_BAD_DATA_LEN; in handle_usb_cmd()
136 resp->code = USB_RESP_BAD_MAGIC; in handle_usb_cmd()
166 resp->code = USB_RESP_RECV_READY; in handle_usb_cmd()
183 resp->code = USB_RESP_BAD_DATA_LEN; in handle_usb_cmd()
197 resp->code = USB_RESP_NO_ERROR; in handle_usb_cmd()
203 resp->code = USB_RESP_NO_ERROR; in handle_usb_cmd()
224 resp->code = USB_RESP_XMIT_READY; in handle_usb_cmd()
230 resp->code = USB_RESP_NO_ERROR; in handle_usb_cmd()
[all …]
/lk-master/dev/
A Ddriver.c23 status_t code = device_init(dev); in device_init_all() local
25 if (code < 0) { in device_init_all()
27 dev->driver->type, dev->name, code); in device_init_all()
29 res = code; in device_init_all()
41 status_t code = device_fini(dev); in device_fini_all() local
43 if (code < 0) { in device_fini_all()
45 dev->driver->type, dev->name, code); in device_fini_all()
47 res = code; in device_fini_all()
/lk-master/external/platform/pico/rp2_common/pico_bootrom/
A Dbootrom.c13 typedef void *(*rom_table_lookup_fn)(uint16_t *table, uint32_t code);
18 void *rom_func_lookup(uint32_t code) { in rom_func_lookup() argument
21 return rom_table_lookup(func_table, code); in rom_func_lookup()
24 void *rom_data_lookup(uint32_t code) { in rom_data_lookup() argument
27 return rom_table_lookup(data_table, code); in rom_data_lookup()
/lk-master/external/lib/lwip/netif/ppp/
A Dchap.c367 u_char code, id; in ChapInput() local
379 GETCHAR(code, inp); in ChapInput()
395 switch (code) { in ChapInput()
525 int code; in ChapReceiveResponse() local
587 code = CHAP_FAILURE; in ChapReceiveResponse()
620 if (code == CHAP_SUCCESS) { in ChapReceiveResponse()
764 PUTCHAR(code, outp); in ChapSendStatus()
851 int code, id, len; in ChapPrintPkt() local
858 GETCHAR(code, p); in ChapPrintPkt()
865 if (code >= 1 && code <= sizeof(ChapCodenames) / sizeof(char *)) { in ChapPrintPkt()
[all …]
A Dfsm.c385 u_char code, id; in fsm_input() local
397 GETCHAR(code, inp); in fsm_input()
421 switch (code) { in fsm_input()
464 int code, reject_if_disagree; in fsm_rconfreq() local
502 code = CONFACK; in fsm_rconfreq()
508 if (code == CONFACK) { in fsm_rconfreq()
524 if( code == CONFNAK ) { in fsm_rconfreq()
735 u_char code, id; in fsm_rcoderej() local
744 GETCHAR(code, inp); in fsm_rcoderej()
747 PROTO_NAME(f), code, id)); in fsm_rcoderej()
[all …]
A Dlcp.c411 switch( code ){ in lcp_extcode()
787 code \ in lcp_nakci()
799 code \ in lcp_nakci()
810 code \ in lcp_nakci()
821 code \ in lcp_nakci()
832 code \ in lcp_nakci()
844 code \ in lcp_nakci()
1783 GETCHAR(code, p); in lcp_printpkt()
1790 if (code >= 1 && code <= sizeof(lcp_codenames) / sizeof(char *)) { in lcp_printpkt()
1797 switch (code) { in lcp_printpkt()
[all …]
A Dpap.c338 u_char code, id; in upap_input() local
350 GETCHAR(code, inp); in upap_input()
366 switch (code) { in upap_input()
380 …UPAPDEBUG(LOG_INFO, ("pap_input: UNHANDLED default: code: %d, id: %d, len: %d.\n", code, id, len)); in upap_input()
584 upap_sresp(upap_state *u, u_char code, u_char id, char *msg, int msglen) in upap_sresp() argument
593 PUTCHAR(code, outp); in upap_sresp()
600 UPAPDEBUG(LOG_INFO, ("pap_sresp: Sent code %d, id %d s=%d\n", code, id, u->us_clientstate)); in upap_sresp()
/lk-master/external/lib/lwip/core/ipv4/
A Dicmp.c65 static void icmp_send_response(struct pbuf *p, u8_t type, u8_t code);
81 u8_t code; in icmp_input() local
100 code = *(((u8_t *)p->payload)+1); in icmp_input()
231 (s16_t)type, (s16_t)code)); in icmp_input()
291 icmp_send_response(struct pbuf *p, u8_t type, u8_t code) in icmp_send_response() argument
318 icmphdr->code = code; in icmp_send_response()
/lk-master/external/lib/lwip/include/ipv4/lwip/
A Dicmp.h81 PACK_STRUCT_FIELD(u8_t code);
92 #define ICMPH_CODE(hdr) ((hdr)->code)
96 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c))
/lk-master/external/platform/cc13xx/cc13xxware/
A DREADME4 and their contents removed (leaving only the source code).
13 The code is provided in source code and is licensed under a TI BSD open
/lk-master/external/lib/lwip/netif/
A DFILES2 do not contain any hardware or architecture specific code. The files
7 Ethernet. The code in this file should be used together with
15 network device drivers. It uses the etharp.c ARP code.
29 the source code has been reordered a bit.
/lk-master/external/platform/pico/rp2_common/pico_bootrom/include/pico/
A Dbootrom.h37 void *rom_func_lookup(uint32_t code);
45 void *rom_data_lookup(uint32_t code);
/lk-master/dev/include/dev/
A Dkeys.h85 void keys_post_event(uint16_t code, int16_t value);
86 int keys_get_state(uint16_t code);
/lk-master/external/platform/nrfx/templates/
A Dnrfx_log.h161 static inline const char* nrfx_get_err_str(nrfx_err_t code) { in nrfx_get_err_str() argument
162 switch(code) { in nrfx_get_err_str()
/lk-master/external/platform/cc13xx/cc13xxware/inc/
A Dasmdefs.h130 #define __TEXT__ area ||.text||, code, readonly, align=2
133 #define __TEXT_NOROOT__ area ||.text||, code, readonly, align=2
/lk-master/external/platform/stellaris/ti-driverlib/inc/
A Dasmdefs.h169 #define __TEXT__ area ||.text||, code, readonly, align=2
172 #define __TEXT_NOROOT__ area ||.text||, code, readonly, align=2
/lk-master/external/lib/lwip/core/snmp/
A Dasn1_enc.c499 u8_t code; in snmp_asn1_enc_oid() local
501 code = (u8_t)(sub_id >> shift); in snmp_asn1_enc_oid()
502 if ((code != 0) || (tail != 0)) in snmp_asn1_enc_oid()
505 *msg_ptr = code | 0x80; in snmp_asn1_enc_oid()
/lk-master/external/platform/pico/rp2_common/pico_mem_ops/
A Dmem_ops_aeabi.S29 # NOTE: All code sections are placed in RAM (at the expense of some veneer cost for calls from flas…
30 # otherwise code using basic c division operators will require XIP flash access.
/lk-master/external/platform/lpc15xx/lpcopen/periph_iap/example/
A Dreadme.dox29 * this code.
36 * example, the code is running from FLASH and a FLASH block not used for the
37 * executing code will be erased and programmed with some data. The example also
/lk-master/arch/riscv/
A Dlinker-onesegment.ld7 code PT_LOAD FLAGS(5); /* PF_R|PF_X */
26 } :code
/lk-master/external/platform/lpc15xx/lpcopen/periph_flashiap/example/
A Dreadme.dox30 * this code.
37 * generating a FLASH signature. For this example, the code is running from FLASH
38 * and a FLASH block not used for the executing code will be erased and programmed
/lk-master/external/platform/pico/common/
A DREADME.md1 This directory code that is common to all builds regardless of `PICO_PLATFORM`. It is a mix

Completed in 59 milliseconds

12345