/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_resource_tracker.c | 17 * - Redistributions of source code must retain the above 21 * - Redistributions in binary form must reproduce the above 226 /* > 0 --> apply mirror when getting into HA mode */ 227 /* = 0 --> un-apply mirror when getting out of HA mode */ 235 struct rb_node *node = root->rb_node; in res_tracker_lookup() 241 if (res_id < res->res_id) in res_tracker_lookup() 242 node = node->rb_left; in res_tracker_lookup() 243 else if (res_id > res->res_id) in res_tracker_lookup() 244 node = node->rb_right; in res_tracker_lookup() 253 struct rb_node **new = &(root->rb_node), *parent = NULL; in res_tracker_insert() [all …]
|
H A D | mlx4_cmd.c | 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 135 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave, 141 [CMD_STAT_INTERNAL_ERR] = -EIO, in mlx4_status_to_errno() 142 [CMD_STAT_BAD_OP] = -EPERM, in mlx4_status_to_errno() 143 [CMD_STAT_BAD_PARAM] = -EINVAL, in mlx4_status_to_errno() 144 [CMD_STAT_BAD_SYS_STATE] = -ENXIO, in mlx4_status_to_errno() 145 [CMD_STAT_BAD_RESOURCE] = -EBADF, in mlx4_status_to_errno() 146 [CMD_STAT_RESOURCE_BUSY] = -EBUSY, in mlx4_status_to_errno() 147 [CMD_STAT_EXCEED_LIM] = -ENOMEM, in mlx4_status_to_errno() [all …]
|
H A D | mlx4_eq.c | 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 38 #include <linux/dma-mapping.h> 89 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV) in get_async_ev_mask() 91 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT) in get_async_ev_mask() 99 __raw_writel((__force u32) cpu_to_be32((eq->cons_index & 0xffffff) | in eq_set_ci() 101 eq->doorbell); in eq_set_ci() 109 /* (entry & (eq->nent - 1)) gives us a cyclic array */ in get_eqe() 110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe() 118 …return eq->page_list[offset / PAGE_SIZE].buf + (offset + (eqe_factor ? MLX4_EQ_ENTRY_SIZE : 0)) % … in get_eqe() [all …]
|
/freebsd/sys/dev/iicbus/ |
H A D | iicsmb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 74 u_char devaddr; /* slave device address */ 90 static int iicsmb_quick(device_t dev, u_char slave, int how); 91 static int iicsmb_sendb(device_t dev, u_char slave, char byte); 92 static int iicsmb_recvb(device_t dev, u_char slave, char *byte); 93 static int iicsmb_writeb(device_t dev, u_char slave, char cmd, char byte); 94 static int iicsmb_writew(device_t dev, u_char slave, char cmd, short word); 95 static int iicsmb_readb(device_t dev, u_char slave, char cmd, char *byte); [all …]
|
H A D | iiconf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 44 * system errno value later. This lets controller- and bus-layer code get 54 * Translate IIC_Exxxxx status values to vaguely-equivelent errno values. 73 * If the high bit is set, that means it's a system errno value in iic2errno() 75 * IIC_ERRNO marker bit. If lots of high-order bits are set, in iic2errno() 76 * then it's one of the negative pseudo-errors such as ERESTART in iic2errno() 77 * and we return it as-is. Otherwise it's a plain "small in iic2errno() 79 * bit. If it's some unknown number without the high bit set, in iic2errno() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_mad.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 61 #define GET_BLK_PTR_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.bl… 62 #define GET_MASK_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.tbl_e… 102 return cpu_to_be64(atomic_inc_return(&ctx->tid)) | in mlx4_ib_get_new_demux_tid() 117 inmailbox = mlx4_alloc_cmd_mailbox(dev->dev); in mlx4_MAD_IFC() 118 if (IS_ERR(inmailbox)) in mlx4_MAD_IFC() 120 inbox = inmailbox->buf; in mlx4_MAD_IFC() 122 outmailbox = mlx4_alloc_cmd_mailbox(dev->dev); in mlx4_MAD_IFC() 123 if (IS_ERR(outmailbox)) { in mlx4_MAD_IFC() [all …]
|
H A D | mlx4_ib_sysfs.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 42 * 0 - requests opensm to assign a value. 43 * ffffffffffffffff - delete this entry. 44 * other - value assigned by administrator. 51 struct mlx4_ib_iov_port *port = mlx4_ib_iov_dentry->ctx; in show_admin_alias_guid() 52 struct mlx4_ib_dev *mdev = port->dev; in show_admin_alias_guid() 55 sysadmin_ag_val = mlx4_get_admin_guid(mdev->dev, in show_admin_alias_guid() 56 mlx4_ib_iov_dentry->entry_num, in show_admin_alias_guid() 57 port->num); in show_admin_alias_guid() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libcurses/director/ |
H A D | director.c | 3 /*- 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 50 #define DEF_SLAVE "./slave" 57 int cmdpipe[2]; /* command pipe between director and slave */ 58 int slvpipe[2]; /* reply pipe back from slave */ 59 int master; /* pty to the slave */ 69 * Handle the slave exiting unexpectedly, try to recover the exit message 78 fprintf(stderr, "ERROR: Slave has exited\n"); in slave_died() 79 if (saved_output.count > 0) { in slave_died() 80 fprintf(stderr, "output from slave: "); in slave_died() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libcurses/ |
H A D | testframe.txt | 3 ---------------- 21 number of pipes and a pseudo-tty (pty). The programs are called the 22 director and the slave. The director reads a configuration file of 23 tests to perform, passes these commands to the slave over a pipe and 24 reads the pty for any output from the slave. Data from the slave is 26 are highlighted to the tester. The slave is a curses application that 29 along with the parameters required for the call. The slave takes the 32 director over another pipe, if the curses routine updates any passed 40 -v enables verbose output to assist debugging 41 -s slave_path the director will execute slave_path as the slave [all …]
|
/freebsd/sys/dev/ichsmb/ |
H A D | ichsmb.c | 1 /*- 23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 67 * Enable debugging by defining ICHSMB_DEBUG to a non-zero value. 70 #if ICHSMB_DEBUG != 0 88 BUS-INDEPENDENT BUS METHODS 92 * Handle probe-time duties that are independent of the bus 102 * Handle attach-time duties that are independent of the bus 112 mtx_init(&sc->mutex, device_get_nameunit(dev), "ichsmb", MTX_DEF); in ichsmb_attach() 115 if ((sc->smb = device_add_child(dev, DRIVER_SMBUS, -1)) == NULL) { in ichsmb_attach() [all …]
|
/freebsd/sys/dev/alpm/ |
H A D | alpm.c | 1 /*- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 49 #define ALPM_DEBUG(x) if (alpm_debug) (x) 60 * I/O registers offsets - the base address is programmed via the 63 #define SMBSTS 0x0 /* SMBus host/slave status register */ 64 #define SMBCMD 0x1 /* SMBus host/slave command register */ 130 #define ALPM_LOCK(alpm) mtx_lock(&(alpm)->lock) 131 #define ALPM_UNLOCK(alpm) mtx_unlock(&(alpm)->lock) 132 #define ALPM_LOCK_ASSERT(alpm) mtx_assert(&(alpm)->lock, MA_OWNED) 135 (bus_space_read_1(alpm->smbst, alpm->smbsh, register)) [all …]
|
/freebsd/sys/dev/amdsmb/ |
H A D | amdsmb.c | 1 /*- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 45 #define AMDSMB_DEBUG(x) if (amdsmb_debug) (x) 94 #define SMB_STS_PEC 0x1f /* PEC (CRC-8) Error */ 114 #define AMDSMB_LOCK(amdsmb) mtx_lock(&(amdsmb)->lock) 115 #define AMDSMB_UNLOCK(amdsmb) mtx_unlock(&(amdsmb)->lock) 116 #define AMDSMB_LOCK_ASSERT(amdsmb) mtx_assert(&(amdsmb)->lock, MA_OWNED) 119 (bus_read_1(amdsmb->res, register)) 121 (bus_write_1(amdsmb->res, register, value)) 127 PCI_DESCR("AMD-8111 SMBus 2.0 Controller") } [all …]
|
/freebsd/sys/dev/nfsmb/ |
H A D | nfsmb.c | 1 /*- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 45 #define NFSMB_DEBUG(x) if (nfsmb_debug) (x) 100 #define SMB_STS_PEC 0x1F /* PEC (CRC-8) Error */ 121 #define NFSMB_LOCK(nfsmb) mtx_lock(&(nfsmb)->lock) 122 #define NFSMB_UNLOCK(nfsmb) mtx_unlock(&(nfsmb)->lock) 123 #define NFSMB_LOCK_ASSERT(nfsmb) mtx_assert(&(nfsmb)->lock, MA_OWNED) 126 (bus_read_1(nfsmb->res, register)) 128 (bus_write_1(nfsmb->res, register, value)) 150 if (vid == NFSMB_VENDORID_NVIDIA) { in nfsmb_probe() [all …]
|
/freebsd/lib/libutil/ |
H A D | pty.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 51 int master, slave; in openpty() local 54 if (master == -1) in openpty() 55 return (-1); in openpty() 57 if (grantpt(master) == -1) in openpty() 60 if (unlockpt(master) == -1) in openpty() 64 if (slavename == NULL) in openpty() 67 slave = open(slavename, O_RDWR); in openpty() [all …]
|
/freebsd/tools/regression/p1003_1b/ |
H A D | yield.c | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 4 * Copyright (c) 1996-1999 18 * 4. Neither the name of the author nor the names of any co-contributors 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 69 int master, slave; in yield() local 77 if (set.sched_priority == -1 && errno) { in yield() 82 if (argc == 1) in yield() 85 else if (argc != 2) { in yield() 87 exit(-1); in yield() [all …]
|
/freebsd/sys/dev/amdpm/ |
H A D | amdpm.c | 1 /*- 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 53 #define AMDPM_DEBUG(x) if (amdpm_debug) (x) 129 #define AMDPM_LOCK(amdpm) mtx_lock(&(amdpm)->lock) 130 #define AMDPM_UNLOCK(amdpm) mtx_unlock(&(amdpm)->lock) 131 #define AMDPM_LOCK_ASSERT(amdpm) mtx_assert(&(amdpm)->lock, MA_OWNED) 134 (bus_read_1(amdpm->res, register)) 136 (bus_write_1(amdpm->res, register, value)) 138 (bus_read_2(amdpm->res, register)) 140 (bus_write_2(amdpm->res, register, value)) [all …]
|
/freebsd/contrib/netbsd-tests/kernel/tty/ |
H A D | t_pr.c | 3 /*- 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 #include <atf-c.h> 56 if (cnt < (ssize_t)strlen(msg)) { in sendsome() 61 if (buf[i] == '\r' || buf[i] == '\n') { in sendsome() 72 exercise_ptytty(int master, int slave) in exercise_ptytty() argument 77 * send a few bytes from master to slave and read them back in exercise_ptytty() 79 error = sendsome(master, slave); in exercise_ptytty() 80 if (error) in exercise_ptytty() 89 error = sendsome(slave, master); in exercise_ptytty() [all …]
|
/freebsd/crypto/heimdal/lib/kadm5/ |
H A D | iprop.8 | 31 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 .Nm ipropd-master , 40 .Nm ipropd-slave 41 .Nd propagate changes to a Heimdal Kerberos master KDC to slave KDCs 43 .Nm ipropd-master 45 .Fl Fl config-file= Ns Ar string 60 .Op Fl Fl slave-stats-file= Ns Ar file 61 .Op Fl Fl time-missing= Ns Ar time 62 .Op Fl Fl time-gone= Ns Ar time 66 .Nm ipropd-slave [all …]
|
H A D | ipropd_master.c | 2 * Copyright (c) 1997 - 2008 Kungliga Tekniska Högskolan 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 59 if (fd < 0) in make_signal_socket() 65 if (bind (fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) in make_signal_socket() 74 fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in make_signal_socket() 75 if (rk_IS_BAD_SOCKET(fd)) in make_signal_socket() 76 krb5_err (context, 1, rk_SOCK_ERRNO, "socket AF=%d", ai->ai_family); in make_signal_socket() 78 if (rk_IS_SOCKET_ERROR( bind (fd, ai->ai_addr, ai->ai_addrlen) )) in make_signal_socket() 92 if (rk_IS_BAD_SOCKET(fd)) in make_listen_socket() 98 if (port_str) { in make_listen_socket() [all …]
|
/freebsd/sys/dev/imcsmb/ |
H A D | imcsmb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2017-2018 Panasas 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 60 static int imcsmb_readb(device_t dev, u_char slave, char cmd, char *byte); 61 static int imcsmb_readw(device_t dev, u_char slave, char cmd, short *word); 62 static int imcsmb_writeb(device_t dev, u_char slave, char cmd, char byte); 63 static int imcsmb_writew(device_t dev, u_char slave, char cmd, short word); 66 static int imcsmb_transfer(device_t dev, u_char slave, char cmd, void *data, 72 * which any SMBus slave device drivers will connect to. [all …]
|
/freebsd/sys/dev/intpm/ |
H A D | intpm.c | 1 /*- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 #define INTSMB_LOCK(sc) mtx_lock(&(sc)->lock) 63 #define INTSMB_UNLOCK(sc) mtx_unlock(&(sc)->lock) 64 #define INTSMB_LOCK_ASSERT(sc) mtx_assert(&(sc)->lock, MA_OWNED) 73 static int intsmb_quick(device_t dev, u_char slave, int how); 74 static int intsmb_sendb(device_t dev, u_char slave, char byte); 75 static int intsmb_recvb(device_t dev, u_char slave, char *byte); 76 static int intsmb_writeb(device_t dev, u_char slave, char cmd, char byte); 77 static int intsmb_writew(device_t dev, u_char slave, char cmd, short word); [all …]
|
/freebsd/sys/dev/smbus/ |
H A D | smb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 61 int slave; member 129 if (device_find_child(parent, "smb", -1) == NULL) in smb_identify() 136 if (smbus_get_add in smb_probe() [all...] |
/freebsd/sys/dev/viapm/ |
H A D | viapm.c | 1 /*- 2 * Copyright (c) 2001 Alcove - Nicolas Souchu 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 56 #define VIAPM_DEBUG(x) if (viapm_debug) (x) 75 ((u_char)bus_read_1(viapm->iores, port)) 77 (bus_write_1(viapm->iores, port, (u_char)(val))) 86 #define VIAPM_LOCK(sc) mtx_lock(&(sc)->lock) 87 #define VIAPM_UNLOCK(sc) mtx_unlock(&(sc)->lock) 88 #define VIAPM_LOCK_ASSERT(sc) mtx_assert(&(sc)->lock, MA_OWNED) 174 #define SMBSCTRL_ENABLE 0x01 /* enable slave */ [all …]
|
/freebsd/share/doc/smm/12.timed/ |
H A D | timed.ms | 26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 45 Command under contract No. N00039-84-C-0089, and by the Italian CSELT 53 .OH 'The Berkeley UNIX Time Synchronization Protocol''SMM:12-%' 54 .EH 'SMM:12-%''The Berkeley UNIX Time Synchronization Protocol' 64 is based on a master slave scheme. 70 among slave time daemons when, for any reason, the master disappears. 77 (one per machine) and is based on a master-slave 95 It then sends to each \fIslave time daemon\fP the 101 it starts a slave time daemon, which 109 A submaster time daemon functions as a slave on one network that [all …]
|
/freebsd/sys/arm/freescale/imx/ |
H A D | imx_i2c.c | 1 /*- 2 * Copyright (C) 2008-2009 Semihalf, Michal Hajduk 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * Note that the hardware is capable of running as both a master and a slave. 36 * This driver currently implements only master-mode operations. 38 * This driver supports multi-master i2c buses, by detecting bus arbitration 40 * retries if some other master jumps onto the bus and interrupts one of our 41 * transfer cycles resulting in arbitration loss in mid-transfer. The caller 42 * must handle retries in a way that makes sense for the slave being addressed. 73 #if defined(__aarch64__) [all …]
|