Home
last modified time | relevance | path

Searched +full:slave +full:- +full:dev (Results 1 – 25 of 248) sorted by relevance

12345678910

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_resource_tracker.c17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
42 #include <dev/mlx4/cmd.h>
43 #include <dev/mlx4/qp.h>
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()
[all …]
H A Dmlx4_cmd.c16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
42 #include <dev/mlx4/cmd.h>
43 #include <dev/mlx4/device.h>
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()
[all …]
H A Dmlx4_eq.c15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
38 #include <linux/dma-mapping.h>
41 #include <dev/mlx4/cmd.h>
86 static u64 get_async_ev_mask(struct mlx4_dev *dev) in get_async_ev_mask() argument
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()
[all …]
H A Dmlx4.h18 * - Redistributions of source code must retain the above
22 * - Redistributions in binary form must reproduce the above
41 #include <linux/radix-tree.h>
48 #include <dev/mlx4/device.h>
49 #include <dev/mlx4/driver.h>
50 #include <dev/mlx4/doorbell.h>
51 #include <dev/mlx4/cmd.h>
52 #include <dev/mlx4/mlx4_core/fw_qos.h>
86 MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE) / 16 - 2),
133 /*The flag indicates that the slave should delay the RESET cmd*/
[all …]
H A Dmlx4_port.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
40 #include <dev/mlx4/cmd.h>
46 #include <dev/mlx4/stats.h>
62 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table) in mlx4_init_mac_table() argument
66 mutex_init(&table->mutex); in mlx4_init_mac_table()
68 table->entries[i] = 0; in mlx4_init_mac_table()
69 table->refs[i] = 0; in mlx4_init_mac_table()
70 table->is_dup[i] = false; in mlx4_init_mac_table()
72 table->max = 1 << dev->caps.log_num_macs; in mlx4_init_mac_table()
[all …]
/freebsd/sys/dev/iicbus/
H A Diicsmb.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
57 #include <dev/iicbus/iiconf.h>
58 #include <dev/iicbus/iicbus.h>
60 #include <dev/smbus/smb.h>
61 #include <dev/smbus/smbconf.h>
74 u_char devaddr; /* slave devic
142 iicsmb_probe(device_t dev) iicsmb_probe() argument
149 iicsmb_attach(device_t dev) iicsmb_attach() argument
164 iicsmb_detach(device_t dev) iicsmb_detach() argument
181 iicsmb_intr(device_t dev,int event,char * buf) iicsmb_intr() argument
250 iicsmb_callback(device_t dev,int index,void * data) iicsmb_callback() argument
306 TRANSFER_MSGS(dev,msgs) global() argument
309 iicsmb_quick(device_t dev,u_char slave,int how) iicsmb_quick() argument
329 iicsmb_sendb(device_t dev,u_char slave,char byte) iicsmb_sendb() argument
341 iicsmb_recvb(device_t dev,u_char slave,char * byte) iicsmb_recvb() argument
353 iicsmb_writeb(device_t dev,u_char slave,char cmd,char byte) iicsmb_writeb() argument
366 iicsmb_writew(device_t dev,u_char slave,char cmd,short word) iicsmb_writew() argument
379 iicsmb_readb(device_t dev,u_char slave,char cmd,char * byte) iicsmb_readb() argument
392 iicsmb_readw(device_t dev,u_char slave,char cmd,short * word) iicsmb_readw() argument
408 iicsmb_pcall(device_t dev,u_char slave,char cmd,short sdata,short * rdata) iicsmb_pcall() argument
425 iicsmb_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) iicsmb_bwrite() argument
441 iicsmb_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) iicsmb_bread() argument
[all...]
H A Diiconf.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
37 #include <dev/iicbus/iiconf.h>
38 #include <dev/iicbus/iicbus.h>
44 * system errno value later. This lets controller- and bus-layer code get
54 * Translate IIC_Exxxxx status values to vaguely-equivelent errno values.
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()
99 if (sc->owner) in iicbus_intr()
[all …]
H A Dicee.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
47 #include <dev/ofw/ofw_bus.h>
48 #include <dev/ofw/ofw_bus_subr.h>
51 #include <dev/iicbus/iiconf.h>
52 #include <dev/iicbus/iicbus.h>
57 * AT24 parts have a "write page size" that differs per-device, and a "read page
66 device_t dev; /* Myself */ member
68 int addr; /* Slave address on the bus */
112 #define CDEV2SOFTC(dev) ((dev)->si_drv1) argument
[all …]
H A Dacpi_iicbus.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2019-2020 Vladimir Kondratyev <wulf@FreeBSD.org>
39 #include <contrib/dev/acpica/include/acpi.h>
40 #include <contrib/dev/acpica/include/accommon.h>
41 #include <contrib/dev/acpica/include/amlcode.h>
42 #include <dev/acpic
93 acpi_iicbus_sendb(device_t dev,u_char slave,char byte) acpi_iicbus_sendb() argument
103 acpi_iicbus_recvb(device_t dev,u_char slave,char * byte) acpi_iicbus_recvb() argument
119 acpi_iicbus_write(device_t dev,u_char slave,char cmd,void * buf,uint16_t buflen) acpi_iicbus_write() argument
131 acpi_iicbus_read(device_t dev,u_char slave,char cmd,void * buf,uint16_t buflen) acpi_iicbus_read() argument
155 acpi_iicbus_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) acpi_iicbus_bwrite() argument
170 acpi_iicbus_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) acpi_iicbus_bread() argument
221 device_t dev; acpi_iicbus_space_handler() local
394 device_t dev = context; acpi_iicbus_parse_resources_cb() local
427 acpi_iicbus_parse_resources(ACPI_HANDLE handle,device_t dev) acpi_iicbus_parse_resources() argument
435 acpi_iicbus_dump_res(device_t dev,ACPI_IICBUS_RESOURCE_I2C_SERIALBUS * sb) acpi_iicbus_dump_res() argument
449 acpi_iicbus_add_child(device_t dev,u_int order,const char * name,int unit) acpi_iicbus_add_child() argument
534 acpi_iicbus_enumerate_children(device_t dev) acpi_iicbus_enumerate_children() argument
542 acpi_iicbus_set_power_children(device_t dev,int state,bool all_children) acpi_iicbus_set_power_children() argument
558 acpi_iicbus_probe(device_t dev) acpi_iicbus_probe() argument
579 acpi_iicbus_attach(device_t dev) acpi_iicbus_attach() argument
597 acpi_iicbus_detach(device_t dev) acpi_iicbus_detach() argument
609 acpi_iicbus_suspend(device_t dev) acpi_iicbus_suspend() argument
621 acpi_iicbus_resume(device_t dev) acpi_iicbus_resume() argument
645 acpi_iicbus_driver_added(device_t dev,driver_t * driver) acpi_iicbus_driver_added() argument
[all...]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mad.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
39 #include <dev/mlx4/cmd.h>
40 #include <dev/mlx4/driver.h>
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…
89 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u8 port_num);
90 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u8 port_num);
91 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num,
102 return cpu_to_be64(atomic_inc_return(&ctx->tid)) | in mlx4_ib_get_new_demux_tid()
[all …]
H A Dmlx4_ib_sysfs.c14 * - 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.
46 static ssize_t show_admin_alias_guid(struct device *dev, in show_admin_alias_guid() argument
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()
[all …]
H A Dmlx4_ib_cm.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
35 #include <dev/mlx4/cmd.h>
51 struct mlx4_ib_dev *dev; member
77 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id()
80 msg->request_id = cpu_to_be32(cm_id); in set_local_comm_id()
81 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id()
86 msg->local_comm_id = cpu_to_be32(cm_id); in set_local_comm_id()
92 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id()
95 return be32_to_cpu(msg->request_id); in get_local_comm_id()
[all …]
/freebsd/sys/dev/alpm/
H A Dalpm.c1 /*-
43 #include <dev/pci/pcivar.h>
44 #include <dev/pci/pcireg.h>
46 #include <dev/smbus/smbconf.h>
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)->loc
142 alpm_probe(device_t dev) alpm_probe() argument
155 alpm_attach(device_t dev) alpm_attach() argument
232 alpm_detach(device_t dev) alpm_detach() argument
249 alpm_callback(device_t dev,int index,void * data) alpm_callback() argument
337 alpm_quick(device_t dev,u_char slave,int how) alpm_quick() argument
374 alpm_sendb(device_t dev,u_char slave,char byte) alpm_sendb() argument
400 alpm_recvb(device_t dev,u_char slave,char * byte) alpm_recvb() argument
426 alpm_writeb(device_t dev,u_char slave,char cmd,char byte) alpm_writeb() argument
453 alpm_readb(device_t dev,u_char slave,char cmd,char * byte) alpm_readb() argument
480 alpm_writew(device_t dev,u_char slave,char cmd,short word) alpm_writew() argument
508 alpm_readw(device_t dev,u_char slave,char cmd,short * word) alpm_readw() argument
540 alpm_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) alpm_bwrite() argument
581 alpm_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) alpm_bread() argument
[all...]
/freebsd/sys/dev/nfsmb/
H A Dnfsmb.c1 /*-
39 #include <dev/pci/pcivar.h>
40 #include <dev/pci/pcireg.h>
42 #include <dev/smbus/smbconf.h>
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->re
134 nfsmbsub_probe(device_t dev) nfsmbsub_probe() argument
142 nfsmb_probe(device_t dev) nfsmb_probe() argument
175 nfsmbsub_attach(device_t dev) nfsmbsub_attach() argument
211 nfsmb_attach(device_t dev) nfsmb_attach() argument
274 nfsmbsub_detach(device_t dev) nfsmbsub_detach() argument
295 nfsmb_detach(device_t dev) nfsmb_detach() argument
320 nfsmb_callback(device_t dev,int index,void * data) nfsmb_callback() argument
382 nfsmb_quick(device_t dev,u_char slave,int how) nfsmb_quick() argument
416 nfsmb_sendb(device_t dev,u_char slave,char byte) nfsmb_sendb() argument
435 nfsmb_recvb(device_t dev,u_char slave,char * byte) nfsmb_recvb() argument
454 nfsmb_writeb(device_t dev,u_char slave,char cmd,char byte) nfsmb_writeb() argument
474 nfsmb_readb(device_t dev,u_char slave,char cmd,char * byte) nfsmb_readb() argument
494 nfsmb_writew(device_t dev,u_char slave,char cmd,short word) nfsmb_writew() argument
515 nfsmb_readw(device_t dev,u_char slave,char cmd,short * word) nfsmb_readw() argument
536 nfsmb_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) nfsmb_bwrite() argument
562 nfsmb_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) nfsmb_bread() argument
[all...]
/freebsd/sys/dev/ichsmb/
H A Dichsmb.c1 /*-
23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
61 #include <dev/smbus/smbconf.h>
63 #include <dev/ichsmb/ichsmb_var.h>
64 #include <dev/ichsmb/ichsmb_reg.h>
67 * Enable debugging by defining ICHSMB_DEBUG to a non-zero value.
88 BUS-INDEPENDENT BUS METHODS
92 * Handle probe-time duties that are independent of the bus
96 ichsmb_probe(device_t dev) in ichsmb_probe() argument
102 * Handle attach-time duties that are independent of the bus
[all …]
/freebsd/sys/dev/amdsmb/
H A Damdsmb.c1 /*-
39 #include <dev/pci/pcivar.h>
40 #include <dev/pci/pcireg.h>
42 #include <dev/smbus/smbconf.h>
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->re
131 amdsmb_probe(device_t dev) amdsmb_probe() argument
144 amdsmb_attach(device_t dev) amdsmb_attach() argument
174 amdsmb_detach(device_t dev) amdsmb_detach() argument
192 amdsmb_callback(device_t dev,int index,void * data) amdsmb_callback() argument
325 amdsmb_quick(device_t dev,u_char slave,int how) amdsmb_quick() argument
359 amdsmb_sendb(device_t dev,u_char slave,char byte) amdsmb_sendb() argument
379 amdsmb_recvb(device_t dev,u_char slave,char * byte) amdsmb_recvb() argument
399 amdsmb_writeb(device_t dev,u_char slave,char cmd,char byte) amdsmb_writeb() argument
420 amdsmb_readb(device_t dev,u_char slave,char cmd,char * byte) amdsmb_readb() argument
441 amdsmb_writew(device_t dev,u_char slave,char cmd,short word) amdsmb_writew() argument
463 amdsmb_readw(device_t dev,u_char slave,char cmd,short * word) amdsmb_readw() argument
488 amdsmb_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) amdsmb_bwrite() argument
515 amdsmb_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) amdsmb_bread() argument
[all...]
/freebsd/sys/dev/imcsmb/
H A Dimcsmb.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2017-2018 Panasas
46 #include <dev/pci/pcivar.h>
47 #include <dev/pci/pcireg.h>
49 #include <dev/smbus/smbconf.h>
55 static int imcsmb_attach(device_t dev);
81 imcsmb_attach(device_t dev) imcsmb_attach() argument
120 imcsmb_detach(device_t dev) imcsmb_detach() argument
144 imcsmb_probe(device_t dev) imcsmb_probe() argument
168 imcsmb_callback(device_t dev,int index,void * data) imcsmb_callback() argument
217 imcsmb_readb(device_t dev,u_char slave,char cmd,char * byte) imcsmb_readb() argument
241 imcsmb_readw(device_t dev,u_char slave,char cmd,short * word) imcsmb_readw() argument
265 imcsmb_writeb(device_t dev,u_char slave,char cmd,char byte) imcsmb_writeb() argument
289 imcsmb_writew(device_t dev,u_char slave,char cmd,short word) imcsmb_writew() argument
321 imcsmb_transfer(device_t dev,u_char slave,char cmd,void * data,int word_op,int write_op) imcsmb_transfer() argument
[all...]
/freebsd/sys/dev/amdpm/
H A Damdpm.c1 /*-
47 #include <dev/pci/pcivar.h>
48 #include <dev/pci/pcireg.h>
50 #include <dev/smbus/smbconf.h>
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->re
145 amdpm_probe(device_t dev) amdpm_probe() argument
191 amdpm_attach(device_t dev) amdpm_attach() argument
229 amdpm_detach(device_t dev) amdpm_detach() argument
247 amdpm_callback(device_t dev,int index,void * data) amdpm_callback() argument
341 amdpm_quick(device_t dev,u_char slave,int how) amdpm_quick() argument
378 amdpm_sendb(device_t dev,u_char slave,char byte) amdpm_sendb() argument
405 amdpm_recvb(device_t dev,u_char slave,char * byte) amdpm_recvb() argument
432 amdpm_writeb(device_t dev,u_char slave,char cmd,char byte) amdpm_writeb() argument
460 amdpm_readb(device_t dev,u_char slave,char cmd,char * byte) amdpm_readb() argument
488 amdpm_writew(device_t dev,u_char slave,char cmd,short word) amdpm_writew() argument
516 amdpm_readw(device_t dev,u_char slave,char cmd,short * word) amdpm_readw() argument
544 amdpm_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) amdpm_bwrite() argument
588 amdpm_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) amdpm_bread() argument
[all...]
/freebsd/sys/dev/intpm/
H A Dintpm.c1 /*-
36 #include <dev/smbus/smbconf.h>
40 #include <dev/pci/pcireg.h>
41 #include <dev/pci/pcivar.h>
42 #include <dev/intpm/intpmreg.h>
43 #include <dev/amdsbwd/amd_chipset.h>
48 device_t dev; member
61 #define INTSMB_LOCK(sc) mtx_lock(&(sc)->lock)
62 #define INTSMB_UNLOCK(sc) mtx_unlock(&(sc)->lock)
63 #define INTSMB_LOCK_ASSERT(sc) mtx_assert(&(sc)->loc
106 intsmb_probe(device_t dev) intsmb_probe() argument
131 sb8xx_attach(device_t dev) sb8xx_attach() argument
201 intsmb_release_resources(device_t dev) intsmb_release_resources() argument
218 intsmb_attach(device_t dev) intsmb_attach() argument
353 intsmb_detach(device_t dev) intsmb_detach() argument
379 intsmb_callback(device_t dev,int index,void * data) intsmb_callback() argument
523 intsmb_error(device_t dev,int status) intsmb_error() argument
626 intsmb_quick(device_t dev,u_char slave,int how) intsmb_quick() argument
660 intsmb_sendb(device_t dev,u_char slave,char byte) intsmb_sendb() argument
680 intsmb_recvb(device_t dev,u_char slave,char * byte) intsmb_recvb() argument
710 intsmb_writeb(device_t dev,u_char slave,char cmd,char byte) intsmb_writeb() argument
731 intsmb_writew(device_t dev,u_char slave,char cmd,short word) intsmb_writew() argument
753 intsmb_readb(device_t dev,u_char slave,char cmd,char * byte) intsmb_readb() argument
775 intsmb_readw(device_t dev,u_char slave,char cmd,short * word) intsmb_readw() argument
799 intsmb_pcall(device_t dev,u_char slave,char cmd,short sdata,short * rdata) intsmb_pcall() argument
806 intsmb_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) intsmb_bwrite() argument
836 intsmb_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) intsmb_bread() argument
[all...]
/freebsd/sys/dev/viapm/
H A Dviapm.c1 /*-
2 * Copyright (c) 2001 Alcove - Nicolas Souchu
46 #include <dev/pci/pcivar.h>
47 #include <dev/pci/pcireg.h>
49 #include <dev/iicbus/iiconf.h>
51 #include <dev/smbus/smbconf.h>
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)->loc
183 viapm_586b_probe(device_t dev) viapm_586b_probe() argument
241 viapm_pro_probe(device_t dev) viapm_pro_probe() argument
337 viapm_pro_attach(device_t dev) viapm_pro_attach() argument
412 viapm_586b_attach(device_t dev) viapm_586b_attach() argument
442 viapm_586b_detach(device_t dev) viapm_586b_detach() argument
460 viapm_pro_detach(device_t dev) viapm_pro_detach() argument
480 viabb_callback(device_t dev,int index,caddr_t data) viabb_callback() argument
486 viabb_setscl(device_t dev,int ctrl) viabb_setscl() argument
506 viabb_setsda(device_t dev,int data) viabb_setsda() argument
526 viabb_reset(device_t dev,u_char speed,u_char addr,u_char * oldaddr) viabb_reset() argument
536 viabb_getscl(device_t dev) viabb_getscl() argument
548 viabb_getsda(device_t dev) viabb_getsda() argument
637 viasmb_callback(device_t dev,int index,void * data) viasmb_callback() argument
654 viasmb_quick(device_t dev,u_char slave,int how) viasmb_quick() argument
688 viasmb_sendb(device_t dev,u_char slave,char byte) viasmb_sendb() argument
714 viasmb_recvb(device_t dev,u_char slave,char * byte) viasmb_recvb() argument
740 viasmb_writeb(device_t dev,u_char slave,char cmd,char byte) viasmb_writeb() argument
767 viasmb_readb(device_t dev,u_char slave,char cmd,char * byte) viasmb_readb() argument
794 viasmb_writew(device_t dev,u_char slave,char cmd,short word) viasmb_writew() argument
822 viasmb_readw(device_t dev,u_char slave,char cmd,short * word) viasmb_readw() argument
854 viasmb_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) viasmb_bwrite() argument
893 viasmb_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) viasmb_bread() argument
[all...]
/freebsd/sys/dev/iicbus/controller/opencores/
H A Diicoc.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2012 Broadcom Corporation
42 #include <dev/iicbus/iicbus.h>
43 #include <dev/iicbus/iiconf.h>
51 iicoc_dev_write(device_t dev, int reg, int value) in iicoc_dev_write() argument
55 sc = device_get_softc(dev); in iicoc_dev_write()
56 bus_write_1(sc->mem_res, reg<<sc->reg_shift, value); in iicoc_dev_write()
60 iicoc_dev_read(device_t dev, int reg) in iicoc_dev_read() argument
65 sc = device_get_softc(dev); in iicoc_dev_read()
[all …]
/freebsd/sys/dev/smbus/
H A Dsmbus_if.m1 #-
36 device_t dev;
47 device_t dev;
56 device_t dev;
57 u_char slave;
65 device_t dev;
66 u_char slave;
74 device_t dev;
75 u_char slave;
83 device_t dev;
[all …]
H A Dsmb.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
40 #include <dev/smbus/smbconf.h>
41 #include <dev/smbus/smbus.h>
42 #include <dev/smbus/smb.h>
61 int slave; member
129 if (device_find_child(parent, "smb", - in smb_identify()
134 smb_probe(device_t dev) smb_probe() argument
144 smb_attach(device_t dev) smb_attach() argument
165 smb_detach(device_t dev) smb_detach() argument
190 smbioctl(struct cdev * dev,u_long cmd,caddr_t data,int flags,struct thread * td) smbioctl() argument
[all...]
/freebsd/sys/dev/ismt/
H A Dismt.c1 /*-
45 #include <dev/pci/pcireg.h>
46 #include <dev/pci/pcivar.h>
47 #include <dev/smbus/smbconf.h>
53 /* Hardware Descriptor Constants - Control Field */
62 /* Hardware Descriptor Constants - Status Field */
182 val = bus_read_4(sc->mmio_res, ISMT_MSTR_MSTS); in ismt_intr()
183 ISMT_DEBUG(sc->pcidev, "%s MSTS=0x%x\n", __func__, val); in ismt_intr()
186 bus_write_4(sc->mmio_res, ISMT_MSTR_MSTS, val); in ismt_intr()
192 ismt_callback(device_t dev, int index, void *data) in ismt_callback() argument
[all …]
/freebsd/contrib/netbsd-tests/kernel/tty/
H A Dt_pr.c3 /*-
36 #include <atf-c.h>
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()
89 error = sendsome(slave, master); in exercise_ptytty()
108 int master, slave, error, v; in ATF_TC_BODY() local
111 slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK); in ATF_TC_BODY()
112 ATF_CHECK(slave != -1); in ATF_TC_BODY()
114 master = rump_sys_open("/dev/ptyp1", O_RDWR); in ATF_TC_BODY()
[all …]

12345678910