Home
last modified time | relevance | path

Searched full:sfd (Results 1 – 25 of 27) sorted by relevance

12

/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[1]); in TEST()
[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()
[all …]
H A Dsockmap_listen.c1436 int sfd[2]; in unix_redir_to_connected() local
1438 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected()
1440 c0 = sfd[0], p0 = sfd[1]; in unix_redir_to_connected()
1442 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected()
1444 c1 = sfd[0], p1 = sfd[1]; in unix_redir_to_connected()
1502 int sfd[2]; in vsock_unix_redir_connectible() local
1509 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, sfd)) in vsock_unix_redir_connectible()
1512 u0 = sfd[0]; in vsock_unix_redir_connectible()
1513 u1 = sfd[1]; in vsock_unix_redir_connectible()
1706 int sfd[2]; in inet_unix_redir_to_connected() local
[all …]
/linux/ipc/
H A Dshm.c279 static int __shm_open(struct shm_file_data *sfd) in __shm_open() argument
283 shp = shm_lock(sfd->ns, sfd->id); in __shm_open()
288 if (shp->shm_file != sfd->file) { in __shm_open()
305 struct shm_file_data *sfd = shm_file_data(file); in shm_open() local
309 if (sfd->vm_ops->open) in shm_open()
310 sfd->vm_ops->open(vma); in shm_open()
312 err = __shm_open(sfd); in shm_open()
369 static void __shm_close(struct shm_file_data *sfd) in __shm_close() argument
372 struct ipc_namespace *ns = sfd->ns; in __shm_close()
376 shp = shm_lock(ns, sfd->id); in __shm_close()
[all …]
/linux/net/mptcp/
H A Dsockopt.c1019 static int mptcp_put_subflow_data(struct mptcp_subflow_data *sfd, in mptcp_put_subflow_data() argument
1024 u32 copylen = min_t(u32, sfd->size_subflow_data, sizeof(*sfd)); in mptcp_put_subflow_data()
1027 copied += sfd->size_subflow_data; in mptcp_put_subflow_data()
1034 if (copy_to_user(optval, sfd, copylen)) in mptcp_put_subflow_data()
1040 static int mptcp_get_subflow_data(struct mptcp_subflow_data *sfd, in mptcp_get_subflow_data() argument
1052 BUILD_BUG_ON(sizeof(*sfd) != MIN_INFO_OPTLEN_SIZE); in mptcp_get_subflow_data()
1057 memset(sfd, 0, sizeof(*sfd)); in mptcp_get_subflow_data()
1059 copylen = min_t(unsigned int, len, sizeof(*sfd)); in mptcp_get_subflow_data()
1060 if (copy_from_user(sfd, optval, copylen)) in mptcp_get_subflow_data()
1064 if (sfd->size_subflow_data > INT_MAX || in mptcp_get_subflow_data()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp_consts.h90 .sfd = 0x3000, /* 24 */
96 .sfd = 0x2c00, /* 22 */
109 .sfd = 0x1333, /* 9.6 */
115 .sfd = 0xf33, /* 7.6 */
128 .sfd = 0x4a4, /* 2.32 */
135 .sfd = 0x4a4, /* 2.32 */
169 .sfd = 0x1dc, /* 0.93 */
177 .sfd = 0x1dc, /* 0.93 */
197 .sfd = 0x4a4, /* 2.32 */
204 .sfd = 0x4a4, /* 2.32 */
[all …]
H A Dice_ptp_hw.h183 u32 sfd; member
191 u32 sfd; member
H A Dice_ptp_hw.c2166 bool onestep, sfd; in ice_phy_set_offsets_eth56g() local
2169 sfd = hw->ptp.phy.eth56g.sfd_ena; in ice_phy_set_offsets_eth56g()
2180 if (sfd) in ice_phy_set_offsets_eth56g()
2181 rx_offset = add_u32_u32_fx(rx_offset, cfg->rx_offset.sfd); in ice_phy_set_offsets_eth56g()
2198 tx_offset += cfg->tx_offset.serdes + cfg->tx_offset.sfd * sfd + in ice_phy_set_offsets_eth56g()
/linux/tools/testing/selftests/bpf/
H A Dtest_maps.c664 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/arch/um/drivers/
H 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/Documentation/devicetree/bindings/net/ieee802154/
H A Dcc2520.txt12 - sfd-gpio: GPIO spec for the SFD pin
29 sfd-gpio = <&gpio1 13 0>;
/linux/drivers/base/
H A Darch_topology.c65 struct scale_freq_data *sfd; in topology_set_scale_freq_source() local
78 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_set_scale_freq_source()
81 if (!sfd || sfd->source != SCALE_FREQ_SOURCE_ARCH) { in topology_set_scale_freq_source()
96 struct scale_freq_data *sfd; in topology_clear_scale_freq_source() local
102 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_clear_scale_freq_source()
104 if (sfd && sfd->source == source) { in topology_clear_scale_freq_source()
124 struct scale_freq_data *sfd = rcu_dereference_sched(*this_cpu_ptr(&sft_data)); in topology_scale_freq_tick() local
126 if (sfd) in topology_scale_freq_tick()
127 sfd->set_freq_scale(); in topology_scale_freq_tick()
/linux/Documentation/devicetree/bindings/ata/
H A Dceva,ahci-1v84.yaml70 ceva,p0-burst-params = /bits/ 8 <BMX BNM SFD PTST>;
74 - description: SFD - Signal Failure Detection value.
116 ceva,p1-burst-params = /bits/ 8 <BMX BNM SFD PTST>;
120 - description: SFD - Signal Failure Detection value.
/linux/tools/testing/selftests/net/
H A Dtls.c114 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()
1971 int sfd, ret, fd; in TEST() local
1985 sfd = socket(AF_INET, SOCK_STREAM, 0); in TEST()
1987 ret = bind(sfd, &addr, sizeof(addr)); in TEST()
[all …]
/linux/drivers/net/ieee802154/
H A Dcc2520.c904 dev_dbg(&priv->spi->dev, "SFD for TX\n"); in cc2520_sfd_isr()
908 dev_dbg(&priv->spi->dev, "SFD for RX\n"); in cc2520_sfd_isr()
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()
1090 dev_err(&spi->dev, "sfd gpio is not valid\n"); in cc2520_probe()
1091 ret = PTR_ERR(sfd); in cc2520_probe()
1131 /* Set up sfd interrupt */ in cc2520_probe()
1133 gpiod_to_irq(sfd), in cc2520_probe()
1139 dev_err(&spi->dev, "could not get sfd irq\n"); in cc2520_probe()
H A Dadf7242.c39 #define REG_DELAYCFG0 0x109 /* RW RC_RX command to SFD or sync word delay */
110 #define REG_SFD_15_4 0x3F4 /* RW Option to set non standard SFD */
/linux/include/linux/fsl/
H A Dptp_qoriq.h82 #define ESFDP (1<<11) /* External Tx/Rx SFD Polarity. */
83 #define ESFDE (1<<10) /* External Tx/Rx SFD Enable. */
/linux/drivers/net/phy/
H A Ddp83640_reg.h45 #define PTP_SFDCFG 0x0019 /* PTP SFD Configuration Register */
249 #define TX_SFD_GPIO_SHIFT (4) /* TX SFD GPIO Select, value 1-12 */
251 #define RX_SFD_GPIO_SHIFT (0) /* RX SFD GPIO Select, value 1-12 */
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpmac.h147 * (optional used for wrong SFD).
/linux/Documentation/networking/
H A Doa-tc6-framework.rst207 Delimiter (SFD) byte described in IEEE 802.3 [2].
303 confused with the Start-of-Frame Delimiter (SFD) byte
H A Dsnmp_counter.rst953 setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_port.h567 /* Received frames with SFD with a length of less than 64 octets and a
/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/drivers/net/dsa/ocelot/
H A Dfelix_vsc9959.c1254 * manually in the bit time calculation, plus the preamble and SFD. in vsc9959_tas_guard_bands_update()
1257 /* Consider the standard Ethernet overhead of 8 octets preamble+SFD, in vsc9959_tas_guard_bands_update()
/linux/drivers/net/ethernet/cavium/octeon/
H A Docteon_mgmt.c1200 /* This port is configured to send PREAMBLE+SFD to begin every in octeon_mgmt_open()

12