Searched refs:mvusb (Results 1 – 2 of 2) sorted by relevance
/drivers/net/mdio/ |
D | mdio-mvusb.c | 34 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_read() local 40 mvusb->buf[MVUSB_CMD_ADDR] = cpu_to_le16(0xa400 | (dev << 5) | reg); in mvusb_mdio_read() 42 err = usb_bulk_msg(mvusb->udev, usb_sndbulkpipe(mvusb->udev, 2), in mvusb_mdio_read() 43 mvusb->buf, 6, &alen, 100); in mvusb_mdio_read() 47 err = usb_bulk_msg(mvusb->udev, usb_rcvbulkpipe(mvusb->udev, 6), in mvusb_mdio_read() 48 &mvusb->buf[MVUSB_CMD_VAL], 2, &alen, 100); in mvusb_mdio_read() 52 return le16_to_cpu(mvusb->buf[MVUSB_CMD_VAL]); in mvusb_mdio_read() 57 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_write() local 63 mvusb->buf[MVUSB_CMD_ADDR] = cpu_to_le16(0x8000 | (dev << 5) | reg); in mvusb_mdio_write() 64 mvusb->buf[MVUSB_CMD_VAL] = cpu_to_le16(val); in mvusb_mdio_write() [all …]
|
D | Makefile | 20 obj-$(CONFIG_MDIO_MVUSB) += mdio-mvusb.o
|