| /linux/arch/sparc/kernel/ |
| H A D | viohs.c | 16 #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 …]
|
| /linux/drivers/md/dm-vdo/ |
| H A D | vio.h | 25 /* The underlying vio */ 26 struct vio vio; member 33 /* The pool this vio is allocated from */ 38 * as_vio() - Convert a generic vdo_completion to a vio. 41 * Return: The completion as a vio. 43 static inline struct vio *as_vio(struct vdo_completion *completion) in as_vio() 46 return container_of(completion, struct vio, completion); in as_vio() 50 * get_vio_bio_zone_thread_id() - Get the thread id of the bio zone in which a vio should submit 52 * @vio: The vio. 54 * Return: The id of the bio zone thread the vio should use. [all …]
|
| H A D | io-submitter.c | 15 #include "data-vio.h" 19 #include "vio.h" 71 * @vio: The vio associated with the bio. 74 static void count_all_bios(struct vio *vio, struct bio *bio) in count_all_bios() argument 76 struct atomic_statistics *stats = &vio->completion.vdo->stats; in count_all_bios() 78 if (is_data_vio(vio)) { in count_all_bios() 84 if (vio->type == VIO_TYPE_RECOVERY_JOURNAL) in count_all_bios() 86 else if (vio->type == VIO_TYPE_BLOCK_MAP) in count_all_bios() 91 * assert_in_bio_zone() - Assert that a vio is in the correct bio zone and not in interrupt 93 * @vio: The vio to check. [all …]
|
| H A D | io-submitter.h | 28 void __submit_metadata_vio(struct vio *vio, physical_block_number_t physical, 32 static inline void vdo_submit_metadata_vio(struct vio *vio, physical_block_number_t physical, in vdo_submit_metadata_vio() argument 36 __submit_metadata_vio(vio, physical, callback, error_handler, in vdo_submit_metadata_vio() 37 operation, vio->data, vio->block_count * VDO_BLOCK_SIZE); in vdo_submit_metadata_vio() 40 static inline void vdo_submit_metadata_vio_with_size(struct vio *vio, in vdo_submit_metadata_vio_with_size() argument 47 __submit_metadata_vio(vio, physical, callback, error_handler, in vdo_submit_metadata_vio_with_size() 48 operation, vio->data, size); in vdo_submit_metadata_vio_with_size() 51 static inline void vdo_submit_flush_vio(struct vio *vio, bio_end_io_t callback, in vdo_submit_flush_vio() argument 55 __submit_metadata_vio(vio, 0, callback, error_handler, in vdo_submit_flush_vio()
|
| H A D | block-map.c | 20 #include "data-vio.h" 29 #include "vio.h" 94 struct pooled_vio *vio; member 194 get_page_buffer(info), &info->vio); in initialize_info() 199 info->vio->completion.callback_thread_id = cache->zone->thread_id; in initialize_info() 663 * @completion: The page read vio. 689 * @completion: The vio which has loaded the page. Its parent is the page_info. 753 struct vio *vio = bio->bi_private; in load_cache_page_endio() local 754 struct page_info *info = vio->completion.parent; in load_cache_page_endio() 756 continue_vio_after_io(vio, page_is_loaded, info->cache->zone->thread_id); in load_cache_page_endio() [all …]
|
| H A D | recovery-journal.h | 43 * has a vio which is used to commit that block to disk. The vio's data is the on-disk 52 * committed, the requesting VIO will be attached to the in-memory block to which the caller's 57 * to the block's vio which is then written, automatically waking all of the waiters when it 59 * the vio's data buffer. 70 * in-memory block map page is updated, it checks if the journal block for the VIO is earlier than 78 * If there is no in-memory space when a VIO attempts to add an entry, the VIO will be attached to 80 * no on-disk space when a VIO attempts to add an entry, the VIO will be attached to the 125 /* The vio for writing this block */ 126 struct vio vio; member 176 /* The journal point of the vio most recently released from the journal */ [all …]
|
| H A D | slab-depot.c | 25 #include "data-vio.h" 35 #include "vio.h" 276 * @completion: The write vio. 281 container_of(as_vio(completion), struct slab_summary_block, vio); in finish_update() 289 * @completion: The write VIO. 294 container_of(as_vio(completion), struct slab_summary_block, vio); in handle_write_error() 303 struct vio *vio = bio->bi_private; in write_slab_summary_endio() local 305 container_of(vio, struct slab_summary_block, vio); in write_slab_summary_endio() 307 continue_vio_after_io(vio, finish_update, block->allocator->thread_id); in write_slab_summary_endio() 346 vdo_submit_metadata_vio(&block->vio, pbn, write_slab_summary_endio, in launch_write() [all …]
|
| H A D | dump.c | 14 #include "data-vio.h" 162 vdo_log_info(" %s is locked. Waited on by: vio %px pbn %llu lbn %llu d-pbn %llu lastOp %s", in dump_vio_waiters() 168 vdo_log_info(" ... and : vio %px pbn %llu lbn %llu d-pbn %llu lastOp %s", in dump_vio_waiters() 179 * R => vio completion result not VDO_SUCCESS 180 * W => vio is on a waitq 181 * D => vio is a duplicate 182 * p => vio is a partial block operation 183 * z => vio is a zero block 184 * d => vio is a discard 193 if (data_vio->vio.completion.result != VDO_SUCCESS) in encode_vio_dump_flags() [all …]
|
| H A D | slab-depot.h | 17 #include "data-vio.h" 24 #include "vio.h" 46 /* The number of vios in the vio pool is proportional to the throughput of the VDO. */ 50 * The number of vios in the vio pool used for loading reference count data. A slab's 75 /* A waiter object for getting a VIO pool entry */ 79 /* A waiter object for getting a vio with which to flush */ 127 /* A list of the VIO pool entries for outstanding journal block writes */ 301 /* The vio for loading slab journal blocks */ 302 struct vio vio; member 362 /* The vio used to write this block */ [all …]
|
| H A D | types.h | 336 /* vio types for statistics and instrumentation. */ 351 /* Priority levels for asynchronous I/O operations performed on a vio. */ 363 struct vio { struct 364 /* The completion for this vio */ 370 /* The queueing priority of the vio operation */ argument 373 /* The vio type is used for statistics and instrumentation. */ 376 /* The size of this vio in blocks */ 385 /* The VDO-owned bio to use for all IO for this vio */ argument 390 * the first-enqueued vio. The other vios are found via their bio entries in this list, and argument
|
| H A D | vdo.c | 46 #include "data-vio.h" 58 #include "vio.h" 266 struct vio *vio; in read_geometry_block() local 275 block, &vio); in read_geometry_block() 286 result = vio_reset_bio(vio, block, NULL, REQ_OP_READ, in read_geometry_block() 289 free_vio(vdo_forget(vio)); in read_geometry_block() 294 bio_set_dev(vio->bio, vdo_get_backing_device(vdo)); in read_geometry_block() 295 submit_bio_wait(vio->bio); in read_geometry_block() 296 result = blk_status_to_errno(vio->bio->bi_status); in read_geometry_block() 297 free_vio(vdo_forget(vio)); in read_geometry_block() [all …]
|
| /linux/arch/sparc/include/asm/ |
| H A D | vio.h | 119 /* 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 …]
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | sunvnet_common.c | 32 #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 D | sunvnet_common.h | 16 #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 D | ldmvsw.c | 30 #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 timer_delete_sync(&port->vio.timer); in vsw_port_remove() 425 vio_ldc_free(&port->vio); in vsw_port_remove() [all …]
|
| /linux/drivers/tty/ |
| H A D | vcc.c | 15 #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 …]
|
| /linux/Documentation/devicetree/bindings/media/ |
| H A D | si4713.txt | 16 - vio-supply: phandle for Vio regulator 27 vio-supply = <&vio>;
|
| /linux/Documentation/devicetree/bindings/net/wireless/ |
| H A D | ti,wl1251.txt | 11 - vio-supply : phandle to regulator providing VIO 35 vio-supply = <&vio>;
|
| /linux/Documentation/devicetree/bindings/input/touchscreen/ |
| H A D | ti,tsc2005.yaml | 48 vio-supply: 86 vio-supply = <&vio>; 113 vio-supply = <&vio>;
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | spi.c | 301 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()
|
| /linux/Documentation/devicetree/bindings/media/i2c/ |
| H A D | asahi-kasei,ak7375.yaml | 28 vio-supply: 35 - vio-supply 50 vio-supply = <&vreg_lvs1a_1p8>;
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | vio.c | 30 #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 1177 /* offset for VIO should always be 0 */ in vio_build_iommu_table() 1192 * vio_match_device: - Tell if a VIO device has a matching 1193 * VIO device id structure. 1194 * @ids: array of VIO device id structures to search in [all …]
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | adi,ad4851.yaml | 53 vio-supply: true 118 - vio-supply 140 vio-supply = <&vio>;
|
| /linux/Documentation/arch/powerpc/ |
| H A D | hvcs.rst | 257 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 …]
|
| /linux/Documentation/devicetree/bindings/iio/light/ |
| H A D | sharp,gp2ap002.yaml | 33 vio-supply: 34 description: VIO power supply a phandle to a regulator 79 vio-supply = <&vio_regulator>;
|