Home
last modified time | relevance | path

Searched refs:sfd (Results 1 – 14 of 14) sorted by relevance

/linux/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c19 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[ in TEST()
197 int sfd[2]; TEST() local
228 int sfd[4]; TEST() local
266 int sfd[4]; TEST() local
304 int sfd[2]; TEST() local
343 int sfd[2]; TEST() local
383 int sfd[4]; TEST() local
429 int sfd[4]; TEST() local
845 int sfd[2]; TEST() local
885 int sfd[2]; TEST() local
925 int sfd[2]; TEST() local
965 int sfd[2]; TEST() local
1005 int sfd[2]; TEST() local
1053 int sfd[2]; TEST() local
1101 int sfd[2]; TEST() local
1149 int sfd[2]; TEST() local
2471 int sfd[4]; TEST() local
2525 int sfd[4]; TEST() local
2579 int sfd[4]; TEST() local
2641 int sfd[4]; TEST() local
3399 int sfd[2]; TEST() local
3427 int sfd[2]; TEST() local
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsetget_sockopt.c45 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()
91 int cfd = -1, sfd = -1, fd = -1, ret; test_ktls() local
161 int sfd = -1, fd = -1, cfd = -1, flags; test_nonstandard_opt() local
[all...]
H A Dlwt_seg6local.c122 int sfd, cfd; in test_lwt_seg6local() local
132 sfd = start_server_str(AF_INET6, SOCK_DGRAM, "fb00::6", SERVER_PORT, NULL); in test_lwt_seg6local()
133 if (!ASSERT_OK_FD(sfd, "start server")) in test_lwt_seg6local()
162 bytes = read(sfd, buf, sizeof(buf)); in test_lwt_seg6local()
170 close(sfd); in test_lwt_seg6local()
H A Dnet_timestamping.c150 int sfd = -1, cfd = -1; in test_tcp() local
181 sfd = start_server(family, SOCK_STREAM, in test_tcp()
183 if (!ASSERT_OK_FD(sfd, "start_server")) in test_tcp()
186 cfd = connect_to_fd(sfd, 0); in test_tcp()
220 if (sfd >= 0) in test_tcp()
221 close(sfd); in test_tcp()
/linux/ipc/
H A Dshm.c281 static int __shm_open(struct shm_file_data *sfd) in __shm_open() argument
285 shp = shm_lock(sfd->ns, sfd->id); in __shm_open()
290 if (shp->shm_file != sfd->file) { in __shm_open()
307 struct shm_file_data *sfd = shm_file_data(file); in shm_open() local
311 if (sfd->vm_ops->open) in shm_open()
312 sfd->vm_ops->open(vma); in shm_open()
314 err = __shm_open(sfd); in shm_open()
371 static void __shm_close(struct shm_file_data *sfd) in __shm_close() argument
374 struct ipc_namespace *ns = sfd in __shm_close()
401 struct shm_file_data *sfd = shm_file_data(file); shm_close() local
543 struct shm_file_data *sfd = shm_file_data(file); shm_fault() local
551 struct shm_file_data *sfd = shm_file_data(file); shm_may_split() local
562 struct shm_file_data *sfd = shm_file_data(file); shm_pagesize() local
573 struct shm_file_data *sfd = shm_file_data(vma->vm_file); shm_set_policy() local
584 struct shm_file_data *sfd = shm_file_data(vma->vm_file); shm_get_policy() local
595 struct shm_file_data *sfd = shm_file_data(file); shm_mmap() local
622 struct shm_file_data *sfd = shm_file_data(file); shm_release() local
633 struct shm_file_data *sfd = shm_file_data(file); shm_fsync() local
643 struct shm_file_data *sfd = shm_file_data(file); shm_fallocate() local
654 struct shm_file_data *sfd = shm_file_data(file); shm_get_unmapped_area() local
1531 struct shm_file_data *sfd; do_shmat() local
[all...]
/linux/net/mptcp/
H A Dsockopt.c1059 static int mptcp_put_subflow_data(struct mptcp_subflow_data *sfd, in mptcp_put_subflow_data() argument
1064 u32 copylen = min_t(u32, sfd->size_subflow_data, sizeof(*sfd)); in mptcp_put_subflow_data()
1067 copied += sfd->size_subflow_data; in mptcp_put_subflow_data()
1074 if (copy_to_user(optval, sfd, copylen)) in mptcp_put_subflow_data()
1080 static int mptcp_get_subflow_data(struct mptcp_subflow_data *sfd, in mptcp_get_subflow_data() argument
1092 BUILD_BUG_ON(sizeof(*sfd) != MIN_INFO_OPTLEN_SIZE); in mptcp_get_subflow_data()
1097 memset(sfd, 0, sizeof(*sfd)); in mptcp_get_subflow_data()
1099 copylen = min_t(unsigned int, len, sizeof(*sfd)); in mptcp_get_subflow_data()
1100 if (copy_from_user(sfd, optval, copylen)) in mptcp_get_subflow_data()
1104 if (sfd->size_subflow_data > INT_MAX || in mptcp_get_subflow_data()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_maps.c671 int err, i, fd, udp, sfd[6] = {0xdeadbeef}; in test_sockmap()
683 sfd[i] = socket(AF_INET, SOCK_STREAM, 0); in test_sockmap()
684 if (sfd[i] < 0) in test_sockmap()
686 err = setsockopt(sfd[i], SOL_SOCKET, SO_REUSEADDR, in test_sockmap()
692 err = ioctl(sfd[i], FIONBIO, (char *)&one); in test_sockmap()
701 err = bind(sfd[i], (struct sockaddr *)&addr, sizeof(addr)); in test_sockmap()
704 err, i, sfd[i]); in test_sockmap()
707 err = listen(sfd[i], 32); in test_sockmap()
715 sfd[i] = socket(AF_INET, SOCK_STREAM, 0); in test_sockmap()
716 if (sfd[ in test_sockmap()
660 int err, i, fd, udp, sfd[6] = {0xdeadbeef}; test_sockmap() local
[all...]
/linux/drivers/base/
H A Darch_topology.c73 struct scale_freq_data *sfd; in topology_set_scale_freq_source() local
86 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_set_scale_freq_source()
89 if (!sfd || sfd->source != SCALE_FREQ_SOURCE_ARCH) { in topology_set_scale_freq_source()
104 struct scale_freq_data *sfd; in topology_clear_scale_freq_source() local
110 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_clear_scale_freq_source()
112 if (sfd && sfd->source == source) { in topology_clear_scale_freq_source()
132 struct scale_freq_data *sfd = rcu_dereference_sched(*this_cpu_ptr(&sft_data)); in topology_scale_freq_tick() local
134 if (sfd) in topology_scale_freq_tick()
135 sfd->set_freq_scale(); in topology_scale_freq_tick()
/linux/Documentation/devicetree/bindings/net/ieee802154/
H A Dcc2520.txt12 - sfd-gpio: GPIO spec for the SFD pin
29 sfd-gpio = <&gpio1 13 0>;
/linux/tools/testing/selftests/net/
H A Dtls.c116 int sfd, ret; in ulp_sock_pair() local
126 sfd = socket(AF_INET, SOCK_STREAM, 0); in ulp_sock_pair()
128 ret = bind(sfd, &addr, sizeof(addr)); in ulp_sock_pair()
130 ret = listen(sfd, 10); in ulp_sock_pair()
133 ret = getsockname(sfd, &addr, &len); in ulp_sock_pair()
139 *cfd = accept(sfd, &addr, &len); in ulp_sock_pair()
142 close(sfd); in ulp_sock_pair()
3052 int sfd, ret, fd; in TEST()
3066 sfd = socket(AF_INET, SOCK_STREAM, 0); in TEST()
3068 ret = bind(sfd, in TEST()
3046 int sfd, ret, fd; TEST() local
3174 int sfd, ret, fd; TEST() local
3230 int sfd, cfd, ret, fd; TEST() local
3275 int sfd, cfd, ret, fd; TEST() local
[all...]
/linux/drivers/net/ieee802154/
H A Dcc2520.c1037 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/drivers/net/ethernet/intel/ice/
H A Dice_ptp_hw.c1791 bool onestep, sfd; in ice_phy_set_offsets_eth56g()
1794 sfd = hw->ptp.phy.eth56g.sfd_ena;
1805 if (sfd) in ice_phy_cfg_mac_eth56g()
1806 rx_offset = add_u32_u32_fx(rx_offset, cfg->rx_offset.sfd); in ice_phy_cfg_mac_eth56g()
1823 tx_offset += cfg->tx_offset.serdes + cfg->tx_offset.sfd * sfd + in ice_phy_cfg_mac_eth56g()
1754 bool onestep, sfd; ice_phy_set_offsets_eth56g() local
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_switchdev.c1665 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/Documentation/networking/
H A Dsnmp_counter.rst953 setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));