| /NextBSD/sbin/mdconfig/ |
| HD | mdconfig.c | 57 static struct md_ioctl mdio; variable 103 bzero(&mdio, sizeof(mdio)); in main() 104 mdio.md_file = malloc(PATH_MAX); in main() 105 if (mdio.md_file == NULL) in main() 108 bzero(mdio.md_file, PATH_MAX); in main() 126 mdio.md_options |= MD_AUTOUNIT; in main() 133 mdio.md_options |= MD_AUTOUNIT; in main() 140 mdio.md_options |= MD_AUTOUNIT; in main() 150 mdio.md_type = MD_MALLOC; in main() 151 mdio.md_options |= MD_AUTOUNIT | MD_COMPRESS; in main() [all …]
|
| /NextBSD/sys/contrib/octeon-sdk/ |
| HD | cvmx-spi4000.c | 189 mdio_single_command_t mdio; in __cvmx_spi4000_mdio_write() local 191 mdio.u32 = 0; in __cvmx_spi4000_mdio_write() 192 mdio.s.mdi_command = 1; in __cvmx_spi4000_mdio_write() 193 mdio.s.op_code = 1; in __cvmx_spi4000_mdio_write() 194 mdio.s.phy_address = port; in __cvmx_spi4000_mdio_write() 195 mdio.s.reg_address = location; in __cvmx_spi4000_mdio_write() 205 __cvmx_spi4000_write(interface, 0x0680, mdio.u32); in __cvmx_spi4000_mdio_write() 220 mdio_single_command_t mdio; in __cvmx_spi4000_mdio_read() local 222 mdio.u32 = 0; in __cvmx_spi4000_mdio_read() 223 mdio.s.mdi_command = 1; in __cvmx_spi4000_mdio_read() [all …]
|
| /NextBSD/sys/dev/md/ |
| HD | md.c | 1254 mdcreate_malloc(struct md_s *sc, struct md_ioctl *mdio) in mdcreate_malloc() argument 1261 if (mdio->md_options & ~(MD_AUTOUNIT | MD_COMPRESS | MD_RESERVE)) in mdcreate_malloc() 1263 if (mdio->md_sectorsize != 0 && !powerof2(mdio->md_sectorsize)) in mdcreate_malloc() 1266 if (mdio->md_options & MD_RESERVE) in mdcreate_malloc() 1267 mdio->md_options &= ~MD_COMPRESS; in mdcreate_malloc() 1268 if (mdio->md_fwsectors != 0) in mdcreate_malloc() 1269 sc->fwsectors = mdio->md_fwsectors; in mdcreate_malloc() 1270 if (mdio->md_fwheads != 0) in mdcreate_malloc() 1271 sc->fwheads = mdio->md_fwheads; in mdcreate_malloc() 1272 sc->flags = mdio->md_options & (MD_COMPRESS | MD_FORCE); in mdcreate_malloc() [all …]
|
| /NextBSD/tests/sys/aio/ |
| HD | aio_test.c | 569 struct md_ioctl mdio; in aio_md_cleanup() local 578 bzero(&mdio, sizeof(mdio)); in aio_md_cleanup() 579 mdio.md_version = MDIOVERSION; in aio_md_cleanup() 580 mdio.md_unit = ama->ama_unit; in aio_md_cleanup() 581 if (ioctl(ama->ama_mdctl_fd, MDIOCDETACH, &mdio) == -1) { in aio_md_cleanup() 607 struct md_ioctl mdio; in ATF_TC_BODY() local 615 bzero(&mdio, sizeof(mdio)); in ATF_TC_BODY() 616 mdio.md_version = MDIOVERSION; in ATF_TC_BODY() 617 mdio.md_type = MD_MALLOC; in ATF_TC_BODY() 618 mdio.md_options = MD_AUTOUNIT | MD_COMPRESS; in ATF_TC_BODY() [all …]
|
| /NextBSD/sys/kern/ |
| HD | vfs_mountroot.c | 539 struct md_ioctl *mdio; in parse_dir_md() local 550 mdio = malloc(sizeof(*mdio) + len + 1, M_TEMP, M_WAITOK | M_ZERO); in parse_dir_md() 551 path = (void *)(mdio + 1); in parse_dir_md() 567 mdio->md_version = MDIOVERSION; in parse_dir_md() 568 mdio->md_type = MD_VNODE; in parse_dir_md() 571 mdio->md_unit = root_mount_mddev; in parse_dir_md() 573 error = kern_ioctl(td, fd, MDIOCDETACH, (void *)mdio); in parse_dir_md() 579 mdio->md_file = (void *)(mdio + 1); in parse_dir_md() 580 mdio->md_options = MD_AUTOUNIT | MD_READONLY; in parse_dir_md() 581 mdio->md_mediasize = sb.st_size; in parse_dir_md() [all …]
|
| /NextBSD/sys/dev/etherswitch/ |
| HD | miiproxy.c | 58 device_t mdio; member 243 sc->mdio = device_get_parent(rendezvous->target.device); in miiproxy_rendezvous_callback() 246 sc->mdio = NULL; in miiproxy_rendezvous_callback() 285 if (sc->mdio != NULL) in miiproxy_readreg() 286 return (MDIO_READREG(sc->mdio, phy, reg)); in miiproxy_readreg() 295 if (sc->mdio != NULL) in miiproxy_writereg() 296 return (MDIO_WRITEREG(sc->mdio, phy, reg, val)); in miiproxy_writereg() 398 device_printf(miiproxy, "attached to target %s\n", device_get_nameunit(sc->mdio)); in mii_attach_proxy() 438 DRIVER_MODULE(mdioproxy, mdio, mdioproxy_driver, mdioproxy_devclass, 0, 0);
|
| /NextBSD/sys/modules/mdio/ |
| HD | Makefile | 3 .PATH: ${.CURDIR}/../../dev/mdio 5 KMOD= mdio 6 SRCS= mdio.c
|
| /NextBSD/sys/boot/fdt/dts/powerpc/ |
| HD | p3041ds.dts | 260 mdio0: mdio@e1120 { 268 * ports. The fsl,hydra-mdio-muxval property 271 hydra_mdio_rgmii: hydra-mdio-rgmii { 274 compatible = "fsl,hydra-mdio"; 275 fsl,mdio-handle = <&mdio0>; 276 fsl,hydra-mdio-muxval = <0x00>; 289 * The fsl,hydra-mdio-muxval property will be 296 hydra_mdio_sgmii: hydra-mdio-sgmii { 299 compatible = "fsl,hydra-mdio"; 300 fsl,mdio-handle = <&mdio0>; [all …]
|
| HD | p5020ds.dts | 256 mdio0: mdio@e1120 { 264 * ports. The fsl,hydra-mdio-muxval property 267 hydra_mdio_rgmii: hydra-mdio-rgmii { 270 compatible = "fsl,hydra-mdio"; 271 fsl,mdio-handle = <&mdio0>; 272 fsl,hydra-mdio-muxval = <0x00>; 285 * The fsl,hydra-mdio-muxval property will be 292 hydra_mdio_sgmii: hydra-mdio-sgmii { 295 compatible = "fsl,hydra-mdio"; 296 fsl,mdio-handle = <&mdio0>; [all …]
|
| HD | p2041rdb.dts | 266 mdio0: mdio@e1120 { 307 mdio@e3120 { 320 mdio@e5120 { 333 mdio@e7120 { 346 mdio@e9120 { 362 mdio@f1000 {
|
| /NextBSD/sys/gnu/dts/arm/ |
| HD | ls1021a-qds.dts | 166 mdio-mux-emi1 { 167 compatible = "mdio-mux-mmioreg"; 168 mdio-parent-bus = <&mdio0>; 175 ls1021amdio0: mdio@0 { 184 ls1021amdio1: mdio@20 { 193 ls1021amdio2: mdio@40 { 202 ls1021amdio3: mdio@60 { 211 ls1021amdio4: mdio@80 {
|
| HD | moxart.dtsi | 104 mdio0: mdio@90900090 { 105 compatible = "moxa,moxart-mdio"; 112 mdio1: mdio@92000090 { 113 compatible = "moxa,moxart-mdio";
|
| HD | kirkwood-rd88f6281.dtsi | 72 dsa,mii-bus = <&mdio>; 126 &mdio {
|
| HD | orion5x.dtsi | 197 mdio: mdio-bus@72004 { label 198 compatible = "marvell,orion-mdio";
|
| HD | kirkwood-mv88f6281gtw-ge.dts | 130 dsa,mii-bus = <&mdio>; 170 &mdio {
|
| HD | kirkwood-km_kirkwood.dts | 17 &mdio {
|
| HD | kirkwood.dtsi | 322 mdio: mdio-bus@72004 { label 323 compatible = "marvell,orion-mdio";
|
| HD | kirkwood-openrd-base.dts | 29 &mdio {
|
| /NextBSD/usr.sbin/bsnmpd/modules/snmp_hostres/ |
| HD | hostres_diskstorage_tbl.c | 343 struct md_ioctl mdio; in disk_OS_get_MD_disks() local 368 memset(&mdio, 0, sizeof(mdio)); in disk_OS_get_MD_disks() 369 mdio.md_version = MDIOVERSION; in disk_OS_get_MD_disks() 370 mdio.md_unit = unit; in disk_OS_get_MD_disks() 372 if (ioctl(md_fd, MDIOCQUERY, &mdio) < 0) { in disk_OS_get_MD_disks() 378 if ((mdio.md_options & MD_READONLY) == MD_READONLY) in disk_OS_get_MD_disks()
|
| /NextBSD/sys/mips/conf/ |
| HD | ROUTERSTATION.hints | 5 # arge0 mdio bus 14 hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus 20 hint.arge.1.mdio=mdioproxy1 # .. off of the switch mdiobus
|
| HD | RSPRO.hints | 3 # arge0 mdio bus 12 hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus
|
| /NextBSD/sys/dev/vnic/ |
| HD | thunder_bgx_fdt.c | 126 phandle_t phy, mdio; in bgx_fdt_init_phy() local 182 mdio = OF_parent(phy); in bgx_fdt_init_phy() 184 OF_device_from_xref(OF_xref_from_node(mdio)); in bgx_fdt_init_phy()
|
| /NextBSD/sys/dev/mdio/ |
| HD | mdio_if.m | 5 INTERFACE mdio; 8 #include <dev/mdio/mdio.h>
|
| /NextBSD/sys/dev/beri/virtio/ |
| HD | virtio_block.c | 101 struct md_ioctl *mdio; member 245 sc->mdio->md_file, td); in open_file() 392 cfg->capacity = htobe64(sc->mdio->md_mediasize / DEV_BSIZE); in backend_info() 450 sc->mdio = (struct md_ioctl *)addr; in beri_ioctl()
|
| /NextBSD/sys/boot/fdt/dts/arm/ |
| HD | ts7800.dts | 127 mdio@0 { 130 compatible = "mrvl,mdio";
|