Home
last modified time | relevance | path

Searched refs:OCTEON_IS_MODEL (Results 1 – 25 of 42) sorted by relevance

12

/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
Docteon-feature.h121 return !OCTEON_IS_MODEL(OCTEON_CN3XXX); in octeon_has_feature()
124 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in octeon_has_feature()
133 return OCTEON_IS_MODEL(OCTEON_CN56XX) in octeon_has_feature()
134 || OCTEON_IS_MODEL(OCTEON_CN52XX) in octeon_has_feature()
135 || OCTEON_IS_MODEL(OCTEON_CN6XXX) in octeon_has_feature()
136 || OCTEON_IS_MODEL(OCTEON_CN7XXX); in octeon_has_feature()
139 return OCTEON_IS_MODEL(OCTEON_CN63XX) in octeon_has_feature()
140 || OCTEON_IS_MODEL(OCTEON_CN66XX); in octeon_has_feature()
143 return (OCTEON_IS_MODEL(OCTEON_CN68XX)); in octeon_has_feature()
146 return OCTEON_IS_MODEL(OCTEON_CN38XX) in octeon_has_feature()
[all …]
Dcvmx-pko.h71 #define CVMX_PKO_MAX_OUTPUT_QUEUES ((OCTEON_IS_MODEL(OCTEON_CN31XX) || \
72 OCTEON_IS_MODEL(OCTEON_CN3010) || OCTEON_IS_MODEL(OCTEON_CN3005) || \
73 OCTEON_IS_MODEL(OCTEON_CN50XX)) ? 32 : \
74 (OCTEON_IS_MODEL(OCTEON_CN58XX) || \
75 OCTEON_IS_MODEL(OCTEON_CN56XX)) ? 256 : 128)
544 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in cvmx_pko_get_base_queue()
602 if (OCTEON_IS_MODEL(OCTEON_CN3XXX)) { in cvmx_pko_get_port_status()
Docteon-model.h382 #define OCTEON_IS_MODEL(x) __octeon_is_model_runtime__(x) macro
386 #define OCTEON_IS_OCTEON1() OCTEON_IS_MODEL(OCTEON_CN3XXX)
387 #define OCTEON_IS_OCTEONPLUS() OCTEON_IS_MODEL(OCTEON_CN5XXX)
389 (OCTEON_IS_MODEL(OCTEON_CN6XXX) || OCTEON_IS_MODEL(OCTEON_CNF71XX))
391 #define OCTEON_IS_OCTEON3() OCTEON_IS_MODEL(OCTEON_CN7XXX)
Dcvmx-ipd.h139 if (!OCTEON_IS_MODEL(OCTEON_CN38XX_PASS2)) in cvmx_ipd_enable()
162 if (!OCTEON_IS_MODEL(OCTEON_CN38XX_PASS1) in cvmx_ipd_free_ptr()
163 && !OCTEON_IS_MODEL(OCTEON_CN38XX_PASS2)) { in cvmx_ipd_free_ptr()
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/executive/
Dcvmx-l2c.c57 if (OCTEON_IS_MODEL(OCTEON_CN63XX)) in cvmx_l2c_get_core_way_partition()
94 if (mask == valid_mask && !OCTEON_IS_MODEL(OCTEON_CN63XX)) in cvmx_l2c_set_core_way_partition()
101 if (OCTEON_IS_MODEL(OCTEON_CN63XX)) { in cvmx_l2c_set_core_way_partition()
150 if (mask == valid_mask && !OCTEON_IS_MODEL(OCTEON_CN63XX)) in cvmx_l2c_set_hw_way_partition()
153 if (OCTEON_IS_MODEL(OCTEON_CN63XX)) in cvmx_l2c_set_hw_way_partition()
163 if (OCTEON_IS_MODEL(OCTEON_CN63XX)) in cvmx_l2c_get_hw_way_partition()
172 if (OCTEON_IS_MODEL(OCTEON_CN5XXX) || OCTEON_IS_MODEL(OCTEON_CN3XXX)) { in cvmx_l2c_config_perf()
237 if (OCTEON_IS_MODEL(OCTEON_CN5XXX) || OCTEON_IS_MODEL(OCTEON_CN3XXX)) in cvmx_l2c_read_perf()
248 if (OCTEON_IS_MODEL(OCTEON_CN5XXX) || OCTEON_IS_MODEL(OCTEON_CN3XXX)) in cvmx_l2c_read_perf()
259 if (OCTEON_IS_MODEL(OCTEON_CN5XXX) || OCTEON_IS_MODEL(OCTEON_CN3XXX)) in cvmx_l2c_read_perf()
[all …]
Dcvmx-helper-npi.c52 if (OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN58XX)) in __cvmx_helper_npi_probe()
54 else if (OCTEON_IS_MODEL(OCTEON_CN56XX) in __cvmx_helper_npi_probe()
55 && !OCTEON_IS_MODEL(OCTEON_CN56XX_PASS1_X)) in __cvmx_helper_npi_probe()
58 else if (OCTEON_IS_MODEL(OCTEON_CN52XX) in __cvmx_helper_npi_probe()
59 && !OCTEON_IS_MODEL(OCTEON_CN52XX_PASS1_X)) in __cvmx_helper_npi_probe()
82 if (!OCTEON_IS_MODEL(OCTEON_CN3XXX) && in __cvmx_helper_npi_enable()
83 !OCTEON_IS_MODEL(OCTEON_CN58XX)) { in __cvmx_helper_npi_enable()
Dcvmx-interrupt-rsl.c59 if (OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN58XX)) in __cvmx_interrupt_asxx_enable()
85 if (OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN52XX)) { in __cvmx_interrupt_gmxx_enable()
103 if (OCTEON_IS_MODEL(OCTEON_CN38XX) in __cvmx_interrupt_gmxx_enable()
104 || OCTEON_IS_MODEL(OCTEON_CN58XX)) { in __cvmx_interrupt_gmxx_enable()
131 if (OCTEON_IS_MODEL(OCTEON_CN38XX) in __cvmx_interrupt_gmxx_enable()
132 || OCTEON_IS_MODEL(OCTEON_CN58XX)) in __cvmx_interrupt_gmxx_enable()
Dcvmx-helper.c62 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in cvmx_helper_get_number_of_interfaces()
64 if (OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN52XX)) in cvmx_helper_get_number_of_interfaces()
66 if (OCTEON_IS_MODEL(OCTEON_CN7XXX)) in cvmx_helper_get_number_of_interfaces()
148 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in __cvmx_get_mode_octeon2()
158 if ((OCTEON_IS_MODEL(OCTEON_CN63XX) && in __cvmx_get_mode_octeon2()
160 (OCTEON_IS_MODEL(OCTEON_CN66XX) && in __cvmx_get_mode_octeon2()
165 if (OCTEON_IS_MODEL(OCTEON_CN66XX)) { in __cvmx_get_mode_octeon2()
185 } else if (OCTEON_IS_MODEL(OCTEON_CN61XX)) { in __cvmx_get_mode_octeon2()
205 } else if (OCTEON_IS_MODEL(OCTEON_CNF71XX)) { in __cvmx_get_mode_octeon2()
215 if (interface == 1 && OCTEON_IS_MODEL(OCTEON_CN63XX)) in __cvmx_get_mode_octeon2()
[all …]
Dcvmx-interrupt-decodes.c57 if (OCTEON_IS_MODEL(OCTEON_CN56XX)) { in __cvmx_interrupt_gmxx_rxx_int_en_enable()
86 if (OCTEON_IS_MODEL(OCTEON_CN30XX)) { in __cvmx_interrupt_gmxx_rxx_int_en_enable()
108 if (OCTEON_IS_MODEL(OCTEON_CN50XX)) { in __cvmx_interrupt_gmxx_rxx_int_en_enable()
131 if (OCTEON_IS_MODEL(OCTEON_CN38XX)) { in __cvmx_interrupt_gmxx_rxx_int_en_enable()
153 if (OCTEON_IS_MODEL(OCTEON_CN31XX)) { in __cvmx_interrupt_gmxx_rxx_int_en_enable()
175 if (OCTEON_IS_MODEL(OCTEON_CN58XX)) { in __cvmx_interrupt_gmxx_rxx_int_en_enable()
198 if (OCTEON_IS_MODEL(OCTEON_CN52XX)) { in __cvmx_interrupt_gmxx_rxx_int_en_enable()
238 if (OCTEON_IS_MODEL(OCTEON_CN56XX)) { in __cvmx_interrupt_pcsx_intx_en_reg_enable()
253 if (OCTEON_IS_MODEL(OCTEON_CN52XX)) { in __cvmx_interrupt_pcsx_intx_en_reg_enable()
279 if (OCTEON_IS_MODEL(OCTEON_CN56XX)) { in __cvmx_interrupt_pcsxx_int_en_reg_enable()
[all …]
Dcvmx-helper-rgmii.c59 if (OCTEON_IS_MODEL(OCTEON_CN38XX) in __cvmx_helper_rgmii_probe()
60 || OCTEON_IS_MODEL(OCTEON_CN58XX)) { in __cvmx_helper_rgmii_probe()
63 } else if (OCTEON_IS_MODEL(OCTEON_CN31XX) in __cvmx_helper_rgmii_probe()
64 || OCTEON_IS_MODEL(OCTEON_CN30XX) in __cvmx_helper_rgmii_probe()
65 || OCTEON_IS_MODEL(OCTEON_CN50XX)) { in __cvmx_helper_rgmii_probe()
76 if (OCTEON_IS_MODEL(OCTEON_CN38XX) in __cvmx_helper_rgmii_probe()
77 || OCTEON_IS_MODEL(OCTEON_CN58XX)) { in __cvmx_helper_rgmii_probe()
79 } else if (OCTEON_IS_MODEL(OCTEON_CN31XX) in __cvmx_helper_rgmii_probe()
80 || OCTEON_IS_MODEL(OCTEON_CN30XX) in __cvmx_helper_rgmii_probe()
81 || OCTEON_IS_MODEL(OCTEON_CN50XX)) { in __cvmx_helper_rgmii_probe()
[all …]
Dcvmx-helper-util.c215 if (!OCTEON_IS_MODEL(OCTEON_CN30XX) && !OCTEON_IS_MODEL(OCTEON_CN31XX) in __cvmx_helper_setup_gmx()
216 && !OCTEON_IS_MODEL(OCTEON_CN50XX)) { in __cvmx_helper_setup_gmx()
253 if (OCTEON_IS_MODEL(OCTEON_CN30XX) || OCTEON_IS_MODEL(OCTEON_CN31XX) in __cvmx_helper_setup_gmx()
254 || OCTEON_IS_MODEL(OCTEON_CN50XX)) { in __cvmx_helper_setup_gmx()
Dcvmx-pko.c162 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) { in __cvmx_pko_chip_init()
209 if (OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) in cvmx_pko_initialize_global()
210 || OCTEON_IS_MODEL(OCTEON_CN56XX) in cvmx_pko_initialize_global()
211 || OCTEON_IS_MODEL(OCTEON_CN52XX)) { in cvmx_pko_initialize_global()
218 if (OCTEON_IS_MODEL(OCTEON_CN38XX)) { in cvmx_pko_initialize_global()
310 if (!OCTEON_IS_MODEL(OCTEON_CN3XXX)) { in cvmx_pko_shutdown()
351 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in cvmx_pko_config_port()
542 if (!OCTEON_IS_MODEL(OCTEON_CN3XXX)) in cvmx_pko_config_port()
Dcvmx-helper-jtag.c65 if (OCTEON_IS_MODEL(OCTEON_CN52XX)) in cvmx_helper_qlm_jtag_init()
94 if (!OCTEON_IS_MODEL(OCTEON_CN56XX_PASS1_X)) in cvmx_helper_qlm_jtag_shift()
138 if (!OCTEON_IS_MODEL(OCTEON_CN56XX_PASS1_X)) in cvmx_helper_qlm_jtag_update()
Dcvmx-helper-board.c228 if (OCTEON_IS_MODEL(OCTEON_CN3XXX) in __cvmx_helper_board_link_get()
229 || OCTEON_IS_MODEL(OCTEON_CN58XX) in __cvmx_helper_board_link_get()
230 || OCTEON_IS_MODEL(OCTEON_CN50XX)) { in __cvmx_helper_board_link_get()
Dcvmx-spi.c110 if (!(OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN58XX))) in cvmx_spi_start_interface()
154 if (!(OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN58XX))) in cvmx_spi_restart_interface()
282 if (OCTEON_IS_MODEL(OCTEON_CN58XX)) in cvmx_spi_reset_cb()
Docteon-model.c73 if (OCTEON_IS_MODEL(OCTEON_CN3XXX) || OCTEON_IS_MODEL(OCTEON_CN5XXX)) in octeon_model_get_string_buffer()
390 if (OCTEON_IS_MODEL(OCTEON_CN76XX)) in octeon_model_get_string_buffer()
/kernel/linux/linux-5.10/arch/mips/pci/
Dpcie-octeon.c403 if (OCTEON_IS_MODEL(OCTEON_CN5XXX)) { in __cvmx_pcie_rc_initialize_config_space()
608 if (OCTEON_IS_MODEL(OCTEON_CN52XX_PASS1_X)) { in __cvmx_pcie_rc_initialize_link_gen1()
616 if (OCTEON_IS_MODEL(OCTEON_CN52XX) && (pcie_port == 1)) { in __cvmx_pcie_rc_initialize_link_gen1()
630 if (OCTEON_IS_MODEL(OCTEON_CN52XX_PASS1_0)) in __cvmx_pcie_rc_initialize_link_gen1()
677 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in __cvmx_increment_ba()
722 if (OCTEON_IS_MODEL(OCTEON_CN52XX)) { in __cvmx_pcie_rc_initialize_gen1()
741 if (OCTEON_IS_MODEL(OCTEON_CN52XX_PASS1_X)) { in __cvmx_pcie_rc_initialize_gen1()
828 if (!OCTEON_IS_MODEL(OCTEON_CN56XX_PASS1_X) && !OCTEON_IS_MODEL(OCTEON_CN52XX_PASS1_X)) { in __cvmx_pcie_rc_initialize_gen1()
995 if (OCTEON_IS_MODEL(OCTEON_CN56XX_PASS2_X) || in __cvmx_pcie_rc_initialize_gen1()
996 OCTEON_IS_MODEL(OCTEON_CN52XX_PASS2_X) || in __cvmx_pcie_rc_initialize_gen1()
[all …]
Dpci-octeon.c412 if (OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN50XX)) { in octeon_pci_initialize()
580 if (OCTEON_IS_MODEL(OCTEON_CN31XX) || in octeon_pci_setup()
581 OCTEON_IS_MODEL(OCTEON_CN38XX_PASS2) || in octeon_pci_setup()
582 OCTEON_IS_MODEL(OCTEON_CN38XX_PASS1)) in octeon_pci_setup()
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/
Docteon-platform.c459 return !OCTEON_IS_MODEL(OCTEON_CN52XX) && in octeon_has_88e1145()
460 !OCTEON_IS_MODEL(OCTEON_CN6XXX) && in octeon_has_88e1145()
461 !OCTEON_IS_MODEL(OCTEON_CN56XX); in octeon_has_88e1145()
665 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in octeon_fdt_pip_port()
787 if (OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN63XX)) in octeon_prune_device_tree()
789 else if (OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)) in octeon_prune_device_tree()
831 if (OCTEON_IS_MODEL(OCTEON_CN52XX) || in octeon_prune_device_tree()
832 OCTEON_IS_MODEL(OCTEON_CN63XX) || in octeon_prune_device_tree()
833 OCTEON_IS_MODEL(OCTEON_CN68XX) || in octeon_prune_device_tree()
834 OCTEON_IS_MODEL(OCTEON_CN56XX)) in octeon_prune_device_tree()
[all …]
Dsetup.c552 if (OCTEON_IS_MODEL(OCTEON_CN38XX_PASS2)) in octeon_user_io_init()
604 if (OCTEON_IS_MODEL(OCTEON_CN63XX_PASS1_X)) in octeon_user_io_init()
642 if ((!OCTEON_IS_MODEL(OCTEON_CN68XX) && in octeon_user_io_init()
643 !OCTEON_IS_MODEL(OCTEON_CN7XXX)) || in octeon_user_io_init()
644 OCTEON_IS_MODEL(OCTEON_CN70XX)) { in octeon_user_io_init()
695 if (!OCTEON_IS_MODEL(OCTEON_CN78XX)) in prom_init()
850 if (OCTEON_IS_MODEL(OCTEON_CN38XX_PASS2) || in prom_init()
851 OCTEON_IS_MODEL(OCTEON_CN31XX)) in prom_init()
1125 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in prom_free_prom_memory()
1176 } else if (OCTEON_IS_MODEL(OCTEON_CN68XX)) { in device_tree_init()
[all …]
Ddma-octeon.c221 if (OCTEON_IS_MODEL(OCTEON_CN31XX) in plat_swiotlb_setup()
222 || OCTEON_IS_MODEL(OCTEON_CN38XX_PASS2)) { in plat_swiotlb_setup()
/kernel/linux/linux-5.10/drivers/staging/octeon/
Dethernet-rx.c201 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) { in cvm_oct_poll()
233 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) { in cvm_oct_poll()
389 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) { in cvm_oct_poll()
489 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) { in cvm_oct_rx_initialize()
532 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in cvm_oct_rx_shutdown()
/kernel/linux/linux-5.10/drivers/watchdog/
Docteon-wdt-main.c249 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) { in octeon_wdt_nmi_stage3()
277 if (OCTEON_IS_OCTEON3() && !OCTEON_IS_MODEL(OCTEON_CN70XX)) { in octeon_wdt_nmi_stage3()
530 if (OCTEON_IS_MODEL(OCTEON_CN68XX)) in octeon_wdt_init()
532 else if (OCTEON_IS_MODEL(OCTEON_CN78XX)) in octeon_wdt_init()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dcavium-octeon.c93 if (OCTEON_IS_MODEL(OCTEON_CN70XX)) in octeon_mmc_acquire_bus()
168 if (OCTEON_IS_MODEL(OCTEON_CN6XXX) || in octeon_mmc_probe()
169 OCTEON_IS_MODEL(OCTEON_CNF7XXX)) { in octeon_mmc_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/octeon/
Docteon_mgmt.c709 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in octeon_mgmt_ioctl_hwtstamp()
812 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in octeon_mgmt_disable_link()
854 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in octeon_mgmt_update_link()
863 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in octeon_mgmt_update_link()
870 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in octeon_mgmt_update_link()
889 if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { in octeon_mgmt_update_link()
1022 if (OCTEON_IS_MODEL(OCTEON_CN5XXX)) { in octeon_mgmt_open()
1027 if (OCTEON_IS_MODEL(OCTEON_CN56XX_PASS1_X) in octeon_mgmt_open()
1028 || OCTEON_IS_MODEL(OCTEON_CN52XX_PASS1_X)) { in octeon_mgmt_open()
1083 if (OCTEON_IS_MODEL(OCTEON_CN6XXX) && netdev->phydev) { in octeon_mgmt_open()

12