Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 1598) sorted by relevance

12345678910>>...64

/Zephyr-latest/drivers/rtc/
Drtc_shell.c19 static const char *consume_chars(const char *s, char *dest, unsigned int cnt) in consume_chars() argument
21 if (strlen(s) < cnt) { in consume_chars()
25 memcpy(dest, s, cnt); in consume_chars()
28 return s + cnt; in consume_chars()
31 static const char *consume_char(const char *s, char ch) in consume_char() argument
33 if (*s != ch) { in consume_char()
36 return ++s; in consume_char()
39 static const char *consume_date(const char *s, struct tm *tm_time) in consume_date() argument
45 s = consume_chars(s, year, 4); in consume_date()
46 if (!s) { in consume_date()
[all …]
/Zephyr-latest/drivers/disk/nvme/
Dnvme.h341 void nvme_controller_data_swapbytes(struct nvme_controller_data *s) in nvme_controller_data_swapbytes() argument
344 s->vid = sys_le16_to_cpu(s->vid); in nvme_controller_data_swapbytes()
345 s->ssvid = sys_le16_to_cpu(s->ssvid); in nvme_controller_data_swapbytes()
346 s->ctrlr_id = sys_le16_to_cpu(s->ctrlr_id); in nvme_controller_data_swapbytes()
347 s->ver = sys_le32_to_cpu(s->ver); in nvme_controller_data_swapbytes()
348 s->rtd3r = sys_le32_to_cpu(s->rtd3r); in nvme_controller_data_swapbytes()
349 s->rtd3e = sys_le32_to_cpu(s->rtd3e); in nvme_controller_data_swapbytes()
350 s->oaes = sys_le32_to_cpu(s->oaes); in nvme_controller_data_swapbytes()
351 s->ctratt = sys_le32_to_cpu(s->ctratt); in nvme_controller_data_swapbytes()
352 s->rrls = sys_le16_to_cpu(s->rrls); in nvme_controller_data_swapbytes()
[all …]
Dnvme_namespace.h126 void nvme_namespace_data_swapbytes(struct nvme_namespace_data *s) in nvme_namespace_data_swapbytes() argument
131 s->nsze = sys_le64_to_cpu(s->nsze); in nvme_namespace_data_swapbytes()
132 s->ncap = sys_le64_to_cpu(s->ncap); in nvme_namespace_data_swapbytes()
133 s->nuse = sys_le64_to_cpu(s->nuse); in nvme_namespace_data_swapbytes()
134 s->nawun = sys_le16_to_cpu(s->nawun); in nvme_namespace_data_swapbytes()
135 s->nawupf = sys_le16_to_cpu(s->nawupf); in nvme_namespace_data_swapbytes()
136 s->nacwu = sys_le16_to_cpu(s->nacwu); in nvme_namespace_data_swapbytes()
137 s->nabsn = sys_le16_to_cpu(s->nabsn); in nvme_namespace_data_swapbytes()
138 s->nabo = sys_le16_to_cpu(s->nabo); in nvme_namespace_data_swapbytes()
139 s->nabspf = sys_le16_to_cpu(s->nabspf); in nvme_namespace_data_swapbytes()
[all …]
/Zephyr-latest/samples/subsys/smf/smf_calculator/src/
Dsmf_calculator_thread.c97 static int calculate_result(struct s_object *s) in calculate_result() argument
99 double operand_1 = strtod(s->operand_1.string, NULL); in calculate_result()
100 double operand_2 = strtod(s->operand_2.string, NULL); in calculate_result()
104 switch (s->operator_btn) { in calculate_result()
143 strncpy(s->result.string, result_string, CALCULATOR_STRING_LENGTH - 1); in calculate_result()
144 s->result.string[CALCULATOR_STRING_LENGTH - 1] = 0x00; in calculate_result()
145 s->result.index = strlen(s->result.string); in calculate_result()
151 static void chain_calculations(struct s_object *s) in chain_calculations() argument
153 copy_operand(&s->operand_1, &s->result); in chain_calculations()
154 setup_operand(&s->operand_2); in chain_calculations()
[all …]
/Zephyr-latest/include/zephyr/arch/arc/asm-compat/
Dasm-macro-32-bit-mwdt.h8 .macro MOVR, d, s
9 mov\&$suffix d, s
13 .macro LDR, d, s, off
15 ld\&$suffix d, [s]
17 ld\&$suffix d, [s, off]
21 .macro STR, d, s, off
23 st\&$suffix d, [s]
25 st\&$suffix d, [s, off]
47 .macro ADDR, d, s, v
48 add\&$suffix d, s, v
[all …]
Dasm-macro-64-bit-mwdt.h8 .macro MOVR, d, s
9 movl\&$suffix d, s
13 .macro LDR, d, s, off
15 ldl\&$suffix d, [s]
17 ldl\&$suffix d, [s, off]
21 .macro STR, d, s, off
23 stl\&$suffix d, [s]
25 stl\&$suffix d, [s, off]
47 .macro ADDR, d, s, v
48 addl\&$suffix d, s, v
[all …]
Dasm-macro-64-bit-gnu.h11 .macro MOVR\cc d, s
12 movl\cc \d, \s
17 .macro LDR\aa d, s, off=0
18 ldl\aa \d, [\s, \off]
23 .macro STR\aa d, s, off=0
26 stl\aa \d, [\s]
28 stl\aa \d, [\s, \off]
33 .macro STR d, s, off=0
35 stl \d, [\s]
38 STR.as \d, \s, \off / 8
[all …]
Dasm-macro-32-bit-gnu.h11 .macro MOVR\cc d, s
12 mov\cc \d, \s
17 .macro LDR\aa d, s, off=0
18 ld\aa \d, [\s, \off]
23 .macro STR\aa d, s, off=0
26 st\aa \d, [\s]
28 st\aa \d, [\s, \off]
50 .macro ADDR\cc d, s, v
51 add\cc \d, \s, \v
56 .macro ADD2R\cc d, s, v
[all …]
/Zephyr-latest/lib/libc/minimal/source/string/
Dstrspn.c10 size_t strspn(const char *s, in strspn() argument
13 const char *ins = s; in strspn()
15 while ((*s != '\0') && (strchr(accept, *s) != NULL)) { in strspn()
16 ++s; in strspn()
19 return s - ins; in strspn()
22 size_t strcspn(const char *s, in strcspn() argument
25 const char *ins = s; in strcspn()
27 while ((*s != '\0') && (strchr(reject, *s) == NULL)) { in strcspn()
28 ++s; in strcspn()
31 return s - ins; in strcspn()
Dstring.c20 char *strcpy(char *ZRESTRICT d, const char *ZRESTRICT s) in strcpy() argument
24 while (*s != '\0') { in strcpy()
25 *d = *s; in strcpy()
27 s++; in strcpy()
42 char *strncpy(char *ZRESTRICT d, const char *ZRESTRICT s, size_t n) in strncpy() argument
46 while ((n > 0) && (*s != '\0')) { in strncpy()
47 *d = *s; in strncpy()
48 s++; in strncpy()
69 char *strchr(const char *s, int c) in strchr() argument
73 while ((*s != tmp) && (*s != '\0')) { in strchr()
[all …]
/Zephyr-latest/tests/crypto/tinycrypt/src/
Dsha256.c68 struct tc_sha256_state_struct s; in ZTEST() local
70 (void)tc_sha256_init(&s); in ZTEST()
71 tc_sha256_update(&s, (const uint8_t *)m, strlen(m)); in ZTEST()
72 (void)tc_sha256_final(digest, &s); in ZTEST()
98 struct tc_sha256_state_struct s; in ZTEST() local
100 (void)tc_sha256_init(&s); in ZTEST()
101 tc_sha256_update(&s, (const uint8_t *)m, strlen(m)); in ZTEST()
102 (void)tc_sha256_final(digest, &s); in ZTEST()
125 struct tc_sha256_state_struct s; in ZTEST() local
127 (void)tc_sha256_init(&s); in ZTEST()
[all …]
/Zephyr-latest/tests/arch/arm/arm_runtime_nmi/
DREADME.txt34 Trigger NMI in 10s: 0 s
35 Trigger NMI in 10s: 1 s
36 Trigger NMI in 10s: 2 s
37 Trigger NMI in 10s: 3 s
38 Trigger NMI in 10s: 4 s
39 Trigger NMI in 10s: 5 s
40 Trigger NMI in 10s: 6 s
41 Trigger NMI in 10s: 7 s
42 Trigger NMI in 10s: 8 s
43 Trigger NMI in 10s: 9 s
/Zephyr-latest/doc/build/dts/
Dmacros.bnf26 node-macro =/ %s"DT_N" path-id %s"_EXISTS" macro
27 ; Bus macros: the plain BUS is a way to access a node's bus controller.
28 ; The additional dt-name suffix is added to match that node's bus type;
30 node-macro =/ %s"DT_N" path-id %s"_BUS" ["_" dt-name] macro
32 node-macro =/ %s"DT_N" path-id %s"_REG_NUM" macro
33 node-macro =/ %s"DT_N" path-id %s"_REG_IDX_" DIGIT "_EXISTS" macro
34 node-macro =/ %s"DT_N" path-id %s"_REG_IDX_" DIGIT macro
35 %s"_VAL_" ( %s"ADDRESS" / %s"SIZE") macro
36 node-macro =/ %s"DT_N" path-id %s"_REG_NAME_" dt-name macro
37 %s"_VAL_" ( %s"ADDRESS" / %s"SIZE") macro
[all …]
/Zephyr-latest/lib/libc/minimal/source/stdlib/
Datoi.c31 int atoi(const char *s) in atoi() argument
36 while (isspace((unsigned char)*s) != 0) { in atoi()
37 s++; in atoi()
39 switch (*s) { in atoi()
42 s++; in atoi()
45 s++; in atoi()
55 while (isdigit((unsigned char)*s) != 0) { in atoi()
56 n = 10 * n - (*s++ - '0'); in atoi()
Dstrtoul.c45 register const char *s = nptr; in strtoul() local
55 c = *s++; in strtoul()
59 c = *s++; in strtoul()
61 c = *s++; in strtoul()
65 (c == '0') && ((*s == 'x') || (*s == 'X'))) { in strtoul()
66 c = s[1]; in strtoul()
67 s += 2; in strtoul()
77 for (acc = 0, any = 0;; c = *s++) { in strtoul()
103 *endptr = (char *)(any ? (s - 1) : nptr); in strtoul()
Dstrtoull.c45 register const char *s = nptr; in strtoull() local
55 c = *s++; in strtoull()
59 c = *s++; in strtoull()
61 c = *s++; in strtoull()
64 if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X')) { in strtoull()
65 c = s[1]; in strtoull()
66 s += 2; in strtoull()
76 for (acc = 0, any = 0;; c = *s++) { in strtoull()
102 *endptr = (char *)(any ? (char *)s - 1 : nptr); in strtoull()
Dstrtol.c45 register const char *s = nptr; in strtol() local
57 c = *s++; in strtol()
61 c = *s++; in strtol()
63 c = *s++; in strtol()
67 c == '0' && (*s == 'x' || *s == 'X')) { in strtol()
68 c = s[1]; in strtol()
69 s += 2; in strtol()
97 for (acc = 0, any = 0;; c = *s++) { in strtol()
125 *endptr = (char *)(any ? (s - 1) : nptr); in strtol()
Dstrtoll.c45 register const char *s = nptr; in strtoll() local
57 c = *s++; in strtoll()
61 c = *s++; in strtoll()
63 c = *s++; in strtoll()
66 if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X')) { in strtoll()
67 c = s[1]; in strtoll()
68 s += 2; in strtoll()
96 for (acc = 0, any = 0;; c = *s++) { in strtoll()
124 *endptr = (char *)(any ? (char *)s - 1 : nptr); in strtoll()
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670_apex.c10 int icm42670_apex_enable(inv_imu_device_t *s) in icm42670_apex_enable() argument
17 err |= inv_imu_configure_fifo(s, INV_IMU_FIFO_DISABLED); in icm42670_apex_enable()
24 err |= inv_imu_set_config_int1(s, &config_int); in icm42670_apex_enable()
27 err |= inv_imu_set_accel_frequency(s, ACCEL_CONFIG0_ODR_50_HZ); in icm42670_apex_enable()
30 err |= inv_imu_set_accel_lp_avg(s, ACCEL_CONFIG1_ACCEL_FILT_AVG_2); in icm42670_apex_enable()
31 err |= inv_imu_enable_accel_low_power_mode(s); in icm42670_apex_enable()
34 err |= inv_imu_apex_init_parameters_struct(s, &apex_inputs); in icm42670_apex_enable()
42 err |= inv_imu_apex_configure_parameters(s, &apex_inputs); in icm42670_apex_enable()
45 err |= inv_imu_apex_set_frequency(s, APEX_CONFIG1_DMP_ODR_50Hz); in icm42670_apex_enable()
118 int icm42670_apex_enable_pedometer(const struct device *dev, inv_imu_device_t *s) in icm42670_apex_enable_pedometer() argument
[all …]
/Zephyr-latest/samples/sensor/icm42605/
DREADME.rst41 accel -5.882554 -6.485893 5.868188 m/s/s
42 gyro 0.014522 0.002264 -0.036905 rad/s
44 accel -5.841853 -6.435615 5.911283 m/s/s
45 gyro 0.017852 0.001199 -0.034640 rad/s
47 accel -5.930438 -6.461951 6.009446 m/s/s
48 gyro 0.012923 0.002131 -0.037171 rad/s
50 accel -5.884948 -6.524200 5.961562 m/s/s
51 gyro 0.012390 -0.001732 -0.045964 rad/s
53 accel -5.863400 -12.872426 -0.154427 m/s/s
54 gyro -0.034373 -0.034373 -0.034373 rad/s
[all …]
/Zephyr-latest/boards/shields/adafruit_pca9685/
Dadafruit_pca9685.overlay23 s_led0: s-led-0 {
26 s_led1: s-led-1 {
29 s_led2: s-led-2 {
32 s_led3: s-led-3 {
35 s_led4: s-led-4 {
38 s_led5: s-led-5 {
41 s_led6: s-led-6 {
44 s_led7: s-led-7 {
47 s_led8: s-led-8 {
50 s_led9: s-led-9 {
[all …]
/Zephyr-latest/samples/sensor/mpu6050/
DREADME.rst43 accel -5.882554 -6.485893 5.868188 m/s/s
44 gyro 0.014522 0.002264 -0.036905 rad/s
46 accel -5.841853 -6.435615 5.911283 m/s/s
47 gyro 0.017852 0.001199 -0.034640 rad/s
49 accel -5.930438 -6.461951 6.009446 m/s/s
50 gyro 0.012923 0.002131 -0.037171 rad/s
52 accel -5.884948 -6.524200 5.961562 m/s/s
53 gyro 0.012390 -0.001732 -0.045964 rad/s
55 accel -5.863400 -12.872426 -0.154427 m/s/s
56 gyro -0.034373 -0.034373 -0.034373 rad/s
[all …]
/Zephyr-latest/lib/libc/minimal/include/
Dstring.h19 extern char *strcpy(char *ZRESTRICT d, const char *ZRESTRICT s);
22 extern char *strncpy(char *ZRESTRICT d, const char *ZRESTRICT s,
24 extern char *strchr(const char *s, int c);
25 extern char *strrchr(const char *s, int c);
26 extern size_t strlen(const char *s);
27 extern size_t strnlen(const char *s, size_t maxlen);
35 extern char *strstr(const char *s, const char *find);
37 extern size_t strspn(const char *s, const char *accept);
38 extern size_t strcspn(const char *s, const char *reject);
41 extern void *memmove(void *d, const void *s, size_t n);
[all …]
/Zephyr-latest/samples/sensor/6dof_motion_drdy/
DREADME.rst49 … temp 23.00 Cel accel 0.150839 -0.140065 9.994899 m/s/s gyro -0.001597 0.005859 0.001597 rad/s
50 … temp 23.00 Cel accel 0.140065 -0.146050 9.988914 m/s/s gyro -0.002663 0.005859 0.003195 rad/s
51 … temp 23.50 Cel accel 0.146050 -0.130487 9.988914 m/s/s gyro -0.001597 0.006391 0.003195 rad/s
52 … temp 23.00 Cel accel 0.149642 -0.136473 9.990111 m/s/s gyro -0.002663 0.004261 0.002663 rad/s
53 … temp 23.00 Cel accel 0.146050 -0.136473 9.979337 m/s/s gyro -0.002130 0.005326 0.001597 rad/s
54 … temp 23.00 Cel accel 0.136473 -0.147247 9.986519 m/s/s gyro -0.001065 0.005859 0.002663 rad/s
/Zephyr-latest/samples/sensor/accel_trig/
DREADME.rst35 fxos8700@1d [m/s^2]: ( -0.153229, -0.057461, 9.931148)
36 fxos8700@1d [m/s^2]: ( -0.153229, -0.057461, 9.931148)
37 fxos8700@1d [m/s^2]: ( -0.143653, -0.057461, 9.921571)
38 fxos8700@1d [m/s^2]: ( -0.153229, -0.067038, 9.931148)
39 fxos8700@1d [m/s^2]: ( -0.143653, -0.067038, 9.921571)
40 fxos8700@1d [m/s^2]: ( -0.134076, -0.047885, 9.931148)
41 fxos8700@1d [m/s^2]: ( -0.105345, -0.038308, 9.940725)
42 fxos8700@1d [m/s^2]: ( -0.105345, -0.019154, 9.931148)
43 fxos8700@1d [m/s^2]: ( -0.105345, -0.028731, 9.921571)
44 fxos8700@1d [m/s^2]: ( -0.095769, -0.028731, 9.931148)
[all …]

12345678910>>...64