Searched refs:dev (Results 76 - 100 of 6728) sorted by relevance

1234567891011>>

/freebsd-12-stable/sys/dev/iicbus/
H A Diicoc.c45 #include <dev/iicbus/iiconf.h>
46 #include <dev/iicbus/iicbus.h>
47 #include <dev/iicbus/iicoc.h>
49 #include <dev/pci/pcireg.h>
50 #include <dev/pci/pcivar.h>
63 static int iicoc_start(device_t dev, u_char slave, int timeout);
64 static int iicoc_stop(device_t dev);
65 static int iicoc_read(device_t dev, char *buf,
67 static int iicoc_write(device_t dev, const char *buf,
69 static int iicoc_repeated_start(device_t dev, u_cha
72 device_t dev; /* Self */ member in struct:iicoc_softc
85 iicoc_dev_write(device_t dev, int reg, int value) argument
94 iicoc_dev_read(device_t dev, int reg) argument
105 iicoc_wait_on_status(device_t dev, uint8_t bit) argument
118 iicoc_rd_cmd(device_t dev, uint8_t cmd) argument
132 iicoc_wr_cmd(device_t dev, uint8_t data, uint8_t cmd) argument
145 iicoc_wr_ack_cmd(device_t dev, uint8_t data, uint8_t cmd) argument
158 iicoc_init(device_t dev) argument
179 iicoc_probe(device_t dev) argument
201 iicoc_attach(device_t dev) argument
231 iicoc_detach(device_t dev) argument
240 iicoc_start(device_t dev, u_char slave, int timeout) argument
278 iicoc_stop(device_t dev) argument
293 iicoc_write(device_t dev, const char *buf, int len, int *sent, int timeout ) argument
323 iicoc_read(device_t dev, char *buf, int len, int *read, int last, int delay) argument
349 iicoc_reset(device_t dev, u_char speed, u_char addr, u_char *oldadr) argument
362 iicoc_repeated_start(device_t dev, u_char slave, int timeout) argument
[all...]
/freebsd-12-stable/sys/arm/allwinner/
H A Daw_if_dwc.c38 #include <dev/dwc/if_dwc.h>
39 #include <dev/dwc/if_dwcvar.h>
40 #include <dev/ofw/ofw_bus.h>
41 #include <dev/ofw/ofw_bus_subr.h>
44 #include <dev/extres/clk/clk.h>
45 #include <dev/extres/regulator/regulator.h>
50 a20_if_dwc_probe(device_t dev) argument
53 if (!ofw_bus_status_okay(dev))
55 if (!ofw_bus_is_compatible(dev, "allwinner,sun7i-a20-gmac"))
57 device_set_desc(dev, "A2
63 a20_if_dwc_init(device_t dev) argument
114 a20_if_dwc_mac_type(device_t dev) argument
121 a20_if_dwc_mii_clk(device_t dev) argument
[all...]
/freebsd-12-stable/sys/dev/acpica/
H A Dacpi_pcivar.h33 void acpi_pci_child_added(device_t dev, device_t child);
/freebsd-12-stable/sys/dev/etherswitch/arswitch/
H A Darswitch_7240.h33 extern int ar7240_probe(device_t dev);
H A Darswitch_9340.h34 extern int ar9340_probe(device_t dev);
H A Darswitch_phy.h33 extern int arswitch_readphy_external(device_t dev, int phy, int reg);
34 extern int arswitch_writephy_external(device_t dev, int phy, int reg, int data);
36 extern int arswitch_readphy_internal(device_t dev, int phy, int reg);
37 extern int arswitch_writephy_internal(device_t dev, int phy, int reg, int data);
/freebsd-12-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_catas.c52 static int read_vendor_id(struct mlx4_dev *dev) argument
57 ret = pci_read_config_word(dev->persist->pdev, 0, &vendor_id);
59 mlx4_err(dev, "Failed to read vendor ID, ret=%d\n", ret);
64 mlx4_err(dev, "PCI can't be accessed to read vendor id\n");
71 static int mlx4_reset_master(struct mlx4_dev *dev) argument
75 if (mlx4_is_master(dev))
76 mlx4_report_internal_err_comm_event(dev);
78 if (!pci_channel_offline(dev->persist->pdev)) {
79 err = read_vendor_id(dev);
86 err = mlx4_reset(dev);
94 mlx4_reset_slave(struct mlx4_dev *dev) argument
172 struct mlx4_dev *dev; local
217 dump_err_buf(struct mlx4_dev *dev) argument
231 struct mlx4_dev *dev = (struct mlx4_dev *) dev_ptr; local
269 mlx4_start_catas_poll(struct mlx4_dev *dev) argument
298 mlx4_stop_catas_poll(struct mlx4_dev *dev) argument
313 mlx4_catas_init(struct mlx4_dev *dev) argument
323 mlx4_catas_end(struct mlx4_dev *dev) argument
[all...]
H A Dmlx4_pd.c47 int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn) argument
49 struct mlx4_priv *priv = mlx4_priv(dev);
59 void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn) argument
61 mlx4_bitmap_free(&mlx4_priv(dev)->pd_bitmap, pdn, MLX4_USE_RR);
65 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) argument
67 struct mlx4_priv *priv = mlx4_priv(dev);
76 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) argument
81 if (mlx4_is_mfunc(dev)) {
82 err = mlx4_cmd_imm(dev, 0, &out_param,
92 return __mlx4_xrcd_alloc(dev, xrcd
96 __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) argument
101 mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) argument
118 mlx4_init_pd_table(struct mlx4_dev *dev) argument
127 mlx4_cleanup_pd_table(struct mlx4_dev *dev) argument
132 mlx4_init_xrcd_table(struct mlx4_dev *dev) argument
140 mlx4_cleanup_xrcd_table(struct mlx4_dev *dev) argument
145 mlx4_uar_alloc(struct mlx4_dev *dev, struct mlx4_uar *uar) argument
166 mlx4_uar_free(struct mlx4_dev *dev, struct mlx4_uar *uar) argument
172 mlx4_bf_alloc(struct mlx4_dev *dev, struct mlx4_bf *bf, int node) argument
246 mlx4_bf_free(struct mlx4_dev *dev, struct mlx4_bf *bf) argument
272 mlx4_init_uar_table(struct mlx4_dev *dev) argument
291 mlx4_cleanup_uar_table(struct mlx4_dev *dev) argument
[all...]
/freebsd-12-stable/sys/dev/mlx5/
H A Dmpfs.h32 int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u32 *p_index, const u8 *mac,
34 int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u32 index);
35 int mlx5_mpfs_init(struct mlx5_core_dev *dev);
36 void mlx5_mpfs_destroy(struct mlx5_core_dev *dev);
/freebsd-12-stable/sys/dev/usb/controller/
H A Ddwc_otg_hisi.c38 #include <dev/ofw/ofw_bus_subr.h>
40 #include <dev/usb/usb.h>
41 #include <dev/usb/usbdi.h>
43 #include <dev/usb/usb_busdma.h>
44 #include <dev/usb/usb_process.h>
46 #include <dev/usb/usb_controller.h>
47 #include <dev/usb/usb_bus.h>
49 #include <dev/usb/controller/dwc_otg.h>
50 #include <dev/usb/controller/dwc_otg_fdt.h>
56 hisi_dwc_otg_probe(device_t dev) argument
71 hisi_dwc_otg_attach(device_t dev) argument
[all...]
/freebsd-12-stable/sys/dev/amdsmn/
H A Damdsmn.h31 int amdsmn_read(device_t dev, uint32_t addr, uint32_t *value);
32 int amdsmn_write(device_t dev, uint32_t addr, uint32_t value);
/freebsd-12-stable/sys/mips/malta/
H A Dgtvar.h35 device_t dev; member in struct:gt_softc
/freebsd-12-stable/tests/sys/cddl/zfs/tests/devices/
H A Ddevices_003_pos.ksh42 # Writing random data into /dev/zfs should do no harm.
45 # 1. Write some random data into /dev/zfs
59 log_assert "Writing random data into /dev/zfs should do no harm."
61 log_mustnot $DD if=/dev/urandom of=/dev/zfs count=1024
63 log_pass "Writing random data into /dev/zfs should do no harm."
/freebsd-12-stable/sys/arm/broadcom/bcm2835/
H A Dbcm283x_dwc_fdt.c38 #include <dev/ofw/ofw_bus_subr.h>
40 #include <dev/usb/usb.h>
41 #include <dev/usb/usbdi.h>
43 #include <dev/usb/usb_busdma.h>
44 #include <dev/usb/usb_process.h>
46 #include <dev/usb/usb_controller.h>
47 #include <dev/usb/usb_bus.h>
49 #include <dev/usb/controller/dwc_otg.h>
50 #include <dev/usb/controller/dwc_otg_fdt.h>
65 bcm283x_dwc_otg_probe(device_t dev) argument
80 bcm283x_dwc_otg_attach(device_t dev) argument
[all...]
/freebsd-12-stable/sys/dev/drm2/
H A Ddrm_stub.c37 #include <dev/drm2/drmP.h>
38 #include <dev/drm2/drm_core.h>
86 static int drm_minor_get_id(struct drm_device *dev, int type) argument
90 new_id = device_get_unit(dev->dev);
135 struct drm_device *dev = master->minor->dev; local
140 if (dev->driver->master_destroy)
141 dev->driver->master_destroy(dev, maste
175 drm_setmaster_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
207 drm_dropmaster_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument
225 drm_fill_in_dev(struct drm_device *dev, struct drm_driver *driver) argument
298 drm_cancel_fill_in_dev(struct drm_device *dev) argument
342 drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type) argument
436 drm_put_dev(struct drm_device *dev) argument
[all...]
/freebsd-12-stable/sys/dev/drm/
H A Dmach64_drv.c39 #include "dev/drm/drmP.h"
40 #include "dev/drm/drm.h"
41 #include "dev/drm/mach64_drm.h"
42 #include "dev/drm/mach64_drv.h"
43 #include "dev/drm/drm_pciids.h"
50 static void mach64_configure(struct drm_device *dev) argument
52 dev->driver->driver_features =
56 dev->driver->buf_priv_size = 1; /* No dev_priv */
57 dev->driver->load = mach64_driver_load;
58 dev
88 struct drm_device *dev = device_get_softc(kdev); local
99 mach64_driver_load(struct drm_device * dev, unsigned long flags) argument
107 struct drm_device *dev = device_get_softc(kdev); local
[all...]
/freebsd-12-stable/sys/dev/pms/RefTisa/tisa/sassata/common/
H A Dtdhw.c31 #include <dev/pms/config.h>
33 #include <dev/pms/freebsd/driver/common/osenv.h>
34 #include <dev/pms/freebsd/driver/common/ostypes.h>
35 #include <dev/pms/freebsd/driver/common/osdebug.h>
37 #include <dev/pms/RefTisa/sallsdk/api/sa.h>
38 #include <dev/pms/RefTisa/sallsdk/api/saapi.h>
39 #include <dev/pms/RefTisa/sallsdk/api/saosapi.h>
41 #include <dev/pms/RefTisa/tisa/api/titypes.h>
42 #include <dev/pms/RefTisa/tisa/api/ostiapi.h>
43 #include <dev/pm
[all...]
/freebsd-12-stable/tests/sys/cddl/zfs/tests/hotspare/
H A Dhotspare_remove_004_pos.ksh73 function verify_assertion # dev
75 typeset dev=$1
78 log_must $MV $dev $dev.bak
80 log_must $ZPOOL remove $TESTPOOL $dev
81 log_mustnot iscontained "$TESTPOOL" $dev
82 log_must $MV $dev.bak $dev
H A Dhotspare_remove_002_neg.ksh71 function verify_assertion # dev
73 typeset dev=$1
76 log_must $ZPOOL replace $TESTPOOL $odev $dev
77 log_mustnot $ZPOOL remove $TESTPOOL $dev
78 log_must $ZPOOL detach $TESTPOOL $dev
89 dev_nonexist=/dev/${disk}sbad_slice_num
93 dev_nonexist=/dev/${DISK0}sbad_slice_num
103 for dev in $dev_nonexist ; do
104 log_mustnot $ZPOOL remove $TESTPOOL $dev
107 for dev i
[all...]
/freebsd-12-stable/tools/regression/ccd/layout/
H A Dccd.sh17 ) > /dev/null 2>&1
24 ccdconfig -v ccd3 $5 $6 /dev/md90 /dev/md91 /dev/md92 /dev/md93
25 ./a > /dev/ccd3
27 md5 < /dev/md90
28 md5 < /dev/md91
29 md5 < /dev/md92
30 md5 < /dev/md9
[all...]
/freebsd-12-stable/sys/dev/mthca/
H A Dmthca_catas.c63 struct mthca_dev *dev, *tmpdev; local
73 list_for_each_entry_safe(dev, tmpdev, &tlist, catas_err.list) {
74 struct pci_dev *pdev = dev->pdev;
75 ret = __mthca_restart_one(dev->pdev);
76 /* 'dev' now is not valid */
89 static void handle_catas(struct mthca_dev *dev) argument
96 event.device = &dev->ib_dev;
99 dev->active = false;
103 switch (swab32(readl(dev->catas_err.map)) >> 24) {
121 mthca_err(dev, "Catastrophi
137 struct mthca_dev *dev = (struct mthca_dev *) dev_ptr; local
150 mthca_start_catas_poll(struct mthca_dev *dev) argument
176 mthca_stop_catas_poll(struct mthca_dev *dev) argument
[all...]
H A Dmthca_eq.c166 static inline u64 async_mask(struct mthca_dev *dev) argument
168 return dev->mthca_flags & MTHCA_FLAG_SRQ ?
173 static inline void tavor_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) argument
185 dev->kar + MTHCA_EQ_DOORBELL,
186 MTHCA_GET_DOORBELL_LOCK(&dev->doorbell_lock));
189 static inline void arbel_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) argument
194 dev->eq_regs.arbel.eq_set_ci_base + eq->eqn * 8);
199 static inline void set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) argument
201 if (mthca_is_memfree(dev))
202 arbel_set_eq_ci(dev, e
207 tavor_eq_req_not(struct mthca_dev *dev, int eqn) argument
214 arbel_eq_req_not(struct mthca_dev *dev, u32 eqn_mask) argument
219 disarm_cq(struct mthca_dev *dev, int eqn, int cqn) argument
246 port_change(struct mthca_dev *dev, int port, int active) argument
260 mthca_eq_int(struct mthca_dev *dev, struct mthca_eq *eq) argument
393 struct mthca_dev *dev = dev_ptr; local
421 struct mthca_dev *dev = eq->dev; local
433 struct mthca_dev *dev = dev_ptr; local
455 struct mthca_dev *dev = eq->dev; local
465 mthca_create_eq(struct mthca_dev *dev, int nent, u8 intr, struct mthca_eq *eq) argument
588 mthca_free_eq(struct mthca_dev *dev, struct mthca_eq *eq) argument
628 mthca_free_irqs(struct mthca_dev *dev) argument
642 mthca_map_reg(struct mthca_dev *dev, unsigned long offset, unsigned long size, void __iomem **map) argument
655 mthca_map_eq_regs(struct mthca_dev *dev) argument
716 mthca_unmap_eq_regs(struct mthca_dev *dev) argument
728 mthca_map_eq_icm(struct mthca_dev *dev, u64 icm_virt) argument
759 mthca_unmap_eq_icm(struct mthca_dev *dev) argument
767 mthca_init_eq_table(struct mthca_dev *dev) argument
888 mthca_cleanup_eq_table(struct mthca_dev *dev) argument
[all...]
/freebsd-12-stable/gnu/usr.bin/grep/tests/
H A Dempty.sh12 echo "" | ${GREP} $options -e '' > /dev/null 2>&1
19 echo "abcd" | ${GREP} $options -f /dev/null > /dev/null 2>&1
26 echo "abcd" | ${GREP} $options -f /dev/null -e "abcd" > /dev/null 2>&1
/freebsd-12-stable/sys/mips/ingenic/
H A Djz4780_dme.c48 #include <dev/fdt/fdt_common.h>
49 #include <dev/ofw/ofw_bus.h>
50 #include <dev/ofw/ofw_bus_subr.h>
53 device_t dev; member in struct:jz4780_dme_softc
63 static int jz4780_dme_probe(device_t dev);
64 static int jz4780_dme_attach(device_t dev);
65 static int jz4780_dme_detach(device_t dev);
68 jz4780_dme_probe(device_t dev) argument
71 if (!ofw_bus_status_okay(dev))
74 if (!ofw_bus_is_compatible(dev, "davico
83 jz4780_dme_attach(device_t dev) argument
98 jz4780_dme_detach(device_t dev) argument
[all...]
H A Djz4780_nand.c48 #include <dev/fdt/fdt_common.h>
49 #include <dev/ofw/ofw_bus.h>
50 #include <dev/ofw/ofw_bus_subr.h>
53 device_t dev; member in struct:jz4780_nand_softc
62 static int jz4780_nand_probe(device_t dev);
63 static int jz4780_nand_attach(device_t dev);
64 static int jz4780_nand_detach(device_t dev);
67 jz4780_nand_probe(device_t dev) argument
70 if (!ofw_bus_status_okay(dev))
73 if (!ofw_bus_is_compatible(dev, "ingeni
82 jz4780_nand_attach(device_t dev) argument
97 jz4780_nand_detach(device_t dev) argument
[all...]

Completed in 287 milliseconds

1234567891011>>