Home
last modified time | relevance | path

Searched full:vio (Results 1 – 25 of 242) sorted by relevance

12345678910

/openbmc/linux/arch/sparc/kernel/
H A Dviohs.c16 #include <asm/vio.h>
18 int vio_ldc_send(struct vio_driver_state *vio, void *data, int len) in vio_ldc_send() argument
24 err = ldc_write(vio->lp, data, len); in vio_ldc_send()
34 static int send_ctrl(struct vio_driver_state *vio, in send_ctrl() argument
37 tag->sid = vio_send_sid(vio); in send_ctrl()
38 return vio_ldc_send(vio, tag, len); in send_ctrl()
48 static int send_version(struct vio_driver_state *vio, u16 major, u16 minor) in send_version() argument
52 vio->_local_sid = (u32) sched_clock(); in send_version()
58 pkt.dev_class = vio->dev_class; in send_version()
61 major, minor, vio->dev_class); in send_version()
[all …]
H A Dvio.c2 /* vio.c: Virtual I/O channel devices probing infrastructure.
20 #include <asm/vio.h>
53 add_uevent_var(env, "MODALIAS=vio:T%sS%s", vio_dev->type, vio_dev->compat); in vio_hotplug()
140 return sprintf(buf, "vio:T%sS%s\n", vdev->type, vdev->compat); in modalias_show()
153 .name = "vio",
309 printk(KERN_ERR "VIO: Type string [%s] is too long.\n", in vio_create_one()
322 printk(KERN_ERR "VIO: Compat len %d for [%s] is too long.\n", in vio_create_one()
329 printk(KERN_ERR "VIO: Could not allocate vio_dev\n"); in vio_create_one()
387 pr_err("VIO: Could not get MD node info %s, err=%d\n", in vio_create_one()
394 pr_info("VIO: Adding device %s (tx_ino = %llx, rx_ino = %llx)\n", in vio_create_one()
[all …]
/openbmc/linux/drivers/block/
H A Dsunvdc.c21 #include <asm/vio.h>
57 struct vio_driver_state vio; member
95 static inline struct vdc_port *to_vdc_port(struct vio_driver_state *vio) in to_vdc_port() argument
97 return container_of(vio, struct vdc_port, vio); in to_vdc_port()
110 return port->vio.ver.major == major && port->vio.ver.minor >= minor; in vdc_version_supported()
181 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; in vdc_blk_queue_start()
191 static void vdc_finish(struct vio_driver_state *vio, int err, int waiting_for) in vdc_finish() argument
193 if (vio->cmp && in vdc_finish()
195 vio->cmp->waiting_for == waiting_for)) { in vdc_finish()
196 vio->cmp->err = err; in vdc_finish()
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Dvio.h119 /* VIO disk specific structures and defines */
212 /* VIO net specific structures and defines */
379 int (*send_attr)(struct vio_driver_state *vio);
380 int (*handle_attr)(struct vio_driver_state *vio, void *pkt);
381 void (*handshake_complete)(struct vio_driver_state *vio);
391 /* Protects VIO handshake and, optionally, driver private state. */
444 static inline bool vio_version_before(struct vio_driver_state *vio, in vio_version_before() argument
447 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_before()
453 static inline bool vio_version_after(struct vio_driver_state *vio, in vio_version_after() argument
456 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_after()
[all …]
/openbmc/linux/drivers/net/ethernet/sun/
H A Dsunvnet_common.c32 #include <asm/vio.h>
62 ldc_disconnect(port->vio.lp); in vnet_handle_unknown()
69 int sunvnet_send_attr_common(struct vio_driver_state *vio) in sunvnet_send_attr_common() argument
71 struct vnet_port *port = to_vnet_port(vio); in sunvnet_send_attr_common()
77 err = vnet_port_alloc_tx_ring(to_vnet_port(vio)); in sunvnet_send_attr_common()
85 pkt.tag.sid = vio_send_sid(vio); in sunvnet_send_attr_common()
86 if (vio_version_before(vio, 1, 2)) in sunvnet_send_attr_common()
94 if (vio_version_after(vio, 1, 3)) { in sunvnet_send_attr_common()
102 if (vio_version_after_eq(vio, 1, 6)) in sunvnet_send_attr_common()
104 } else if (vio_version_before(vio, 1, 3)) { in sunvnet_send_attr_common()
[all …]
H A Dsunvnet_common.h16 #define VNET_MINTSO 2048 /* VIO protocol's minimum TSO len */
17 #define VNET_MAXTSO 65535 /* VIO protocol's maximum TSO len */
59 struct vio_driver_state vio; member
93 static inline struct vnet_port *to_vnet_port(struct vio_driver_state *vio) in to_vnet_port() argument
95 return container_of(vio, struct vnet_port, vio); in to_vnet_port()
147 int sunvnet_send_attr_common(struct vio_driver_state *vio);
148 int sunvnet_handle_attr_common(struct vio_driver_state *vio, void *arg);
149 void sunvnet_handshake_complete_common(struct vio_driver_state *vio);
H A Dldmvsw.c30 #include <asm/vio.h>
130 struct vio_driver_state *vio = &port->vio; in ldmvsw_open() local
133 vio_link_state_change(vio, LDC_EVENT_RESET); in ldmvsw_open()
135 vio_port_up(vio); in ldmvsw_open()
347 err = vio_driver_init(&port->vio, vdev, VDEV_NETWORK, in vsw_port_probe()
353 err = vio_ldc_alloc(&port->vio, &vsw_ldc_cfg, port); in vsw_port_probe()
378 vio_port_up(&port->vio); in vsw_port_probe()
398 vio_ldc_free(&port->vio); in vsw_port_probe()
411 del_timer_sync(&port->vio.timer); in vsw_port_remove()
425 vio_ldc_free(&port->vio); in vsw_port_remove()
[all …]
/openbmc/linux/drivers/tty/
H A Dvcc.c15 #include <asm/vio.h>
23 struct vio_driver_state vio; member
256 struct vio_driver_state *vio = &port->vio; in vcc_kick_rx() local
261 disable_irq_nosync(vio->vdev->rx_irq); in vcc_kick_rx()
308 struct vio_driver_state *vio = &port->vio; in vcc_ldc_read() local
315 rv = ldc_rx_reset(vio->lp); in vcc_ldc_read()
327 vccdbgl(vio->lp); in vcc_ldc_read()
329 rv = ldc_read(vio->lp, &pkt, sizeof(pkt)); in vcc_ldc_read()
360 struct vio_driver_state *vio; in vcc_rx_timer() local
367 vio = &port->vio; in vcc_rx_timer()
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Dstandard_device_tests.cpp161 rails.emplace_back(createRailStatusVout("VIO", false, 7)); in TEST()
168 EXPECT_EQ(device.getRails()[2]->getName(), "VIO"); in TEST()
195 rails.emplace_back(createRailStatusVout("VIO", false, 7)); in TEST()
201 EXPECT_EQ(device.getRails()[2]->getName(), "VIO"); in TEST()
212 rails.emplace_back(createRailStatusVout("VIO", false, 7)); in TEST()
242 rails.emplace_back(createRailStatusVout("VIO", false, 7)); in TEST()
291 rails.emplace_back(createRailStatusVout("VIO", false, 7)); in TEST()
339 rails.emplace_back(createRailStatusVout("VIO", false, 7)); in TEST()
395 rails.emplace_back(createRailStatusVout("VIO", false, 7)); in TEST()
415 EXPECT_CALL(services, logInfoMsg("Rail VIO STATUS_WORD: 0xbeef")) in TEST()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/media/
H A Dsi4713.txt16 - vio-supply: phandle for Vio regulator
27 vio-supply = <&vio>;
/openbmc/linux/Documentation/devicetree/bindings/net/wireless/
H A Dti,wl1251.txt11 - vio-supply : phandle to regulator providing VIO
35 vio-supply = <&vio>;
/openbmc/linux/drivers/iio/light/
H A Dgp2ap002.c131 * @vio: regulator controlling VIO
144 struct regulator *vio; member
524 gp2ap002->vio = devm_regulator_get(dev, "vio"); in gp2ap002_probe()
525 if (IS_ERR(gp2ap002->vio)) in gp2ap002_probe()
526 return dev_err_probe(dev, PTR_ERR(gp2ap002->vio), in gp2ap002_probe()
527 "failed to get VIO regulator\n"); in gp2ap002_probe()
536 /* VIO should be between 1.65V and VDD */ in gp2ap002_probe()
542 ret = regulator_set_voltage(gp2ap002->vio, 1650000, ret); in gp2ap002_probe()
544 dev_err(dev, "failed to set VIO voltage\n"); in gp2ap002_probe()
553 ret = regulator_enable(gp2ap002->vio); in gp2ap002_probe()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/
H A Dparselogs-ignores-qemuppc64.txt2 vio vio: uevent: failed to send synthetic uevent
3 synth uevent: /devices/vio: failed to send uevent
/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dti,tsc2005.yaml48 vio-supply:
86 vio-supply = <&vio>;
113 vio-supply = <&vio>;
/openbmc/linux/drivers/net/wireless/ti/wl1251/
H A Dspi.c301 wl->vio = devm_regulator_get(&spi->dev, "vio"); in wl1251_spi_probe()
302 if (IS_ERR(wl->vio)) { in wl1251_spi_probe()
303 ret = PTR_ERR(wl->vio); in wl1251_spi_probe()
304 wl1251_error("vio regulator missing: %d", ret); in wl1251_spi_probe()
308 ret = regulator_enable(wl->vio); in wl1251_spi_probe()
319 regulator_disable(wl->vio); in wl1251_spi_probe()
331 regulator_disable(wl->vio); in wl1251_spi_remove()
/openbmc/linux/drivers/staging/greybus/
H A Darche-apb-ctrl.c37 struct regulator *vio; member
91 if (!IS_ERR(apb->vio)) { in coldboot_seq()
92 ret = regulator_enable(apb->vio); in coldboot_seq()
131 ret = regulator_enable(apb->vio); in fw_flashing_seq()
211 if (!IS_ERR(apb->vio) && regulator_is_enabled(apb->vio) > 0) in poweroff_seq()
212 regulator_disable(apb->vio); in poweroff_seq()
365 apb->vio = devm_regulator_get(dev, "vio"); in apb_ctrl_get_devtree_data()
366 if (IS_ERR(apb->vio)) in apb_ctrl_get_devtree_data()
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Dtwl-regulator.txt34 - "ti,twl6032-vio" for VIO SMPS
49 - "ti,twl4030-vio" for VIO LDO
/openbmc/linux/Documentation/devicetree/bindings/media/i2c/
H A Dasahi-kasei,ak7375.yaml26 vio-supply:
33 - vio-supply
48 vio-supply = <&vreg_lvs1a_1p8>;
/openbmc/phosphor-power/phosphor-regulators/examples/
H A Dconfig.json82 "comments": ["IR35221 regulator producing the Vio rail"],
92 "comments": ["Vio rail"],
93 "id": "vio",
/openbmc/qemu/hw/ppc/
H A Dspapr_vio.c2 * QEMU sPAPR VIO code
422 * The register property of a VIO device is defined in libvirt using
424 * VIO tty device, the base number is changed to 0x30000000. QEMU uses
429 * VIO device.
431 * A maximum of 256 VIO devices is covered. Collisions are possible
440 * VIO device register values when allocated by QEMU. For in spapr_vio_reg_to_irq()
444 * The nvram VIO device (reg=0x71000000) is a static device of in spapr_vio_reg_to_irq()
452 * VIO tty devices register values, when allocated by libvirt, in spapr_vio_reg_to_irq()
460 * Other VIO devices register values, when allocated by in spapr_vio_reg_to_irq()
579 qbus = qbus_new(TYPE_SPAPR_VIO_BUS, dev, "spapr-vio"); in spapr_vio_bus_init()
[all …]
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dvio.c30 #include <asm/vio.h>
39 .name = "vio",
41 .dev.init_name = "vio",
75 * vio_cmo - VIO bus accounting structure for CMO entitlement
134 * @viodev: VIO device requesting IO memory
179 * @viodev: VIO device freeing IO memory
1193 /* offset for VIO should always be 0 */ in vio_build_iommu_table()
1208 * vio_match_device: - Tell if a VIO device has a matching
1209 * VIO device id structure.
1210 * @ids: array of VIO device id structures to search in
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dtwl6040.txt17 - vio-supply: Regulator for the twl6040 VIO supply
49 vio-supply = <&v1v8>;
/openbmc/linux/Documentation/devicetree/bindings/iio/light/
H A Dsharp,gp2ap002.yaml33 vio-supply:
34 description: VIO power supply a phandle to a regulator
79 vio-supply = <&vio_regulator>;
/openbmc/linux/Documentation/powerpc/
H A Dhvcs.rst257 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat index
313 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat vterm_state
316 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # echo 0 > vterm_state
318 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat vterm_state
327 Each vty-server has a sysfs entry in the /sys/devices/vio directory, which
331 Pow5:/sys/bus/vio/drivers/hvcs # ls
342 Pow5:/sys/bus/vio/drivers/hvcs # echo 1 > rescan
352 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # ls
360 Pow5:/sys/bus/vio/drivers/hvcs/30000003 # cat name
367 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat devspec
[all …]
/openbmc/qemu/include/hw/ppc/
H A Dspapr_vio.h5 * QEMU sPAPR VIO bus definitions
30 #define TYPE_VIO_SPAPR_DEVICE "vio-spapr-device"
34 #define TYPE_SPAPR_VIO_BUS "spapr-vio-bus"
37 #define TYPE_SPAPR_VIO_BRIDGE "spapr-vio-bridge"

12345678910