Lines Matching +full:num +full:- +full:rings
1 /* SPDX-License-Identifier: GPL-2.0 */
84 #define VIO_DESC_MODE 0x02 /* In-band descriptors */
85 #define VIO_DRING_MODE 0x03 /* Descriptor rings */
147 #define VD_OP_GET_WCE 0x04 /* Get write-cache status */
148 #define VD_OP_SET_WCE 0x05 /* Enable/disable write-cache */
186 u16 num_cyl; /* Num data cylinders */
187 u16 alt_cyl; /* Num alternate cylinders */
189 u16 num_hd; /* Num heads */
190 u16 num_sec; /* Num sectors */
194 u16 phy_cyl; /* Num physical cylinders */
195 u16 wr_skip; /* Num sects to skip, writes */
196 u16 rd_skip; /* Num sects to skip, writes */
268 return (struct vio_net_dext *)&desc->cookies[2]; in vio_net_ext()
288 #define VIO_VCC_MTU_SIZE (LDC_PACKET_SIZE - VIO_TAG_SIZE)
297 return dr->base + (dr->entry_size * dr->prod); in vio_dring_cur()
303 return dr->base + (dr->entry_size * index); in vio_dring_entry()
309 return (dr->pending - in vio_dring_avail()
310 ((dr->prod - dr->cons) & (ring_size - 1)) - 1); in vio_dring_avail()
315 if (++index == dr->num_entries) in vio_dring_next()
323 return dr->num_entries - 1; in vio_dring_prev()
325 return index - 1; in vio_dring_prev()
351 /* Handle to the root of "channel-devices" sub-tree in MDESC */
447 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_before()
456 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_after()
465 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_after_eq()
472 do { if (vio->debug & VIO_DEBUG_##TYPE) \
474 vio->vdev->channel_id, ## a); \