Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/filesystems/epoll/
A Depoll_wakeup_test.c19 int sfd[4]; member
166 int sfd[2]; in TEST() local
197 int sfd[2]; in TEST() local
228 int sfd[4]; in TEST() local
266 int sfd[4]; in TEST() local
304 int sfd[2]; in TEST() local
343 int sfd[2]; in TEST() local
383 int sfd[4]; in TEST() local
429 int sfd[4]; in TEST() local
845 int sfd[2]; in TEST() local
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dsetget_sockopt.c45 int sfd, cfd; in test_tcp() local
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
81 close(sfd); in test_udp()
100 fd = connect_to_fd(sfd, 0); in test_ktls()
104 cfd = accept(sfd, NULL, 0); in test_ktls()
108 close(sfd); in test_ktls()
109 sfd = -1; in test_ktls()
[all …]
A Dsockmap_listen.c1611 int sfd[2]; in unix_redir_to_connected() local
1617 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected()
1619 c0 = sfd[0], p0 = sfd[1]; in unix_redir_to_connected()
1621 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected()
1623 c1 = sfd[0], p1 = sfd[1]; in unix_redir_to_connected()
1867 int sfd[2]; in inet_unix_redir_to_connected() local
1873 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, sfd)) in inet_unix_redir_to_connected()
1875 c0 = sfd[0], p0 = sfd[1]; in inet_unix_redir_to_connected()
1947 int sfd[2]; in unix_inet_redir_to_connected() local
1957 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, sfd)) in unix_inet_redir_to_connected()
[all …]
/linux-6.3-rc2/net/mptcp/
A Dsockopt.c941 u32 copylen = min_t(u32, sfd->size_subflow_data, sizeof(*sfd)); in mptcp_put_subflow_data()
973 memset(sfd, 0, sizeof(*sfd)); in mptcp_get_subflow_data()
988 if (sfd->num_subflows || sfd->size_kernel) in mptcp_get_subflow_data()
1009 sfd.size_user = min_t(unsigned int, sfd.size_user, in mptcp_getsockopt_tcpinfo()
1031 infoptr += sfd.size_user; in mptcp_getsockopt_tcpinfo()
1032 copied += sfd.size_user; in mptcp_getsockopt_tcpinfo()
1033 len -= sfd.size_user; in mptcp_getsockopt_tcpinfo()
1039 sfd.num_subflows = sfcount; in mptcp_getsockopt_tcpinfo()
1101 sfd.size_user = min_t(unsigned int, sfd.size_user, in mptcp_getsockopt_subflow_addrs()
1124 copied += sfd.size_user; in mptcp_getsockopt_subflow_addrs()
[all …]
/linux-6.3-rc2/ipc/
A Dshm.c282 shp = shm_lock(sfd->ns, sfd->id); in __shm_open()
404 __shm_close(sfd); in shm_close()
608 __shm_close(sfd); in shm_mmap()
624 fput(sfd->file); in shm_release()
626 kfree(sfd); in shm_release()
636 return sfd->file->f_op->fsync(sfd->file, start, end, datasync); in shm_fsync()
655 return sfd->file->f_op->get_unmapped_area(sfd->file, addr, len, in shm_get_unmapped_area()
1624 sfd = kzalloc(sizeof(*sfd), GFP_KERNEL); in do_shmat()
1625 if (!sfd) { in do_shmat()
1636 kfree(sfd); in do_shmat()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_maps.c677 if (sfd[i] < 0) in test_sockmap()
697 err, i, sfd[i]); in test_sockmap()
709 if (sfd[i] < 0) in test_sockmap()
730 sfd[i] = accept(sfd[i - 4], NULL, NULL); in test_sockmap()
731 if (sfd[i] < 0) { in test_sockmap()
747 close(sfd[i]); in test_sockmap()
771 i, sfd[i]); in test_sockmap()
980 FD_SET(sfd[3], &w); in test_sockmap()
1125 close(sfd[i]); in test_sockmap()
1135 close(sfd[i]); in test_sockmap()
[all …]
/linux-6.3-rc2/arch/um/drivers/
A Dslip_user.c130 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.3-rc2/drivers/base/
A Darch_topology.c62 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.3-rc2/Documentation/devicetree/bindings/net/ieee802154/
A Dcc2520.txt12 - sfd-gpio: GPIO spec for the SFD pin
29 sfd-gpio = <&gpio1 13 0>;
/linux-6.3-rc2/tools/testing/selftests/net/
A Dtls.c98 int sfd, ret; in ulp_sock_pair() local
112 ret = listen(sfd, 10); in ulp_sock_pair()
115 ret = getsockname(sfd, &addr, &len); in ulp_sock_pair()
121 *cfd = accept(sfd, &addr, &len); in ulp_sock_pair()
124 close(sfd); in ulp_sock_pair()
1643 int sfd, ret, fd; in TEST() local
1661 ret = listen(sfd, 10); in TEST()
1689 close(sfd); in TEST()
1771 int sfd, ret, fd; in TEST() local
1785 ret = listen(sfd, 10); in TEST()
[all …]
/linux-6.3-rc2/drivers/net/ieee802154/
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-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dreg.h173 MLXSW_REG_DEFINE(sfd, MLXSW_REG_SFD_ID, MLXSW_REG_SFD_LEN);
179 MLXSW_ITEM32(reg, sfd, swid, 0x00, 24, 8);
213 MLXSW_ITEM32(reg, sfd, op, 0x04, 30, 2);
222 MLXSW_ITEM32(reg, sfd, record_locator, 0x04, 0, 30);
231 MLXSW_ITEM32(reg, sfd, num_rec, 0x08, 0, 8);
236 MLXSW_REG_ZERO(sfd, payload); in mlxsw_reg_sfd_pack()
286 MLXSW_ITEM32_INDEXED(reg, sfd, rec_a, MLXSW_REG_SFD_BASE_LEN, 16, 1,
293 MLXSW_ITEM_BUF_INDEXED(reg, sfd, rec_mac, MLXSW_REG_SFD_BASE_LEN, 6,
356 MLXSW_ITEM32_INDEXED(reg, sfd, uc_vid, MLXSW_REG_SFD_BASE_LEN, 16, 12,
488 MLXSW_ITEM32_INDEXED(reg, sfd, mc_mid, MLXSW_REG_SFD_BASE_LEN, 0, 16,
[all …]
A Dspectrum_switchdev.c1594 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4()
1622 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1725 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1771 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1837 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_mdb_entry_write()
/linux-6.3-rc2/drivers/net/wireless/
A Dwl3501.h274 u16 sfd; member
542 u16 sfd; member
A Drayctl.h567 UCHAR sfd[2]; member
/linux-6.3-rc2/Documentation/networking/
A Dsnmp_counter.rst957 setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));

Completed in 100 milliseconds