Home
last modified time | relevance | path

Searched full:unit (Results 1 – 25 of 166) sorted by relevance

1234567

/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/netif/ppp/
H A Dauth.c222 static void set_allowed_addrs (int unit, struct wordlist *addrs);
377 link_required(int unit) in link_required() argument
379 LWIP_UNUSED_ARG(unit); in link_required()
381 AUTHDEBUG(LOG_INFO, ("link_required: %d\n", unit)); in link_required()
389 link_terminated(int unit) in link_terminated() argument
391 AUTHDEBUG(LOG_INFO, ("link_terminated: %d\n", unit)); in link_terminated()
392 if (lcp_phase[unit] == PHASE_DEAD) { in link_terminated()
398 lcp_phase[unit] = PHASE_DEAD; in link_terminated()
400 pppLinkTerminated(unit); in link_terminated()
407 link_down(int unit) in link_down() argument
[all …]
H A Dlcp.c240 lcp_init(int unit) in lcp_init() argument
242 fsm *f = &lcp_fsm[unit]; in lcp_init()
243 lcp_options *wo = &lcp_wantoptions[unit]; in lcp_init()
244 lcp_options *ao = &lcp_allowoptions[unit]; in lcp_init()
246 f->unit = unit; in lcp_init()
285 memset(xmit_accm[unit], 0, sizeof(xmit_accm[0])); in lcp_init()
286 xmit_accm[unit][15] = 0x60; in lcp_init()
287 xmit_accm[unit][0] = (u_char)((ao->asyncmap & 0xFF)); in lcp_init()
288 xmit_accm[unit][1] = (u_char)((ao->asyncmap >> 8) & 0xFF); in lcp_init()
289 xmit_accm[unit][2] = (u_char)((ao->asyncmap >> 16) & 0xFF); in lcp_init()
[all …]
H A Dipcp.c176 ipcp_init(int unit) in ipcp_init() argument
178 fsm *f = &ipcp_fsm[unit]; in ipcp_init()
179 ipcp_options *wo = &ipcp_wantoptions[unit]; in ipcp_init()
180 ipcp_options *ao = &ipcp_allowoptions[unit]; in ipcp_init()
182 f->unit = unit; in ipcp_init()
185 fsm_init(&ipcp_fsm[unit]); in ipcp_init()
218 ipcp_open(int unit) in ipcp_open() argument
220 fsm_open(&ipcp_fsm[unit]); in ipcp_open()
228 ipcp_close(int unit, char *reason) in ipcp_close() argument
230 fsm_close(&ipcp_fsm[unit], reason); in ipcp_close()
[all …]
H A Dchap.c140 chap_state chap[NUM_PPP]; /* CHAP state; one for each unit */
155 * ChapInit - Initialize a CHAP unit.
158 ChapInit(int unit) in ChapInit() argument
160 chap_state *cstate = &chap[unit]; in ChapInit()
163 cstate->unit = unit; in ChapInit()
177 ChapAuthWithPeer(int unit, char *our_name, u_char digest) in ChapAuthWithPeer() argument
179 chap_state *cstate = &chap[unit]; in ChapAuthWithPeer()
204 ChapAuthPeer(int unit, char *our_name, u_char digest) in ChapAuthPeer() argument
206 chap_state *cstate = &chap[unit]; in ChapAuthPeer()
243 auth_peer_fail(cstate->unit, PPP_CHAP); in ChapChallengeTimeout()
[all …]
H A Dpap.c121 upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */
133 * upap_init - Initialize a UPAP unit.
136 upap_init(int unit) in upap_init() argument
138 upap_state *u = &upap[unit]; in upap_init()
140 UPAPDEBUG(LOG_INFO, ("upap_init: %d\n", unit)); in upap_init()
141 u->us_unit = unit; in upap_init()
160 upap_authwithpeer(int unit, char *user, char *password) in upap_authwithpeer() argument
162 upap_state *u = &upap[unit]; in upap_authwithpeer()
165 unit, user, password, u->us_clientstate)); in upap_authwithpeer()
192 upap_authpeer(int unit) in upap_authpeer() argument
[all …]
H A Dppp.c170 /** unit number / ppp descriptor */
350 PPPDEBUG(LOG_DEBUG, ("pppRecvWakeup: unit %d\n", pd)); in pppRecvWakeup()
361 PPPDEBUG(LOG_DEBUG, ("pppLinkTerminated: unit %d\n", pd)); in pppLinkTerminated()
376 …PPPDEBUG(LOG_DEBUG, ("pppLinkTerminated: unit %d: linkStatusCB=%p errCode=%d\n", pd, pc->linkStatu… in pppLinkTerminated()
390 PPPDEBUG(LOG_DEBUG, ("pppLinkDown: unit %d\n", pd)); in pppLinkDown()
408 PPPDEBUG(LOG_DEBUG, ("pppStart: unit %d\n", pd)); in pppStart()
418 PPPDEBUG(LOG_DEBUG, ("pppStop: unit %d\n", pd)); in pppStop()
426 PPPDEBUG(LOG_DEBUG, ("pppHupCB: unit %d\n", pd)); in pppHup()
582 PPPDEBUG(LOG_INFO, ("pppOverSerialOpen: unit %d: Connecting\n", pd)); in pppOverSerialOpen()
672 PPPDEBUG(LOG_DEBUG, ("pppClose: unit %d kill_link -> pppStop\n", pd)); in pppClose()
[all …]
H A Dppp_impl.h241 void (*init) (int unit);
243 void (*input) (int unit, u_char *pkt, int len);
245 void (*protrej) (int unit);
247 void (*lowerup) (int unit);
249 void (*lowerdown) (int unit);
251 void (*open) (int unit);
253 void (*close) (int unit, char *reason);
260 void (*datainput) (int unit, u_char *pkt, int len);
268 int (*demand_conf) (int unit);
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/netif/ppp/
H A Decp.c84 static void ecp_init (int unit);
86 static void ecp_open (int unit);
87 static void ecp_close (int unit, char *);
88 static void ecp_lowerup (int unit);
90 static void ecp_input (int unit, u_char *pkt, int len);
91 static void ecp_protrej (int unit);
99 static void ecp_datainput (int unit, u_char *pkt, int len);
159 ecp_init(unit) in ecp_init() argument
160 int unit; in ecp_init()
162 fsm *f = &ecp_fsm[unit];
[all …]
H A Dmultilink.c73 static int owns_unit (TDB_DATA pid, int unit);
124 int unit, pppd_pid; in mp_join_bundle() local
209 unit = -1; in mp_join_bundle()
221 parse_num(rec.dptr, "IFNAME=ppp", &unit); in mp_join_bundle()
225 || !owns_unit(pid, unit)) in mp_join_bundle()
226 unit = -1; in mp_join_bundle()
232 if (unit >= 0) { in mp_join_bundle()
233 /* attach to existing unit */ in mp_join_bundle()
234 if (bundle_attach(unit)) { in mp_join_bundle()
428 * Check whether the pppd identified by `key' still owns ppp unit `unit'.
[all …]
H A Dauth.c556 void start_link(unit)
557 int unit;
559 ppp_pcb *pcb = &ppp_pcb_list[unit];
650 * can happen that another pppd gets the same unit and then in link_terminated()
658 * the ppp unit back to the loopback. Set the in link_terminated()
762 set_allowed_addrs(unit, NULL, NULL); in link_established()
786 set_allowed_addrs(unit, NULL, NULL); in link_established()
862 ppp_pcb *pcb = &ppp_pcb_list[unit]; in network_phase()
865 lcp_options *go = &lcp_gotoptions[unit]; in network_phase()
962 && !ecp_gotoptions[unit].required in start_networks()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/netif/ppp/
H A Decp.c84 static void ecp_init (int unit);
86 static void ecp_open (int unit);
87 static void ecp_close (int unit, char *);
88 static void ecp_lowerup (int unit);
90 static void ecp_input (int unit, u_char *pkt, int len);
91 static void ecp_protrej (int unit);
99 static void ecp_datainput (int unit, u_char *pkt, int len);
159 ecp_init(unit) in ecp_init() argument
160 int unit; in ecp_init()
162 fsm *f = &ecp_fsm[unit];
[all …]
H A Dmultilink.c73 static int owns_unit (TDB_DATA pid, int unit);
124 int unit, pppd_pid; in mp_join_bundle() local
209 unit = -1; in mp_join_bundle()
221 parse_num(rec.dptr, "IFNAME=ppp", &unit); in mp_join_bundle()
225 || !owns_unit(pid, unit)) in mp_join_bundle()
226 unit = -1; in mp_join_bundle()
232 if (unit >= 0) { in mp_join_bundle()
233 /* attach to existing unit */ in mp_join_bundle()
234 if (bundle_attach(unit)) { in mp_join_bundle()
428 * Check whether the pppd identified by `key' still owns ppp unit `unit'.
[all …]
H A Dauth.c556 void start_link(unit)
557 int unit;
559 ppp_pcb *pcb = &ppp_pcb_list[unit];
650 * can happen that another pppd gets the same unit and then in link_terminated()
658 * the ppp unit back to the loopback. Set the in link_terminated()
762 set_allowed_addrs(unit, NULL, NULL); in link_established()
786 set_allowed_addrs(unit, NULL, NULL); in link_established()
862 ppp_pcb *pcb = &ppp_pcb_list[unit]; in network_phase()
865 lcp_options *go = &lcp_gotoptions[unit]; in network_phase()
962 && !ecp_gotoptions[unit].required in start_networks()
[all …]
/nrf52832-nimble/rt-thread/components/utilities/utest/
H A Dutest.h61 * @member run_timeout Testcase maximum test time (Time unit: seconds).
79 * @brief Unit test handler function pointer.
87 * @brief Unit test function executor.
90 * @param func Unit test function.
91 * @param unit_func_name Unit test function name.
129 * @param timeout Testcase maximum test time (Time unit: seconds).
148 * @brief Unit test function executor.
151 * @param test_unit_func Unit test function
/nrf52832-nimble/rt-thread/tools/
H A Dcodeblocks.py49 Unit = SubElement(elem, 'Unit')
50 Unit.set('filename', path.decode(fs_encoding))
61 Unit = SubElement(parent, 'Unit')
62 Unit.set('filename', path.decode(fs_encoding))
63 Option = SubElement(Unit, 'Option')
/nrf52832-nimble/rt-thread/components/drivers/cputime/
H A Dcputime.c55 float unit = clock_cpu_getres(); in clock_cpu_microsecond() local
57 return (uint32_t)((cpu_tick * unit) / 1000); in clock_cpu_microsecond()
70 float unit = clock_cpu_getres(); in clock_cpu_millisecond() local
72 return (uint32_t)((cpu_tick * unit) / (1000 * 1000)); in clock_cpu_millisecond()
/nrf52832-nimble/rt-thread/components/libc/time/
H A Dclock_time.c134 float unit = 0; in clock_gettime() local
137 unit = clock_cpu_getres(); in clock_gettime()
140 tp->tv_sec = ((int)(cpu_tick * unit)) / NANOSECOND_PER_SECOND; in clock_gettime()
141 tp->tv_nsec = ((int)(cpu_tick * unit)) % NANOSECOND_PER_SECOND; in clock_gettime()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/test/unit/
H A Dlwipopts.h35 /* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
40 /* Minimal changes to opt.h required for tcp unit tests: */
47 /* Minimal changes to opt.h required for etharp unit tests: */
/nrf52832-nimble/packages/NimBLE-latest/porting/examples/linux/
H A DREADME.md65 3. Build and run the unit tests
68 has a suite of unit tests.
71 cd tests/unit/porting/npl
/nrf52832-nimble/rt-thread/components/drivers/sdio/
H A Dsd.c93 card->card_capacity >>= 10; /* unit:KB */ in mmcsd_parse_csd()
100 unit = GET_BITS(resp, 112, 3); in mmcsd_parse_csd()
101 csd->tacc_ns = (tacc_uint[unit] * tacc_value[val] + 9) / 10; in mmcsd_parse_csd()
105 unit = GET_BITS(resp, 96, 3); in mmcsd_parse_csd()
106 csd->max_data_rate = tran_unit[unit] * tran_value[val]; in mmcsd_parse_csd()
109 unit = GET_BITS(resp, 47, 3); in mmcsd_parse_csd()
111 csd->device_size = (1 + val) << (unit + 2); in mmcsd_parse_csd()
142 card->card_capacity = (csd->c_size + 1) * 512; /* unit:KB */ in mmcsd_parse_csd()
152 unit = GET_BITS(resp, 96, 3); in mmcsd_parse_csd()
153 csd->max_data_rate = tran_unit[unit] * tran_value[val]; in mmcsd_parse_csd()
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/test/unit/
H A Dlwipopts.h35 /* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
44 /* Minimal changes to opt.h required for tcp unit tests: */
59 /* Minimal changes to opt.h required for etharp unit tests: */
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/test/fuzz/
H A Dlwipopts.h35 /* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
55 /* Minimal changes to opt.h required for tcp unit tests: */
65 /* Minimal changes to opt.h required for etharp unit tests: */
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/test/fuzz/
H A Dlwipopts.h35 /* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
61 /* Minimal changes to opt.h required for tcp unit tests: */
72 /* Minimal changes to opt.h required for etharp unit tests: */
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/test/unit/
H A Dlwipopts.h43 /* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */
56 /* Minimal changes to opt.h required for tcp unit tests: */
71 /* Minimal changes to opt.h required for etharp unit tests: */
/nrf52832-nimble/rt-thread/components/drivers/include/drivers/
H A Drt_drv_pwm.h25 rt_uint32_t period; /* unit:ns 1ns~4.29s:1Ghz~0.23hz */
26 rt_uint32_t pulse; /* unit:ns (pulse<=period) */

1234567