Home
last modified time | relevance | path

Searched refs:one (Results 1 - 25 of 290) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/lib/
H A Datomic64_test.c95 i, (i) + one, (i) + one); \
101 i, (i) - one, (i) - one); \
109 int one = 1; in test_atomic() local
115 TEST(, add, +=, -one); in test_atomic()
117 TEST(, sub, -=, -one); in test_atomic()
124 RETURN_FAMILY_TEST(, add_return, +=, -one); in test_atomic()
126 RETURN_FAMILY_TEST(, sub_return, -=, -one); in test_atomic()
129 FETCH_FAMILY_TEST(, fetch_add, +=, -one); in test_atomic()
154 long long one = 1LL; test_atomic64() local
[all...]
H A Dtest_stackinit.c70 #define INIT_STRUCT_static_all = { .one = 0, \
76 #define INIT_STRUCT_dynamic_all = { .one = arg->one, \
84 var.one = 0; \
197 unsigned long one; member
205 size_t one; member
214 u8 one; member
222 char *one; member
231 u8 one; member
/kernel/linux/linux-6.6/lib/
H A Datomic64_test.c95 i, (i) + one, (i) + one); \
101 i, (i) - one, (i) - one); \
109 int one = 1; in test_atomic() local
115 TEST(, add, +=, -one); in test_atomic()
117 TEST(, sub, -=, -one); in test_atomic()
124 RETURN_FAMILY_TEST(, add_return, +=, -one); in test_atomic()
126 RETURN_FAMILY_TEST(, sub_return, -=, -one); in test_atomic()
129 FETCH_FAMILY_TEST(, fetch_add, +=, -one); in test_atomic()
154 long long one = 1LL; test_atomic64() local
[all...]
H A Dstackinit_kunit.c81 zero.one = 0; \
98 #define __static_all { .one = 0, \
104 #define __dynamic_all { .one = arg->one, \
110 #define __runtime_all var.one = 0; \
243 unsigned long one; member
251 size_t one; member
260 u8 one; member
268 char *one; member
277 u8 one; member
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dconnect4_prog.c113 int zero = 0, one = 1; in set_keepalive() local
115 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof(one))) in set_keepalive()
118 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPIDLE, &one, sizeof(one))) in set_keepalive()
120 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPINTVL, &one, sizeof(one))) in set_keepalive()
122 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPCNT, &one, sizeof(one))) in set_keepalive()
124 if (bpf_setsockopt(ctx, SOL_TCP, TCP_SYNCNT, &one, sizeo in set_keepalive()
[all...]
H A Dtest_sockmap_kern.h154 const int one = 1; in bpf_prog3() local
156 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
176 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
237 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog4() local
247 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog4()
267 int zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5, key = 0; in bpf_prog6() local
280 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog6()
348 int zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5, err = 0; in bpf_prog10() local
357 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog10()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dconnect4_prog.c112 int zero = 0, one = 1; in set_keepalive() local
114 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof(one))) in set_keepalive()
117 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPIDLE, &one, sizeof(one))) in set_keepalive()
119 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPINTVL, &one, sizeof(one))) in set_keepalive()
121 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPCNT, &one, sizeof(one))) in set_keepalive()
123 if (bpf_setsockopt(ctx, SOL_TCP, TCP_SYNCNT, &one, sizeo in set_keepalive()
[all...]
H A Dtest_sockmap_kern.h158 const int one = 1; in bpf_prog3() local
160 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
180 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
239 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog4() local
249 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog4()
269 int zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5, key = 0; in bpf_prog6() local
282 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog6()
354 int zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5, err = 0; in bpf_prog10() local
363 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog10()
H A Dtrace_vprintk.c18 static const char one[] = "1"; in sys_enter() local
29 one, 2, three, 4, five, 6, seven, 8, nine, 10, ++trace_vprintk_ran); in sys_enter()
/kernel/linux/linux-6.6/drivers/tty/serial/
H A Dsc16is7xx.c366 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_read() local
369 regmap_read(one->regmap, reg, &val); in sc16is7xx_port_read()
376 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_write() local
378 regmap_write(one->regmap, reg, val); in sc16is7xx_port_write()
384 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_read() local
386 regmap_noinc_read(one->regmap, SC16IS7XX_RHR_REG, s->buf, rxlen); in sc16is7xx_fifo_read()
392 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_write() local
401 regmap_noinc_write(one->regmap, SC16IS7XX_THR_REG, s->buf, to_send); in sc16is7xx_fifo_write()
407 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_update() local
409 regmap_update_bits(one in sc16is7xx_port_update()
487 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_baud() local
696 sc16is7xx_update_mlines(struct sc16is7xx_one *one) sc16is7xx_update_mlines() argument
731 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_port_irq() local
806 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_tx_proc() local
839 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, reg_work); sc16is7xx_reg_proc() local
878 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_ier_clear() local
891 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_ier_set() local
913 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, ms_work.work); sc16is7xx_ms_proc() local
927 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_enable_ms() local
938 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_start_tx() local
977 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_get_mctrl() local
986 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_mctrl() local
1003 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_termios() local
1116 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_config_rs485() local
1136 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_startup() local
1205 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_shutdown() local
[all...]
H A Dmax310x.c312 struct max310x_one *one = to_max310x_port(port); in max310x_port_read() local
315 regmap_read(one->regmap, reg, &val); in max310x_port_read()
322 struct max310x_one *one = to_max310x_port(port); in max310x_port_write() local
324 regmap_write(one->regmap, reg, val); in max310x_port_write()
329 struct max310x_one *one = to_max310x_port(port); in max310x_port_update() local
331 regmap_update_bits(one->regmap, reg, mask, val); in max310x_port_update()
673 struct max310x_one *one = to_max310x_port(port); in max310x_batch_write() local
675 regmap_noinc_write(one->regmap, MAX310X_THR_REG, txbuf, len); in max310x_batch_write()
680 struct max310x_one *one = to_max310x_port(port); in max310x_batch_read() local
682 regmap_noinc_read(one in max310x_batch_read()
687 struct max310x_one *one = to_max310x_port(port); max310x_handle_rx() local
821 struct max310x_one *one = to_max310x_port(port); max310x_start_tx() local
881 struct max310x_one *one = container_of(ws, struct max310x_one, tx_work); max310x_tx_proc() local
903 struct max310x_one *one = container_of(ws, struct max310x_one, md_work); max310x_md_proc() local
913 struct max310x_one *one = to_max310x_port(port); max310x_set_mctrl() local
1037 struct max310x_one *one = container_of(ws, struct max310x_one, rs_work); max310x_rs_proc() local
1060 struct max310x_one *one = to_max310x_port(port); max310x_rs485_config() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/
H A Dseccomp_benchmark.c79 double one = i_one, one_bump = one * 0.01; in approx() local
82 one_bump = one + MAX(one_bump, 2.0); in approx()
86 if (one == two || in approx()
87 (one > two && one <= two_bump) || in approx()
88 (two > one && two <= one_bump)) in approx()
101 unsigned long long one, bool (*eval)(int, int), unsigned long long two) in compare()
106 (long long)one, name_eval, (long long)two); in compare()
107 if (one > INT_MA in compare()
100 compare(const char *name_one, const char *name_eval, const char *name_two, unsigned long long one, bool (*eval)(int, int), unsigned long long two) compare() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dsk_bind_sendto_listen.c10 int fd1, fd2, one = 1; in main() local
27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
49 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
H A Dtcp_inq.c83 /* TCP_INQ can overestimate in-queue by one byte if we send in start_server()
99 int c, one = 1, inq = -1; in main() local
129 &one, sizeof(one)) != 0) in main()
146 if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0) in main()
H A Dsk_connect_zero_addr.c10 int fd1, fd2, one = 1; in main() local
27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
H A Dnettest.c423 int one = 1; in set_pktinfo_v4() local
426 rc = setsockopt(sd, SOL_IP, IP_PKTINFO, &one, sizeof(one)); in set_pktinfo_v4()
435 int one = 1; in set_recvpktinfo_v6() local
438 rc = setsockopt(sd, SOL_IPV6, IPV6_RECVPKTINFO, &one, sizeof(one)); in set_recvpktinfo_v6()
447 int one = 1; in set_recverr_v4() local
450 rc = setsockopt(sd, SOL_IP, IP_RECVERR, &one, sizeof(one)); in set_recverr_v4()
459 int one in set_recverr_v6() local
526 unsigned int one = 1; set_freebind() local
549 unsigned int one = 1; set_broadcast() local
562 unsigned int one = 1; set_reuseport() local
575 unsigned int one = 1; set_reuseaddr() local
618 unsigned int one = 1; set_dontroute() local
1343 int one = 1; msock_init() local
[all...]
H A Dipv6_flowlabel.c215 const int one = 1; in main() local
243 if (setsockopt(fdr, SOL_IPV6, IPV6_FLOWINFO, &one, sizeof(one))) in main()
259 if (setsockopt(fdt, SOL_IPV6, IPV6_FLOWINFO_SEND, &one, in main()
260 sizeof(one)) == -1) in main()
/kernel/linux/linux-5.10/drivers/tty/serial/
H A Dsc16is7xx.c349 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_line() local
351 return one->line; in sc16is7xx_line()
704 * When this happens, read one byte from the FIFO to in sc16is7xx_port_irq()
783 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, reg_work); in sc16is7xx_reg_proc() local
787 spin_lock_irqsave(&one->port.lock, irqflags); in sc16is7xx_reg_proc()
788 config = one->config; in sc16is7xx_reg_proc()
789 memset(&one->config, 0, sizeof(one->config)); in sc16is7xx_reg_proc()
790 spin_unlock_irqrestore(&one->port.lock, irqflags); in sc16is7xx_reg_proc()
793 sc16is7xx_port_update(&one in sc16is7xx_reg_proc()
817 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_ier_clear() local
837 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_start_tx() local
862 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_set_mctrl() local
975 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_config_rs485() local
1006 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); sc16is7xx_startup() local
[all...]
H A Dmax310x.c637 struct max310x_one *one = to_max310x_port(port); in max310x_batch_write() local
640 .tx_buf = &one->wr_header, in max310x_batch_write()
641 .len = sizeof(one->wr_header), in max310x_batch_write()
652 struct max310x_one *one = to_max310x_port(port); in max310x_batch_read() local
655 .tx_buf = &one->rd_header, in max310x_batch_read()
656 .len = sizeof(one->rd_header), in max310x_batch_read()
667 struct max310x_one *one = to_max310x_port(port); in max310x_handle_rx() local
683 max310x_batch_read(port, one->rx_buf, rxlen); in max310x_handle_rx()
695 uart_insert_char(port, sts, 0, one->rx_buf[i], flag); in max310x_handle_rx()
703 one in max310x_handle_rx()
803 struct max310x_one *one = to_max310x_port(port); max310x_start_tx() local
864 struct max310x_one *one = container_of(ws, struct max310x_one, tx_work); max310x_tx_proc() local
886 struct max310x_one *one = container_of(ws, struct max310x_one, md_work); max310x_md_proc() local
896 struct max310x_one *one = to_max310x_port(port); max310x_set_mctrl() local
1020 struct max310x_one *one = container_of(ws, struct max310x_one, rs_work); max310x_rs_proc() local
1043 struct max310x_one *one = to_max310x_port(port); max310x_rs485_config() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/
H A Dconnect_close.c53 int c, one = 1, s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in do_accept() local
58 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); in do_accept()
59 setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in do_accept()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dnettest.c365 int one = 1; in set_pktinfo_v4() local
368 rc = setsockopt(sd, SOL_IP, IP_PKTINFO, &one, sizeof(one)); in set_pktinfo_v4()
377 int one = 1; in set_recvpktinfo_v6() local
380 rc = setsockopt(sd, SOL_IPV6, IPV6_RECVPKTINFO, &one, sizeof(one)); in set_recvpktinfo_v6()
389 int one = 1; in set_recverr_v4() local
392 rc = setsockopt(sd, SOL_IP, IP_RECVERR, &one, sizeof(one)); in set_recverr_v4()
401 int one in set_recverr_v6() local
468 unsigned int one = 1; set_broadcast() local
481 unsigned int one = 1; set_reuseport() local
494 unsigned int one = 1; set_reuseaddr() local
1034 int one = 1; msock_init() local
[all...]
H A Dtcp_inq.c83 /* TCP_INQ can overestimate in-queue by one byte if we send in start_server()
99 int c, one = 1, inq = -1; in main() local
129 &one, sizeof(one)) != 0) in main()
146 if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0) in main()
/kernel/linux/linux-5.10/drivers/misc/lkdtm/
H A Dusercopy.c136 unsigned char *one, *two; in do_usercopy_heap_size() local
141 one = kmalloc(size, GFP_KERNEL); in do_usercopy_heap_size()
143 if (!one || !two) { in do_usercopy_heap_size()
156 memset(one, 'A', size); in do_usercopy_heap_size()
160 test_kern_addr = one + 16; in do_usercopy_heap_size()
191 kfree(one); in do_usercopy_heap_size()
/kernel/linux/linux-6.6/drivers/misc/lkdtm/
H A Dheap.c31 char *one, *two; in lkdtm_VMALLOC_LINEAR_OVERFLOW() local
33 one = vzalloc(PAGE_SIZE); in lkdtm_VMALLOC_LINEAR_OVERFLOW()
34 OPTIMIZER_HIDE_VAR(one); in lkdtm_VMALLOC_LINEAR_OVERFLOW()
38 memset(one, 0xAA, PAGE_SIZE + __offset); in lkdtm_VMALLOC_LINEAR_OVERFLOW()
41 vfree(one); in lkdtm_VMALLOC_LINEAR_OVERFLOW()
H A Dusercopy.c137 unsigned char *one, *two; in do_usercopy_slab_size() local
142 one = kmalloc(size, GFP_KERNEL); in do_usercopy_slab_size()
144 if (!one || !two) { in do_usercopy_slab_size()
157 memset(one, 'A', size); in do_usercopy_slab_size()
161 test_kern_addr = one + 16; in do_usercopy_slab_size()
194 kfree(one); in do_usercopy_slab_size()

Completed in 18 milliseconds

12345678910>>...12