Lines Matching +full:num +full:- +full:rings
7 * Copyright (c) 2003-2016 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
53 /** Endian-swap modes supported by Octeon. */
78 /*--------------- PCI BAR1 index registers -------------*/
123 /*---------------------------DISPATCH LIST-------------------------------*/
160 /*----------------------- THE OCTEON DEVICE ---------------------------*/
213 u32 num, char *pre, char *suf);
283 u32 num_gmx_ports; /** num gmx ports */
287 * See octeon-drv-opcodes.h for values.
368 /* Number of rings assigned to VF */
380 /* Actual rings left for PF device */
386 /* total pf rings */
459 /** This device's id - set by the driver. */
489 /** The doubly-linked list of instruction response */
510 * Assumes single-threaded access
575 /** IOq information of it's corresponding MSI-X interrupt. */
583 /* private flags to control driver-specific features through ethtool */
602 atomic_t *adapter_fw_state; /* per-adapter, lio_fw_state */
623 ((_oct->chip_id == OCTEON_CN66XX) || \
624 (_oct->chip_id == OCTEON_CN68XX)); })
625 #define OCTEON_CN23XX_PF(oct) ((oct)->chip_id == OCTEON_CN23XX_PF_VID)
626 #define OCTEON_CN23XX_VF(oct) ((oct)->chip_id == OCTEON_CN23XX_VF_VID)
628 (((struct octeon_ ## TYPE *)((oct)->chip))->conf)
632 /*------------------ Function Prototypes ----------------------*/
648 * @param octeon_dev - pointer to the octeon device structure.
649 * @param bus - PCIe bus #
650 * @param dev - PCIe device #
651 * @param func - PCIe function #
652 * @param is_pf - TRUE for PF, FALSE for VF
658 /** Deregister a device at de-initialization time.
659 * @param octeon_dev - pointer to the octeon device structure.
666 * @param octeon_dev - pointer to the octeon device structure.
667 * @return 0 on success, else -ve error value
673 * @param octeon_dev - pointer to the octeon device structure.
678 * @param recv_info - Receive info structure
679 * @param buf - Receive buffer
685 * @param octeon_dev - the octeon device pointer.
686 * @param opcode - the opcode for which the dispatch function
688 * @param subcode - the subcode for which the dispatch function
702 * @param octeon_id - The id for which the octeon device pointer is required.
709 * @param oct - pointer to the Octeon device.
710 * @param addr - Address of the register to read.
715 * @return - 64 bit value read from the register.
721 * @param oct - pointer to the Octeon device.
722 * @param val - Value to write
723 * @param addr - Address of the register to write
734 writel(value, (oct_dev)->mmio[0].hw_addr + (reg_off))
737 writeq(val64, (oct_dev)->mmio[0].hw_addr + (reg_off))
740 readl((oct_dev)->mmio[0].hw_addr + (reg_off))
743 readq((oct_dev)->mmio[0].hw_addr + (reg_off))
759 * If contents are 0, it waits until contents are non-zero
767 * Wait for u-boot to boot and be waiting for a command.
804 * Send a string to u-boot on console 0 as a command.
808 * @param wait_hundredths Time to wait for u-boot to accept the command.
817 * @param data - The complete firmware file image
818 * @param size - The size of the data
821 * -EINVAL if file is incompatible or badly formatted.
822 * -ENODEV if no handler was found for the application type or an
869 * @return - pointer to the octeon configuration struture
886 return !!(octdev->priv_flags & (0x1 << flag)); in lio_get_priv_flag()
893 octdev->priv_flags |= (0x1 << flag); in lio_set_priv_flag()
895 octdev->priv_flags &= ~(0x1 << flag); in lio_set_priv_flag()