/linux-6.6.21/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 19 int sfd[4]; member 136 write(ctx->sfd[1], "w", 1); in emitter_entry1() 148 write(ctx->sfd[1], "w", 1); in emitter_entry2() 149 write(ctx->sfd[3], "w", 1); in emitter_entry2() 166 int sfd[2]; in TEST() local 169 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST() 175 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0); in TEST() 177 ASSERT_EQ(write(sfd[1], "w", 1), 1); in TEST() 183 close(sfd[0]); in TEST() 184 close(sfd[1]); in TEST() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | setget_sockopt.c | 45 int sfd, cfd; in test_tcp() local 49 sfd = start_server(family, SOCK_STREAM, in test_tcp() 51 if (!ASSERT_GE(sfd, 0, "start_server")) in test_tcp() 54 cfd = connect_to_fd(sfd, 0); in test_tcp() 56 close(sfd); in test_tcp() 59 close(sfd); in test_tcp() 73 int sfd; in test_udp() local 77 sfd = start_server(family, SOCK_DGRAM, in test_udp() 79 if (!ASSERT_GE(sfd, 0, "start_server")) in test_udp() 81 close(sfd); in test_udp() [all …]
|
D | sockmap_listen.c | 1346 int sfd[2]; in unix_redir_to_connected() local 1352 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected() 1354 c0 = sfd[0], p0 = sfd[1]; in unix_redir_to_connected() 1356 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected() 1358 c1 = sfd[0], p1 = sfd[1]; in unix_redir_to_connected() 1481 int sfd[2]; in vsock_unix_redir_connectible() local 1488 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, sfd)) in vsock_unix_redir_connectible() 1491 u0 = sfd[0]; in vsock_unix_redir_connectible() 1492 u1 = sfd[1]; in vsock_unix_redir_connectible() 1754 int sfd[2]; in inet_unix_redir_to_connected() local [all …]
|
/linux-6.6.21/ipc/ |
D | shm.c | 278 static int __shm_open(struct shm_file_data *sfd) in __shm_open() argument 282 shp = shm_lock(sfd->ns, sfd->id); in __shm_open() 287 if (shp->shm_file != sfd->file) { in __shm_open() 304 struct shm_file_data *sfd = shm_file_data(file); in shm_open() local 308 if (sfd->vm_ops->open) in shm_open() 309 sfd->vm_ops->open(vma); in shm_open() 311 err = __shm_open(sfd); in shm_open() 368 static void __shm_close(struct shm_file_data *sfd) in __shm_close() argument 371 struct ipc_namespace *ns = sfd->ns; in __shm_close() 375 shp = shm_lock(ns, sfd->id); in __shm_close() [all …]
|
/linux-6.6.21/net/mptcp/ |
D | sockopt.c | 966 static int mptcp_put_subflow_data(struct mptcp_subflow_data *sfd, in mptcp_put_subflow_data() argument 971 u32 copylen = min_t(u32, sfd->size_subflow_data, sizeof(*sfd)); in mptcp_put_subflow_data() 974 copied += sfd->size_subflow_data; in mptcp_put_subflow_data() 981 if (copy_to_user(optval, sfd, copylen)) in mptcp_put_subflow_data() 987 static int mptcp_get_subflow_data(struct mptcp_subflow_data *sfd, in mptcp_get_subflow_data() argument 999 BUILD_BUG_ON(sizeof(*sfd) != MIN_INFO_OPTLEN_SIZE); in mptcp_get_subflow_data() 1004 memset(sfd, 0, sizeof(*sfd)); in mptcp_get_subflow_data() 1006 copylen = min_t(unsigned int, len, sizeof(*sfd)); in mptcp_get_subflow_data() 1007 if (copy_from_user(sfd, optval, copylen)) in mptcp_get_subflow_data() 1011 if (sfd->size_subflow_data > INT_MAX || in mptcp_get_subflow_data() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_maps.c | 664 int err, i, fd, udp, sfd[6] = {0xdeadbeef}; in test_sockmap() local 676 sfd[i] = socket(AF_INET, SOCK_STREAM, 0); in test_sockmap() 677 if (sfd[i] < 0) in test_sockmap() 679 err = setsockopt(sfd[i], SOL_SOCKET, SO_REUSEADDR, in test_sockmap() 685 err = ioctl(sfd[i], FIONBIO, (char *)&one); in test_sockmap() 694 err = bind(sfd[i], (struct sockaddr *)&addr, sizeof(addr)); in test_sockmap() 697 err, i, sfd[i]); in test_sockmap() 700 err = listen(sfd[i], 32); in test_sockmap() 708 sfd[i] = socket(AF_INET, SOCK_STREAM, 0); in test_sockmap() 709 if (sfd[i] < 0) in test_sockmap() [all …]
|
/linux-6.6.21/arch/um/drivers/ |
D | slip_user.c | 130 int sfd, mfd, err; in slip_open() local 146 sfd = err; in slip_open() 148 err = set_up_tty(sfd); in slip_open() 152 pri->slave = sfd; in slip_open() 159 err = slip_tramp(argv, sfd); in slip_open() 175 err = os_set_slip(sfd); in slip_open() 184 close(sfd); in slip_open()
|
/linux-6.6.21/drivers/base/ |
D | arch_topology.c | 62 struct scale_freq_data *sfd; in topology_set_scale_freq_source() local 75 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_set_scale_freq_source() 78 if (!sfd || sfd->source != SCALE_FREQ_SOURCE_ARCH) { in topology_set_scale_freq_source() 93 struct scale_freq_data *sfd; in topology_clear_scale_freq_source() local 99 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_clear_scale_freq_source() 101 if (sfd && sfd->source == source) { in topology_clear_scale_freq_source() 121 struct scale_freq_data *sfd = rcu_dereference_sched(*this_cpu_ptr(&sft_data)); in topology_scale_freq_tick() local 123 if (sfd) in topology_scale_freq_tick() 124 sfd->set_freq_scale(); in topology_scale_freq_tick()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | tls.c | 114 int sfd, ret; in ulp_sock_pair() local 124 sfd = socket(AF_INET, SOCK_STREAM, 0); in ulp_sock_pair() 126 ret = bind(sfd, &addr, sizeof(addr)); in ulp_sock_pair() 128 ret = listen(sfd, 10); in ulp_sock_pair() 131 ret = getsockname(sfd, &addr, &len); in ulp_sock_pair() 137 *cfd = accept(sfd, &addr, &len); in ulp_sock_pair() 140 close(sfd); in ulp_sock_pair() 1878 int sfd, ret, fd; in TEST() local 1892 sfd = socket(AF_INET, SOCK_STREAM, 0); in TEST() 1894 ret = bind(sfd, &addr, sizeof(addr)); in TEST() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/net/ieee802154/ |
D | cc2520.txt | 12 - sfd-gpio: GPIO spec for the SFD pin 29 sfd-gpio = <&gpio1 13 0>;
|
/linux-6.6.21/drivers/net/ieee802154/ |
D | cc2520.c | 1037 struct gpio_desc *sfd; in cc2520_probe() local 1088 sfd = devm_gpiod_get(&spi->dev, "sfd", GPIOD_IN); in cc2520_probe() 1089 if (IS_ERR(sfd)) { in cc2520_probe() 1091 ret = PTR_ERR(sfd); in cc2520_probe() 1133 gpiod_to_irq(sfd), in cc2520_probe()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | reg.h | 164 MLXSW_REG_DEFINE(sfd, MLXSW_REG_SFD_ID, MLXSW_REG_SFD_LEN); 170 MLXSW_ITEM32(reg, sfd, swid, 0x00, 24, 8); 204 MLXSW_ITEM32(reg, sfd, op, 0x04, 30, 2); 213 MLXSW_ITEM32(reg, sfd, record_locator, 0x04, 0, 30); 222 MLXSW_ITEM32(reg, sfd, num_rec, 0x08, 0, 8); 227 MLXSW_REG_ZERO(sfd, payload); in mlxsw_reg_sfd_pack() 236 MLXSW_ITEM32_INDEXED(reg, sfd, rec_swid, MLXSW_REG_SFD_BASE_LEN, 24, 8, 250 MLXSW_ITEM32_INDEXED(reg, sfd, rec_type, MLXSW_REG_SFD_BASE_LEN, 20, 4, 268 MLXSW_ITEM32_INDEXED(reg, sfd, rec_policy, MLXSW_REG_SFD_BASE_LEN, 18, 2, 277 MLXSW_ITEM32_INDEXED(reg, sfd, rec_a, MLXSW_REG_SFD_BASE_LEN, 16, 1, [all …]
|
D | spectrum_switchdev.c | 1665 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4() 1693 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write() 1796 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in __mlxsw_sp_port_fdb_uc_op() 1842 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op() 1908 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_mdb_entry_write()
|
/linux-6.6.21/drivers/net/wireless/legacy/ |
D | wl3501.h | 274 u16 sfd; member 542 u16 sfd; member
|
D | rayctl.h | 567 UCHAR sfd[2]; member
|
/linux-6.6.21/Documentation/networking/ |
D | snmp_counter.rst | 957 setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));
|