slave 2684 arch/arm/mach-omap2/omap_hwmod.c oi->slave->name); slave 2686 arch/arm/mach-omap2/omap_hwmod.c list_add(&oi->node, &oi->slave->slave_ports); slave 2687 arch/arm/mach-omap2/omap_hwmod.c oi->slave->slaves_cnt++; slave 2707 arch/arm/mach-omap2/omap_hwmod.c if (!oi || !oi->master || !oi->slave || !oi->user) slave 2714 arch/arm/mach-omap2/omap_hwmod.c oi->master->name, oi->slave->name); slave 2723 arch/arm/mach-omap2/omap_hwmod.c if (oi->slave->_state != _HWMOD_STATE_REGISTERED) slave 2724 arch/arm/mach-omap2/omap_hwmod.c _register(oi->slave); slave 3096 arch/arm/mach-omap2/omap_hwmod.c ois[i]->master->name, ois[i]->slave->name, r); slave 3507 arch/arm/mach-omap2/omap_hwmod.c oi->slave = oh; slave 241 arch/arm/mach-omap2/omap_hwmod.h struct omap_hwmod *slave; slave 254 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_i2c1_hwmod, slave 262 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_i2c2_hwmod, slave 270 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_iva_hwmod, slave 278 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_dsp_hwmod, slave 286 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_timer1_hwmod, slave 294 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_wd_timer2_hwmod, slave 302 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_gpio1_hwmod, slave 310 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_gpio2_hwmod, slave 318 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_gpio3_hwmod, slave 326 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_gpio4_hwmod, slave 334 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_l3_main_hwmod, slave 342 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_dma_system_hwmod, slave 350 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_mailbox_hwmod, slave 357 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_mcbsp1_hwmod, slave 365 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_mcbsp2_hwmod, slave 373 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_msdi1_hwmod, slave 381 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2420_hdq1w_hwmod, slave 391 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_counter_32k_hwmod, slave 398 arch/arm/mach-omap2/omap_hwmod_2420_data.c .slave = &omap2xxx_gpmc_hwmod, slave 394 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_l3_main_hwmod, slave 402 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_i2c1_hwmod, slave 410 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_i2c2_hwmod, slave 418 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_usbhsotg_hwmod, slave 426 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mmc1_hwmod, slave 434 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mmc2_hwmod, slave 442 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mcspi3_hwmod, slave 450 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_iva_hwmod, slave 458 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_timer1_hwmod, slave 466 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_wd_timer2_hwmod, slave 474 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_gpio1_hwmod, slave 482 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_gpio2_hwmod, slave 490 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_gpio3_hwmod, slave 498 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_gpio4_hwmod, slave 506 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_gpio5_hwmod, slave 514 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_l3_main_hwmod, slave 522 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_dma_system_hwmod, slave 530 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mailbox_hwmod, slave 537 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mcbsp1_hwmod, slave 545 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mcbsp2_hwmod, slave 553 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mcbsp3_hwmod, slave 561 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mcbsp4_hwmod, slave 569 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_mcbsp5_hwmod, slave 577 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2430_hdq1w_hwmod, slave 586 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_counter_32k_hwmod, slave 593 arch/arm/mach-omap2/omap_hwmod_2430_data.c .slave = &omap2xxx_gpmc_hwmod, slave 27 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_l4_core_hwmod, slave 34 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_l3_main_hwmod, slave 41 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_l3_main_hwmod, slave 54 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_l4_wkup_hwmod, slave 61 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_uart1_hwmod, slave 69 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_uart2_hwmod, slave 77 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_uart3_hwmod, slave 85 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_mcspi1_hwmod, slave 93 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_mcspi2_hwmod, slave 101 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer2_hwmod, slave 109 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer3_hwmod, slave 117 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer4_hwmod, slave 125 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer5_hwmod, slave 133 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer6_hwmod, slave 141 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer7_hwmod, slave 149 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer8_hwmod, slave 157 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer9_hwmod, slave 165 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer10_hwmod, slave 173 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer11_hwmod, slave 181 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_timer12_hwmod, slave 189 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_dss_core_hwmod, slave 203 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_dss_dispc_hwmod, slave 217 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_dss_rfbi_hwmod, slave 231 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_dss_venc_hwmod, slave 246 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_rng_hwmod, slave 254 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_sham_hwmod, slave 262 arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c .slave = &omap2xxx_aes_hwmod, slave 24 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l3_main_hwmod, slave 32 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l3_s_hwmod, slave 40 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l4_ls_hwmod, slave 48 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l4_wkup_hwmod, slave 56 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l3_instr_hwmod, slave 64 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_prcm_hwmod, slave 72 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l3_main_hwmod, slave 80 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l3_main_hwmod, slave 88 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_l3_main_hwmod, slave 96 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_gfx_hwmod, slave 104 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_rtc_hwmod, slave 112 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_dcan0_hwmod, slave 120 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_dcan1_hwmod, slave 127 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_elm_hwmod, slave 134 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_epwmss0_hwmod, slave 141 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_epwmss1_hwmod, slave 148 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_epwmss2_hwmod, slave 156 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_gpmc_hwmod, slave 164 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_mailbox_hwmod, slave 172 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_spinlock_hwmod, slave 180 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_mcasp0_hwmod, slave 188 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_mcasp1_hwmod, slave 196 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_spi0_hwmod, slave 204 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_spi1_hwmod, slave 212 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_timer2_hwmod, slave 220 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_timer3_hwmod, slave 228 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_timer4_hwmod, slave 236 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_timer5_hwmod, slave 244 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_timer6_hwmod, slave 252 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_timer7_hwmod, slave 260 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_tpcc_hwmod, slave 268 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_tptc0_hwmod, slave 276 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_tptc1_hwmod, slave 284 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_tptc2_hwmod, slave 292 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_ocmcram_hwmod, slave 299 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_sha0_hwmod, slave 307 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_aes0_hwmod, slave 315 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c .slave = &am33xx_rng_hwmod, slave 299 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_emif_hwmod, slave 307 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_l4_hs_hwmod, slave 315 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_l4_wkup_hwmod, slave 323 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_wkup_m3_hwmod, slave 331 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_pruss_hwmod, slave 339 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_debugss_hwmod, slave 347 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_smartreflex0_hwmod, slave 355 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_smartreflex1_hwmod, slave 363 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_control_hwmod, slave 371 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_adc_tsc_hwmod, slave 378 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_lcdc_hwmod, slave 386 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_timer1_hwmod, slave 394 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_wd_timer1_hwmod, slave 403 arch/arm/mach-omap2/omap_hwmod_33xx_data.c .slave = &am33xx_usbss_hwmod, slave 1637 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l4_core_hwmod, slave 1644 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l4_per_hwmod, slave 1652 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 1660 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_debugss_hwmod, slave 1667 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 1673 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 1686 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 1694 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 1702 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 1710 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l4_wkup_hwmod, slave 1717 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_pre_es3_mmc1_hwmod, slave 1725 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_es3plus_mmc1_hwmod, slave 1734 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_pre_es3_mmc2_hwmod, slave 1742 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_es3plus_mmc2_hwmod, slave 1752 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mmc3_hwmod, slave 1762 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_uart1_hwmod, slave 1771 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_uart2_hwmod, slave 1780 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_uart3_hwmod, slave 1789 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap36xx_uart4_hwmod, slave 1798 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &am35xx_uart4_hwmod, slave 1806 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_i2c1_hwmod, slave 1821 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_i2c2_hwmod, slave 1837 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_i2c3_hwmod, slave 1852 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap34xx_sr1_hwmod, slave 1859 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap36xx_sr1_hwmod, slave 1868 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap34xx_sr2_hwmod, slave 1875 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap36xx_sr2_hwmod, slave 1884 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_usbhsotg_hwmod, slave 1893 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &am35xx_usbhsotg_hwmod, slave 1901 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l4_sec_hwmod, slave 1908 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_iva_hwmod, slave 1917 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer1_hwmod, slave 1926 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer2_hwmod, slave 1935 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer3_hwmod, slave 1944 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer4_hwmod, slave 1953 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer5_hwmod, slave 1962 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer6_hwmod, slave 1971 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer7_hwmod, slave 1980 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer8_hwmod, slave 1989 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer9_hwmod, slave 1997 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer10_hwmod, slave 2005 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer11_hwmod, slave 2014 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_timer12_hwmod, slave 2023 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_wd_timer2_hwmod, slave 2031 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3430es1_dss_core_hwmod, slave 2045 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_dss_core_hwmod, slave 2060 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_dss_dispc_hwmod, slave 2075 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_dss_dsi1_hwmod, slave 2090 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_dss_rfbi_hwmod, slave 2105 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_dss_venc_hwmod, slave 2122 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_gpio1_hwmod, slave 2130 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_gpio2_hwmod, slave 2138 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_gpio3_hwmod, slave 2169 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mmu_isp_hwmod, slave 2191 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mmu_iva_hwmod, slave 2216 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_gpio4_hwmod, slave 2224 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_gpio5_hwmod, slave 2232 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_gpio6_hwmod, slave 2239 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 2247 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_dma_system_hwmod, slave 2256 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mcbsp1_hwmod, slave 2265 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mcbsp2_hwmod, slave 2274 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mcbsp3_hwmod, slave 2283 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mcbsp4_hwmod, slave 2292 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mcbsp5_hwmod, slave 2301 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mcbsp2_sidetone_hwmod, slave 2310 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mcbsp3_sidetone_hwmod, slave 2318 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_mailbox_hwmod, slave 2325 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap34xx_mcspi1, slave 2333 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap34xx_mcspi2, slave 2341 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap34xx_mcspi3, slave 2350 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap34xx_mcspi4, slave 2357 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 2365 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_usb_host_hs_hwmod, slave 2373 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_usb_tll_hs_hwmod, slave 2381 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_hdq1w_hwmod, slave 2392 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_counter_32k_hwmod, slave 2415 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 2428 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &am35xx_mdio_hwmod, slave 2456 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_l3_main_hwmod, slave 2469 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &am35xx_emac_hwmod, slave 2476 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_gpmc_hwmod, slave 2514 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_sham_hwmod, slave 2552 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_aes_hwmod, slave 2594 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c .slave = &omap3xxx_ssi_hwmod, slave 539 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_emif_hwmod, slave 546 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_l4_hs_hwmod, slave 553 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_l4_wkup_hwmod, slave 560 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_wkup_m3_hwmod, slave 567 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_pruss_hwmod, slave 574 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_smartreflex0_hwmod, slave 581 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_smartreflex1_hwmod, slave 588 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_control_hwmod, slave 595 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_adc_tsc_hwmod, slave 602 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_timer1_hwmod, slave 609 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_wd_timer1_hwmod, slave 616 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_synctimer_hwmod, slave 623 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_timer8_hwmod, slave 630 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_timer9_hwmod, slave 637 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_timer10_hwmod, slave 644 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_timer11_hwmod, slave 651 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_epwmss3_hwmod, slave 658 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_epwmss4_hwmod, slave 665 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_epwmss5_hwmod, slave 672 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_spi2_hwmod, slave 679 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_spi3_hwmod, slave 686 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_spi4_hwmod, slave 693 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_ocp2scp0_hwmod, slave 700 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_ocp2scp1_hwmod, slave 707 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_usb_otg_ss0_hwmod, slave 714 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_usb_otg_ss1_hwmod, slave 721 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_qspi_hwmod, slave 728 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_l3_main_hwmod, slave 735 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_dss_core_hwmod, slave 742 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_dss_dispc_hwmod, slave 749 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_dss_rfbi_hwmod, slave 756 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_hdq1w_hwmod, slave 763 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_l3_main_hwmod, slave 770 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am33xx_l3_main_hwmod, slave 777 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_vpfe0_hwmod, slave 784 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_vpfe1_hwmod, slave 791 arch/arm/mach-omap2/omap_hwmod_43xx_data.c .slave = &am43xx_des_hwmod, slave 922 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_aes1_hwmod, slave 943 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_aes2_hwmod, slave 979 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_des_hwmod, slave 1545 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mmu_ipu_hwmod, slave 1577 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mmu_dsp_hwmod, slave 2384 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dmm_hwmod, slave 2392 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dmm_hwmod, slave 2400 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_instr_hwmod, slave 2408 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_instr_hwmod, slave 2416 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_instr_hwmod, slave 2424 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_1_hwmod, slave 2432 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_1_hwmod, slave 2440 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_1_hwmod, slave 2448 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_1_hwmod, slave 2456 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_1_hwmod, slave 2464 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2472 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2480 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2488 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2496 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2504 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2512 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2520 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2528 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2536 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2544 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2552 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_2_hwmod, slave 2560 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_3_hwmod, slave 2568 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_3_hwmod, slave 2576 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l3_main_3_hwmod, slave 2584 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l4_abe_hwmod, slave 2592 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l4_abe_hwmod, slave 2600 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l4_abe_hwmod, slave 2608 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l4_abe_hwmod, slave 2616 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l4_cfg_hwmod, slave 2624 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l4_per_hwmod, slave 2632 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_l4_wkup_hwmod, slave 2640 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mpu_private_hwmod, slave 2648 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ocp_wp_noc_hwmod, slave 2656 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_aess_hwmod, slave 2664 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_aess_hwmod, slave 2672 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_counter_32k_hwmod, slave 2680 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ctrl_module_core_hwmod, slave 2688 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ctrl_module_pad_core_hwmod, slave 2696 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ctrl_module_wkup_hwmod, slave 2704 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ctrl_module_pad_wkup_hwmod, slave 2712 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_debugss_hwmod, slave 2720 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dma_system_hwmod, slave 2728 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dmic_hwmod, slave 2736 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_iva_hwmod, slave 2744 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_sl2if_hwmod, slave 2752 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dsp_hwmod, slave 2760 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_hwmod, slave 2768 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_hwmod, slave 2776 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_dispc_hwmod, slave 2784 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_dispc_hwmod, slave 2792 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_dsi1_hwmod, slave 2800 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_dsi1_hwmod, slave 2808 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_dsi2_hwmod, slave 2816 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_dsi2_hwmod, slave 2824 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_hdmi_hwmod, slave 2832 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_hdmi_hwmod, slave 2840 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_rfbi_hwmod, slave 2848 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_rfbi_hwmod, slave 2856 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_venc_hwmod, slave 2864 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_dss_venc_hwmod, slave 2872 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_sha0_hwmod, slave 2880 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_elm_hwmod, slave 2888 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_fdif_hwmod, slave 2896 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_gpmc_hwmod, slave 2904 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_hdq1w_hwmod, slave 2912 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_hsi_hwmod, slave 2920 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ipu_hwmod, slave 2928 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_iss_hwmod, slave 2936 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_sl2if_hwmod, slave 2944 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_iva_hwmod, slave 2952 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_kbd_hwmod, slave 2960 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mailbox_hwmod, slave 2968 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mcasp_hwmod, slave 2976 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mcasp_hwmod, slave 2984 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mcbsp1_hwmod, slave 2992 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mcbsp2_hwmod, slave 3000 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mcbsp3_hwmod, slave 3008 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mcbsp4_hwmod, slave 3016 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_mcpdm_hwmod, slave 3024 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ocmc_ram_hwmod, slave 3032 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_ocp2scp_usb_phy_hwmod, slave 3040 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_prcm_mpu_hwmod, slave 3048 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_cm_core_aon_hwmod, slave 3056 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_cm_core_hwmod, slave 3064 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_prm_hwmod, slave 3072 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_scrm_hwmod, slave 3080 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_sl2if_hwmod, slave 3088 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_slimbus1_hwmod, slave 3096 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_slimbus1_hwmod, slave 3104 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_slimbus2_hwmod, slave 3112 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_smartreflex_core_hwmod, slave 3120 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_smartreflex_iva_hwmod, slave 3128 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_smartreflex_mpu_hwmod, slave 3136 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_spinlock_hwmod, slave 3144 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer1_hwmod, slave 3152 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer2_hwmod, slave 3160 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer3_hwmod, slave 3168 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer4_hwmod, slave 3176 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer5_hwmod, slave 3184 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer6_hwmod, slave 3192 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer7_hwmod, slave 3200 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer8_hwmod, slave 3208 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer9_hwmod, slave 3216 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer10_hwmod, slave 3224 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_timer11_hwmod, slave 3232 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_usb_host_fs_hwmod, slave 3240 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_usb_host_hs_hwmod, slave 3248 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_usb_otg_hs_hwmod, slave 3256 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_usb_tll_hs_hwmod, slave 3264 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_emif1_hwmod, slave 3272 arch/arm/mach-omap2/omap_hwmod_44xx_data.c .slave = &omap44xx_emif2_hwmod, slave 1443 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_ocp2scp3_hwmod, slave 1501 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_sata_hwmod, slave 1513 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dmm_hwmod, slave 1521 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_instr_hwmod, slave 1529 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_1_hwmod, slave 1537 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_1_hwmod, slave 1545 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mmu_dsp_hwmod, slave 1553 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_1_hwmod, slave 1561 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_2_hwmod, slave 1569 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_2_hwmod, slave 1577 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mmu_ipu_hwmod, slave 1585 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_3_hwmod, slave 1593 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_3_hwmod, slave 1601 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l3_main_3_hwmod, slave 1609 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l4_abe_hwmod, slave 1617 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l4_abe_hwmod, slave 1625 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l4_cfg_hwmod, slave 1633 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l4_per_hwmod, slave 1641 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_l4_wkup_hwmod, slave 1649 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mpu_private_hwmod, slave 1657 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_counter_32k_hwmod, slave 1665 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dma_system_hwmod, slave 1673 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dmic_hwmod, slave 1681 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dss_hwmod, slave 1689 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dss_dispc_hwmod, slave 1697 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dss_dsi1_a_hwmod, slave 1705 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dss_dsi1_c_hwmod, slave 1713 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dss_hdmi_hwmod, slave 1721 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_dss_rfbi_hwmod, slave 1729 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_emif1_hwmod, slave 1737 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_emif2_hwmod, slave 1745 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_kbd_hwmod, slave 1753 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mailbox_hwmod, slave 1761 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcbsp1_hwmod, slave 1769 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcbsp2_hwmod, slave 1777 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcbsp3_hwmod, slave 1785 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcpdm_hwmod, slave 1793 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcspi1_hwmod, slave 1801 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcspi2_hwmod, slave 1809 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcspi3_hwmod, slave 1817 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mcspi4_hwmod, slave 1825 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_mpu_hwmod, slave 1833 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_spinlock_hwmod, slave 1841 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_ocp2scp1_hwmod, slave 1849 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer1_hwmod, slave 1857 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer2_hwmod, slave 1865 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer3_hwmod, slave 1873 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer4_hwmod, slave 1881 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer5_hwmod, slave 1889 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer6_hwmod, slave 1897 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer7_hwmod, slave 1905 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer8_hwmod, slave 1913 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer9_hwmod, slave 1921 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer10_hwmod, slave 1929 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_timer11_hwmod, slave 1937 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_usb_host_hs_hwmod, slave 1945 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_usb_tll_hs_hwmod, slave 1953 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_usb_otg_ss_hwmod, slave 1961 arch/arm/mach-omap2/omap_hwmod_54xx_data.c .slave = &omap54xx_wd_timer2_hwmod, slave 1864 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_dmm_hwmod, slave 1872 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l3_instr_hwmod, slave 1880 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l3_main_1_hwmod, slave 1888 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l3_main_1_hwmod, slave 1896 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l3_main_2_hwmod, slave 1904 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l3_main_2_hwmod, slave 1912 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l4_cfg_hwmod, slave 1920 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l4_per1_hwmod, slave 1928 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l4_per2_hwmod, slave 1936 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l4_per3_hwmod, slave 1944 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_l4_wkup_hwmod, slave 1952 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_atl_hwmod, slave 1960 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_bb2d_hwmod, slave 1968 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_counter_32k_hwmod, slave 1976 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_ctrl_module_wkup_hwmod, slave 1984 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_dcan1_hwmod, slave 1992 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_dcan2_hwmod, slave 2000 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_dma_system_hwmod, slave 2008 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_tpcc_hwmod, slave 2016 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_tptc0_hwmod, slave 2024 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_tptc1_hwmod, slave 2032 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_dss_hwmod, slave 2040 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_dss_dispc_hwmod, slave 2048 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_dss_hdmi_hwmod, slave 2056 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_aes1_hwmod, slave 2064 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_aes2_hwmod, slave 2072 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_sha0_hwmod, slave 2080 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_elm_hwmod, slave 2088 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_gpmc_hwmod, slave 2096 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_hdq1w_hwmod, slave 2104 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox1_hwmod, slave 2112 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox2_hwmod, slave 2120 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox3_hwmod, slave 2128 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox4_hwmod, slave 2136 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox5_hwmod, slave 2144 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox6_hwmod, slave 2152 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox7_hwmod, slave 2160 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox8_hwmod, slave 2168 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox9_hwmod, slave 2176 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox10_hwmod, slave 2184 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox11_hwmod, slave 2192 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox12_hwmod, slave 2200 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mailbox13_hwmod, slave 2208 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_mpu_hwmod, slave 2216 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_ocp2scp1_hwmod, slave 2224 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_ocp2scp3_hwmod, slave 2232 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_pciess1_hwmod, slave 2240 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_pciess1_hwmod, slave 2248 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_pciess2_hwmod, slave 2256 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_pciess2_hwmod, slave 2264 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_qspi_hwmod, slave 2272 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_rtcss_hwmod, slave 2280 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_sata_hwmod, slave 2288 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_smartreflex_core_hwmod, slave 2296 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_smartreflex_mpu_hwmod, slave 2304 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_spinlock_hwmod, slave 2312 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer1_hwmod, slave 2320 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer2_hwmod, slave 2328 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer3_hwmod, slave 2336 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer4_hwmod, slave 2344 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer5_hwmod, slave 2352 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer6_hwmod, slave 2360 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer7_hwmod, slave 2368 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer8_hwmod, slave 2376 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer9_hwmod, slave 2384 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer10_hwmod, slave 2392 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer11_hwmod, slave 2400 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer12_hwmod, slave 2408 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer13_hwmod, slave 2416 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer14_hwmod, slave 2424 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer15_hwmod, slave 2432 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_timer16_hwmod, slave 2440 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_des_hwmod, slave 2448 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_rng_hwmod, slave 2455 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_usb_otg_ss1_hwmod, slave 2463 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_usb_otg_ss2_hwmod, slave 2471 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_usb_otg_ss3_hwmod, slave 2479 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_usb_otg_ss4_hwmod, slave 2487 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_vcp1_hwmod, slave 2495 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_vcp1_hwmod, slave 2503 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_vcp2_hwmod, slave 2511 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_vcp2_hwmod, slave 2519 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_wd_timer2_hwmod, slave 2527 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_epwmss0_hwmod, slave 2535 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_epwmss1_hwmod, slave 2543 arch/arm/mach-omap2/omap_hwmod_7xx_data.c .slave = &dra7xx_epwmss2_hwmod, slave 165 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_l4_ls_hwmod, slave 172 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_l4_hs_hwmod, slave 193 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_slow_hwmod, slave 200 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_med_hwmod, slave 220 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_slow_hwmod, slave 227 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_med_hwmod, slave 262 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &ti81xx_rtc_hwmod, slave 301 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_uart1_hwmod, slave 322 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_uart2_hwmod, slave 343 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_uart3_hwmod, slave 380 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_wd_timer_hwmod, slave 417 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_i2c1_hwmod, slave 437 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_i2c2_hwmod, slave 467 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_elm_hwmod, slave 510 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_gpio1_hwmod, slave 536 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_gpio2_hwmod, slave 562 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_gpio3_hwmod, slave 588 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_gpio4_hwmod, slave 625 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_gpmc_hwmod, slave 660 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_usbss_hwmod, slave 680 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_usbss_hwmod, slave 710 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_timer1_hwmod, slave 730 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_timer1_hwmod, slave 745 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_timer2_hwmod, slave 765 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_timer2_hwmod, slave 785 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_timer3_hwmod, slave 805 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_timer4_hwmod, slave 825 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_timer5_hwmod, slave 845 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_timer6_hwmod, slave 865 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_timer7_hwmod, slave 914 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_cpgmac0_hwmod, slave 921 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_mdio_hwmod, slave 952 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_emac0_hwmod, slave 982 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_emac0_mdio_hwmod, slave 1002 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_emac1_hwmod, slave 1035 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_sata_hwmod, slave 1081 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_mmc1_hwmod, slave 1105 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_mmc2_hwmod, slave 1129 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm814x_mmc3_hwmod, slave 1152 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm816x_mmc1_hwmod, slave 1228 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_mcspi1_hwmod, slave 1235 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_mcspi2_hwmod, slave 1242 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_mcspi3_hwmod, slave 1249 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_mcspi4_hwmod, slave 1284 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_mailbox_hwmod, slave 1319 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_spinbox_hwmod, slave 1343 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_tpcc_hwmod, slave 1367 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_tptc0_hwmod, slave 1374 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_fast_hwmod, slave 1398 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_tptc1_hwmod, slave 1405 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_fast_hwmod, slave 1429 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_tptc2_hwmod, slave 1436 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_fast_hwmod, slave 1460 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_tptc3_hwmod, slave 1467 arch/arm/mach-omap2/omap_hwmod_81xx_data.c .slave = &dm81xx_alwon_l3_fast_hwmod, slave 54 arch/m68k/include/asm/mvme147hw.h volatile u_char slave; slave 298 arch/powerpc/platforms/powermac/pic.c struct device_node *slave = NULL; slave 314 arch/powerpc/platforms/powermac/pic.c slave = of_find_node_by_name(NULL, "pci106b,7"); slave 315 arch/powerpc/platforms/powermac/pic.c if (slave) slave 324 arch/powerpc/platforms/powermac/pic.c slave = of_find_node_by_name(master, "mac-io"); slave 329 arch/powerpc/platforms/powermac/pic.c BUG_ON(slave == NULL); slave 331 arch/powerpc/platforms/powermac/pic.c master = slave; slave 332 arch/powerpc/platforms/powermac/pic.c slave = tmp; slave 336 arch/powerpc/platforms/powermac/pic.c if (slave) slave 366 arch/powerpc/platforms/powermac/pic.c if (slave && !of_address_to_resource(slave, 0, &r)) { slave 374 arch/powerpc/platforms/powermac/pic.c pmac_irq_cascade = irq_of_parse_and_map(slave, 0); slave 377 arch/powerpc/platforms/powermac/pic.c " cascade: %d\n", slave, slave 380 arch/powerpc/platforms/powermac/pic.c of_node_put(slave); slave 387 arch/powerpc/platforms/powermac/pic.c if (slave && pmac_irq_cascade) slave 481 arch/powerpc/platforms/powermac/pic.c struct device_node *np, *master = NULL, *slave = NULL; slave 488 arch/powerpc/platforms/powermac/pic.c else if (slave == NULL) slave 489 arch/powerpc/platforms/powermac/pic.c slave = of_node_get(np); slave 490 arch/powerpc/platforms/powermac/pic.c if (master && slave) { slave 497 arch/powerpc/platforms/powermac/pic.c if (master == NULL && slave != NULL) { slave 498 arch/powerpc/platforms/powermac/pic.c master = slave; slave 499 arch/powerpc/platforms/powermac/pic.c slave = NULL; slave 519 arch/powerpc/platforms/powermac/pic.c if (slave) { slave 520 arch/powerpc/platforms/powermac/pic.c mpic2 = pmac_setup_one_mpic(slave, 0); slave 523 arch/powerpc/platforms/powermac/pic.c of_node_put(slave); slave 524 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_ioda_pe *slave; slave 550 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(slave, &pe->slaves, list) { slave 552 arch/powerpc/platforms/powernv/pci-ioda.c slave->pe_number, slave 557 arch/powerpc/platforms/powernv/pci-ioda.c slave->pe_number); slave 563 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_ioda_pe *pe, *slave; slave 586 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(slave, &pe->slaves, list) { slave 588 arch/powerpc/platforms/powernv/pci-ioda.c slave->pe_number, slave 593 arch/powerpc/platforms/powernv/pci-ioda.c slave->pe_number); slave 603 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_ioda_pe *slave, *pe; slave 638 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(slave, &pe->slaves, list) { slave 640 arch/powerpc/platforms/powernv/pci-ioda.c slave->pe_number, slave 648 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose->global_number, slave->pe_number); slave 684 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_ioda_pe *slave; slave 700 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(slave, &child->slaves, list) { slave 702 arch/powerpc/platforms/powernv/pci-ioda.c slave->pe_number, op); slave 704 arch/powerpc/platforms/powernv/pci-ioda.c pe_warn(slave, "OPAL error %ld %s to parent PELTV\n", slave 717 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_ioda_pe *slave; slave 729 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(slave, &pe->slaves, list) slave 731 arch/powerpc/platforms/powernv/pci-ioda.c slave->pe_number, slave 748 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(slave, &pe->slaves, list) { slave 749 arch/powerpc/platforms/powernv/pci-ioda.c ret = pnv_ioda_set_one_peltv(phb, slave, pe, is_add); slave 3545 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_ioda_pe *slave, *tmp; slave 3564 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry_safe(slave, tmp, &pe->slaves, list) { slave 3565 arch/powerpc/platforms/powernv/pci-ioda.c list_del(&slave->list); slave 3566 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_free_pe(slave); slave 121 arch/sh/kernel/cpu/sh4a/setup-sh7722.c .slave = sh7722_dmae_slaves, slave 187 arch/sh/kernel/cpu/sh4a/setup-sh7724.c .slave = sh7724_dmae_slaves, slave 383 arch/sh/kernel/cpu/sh4a/setup-sh7757.c .slave = sh7757_dmae0_slaves, slave 397 arch/sh/kernel/cpu/sh4a/setup-sh7757.c .slave = sh7757_dmae1_slaves, slave 411 arch/sh/kernel/cpu/sh4a/setup-sh7757.c .slave = sh7757_dmae2_slaves, slave 425 arch/sh/kernel/cpu/sh4a/setup-sh7757.c .slave = sh7757_dmae3_slaves, slave 12 arch/um/drivers/slip.h int slave; slave 28 arch/um/drivers/slip_kern.c spri->slave = -1; slave 151 arch/um/drivers/slip_user.c pri->slave = sfd; slave 165 arch/um/drivers/slip_user.c err = os_get_ifname(pri->slave, pri->name); slave 203 arch/um/drivers/slip_user.c err = slip_tramp(argv, pri->slave); slave 208 arch/um/drivers/slip_user.c close(pri->slave); slave 209 arch/um/drivers/slip_user.c pri->slave = -1; slave 227 arch/um/drivers/slip_user.c if (pri->slave < 0) slave 237 arch/um/drivers/slip_user.c if (pri->slave < 0) slave 24 arch/um/drivers/slirp.h int slave; slave 30 arch/um/drivers/slirp_kern.c spri->slave = -1; slave 65 arch/um/drivers/slirp_user.c pri->slave = fds[1]; slave 83 arch/um/drivers/slirp_user.c close(pri->slave); slave 85 arch/um/drivers/slirp_user.c pri->slave = -1; slave 398 arch/um/os-Linux/sigio.c int slave; slave 407 arch/um/os-Linux/sigio.c if (openpty(&info->master, &info->slave, NULL, NULL, NULL)) slave 411 arch/um/os-Linux/sigio.c static int async_pty(int master, int slave) slave 423 arch/um/os-Linux/sigio.c if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0)) slave 432 arch/um/os-Linux/sigio.c struct openpty_arg pty = { .master = -1, .slave = -1 }; slave 433 arch/um/os-Linux/sigio.c int master, slave, err; slave 443 arch/um/os-Linux/sigio.c slave = pty.slave; slave 445 arch/um/os-Linux/sigio.c if ((master == -1) || (slave == -1)) { slave 459 arch/um/os-Linux/sigio.c err = async_pty(master, slave); slave 481 arch/um/os-Linux/sigio.c (*proc)(master, slave); slave 484 arch/um/os-Linux/sigio.c close(slave); slave 491 arch/um/os-Linux/sigio.c static void tty_output(int master, int slave) slave 504 arch/um/os-Linux/sigio.c while (((n = read(slave, buf, sizeof(buf))) > 0) && slave 517 arch/um/os-Linux/sigio.c static void tty_close(int master, int slave) slave 522 arch/um/os-Linux/sigio.c close(slave); slave 56 drivers/acpi/scan.c acpi_handle slave; slave 1853 drivers/acpi/scan.c dep->slave = adev->handle; slave 2030 drivers/acpi/scan.c acpi_bus_get_device(dep->slave, &adev); slave 5654 drivers/ata/libata-core.c struct ata_link *slave = link->ap->slave_link; slave 5656 drivers/ata/libata-core.c WARN_ON(link == slave); /* shouldn't be called on slave link */ slave 5659 drivers/ata/libata-core.c (slave && ata_phys_link_online(slave)); slave 5680 drivers/ata/libata-core.c struct ata_link *slave = link->ap->slave_link; slave 5682 drivers/ata/libata-core.c WARN_ON(link == slave); /* shouldn't be called on slave link */ slave 5685 drivers/ata/libata-core.c (!slave || ata_phys_link_offline(slave)); slave 2645 drivers/ata/libata-eh.c struct ata_link *slave = ap->slave_link; slave 2647 drivers/ata/libata-eh.c struct ata_eh_context *sehc = slave ? &slave->eh_context : NULL; slave 2723 drivers/ata/libata-eh.c if (slave) { slave 2734 drivers/ata/libata-eh.c if (slave && (rc == 0 || rc == -ENOENT)) { slave 2737 drivers/ata/libata-eh.c tmp = prereset(slave, deadline); slave 2802 drivers/ata/libata-eh.c if (slave && reset == hardreset) { slave 2806 drivers/ata/libata-eh.c ata_link_info(slave, "hard resetting link\n"); slave 2808 drivers/ata/libata-eh.c ata_eh_about_to_do(slave, NULL, ATA_EH_RESET); slave 2809 drivers/ata/libata-eh.c tmp = ata_do_reset(slave, reset, classes, deadline, slave 2817 drivers/ata/libata-eh.c failed_link = slave; slave 2875 drivers/ata/libata-eh.c if (slave && sata_scr_read(slave, SCR_STATUS, &sstatus) == 0) slave 2876 drivers/ata/libata-eh.c slave->sata_spd = (sstatus >> 4) & 0xf; slave 2891 drivers/ata/libata-eh.c if (slave) slave 2892 drivers/ata/libata-eh.c postreset(slave, classes); slave 2904 drivers/ata/libata-eh.c if (slave) slave 2905 drivers/ata/libata-eh.c memset(&slave->eh_info, 0, sizeof(link->eh_info)); slave 2957 drivers/ata/libata-eh.c if (slave) slave 2958 drivers/ata/libata-eh.c ata_eh_done(slave, NULL, ATA_EH_RESET); slave 2967 drivers/ata/libata-eh.c if (slave) slave 3020 drivers/ata/libata-eh.c if (slave) slave 3021 drivers/ata/libata-eh.c sata_down_spd_limit(slave, 0); slave 63 drivers/ata/pata_cs5520.c int slave = adev->devno; slave 73 drivers/ata/pata_cs5520.c pci_write_config_byte(pdev, 0x64 + 4*ap->port_no + slave, slave 77 drivers/ata/pata_cs5520.c pci_write_config_byte(pdev, 0x66 + 4*ap->port_no + slave, slave 46 drivers/ata/pata_pcmcia.c struct ata_device *slave = &link->device[1]; slave 48 drivers/ata/pata_pcmcia.c if (!ata_dev_enabled(master) || !ata_dev_enabled(slave)) slave 51 drivers/ata/pata_pcmcia.c if (memcmp(master->id + ATA_ID_FW_REV, slave->id + ATA_ID_FW_REV, slave 55 drivers/ata/pata_pcmcia.c if (memcmp(master->id + ATA_ID_SERNO, slave->id + ATA_ID_SERNO, slave 57 drivers/ata/pata_pcmcia.c ata_dev_warn(slave, "is a ghost device, ignoring\n"); slave 58 drivers/ata/pata_pcmcia.c ata_dev_disable(slave); slave 1651 drivers/base/power/domain.c if (itr->slave == subdomain && itr->master == genpd) { slave 1659 drivers/base/power/domain.c link->slave = subdomain; slave 1715 drivers/base/power/domain.c if (link->slave != subdomain) slave 2796 drivers/base/power/domain.c seq_printf(s, "%s", link->slave->name); slave 2881 drivers/base/power/domain.c seq_printf(s, "%s\n", link->slave->name); slave 139 drivers/base/power/domain_governor.c struct generic_pm_domain *sd = link->slave; slave 13 drivers/base/regmap/regmap-sdw.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 15 drivers/base/regmap/regmap-sdw.c return sdw_write(slave, reg, val); slave 21 drivers/base/regmap/regmap-sdw.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 24 drivers/base/regmap/regmap-sdw.c read = sdw_read(slave, reg); slave 237 drivers/clk/bcm/clk-bcm21664.c BCM21664_CCU_COMMON(slave, SLAVE), slave 244 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(slave, uartb, peri), slave 246 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(slave, uartb2, peri), slave 248 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(slave, uartb3, peri), slave 250 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(slave, bsc1, peri), slave 252 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(slave, bsc2, peri), slave 254 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(slave, bsc3, peri), slave 256 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(slave, bsc4, peri), slave 313 drivers/clk/bcm/clk-bcm281xx.c BCM281XX_CCU_COMMON(slave, SLAVE), slave 316 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, uartb, peri), slave 318 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, uartb2, peri), slave 320 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, uartb3, peri), slave 322 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, uartb4, peri), slave 324 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, ssp0, peri), slave 326 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, ssp2, peri), slave 328 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, bsc1, peri), slave 330 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, bsc2, peri), slave 332 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, bsc3, peri), slave 334 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(slave, pwm, peri), slave 2374 drivers/crypto/atmel-aes.c static bool atmel_aes_filter(struct dma_chan *chan, void *slave) slave 2376 drivers/crypto/atmel-aes.c struct at_dma_slave *sl = slave; slave 2389 drivers/crypto/atmel-aes.c struct at_dma_slave *slave; slave 2396 drivers/crypto/atmel-aes.c slave = &pdata->dma_slave->rxdata; slave 2398 drivers/crypto/atmel-aes.c slave, dd->dev, "tx"); slave 2402 drivers/crypto/atmel-aes.c slave = &pdata->dma_slave->txdata; slave 2404 drivers/crypto/atmel-aes.c slave, dd->dev, "rx"); slave 2606 drivers/crypto/atmel-sha.c static bool atmel_sha_filter(struct dma_chan *chan, void *slave) slave 2608 drivers/crypto/atmel-sha.c struct at_dma_slave *sl = slave; slave 705 drivers/crypto/atmel-tdes.c static bool atmel_tdes_filter(struct dma_chan *chan, void *slave) slave 707 drivers/crypto/atmel-tdes.c struct at_dma_slave *sl = slave; slave 256 drivers/dma/amba-pl08x.c bool slave; slave 279 drivers/dma/amba-pl08x.c struct dma_device slave; slave 925 drivers/dma/amba-pl08x.c list_for_each_entry(p, &pl08x->slave.channels, vc.chan.device_node) slave 2140 drivers/dma/amba-pl08x.c if (!plchan->slave) slave 2359 drivers/dma/amba-pl08x.c chan->slave = true; slave 2370 drivers/dma/amba-pl08x.c struct dma_device *dmadev, unsigned int channels, bool slave) slave 2391 drivers/dma/amba-pl08x.c if (slave) { slave 2423 drivers/dma/amba-pl08x.c i, slave ? "slave" : "memcpy"); slave 2496 drivers/dma/amba-pl08x.c list_for_each_entry(chan, &pl08x->slave.channels, slave 2531 drivers/dma/amba-pl08x.c list_for_each_entry(chan, &pl08x->slave.channels, vc.chan.device_node) { slave 2785 drivers/dma/amba-pl08x.c dma_cap_set(DMA_SLAVE, pl08x->slave.cap_mask); slave 2786 drivers/dma/amba-pl08x.c dma_cap_set(DMA_CYCLIC, pl08x->slave.cap_mask); slave 2787 drivers/dma/amba-pl08x.c pl08x->slave.dev = &adev->dev; slave 2788 drivers/dma/amba-pl08x.c pl08x->slave.device_free_chan_resources = slave 2790 drivers/dma/amba-pl08x.c pl08x->slave.device_prep_dma_interrupt = slave 2792 drivers/dma/amba-pl08x.c pl08x->slave.device_tx_status = pl08x_dma_tx_status; slave 2793 drivers/dma/amba-pl08x.c pl08x->slave.device_issue_pending = pl08x_issue_pending; slave 2794 drivers/dma/amba-pl08x.c pl08x->slave.device_prep_slave_sg = pl08x_prep_slave_sg; slave 2795 drivers/dma/amba-pl08x.c pl08x->slave.device_prep_dma_cyclic = pl08x_prep_dma_cyclic; slave 2796 drivers/dma/amba-pl08x.c pl08x->slave.device_config = pl08x_config; slave 2797 drivers/dma/amba-pl08x.c pl08x->slave.device_pause = pl08x_pause; slave 2798 drivers/dma/amba-pl08x.c pl08x->slave.device_resume = pl08x_resume; slave 2799 drivers/dma/amba-pl08x.c pl08x->slave.device_terminate_all = pl08x_terminate_all; slave 2800 drivers/dma/amba-pl08x.c pl08x->slave.device_synchronize = pl08x_synchronize; slave 2801 drivers/dma/amba-pl08x.c pl08x->slave.src_addr_widths = PL80X_DMA_BUSWIDTHS; slave 2802 drivers/dma/amba-pl08x.c pl08x->slave.dst_addr_widths = PL80X_DMA_BUSWIDTHS; slave 2803 drivers/dma/amba-pl08x.c pl08x->slave.directions = slave 2805 drivers/dma/amba-pl08x.c pl08x->slave.residue_granularity = slave 2822 drivers/dma/amba-pl08x.c pl08x->slave.filter.map = pl08x->pd->slave_map; slave 2823 drivers/dma/amba-pl08x.c pl08x->slave.filter.mapcnt = pl08x->pd->slave_map_len; slave 2824 drivers/dma/amba-pl08x.c pl08x->slave.filter.fn = pl08x_filter_fn; slave 2933 drivers/dma/amba-pl08x.c ret = pl08x_dma_init_virtual_channels(pl08x, &pl08x->slave, slave 2952 drivers/dma/amba-pl08x.c ret = dma_async_device_register(&pl08x->slave); slave 2973 drivers/dma/amba-pl08x.c pl08x_free_virtual_channels(&pl08x->slave); slave 1644 drivers/dma/at_hdmac.c static bool at_dma_filter(struct dma_chan *chan, void *slave) slave 1646 drivers/dma/at_hdmac.c struct at_dma_slave *atslave = slave; slave 680 drivers/dma/dmaengine.c !strcmp(map->slave, name)) slave 12 drivers/dma/dw/acpi.c struct dw_dma_slave slave = { slave 20 drivers/dma/dw/acpi.c return dw_dma_filter(chan, &slave); slave 20 drivers/dma/dw/of.c struct dw_dma_slave slave = { slave 28 drivers/dma/dw/of.c slave.src_id = dma_spec->args[0]; slave 29 drivers/dma/dw/of.c slave.dst_id = dma_spec->args[0]; slave 30 drivers/dma/dw/of.c slave.m_master = dma_spec->args[1]; slave 31 drivers/dma/dw/of.c slave.p_master = dma_spec->args[2]; slave 33 drivers/dma/dw/of.c if (WARN_ON(slave.src_id >= DW_DMA_MAX_NR_REQUESTS || slave 34 drivers/dma/dw/of.c slave.dst_id >= DW_DMA_MAX_NR_REQUESTS || slave 35 drivers/dma/dw/of.c slave.m_master >= dw->pdata->nr_masters || slave 36 drivers/dma/dw/of.c slave.p_master >= dw->pdata->nr_masters)) slave 43 drivers/dma/dw/of.c return dma_request_channel(cap, dw_dma_filter, &slave); slave 100 drivers/dma/k3dma.c struct dma_device slave; slave 123 drivers/dma/k3dma.c #define to_k3_dma(dmadev) container_of(dmadev, struct k3_dma_dev, slave) slave 248 drivers/dma/k3dma.c dev_warn(d->slave.dev, "DMA ERR\n"); slave 308 drivers/dma/k3dma.c list_for_each_entry_safe(c, cn, &d->slave.channels, vc.chan.device_node) { slave 314 drivers/dma/k3dma.c dev_dbg(d->slave.dev, "pchan %u: free\n", p->idx); slave 340 drivers/dma/k3dma.c dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); slave 439 drivers/dma/k3dma.c dev_dbg(d->slave.dev, "vchan %p: issued\n", &c->vc); slave 444 drivers/dma/k3dma.c dev_dbg(d->slave.dev, "vchan %p: nothing to issue\n", &c->vc); slave 729 drivers/dma/k3dma.c dev_dbg(d->slave.dev, "vchan %p: terminate all\n", &c->vc); slave 769 drivers/dma/k3dma.c dev_dbg(d->slave.dev, "vchan %p: pause\n", &c->vc); slave 791 drivers/dma/k3dma.c dev_dbg(d->slave.dev, "vchan %p: resume\n", &c->vc); slave 917 drivers/dma/k3dma.c INIT_LIST_HEAD(&d->slave.channels); slave 918 drivers/dma/k3dma.c dma_cap_set(DMA_SLAVE, d->slave.cap_mask); slave 919 drivers/dma/k3dma.c dma_cap_set(DMA_MEMCPY, d->slave.cap_mask); slave 920 drivers/dma/k3dma.c dma_cap_set(DMA_CYCLIC, d->slave.cap_mask); slave 921 drivers/dma/k3dma.c d->slave.dev = &op->dev; slave 922 drivers/dma/k3dma.c d->slave.device_free_chan_resources = k3_dma_free_chan_resources; slave 923 drivers/dma/k3dma.c d->slave.device_tx_status = k3_dma_tx_status; slave 924 drivers/dma/k3dma.c d->slave.device_prep_dma_memcpy = k3_dma_prep_memcpy; slave 925 drivers/dma/k3dma.c d->slave.device_prep_slave_sg = k3_dma_prep_slave_sg; slave 926 drivers/dma/k3dma.c d->slave.device_prep_dma_cyclic = k3_dma_prep_dma_cyclic; slave 927 drivers/dma/k3dma.c d->slave.device_issue_pending = k3_dma_issue_pending; slave 928 drivers/dma/k3dma.c d->slave.device_config = k3_dma_config; slave 929 drivers/dma/k3dma.c d->slave.device_pause = k3_dma_transfer_pause; slave 930 drivers/dma/k3dma.c d->slave.device_resume = k3_dma_transfer_resume; slave 931 drivers/dma/k3dma.c d->slave.device_terminate_all = k3_dma_terminate_all; slave 932 drivers/dma/k3dma.c d->slave.device_synchronize = k3_dma_synchronize; slave 933 drivers/dma/k3dma.c d->slave.copy_align = DMAENGINE_ALIGN_8_BYTES; slave 947 drivers/dma/k3dma.c vchan_init(&c->vc, &d->slave); slave 959 drivers/dma/k3dma.c ret = dma_async_device_register(&d->slave); slave 977 drivers/dma/k3dma.c dma_async_device_unregister(&d->slave); slave 988 drivers/dma/k3dma.c dma_async_device_unregister(&d->slave); slave 993 drivers/dma/k3dma.c list_for_each_entry_safe(c, cn, &d->slave.channels, vc.chan.device_node) { slave 1010 drivers/dma/k3dma.c dev_warn(d->slave.dev, slave 1026 drivers/dma/k3dma.c dev_err(d->slave.dev, "clk_prepare_enable failed: %d\n", ret); slave 124 drivers/dma/pxa_dma.c struct dma_device slave; slave 141 drivers/dma/pxa_dma.c container_of(dmadev, struct pxad_device, slave) slave 350 drivers/dma/pxa_dma.c pdev->dbgfs_root = debugfs_create_dir(dev_name(pdev->slave.dev), NULL); slave 694 drivers/dma/pxa_dma.c pdev->slave.dev, slave 1238 drivers/dma/pxa_dma.c pxad_free_channels(&pdev->slave); slave 1276 drivers/dma/pxa_dma.c dev_err(pdev->slave.dev, slave 1298 drivers/dma/pxa_dma.c chan = dma_get_any_slave_channel(&d->slave); slave 1319 drivers/dma/pxa_dma.c INIT_LIST_HEAD(&pdev->slave.channels); slave 1320 drivers/dma/pxa_dma.c pdev->slave.device_alloc_chan_resources = pxad_alloc_chan_resources; slave 1321 drivers/dma/pxa_dma.c pdev->slave.device_free_chan_resources = pxad_free_chan_resources; slave 1322 drivers/dma/pxa_dma.c pdev->slave.device_tx_status = pxad_tx_status; slave 1323 drivers/dma/pxa_dma.c pdev->slave.device_issue_pending = pxad_issue_pending; slave 1324 drivers/dma/pxa_dma.c pdev->slave.device_config = pxad_config; slave 1325 drivers/dma/pxa_dma.c pdev->slave.device_synchronize = pxad_synchronize; slave 1326 drivers/dma/pxa_dma.c pdev->slave.device_terminate_all = pxad_terminate_all; slave 1345 drivers/dma/pxa_dma.c vchan_init(&c->vc, &pdev->slave); slave 1349 drivers/dma/pxa_dma.c return dmaenginem_async_device_register(&pdev->slave); slave 1382 drivers/dma/pxa_dma.c dev_warn(pdev->slave.dev, slave 1396 drivers/dma/pxa_dma.c dma_cap_set(DMA_SLAVE, pdev->slave.cap_mask); slave 1397 drivers/dma/pxa_dma.c dma_cap_set(DMA_MEMCPY, pdev->slave.cap_mask); slave 1398 drivers/dma/pxa_dma.c dma_cap_set(DMA_CYCLIC, pdev->slave.cap_mask); slave 1399 drivers/dma/pxa_dma.c dma_cap_set(DMA_PRIVATE, pdev->slave.cap_mask); slave 1400 drivers/dma/pxa_dma.c pdev->slave.device_prep_dma_memcpy = pxad_prep_memcpy; slave 1401 drivers/dma/pxa_dma.c pdev->slave.device_prep_slave_sg = pxad_prep_slave_sg; slave 1402 drivers/dma/pxa_dma.c pdev->slave.device_prep_dma_cyclic = pxad_prep_dma_cyclic; slave 1403 drivers/dma/pxa_dma.c pdev->slave.filter.map = slave_map; slave 1404 drivers/dma/pxa_dma.c pdev->slave.filter.mapcnt = slave_map_cnt; slave 1405 drivers/dma/pxa_dma.c pdev->slave.filter.fn = pxad_filter_fn; slave 1407 drivers/dma/pxa_dma.c pdev->slave.copy_align = PDMA_ALIGNMENT; slave 1408 drivers/dma/pxa_dma.c pdev->slave.src_addr_widths = widths; slave 1409 drivers/dma/pxa_dma.c pdev->slave.dst_addr_widths = widths; slave 1410 drivers/dma/pxa_dma.c pdev->slave.directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM); slave 1411 drivers/dma/pxa_dma.c pdev->slave.residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; slave 1412 drivers/dma/pxa_dma.c pdev->slave.descriptor_reuse = true; slave 1414 drivers/dma/pxa_dma.c pdev->slave.dev = &op->dev; slave 1417 drivers/dma/pxa_dma.c dev_err(pdev->slave.dev, "unable to register\n"); slave 1426 drivers/dma/pxa_dma.c dev_err(pdev->slave.dev, slave 1434 drivers/dma/pxa_dma.c dev_info(pdev->slave.dev, "initialized %d channels on %d requestors\n", slave 356 drivers/dma/qcom/bam_dma.c struct dma_slave_config slave; slave 589 drivers/dma/qcom/bam_dma.c memcpy(&bchan->slave, cfg, sizeof(*cfg)); slave 963 drivers/dma/qcom/bam_dma.c maxburst = bchan->slave.src_maxburst; slave 965 drivers/dma/qcom/bam_dma.c maxburst = bchan->slave.dst_maxburst; slave 223 drivers/dma/s3c24xx-dma.c bool slave; slave 240 drivers/dma/s3c24xx-dma.c struct dma_device slave; slave 267 drivers/dma/s3c24xx-dma.c if (!s3cchan->slave) slave 393 drivers/dma/s3c24xx-dma.c if (!s3cchan->slave) { slave 462 drivers/dma/s3c24xx-dma.c if (s3cchan->slave) { slave 494 drivers/dma/s3c24xx-dma.c if (!s3cchan->slave) slave 597 drivers/dma/s3c24xx-dma.c list_for_each_entry(p, &s3cdma->slave.channels, slave 640 drivers/dma/s3c24xx-dma.c if (!s3cchan->slave) slave 1089 drivers/dma/s3c24xx-dma.c struct dma_device *dmadev, unsigned int channels, bool slave) slave 1110 drivers/dma/s3c24xx-dma.c if (slave) { slave 1111 drivers/dma/s3c24xx-dma.c chan->slave = true; slave 1128 drivers/dma/s3c24xx-dma.c i, slave ? "slave" : "memcpy"); slave 1289 drivers/dma/s3c24xx-dma.c dma_cap_set(DMA_SLAVE, s3cdma->slave.cap_mask); slave 1290 drivers/dma/s3c24xx-dma.c dma_cap_set(DMA_CYCLIC, s3cdma->slave.cap_mask); slave 1291 drivers/dma/s3c24xx-dma.c dma_cap_set(DMA_PRIVATE, s3cdma->slave.cap_mask); slave 1292 drivers/dma/s3c24xx-dma.c s3cdma->slave.dev = &pdev->dev; slave 1293 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_free_chan_resources = slave 1295 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_tx_status = s3c24xx_dma_tx_status; slave 1296 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_issue_pending = s3c24xx_dma_issue_pending; slave 1297 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_prep_slave_sg = s3c24xx_dma_prep_slave_sg; slave 1298 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_prep_dma_cyclic = s3c24xx_dma_prep_dma_cyclic; slave 1299 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_config = s3c24xx_dma_set_runtime_config; slave 1300 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_terminate_all = s3c24xx_dma_terminate_all; slave 1301 drivers/dma/s3c24xx-dma.c s3cdma->slave.device_synchronize = s3c24xx_dma_synchronize; slave 1302 drivers/dma/s3c24xx-dma.c s3cdma->slave.filter.map = pdata->slave_map; slave 1303 drivers/dma/s3c24xx-dma.c s3cdma->slave.filter.mapcnt = pdata->slavecnt; slave 1304 drivers/dma/s3c24xx-dma.c s3cdma->slave.filter.fn = s3c24xx_dma_filter; slave 1317 drivers/dma/s3c24xx-dma.c ret = s3c24xx_dma_init_virtual_channels(s3cdma, &s3cdma->slave, slave 1334 drivers/dma/s3c24xx-dma.c ret = dma_async_device_register(&s3cdma->slave); slave 1351 drivers/dma/s3c24xx-dma.c s3c24xx_dma_free_virtual_channels(&s3cdma->slave); slave 1384 drivers/dma/s3c24xx-dma.c dma_async_device_unregister(&s3cdma->slave); slave 1389 drivers/dma/s3c24xx-dma.c s3c24xx_dma_free_virtual_channels(&s3cdma->slave); slave 118 drivers/dma/sa11x0-dma.c struct dma_device slave; slave 133 drivers/dma/sa11x0-dma.c return container_of(dmadev, struct sa11x0_dma_dev, slave); slave 154 drivers/dma/sa11x0-dma.c dev_vdbg(p->dev->slave.dev, "pchan %u: txd %p[%x]: starting: DDAR:%x\n", slave 216 drivers/dma/sa11x0-dma.c dev_dbg(p->dev->slave.dev, "pchan %u: load: DCSR:%02x DBS%c:%08x DBT%c:%08x\n", slave 263 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "pchan %u: irq: DCSR:%02x\n", p->num, dcsr); slave 266 drivers/dma/sa11x0-dma.c dev_err(d->slave.dev, "pchan %u: error. DCSR:%02x DDAR:%08x DBSA:%08x DBTA:%08x DBSB:%08x DBTB:%08x\n", slave 333 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "tasklet enter\n"); slave 335 drivers/dma/sa11x0-dma.c list_for_each_entry(c, &d->slave.channels, vc.chan.device_node) { slave 342 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "pchan %u: free\n", p->num); slave 366 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); slave 384 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "tasklet exit\n"); slave 462 drivers/dma/sa11x0-dma.c dev_vdbg(d->slave.dev, "tx_status: addr:%pad\n", &addr); slave 465 drivers/dma/sa11x0-dma.c dev_vdbg(d->slave.dev, "tx_status: [%u] %x+%x\n", slave 473 drivers/dma/sa11x0-dma.c dev_vdbg(d->slave.dev, "tx_status: [%u] +%x\n", slave 481 drivers/dma/sa11x0-dma.c dev_vdbg(d->slave.dev, "tx_status: [%u] %x+%x ++\n", slave 490 drivers/dma/sa11x0-dma.c dev_vdbg(d->slave.dev, "tx_status: bytes 0x%x\n", state->residue); slave 513 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "vchan %p: issued\n", &c->vc); slave 518 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "vchan %p: nothing to issue\n", &c->vc); slave 707 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "vchan %p: pause\n", &c->vc); slave 733 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "vchan %p: resume\n", &c->vc); slave 760 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "vchan %p: terminate all\n", &c->vc); slave 767 drivers/dma/sa11x0-dma.c dev_dbg(d->slave.dev, "pchan %u: terminating\n", p->num); slave 921 drivers/dma/sa11x0-dma.c d->slave.filter.fn = sa11x0_dma_filter_fn; slave 922 drivers/dma/sa11x0-dma.c d->slave.filter.mapcnt = ARRAY_SIZE(sa11x0_dma_map); slave 923 drivers/dma/sa11x0-dma.c d->slave.filter.map = sa11x0_dma_map; slave 954 drivers/dma/sa11x0-dma.c dma_cap_set(DMA_SLAVE, d->slave.cap_mask); slave 955 drivers/dma/sa11x0-dma.c dma_cap_set(DMA_CYCLIC, d->slave.cap_mask); slave 956 drivers/dma/sa11x0-dma.c d->slave.device_prep_slave_sg = sa11x0_dma_prep_slave_sg; slave 957 drivers/dma/sa11x0-dma.c d->slave.device_prep_dma_cyclic = sa11x0_dma_prep_dma_cyclic; slave 958 drivers/dma/sa11x0-dma.c d->slave.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); slave 959 drivers/dma/sa11x0-dma.c d->slave.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; slave 960 drivers/dma/sa11x0-dma.c d->slave.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | slave 962 drivers/dma/sa11x0-dma.c d->slave.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | slave 964 drivers/dma/sa11x0-dma.c ret = sa11x0_dma_init_dmadev(&d->slave, &pdev->dev); slave 966 drivers/dma/sa11x0-dma.c dev_warn(d->slave.dev, "failed to register slave async device: %d\n", slave 975 drivers/dma/sa11x0-dma.c sa11x0_dma_free_channels(&d->slave); slave 992 drivers/dma/sa11x0-dma.c dma_async_device_unregister(&d->slave); slave 994 drivers/dma/sa11x0-dma.c sa11x0_dma_free_channels(&d->slave); slave 137 drivers/dma/sh/rcar-dmac.c struct rcar_dmac_chan_slave slave; slave 1083 drivers/dma/sh/rcar-dmac.c if (map->slave.xfer_size) { slave 1085 drivers/dma/sh/rcar-dmac.c map->slave.xfer_size, map->dir, 0); slave 1086 drivers/dma/sh/rcar-dmac.c map->slave.xfer_size = 0; slave 1132 drivers/dma/sh/rcar-dmac.c if (dev_addr == map->slave.slave_addr && slave 1133 drivers/dma/sh/rcar-dmac.c dev_size == map->slave.xfer_size && slave 1138 drivers/dma/sh/rcar-dmac.c if (map->slave.xfer_size) slave 1140 drivers/dma/sh/rcar-dmac.c map->slave.xfer_size, map->dir, 0); slave 1141 drivers/dma/sh/rcar-dmac.c map->slave.xfer_size = 0; slave 1158 drivers/dma/sh/rcar-dmac.c map->slave.slave_addr = dev_addr; slave 1159 drivers/dma/sh/rcar-dmac.c map->slave.xfer_size = dev_size; slave 209 drivers/dma/sh/shdma-base.c struct shdma_slave *slave = chan->private; slave 216 drivers/dma/sh/shdma-base.c if (slave) { slave 218 drivers/dma/sh/shdma-base.c schan->real_slave_id = slave->slave_id; slave 248 drivers/dma/sh/shdma-base.c if (slave) slave 250 drivers/dma/sh/shdma-base.c clear_bit(slave->slave_id, shdma_slave_used); slave 337 drivers/dma/sh/shdmac.c for (i = 0, cfg = pdata->slave; i < pdata->slave_num; i++, cfg++) slave 341 drivers/dma/sh/shdmac.c for (i = 0, cfg = pdata->slave; i < pdata->slave_num; i++, cfg++) slave 738 drivers/dma/sh/shdmac.c if (pdata->slave && pdata->slave_num) slave 163 drivers/dma/sun4i-dma.c struct dma_device slave; slave 174 drivers/dma/sun4i-dma.c return container_of(dev, struct sun4i_dma_dev, slave); slave 925 drivers/dma/sun4i-dma.c chan = dma_get_any_slave_channel(&priv->slave); slave 1147 drivers/dma/sun4i-dma.c dma_cap_zero(priv->slave.cap_mask); slave 1148 drivers/dma/sun4i-dma.c dma_cap_set(DMA_PRIVATE, priv->slave.cap_mask); slave 1149 drivers/dma/sun4i-dma.c dma_cap_set(DMA_MEMCPY, priv->slave.cap_mask); slave 1150 drivers/dma/sun4i-dma.c dma_cap_set(DMA_CYCLIC, priv->slave.cap_mask); slave 1151 drivers/dma/sun4i-dma.c dma_cap_set(DMA_SLAVE, priv->slave.cap_mask); slave 1153 drivers/dma/sun4i-dma.c INIT_LIST_HEAD(&priv->slave.channels); slave 1154 drivers/dma/sun4i-dma.c priv->slave.device_free_chan_resources = sun4i_dma_free_chan_resources; slave 1155 drivers/dma/sun4i-dma.c priv->slave.device_tx_status = sun4i_dma_tx_status; slave 1156 drivers/dma/sun4i-dma.c priv->slave.device_issue_pending = sun4i_dma_issue_pending; slave 1157 drivers/dma/sun4i-dma.c priv->slave.device_prep_slave_sg = sun4i_dma_prep_slave_sg; slave 1158 drivers/dma/sun4i-dma.c priv->slave.device_prep_dma_memcpy = sun4i_dma_prep_dma_memcpy; slave 1159 drivers/dma/sun4i-dma.c priv->slave.device_prep_dma_cyclic = sun4i_dma_prep_dma_cyclic; slave 1160 drivers/dma/sun4i-dma.c priv->slave.device_config = sun4i_dma_config; slave 1161 drivers/dma/sun4i-dma.c priv->slave.device_terminate_all = sun4i_dma_terminate_all; slave 1162 drivers/dma/sun4i-dma.c priv->slave.copy_align = 2; slave 1163 drivers/dma/sun4i-dma.c priv->slave.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | slave 1166 drivers/dma/sun4i-dma.c priv->slave.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | slave 1169 drivers/dma/sun4i-dma.c priv->slave.directions = BIT(DMA_DEV_TO_MEM) | slave 1171 drivers/dma/sun4i-dma.c priv->slave.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; slave 1173 drivers/dma/sun4i-dma.c priv->slave.dev = &pdev->dev; slave 1202 drivers/dma/sun4i-dma.c vchan_init(&vchan->vc, &priv->slave); slave 1225 drivers/dma/sun4i-dma.c ret = dma_async_device_register(&priv->slave); slave 1243 drivers/dma/sun4i-dma.c dma_async_device_unregister(&priv->slave); slave 1257 drivers/dma/sun4i-dma.c dma_async_device_unregister(&priv->slave); slave 186 drivers/dma/sun6i-dma.c struct dma_device slave; slave 212 drivers/dma/sun6i-dma.c return container_of(d, struct sun6i_dma_dev, slave); slave 228 drivers/dma/sun6i-dma.c dev_dbg(sdev->slave.dev, "Common register:\n" slave 246 drivers/dma/sun6i-dma.c dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n" slave 478 drivers/dma/sun6i-dma.c list_for_each_entry(vchan, &sdev->slave.channels, vc.chan.device_node) { slave 488 drivers/dma/sun6i-dma.c dev_dbg(sdev->slave.dev, "pchan %u: free\n", slave 516 drivers/dma/sun6i-dma.c dev_dbg(sdev->slave.dev, "pchan %u: alloc vchan %p\n", slave 548 drivers/dma/sun6i-dma.c dev_dbg(sdev->slave.dev, "DMA irq status %s: 0x%x\n", slave 607 drivers/dma/sun6i-dma.c if (!(BIT(src_addr_width) & sdev->slave.src_addr_widths)) slave 609 drivers/dma/sun6i-dma.c if (!(BIT(dst_addr_width) & sdev->slave.dst_addr_widths)) slave 653 drivers/dma/sun6i-dma.c dev_err(sdev->slave.dev, "Failed to alloc lli memory\n"); slave 792 drivers/dma/sun6i-dma.c dev_err(sdev->slave.dev, "Failed to alloc lli memory\n"); slave 1016 drivers/dma/sun6i-dma.c chan = dma_get_any_slave_channel(&sdev->slave); slave 1036 drivers/dma/sun6i-dma.c devm_free_irq(sdev->slave.dev, sdev->irq, sdev); slave 1288 drivers/dma/sun6i-dma.c dma_cap_set(DMA_PRIVATE, sdc->slave.cap_mask); slave 1289 drivers/dma/sun6i-dma.c dma_cap_set(DMA_MEMCPY, sdc->slave.cap_mask); slave 1290 drivers/dma/sun6i-dma.c dma_cap_set(DMA_SLAVE, sdc->slave.cap_mask); slave 1291 drivers/dma/sun6i-dma.c dma_cap_set(DMA_CYCLIC, sdc->slave.cap_mask); slave 1293 drivers/dma/sun6i-dma.c INIT_LIST_HEAD(&sdc->slave.channels); slave 1294 drivers/dma/sun6i-dma.c sdc->slave.device_free_chan_resources = sun6i_dma_free_chan_resources; slave 1295 drivers/dma/sun6i-dma.c sdc->slave.device_tx_status = sun6i_dma_tx_status; slave 1296 drivers/dma/sun6i-dma.c sdc->slave.device_issue_pending = sun6i_dma_issue_pending; slave 1297 drivers/dma/sun6i-dma.c sdc->slave.device_prep_slave_sg = sun6i_dma_prep_slave_sg; slave 1298 drivers/dma/sun6i-dma.c sdc->slave.device_prep_dma_memcpy = sun6i_dma_prep_dma_memcpy; slave 1299 drivers/dma/sun6i-dma.c sdc->slave.device_prep_dma_cyclic = sun6i_dma_prep_dma_cyclic; slave 1300 drivers/dma/sun6i-dma.c sdc->slave.copy_align = DMAENGINE_ALIGN_4_BYTES; slave 1301 drivers/dma/sun6i-dma.c sdc->slave.device_config = sun6i_dma_config; slave 1302 drivers/dma/sun6i-dma.c sdc->slave.device_pause = sun6i_dma_pause; slave 1303 drivers/dma/sun6i-dma.c sdc->slave.device_resume = sun6i_dma_resume; slave 1304 drivers/dma/sun6i-dma.c sdc->slave.device_terminate_all = sun6i_dma_terminate_all; slave 1305 drivers/dma/sun6i-dma.c sdc->slave.src_addr_widths = sdc->cfg->src_addr_widths; slave 1306 drivers/dma/sun6i-dma.c sdc->slave.dst_addr_widths = sdc->cfg->dst_addr_widths; slave 1307 drivers/dma/sun6i-dma.c sdc->slave.directions = BIT(DMA_DEV_TO_MEM) | slave 1309 drivers/dma/sun6i-dma.c sdc->slave.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; slave 1310 drivers/dma/sun6i-dma.c sdc->slave.dev = &pdev->dev; slave 1360 drivers/dma/sun6i-dma.c vchan_init(&vchan->vc, &sdc->slave); slave 1390 drivers/dma/sun6i-dma.c ret = dma_async_device_register(&sdc->slave); slave 1409 drivers/dma/sun6i-dma.c dma_async_device_unregister(&sdc->slave); slave 1428 drivers/dma/sun6i-dma.c dma_async_device_unregister(&sdc->slave); slave 118 drivers/dma/zx_dma.c struct dma_device slave; slave 131 drivers/dma/zx_dma.c #define to_zx_dma(dmadev) container_of(dmadev, struct zx_dma_dev, slave) slave 225 drivers/dma/zx_dma.c list_for_each_entry_safe(c, cn, &d->slave.channels, slave 231 drivers/dma/zx_dma.c dev_dbg(d->slave.dev, "pchan %u: free\n", p->idx); slave 253 drivers/dma/zx_dma.c dev_dbg(d->slave.dev, "pchan %u: busy!\n", c->id); slave 304 drivers/dma/zx_dma.c dev_warn(d->slave.dev, "DMA ERR src 0x%x, dst 0x%x, cfg 0x%x\n", slave 394 drivers/dma/zx_dma.c dev_dbg(d->slave.dev, "vchan %p: issued\n", &c->vc); slave 398 drivers/dma/zx_dma.c dev_dbg(d->slave.dev, "vchan %p: nothing to issue\n", &c->vc); slave 667 drivers/dma/zx_dma.c dev_dbg(d->slave.dev, "vchan %p: terminate all\n", &c->vc); slave 742 drivers/dma/zx_dma.c chan = dma_get_any_slave_channel(&d->slave); slave 744 drivers/dma/zx_dma.c dev_err(d->slave.dev, "get channel fail in %s.\n", __func__); slave 749 drivers/dma/zx_dma.c dev_info(d->slave.dev, "zx_dma: pchan %u: alloc vchan %p\n", slave 810 drivers/dma/zx_dma.c INIT_LIST_HEAD(&d->slave.channels); slave 811 drivers/dma/zx_dma.c dma_cap_set(DMA_SLAVE, d->slave.cap_mask); slave 812 drivers/dma/zx_dma.c dma_cap_set(DMA_MEMCPY, d->slave.cap_mask); slave 813 drivers/dma/zx_dma.c dma_cap_set(DMA_CYCLIC, d->slave.cap_mask); slave 814 drivers/dma/zx_dma.c dma_cap_set(DMA_PRIVATE, d->slave.cap_mask); slave 815 drivers/dma/zx_dma.c d->slave.dev = &op->dev; slave 816 drivers/dma/zx_dma.c d->slave.device_free_chan_resources = zx_dma_free_chan_resources; slave 817 drivers/dma/zx_dma.c d->slave.device_tx_status = zx_dma_tx_status; slave 818 drivers/dma/zx_dma.c d->slave.device_prep_dma_memcpy = zx_dma_prep_memcpy; slave 819 drivers/dma/zx_dma.c d->slave.device_prep_slave_sg = zx_dma_prep_slave_sg; slave 820 drivers/dma/zx_dma.c d->slave.device_prep_dma_cyclic = zx_dma_prep_dma_cyclic; slave 821 drivers/dma/zx_dma.c d->slave.device_issue_pending = zx_dma_issue_pending; slave 822 drivers/dma/zx_dma.c d->slave.device_config = zx_dma_config; slave 823 drivers/dma/zx_dma.c d->slave.device_terminate_all = zx_dma_terminate_all; slave 824 drivers/dma/zx_dma.c d->slave.device_pause = zx_dma_transfer_pause; slave 825 drivers/dma/zx_dma.c d->slave.device_resume = zx_dma_transfer_resume; slave 826 drivers/dma/zx_dma.c d->slave.copy_align = DMA_ALIGN; slave 827 drivers/dma/zx_dma.c d->slave.src_addr_widths = ZX_DMA_BUSWIDTHS; slave 828 drivers/dma/zx_dma.c d->slave.dst_addr_widths = ZX_DMA_BUSWIDTHS; slave 829 drivers/dma/zx_dma.c d->slave.directions = BIT(DMA_MEM_TO_MEM) | BIT(DMA_MEM_TO_DEV) slave 831 drivers/dma/zx_dma.c d->slave.residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; slave 845 drivers/dma/zx_dma.c vchan_init(&c->vc, &d->slave); slave 861 drivers/dma/zx_dma.c ret = dma_async_device_register(&d->slave); slave 874 drivers/dma/zx_dma.c dma_async_device_unregister(&d->slave); slave 889 drivers/dma/zx_dma.c dma_async_device_unregister(&d->slave); slave 892 drivers/dma/zx_dma.c list_for_each_entry_safe(c, cn, &d->slave.channels, slave 910 drivers/dma/zx_dma.c dev_warn(d->slave.dev, slave 925 drivers/dma/zx_dma.c dev_err(d->slave.dev, "clk_prepare_enable failed: %d\n", ret); slave 134 drivers/fsi/fsi-core.c return fsi_slave_read(dev->slave, dev->addr + addr, val, size); slave 144 drivers/fsi/fsi-core.c return fsi_slave_write(dev->slave, dev->addr + addr, val, size); slave 152 drivers/fsi/fsi-core.c return fsi_slave_read(dev->slave, addr, val, sizeof(uint32_t)); slave 163 drivers/fsi/fsi-core.c static struct fsi_device *fsi_create_device(struct fsi_slave *slave) slave 171 drivers/fsi/fsi-core.c dev->dev.parent = &slave->dev; slave 179 drivers/fsi/fsi-core.c static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, slave 185 drivers/fsi/fsi-core.c if (addr > slave->size) slave 192 drivers/fsi/fsi-core.c if (slave->id != 0) slave 203 drivers/fsi/fsi-core.c static int fsi_slave_report_and_clear_errors(struct fsi_slave *slave) slave 205 drivers/fsi/fsi-core.c struct fsi_master *master = slave->master; slave 210 drivers/fsi/fsi-core.c link = slave->link; slave 211 drivers/fsi/fsi-core.c id = slave->id; slave 223 drivers/fsi/fsi-core.c dev_dbg(&slave->dev, "status: 0x%08x, sisc: 0x%08x\n", slave 263 drivers/fsi/fsi-core.c static int fsi_slave_set_smode(struct fsi_slave *slave) slave 271 drivers/fsi/fsi-core.c smode = fsi_slave_smode(slave->id, slave->t_send_delay, slave->t_echo_delay); slave 274 drivers/fsi/fsi-core.c return fsi_master_write(slave->master, slave->link, slave->id, slave 279 drivers/fsi/fsi-core.c static int fsi_slave_handle_error(struct fsi_slave *slave, bool write, slave 282 drivers/fsi/fsi-core.c struct fsi_master *master = slave->master; slave 290 drivers/fsi/fsi-core.c link = slave->link; slave 291 drivers/fsi/fsi-core.c id = slave->id; slave 293 drivers/fsi/fsi-core.c dev_dbg(&slave->dev, "handling error on %s to 0x%08x[%zd]", slave 299 drivers/fsi/fsi-core.c rc = fsi_slave_report_and_clear_errors(slave); slave 310 drivers/fsi/fsi-core.c rc = fsi_slave_report_and_clear_errors(slave); slave 316 drivers/fsi/fsi-core.c send_delay = slave->t_send_delay; slave 317 drivers/fsi/fsi-core.c echo_delay = slave->t_echo_delay; slave 324 drivers/fsi/fsi-core.c slave->t_send_delay = send_delay; slave 325 drivers/fsi/fsi-core.c slave->t_echo_delay = echo_delay; slave 327 drivers/fsi/fsi-core.c rc = fsi_slave_set_smode(slave); slave 333 drivers/fsi/fsi-core.c slave->t_send_delay, slave 334 drivers/fsi/fsi-core.c slave->t_echo_delay); slave 336 drivers/fsi/fsi-core.c return fsi_slave_report_and_clear_errors(slave); slave 339 drivers/fsi/fsi-core.c int fsi_slave_read(struct fsi_slave *slave, uint32_t addr, slave 342 drivers/fsi/fsi-core.c uint8_t id = slave->id; slave 345 drivers/fsi/fsi-core.c rc = fsi_slave_calc_addr(slave, &addr, &id); slave 350 drivers/fsi/fsi-core.c rc = fsi_master_read(slave->master, slave->link, slave 355 drivers/fsi/fsi-core.c err_rc = fsi_slave_handle_error(slave, false, addr, size); slave 364 drivers/fsi/fsi-core.c int fsi_slave_write(struct fsi_slave *slave, uint32_t addr, slave 367 drivers/fsi/fsi-core.c uint8_t id = slave->id; slave 370 drivers/fsi/fsi-core.c rc = fsi_slave_calc_addr(slave, &addr, &id); slave 375 drivers/fsi/fsi-core.c rc = fsi_master_write(slave->master, slave->link, slave 380 drivers/fsi/fsi-core.c err_rc = fsi_slave_handle_error(slave, true, addr, size); slave 389 drivers/fsi/fsi-core.c extern int fsi_slave_claim_range(struct fsi_slave *slave, slave 395 drivers/fsi/fsi-core.c if (addr + size > slave->size) slave 403 drivers/fsi/fsi-core.c extern void fsi_slave_release_range(struct fsi_slave *slave, slave 447 drivers/fsi/fsi-core.c parent = dev_of_node(&dev->slave->dev); slave 460 drivers/fsi/fsi-core.c static int fsi_slave_scan(struct fsi_slave *slave) slave 479 drivers/fsi/fsi-core.c rc = fsi_slave_read(slave, (i + 1) * sizeof(data), slave 482 drivers/fsi/fsi-core.c dev_warn(&slave->dev, slave 490 drivers/fsi/fsi-core.c dev_warn(&slave->dev, slave 510 drivers/fsi/fsi-core.c dev = fsi_create_device(slave); slave 514 drivers/fsi/fsi-core.c dev->slave = slave; slave 521 drivers/fsi/fsi-core.c dev_dbg(&slave->dev, slave 527 drivers/fsi/fsi-core.c slave->master->idx, slave->link, slave 528 drivers/fsi/fsi-core.c slave->id, i - 2); slave 533 drivers/fsi/fsi-core.c dev_warn(&slave->dev, "add failed: %d\n", rc); slave 576 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(kobj_to_dev(kobj)); slave 589 drivers/fsi/fsi-core.c rc = fsi_slave_read(slave, off, buf + total_len, read_len); slave 603 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(kobj_to_dev(kobj)); slave 616 drivers/fsi/fsi-core.c rc = fsi_slave_write(slave, off, buf + total_len, write_len); slave 638 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 640 drivers/fsi/fsi-core.c fsi_free_minor(slave->dev.devt); slave 642 drivers/fsi/fsi-core.c kfree(slave); slave 691 drivers/fsi/fsi-core.c struct fsi_slave *slave = filep->private_data; slave 708 drivers/fsi/fsi-core.c rc = fsi_slave_read(slave, off, &data, read_len); slave 727 drivers/fsi/fsi-core.c struct fsi_slave *slave = filep->private_data; slave 750 drivers/fsi/fsi-core.c rc = fsi_slave_write(slave, off, &data, write_len); slave 778 drivers/fsi/fsi-core.c struct fsi_slave *slave = container_of(inode->i_cdev, struct fsi_slave, cdev); slave 780 drivers/fsi/fsi-core.c file->private_data = slave; slave 797 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 798 drivers/fsi/fsi-core.c struct fsi_master *master = slave->master; slave 803 drivers/fsi/fsi-core.c master->term(master, slave->link, slave->id); slave 813 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 815 drivers/fsi/fsi-core.c return sprintf(buf, "%u\n", slave->t_send_delay); slave 821 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 822 drivers/fsi/fsi-core.c struct fsi_master *master = slave->master; slave 836 drivers/fsi/fsi-core.c slave->t_send_delay = val; slave 837 drivers/fsi/fsi-core.c slave->t_echo_delay = val; slave 839 drivers/fsi/fsi-core.c rc = fsi_slave_set_smode(slave); slave 843 drivers/fsi/fsi-core.c master->link_config(master, slave->link, slave 844 drivers/fsi/fsi-core.c slave->t_send_delay, slave 845 drivers/fsi/fsi-core.c slave->t_echo_delay); slave 857 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 859 drivers/fsi/fsi-core.c return sprintf(buf, "%d\n", slave->chip_id); slave 868 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 870 drivers/fsi/fsi-core.c return sprintf(buf, "0x%x\n", slave->cfam_id); slave 895 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 898 drivers/fsi/fsi-core.c return kasprintf(GFP_KERNEL, "fsi/cfam%d", slave->cdev_idx); slave 900 drivers/fsi/fsi-core.c return kasprintf(GFP_KERNEL, "cfam%d", slave->cdev_idx); slave 936 drivers/fsi/fsi-core.c static int __fsi_get_new_minor(struct fsi_slave *slave, enum fsi_dev_type type, slave 939 drivers/fsi/fsi-core.c int cid = slave->chip_id; slave 969 drivers/fsi/fsi-core.c return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); slave 982 drivers/fsi/fsi-core.c struct fsi_slave *slave; slave 1028 drivers/fsi/fsi-core.c slave = kzalloc(sizeof(*slave), GFP_KERNEL); slave 1029 drivers/fsi/fsi-core.c if (!slave) slave 1032 drivers/fsi/fsi-core.c dev_set_name(&slave->dev, "slave@%02x:%02x", link, id); slave 1033 drivers/fsi/fsi-core.c slave->dev.type = &cfam_type; slave 1034 drivers/fsi/fsi-core.c slave->dev.parent = &master->dev; slave 1035 drivers/fsi/fsi-core.c slave->dev.of_node = fsi_slave_find_of_node(master, link, id); slave 1036 drivers/fsi/fsi-core.c slave->dev.release = fsi_slave_release; slave 1037 drivers/fsi/fsi-core.c device_initialize(&slave->dev); slave 1038 drivers/fsi/fsi-core.c slave->cfam_id = cfam_id; slave 1039 drivers/fsi/fsi-core.c slave->master = master; slave 1040 drivers/fsi/fsi-core.c slave->link = link; slave 1041 drivers/fsi/fsi-core.c slave->id = id; slave 1042 drivers/fsi/fsi-core.c slave->size = FSI_SLAVE_SIZE_23b; slave 1043 drivers/fsi/fsi-core.c slave->t_send_delay = 16; slave 1044 drivers/fsi/fsi-core.c slave->t_echo_delay = 16; slave 1047 drivers/fsi/fsi-core.c slave->chip_id = -1; slave 1048 drivers/fsi/fsi-core.c if (slave->dev.of_node) { slave 1050 drivers/fsi/fsi-core.c if (!of_property_read_u32(slave->dev.of_node, "chip-id", &prop)) slave 1051 drivers/fsi/fsi-core.c slave->chip_id = prop; slave 1055 drivers/fsi/fsi-core.c rc = fsi_slave_set_smode(slave); slave 1064 drivers/fsi/fsi-core.c rc = __fsi_get_new_minor(slave, fsi_dev_cfam, &slave->dev.devt, slave 1065 drivers/fsi/fsi-core.c &slave->cdev_idx); slave 1070 drivers/fsi/fsi-core.c cdev_init(&slave->cdev, &cfam_fops); slave 1071 drivers/fsi/fsi-core.c rc = cdev_device_add(&slave->cdev, &slave->dev); slave 1073 drivers/fsi/fsi-core.c dev_err(&slave->dev, "Error %d creating slave device\n", rc); slave 1084 drivers/fsi/fsi-core.c slave->t_send_delay, slave 1085 drivers/fsi/fsi-core.c slave->t_echo_delay); slave 1088 drivers/fsi/fsi-core.c rc = device_create_bin_file(&slave->dev, &fsi_slave_raw_attr); slave 1090 drivers/fsi/fsi-core.c dev_warn(&slave->dev, "failed to create raw attr: %d\n", rc); slave 1093 drivers/fsi/fsi-core.c rc = fsi_slave_scan(slave); slave 1101 drivers/fsi/fsi-core.c fsi_free_minor(slave->dev.devt); slave 1103 drivers/fsi/fsi-core.c of_node_put(slave->dev.of_node); slave 1104 drivers/fsi/fsi-core.c kfree(slave); slave 1214 drivers/fsi/fsi-core.c struct fsi_slave *slave = to_fsi_slave(dev); slave 1217 drivers/fsi/fsi-core.c cdev_device_del(&slave->cdev, &slave->dev); slave 414 drivers/fsi/fsi-master-ast-cf.c static int send_term(struct fsi_master_acf *master, uint8_t slave) slave 420 drivers/fsi/fsi-master-ast-cf.c build_term_command(&cmd, slave); slave 468 drivers/fsi/fsi-master-ast-cf.c uint8_t slave, uint8_t size, void *data) slave 498 drivers/fsi/fsi-master-ast-cf.c build_epoll_command(&cmd, slave); slave 536 drivers/fsi/fsi-master-ast-cf.c build_dpoll_command(&cmd, slave); slave 546 drivers/fsi/fsi-master-ast-cf.c send_term(master, slave); slave 571 drivers/fsi/fsi-master-ast-cf.c static int fsi_master_acf_xfer(struct fsi_master_acf *master, uint8_t slave, slave 584 drivers/fsi/fsi-master-ast-cf.c rc = handle_response(master, slave, resp_len, resp); slave 397 drivers/fsi/fsi-master-gpio.c static int issue_term(struct fsi_master_gpio *master, uint8_t slave) slave 404 drivers/fsi/fsi-master-gpio.c build_term_command(&cmd, slave); slave 425 drivers/fsi/fsi-master-gpio.c uint8_t slave, uint8_t size, void *data) slave 450 drivers/fsi/fsi-master-gpio.c build_epoll_command(&cmd, slave); slave 481 drivers/fsi/fsi-master-gpio.c build_dpoll_command(&cmd, slave); slave 494 drivers/fsi/fsi-master-gpio.c issue_term(master, slave); slave 539 drivers/fsi/fsi-master-gpio.c static int fsi_master_gpio_xfer(struct fsi_master_gpio *master, uint8_t slave, slave 548 drivers/fsi/fsi-master-gpio.c rc = poll_for_response(master, slave, resp_len, resp); slave 100 drivers/fsi/fsi-master-hub.c return fsi_slave_read(hub->upstream->slave, addr, val, size); slave 112 drivers/fsi/fsi-master-hub.c return fsi_slave_write(hub->upstream->slave, addr, val, size); slave 252 drivers/fsi/fsi-master-hub.c rc = fsi_slave_claim_range(fsi_dev->slave, FSI_HUB_LINK_OFFSET, slave 298 drivers/fsi/fsi-master-hub.c fsi_slave_release_range(fsi_dev->slave, FSI_HUB_LINK_OFFSET, slave 308 drivers/fsi/fsi-master-hub.c fsi_slave_release_range(hub->upstream->slave, hub->addr, hub->size); slave 278 drivers/fsi/fsi-sbefifo.c rc = fsi_slave_read(sbefifo->fsi_dev->slave, CFAM_GP_MBOX_SBM_ADDR, slave 1255 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); slave 1268 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (slave && ttm->sg) { slave 1297 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); slave 1306 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (slave) slave 66 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c err = komeda_release_unclaimed_resources(kcrtc->slave, kcrtc_st); slave 224 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c struct komeda_pipeline *slave = kcrtc->slave; slave 236 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c if (slave && has_bit(slave->id, kcrtc_st->affected_pipes)) slave 237 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c komeda_pipeline_update(slave, old->state); slave 265 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c struct komeda_pipeline *slave = kcrtc->slave; slave 274 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c if (slave && has_bit(slave->id, old_st->active_pipes)) slave 275 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c komeda_pipeline_disable(slave, old->state); slave 519 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c crtc->slave = komeda_pipeline_get_slave(master); slave 521 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c if (crtc->slave) slave 522 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c sprintf(str, "pipe-%d", crtc->slave->id); slave 77 drivers/gpu/drm/arm/display/komeda/komeda_kms.h struct komeda_pipeline *slave; slave 329 drivers/gpu/drm/arm/display/komeda/komeda_pipeline.c struct komeda_component *slave; slave 331 drivers/gpu/drm/arm/display/komeda/komeda_pipeline.c slave = komeda_component_pickup_input(&master->compiz->base, slave 334 drivers/gpu/drm/arm/display/komeda/komeda_pipeline.c return slave ? slave->pipeline : NULL; slave 1139 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c struct komeda_pipeline *slave = kcrtc->slave; slave 1147 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c if (slave && has_bit(slave->id, kcrtc_st->active_pipes)) { slave 1148 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c err = komeda_compiz_validate(slave->compiz, kcrtc_st, &s_dflow); slave 216 drivers/gpu/drm/arm/display/komeda/komeda_plane.c if ((pipe == crtc->master) || (pipe == crtc->slave)) slave 234 drivers/gpu/drm/arm/display/komeda/komeda_plane.c if (pipe == kcrtc->slave) slave 247 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c struct dw_mipi_dsi *slave; /* dual-dsi slave ptr */ slave 257 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c return dsi->slave || dsi->master; slave 483 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (dsi->slave) slave 484 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dw_mipi_message_config(dsi->slave, msg); slave 489 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (dsi->slave) { slave 490 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = dw_mipi_dsi_write(dsi->slave, &packet); slave 819 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (dsi->slave) { slave 820 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dw_mipi_dsi_disable(dsi->slave); slave 821 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c clk_disable_unprepare(dsi->slave->pclk); slave 822 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c pm_runtime_put(dsi->slave->dev); slave 837 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (dsi->slave) slave 838 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c return dsi->lanes + dsi->slave->lanes; slave 894 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (dsi->slave) slave 895 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dw_mipi_dsi_mode_set(dsi->slave, adjusted_mode); slave 905 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (dsi->slave) slave 906 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dw_mipi_dsi_set_mode(dsi->slave, MIPI_DSI_MODE_VIDEO); slave 1076 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave) slave 1079 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dsi->slave = slave; slave 1080 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dsi->slave->master = dsi; slave 1083 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dsi->slave->lanes = dsi->lanes; slave 1084 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dsi->slave->channel = dsi->channel; slave 1085 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dsi->slave->format = dsi->format; slave 1086 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dsi->slave->mode_flags = dsi->mode_flags; slave 323 drivers/gpu/drm/i915/display/intel_atomic_plane.c } else if (new_plane_state->slave) { slave 11678 drivers/gpu/drm/i915/display/intel_display.c WARN_ON(linked_plane_state->slave == plane_state->slave); slave 11705 drivers/gpu/drm/i915/display/intel_display.c if (plane_state->slave && !plane_state->base.visible) { slave 11710 drivers/gpu/drm/i915/display/intel_display.c plane_state->slave = false; slave 11746 drivers/gpu/drm/i915/display/intel_display.c linked_state->slave = true; slave 13163 drivers/gpu/drm/i915/display/intel_display.c assert_plane(plane, plane_state->slave || slave 572 drivers/gpu/drm/i915/display/intel_display_types.h u32 slave; slave 542 drivers/gpu/drm/i915/display/intel_sprite.c int color_plane, bool slave, u32 plane_ctl) slave 643 drivers/gpu/drm/i915/display/intel_sprite.c if (!slave && plane_state->scaler_id >= 0) slave 4315 drivers/gpu/drm/i915/intel_pm.c if (plane_state->slave) slave 5059 drivers/gpu/drm/i915/intel_pm.c if (plane_state->slave) slave 121 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c struct dsi_pll_10nm *slave; slave 411 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c if (pll_10nm->slave) slave 412 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c dsi_pll_enable_pll_bias(pll_10nm->slave); slave 440 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c if (pll_10nm->slave) slave 441 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c dsi_pll_enable_global_clk(pll_10nm->slave); slave 445 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c if (pll_10nm->slave) slave 446 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c pll_write(pll_10nm->slave->phy_cmn_mmio + slave 472 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c if (pll_10nm->slave) { slave 473 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c dsi_pll_disable_global_clk(pll_10nm->slave); slave 474 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c dsi_pll_disable_sub(pll_10nm->slave); slave 594 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c pll_10nm->slave = pll_10nm_list[(pll_10nm->id + 1) % DSI_MAX]; slave 147 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_14nm *slave; slave 614 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_14nm *pll_14nm_slave = pll_14nm->slave; slave 741 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_14nm *pll_14nm_slave = pll_14nm->slave; slave 838 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_14nm *pll_14nm_slave = pll_14nm->slave; slave 860 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c pll_14nm->slave = pll_14nm_list[(pll_14nm->id + 1) % DSI_MAX]; slave 156 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_encoder *slave; slave 171 drivers/gpu/drm/nouveau/dispnv04/dfp.c list_for_each_entry(slave, &dev->mode_config.encoder_list, head) { slave 172 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct dcb_output *slave_dcb = nouveau_encoder(slave)->dcb; slave 174 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (slave_dcb->type == DCB_OUTPUT_TMDS && get_slave_funcs(slave) && slave 176 drivers/gpu/drm/nouveau/dispnv04/dfp.c return slave; slave 1591 drivers/gpu/drm/nouveau/nouveau_bo.c bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); slave 1596 drivers/gpu/drm/nouveau/nouveau_bo.c if (slave && ttm->sg) { slave 1652 drivers/gpu/drm/nouveau/nouveau_bo.c bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); slave 1654 drivers/gpu/drm/nouveau/nouveau_bo.c if (slave) slave 80 drivers/gpu/drm/nouveau/nouveau_encoder.h struct drm_encoder_slave *slave = to_encoder_slave(enc); slave 82 drivers/gpu/drm/nouveau/nouveau_encoder.h return container_of(slave, struct nouveau_encoder, base); slave 671 drivers/gpu/drm/radeon/radeon_ttm.c bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); slave 683 drivers/gpu/drm/radeon/radeon_ttm.c if (slave && ttm->sg) { slave 710 drivers/gpu/drm/radeon/radeon_ttm.c bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); slave 718 drivers/gpu/drm/radeon/radeon_ttm.c if (slave) slave 224 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c struct dw_mipi_dsi_rockchip *slave; slave 611 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c if (dsi->slave) slave 628 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c if (dsi->slave) slave 629 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c pm_runtime_get_sync(dsi->slave->dev); slave 643 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c if (dsi->slave) slave 644 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dw_mipi_dsi_rockchip_config(dsi->slave, mux); slave 653 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c if (dsi->slave) slave 654 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c pm_runtime_put(dsi->slave->dev); slave 786 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->slave = dev_get_drvdata(second); slave 787 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c if (!dsi->slave) { slave 792 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->slave->is_slave = true; slave 793 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dw_mipi_dsi_set_slave(dsi->dmd, dsi->slave->dmd); slave 82 drivers/gpu/drm/tegra/dsi.c struct tegra_dsi *slave; slave 393 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 394 drivers/gpu/drm/tegra/dsi.c tegra_dsi_set_phy_timing(dsi->slave, period, timing); slave 471 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 472 drivers/gpu/drm/tegra/dsi.c tegra_dsi_enable(dsi->slave); slave 480 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 481 drivers/gpu/drm/tegra/dsi.c return dsi->lanes + dsi->slave->lanes; slave 578 drivers/gpu/drm/tegra/dsi.c if (dsi->master || dsi->slave) { slave 598 drivers/gpu/drm/tegra/dsi.c if (dsi->master || dsi->slave) { slave 619 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) { slave 620 drivers/gpu/drm/tegra/dsi.c tegra_dsi_configure(dsi->slave, pipe, mode); slave 627 drivers/gpu/drm/tegra/dsi.c tegra_dsi_ganged_enable(dsi->slave, mode->hdisplay / 2, slave 657 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 658 drivers/gpu/drm/tegra/dsi.c tegra_dsi_video_disable(dsi->slave); slave 726 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 727 drivers/gpu/drm/tegra/dsi.c tegra_dsi_set_timeout(dsi->slave, bclk, vrefresh); slave 734 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) { slave 735 drivers/gpu/drm/tegra/dsi.c tegra_dsi_ganged_disable(dsi->slave); slave 743 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 744 drivers/gpu/drm/tegra/dsi.c tegra_dsi_disable(dsi->slave); slave 769 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 770 drivers/gpu/drm/tegra/dsi.c tegra_dsi_soft_reset(dsi->slave); slave 835 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 836 drivers/gpu/drm/tegra/dsi.c tegra_dsi_unprepare(dsi->slave); slave 900 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) slave 901 drivers/gpu/drm/tegra/dsi.c tegra_dsi_prepare(dsi->slave); slave 1371 drivers/gpu/drm/tegra/dsi.c parent = clk_get_parent(dsi->slave->clk); slave 1391 drivers/gpu/drm/tegra/dsi.c if (dsi->slave) { slave 1455 drivers/gpu/drm/tegra/dsi.c dsi->slave = platform_get_drvdata(gangster); slave 1458 drivers/gpu/drm/tegra/dsi.c if (!dsi->slave) slave 1461 drivers/gpu/drm/tegra/dsi.c dsi->slave->master = dsi; slave 327 drivers/hsi/clients/ssi_protocol.c struct hsi_client *ssip_slave_get_master(struct hsi_client *slave) slave 333 drivers/hsi/clients/ssi_protocol.c if (slave->device.parent == ssi->cl->device.parent) { slave 167 drivers/i2c/busses/i2c-aspeed.c struct i2c_client *slave; slave 246 drivers/i2c/busses/i2c-aspeed.c struct i2c_client *slave = bus->slave; slave 249 drivers/i2c/busses/i2c-aspeed.c if (!slave) slave 298 drivers/i2c/busses/i2c-aspeed.c i2c_slave_event(slave, I2C_SLAVE_READ_REQUESTED, &value); slave 309 drivers/i2c/busses/i2c-aspeed.c i2c_slave_event(slave, I2C_SLAVE_READ_PROCESSED, &value); slave 315 drivers/i2c/busses/i2c-aspeed.c i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value); slave 318 drivers/i2c/busses/i2c-aspeed.c i2c_slave_event(slave, I2C_SLAVE_WRITE_RECEIVED, &value); slave 321 drivers/i2c/busses/i2c-aspeed.c i2c_slave_event(slave, I2C_SLAVE_STOP, &value); slave 746 drivers/i2c/busses/i2c-aspeed.c if (bus->slave) { slave 753 drivers/i2c/busses/i2c-aspeed.c bus->slave = client; slave 767 drivers/i2c/busses/i2c-aspeed.c if (!bus->slave) { slave 777 drivers/i2c/busses/i2c-aspeed.c bus->slave = NULL; slave 920 drivers/i2c/busses/i2c-aspeed.c if (bus->slave) slave 921 drivers/i2c/busses/i2c-aspeed.c __aspeed_i2c_reg_slave(bus, bus->slave->addr); slave 28 drivers/i2c/busses/i2c-at91-slave.c i2c_slave_event(dev->slave, slave 34 drivers/i2c/busses/i2c-at91-slave.c i2c_slave_event(dev->slave, slave 44 drivers/i2c/busses/i2c-at91-slave.c i2c_slave_event(dev->slave, I2C_SLAVE_READ_PROCESSED, &value); slave 51 drivers/i2c/busses/i2c-at91-slave.c i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_RECEIVED, &value); slave 59 drivers/i2c/busses/i2c-at91-slave.c i2c_slave_event(dev->slave, I2C_SLAVE_STOP, &value); slave 65 drivers/i2c/busses/i2c-at91-slave.c static int at91_reg_slave(struct i2c_client *slave) slave 67 drivers/i2c/busses/i2c-at91-slave.c struct at91_twi_dev *dev = i2c_get_adapdata(slave->adapter); slave 69 drivers/i2c/busses/i2c-at91-slave.c if (dev->slave) slave 72 drivers/i2c/busses/i2c-at91-slave.c if (slave->flags & I2C_CLIENT_TEN) slave 78 drivers/i2c/busses/i2c-at91-slave.c dev->slave = slave; slave 79 drivers/i2c/busses/i2c-at91-slave.c dev->smr = AT91_TWI_SMR_SADR(slave->addr); slave 84 drivers/i2c/busses/i2c-at91-slave.c dev_info(dev->dev, "entered slave mode (ADR=%d)\n", slave->addr); slave 89 drivers/i2c/busses/i2c-at91-slave.c static int at91_unreg_slave(struct i2c_client *slave) slave 91 drivers/i2c/busses/i2c-at91-slave.c struct at91_twi_dev *dev = i2c_get_adapdata(slave->adapter); slave 93 drivers/i2c/busses/i2c-at91-slave.c WARN_ON(!dev->slave); slave 97 drivers/i2c/busses/i2c-at91-slave.c dev->slave = NULL; slave 146 drivers/i2c/busses/i2c-at91.h struct i2c_client *slave; slave 148 drivers/i2c/busses/i2c-axxia.c struct i2c_client *slave; slave 324 drivers/i2c/busses/i2c-axxia.c i2c_slave_event(idev->slave, slave 328 drivers/i2c/busses/i2c-axxia.c i2c_slave_event(idev->slave, I2C_SLAVE_WRITE_RECEIVED, &val); slave 332 drivers/i2c/busses/i2c-axxia.c i2c_slave_event(idev->slave, I2C_SLAVE_STOP, &val); slave 348 drivers/i2c/busses/i2c-axxia.c i2c_slave_event(idev->slave, I2C_SLAVE_READ_REQUESTED, &val); slave 352 drivers/i2c/busses/i2c-axxia.c i2c_slave_event(idev->slave, I2C_SLAVE_READ_PROCESSED, &val); slave 356 drivers/i2c/busses/i2c-axxia.c i2c_slave_event(idev->slave, I2C_SLAVE_STOP, &val); slave 674 drivers/i2c/busses/i2c-axxia.c static int axxia_i2c_reg_slave(struct i2c_client *slave) slave 676 drivers/i2c/busses/i2c-axxia.c struct axxia_i2c_dev *idev = i2c_get_adapdata(slave->adapter); slave 680 drivers/i2c/busses/i2c-axxia.c if (idev->slave) slave 683 drivers/i2c/busses/i2c-axxia.c idev->slave = slave; slave 691 drivers/i2c/busses/i2c-axxia.c if (slave->flags & I2C_CLIENT_TEN) slave 696 drivers/i2c/busses/i2c-axxia.c writel(slave->addr, idev->base + SLV_ADDR_1); slave 706 drivers/i2c/busses/i2c-axxia.c static int axxia_i2c_unreg_slave(struct i2c_client *slave) slave 708 drivers/i2c/busses/i2c-axxia.c struct axxia_i2c_dev *idev = i2c_get_adapdata(slave->adapter); slave 716 drivers/i2c/busses/i2c-axxia.c idev->slave = NULL; slave 199 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_client *slave; slave 218 drivers/i2c/busses/i2c-bcm-iproc.c static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave); slave 219 drivers/i2c/busses/i2c-bcm-iproc.c static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave); slave 288 drivers/i2c/busses/i2c-bcm-iproc.c val |= (iproc_i2c->slave->addr << S_CFG_NIC_SMB_ADDR3_SHIFT); slave 334 drivers/i2c/busses/i2c-bcm-iproc.c i2c_slave_event(iproc_i2c->slave, slave 339 drivers/i2c/busses/i2c-bcm-iproc.c i2c_slave_event(iproc_i2c->slave, slave 343 drivers/i2c/busses/i2c-bcm-iproc.c i2c_slave_event(iproc_i2c->slave, slave 360 drivers/i2c/busses/i2c-bcm-iproc.c i2c_slave_event(iproc_i2c->slave, slave 363 drivers/i2c/busses/i2c-bcm-iproc.c i2c_slave_event(iproc_i2c->slave, slave 368 drivers/i2c/busses/i2c-bcm-iproc.c i2c_slave_event(iproc_i2c->slave, slave 378 drivers/i2c/busses/i2c-bcm-iproc.c i2c_slave_event(iproc_i2c->slave, I2C_SLAVE_STOP, &value); slave 1017 drivers/i2c/busses/i2c-bcm-iproc.c static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave) slave 1019 drivers/i2c/busses/i2c-bcm-iproc.c struct bcm_iproc_i2c_dev *iproc_i2c = i2c_get_adapdata(slave->adapter); slave 1021 drivers/i2c/busses/i2c-bcm-iproc.c if (iproc_i2c->slave) slave 1024 drivers/i2c/busses/i2c-bcm-iproc.c if (slave->flags & I2C_CLIENT_TEN) slave 1027 drivers/i2c/busses/i2c-bcm-iproc.c iproc_i2c->slave = slave; slave 1032 drivers/i2c/busses/i2c-bcm-iproc.c static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave) slave 1035 drivers/i2c/busses/i2c-bcm-iproc.c struct bcm_iproc_i2c_dev *iproc_i2c = i2c_get_adapdata(slave->adapter); slave 1037 drivers/i2c/busses/i2c-bcm-iproc.c if (!iproc_i2c->slave) slave 1040 drivers/i2c/busses/i2c-bcm-iproc.c iproc_i2c->slave = NULL; slave 233 drivers/i2c/busses/i2c-designware-core.h struct i2c_client *slave; slave 60 drivers/i2c/busses/i2c-designware-slave.c static int i2c_dw_reg_slave(struct i2c_client *slave) slave 62 drivers/i2c/busses/i2c-designware-slave.c struct dw_i2c_dev *dev = i2c_get_adapdata(slave->adapter); slave 64 drivers/i2c/busses/i2c-designware-slave.c if (dev->slave) slave 66 drivers/i2c/busses/i2c-designware-slave.c if (slave->flags & I2C_CLIENT_TEN) slave 75 drivers/i2c/busses/i2c-designware-slave.c dw_writel(dev, slave->addr, DW_IC_SAR); slave 76 drivers/i2c/busses/i2c-designware-slave.c dev->slave = slave; slave 91 drivers/i2c/busses/i2c-designware-slave.c static int i2c_dw_unreg_slave(struct i2c_client *slave) slave 93 drivers/i2c/busses/i2c-designware-slave.c struct dw_i2c_dev *dev = i2c_get_adapdata(slave->adapter); slave 98 drivers/i2c/busses/i2c-designware-slave.c dev->slave = NULL; slave 167 drivers/i2c/busses/i2c-designware-slave.c if (!enabled || !(raw_stat & ~DW_IC_INTR_ACTIVITY) || !dev->slave) slave 175 drivers/i2c/busses/i2c-designware-slave.c i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_REQUESTED, &val); slave 182 drivers/i2c/busses/i2c-designware-slave.c if (!i2c_slave_event(dev->slave, slave 195 drivers/i2c/busses/i2c-designware-slave.c if (!i2c_slave_event(dev->slave, slave 203 drivers/i2c/busses/i2c-designware-slave.c if (!i2c_slave_event(dev->slave, I2C_SLAVE_READ_PROCESSED, slave 207 drivers/i2c/busses/i2c-designware-slave.c i2c_slave_event(dev->slave, I2C_SLAVE_STOP, &val); slave 214 drivers/i2c/busses/i2c-designware-slave.c if (!i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_RECEIVED, slave 218 drivers/i2c/busses/i2c-designware-slave.c i2c_slave_event(dev->slave, I2C_SLAVE_STOP, &val); slave 71 drivers/i2c/busses/i2c-emev2.c struct i2c_client *slave; slave 234 drivers/i2c/busses/i2c-emev2.c if (!priv->slave) slave 248 drivers/i2c/busses/i2c-emev2.c i2c_slave_event(priv->slave, I2C_SLAVE_STOP, &value); slave 270 drivers/i2c/busses/i2c-emev2.c i2c_slave_event(priv->slave, event, &value); slave 284 drivers/i2c/busses/i2c-emev2.c i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_REQUESTED, slave 289 drivers/i2c/busses/i2c-emev2.c ret = i2c_slave_event(priv->slave, slave 317 drivers/i2c/busses/i2c-emev2.c static int em_i2c_reg_slave(struct i2c_client *slave) slave 319 drivers/i2c/busses/i2c-emev2.c struct em_i2c_device *priv = i2c_get_adapdata(slave->adapter); slave 321 drivers/i2c/busses/i2c-emev2.c if (priv->slave) slave 324 drivers/i2c/busses/i2c-emev2.c if (slave->flags & I2C_CLIENT_TEN) slave 327 drivers/i2c/busses/i2c-emev2.c priv->slave = slave; slave 330 drivers/i2c/busses/i2c-emev2.c writeb(slave->addr << 1, priv->base + I2C_OFS_SVA0); slave 335 drivers/i2c/busses/i2c-emev2.c static int em_i2c_unreg_slave(struct i2c_client *slave) slave 337 drivers/i2c/busses/i2c-emev2.c struct em_i2c_device *priv = i2c_get_adapdata(slave->adapter); slave 339 drivers/i2c/busses/i2c-emev2.c WARN_ON(!priv->slave); slave 349 drivers/i2c/busses/i2c-emev2.c priv->slave = NULL; slave 183 drivers/i2c/busses/i2c-pxa.c struct i2c_slave_client *slave; slave 549 drivers/i2c/busses/i2c-pxa.c if (i2c->slave != NULL) slave 550 drivers/i2c/busses/i2c-pxa.c ret = i2c->slave->read(i2c->slave->data); slave 561 drivers/i2c/busses/i2c-pxa.c if (i2c->slave != NULL) slave 562 drivers/i2c/busses/i2c-pxa.c i2c->slave->write(i2c->slave->data, byte); slave 575 drivers/i2c/busses/i2c-pxa.c if (i2c->slave != NULL) slave 576 drivers/i2c/busses/i2c-pxa.c i2c->slave->event(i2c->slave->data, slave 609 drivers/i2c/busses/i2c-pxa.c if (i2c->slave != NULL) slave 610 drivers/i2c/busses/i2c-pxa.c i2c->slave->event(i2c->slave->data, I2C_SLAVE_EVENT_STOP); slave 1275 drivers/i2c/busses/i2c-pxa.c i2c->slave = plat->slave; slave 133 drivers/i2c/busses/i2c-rcar.c struct i2c_client *slave; slave 574 drivers/i2c/busses/i2c-rcar.c i2c_slave_event(priv->slave, I2C_SLAVE_READ_REQUESTED, &value); slave 578 drivers/i2c/busses/i2c-rcar.c i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_REQUESTED, &value); slave 588 drivers/i2c/busses/i2c-rcar.c i2c_slave_event(priv->slave, I2C_SLAVE_STOP, &value); slave 598 drivers/i2c/busses/i2c-rcar.c ret = i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_RECEIVED, &value); slave 606 drivers/i2c/busses/i2c-rcar.c i2c_slave_event(priv->slave, I2C_SLAVE_READ_PROCESSED, &value); slave 837 drivers/i2c/busses/i2c-rcar.c static int rcar_reg_slave(struct i2c_client *slave) slave 839 drivers/i2c/busses/i2c-rcar.c struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); slave 841 drivers/i2c/busses/i2c-rcar.c if (priv->slave) slave 844 drivers/i2c/busses/i2c-rcar.c if (slave->flags & I2C_CLIENT_TEN) slave 850 drivers/i2c/busses/i2c-rcar.c priv->slave = slave; slave 851 drivers/i2c/busses/i2c-rcar.c rcar_i2c_write(priv, ICSAR, slave->addr); slave 859 drivers/i2c/busses/i2c-rcar.c static int rcar_unreg_slave(struct i2c_client *slave) slave 861 drivers/i2c/busses/i2c-rcar.c struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); slave 863 drivers/i2c/busses/i2c-rcar.c WARN_ON(!priv->slave); slave 870 drivers/i2c/busses/i2c-rcar.c priv->slave = NULL; slave 299 drivers/i2c/busses/i2c-stm32f7.c struct i2c_client *slave[STM32F7_I2C_MAX_SLAVE]; slave 1143 drivers/i2c/busses/i2c-stm32f7.c static bool stm32f7_i2c_is_addr_match(struct i2c_client *slave, u32 addcode) slave 1147 drivers/i2c/busses/i2c-stm32f7.c if (!slave) slave 1150 drivers/i2c/busses/i2c-stm32f7.c if (slave->flags & I2C_CLIENT_TEN) { slave 1156 drivers/i2c/busses/i2c-stm32f7.c addr = slave->addr >> 8; slave 1161 drivers/i2c/busses/i2c-stm32f7.c addr = slave->addr & 0x7f; slave 1171 drivers/i2c/busses/i2c-stm32f7.c struct i2c_client *slave = i2c_dev->slave_running; slave 1178 drivers/i2c/busses/i2c-stm32f7.c i2c_slave_event(slave, I2C_SLAVE_READ_REQUESTED, &value); slave 1199 drivers/i2c/busses/i2c-stm32f7.c i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value); slave 1228 drivers/i2c/busses/i2c-stm32f7.c if (stm32f7_i2c_is_addr_match(i2c_dev->slave[i], addcode)) { slave 1229 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->slave_running = i2c_dev->slave[i]; slave 1244 drivers/i2c/busses/i2c-stm32f7.c struct i2c_client *slave, int *id) slave 1249 drivers/i2c/busses/i2c-stm32f7.c if (i2c_dev->slave[i] == slave) { slave 1255 drivers/i2c/busses/i2c-stm32f7.c dev_err(i2c_dev->dev, "Slave 0x%x not registered\n", slave->addr); slave 1261 drivers/i2c/busses/i2c-stm32f7.c struct i2c_client *slave, int *id) slave 1271 drivers/i2c/busses/i2c-stm32f7.c if (i == 1 && (slave->flags & I2C_CLIENT_TEN)) slave 1273 drivers/i2c/busses/i2c-stm32f7.c if (!i2c_dev->slave[i]) { slave 1279 drivers/i2c/busses/i2c-stm32f7.c dev_err(dev, "Slave 0x%x could not be registered\n", slave->addr); slave 1289 drivers/i2c/busses/i2c-stm32f7.c if (i2c_dev->slave[i]) slave 1302 drivers/i2c/busses/i2c-stm32f7.c if (i2c_dev->slave[i]) slave 1674 drivers/i2c/busses/i2c-stm32f7.c static int stm32f7_i2c_reg_slave(struct i2c_client *slave) slave 1676 drivers/i2c/busses/i2c-stm32f7.c struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); slave 1682 drivers/i2c/busses/i2c-stm32f7.c if (slave->flags & I2C_CLIENT_PEC) { slave 1692 drivers/i2c/busses/i2c-stm32f7.c ret = stm32f7_i2c_get_free_slave_id(i2c_dev, slave, &id); slave 1704 drivers/i2c/busses/i2c-stm32f7.c if (slave->flags & I2C_CLIENT_TEN) { slave 1705 drivers/i2c/busses/i2c-stm32f7.c oar1 |= STM32F7_I2C_OAR1_OA1_10(slave->addr); slave 1708 drivers/i2c/busses/i2c-stm32f7.c oar1 |= STM32F7_I2C_OAR1_OA1_7(slave->addr); slave 1711 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->slave[id] = slave; slave 1717 drivers/i2c/busses/i2c-stm32f7.c if (slave->flags & I2C_CLIENT_TEN) { slave 1722 drivers/i2c/busses/i2c-stm32f7.c oar2 |= STM32F7_I2C_OAR2_OA2_7(slave->addr); slave 1724 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->slave[id] = slave; slave 1747 drivers/i2c/busses/i2c-stm32f7.c static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) slave 1749 drivers/i2c/busses/i2c-stm32f7.c struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); slave 1754 drivers/i2c/busses/i2c-stm32f7.c ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); slave 1758 drivers/i2c/busses/i2c-stm32f7.c WARN_ON(!i2c_dev->slave[id]); slave 1772 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->slave[id] = NULL; slave 43 drivers/ide/ide-acpi.c struct ide_acpi_drive_link slave; slave 481 drivers/ide/ide-acpi.c struct ide_acpi_drive_link *slave = &hwif->acpidata->slave; slave 496 drivers/ide/ide-acpi.c in_params[2].buffer.pointer = (u8 *)&slave->idbuff; slave 580 drivers/ide/ide-acpi.c hwif->devices[1]->acpidata = &hwif->acpidata->slave; slave 126 drivers/infiniband/hw/mlx4/alias_GUID.c void mlx4_ib_slave_alias_guid_event(struct mlx4_ib_dev *dev, int slave, slave 130 drivers/infiniband/hw/mlx4/alias_GUID.c int record_num = slave / 8; slave 131 drivers/infiniband/hw/mlx4/alias_GUID.c int index = slave % 8; slave 150 drivers/infiniband/hw/mlx4/alias_GUID.c required_guid = mlx4_get_admin_guid(dev->dev, slave, port); slave 330 drivers/infiniband/hw/mlx4/cm.c int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, slave 340 drivers/infiniband/hw/mlx4/cm.c if (!slave) slave 344 drivers/infiniband/hw/mlx4/cm.c *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); slave 345 drivers/infiniband/hw/mlx4/cm.c if (*slave < 0) { slave 361 drivers/infiniband/hw/mlx4/cm.c if (slave) slave 362 drivers/infiniband/hw/mlx4/cm.c *slave = id->slave_id; slave 382 drivers/infiniband/hw/mlx4/cm.c void mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave) slave 394 drivers/infiniband/hw/mlx4/cm.c if (slave < 0 || slave == map->slave_id) { slave 407 drivers/infiniband/hw/mlx4/cm.c if (slave < 0) { slave 424 drivers/infiniband/hw/mlx4/cm.c if (ent->slave_id == slave) slave 435 drivers/infiniband/hw/mlx4/cm.c if (slave == map->slave_id) slave 336 drivers/infiniband/hw/mlx4/mad.c int i, ix, slave, err; slave 339 drivers/infiniband/hw/mlx4/mad.c for (slave = 0; slave < dev->dev->caps.sqp_demux; slave++) { slave 340 drivers/infiniband/hw/mlx4/mad.c if (slave == mlx4_master_func_num(dev->dev)) slave 342 drivers/infiniband/hw/mlx4/mad.c if (!mlx4_is_slave_active(dev->dev, slave)) slave 351 drivers/infiniband/hw/mlx4/mad.c if (dev->pkeys.virt2phys_pkey[slave][port_num - 1] slave 353 drivers/infiniband/hw/mlx4/mad.c err = mlx4_gen_pkey_eqe(dev->dev, slave, port_num); slave 356 drivers/infiniband/hw/mlx4/mad.c slave, port_num, ix, err); slave 416 drivers/infiniband/hw/mlx4/mad.c static int mlx4_ib_demux_sa_handler(struct ib_device *ibdev, int port, int slave, slave 424 drivers/infiniband/hw/mlx4/mad.c ret = mlx4_ib_mcg_demux_handler(ibdev, port, slave, sa_mad); slave 445 drivers/infiniband/hw/mlx4/mad.c static int find_slave_port_pkey_ix(struct mlx4_ib_dev *dev, int slave, slave 452 drivers/infiniband/hw/mlx4/mad.c if (slave == mlx4_master_func_num(dev->dev)) slave 458 drivers/infiniband/hw/mlx4/mad.c if (dev->pkeys.virt2phys_pkey[slave][port - 1][i] == unassigned_pkey_ix) slave 461 drivers/infiniband/hw/mlx4/mad.c pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][i]; slave 503 drivers/infiniband/hw/mlx4/mad.c int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port, slave 526 drivers/infiniband/hw/mlx4/mad.c tun_ctx = dev->sriov.demux[port-1].tun[slave]; slave 544 drivers/infiniband/hw/mlx4/mad.c ret = find_slave_port_pkey_ix(dev, slave, port, cached_pkey, &pkey_ix); slave 549 drivers/infiniband/hw/mlx4/mad.c tun_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; slave 551 drivers/infiniband/hw/mlx4/mad.c dqpn = dev->dev->phys_caps.base_proxy_sqpn + 8 * slave + port + (dest_qpt * 2) - 1; slave 606 drivers/infiniband/hw/mlx4/mad.c if (mlx4_get_slave_default_vlan(dev->dev, port, slave, &vlan, slave 670 drivers/infiniband/hw/mlx4/mad.c int slave = -1; slave 693 drivers/infiniband/hw/mlx4/mad.c err = mlx4_get_slave_from_roce_gid(dev->dev, port, dgid.raw, &slave); slave 696 drivers/infiniband/hw/mlx4/mad.c err = mlx4_get_slave_from_roce_gid(dev->dev, other_port, dgid.raw, &slave); slave 700 drivers/infiniband/hw/mlx4/mad.c slave, grh->dgid.raw, port, other_port); slave 707 drivers/infiniband/hw/mlx4/mad.c if (slave >= dev->dev->caps.sqp_demux) { slave 709 drivers/infiniband/hw/mlx4/mad.c slave, dev->dev->caps.sqp_demux); slave 716 drivers/infiniband/hw/mlx4/mad.c err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); slave 719 drivers/infiniband/hw/mlx4/mad.c slave, err); slave 724 drivers/infiniband/hw/mlx4/mad.c slave = mlx4_master_func_num(dev->dev); slave 729 drivers/infiniband/hw/mlx4/mad.c slave = *slave_id; slave 730 drivers/infiniband/hw/mlx4/mad.c if (slave != 255) /*255 indicates the dom0*/ slave 740 drivers/infiniband/hw/mlx4/mad.c slave = 0; slave 742 drivers/infiniband/hw/mlx4/mad.c slave = mlx4_ib_find_real_gid(ibdev, port, slave 744 drivers/infiniband/hw/mlx4/mad.c if (slave < 0) { slave 755 drivers/infiniband/hw/mlx4/mad.c if (slave != 255 && slave != mlx4_master_func_num(dev->dev)) { slave 756 drivers/infiniband/hw/mlx4/mad.c if (!mlx4_vf_smi_enabled(dev->dev, slave, port)) slave 761 drivers/infiniband/hw/mlx4/mad.c slave, mad->mad_hdr.mgmt_class, slave 768 drivers/infiniband/hw/mlx4/mad.c if (mlx4_ib_demux_sa_handler(ibdev, port, slave, slave 773 drivers/infiniband/hw/mlx4/mad.c if (mlx4_ib_demux_cm_handler(ibdev, port, &slave, mad)) slave 782 drivers/infiniband/hw/mlx4/mad.c if (slave != mlx4_master_func_num(dev->dev)) { slave 784 drivers/infiniband/hw/mlx4/mad.c "for slave:%d\n", mad->mad_hdr.mgmt_class, slave); slave 789 drivers/infiniband/hw/mlx4/mad.c if (slave >= dev->dev->caps.sqp_demux) { slave 791 drivers/infiniband/hw/mlx4/mad.c slave, dev->dev->caps.sqp_demux); slave 795 drivers/infiniband/hw/mlx4/mad.c err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); slave 798 drivers/infiniband/hw/mlx4/mad.c slave, err); slave 1337 drivers/infiniband/hw/mlx4/mad.c int slave, struct ib_sa_mad *sa_mad) slave 1344 drivers/infiniband/hw/mlx4/mad.c ret = mlx4_ib_mcg_multiplex_handler(ibdev, port, slave, sa_mad); slave 1352 drivers/infiniband/hw/mlx4/mad.c static int is_proxy_qp0(struct mlx4_ib_dev *dev, int qpn, int slave) slave 1354 drivers/infiniband/hw/mlx4/mad.c int proxy_start = dev->dev->phys_caps.base_proxy_sqpn + 8 * slave; slave 1360 drivers/infiniband/hw/mlx4/mad.c int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port, slave 1387 drivers/infiniband/hw/mlx4/mad.c wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; slave 1391 drivers/infiniband/hw/mlx4/mad.c wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][pkey_index]; slave 1464 drivers/infiniband/hw/mlx4/mad.c static int get_slave_base_gid_ix(struct mlx4_ib_dev *dev, int slave, int port) slave 1467 drivers/infiniband/hw/mlx4/mad.c return slave; slave 1468 drivers/infiniband/hw/mlx4/mad.c return mlx4_get_base_gid_ix(dev->dev, slave, port); slave 1471 drivers/infiniband/hw/mlx4/mad.c static void fill_in_real_sgid_index(struct mlx4_ib_dev *dev, int slave, int port, slave 1476 drivers/infiniband/hw/mlx4/mad.c grh->sgid_index = slave; slave 1478 drivers/infiniband/hw/mlx4/mad.c grh->sgid_index += get_slave_base_gid_ix(dev, slave, port); slave 1490 drivers/infiniband/hw/mlx4/mad.c int slave; slave 1504 drivers/infiniband/hw/mlx4/mad.c slave = ((wc->src_qp & ~0x7) - dev->dev->phys_caps.base_proxy_sqpn) / 8; slave 1505 drivers/infiniband/hw/mlx4/mad.c if (slave != ctx->slave) { slave 1527 drivers/infiniband/hw/mlx4/mad.c tunnel->mad.mad_hdr.mgmt_class, slave); slave 1530 drivers/infiniband/hw/mlx4/mad.c *slave_id = slave; slave 1539 drivers/infiniband/hw/mlx4/mad.c if (slave != mlx4_master_func_num(dev->dev) && slave 1540 drivers/infiniband/hw/mlx4/mad.c !mlx4_vf_smi_enabled(dev->dev, slave, ctx->port)) slave 1544 drivers/infiniband/hw/mlx4/mad.c if (mlx4_ib_multiplex_sa_handler(ctx->ib_dev, ctx->port, slave, slave 1549 drivers/infiniband/hw/mlx4/mad.c if (mlx4_ib_multiplex_cm_handler(ctx->ib_dev, ctx->port, slave, slave 1560 drivers/infiniband/hw/mlx4/mad.c if (slave != mlx4_master_func_num(dev->dev)) { slave 1562 drivers/infiniband/hw/mlx4/mad.c "for slave:%d\n", tunnel->mad.mad_hdr.mgmt_class, slave); slave 1573 drivers/infiniband/hw/mlx4/mad.c port = mlx4_slave_convert_port(dev->dev, slave, port); slave 1581 drivers/infiniband/hw/mlx4/mad.c fill_in_real_sgid_index(dev, slave, ctx->port, &ah_attr); slave 1587 drivers/infiniband/hw/mlx4/mad.c if (mlx4_get_slave_default_vlan(dev->dev, ctx->port, slave, slave 1591 drivers/infiniband/hw/mlx4/mad.c mlx4_ib_send_to_wire(dev, slave, ctx->port, slave 1592 drivers/infiniband/hw/mlx4/mad.c is_proxy_qp0(dev, wc->src_qp, slave) ? slave 1773 drivers/infiniband/hw/mlx4/mad.c ctx->slave, wc.status, wc.wr_id); slave 1822 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.slave = ctx->slave; slave 1847 drivers/infiniband/hw/mlx4/mad.c ret = find_slave_port_pkey_ix(to_mdev(ctx->ib_dev), ctx->slave, slave 1852 drivers/infiniband/hw/mlx4/mad.c to_mdev(ctx->ib_dev)->pkeys.virt2phys_pkey[ctx->slave][ctx->port - 1][0]; slave 1939 drivers/infiniband/hw/mlx4/mad.c ctx->slave, wc.status, wc.wr_id); slave 1953 drivers/infiniband/hw/mlx4/mad.c static int alloc_pv_object(struct mlx4_ib_dev *dev, int slave, int port, slave 1965 drivers/infiniband/hw/mlx4/mad.c ctx->slave = slave; slave 1970 drivers/infiniband/hw/mlx4/mad.c static void free_pv_object(struct mlx4_ib_dev *dev, int slave, int port) slave 1972 drivers/infiniband/hw/mlx4/mad.c if (dev->sriov.demux[port - 1].tun[slave]) { slave 1973 drivers/infiniband/hw/mlx4/mad.c kfree(dev->sriov.demux[port - 1].tun[slave]); slave 1974 drivers/infiniband/hw/mlx4/mad.c dev->sriov.demux[port - 1].tun[slave] = NULL; slave 1978 drivers/infiniband/hw/mlx4/mad.c static int create_pv_resources(struct ib_device *ibdev, int slave, int port, slave 2088 drivers/infiniband/hw/mlx4/mad.c static void destroy_pv_resources(struct mlx4_ib_dev *dev, int slave, int port, slave 2113 drivers/infiniband/hw/mlx4/mad.c static int mlx4_ib_tunnels_update(struct mlx4_ib_dev *dev, int slave, slave 2119 drivers/infiniband/hw/mlx4/mad.c clean_vf_mcast(&dev->sriov.demux[port - 1], slave); slave 2121 drivers/infiniband/hw/mlx4/mad.c if (slave == mlx4_master_func_num(dev->dev)) slave 2122 drivers/infiniband/hw/mlx4/mad.c destroy_pv_resources(dev, slave, port, slave 2125 drivers/infiniband/hw/mlx4/mad.c destroy_pv_resources(dev, slave, port, slave 2126 drivers/infiniband/hw/mlx4/mad.c dev->sriov.demux[port - 1].tun[slave], 1); slave 2131 drivers/infiniband/hw/mlx4/mad.c ret = create_pv_resources(&dev->ib_dev, slave, port, 1, slave 2132 drivers/infiniband/hw/mlx4/mad.c dev->sriov.demux[port - 1].tun[slave]); slave 2135 drivers/infiniband/hw/mlx4/mad.c if (!ret && slave == mlx4_master_func_num(dev->dev)) slave 2136 drivers/infiniband/hw/mlx4/mad.c ret = create_pv_resources(&dev->ib_dev, slave, port, 0, slave 2146 drivers/infiniband/hw/mlx4/mad.c mlx4_ib_tunnels_update(dmxw->dev, dmxw->slave, (int) dmxw->port, slave 82 drivers/infiniband/hw/mlx4/main.c static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init); slave 2404 drivers/infiniband/hw/mlx4/main.c int slave; slave 2408 drivers/infiniband/hw/mlx4/main.c for (slave = 0; slave <= ibdev->dev->persist->num_vfs; slave 2409 drivers/infiniband/hw/mlx4/main.c ++slave) { slave 2414 drivers/infiniband/hw/mlx4/main.c ibdev->pkeys.virt2phys_pkey[slave][port - 1][i] = slave 2416 drivers/infiniband/hw/mlx4/main.c (slave == mlx4_master_func_num(ibdev->dev) || !i) ? i : slave 2418 drivers/infiniband/hw/mlx4/main.c mlx4_sync_pkey_table(ibdev->dev, slave, port, i, slave 2419 drivers/infiniband/hw/mlx4/main.c ibdev->pkeys.virt2phys_pkey[slave][port - 1][i]); slave 3053 drivers/infiniband/hw/mlx4/main.c static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init) slave 3066 drivers/infiniband/hw/mlx4/main.c actv_ports = mlx4_get_active_ports(dev, slave); slave 3083 drivers/infiniband/hw/mlx4/main.c dm[i]->slave = slave; slave 228 drivers/infiniband/hw/mlx4/mcg.c static int send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, slave 249 drivers/infiniband/hw/mlx4/mcg.c return mlx4_ib_send_to_slave(dev, slave, ctx->port, IB_QPT_GSI, &wc, NULL, mad); slave 318 drivers/infiniband/hw/mlx4/mcg.c static int send_reply_to_slave(int slave, struct mcast_group *group, slave 345 drivers/infiniband/hw/mlx4/mcg.c sa_data->scope_join_state |= (group->func[slave].join_state & 0x0f); slave 348 drivers/infiniband/hw/mlx4/mcg.c ret = send_mad_to_slave(slave, group->demux, (struct ib_mad *)&mad); slave 495 drivers/infiniband/hw/mlx4/mcg.c static int join_group(struct mcast_group *group, int slave, u8 join_mask) slave 501 drivers/infiniband/hw/mlx4/mcg.c join_state = join_mask & (~group->func[slave].join_state); slave 503 drivers/infiniband/hw/mlx4/mcg.c group->func[slave].join_state |= join_state; slave 504 drivers/infiniband/hw/mlx4/mcg.c if (group->func[slave].state != MCAST_MEMBER && join_state) { slave 505 drivers/infiniband/hw/mlx4/mcg.c group->func[slave].state = MCAST_MEMBER; slave 511 drivers/infiniband/hw/mlx4/mcg.c static int leave_group(struct mcast_group *group, int slave, u8 leave_state) slave 516 drivers/infiniband/hw/mlx4/mcg.c group->func[slave].join_state &= ~leave_state; slave 517 drivers/infiniband/hw/mlx4/mcg.c if (!group->func[slave].join_state) { slave 518 drivers/infiniband/hw/mlx4/mcg.c group->func[slave].state = MCAST_NOT_MEMBER; slave 524 drivers/infiniband/hw/mlx4/mcg.c static int check_leave(struct mcast_group *group, int slave, u8 leave_mask) slave 526 drivers/infiniband/hw/mlx4/mcg.c if (group->func[slave].state != MCAST_MEMBER) slave 530 drivers/infiniband/hw/mlx4/mcg.c if (~group->func[slave].join_state & leave_mask) slave 882 drivers/infiniband/hw/mlx4/mcg.c int mlx4_ib_mcg_demux_handler(struct ib_device *ibdev, int port, int slave, slave 899 drivers/infiniband/hw/mlx4/mcg.c *(u8 *)(&tid) = (u8)slave; /* in group we kept the modified TID */ slave 932 drivers/infiniband/hw/mlx4/mcg.c int slave, struct ib_sa_mad *sa_mad) slave 953 drivers/infiniband/hw/mlx4/mcg.c req->func = slave; slave 964 drivers/infiniband/hw/mlx4/mcg.c if (group->func[slave].num_pend_reqs > MAX_PEND_REQS_PER_FUNC) { slave 967 drivers/infiniband/hw/mlx4/mcg.c port, slave, MAX_PEND_REQS_PER_FUNC); slave 972 drivers/infiniband/hw/mlx4/mcg.c ++group->func[slave].num_pend_reqs; slave 985 drivers/infiniband/hw/mlx4/mcg.c port, slave, sa_mad->mad_hdr.method); slave 1196 drivers/infiniband/hw/mlx4/mcg.c static int push_deleteing_req(struct mcast_group *group, int slave) slave 1201 drivers/infiniband/hw/mlx4/mcg.c if (!group->func[slave].join_state) slave 1208 drivers/infiniband/hw/mlx4/mcg.c if (!list_empty(&group->func[slave].pending)) { slave 1209 drivers/infiniband/hw/mlx4/mcg.c pend_req = list_entry(group->func[slave].pending.prev, struct mcast_req, group_list); slave 1217 drivers/infiniband/hw/mlx4/mcg.c req->func = slave; slave 1219 drivers/infiniband/hw/mlx4/mcg.c ++group->func[slave].num_pend_reqs; slave 1225 drivers/infiniband/hw/mlx4/mcg.c void clean_vf_mcast(struct mlx4_ib_demux_ctx *ctx, int slave) slave 1236 drivers/infiniband/hw/mlx4/mcg.c clear_pending_reqs(group, slave); slave 1237 drivers/infiniband/hw/mlx4/mcg.c push_deleteing_req(group, slave); slave 424 drivers/infiniband/hw/mlx4/mlx4_ib.h int slave; slave 454 drivers/infiniband/hw/mlx4/mlx4_ib.h int slave; slave 631 drivers/infiniband/hw/mlx4/mlx4_ib.h int slave; slave 823 drivers/infiniband/hw/mlx4/mlx4_ib.h void clean_vf_mcast(struct mlx4_ib_demux_ctx *ctx, int slave); slave 829 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_mcg_multiplex_handler(struct ib_device *ibdev, int port, int slave, slave 831 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_mcg_demux_handler(struct ib_device *ibdev, int port, int slave, slave 842 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port, slave 846 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port, slave 853 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, slave 881 drivers/infiniband/hw/mlx4/mlx4_ib.h void mlx4_ib_slave_alias_guid_event(struct mlx4_ib_dev *dev, int slave, slave 1033 drivers/infiniband/hw/mlx4/qp.c else if (tnl_init->slave == mlx4_master_func_num(dev->dev) || slave 1034 drivers/infiniband/hw/mlx4/qp.c mlx4_vf_smi_enabled(dev->dev, tnl_init->slave, slave 1041 drivers/infiniband/hw/mlx4/qp.c qpn = dev->dev->phys_caps.base_tunnel_sqpn + 8 * tnl_init->slave slave 371 drivers/infiniband/hw/mlx4/sysfs.c int slave; slave 446 drivers/infiniband/hw/mlx4/sysfs.c if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= slave 451 drivers/infiniband/hw/mlx4/sysfs.c p->dev->pkeys.virt2phys_pkey[p->slave] slave 465 drivers/infiniband/hw/mlx4/sysfs.c if (p->slave == mlx4_master_func_num(p->dev->dev)) slave 475 drivers/infiniband/hw/mlx4/sysfs.c p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] slave 477 drivers/infiniband/hw/mlx4/sysfs.c mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num, slave 479 drivers/infiniband/hw/mlx4/sysfs.c err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num); slave 482 drivers/infiniband/hw/mlx4/sysfs.c " port %d, index %d\n", p->slave, p->port_num, idx); slave 491 drivers/infiniband/hw/mlx4/sysfs.c return sprintf(buf, "%d\n", p->slave); slave 547 drivers/infiniband/hw/mlx4/sysfs.c if (mlx4_vf_smi_enabled(p->dev->dev, p->slave, p->port_num)) slave 563 drivers/infiniband/hw/mlx4/sysfs.c if (mlx4_vf_get_enable_smi_admin(p->dev->dev, p->slave, p->port_num)) slave 583 drivers/infiniband/hw/mlx4/sysfs.c if (mlx4_vf_set_enable_smi_admin(p->dev->dev, p->slave, p->port_num, enable)) slave 595 drivers/infiniband/hw/mlx4/sysfs.c if (is_eth || p->slave == mlx4_master_func_num(p->dev->dev)) slave 628 drivers/infiniband/hw/mlx4/sysfs.c if (is_eth || p->slave == mlx4_master_func_num(p->dev->dev)) slave 635 drivers/infiniband/hw/mlx4/sysfs.c static int add_port(struct mlx4_ib_dev *dev, int port_num, int slave) slave 649 drivers/infiniband/hw/mlx4/sysfs.c p->slave = slave; slave 652 drivers/infiniband/hw/mlx4/sysfs.c kobject_get(dev->dev_ports_parent[slave]), slave 686 drivers/infiniband/hw/mlx4/sysfs.c list_add_tail(&p->kobj.entry, &dev->pkeys.pkey_port_list[slave]); slave 699 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(dev->dev_ports_parent[slave]); slave 704 drivers/infiniband/hw/mlx4/sysfs.c static int register_one_pkey_tree(struct mlx4_ib_dev *dev, int slave) slave 713 drivers/infiniband/hw/mlx4/sysfs.c get_name(dev, name, slave, sizeof name); slave 715 drivers/infiniband/hw/mlx4/sysfs.c dev->pkeys.device_parent[slave] = slave 718 drivers/infiniband/hw/mlx4/sysfs.c if (!dev->pkeys.device_parent[slave]) { slave 723 drivers/infiniband/hw/mlx4/sysfs.c INIT_LIST_HEAD(&dev->pkeys.pkey_port_list[slave]); slave 725 drivers/infiniband/hw/mlx4/sysfs.c dev->dev_ports_parent[slave] = slave 727 drivers/infiniband/hw/mlx4/sysfs.c kobject_get(dev->pkeys.device_parent[slave])); slave 729 drivers/infiniband/hw/mlx4/sysfs.c if (!dev->dev_ports_parent[slave]) { slave 734 drivers/infiniband/hw/mlx4/sysfs.c actv_ports = mlx4_get_active_ports(dev->dev, slave); slave 739 drivers/infiniband/hw/mlx4/sysfs.c err = add_port(dev, port, slave); slave 747 drivers/infiniband/hw/mlx4/sysfs.c &dev->pkeys.pkey_port_list[slave], slave 756 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(dev->dev_ports_parent[slave]); slave 759 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(dev->pkeys.device_parent[slave]); slave 761 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(dev->pkeys.device_parent[slave]); slave 783 drivers/infiniband/hw/mlx4/sysfs.c int slave; slave 790 drivers/infiniband/hw/mlx4/sysfs.c for (slave = device->dev->persist->num_vfs; slave >= 0; --slave) { slave 792 drivers/infiniband/hw/mlx4/sysfs.c &device->pkeys.pkey_port_list[slave], slave 800 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(device->dev_ports_parent[slave]); slave 802 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(device->dev_ports_parent[slave]); slave 803 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(device->pkeys.device_parent[slave]); slave 804 drivers/infiniband/hw/mlx4/sysfs.c kobject_put(device->pkeys.device_parent[slave]); slave 206 drivers/infiniband/hw/qib/qib_file_ops.c unsigned slave = subctxt_fp(fp) - 1; slave 210 drivers/infiniband/hw/qib/qib_file_ops.c dd->palign * kinfo->spi_piocnt * slave; slave 1034 drivers/infiniband/hw/qib/qib_file_ops.c unsigned slave = subctxt_fp(fp) - 1; slave 1038 drivers/infiniband/hw/qib/qib_file_ops.c piobufs = rcd->piobufs + dd->palign * piocnt * slave; slave 272 drivers/input/misc/apanel.c unsigned char method, slave, chip; slave 276 drivers/input/misc/apanel.c slave = readb(p + 3) >> 1; slave 278 drivers/input/misc/apanel.c if (slave != i2c_addr) { slave 813 drivers/media/tuners/tda18250.c dev->slave = false; slave 816 drivers/media/tuners/tda18250.c dev->slave = true; slave 832 drivers/media/tuners/tda18250.c dev->slave ? "S" : "M"); slave 837 drivers/media/tuners/tda18250.c dev->slave ? "S" : "M"); slave 130 drivers/media/tuners/tda18250_priv.h bool slave; slave 2529 drivers/media/usb/gspca/ov519.c static void ov51x_set_slave_ids(struct sd *sd, u8 slave); slave 2534 drivers/media/usb/gspca/ov519.c static int init_ov_sensor(struct sd *sd, u8 slave) slave 2539 drivers/media/usb/gspca/ov519.c ov51x_set_slave_ids(sd, slave); slave 2574 drivers/media/usb/gspca/ov519.c u8 slave) slave 2578 drivers/media/usb/gspca/ov519.c reg_w(sd, OVFX2_I2C_ADDR, slave); slave 2581 drivers/media/usb/gspca/ov519.c sd->sensor_addr = slave; slave 2585 drivers/media/usb/gspca/ov519.c reg_w(sd, R51x_I2C_W_SID, slave); slave 2586 drivers/media/usb/gspca/ov519.c reg_w(sd, R51x_I2C_R_SID, slave + 1); slave 215 drivers/mfd/db8500-prcmu.c #define PRCMU_I2C_WRITE(slave) (((slave) << 1) | BIT(6)) slave 216 drivers/mfd/db8500-prcmu.c #define PRCMU_I2C_READ(slave) (((slave) << 1) | BIT(0) | BIT(6)) slave 2172 drivers/mfd/db8500-prcmu.c int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) slave 2185 drivers/mfd/db8500-prcmu.c writeb(PRCMU_I2C_READ(slave), (tcdm_base + PRCM_REQ_MB5_I2C_SLAVE_OP)); slave 2222 drivers/mfd/db8500-prcmu.c int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, u8 size) slave 2235 drivers/mfd/db8500-prcmu.c writeb(PRCMU_I2C_WRITE(slave), (tcdm_base + PRCM_REQ_MB5_I2C_SLAVE_OP)); slave 2266 drivers/mfd/db8500-prcmu.c int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size) slave 2270 drivers/mfd/db8500-prcmu.c return prcmu_abb_write_masked(slave, reg, value, &mask, size); slave 427 drivers/mfd/palmas.c int ret, slave; slave 434 drivers/mfd/palmas.c slave = PALMAS_BASE_TO_SLAVE(PALMAS_PU_PD_OD_BASE); slave 443 drivers/mfd/palmas.c ret = regmap_update_bits(palmas_dev->regmap[slave], addr, slave 451 drivers/mfd/palmas.c slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE); slave 455 drivers/mfd/palmas.c palmas_dev->regmap[slave], slave 514 drivers/mfd/palmas.c int slave; slave 592 drivers/mfd/palmas.c slave = PALMAS_BASE_TO_SLAVE(PALMAS_INTERRUPT_BASE); slave 596 drivers/mfd/palmas.c regmap_write(palmas->regmap[slave], addr, reg); slave 598 drivers/mfd/palmas.c ret = regmap_add_irq_chip(palmas->regmap[slave], palmas->irq, slave 605 drivers/mfd/palmas.c slave = PALMAS_BASE_TO_SLAVE(PALMAS_PU_PD_OD_BASE); slave 611 drivers/mfd/palmas.c ret = regmap_write(palmas->regmap[slave], addr, reg); slave 615 drivers/mfd/palmas.c ret = regmap_read(palmas->regmap[slave], addr, ®); slave 646 drivers/mfd/palmas.c ret = regmap_write(palmas->regmap[slave], addr, reg); slave 650 drivers/mfd/palmas.c ret = regmap_read(palmas->regmap[slave], addr, ®); slave 670 drivers/mfd/palmas.c slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE); slave 673 drivers/mfd/palmas.c ret = regmap_write(palmas->regmap[slave], addr, reg); slave 67 drivers/mfd/ssbi.c struct device *slave; slave 326 drivers/mtd/mtdpart.c struct mtd_part *slave; slave 332 drivers/mtd/mtdpart.c slave = kzalloc(sizeof(*slave), GFP_KERNEL); slave 334 drivers/mtd/mtdpart.c if (!name || !slave) { slave 338 drivers/mtd/mtdpart.c kfree(slave); slave 343 drivers/mtd/mtdpart.c slave->mtd.type = parent->type; slave 344 drivers/mtd/mtdpart.c slave->mtd.flags = parent->orig_flags & ~part->mask_flags; slave 345 drivers/mtd/mtdpart.c slave->mtd.orig_flags = slave->mtd.flags; slave 346 drivers/mtd/mtdpart.c slave->mtd.size = part->size; slave 347 drivers/mtd/mtdpart.c slave->mtd.writesize = parent->writesize; slave 348 drivers/mtd/mtdpart.c slave->mtd.writebufsize = parent->writebufsize; slave 349 drivers/mtd/mtdpart.c slave->mtd.oobsize = parent->oobsize; slave 350 drivers/mtd/mtdpart.c slave->mtd.oobavail = parent->oobavail; slave 351 drivers/mtd/mtdpart.c slave->mtd.subpage_sft = parent->subpage_sft; slave 352 drivers/mtd/mtdpart.c slave->mtd.pairing = parent->pairing; slave 354 drivers/mtd/mtdpart.c slave->mtd.name = name; slave 355 drivers/mtd/mtdpart.c slave->mtd.owner = parent->owner; slave 365 drivers/mtd/mtdpart.c slave->mtd.dev.parent = IS_ENABLED(CONFIG_MTD_PARTITIONED_MASTER) || mtd_is_partition(parent) ? slave 368 drivers/mtd/mtdpart.c slave->mtd.dev.of_node = part->of_node; slave 371 drivers/mtd/mtdpart.c slave->mtd._read = part_read; slave 373 drivers/mtd/mtdpart.c slave->mtd._write = part_write; slave 376 drivers/mtd/mtdpart.c slave->mtd._panic_write = part_panic_write; slave 379 drivers/mtd/mtdpart.c slave->mtd._point = part_point; slave 380 drivers/mtd/mtdpart.c slave->mtd._unpoint = part_unpoint; slave 384 drivers/mtd/mtdpart.c slave->mtd._read_oob = part_read_oob; slave 386 drivers/mtd/mtdpart.c slave->mtd._write_oob = part_write_oob; slave 388 drivers/mtd/mtdpart.c slave->mtd._read_user_prot_reg = part_read_user_prot_reg; slave 390 drivers/mtd/mtdpart.c slave->mtd._read_fact_prot_reg = part_read_fact_prot_reg; slave 392 drivers/mtd/mtdpart.c slave->mtd._write_user_prot_reg = part_write_user_prot_reg; slave 394 drivers/mtd/mtdpart.c slave->mtd._lock_user_prot_reg = part_lock_user_prot_reg; slave 396 drivers/mtd/mtdpart.c slave->mtd._get_user_prot_info = part_get_user_prot_info; slave 398 drivers/mtd/mtdpart.c slave->mtd._get_fact_prot_info = part_get_fact_prot_info; slave 400 drivers/mtd/mtdpart.c slave->mtd._sync = part_sync; slave 403 drivers/mtd/mtdpart.c slave->mtd._suspend = part_suspend; slave 404 drivers/mtd/mtdpart.c slave->mtd._resume = part_resume; slave 407 drivers/mtd/mtdpart.c slave->mtd._writev = part_writev; slave 409 drivers/mtd/mtdpart.c slave->mtd._lock = part_lock; slave 411 drivers/mtd/mtdpart.c slave->mtd._unlock = part_unlock; slave 413 drivers/mtd/mtdpart.c slave->mtd._is_locked = part_is_locked; slave 415 drivers/mtd/mtdpart.c slave->mtd._block_isreserved = part_block_isreserved; slave 417 drivers/mtd/mtdpart.c slave->mtd._block_isbad = part_block_isbad; slave 419 drivers/mtd/mtdpart.c slave->mtd._block_markbad = part_block_markbad; slave 421 drivers/mtd/mtdpart.c slave->mtd._max_bad_blocks = part_max_bad_blocks; slave 424 drivers/mtd/mtdpart.c slave->mtd._get_device = part_get_device; slave 426 drivers/mtd/mtdpart.c slave->mtd._put_device = part_put_device; slave 428 drivers/mtd/mtdpart.c slave->mtd._erase = part_erase; slave 429 drivers/mtd/mtdpart.c slave->parent = parent; slave 430 drivers/mtd/mtdpart.c slave->offset = part->offset; slave 432 drivers/mtd/mtdpart.c if (slave->offset == MTDPART_OFS_APPEND) slave 433 drivers/mtd/mtdpart.c slave->offset = cur_offset; slave 434 drivers/mtd/mtdpart.c if (slave->offset == MTDPART_OFS_NXTBLK) { slave 436 drivers/mtd/mtdpart.c slave->offset = cur_offset; slave 439 drivers/mtd/mtdpart.c slave->offset += wr_alignment - remainder; slave 442 drivers/mtd/mtdpart.c (unsigned long long)cur_offset, (unsigned long long)slave->offset); slave 445 drivers/mtd/mtdpart.c if (slave->offset == MTDPART_OFS_RETAIN) { slave 446 drivers/mtd/mtdpart.c slave->offset = cur_offset; slave 447 drivers/mtd/mtdpart.c if (parent->size - slave->offset >= slave->mtd.size) { slave 448 drivers/mtd/mtdpart.c slave->mtd.size = parent->size - slave->offset slave 449 drivers/mtd/mtdpart.c - slave->mtd.size; slave 452 drivers/mtd/mtdpart.c part->name, parent->size - slave->offset, slave 453 drivers/mtd/mtdpart.c slave->mtd.size); slave 458 drivers/mtd/mtdpart.c if (slave->mtd.size == MTDPART_SIZ_FULL) slave 459 drivers/mtd/mtdpart.c slave->mtd.size = parent->size - slave->offset; slave 461 drivers/mtd/mtdpart.c printk(KERN_NOTICE "0x%012llx-0x%012llx : \"%s\"\n", (unsigned long long)slave->offset, slave 462 drivers/mtd/mtdpart.c (unsigned long long)(slave->offset + slave->mtd.size), slave->mtd.name); slave 465 drivers/mtd/mtdpart.c if (slave->offset >= parent->size) { slave 467 drivers/mtd/mtdpart.c slave->offset = 0; slave 468 drivers/mtd/mtdpart.c slave->mtd.size = 0; slave 471 drivers/mtd/mtdpart.c slave->mtd.erasesize = parent->erasesize; slave 477 drivers/mtd/mtdpart.c if (slave->offset + slave->mtd.size > parent->size) { slave 478 drivers/mtd/mtdpart.c slave->mtd.size = parent->size - slave->offset; slave 480 drivers/mtd/mtdpart.c part->name, parent->name, (unsigned long long)slave->mtd.size); slave 485 drivers/mtd/mtdpart.c u64 end = slave->offset + slave->mtd.size; slave 490 drivers/mtd/mtdpart.c for (i = 0; i < max && regions[i].offset <= slave->offset; i++) slave 498 drivers/mtd/mtdpart.c if (slave->mtd.erasesize < regions[i].erasesize) { slave 499 drivers/mtd/mtdpart.c slave->mtd.erasesize = regions[i].erasesize; slave 502 drivers/mtd/mtdpart.c BUG_ON(slave->mtd.erasesize == 0); slave 505 drivers/mtd/mtdpart.c slave->mtd.erasesize = parent->erasesize; slave 513 drivers/mtd/mtdpart.c if (!(slave->mtd.flags & MTD_NO_ERASE)) slave 514 drivers/mtd/mtdpart.c wr_alignment = slave->mtd.erasesize; slave 516 drivers/mtd/mtdpart.c tmp = part_absolute_offset(parent) + slave->offset; slave 518 drivers/mtd/mtdpart.c if ((slave->mtd.flags & MTD_WRITEABLE) && remainder) { slave 522 drivers/mtd/mtdpart.c slave->mtd.flags &= ~MTD_WRITEABLE; slave 527 drivers/mtd/mtdpart.c tmp = part_absolute_offset(parent) + slave->mtd.size; slave 529 drivers/mtd/mtdpart.c if ((slave->mtd.flags & MTD_WRITEABLE) && remainder) { slave 530 drivers/mtd/mtdpart.c slave->mtd.flags &= ~MTD_WRITEABLE; slave 535 drivers/mtd/mtdpart.c mtd_set_ooblayout(&slave->mtd, &part_ooblayout_ops); slave 536 drivers/mtd/mtdpart.c slave->mtd.ecc_step_size = parent->ecc_step_size; slave 537 drivers/mtd/mtdpart.c slave->mtd.ecc_strength = parent->ecc_strength; slave 538 drivers/mtd/mtdpart.c slave->mtd.bitflip_threshold = parent->bitflip_threshold; slave 543 drivers/mtd/mtdpart.c while (offs < slave->mtd.size) { slave 544 drivers/mtd/mtdpart.c if (mtd_block_isreserved(parent, offs + slave->offset)) slave 545 drivers/mtd/mtdpart.c slave->mtd.ecc_stats.bbtblocks++; slave 546 drivers/mtd/mtdpart.c else if (mtd_block_isbad(parent, offs + slave->offset)) slave 547 drivers/mtd/mtdpart.c slave->mtd.ecc_stats.badblocks++; slave 548 drivers/mtd/mtdpart.c offs += slave->mtd.erasesize; slave 553 drivers/mtd/mtdpart.c return slave; slave 668 drivers/mtd/mtdpart.c struct mtd_part *slave, *next; slave 672 drivers/mtd/mtdpart.c list_for_each_entry_safe(slave, next, &mtd_partitions, list) slave 673 drivers/mtd/mtdpart.c if (slave->parent == mtd) { slave 674 drivers/mtd/mtdpart.c ret = __mtd_del_partition(slave); slave 685 drivers/mtd/mtdpart.c struct mtd_part *slave, *next; slave 689 drivers/mtd/mtdpart.c list_for_each_entry_safe(slave, next, &mtd_partitions, list) slave 690 drivers/mtd/mtdpart.c if ((slave->parent == mtd) && slave 691 drivers/mtd/mtdpart.c (slave->mtd.index == partno)) { slave 692 drivers/mtd/mtdpart.c ret = __mtd_del_partition(slave); slave 714 drivers/mtd/mtdpart.c struct mtd_part *slave; slave 721 drivers/mtd/mtdpart.c slave = allocate_partition(master, parts + i, i, cur_offset); slave 722 drivers/mtd/mtdpart.c if (IS_ERR(slave)) { slave 723 drivers/mtd/mtdpart.c ret = PTR_ERR(slave); slave 728 drivers/mtd/mtdpart.c list_add(&slave->list, &mtd_partitions); slave 731 drivers/mtd/mtdpart.c ret = add_mtd_device(&slave->mtd); slave 734 drivers/mtd/mtdpart.c list_del(&slave->list); slave 737 drivers/mtd/mtdpart.c free_partition(slave); slave 741 drivers/mtd/mtdpart.c mtd_add_partition_attrs(slave); slave 743 drivers/mtd/mtdpart.c parse_mtd_partitions(&slave->mtd, parts[i].types, NULL); slave 745 drivers/mtd/mtdpart.c cur_offset = slave->offset + slave->mtd.size; slave 823 drivers/mtd/nand/raw/fsmc_nand.c static bool filter(struct dma_chan *chan, void *slave) slave 825 drivers/mtd/nand/raw/fsmc_nand.c chan->private = slave; slave 135 drivers/net/bonding/bond_3ad.c if (port->slave == NULL) slave 138 drivers/net/bonding/bond_3ad.c return bond_get_bond_by_slave(port->slave); slave 152 drivers/net/bonding/bond_3ad.c struct slave *first_slave; slave 185 drivers/net/bonding/bond_3ad.c bond_set_slave_inactive_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); slave 194 drivers/net/bonding/bond_3ad.c struct slave *slave = port->slave; slave 196 drivers/net/bonding/bond_3ad.c if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave)) slave 197 drivers/net/bonding/bond_3ad.c bond_set_slave_active_flags(slave, BOND_SLAVE_NOTIFY_LATER); slave 206 drivers/net/bonding/bond_3ad.c return bond_is_active_slave(port->slave); slave 261 drivers/net/bonding/bond_3ad.c struct slave *slave = port->slave; slave 269 drivers/net/bonding/bond_3ad.c if (slave->link != BOND_LINK_UP) slave 272 drivers/net/bonding/bond_3ad.c switch (slave->speed) { slave 327 drivers/net/bonding/bond_3ad.c if (slave->speed != SPEED_UNKNOWN) slave 329 drivers/net/bonding/bond_3ad.c slave->bond->dev->name, slave 330 drivers/net/bonding/bond_3ad.c slave->dev->name, slave->speed, slave 337 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Port %d Received link speed %d update from adapter\n", slave 352 drivers/net/bonding/bond_3ad.c struct slave *slave = port->slave; slave 358 drivers/net/bonding/bond_3ad.c if (slave->link == BOND_LINK_UP) { slave 359 drivers/net/bonding/bond_3ad.c switch (slave->duplex) { slave 362 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Port %d Received status full duplex update from adapter\n", slave 368 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Port %d Received status NOT full duplex update from adapter\n", slave 378 drivers/net/bonding/bond_3ad.c const struct bonding *bond = bond_get_bond_by_slave(port->slave); slave 503 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 507 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 761 drivers/net/bonding/bond_3ad.c struct bonding *bond = aggregator->slave->bond; slave 763 drivers/net/bonding/bond_3ad.c struct slave *slave; slave 765 drivers/net/bonding/bond_3ad.c bond_for_each_slave_rcu(bond, slave, iter) slave 766 drivers/net/bonding/bond_3ad.c if (SLAVE_AD_INFO(slave)->aggregator.is_active) slave 767 drivers/net/bonding/bond_3ad.c return &(SLAVE_AD_INFO(slave)->aggregator); slave 794 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 832 drivers/net/bonding/bond_3ad.c struct slave *slave = port->slave; slave 841 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(slave)->stats.lacpdu_tx); slave 842 drivers/net/bonding/bond_3ad.c atomic64_inc(&BOND_AD_INFO(slave->bond).stats.lacpdu_tx); slave 844 drivers/net/bonding/bond_3ad.c skb->dev = slave->dev; slave 856 drivers/net/bonding/bond_3ad.c ether_addr_copy(lacpdu_header->hdr.h_source, slave->perm_hwaddr); slave 876 drivers/net/bonding/bond_3ad.c struct slave *slave = port->slave; slave 887 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(slave)->stats.marker_tx); slave 888 drivers/net/bonding/bond_3ad.c atomic64_inc(&BOND_AD_INFO(slave->bond).stats.marker_tx); slave 891 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(slave)->stats.marker_resp_tx); slave 892 drivers/net/bonding/bond_3ad.c atomic64_inc(&BOND_AD_INFO(slave->bond).stats.marker_resp_tx); slave 898 drivers/net/bonding/bond_3ad.c skb->dev = slave->dev; slave 909 drivers/net/bonding/bond_3ad.c ether_addr_copy(marker_header->hdr.h_source, slave->perm_hwaddr); slave 1028 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 1091 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(port->slave)->stats.lacpdu_rx); slave 1092 drivers/net/bonding/bond_3ad.c atomic64_inc(&BOND_AD_INFO(port->slave->bond).stats.lacpdu_rx); slave 1146 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 1198 drivers/net/bonding/bond_3ad.c slave_err(port->slave->bond->dev, port->slave->dev, "An illegal loopback occurred on slave\n" slave 1268 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, slave 1269 drivers/net/bonding/bond_3ad.c port->slave->dev, slave 1350 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 1390 drivers/net/bonding/bond_3ad.c struct slave *slave; slave 1429 drivers/net/bonding/bond_3ad.c slave_dbg(bond->dev, port->slave->dev, "Port %d left LAG %d\n", slave 1445 drivers/net/bonding/bond_3ad.c port->slave->bond->dev->name, slave 1446 drivers/net/bonding/bond_3ad.c port->slave->dev->name, slave 1452 drivers/net/bonding/bond_3ad.c bond_for_each_slave(bond, slave, iter) { slave 1453 drivers/net/bonding/bond_3ad.c aggregator = &(SLAVE_AD_INFO(slave)->aggregator); slave 1478 drivers/net/bonding/bond_3ad.c slave_dbg(bond->dev, slave->dev, "Port %d joined LAG %d (existing LAG)\n", slave 1525 drivers/net/bonding/bond_3ad.c slave_dbg(bond->dev, port->slave->dev, "Port %d joined LAG %d (new LAG)\n", slave 1529 drivers/net/bonding/bond_3ad.c slave_err(bond->dev, port->slave->dev, slave 1611 drivers/net/bonding/bond_3ad.c curr->slave->bond->dev->name, slave 1612 drivers/net/bonding/bond_3ad.c curr->slave->dev->name, slave 1629 drivers/net/bonding/bond_3ad.c if (netif_running(port->slave->dev) && slave 1630 drivers/net/bonding/bond_3ad.c netif_carrier_ok(port->slave->dev)) slave 1667 drivers/net/bonding/bond_3ad.c struct bonding *bond = agg->slave->bond; slave 1669 drivers/net/bonding/bond_3ad.c struct slave *slave; slave 1677 drivers/net/bonding/bond_3ad.c bond_for_each_slave_rcu(bond, slave, iter) { slave 1678 drivers/net/bonding/bond_3ad.c agg = &(SLAVE_AD_INFO(slave)->aggregator); slave 1714 drivers/net/bonding/bond_3ad.c best->slave ? best->slave->dev->name : "NULL", slave 1720 drivers/net/bonding/bond_3ad.c best->slave ? best->slave->dev->name : "NULL", slave 1721 drivers/net/bonding/bond_3ad.c best->lag_ports, best->slave); slave 1723 drivers/net/bonding/bond_3ad.c bond_for_each_slave_rcu(bond, slave, iter) { slave 1724 drivers/net/bonding/bond_3ad.c agg = &(SLAVE_AD_INFO(slave)->aggregator); slave 1726 drivers/net/bonding/bond_3ad.c slave_dbg(bond->dev, slave->dev, "Agg=%d; P=%d; a k=%d; p k=%d; Ind=%d; Act=%d\n", slave 1740 drivers/net/bonding/bond_3ad.c best->slave ? best->slave->dev->name : "NULL", slave 1743 drivers/net/bonding/bond_3ad.c best->slave ? best->slave->dev->name : "NULL", slave 1800 drivers/net/bonding/bond_3ad.c aggregator->slave ? slave 1801 drivers/net/bonding/bond_3ad.c aggregator->slave->dev->name : "NULL", slave 1817 drivers/net/bonding/bond_3ad.c aggregator->slave = NULL; slave 1898 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 1919 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 1939 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(port->slave)->stats.marker_rx); slave 1940 drivers/net/bonding/bond_3ad.c atomic64_inc(&BOND_AD_INFO(port->slave->bond).stats.marker_rx); slave 1949 drivers/net/bonding/bond_3ad.c slave_dbg(port->slave->bond->dev, port->slave->dev, slave 1966 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(port->slave)->stats.marker_resp_rx); slave 1967 drivers/net/bonding/bond_3ad.c atomic64_inc(&BOND_AD_INFO(port->slave->bond).stats.marker_resp_rx); slave 2032 drivers/net/bonding/bond_3ad.c void bond_3ad_bind_slave(struct slave *slave) slave 2034 drivers/net/bonding/bond_3ad.c struct bonding *bond = bond_get_bond_by_slave(slave); slave 2039 drivers/net/bonding/bond_3ad.c if (SLAVE_AD_INFO(slave)->port.slave != slave) { slave 2042 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 2046 drivers/net/bonding/bond_3ad.c port->slave = slave; slave 2047 drivers/net/bonding/bond_3ad.c port->actor_port_number = SLAVE_AD_INFO(slave)->id; slave 2063 drivers/net/bonding/bond_3ad.c aggregator = &(SLAVE_AD_INFO(slave)->aggregator); slave 2069 drivers/net/bonding/bond_3ad.c aggregator->slave = slave; slave 2083 drivers/net/bonding/bond_3ad.c void bond_3ad_unbind_slave(struct slave *slave) slave 2088 drivers/net/bonding/bond_3ad.c struct bonding *bond = slave->bond; slave 2089 drivers/net/bonding/bond_3ad.c struct slave *slave_iter; slave 2095 drivers/net/bonding/bond_3ad.c aggregator = &(SLAVE_AD_INFO(slave)->aggregator); slave 2096 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 2099 drivers/net/bonding/bond_3ad.c if (!port->slave) { slave 2100 drivers/net/bonding/bond_3ad.c slave_warn(bond->dev, slave->dev, "Trying to unbind an uninitialized port\n"); slave 2104 drivers/net/bonding/bond_3ad.c slave_dbg(bond->dev, slave->dev, "Unbinding Link Aggregation Group %d\n", slave 2143 drivers/net/bonding/bond_3ad.c slave_dbg(bond->dev, slave->dev, "Some port(s) related to LAG %d - replacing with LAG %d\n", slave 2149 drivers/net/bonding/bond_3ad.c slave_info(bond->dev, slave->dev, "Removing an active aggregator\n"); slave 2180 drivers/net/bonding/bond_3ad.c slave_warn(bond->dev, slave->dev, "unbinding aggregator, and could not find a new aggregator for its ports\n"); slave 2189 drivers/net/bonding/bond_3ad.c slave_info(bond->dev, slave->dev, "Removing an active aggregator\n"); slave 2199 drivers/net/bonding/bond_3ad.c slave_dbg(bond->dev, slave->dev, "Unbinding port %d\n", port->actor_port_number); slave 2222 drivers/net/bonding/bond_3ad.c slave_info(bond->dev, slave->dev, "Removing an active aggregator\n"); slave 2232 drivers/net/bonding/bond_3ad.c port->slave = NULL; slave 2248 drivers/net/bonding/bond_3ad.c struct slave *slave; slave 2261 drivers/net/bonding/bond_3ad.c bond_for_each_slave(bond, slave, iter) { slave 2262 drivers/net/bonding/bond_3ad.c struct port *port = &(SLAVE_AD_INFO(slave))->port; slave 2289 drivers/net/bonding/bond_3ad.c struct slave *slave; slave 2308 drivers/net/bonding/bond_3ad.c slave = bond_first_slave_rcu(bond); slave 2309 drivers/net/bonding/bond_3ad.c port = slave ? &(SLAVE_AD_INFO(slave)->port) : NULL; slave 2313 drivers/net/bonding/bond_3ad.c if (!port->slave) { slave 2326 drivers/net/bonding/bond_3ad.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2327 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 2328 drivers/net/bonding/bond_3ad.c if (!port->slave) { slave 2347 drivers/net/bonding/bond_3ad.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2348 drivers/net/bonding/bond_3ad.c if (slave->should_notify) { slave 2375 drivers/net/bonding/bond_3ad.c static int bond_3ad_rx_indication(struct lacpdu *lacpdu, struct slave *slave) slave 2377 drivers/net/bonding/bond_3ad.c struct bonding *bond = slave->bond; slave 2383 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 2384 drivers/net/bonding/bond_3ad.c if (!port->slave) { slave 2386 drivers/net/bonding/bond_3ad.c slave->dev->name, slave->bond->dev->name); slave 2393 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, slave 2397 drivers/net/bonding/bond_3ad.c spin_lock(&slave->bond->mode_lock); slave 2399 drivers/net/bonding/bond_3ad.c spin_unlock(&slave->bond->mode_lock); slave 2409 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Received Marker Information on port %d\n", slave 2414 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Received Marker Response on port %d\n", slave 2419 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Received an unknown Marker subtype on port %d\n", slave 2421 drivers/net/bonding/bond_3ad.c stat = &SLAVE_AD_INFO(slave)->stats.marker_unknown_rx; slave 2428 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(slave)->stats.lacpdu_unknown_rx); slave 2470 drivers/net/bonding/bond_3ad.c slave_err(port->slave->bond->dev, slave 2471 drivers/net/bonding/bond_3ad.c port->slave->dev, slave 2490 drivers/net/bonding/bond_3ad.c void bond_3ad_adapter_speed_duplex_changed(struct slave *slave) slave 2494 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 2497 drivers/net/bonding/bond_3ad.c if (!port->slave) { slave 2498 drivers/net/bonding/bond_3ad.c slave_warn(slave->bond->dev, slave->dev, slave 2503 drivers/net/bonding/bond_3ad.c spin_lock_bh(&slave->bond->mode_lock); slave 2505 drivers/net/bonding/bond_3ad.c spin_unlock_bh(&slave->bond->mode_lock); slave 2506 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Port %d changed speed/duplex\n", slave 2517 drivers/net/bonding/bond_3ad.c void bond_3ad_handle_link_change(struct slave *slave, char link) slave 2523 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 2526 drivers/net/bonding/bond_3ad.c if (!port->slave) { slave 2527 drivers/net/bonding/bond_3ad.c slave_warn(slave->bond->dev, slave->dev, "link status changed for uninitialized port\n"); slave 2531 drivers/net/bonding/bond_3ad.c spin_lock_bh(&slave->bond->mode_lock); slave 2550 drivers/net/bonding/bond_3ad.c spin_unlock_bh(&slave->bond->mode_lock); slave 2552 drivers/net/bonding/bond_3ad.c slave_dbg(slave->bond->dev, slave->dev, "Port %d changed link status to %s\n", slave 2559 drivers/net/bonding/bond_3ad.c bond_update_slave_arr(slave->bond, NULL); slave 2578 drivers/net/bonding/bond_3ad.c struct slave *first_slave; slave 2620 drivers/net/bonding/bond_3ad.c struct slave *slave; slave 2623 drivers/net/bonding/bond_3ad.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2624 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 2655 drivers/net/bonding/bond_3ad.c struct slave *slave) slave 2667 drivers/net/bonding/bond_3ad.c atomic64_inc(&SLAVE_AD_INFO(slave)->stats.lacpdu_illegal_rx); slave 2672 drivers/net/bonding/bond_3ad.c return bond_3ad_rx_indication(lacpdu, slave); slave 2690 drivers/net/bonding/bond_3ad.c struct slave *slave; slave 2695 drivers/net/bonding/bond_3ad.c bond_for_each_slave(bond, slave, iter) { slave 2696 drivers/net/bonding/bond_3ad.c port = &(SLAVE_AD_INFO(slave)->port); slave 54 drivers/net/bonding/bond_alb.c static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[], slave 87 drivers/net/bonding/bond_alb.c static inline void tlb_init_slave(struct slave *slave) slave 89 drivers/net/bonding/bond_alb.c SLAVE_TLB_INFO(slave).load = 0; slave 90 drivers/net/bonding/bond_alb.c SLAVE_TLB_INFO(slave).head = TLB_NULL_INDEX; slave 93 drivers/net/bonding/bond_alb.c static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, slave 104 drivers/net/bonding/bond_alb.c index = SLAVE_TLB_INFO(slave).head; slave 112 drivers/net/bonding/bond_alb.c tlb_init_slave(slave); slave 115 drivers/net/bonding/bond_alb.c static void tlb_clear_slave(struct bonding *bond, struct slave *slave, slave 119 drivers/net/bonding/bond_alb.c __tlb_clear_slave(bond, slave, save_load); slave 160 drivers/net/bonding/bond_alb.c static long long compute_gap(struct slave *slave) slave 162 drivers/net/bonding/bond_alb.c return (s64) (slave->speed << 20) - /* Convert to Megabit per sec */ slave 163 drivers/net/bonding/bond_alb.c (s64) (SLAVE_TLB_INFO(slave).load << 3); /* Bytes to bits */ slave 166 drivers/net/bonding/bond_alb.c static struct slave *tlb_get_least_loaded_slave(struct bonding *bond) slave 168 drivers/net/bonding/bond_alb.c struct slave *slave, *least_loaded; slave 176 drivers/net/bonding/bond_alb.c bond_for_each_slave_rcu(bond, slave, iter) { slave 177 drivers/net/bonding/bond_alb.c if (bond_slave_can_tx(slave)) { slave 178 drivers/net/bonding/bond_alb.c long long gap = compute_gap(slave); slave 181 drivers/net/bonding/bond_alb.c least_loaded = slave; slave 190 drivers/net/bonding/bond_alb.c static struct slave *__tlb_choose_channel(struct bonding *bond, u32 hash_index, slave 195 drivers/net/bonding/bond_alb.c struct slave *assigned_slave; slave 226 drivers/net/bonding/bond_alb.c static struct slave *tlb_choose_channel(struct bonding *bond, u32 hash_index, slave 229 drivers/net/bonding/bond_alb.c struct slave *tx_slave; slave 272 drivers/net/bonding/bond_alb.c struct slave *slave) slave 298 drivers/net/bonding/bond_alb.c slave_dbg(bond->dev, slave->dev, "Server received an ARP Reply from client\n"); slave 305 drivers/net/bonding/bond_alb.c static struct slave *__rlb_next_rx_slave(struct bonding *bond) slave 308 drivers/net/bonding/bond_alb.c struct slave *before = NULL, *rx_slave = NULL, *slave; slave 312 drivers/net/bonding/bond_alb.c bond_for_each_slave_rcu(bond, slave, iter) { slave 313 drivers/net/bonding/bond_alb.c if (!bond_slave_can_tx(slave)) slave 316 drivers/net/bonding/bond_alb.c if (!before || before->speed < slave->speed) slave 317 drivers/net/bonding/bond_alb.c before = slave; slave 319 drivers/net/bonding/bond_alb.c if (!rx_slave || rx_slave->speed < slave->speed) slave 320 drivers/net/bonding/bond_alb.c rx_slave = slave; slave 322 drivers/net/bonding/bond_alb.c if (slave == bond_info->rx_slave) slave 338 drivers/net/bonding/bond_alb.c static struct slave *rlb_next_rx_slave(struct bonding *bond) slave 340 drivers/net/bonding/bond_alb.c struct slave *rx_slave; slave 358 drivers/net/bonding/bond_alb.c struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); slave 379 drivers/net/bonding/bond_alb.c static void rlb_clear_slave(struct bonding *bond, struct slave *slave) slave 392 drivers/net/bonding/bond_alb.c if (rx_hash_table[index].slave == slave) { slave 393 drivers/net/bonding/bond_alb.c struct slave *assigned_slave = rlb_next_rx_slave(bond); slave 396 drivers/net/bonding/bond_alb.c rx_hash_table[index].slave = assigned_slave; slave 411 drivers/net/bonding/bond_alb.c rx_hash_table[index].slave = NULL; slave 418 drivers/net/bonding/bond_alb.c if (slave != rtnl_dereference(bond->curr_active_slave)) slave 419 drivers/net/bonding/bond_alb.c rlb_teach_disabled_mac_on_primary(bond, slave->dev->dev_addr); slave 426 drivers/net/bonding/bond_alb.c if (!client_info->slave || !is_valid_ether_addr(client_info->mac_dst)) slave 434 drivers/net/bonding/bond_alb.c client_info->slave->dev, slave 437 drivers/net/bonding/bond_alb.c client_info->slave->dev->dev_addr, slave 440 drivers/net/bonding/bond_alb.c slave_err(client_info->slave->bond->dev, slave 441 drivers/net/bonding/bond_alb.c client_info->slave->dev, slave 446 drivers/net/bonding/bond_alb.c skb->dev = client_info->slave->dev; slave 486 drivers/net/bonding/bond_alb.c static void rlb_req_update_slave_clients(struct bonding *bond, struct slave *slave) slave 500 drivers/net/bonding/bond_alb.c if ((client_info->slave == slave) && slave 531 drivers/net/bonding/bond_alb.c if (!client_info->slave) { slave 540 drivers/net/bonding/bond_alb.c !ether_addr_equal_64bits(client_info->slave->dev->dev_addr, slave 551 drivers/net/bonding/bond_alb.c static struct slave *rlb_choose_channel(struct sk_buff *skb, slave 556 drivers/net/bonding/bond_alb.c struct slave *assigned_slave, *curr_active_slave; slave 577 drivers/net/bonding/bond_alb.c assigned_slave = client_info->slave; slave 588 drivers/net/bonding/bond_alb.c client_info->slave != curr_active_slave) { slave 589 drivers/net/bonding/bond_alb.c client_info->slave = curr_active_slave; slave 617 drivers/net/bonding/bond_alb.c client_info->slave = assigned_slave; slave 650 drivers/net/bonding/bond_alb.c static struct slave *rlb_arp_xmit(struct sk_buff *skb, struct bonding *bond) slave 652 drivers/net/bonding/bond_alb.c struct slave *tx_slave = NULL; slave 702 drivers/net/bonding/bond_alb.c struct slave *assigned_slave; slave 715 drivers/net/bonding/bond_alb.c if (assigned_slave && (client_info->slave != assigned_slave)) { slave 716 drivers/net/bonding/bond_alb.c client_info->slave = assigned_slave; slave 736 drivers/net/bonding/bond_alb.c entry->slave = NULL; slave 905 drivers/net/bonding/bond_alb.c static void alb_send_lp_vid(struct slave *slave, u8 mac_addr[], slave 927 drivers/net/bonding/bond_alb.c skb->dev = slave->dev; slave 929 drivers/net/bonding/bond_alb.c slave_dbg(slave->bond->dev, slave->dev, slave 940 drivers/net/bonding/bond_alb.c struct slave *slave; slave 950 drivers/net/bonding/bond_alb.c struct slave *slave = data->slave; slave 957 drivers/net/bonding/bond_alb.c alb_send_lp_vid(slave, mac_addr, slave 961 drivers/net/bonding/bond_alb.c alb_send_lp_vid(slave, upper->dev_addr, slave 974 drivers/net/bonding/bond_alb.c alb_send_lp_vid(slave, upper->dev_addr, slave 982 drivers/net/bonding/bond_alb.c static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[], slave 985 drivers/net/bonding/bond_alb.c struct bonding *bond = bond_get_bond_by_slave(slave); slave 989 drivers/net/bonding/bond_alb.c .slave = slave, slave 994 drivers/net/bonding/bond_alb.c alb_send_lp_vid(slave, mac_addr, 0, 0); slave 1004 drivers/net/bonding/bond_alb.c static int alb_set_slave_mac_addr(struct slave *slave, u8 addr[], slave 1007 drivers/net/bonding/bond_alb.c struct net_device *dev = slave->dev; slave 1010 drivers/net/bonding/bond_alb.c if (BOND_MODE(slave->bond) == BOND_MODE_TLB) { slave 1021 drivers/net/bonding/bond_alb.c slave_err(slave->bond->dev, dev, "dev_set_mac_address on slave failed! ALB mode requires that the base driver support setting the hw address also when the network device's interface is open\n"); slave 1031 drivers/net/bonding/bond_alb.c static void alb_swap_mac_addr(struct slave *slave1, struct slave *slave2) slave 1048 drivers/net/bonding/bond_alb.c static void alb_fasten_mac_swap(struct bonding *bond, struct slave *slave1, slave 1049 drivers/net/bonding/bond_alb.c struct slave *slave2) slave 1052 drivers/net/bonding/bond_alb.c struct slave *disabled_slave = NULL; slave 1102 drivers/net/bonding/bond_alb.c static void alb_change_hw_addr_on_detach(struct bonding *bond, struct slave *slave) slave 1106 drivers/net/bonding/bond_alb.c struct slave *found_slave; slave 1108 drivers/net/bonding/bond_alb.c perm_curr_diff = !ether_addr_equal_64bits(slave->perm_hwaddr, slave 1109 drivers/net/bonding/bond_alb.c slave->dev->dev_addr); slave 1110 drivers/net/bonding/bond_alb.c perm_bond_diff = !ether_addr_equal_64bits(slave->perm_hwaddr, slave 1114 drivers/net/bonding/bond_alb.c found_slave = bond_slave_has_mac(bond, slave->perm_hwaddr); slave 1117 drivers/net/bonding/bond_alb.c alb_swap_mac_addr(slave, found_slave); slave 1118 drivers/net/bonding/bond_alb.c alb_fasten_mac_swap(bond, slave, found_slave); slave 1145 drivers/net/bonding/bond_alb.c static int alb_handle_addr_collision_on_attach(struct bonding *bond, struct slave *slave) slave 1147 drivers/net/bonding/bond_alb.c struct slave *has_bond_addr = rcu_access_pointer(bond->curr_active_slave); slave 1148 drivers/net/bonding/bond_alb.c struct slave *tmp_slave1, *free_mac_slave = NULL; slave 1160 drivers/net/bonding/bond_alb.c if (!ether_addr_equal_64bits(slave->perm_hwaddr, bond->dev->dev_addr)) { slave 1161 drivers/net/bonding/bond_alb.c if (!bond_slave_has_mac(bond, slave->dev->dev_addr)) slave 1167 drivers/net/bonding/bond_alb.c alb_set_slave_mac_addr(slave, bond->dev->dev_addr, slave 1193 drivers/net/bonding/bond_alb.c alb_set_slave_mac_addr(slave, free_mac_slave->perm_hwaddr, slave 1196 drivers/net/bonding/bond_alb.c slave_warn(bond->dev, slave->dev, "the slave hw address is in use by the bond; giving it the hw address of %s\n", slave 1200 drivers/net/bonding/bond_alb.c slave_err(bond->dev, slave->dev, "the slave hw address is in use by the bond; couldn't find a slave with a free hw address to give it (this should not have happened)\n"); slave 1223 drivers/net/bonding/bond_alb.c struct slave *slave, *rollback_slave; slave 1232 drivers/net/bonding/bond_alb.c bond_for_each_slave(bond, slave, iter) { slave 1234 drivers/net/bonding/bond_alb.c bond_hw_addr_copy(tmp_addr, slave->dev->dev_addr, slave 1235 drivers/net/bonding/bond_alb.c slave->dev->addr_len); slave 1237 drivers/net/bonding/bond_alb.c res = dev_set_mac_address(slave->dev, addr, NULL); slave 1240 drivers/net/bonding/bond_alb.c bond_hw_addr_copy(slave->dev->dev_addr, tmp_addr, slave 1241 drivers/net/bonding/bond_alb.c slave->dev->addr_len); slave 1255 drivers/net/bonding/bond_alb.c if (rollback_slave == slave) slave 1303 drivers/net/bonding/bond_alb.c struct slave *tx_slave) slave 1341 drivers/net/bonding/bond_alb.c struct slave *tx_slave = NULL; slave 1380 drivers/net/bonding/bond_alb.c struct slave *tx_slave = NULL; slave 1514 drivers/net/bonding/bond_alb.c struct slave *slave; slave 1531 drivers/net/bonding/bond_alb.c bond_for_each_slave_rcu(bond, slave, iter) { slave 1537 drivers/net/bonding/bond_alb.c strict_match = (slave != rcu_access_pointer(bond->curr_active_slave) || slave 1539 drivers/net/bonding/bond_alb.c alb_send_learning_packets(slave, slave->dev->dev_addr, slave 1547 drivers/net/bonding/bond_alb.c bond_for_each_slave_rcu(bond, slave, iter) { slave 1548 drivers/net/bonding/bond_alb.c tlb_clear_slave(bond, slave, 1); slave 1549 drivers/net/bonding/bond_alb.c if (slave == rcu_access_pointer(bond->curr_active_slave)) { slave 1550 drivers/net/bonding/bond_alb.c SLAVE_TLB_INFO(slave).load = slave 1610 drivers/net/bonding/bond_alb.c int bond_alb_init_slave(struct bonding *bond, struct slave *slave) slave 1614 drivers/net/bonding/bond_alb.c res = alb_set_slave_mac_addr(slave, slave->perm_hwaddr, slave 1615 drivers/net/bonding/bond_alb.c slave->dev->addr_len); slave 1619 drivers/net/bonding/bond_alb.c res = alb_handle_addr_collision_on_attach(bond, slave); slave 1623 drivers/net/bonding/bond_alb.c tlb_init_slave(slave); slave 1639 drivers/net/bonding/bond_alb.c void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave) slave 1642 drivers/net/bonding/bond_alb.c alb_change_hw_addr_on_detach(bond, slave); slave 1644 drivers/net/bonding/bond_alb.c tlb_clear_slave(bond, slave, 0); slave 1648 drivers/net/bonding/bond_alb.c rlb_clear_slave(bond, slave); slave 1653 drivers/net/bonding/bond_alb.c void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link) slave 1658 drivers/net/bonding/bond_alb.c tlb_clear_slave(bond, slave, 0); slave 1660 drivers/net/bonding/bond_alb.c rlb_clear_slave(bond, slave); slave 1690 drivers/net/bonding/bond_alb.c void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave) slave 1692 drivers/net/bonding/bond_alb.c struct slave *swap_slave; slave 1693 drivers/net/bonding/bond_alb.c struct slave *curr_active; slave 1765 drivers/net/bonding/bond_alb.c struct slave *curr_active; slave 1766 drivers/net/bonding/bond_alb.c struct slave *swap_slave; slave 41 drivers/net/bonding/bond_debugfs.c client_info->slave->dev->name); slave 283 drivers/net/bonding/bond_main.c struct slave *slave, *rollback_slave; slave 287 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 288 drivers/net/bonding/bond_main.c res = vlan_vid_add(slave->dev, proto, vid); slave 298 drivers/net/bonding/bond_main.c if (rollback_slave == slave) slave 317 drivers/net/bonding/bond_main.c struct slave *slave; slave 319 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) slave 320 drivers/net/bonding/bond_main.c vlan_vid_del(slave->dev, proto, vid); slave 339 drivers/net/bonding/bond_main.c struct slave *slave; slave 347 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 348 drivers/net/bonding/bond_main.c if (slave->link == BOND_LINK_UP) { slave 371 drivers/net/bonding/bond_main.c static int bond_update_speed_duplex(struct slave *slave) slave 373 drivers/net/bonding/bond_main.c struct net_device *slave_dev = slave->dev; slave 377 drivers/net/bonding/bond_main.c slave->speed = SPEED_UNKNOWN; slave 378 drivers/net/bonding/bond_main.c slave->duplex = DUPLEX_UNKNOWN; slave 393 drivers/net/bonding/bond_main.c slave->speed = ecmd.base.speed; slave 394 drivers/net/bonding/bond_main.c slave->duplex = ecmd.base.duplex; slave 491 drivers/net/bonding/bond_main.c struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); slave 496 drivers/net/bonding/bond_main.c struct slave *slave; slave 498 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 499 drivers/net/bonding/bond_main.c err = dev_set_promiscuity(slave->dev, inc); slave 514 drivers/net/bonding/bond_main.c struct slave *curr_active = rtnl_dereference(bond->curr_active_slave); slave 519 drivers/net/bonding/bond_main.c struct slave *slave; slave 521 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 522 drivers/net/bonding/bond_main.c err = dev_set_allmulti(slave->dev, inc); slave 576 drivers/net/bonding/bond_main.c static void bond_hw_addr_swap(struct bonding *bond, struct slave *new_active, slave 577 drivers/net/bonding/bond_main.c struct slave *old_active) slave 628 drivers/net/bonding/bond_main.c static struct slave *bond_get_old_active(struct bonding *bond, slave 629 drivers/net/bonding/bond_main.c struct slave *new_active) slave 631 drivers/net/bonding/bond_main.c struct slave *slave; slave 634 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 635 drivers/net/bonding/bond_main.c if (slave == new_active) slave 638 drivers/net/bonding/bond_main.c if (ether_addr_equal(bond->dev->dev_addr, slave->dev->dev_addr)) slave 639 drivers/net/bonding/bond_main.c return slave; slave 652 drivers/net/bonding/bond_main.c struct slave *new_active, slave 653 drivers/net/bonding/bond_main.c struct slave *old_active) slave 722 drivers/net/bonding/bond_main.c static struct slave *bond_choose_primary_or_current(struct bonding *bond) slave 724 drivers/net/bonding/bond_main.c struct slave *prim = rtnl_dereference(bond->primary_slave); slave 725 drivers/net/bonding/bond_main.c struct slave *curr = rtnl_dereference(bond->curr_active_slave); slave 764 drivers/net/bonding/bond_main.c static struct slave *bond_find_best_slave(struct bonding *bond) slave 766 drivers/net/bonding/bond_main.c struct slave *slave, *bestslave = NULL; slave 770 drivers/net/bonding/bond_main.c slave = bond_choose_primary_or_current(bond); slave 771 drivers/net/bonding/bond_main.c if (slave) slave 772 drivers/net/bonding/bond_main.c return slave; slave 774 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 775 drivers/net/bonding/bond_main.c if (slave->link == BOND_LINK_UP) slave 776 drivers/net/bonding/bond_main.c return slave; slave 777 drivers/net/bonding/bond_main.c if (slave->link == BOND_LINK_BACK && bond_slave_is_up(slave) && slave 778 drivers/net/bonding/bond_main.c slave->delay < mintime) { slave 779 drivers/net/bonding/bond_main.c mintime = slave->delay; slave 780 drivers/net/bonding/bond_main.c bestslave = slave; slave 789 drivers/net/bonding/bond_main.c struct slave *slave; slave 792 drivers/net/bonding/bond_main.c slave = rcu_dereference(bond->curr_active_slave); slave 796 drivers/net/bonding/bond_main.c slave ? slave->dev->name : "NULL"); slave 798 drivers/net/bonding/bond_main.c if (!slave || !bond->send_peer_notif || slave 802 drivers/net/bonding/bond_main.c test_bit(__LINK_STATE_LINKWATCH_PENDING, &slave->dev->state)) slave 823 drivers/net/bonding/bond_main.c void bond_change_active_slave(struct bonding *bond, struct slave *new_active) slave 825 drivers/net/bonding/bond_main.c struct slave *old_active; slave 932 drivers/net/bonding/bond_main.c struct slave *best_slave; slave 952 drivers/net/bonding/bond_main.c static inline int slave_enable_netpoll(struct slave *slave) slave 962 drivers/net/bonding/bond_main.c err = __netpoll_setup(np, slave->dev); slave 967 drivers/net/bonding/bond_main.c slave->np = np; slave 971 drivers/net/bonding/bond_main.c static inline void slave_disable_netpoll(struct slave *slave) slave 973 drivers/net/bonding/bond_main.c struct netpoll *np = slave->np; slave 978 drivers/net/bonding/bond_main.c slave->np = NULL; slave 986 drivers/net/bonding/bond_main.c struct slave *slave = NULL; slave 994 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 995 drivers/net/bonding/bond_main.c if (!bond_slave_is_up(slave)) slave 1000 drivers/net/bonding/bond_main.c SLAVE_AD_INFO(slave)->port.aggregator; slave 1007 drivers/net/bonding/bond_main.c netpoll_poll_dev(slave->dev); slave 1015 drivers/net/bonding/bond_main.c struct slave *slave; slave 1017 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) slave 1018 drivers/net/bonding/bond_main.c if (bond_slave_is_up(slave)) slave 1019 drivers/net/bonding/bond_main.c slave_disable_netpoll(slave); slave 1026 drivers/net/bonding/bond_main.c struct slave *slave; slave 1029 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 1030 drivers/net/bonding/bond_main.c err = slave_enable_netpoll(slave); slave 1039 drivers/net/bonding/bond_main.c static inline int slave_enable_netpoll(struct slave *slave) slave 1043 drivers/net/bonding/bond_main.c static inline void slave_disable_netpoll(struct slave *slave) slave 1059 drivers/net/bonding/bond_main.c struct slave *slave; slave 1066 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 1068 drivers/net/bonding/bond_main.c slave->dev->features, slave 1095 drivers/net/bonding/bond_main.c struct slave *slave; slave 1105 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 1107 drivers/net/bonding/bond_main.c slave->dev->vlan_features, BOND_VLAN_FEATURES); slave 1110 drivers/net/bonding/bond_main.c slave->dev->hw_enc_features, slave 1114 drivers/net/bonding/bond_main.c slave->dev->mpls_features, slave 1117 drivers/net/bonding/bond_main.c dst_release_flag &= slave->dev->priv_flags; slave 1118 drivers/net/bonding/bond_main.c if (slave->dev->hard_header_len > max_hard_header_len) slave 1119 drivers/net/bonding/bond_main.c max_hard_header_len = slave->dev->hard_header_len; slave 1121 drivers/net/bonding/bond_main.c gso_max_size = min(gso_max_size, slave->dev->gso_max_size); slave 1122 drivers/net/bonding/bond_main.c gso_max_segs = min(gso_max_segs, slave->dev->gso_max_segs); slave 1161 drivers/net/bonding/bond_main.c struct slave *slave, slave 1164 drivers/net/bonding/bond_main.c if (bond_is_slave_inactive(slave)) { slave 1177 drivers/net/bonding/bond_main.c struct slave *slave; slave 1180 drivers/net/bonding/bond_main.c struct slave *); slave 1189 drivers/net/bonding/bond_main.c slave = bond_slave_get_rcu(skb->dev); slave 1190 drivers/net/bonding/bond_main.c bond = slave->bond; slave 1194 drivers/net/bonding/bond_main.c ret = recv_probe(skb, bond, slave); slave 1212 drivers/net/bonding/bond_main.c if (bond_should_deliver_exact_match(skb, slave, bond)) { slave 1275 drivers/net/bonding/bond_main.c static int bond_master_upper_dev_link(struct bonding *bond, struct slave *slave, slave 1285 drivers/net/bonding/bond_main.c return netdev_master_upper_dev_link(slave->dev, bond->dev, slave, slave 1289 drivers/net/bonding/bond_main.c static void bond_upper_dev_unlink(struct bonding *bond, struct slave *slave) slave 1291 drivers/net/bonding/bond_main.c netdev_upper_dev_unlink(slave->dev, bond->dev); slave 1292 drivers/net/bonding/bond_main.c slave->dev->flags &= ~IFF_SLAVE; slave 1295 drivers/net/bonding/bond_main.c static struct slave *bond_alloc_slave(struct bonding *bond) slave 1297 drivers/net/bonding/bond_main.c struct slave *slave = NULL; slave 1299 drivers/net/bonding/bond_main.c slave = kzalloc(sizeof(*slave), GFP_KERNEL); slave 1300 drivers/net/bonding/bond_main.c if (!slave) slave 1304 drivers/net/bonding/bond_main.c SLAVE_AD_INFO(slave) = kzalloc(sizeof(struct ad_slave_info), slave 1306 drivers/net/bonding/bond_main.c if (!SLAVE_AD_INFO(slave)) { slave 1307 drivers/net/bonding/bond_main.c kfree(slave); slave 1311 drivers/net/bonding/bond_main.c INIT_DELAYED_WORK(&slave->notify_work, bond_netdev_notify_work); slave 1313 drivers/net/bonding/bond_main.c return slave; slave 1316 drivers/net/bonding/bond_main.c static void bond_free_slave(struct slave *slave) slave 1318 drivers/net/bonding/bond_main.c struct bonding *bond = bond_get_bond_by_slave(slave); slave 1320 drivers/net/bonding/bond_main.c cancel_delayed_work_sync(&slave->notify_work); slave 1322 drivers/net/bonding/bond_main.c kfree(SLAVE_AD_INFO(slave)); slave 1324 drivers/net/bonding/bond_main.c kfree(slave); slave 1334 drivers/net/bonding/bond_main.c static void bond_fill_ifslave(struct slave *slave, struct ifslave *info) slave 1336 drivers/net/bonding/bond_main.c strcpy(info->slave_name, slave->dev->name); slave 1337 drivers/net/bonding/bond_main.c info->link = slave->link; slave 1338 drivers/net/bonding/bond_main.c info->state = bond_slave_state(slave); slave 1339 drivers/net/bonding/bond_main.c info->link_failure_count = slave->link_failure_count; slave 1344 drivers/net/bonding/bond_main.c struct slave *slave = container_of(_work, struct slave, slave 1350 drivers/net/bonding/bond_main.c bond_fill_ifslave(slave, &binfo.slave); slave 1351 drivers/net/bonding/bond_main.c bond_fill_ifbond(slave->bond, &binfo.master); slave 1352 drivers/net/bonding/bond_main.c netdev_bonding_info_change(slave->dev, &binfo); slave 1355 drivers/net/bonding/bond_main.c queue_delayed_work(slave->bond->wq, &slave->notify_work, 1); slave 1359 drivers/net/bonding/bond_main.c void bond_queue_slave_event(struct slave *slave) slave 1361 drivers/net/bonding/bond_main.c queue_delayed_work(slave->bond->wq, &slave->notify_work, 0); slave 1364 drivers/net/bonding/bond_main.c void bond_lower_state_changed(struct slave *slave) slave 1368 drivers/net/bonding/bond_main.c info.link_up = slave->link == BOND_LINK_UP || slave 1369 drivers/net/bonding/bond_main.c slave->link == BOND_LINK_FAIL; slave 1370 drivers/net/bonding/bond_main.c info.tx_enabled = bond_is_active_slave(slave); slave 1371 drivers/net/bonding/bond_main.c netdev_lower_state_changed(slave->dev, &info); slave 1380 drivers/net/bonding/bond_main.c struct slave *new_slave = NULL, *prev_slave; slave 1874 drivers/net/bonding/bond_main.c struct slave *slave, *oldcurrent; slave 1888 drivers/net/bonding/bond_main.c slave = bond_get_slave_by_dev(bond, slave_dev); slave 1889 drivers/net/bonding/bond_main.c if (!slave) { slave 1896 drivers/net/bonding/bond_main.c bond_set_slave_inactive_flags(slave, BOND_SLAVE_NOTIFY_NOW); slave 1898 drivers/net/bonding/bond_main.c bond_sysfs_slave_del(slave); slave 1903 drivers/net/bonding/bond_main.c bond_upper_dev_unlink(bond, slave); slave 1910 drivers/net/bonding/bond_main.c bond_3ad_unbind_slave(slave); slave 1913 drivers/net/bonding/bond_main.c bond_update_slave_arr(bond, slave); slave 1916 drivers/net/bonding/bond_main.c bond_is_active_slave(slave) ? "active" : "backup"); slave 1924 drivers/net/bonding/bond_main.c if (ether_addr_equal_64bits(bond_dev->dev_addr, slave->perm_hwaddr) && slave 1927 drivers/net/bonding/bond_main.c slave->perm_hwaddr); slave 1930 drivers/net/bonding/bond_main.c if (rtnl_dereference(bond->primary_slave) == slave) slave 1933 drivers/net/bonding/bond_main.c if (oldcurrent == slave) slave 1942 drivers/net/bonding/bond_main.c bond_alb_deinit_slave(bond, slave); slave 1947 drivers/net/bonding/bond_main.c } else if (oldcurrent == slave) { slave 1997 drivers/net/bonding/bond_main.c slave_disable_netpoll(slave); slave 2005 drivers/net/bonding/bond_main.c bond_hw_addr_copy(ss.__data, slave->perm_hwaddr, slave 2006 drivers/net/bonding/bond_main.c slave->dev->addr_len); slave 2012 drivers/net/bonding/bond_main.c __dev_set_mtu(slave_dev, slave->original_mtu); slave 2014 drivers/net/bonding/bond_main.c dev_set_mtu(slave_dev, slave->original_mtu); slave 2019 drivers/net/bonding/bond_main.c bond_free_slave(slave); slave 2060 drivers/net/bonding/bond_main.c struct slave *slave; slave 2062 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 2065 drivers/net/bonding/bond_main.c bond_fill_ifslave(slave, info); slave 2080 drivers/net/bonding/bond_main.c struct slave *slave; slave 2085 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2086 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_NOCHANGE); slave 2088 drivers/net/bonding/bond_main.c link_state = bond_check_dev_link(bond, slave->dev, 0); slave 2090 drivers/net/bonding/bond_main.c switch (slave->link) { slave 2095 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_FAIL); slave 2097 drivers/net/bonding/bond_main.c slave->delay = bond->params.downdelay; slave 2098 drivers/net/bonding/bond_main.c if (slave->delay) { slave 2099 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status down for %sinterface, disabling it in %d ms\n", slave 2102 drivers/net/bonding/bond_main.c (bond_is_active_slave(slave) ? slave 2110 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_UP); slave 2111 drivers/net/bonding/bond_main.c slave->last_link_up = jiffies; slave 2112 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status up again after %d ms\n", slave 2113 drivers/net/bonding/bond_main.c (bond->params.downdelay - slave->delay) * slave 2119 drivers/net/bonding/bond_main.c if (slave->delay <= 0) { slave 2120 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_DOWN); slave 2125 drivers/net/bonding/bond_main.c slave->delay--; slave 2132 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_BACK); slave 2134 drivers/net/bonding/bond_main.c slave->delay = bond->params.updelay; slave 2136 drivers/net/bonding/bond_main.c if (slave->delay) { slave 2137 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status up, enabling it in %d ms\n", slave 2145 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_DOWN); slave 2146 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status down again after %d ms\n", slave 2147 drivers/net/bonding/bond_main.c (bond->params.updelay - slave->delay) * slave 2154 drivers/net/bonding/bond_main.c slave->delay = 0; slave 2156 drivers/net/bonding/bond_main.c if (slave->delay <= 0) { slave 2157 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_UP); slave 2163 drivers/net/bonding/bond_main.c slave->delay--; slave 2172 drivers/net/bonding/bond_main.c struct slave *slave, slave 2177 drivers/net/bonding/bond_main.c bond_3ad_handle_link_change(slave, link); slave 2181 drivers/net/bonding/bond_main.c bond_alb_handle_link_change(bond, slave, link); slave 2192 drivers/net/bonding/bond_main.c struct slave *slave, *primary; slave 2194 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 2195 drivers/net/bonding/bond_main.c switch (slave->link_new_state) { slave 2204 drivers/net/bonding/bond_main.c slave->link == BOND_LINK_UP) slave 2205 drivers/net/bonding/bond_main.c bond_3ad_adapter_speed_duplex_changed(slave); slave 2209 drivers/net/bonding/bond_main.c if (bond_update_speed_duplex(slave) && slave 2211 drivers/net/bonding/bond_main.c slave->link = BOND_LINK_DOWN; slave 2213 drivers/net/bonding/bond_main.c slave_warn(bond->dev, slave->dev, slave 2217 drivers/net/bonding/bond_main.c bond_set_slave_link_state(slave, BOND_LINK_UP, slave 2219 drivers/net/bonding/bond_main.c slave->last_link_up = jiffies; slave 2224 drivers/net/bonding/bond_main.c bond_set_backup_slave(slave); slave 2227 drivers/net/bonding/bond_main.c bond_set_active_slave(slave); slave 2230 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status definitely up, %u Mbps %s duplex\n", slave 2231 drivers/net/bonding/bond_main.c slave->speed == SPEED_UNKNOWN ? 0 : slave->speed, slave 2232 drivers/net/bonding/bond_main.c slave->duplex ? "full" : "half"); slave 2234 drivers/net/bonding/bond_main.c bond_miimon_link_change(bond, slave, BOND_LINK_UP); slave 2236 drivers/net/bonding/bond_main.c if (!bond->curr_active_slave || slave == primary) slave 2242 drivers/net/bonding/bond_main.c if (slave->link_failure_count < UINT_MAX) slave 2243 drivers/net/bonding/bond_main.c slave->link_failure_count++; slave 2245 drivers/net/bonding/bond_main.c bond_set_slave_link_state(slave, BOND_LINK_DOWN, slave 2250 drivers/net/bonding/bond_main.c bond_set_slave_inactive_flags(slave, slave 2253 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status definitely down, disabling slave\n"); slave 2255 drivers/net/bonding/bond_main.c bond_miimon_link_change(bond, slave, BOND_LINK_DOWN); slave 2257 drivers/net/bonding/bond_main.c if (slave == rcu_access_pointer(bond->curr_active_slave)) slave 2263 drivers/net/bonding/bond_main.c slave_err(bond->dev, slave->dev, "invalid new link %d on slave\n", slave 2264 drivers/net/bonding/bond_main.c slave->link_new_state); slave 2265 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_NOCHANGE); slave 2293 drivers/net/bonding/bond_main.c struct slave *slave; slave 2322 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 2323 drivers/net/bonding/bond_main.c bond_commit_link_state(slave, BOND_SLAVE_NOTIFY_LATER); slave 2368 drivers/net/bonding/bond_main.c static void bond_arp_send(struct slave *slave, int arp_op, __be32 dest_ip, slave 2373 drivers/net/bonding/bond_main.c struct net_device *slave_dev = slave->dev; slave 2374 drivers/net/bonding/bond_main.c struct net_device *bond_dev = slave->bond->dev; slave 2462 drivers/net/bonding/bond_main.c static void bond_arp_send_all(struct bonding *bond, struct slave *slave) slave 2470 drivers/net/bonding/bond_main.c slave_dbg(bond->dev, slave->dev, "%s: target %pI4\n", slave 2485 drivers/net/bonding/bond_main.c bond_arp_send(slave, ARPOP_REQUEST, targets[i], slave 2502 drivers/net/bonding/bond_main.c slave_dbg(bond->dev, slave->dev, "no path to arp_ip_target %pI4 via rt.dev %s\n", slave 2511 drivers/net/bonding/bond_main.c bond_arp_send(slave, ARPOP_REQUEST, targets[i], addr, tags); slave 2516 drivers/net/bonding/bond_main.c static void bond_validate_arp(struct bonding *bond, struct slave *slave, __be32 sip, __be32 tip) slave 2521 drivers/net/bonding/bond_main.c slave_dbg(bond->dev, slave->dev, "%s: sip %pI4 tip %pI4 not found\n", slave 2528 drivers/net/bonding/bond_main.c slave_dbg(bond->dev, slave->dev, "%s: sip %pI4 not found in targets\n", slave 2532 drivers/net/bonding/bond_main.c slave->last_rx = jiffies; slave 2533 drivers/net/bonding/bond_main.c slave->target_last_arp_rx[i] = jiffies; slave 2537 drivers/net/bonding/bond_main.c struct slave *slave) slave 2540 drivers/net/bonding/bond_main.c struct slave *curr_active_slave, *curr_arp_slave; slave 2546 drivers/net/bonding/bond_main.c if (!slave_do_arp_validate(bond, slave)) { slave 2549 drivers/net/bonding/bond_main.c slave->last_rx = jiffies; slave 2557 drivers/net/bonding/bond_main.c slave_dbg(bond->dev, slave->dev, "%s: skb->dev %s\n", slave 2582 drivers/net/bonding/bond_main.c slave_dbg(bond->dev, slave->dev, "%s: %s/%d av %d sv %d sip %pI4 tip %pI4\n", slave 2583 drivers/net/bonding/bond_main.c __func__, slave->dev->name, bond_slave_state(slave), slave 2584 drivers/net/bonding/bond_main.c bond->params.arp_validate, slave_do_arp_validate(bond, slave), slave 2613 drivers/net/bonding/bond_main.c if (bond_is_active_slave(slave)) slave 2614 drivers/net/bonding/bond_main.c bond_validate_arp(bond, slave, sip, tip); slave 2618 drivers/net/bonding/bond_main.c bond_validate_arp(bond, slave, tip, sip); slave 2622 drivers/net/bonding/bond_main.c bond_validate_arp(bond, slave, sip, tip); slave 2652 drivers/net/bonding/bond_main.c struct slave *slave, *oldcurrent; slave 2670 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2671 drivers/net/bonding/bond_main.c unsigned long trans_start = dev_trans_start(slave->dev); slave 2673 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_NOCHANGE); slave 2675 drivers/net/bonding/bond_main.c if (slave->link != BOND_LINK_UP) { slave 2677 drivers/net/bonding/bond_main.c bond_time_in_interval(bond, slave->last_rx, 1)) { slave 2679 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_UP); slave 2688 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status definitely up\n"); slave 2691 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "interface is now up\n"); slave 2702 drivers/net/bonding/bond_main.c !bond_time_in_interval(bond, slave->last_rx, 2)) { slave 2704 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_DOWN); slave 2707 drivers/net/bonding/bond_main.c if (slave->link_failure_count < UINT_MAX) slave 2708 drivers/net/bonding/bond_main.c slave->link_failure_count++; slave 2710 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "interface is now down\n"); slave 2712 drivers/net/bonding/bond_main.c if (slave == oldcurrent) slave 2724 drivers/net/bonding/bond_main.c if (bond_slave_is_up(slave)) slave 2725 drivers/net/bonding/bond_main.c bond_arp_send_all(bond, slave); slave 2734 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 2735 drivers/net/bonding/bond_main.c if (slave->link_new_state != BOND_LINK_NOCHANGE) slave 2736 drivers/net/bonding/bond_main.c slave->link = slave->link_new_state; slave 2769 drivers/net/bonding/bond_main.c struct slave *slave; slave 2772 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2773 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_NOCHANGE); slave 2774 drivers/net/bonding/bond_main.c last_rx = slave_last_rx(bond, slave); slave 2776 drivers/net/bonding/bond_main.c if (slave->link != BOND_LINK_UP) { slave 2778 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_UP); slave 2788 drivers/net/bonding/bond_main.c if (bond_time_in_interval(bond, slave->last_link_up, 2)) slave 2803 drivers/net/bonding/bond_main.c if (!bond_is_active_slave(slave) && slave 2806 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_DOWN); slave 2815 drivers/net/bonding/bond_main.c trans_start = dev_trans_start(slave->dev); slave 2816 drivers/net/bonding/bond_main.c if (bond_is_active_slave(slave) && slave 2819 drivers/net/bonding/bond_main.c bond_propose_link_state(slave, BOND_LINK_DOWN); slave 2836 drivers/net/bonding/bond_main.c struct slave *slave; slave 2838 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 2839 drivers/net/bonding/bond_main.c switch (slave->link_new_state) { slave 2844 drivers/net/bonding/bond_main.c trans_start = dev_trans_start(slave->dev); slave 2845 drivers/net/bonding/bond_main.c if (rtnl_dereference(bond->curr_active_slave) != slave || slave 2848 drivers/net/bonding/bond_main.c struct slave *current_arp_slave; slave 2851 drivers/net/bonding/bond_main.c bond_set_slave_link_state(slave, BOND_LINK_UP, slave 2860 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status definitely up\n"); slave 2863 drivers/net/bonding/bond_main.c slave == rtnl_dereference(bond->primary_slave)) slave 2871 drivers/net/bonding/bond_main.c if (slave->link_failure_count < UINT_MAX) slave 2872 drivers/net/bonding/bond_main.c slave->link_failure_count++; slave 2874 drivers/net/bonding/bond_main.c bond_set_slave_link_state(slave, BOND_LINK_DOWN, slave 2876 drivers/net/bonding/bond_main.c bond_set_slave_inactive_flags(slave, slave 2879 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "link status definitely down, disabling slave\n"); slave 2881 drivers/net/bonding/bond_main.c if (slave == rtnl_dereference(bond->curr_active_slave)) { slave 2889 drivers/net/bonding/bond_main.c slave_err(bond->dev, slave->dev, slave 2891 drivers/net/bonding/bond_main.c slave->link_new_state); slave 2910 drivers/net/bonding/bond_main.c struct slave *slave, *before = NULL, *new_slave = NULL, slave 2940 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2941 drivers/net/bonding/bond_main.c if (!found && !before && bond_slave_is_up(slave)) slave 2942 drivers/net/bonding/bond_main.c before = slave; slave 2944 drivers/net/bonding/bond_main.c if (found && !new_slave && bond_slave_is_up(slave)) slave 2945 drivers/net/bonding/bond_main.c new_slave = slave; slave 2953 drivers/net/bonding/bond_main.c if (!bond_slave_is_up(slave) && slave->link == BOND_LINK_UP) { slave 2954 drivers/net/bonding/bond_main.c bond_set_slave_link_state(slave, BOND_LINK_DOWN, slave 2956 drivers/net/bonding/bond_main.c if (slave->link_failure_count < UINT_MAX) slave 2957 drivers/net/bonding/bond_main.c slave->link_failure_count++; slave 2959 drivers/net/bonding/bond_main.c bond_set_slave_inactive_flags(slave, slave 2962 drivers/net/bonding/bond_main.c slave_info(bond->dev, slave->dev, "backup interface is now down\n"); slave 2964 drivers/net/bonding/bond_main.c if (slave == curr_arp_slave) slave 2982 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 2983 drivers/net/bonding/bond_main.c if (slave->should_notify || slave->should_notify_link) { slave 3095 drivers/net/bonding/bond_main.c struct slave *slave = bond_slave_get_rtnl(slave_dev), *primary; slave 3103 drivers/net/bonding/bond_main.c if (!slave) { slave 3108 drivers/net/bonding/bond_main.c bond_dev = slave->bond->dev; slave 3109 drivers/net/bonding/bond_main.c bond = slave->bond; slave 3130 drivers/net/bonding/bond_main.c if (bond_update_speed_duplex(slave) && slave 3132 drivers/net/bonding/bond_main.c if (slave->last_link_up) slave 3133 drivers/net/bonding/bond_main.c slave->link = BOND_LINK_FAIL; slave 3135 drivers/net/bonding/bond_main.c slave->link = BOND_LINK_DOWN; slave 3139 drivers/net/bonding/bond_main.c bond_3ad_adapter_speed_duplex_changed(slave); slave 3172 drivers/net/bonding/bond_main.c if (slave == primary) { slave 3177 drivers/net/bonding/bond_main.c rcu_assign_pointer(bond->primary_slave, slave); slave 3194 drivers/net/bonding/bond_main.c call_netdevice_notifiers(event, slave->bond->dev); slave 3350 drivers/net/bonding/bond_main.c struct slave *slave; slave 3354 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 3356 drivers/net/bonding/bond_main.c slave != rcu_access_pointer(bond->curr_active_slave)) { slave 3357 drivers/net/bonding/bond_main.c bond_set_slave_inactive_flags(slave, slave 3360 drivers/net/bonding/bond_main.c bond_set_slave_active_flags(slave, slave 3486 drivers/net/bonding/bond_main.c struct slave *slave; slave 3498 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 3500 drivers/net/bonding/bond_main.c dev_get_stats(slave->dev, &temp); slave 3502 drivers/net/bonding/bond_main.c bond_fold_stats(stats, new, &slave->slave_stats); slave 3505 drivers/net/bonding/bond_main.c memcpy(&slave->slave_stats, new, sizeof(*new)); slave 3637 drivers/net/bonding/bond_main.c struct slave *slave; slave 3641 drivers/net/bonding/bond_main.c slave = rcu_dereference(bond->curr_active_slave); slave 3642 drivers/net/bonding/bond_main.c if (slave) { slave 3643 drivers/net/bonding/bond_main.c dev_uc_sync(slave->dev, bond_dev); slave 3644 drivers/net/bonding/bond_main.c dev_mc_sync(slave->dev, bond_dev); slave 3647 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 3648 drivers/net/bonding/bond_main.c dev_uc_sync_multiple(slave->dev, bond_dev); slave 3649 drivers/net/bonding/bond_main.c dev_mc_sync_multiple(slave->dev, bond_dev); slave 3660 drivers/net/bonding/bond_main.c struct slave *slave; slave 3664 drivers/net/bonding/bond_main.c slave = bond_first_slave_rcu(bond); slave 3665 drivers/net/bonding/bond_main.c if (!slave) slave 3667 drivers/net/bonding/bond_main.c slave_ops = slave->dev->netdev_ops; slave 3680 drivers/net/bonding/bond_main.c ret = slave_ops->ndo_neigh_setup(slave->dev, &parms); slave 3714 drivers/net/bonding/bond_main.c struct slave *slave, *rollback_slave; slave 3720 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 3721 drivers/net/bonding/bond_main.c slave_dbg(bond_dev, slave->dev, "s %p c_m %p\n", slave 3722 drivers/net/bonding/bond_main.c slave, slave->dev->netdev_ops->ndo_change_mtu); slave 3724 drivers/net/bonding/bond_main.c res = dev_set_mtu(slave->dev, new_mtu); slave 3735 drivers/net/bonding/bond_main.c slave_dbg(bond_dev, slave->dev, "err %d setting mtu to %d\n", slave 3750 drivers/net/bonding/bond_main.c if (rollback_slave == slave) slave 3771 drivers/net/bonding/bond_main.c struct slave *slave, *rollback_slave; slave 3792 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 3793 drivers/net/bonding/bond_main.c slave_dbg(bond_dev, slave->dev, "%s: slave=%p\n", slave 3794 drivers/net/bonding/bond_main.c __func__, slave); slave 3795 drivers/net/bonding/bond_main.c res = dev_set_mac_address(slave->dev, addr, NULL); slave 3803 drivers/net/bonding/bond_main.c slave_dbg(bond_dev, slave->dev, "%s: err %d\n", slave 3821 drivers/net/bonding/bond_main.c if (rollback_slave == slave) slave 3848 drivers/net/bonding/bond_main.c struct slave *slave; slave 3852 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 3854 drivers/net/bonding/bond_main.c if (bond_slave_can_tx(slave)) { slave 3855 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb, slave->dev); slave 3863 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 3866 drivers/net/bonding/bond_main.c if (bond_slave_can_tx(slave)) { slave 3867 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb, slave->dev); slave 3912 drivers/net/bonding/bond_main.c struct slave *slave; slave 3931 drivers/net/bonding/bond_main.c slave = rcu_dereference(bond->curr_active_slave); slave 3932 drivers/net/bonding/bond_main.c if (slave) slave 3933 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb, slave->dev); slave 3958 drivers/net/bonding/bond_main.c struct slave *slave; slave 3960 drivers/net/bonding/bond_main.c slave = rcu_dereference(bond->curr_active_slave); slave 3961 drivers/net/bonding/bond_main.c if (slave) slave 3962 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb, slave->dev); slave 4008 drivers/net/bonding/bond_main.c int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave) slave 4010 drivers/net/bonding/bond_main.c struct slave *slave; slave 4045 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 4049 drivers/net/bonding/bond_main.c agg = SLAVE_AD_INFO(slave)->port.aggregator; slave 4053 drivers/net/bonding/bond_main.c if (!bond_slave_can_tx(slave)) slave 4055 drivers/net/bonding/bond_main.c if (skipslave == slave) slave 4058 drivers/net/bonding/bond_main.c slave_dbg(bond->dev, slave->dev, "Adding slave to tx hash array[%d]\n", slave 4061 drivers/net/bonding/bond_main.c new_arr->arr[new_arr->count++] = slave; slave 4101 drivers/net/bonding/bond_main.c struct slave *slave; slave 4108 drivers/net/bonding/bond_main.c slave = slaves->arr[bond_xmit_hash(bond, skb) % count]; slave 4109 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb, slave->dev); slave 4122 drivers/net/bonding/bond_main.c struct slave *slave = NULL; slave 4125 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 4126 drivers/net/bonding/bond_main.c if (bond_is_last_slave(bond, slave)) slave 4128 drivers/net/bonding/bond_main.c if (bond_slave_is_up(slave) && slave->link == BOND_LINK_UP) { slave 4136 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb2, slave->dev); slave 4139 drivers/net/bonding/bond_main.c if (slave && bond_slave_is_up(slave) && slave->link == BOND_LINK_UP) slave 4140 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb, slave->dev); slave 4153 drivers/net/bonding/bond_main.c struct slave *slave = NULL; slave 4160 drivers/net/bonding/bond_main.c bond_for_each_slave_rcu(bond, slave, iter) { slave 4161 drivers/net/bonding/bond_main.c if (slave->queue_id == skb_get_queue_mapping(skb)) { slave 4162 drivers/net/bonding/bond_main.c if (bond_slave_is_up(slave) && slave 4163 drivers/net/bonding/bond_main.c slave->link == BOND_LINK_UP) { slave 4164 drivers/net/bonding/bond_main.c bond_dev_queue_xmit(bond, skb, slave->dev); slave 4255 drivers/net/bonding/bond_main.c struct slave *slave; slave 4265 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) { slave 4266 drivers/net/bonding/bond_main.c if (bond_slave_can_tx(slave)) { slave 4267 drivers/net/bonding/bond_main.c if (slave->speed != SPEED_UNKNOWN) slave 4268 drivers/net/bonding/bond_main.c speed += slave->speed; slave 4270 drivers/net/bonding/bond_main.c slave->duplex != DUPLEX_UNKNOWN) slave 4271 drivers/net/bonding/bond_main.c cmd->base.duplex = slave->duplex; slave 4387 drivers/net/bonding/bond_main.c struct slave *slave; slave 4393 drivers/net/bonding/bond_main.c bond_for_each_slave(bond, slave, iter) slave 4394 drivers/net/bonding/bond_main.c __bond_release_one(bond_dev, slave->dev, true, true); slave 36 drivers/net/bonding/bond_netlink.c struct slave *slave = bond_slave_get_rtnl(slave_dev); slave 38 drivers/net/bonding/bond_netlink.c if (nla_put_u8(skb, IFLA_BOND_SLAVE_STATE, bond_slave_state(slave))) slave 41 drivers/net/bonding/bond_netlink.c if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link)) slave 45 drivers/net/bonding/bond_netlink.c slave->link_failure_count)) slave 49 drivers/net/bonding/bond_netlink.c slave_dev->addr_len, slave->perm_hwaddr)) slave 52 drivers/net/bonding/bond_netlink.c if (nla_put_u16(skb, IFLA_BOND_SLAVE_QUEUE_ID, slave->queue_id)) slave 55 drivers/net/bonding/bond_netlink.c if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { slave 59 drivers/net/bonding/bond_netlink.c ad_port = &SLAVE_AD_INFO(slave)->port; slave 60 drivers/net/bonding/bond_netlink.c agg = SLAVE_AD_INFO(slave)->port.aggregator; slave 512 drivers/net/bonding/bond_netlink.c const struct net_device *slave; slave 516 drivers/net/bonding/bond_netlink.c slave = bond_option_active_slave_get_rcu(bond); slave 517 drivers/net/bonding/bond_netlink.c ifindex = slave ? slave->ifindex : 0; slave 529 drivers/net/bonding/bond_netlink.c struct slave *primary; slave 706 drivers/net/bonding/bond_netlink.c struct slave *slave = NULL; slave 715 drivers/net/bonding/bond_netlink.c slave = bond_slave_get_rtnl(dev); slave 716 drivers/net/bonding/bond_netlink.c if (!slave) slave 718 drivers/net/bonding/bond_netlink.c bond = slave->bond; slave 730 drivers/net/bonding/bond_netlink.c if (slave) slave 731 drivers/net/bonding/bond_netlink.c stats = &SLAVE_AD_INFO(slave)->stats; slave 812 drivers/net/bonding/bond_options.c struct slave *old_active = rtnl_dereference(bond->curr_active_slave); slave 813 drivers/net/bonding/bond_options.c struct slave *new_active = bond_slave_get_rtnl(slave_dev); slave 989 drivers/net/bonding/bond_options.c struct slave *slave; slave 992 drivers/net/bonding/bond_options.c bond_for_each_slave(bond, slave, iter) slave 993 drivers/net/bonding/bond_options.c slave->target_last_arp_rx[slot] = last_rx; slave 1037 drivers/net/bonding/bond_options.c struct slave *slave; slave 1059 drivers/net/bonding/bond_options.c bond_for_each_slave(bond, slave, iter) { slave 1060 drivers/net/bonding/bond_options.c targets_rx = slave->target_last_arp_rx; slave 1131 drivers/net/bonding/bond_options.c struct slave *slave; slave 1147 drivers/net/bonding/bond_options.c bond_for_each_slave(bond, slave, iter) { slave 1148 drivers/net/bonding/bond_options.c if (strncmp(slave->dev->name, primary, IFNAMSIZ) == 0) { slave 1149 drivers/net/bonding/bond_options.c slave_dbg(bond->dev, slave->dev, "Setting as primary slave\n"); slave 1150 drivers/net/bonding/bond_options.c rcu_assign_pointer(bond->primary_slave, slave); slave 1151 drivers/net/bonding/bond_options.c strcpy(bond->params.primary, slave->dev->name); slave 1231 drivers/net/bonding/bond_options.c struct slave *slave; slave 1236 drivers/net/bonding/bond_options.c bond_for_each_slave(bond, slave, iter) { slave 1237 drivers/net/bonding/bond_options.c if (!bond_is_active_slave(slave)) { slave 1239 drivers/net/bonding/bond_options.c slave->inactive = 0; slave 1241 drivers/net/bonding/bond_options.c slave->inactive = 1; slave 1311 drivers/net/bonding/bond_options.c struct slave *slave, *update_slave; slave 1342 drivers/net/bonding/bond_options.c bond_for_each_slave(bond, slave, iter) { slave 1343 drivers/net/bonding/bond_options.c if (sdev == slave->dev) slave 1347 drivers/net/bonding/bond_options.c update_slave = slave; slave 1348 drivers/net/bonding/bond_options.c else if (qid && qid == slave->queue_id) { slave 15 drivers/net/bonding/bond_procfs.c struct slave *slave; slave 23 drivers/net/bonding/bond_procfs.c bond_for_each_slave_rcu(bond, slave, iter) slave 25 drivers/net/bonding/bond_procfs.c return slave; slave 34 drivers/net/bonding/bond_procfs.c struct slave *slave; slave 41 drivers/net/bonding/bond_procfs.c bond_for_each_slave_rcu(bond, slave, iter) { slave 43 drivers/net/bonding/bond_procfs.c return slave; slave 44 drivers/net/bonding/bond_procfs.c if (slave == v) slave 61 drivers/net/bonding/bond_procfs.c struct slave *curr, *primary; slave 170 drivers/net/bonding/bond_procfs.c const struct slave *slave) slave 174 drivers/net/bonding/bond_procfs.c seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); slave 175 drivers/net/bonding/bond_procfs.c seq_printf(seq, "MII Status: %s\n", bond_slave_link_status(slave->link)); slave 176 drivers/net/bonding/bond_procfs.c if (slave->speed == SPEED_UNKNOWN) slave 179 drivers/net/bonding/bond_procfs.c seq_printf(seq, "Speed: %d Mbps\n", slave->speed); slave 181 drivers/net/bonding/bond_procfs.c if (slave->duplex == DUPLEX_UNKNOWN) slave 184 drivers/net/bonding/bond_procfs.c seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half"); slave 187 drivers/net/bonding/bond_procfs.c slave->link_failure_count); slave 190 drivers/net/bonding/bond_procfs.c slave->dev->addr_len, slave->perm_hwaddr); slave 191 drivers/net/bonding/bond_procfs.c seq_printf(seq, "Slave queue ID: %d\n", slave->queue_id); slave 194 drivers/net/bonding/bond_procfs.c const struct port *port = &SLAVE_AD_INFO(slave)->port; slave 170 drivers/net/bonding/bond_sysfs.c struct slave *slave; slave 176 drivers/net/bonding/bond_sysfs.c bond_for_each_slave(bond, slave, iter) { slave 184 drivers/net/bonding/bond_sysfs.c res += sprintf(buf + res, "%s ", slave->dev->name); slave 413 drivers/net/bonding/bond_sysfs.c struct slave *primary; slave 594 drivers/net/bonding/bond_sysfs.c struct slave *slave; slave 600 drivers/net/bonding/bond_sysfs.c bond_for_each_slave(bond, slave, iter) { slave 609 drivers/net/bonding/bond_sysfs.c slave->dev->name, slave->queue_id); slave 15 drivers/net/bonding/bond_sysfs_slave.c ssize_t (*show)(struct slave *, char *); slave 27 drivers/net/bonding/bond_sysfs_slave.c static ssize_t state_show(struct slave *slave, char *buf) slave 29 drivers/net/bonding/bond_sysfs_slave.c switch (bond_slave_state(slave)) { slave 40 drivers/net/bonding/bond_sysfs_slave.c static ssize_t mii_status_show(struct slave *slave, char *buf) slave 42 drivers/net/bonding/bond_sysfs_slave.c return sprintf(buf, "%s\n", bond_slave_link_status(slave->link)); slave 46 drivers/net/bonding/bond_sysfs_slave.c static ssize_t link_failure_count_show(struct slave *slave, char *buf) slave 48 drivers/net/bonding/bond_sysfs_slave.c return sprintf(buf, "%d\n", slave->link_failure_count); slave 52 drivers/net/bonding/bond_sysfs_slave.c static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) slave 55 drivers/net/bonding/bond_sysfs_slave.c slave->dev->addr_len, slave 56 drivers/net/bonding/bond_sysfs_slave.c slave->perm_hwaddr); slave 60 drivers/net/bonding/bond_sysfs_slave.c static ssize_t queue_id_show(struct slave *slave, char *buf) slave 62 drivers/net/bonding/bond_sysfs_slave.c return sprintf(buf, "%d\n", slave->queue_id); slave 66 drivers/net/bonding/bond_sysfs_slave.c static ssize_t ad_aggregator_id_show(struct slave *slave, char *buf) slave 70 drivers/net/bonding/bond_sysfs_slave.c if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { slave 71 drivers/net/bonding/bond_sysfs_slave.c agg = SLAVE_AD_INFO(slave)->port.aggregator; slave 81 drivers/net/bonding/bond_sysfs_slave.c static ssize_t ad_actor_oper_port_state_show(struct slave *slave, char *buf) slave 85 drivers/net/bonding/bond_sysfs_slave.c if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { slave 86 drivers/net/bonding/bond_sysfs_slave.c ad_port = &SLAVE_AD_INFO(slave)->port; slave 96 drivers/net/bonding/bond_sysfs_slave.c static ssize_t ad_partner_oper_port_state_show(struct slave *slave, char *buf) slave 100 drivers/net/bonding/bond_sysfs_slave.c if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { slave 101 drivers/net/bonding/bond_sysfs_slave.c ad_port = &SLAVE_AD_INFO(slave)->port; slave 124 drivers/net/bonding/bond_sysfs_slave.c #define to_slave(obj) container_of(obj, struct slave, kobj) slave 130 drivers/net/bonding/bond_sysfs_slave.c struct slave *slave = to_slave(kobj); slave 132 drivers/net/bonding/bond_sysfs_slave.c return slave_attr->show(slave, buf); slave 145 drivers/net/bonding/bond_sysfs_slave.c int bond_sysfs_slave_add(struct slave *slave) slave 150 drivers/net/bonding/bond_sysfs_slave.c err = kobject_init_and_add(&slave->kobj, &slave_ktype, slave 151 drivers/net/bonding/bond_sysfs_slave.c &(slave->dev->dev.kobj), "bonding_slave"); slave 153 drivers/net/bonding/bond_sysfs_slave.c kobject_put(&slave->kobj); slave 158 drivers/net/bonding/bond_sysfs_slave.c err = sysfs_create_file(&slave->kobj, &((*a)->attr)); slave 160 drivers/net/bonding/bond_sysfs_slave.c kobject_put(&slave->kobj); slave 168 drivers/net/bonding/bond_sysfs_slave.c void bond_sysfs_slave_del(struct slave *slave) slave 173 drivers/net/bonding/bond_sysfs_slave.c sysfs_remove_file(&slave->kobj, &((*a)->attr)); slave 175 drivers/net/bonding/bond_sysfs_slave.c kobject_put(&slave->kobj); slave 338 drivers/net/caif/caif_spi.c if (cfspi->slave && !cfspi->slave_talked) slave 462 drivers/net/caif/caif_spi.c if (cfspi->slave && !cfspi->slave_talked) { slave 607 drivers/net/caif/caif_spi.c cfspi->slave = true; slave 610 drivers/net/caif/caif_spi.c cfspi->slave = false; slave 672 drivers/net/dsa/bcm_sf2.c netif_carrier_off(ds->ports[port].slave); slave 89 drivers/net/dsa/microchip/ksz_common.c if (!netif_carrier_ok(dp->slave)) slave 188 drivers/net/dsa/microchip/ksz_common.c if (!netif_carrier_ok(dp->slave)) slave 1405 drivers/net/dsa/mv88e6xxx/chip.c if (!ds->ports[i].slave) slave 1745 drivers/net/dsa/sja1105/sja1105_main.c struct net_device *slave; slave 1750 drivers/net/dsa/sja1105/sja1105_main.c slave = ds->ports[port].slave; slave 1752 drivers/net/dsa/sja1105/sja1105_main.c slave->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; slave 1782 drivers/net/dsa/sja1105/sja1105_main.c dsa_enqueue_skb(skb, ds->ports[port].slave); slave 140 drivers/net/eql.c static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave); slave 150 drivers/net/eql.c slave_t *slave = list_entry(this, slave_t, list); slave 152 drivers/net/eql.c if ((slave->dev->flags & IFF_UP) == IFF_UP) { slave 153 drivers/net/eql.c slave->bytes_queued -= slave->priority_Bps; slave 154 drivers/net/eql.c if (slave->bytes_queued < 0) slave 155 drivers/net/eql.c slave->bytes_queued = 0; slave 157 drivers/net/eql.c eql_kill_one_slave(&eql->queue, slave); slave 221 drivers/net/eql.c static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave) slave 223 drivers/net/eql.c list_del(&slave->list); slave 225 drivers/net/eql.c slave->dev->flags &= ~IFF_SLAVE; slave 226 drivers/net/eql.c dev_put(slave->dev); slave 227 drivers/net/eql.c kfree(slave); slave 307 drivers/net/eql.c slave_t *slave = list_entry(this, slave_t, list); slave 313 drivers/net/eql.c bytes_queued = slave->bytes_queued; slave 314 drivers/net/eql.c priority_Bps = slave->priority_Bps; slave 315 drivers/net/eql.c if ((slave->dev->flags & IFF_UP) == IFF_UP) { slave 321 drivers/net/eql.c best_slave = slave; slave 325 drivers/net/eql.c eql_kill_one_slave(queue, slave); slave 334 drivers/net/eql.c slave_t *slave; slave 338 drivers/net/eql.c slave = __eql_schedule_slaves(&eql->queue); slave 339 drivers/net/eql.c if (slave) { slave 340 drivers/net/eql.c struct net_device *slave_dev = slave->dev; slave 344 drivers/net/eql.c slave->bytes_queued += skb->len; slave 368 drivers/net/eql.c slave_t *slave = list_entry(this, slave_t, list); slave 370 drivers/net/eql.c if (slave->dev == dev) slave 371 drivers/net/eql.c return slave; slave 387 drivers/net/eql.c static int __eql_insert_slave(slave_queue_t *queue, slave_t *slave) slave 392 drivers/net/eql.c duplicate_slave = __eql_find_slave_dev(queue, slave->dev); slave 396 drivers/net/eql.c dev_hold(slave->dev); slave 397 drivers/net/eql.c list_add(&slave->list, &queue->all_slaves); slave 399 drivers/net/eql.c slave->dev->flags |= IFF_SLAVE; slave 466 drivers/net/eql.c slave_t *slave = __eql_find_slave_dev(&eql->queue, slave_dev); slave 467 drivers/net/eql.c if (slave) { slave 468 drivers/net/eql.c eql_kill_one_slave(&eql->queue, slave); slave 480 drivers/net/eql.c slave_t *slave; slave 496 drivers/net/eql.c slave = __eql_find_slave_dev(&eql->queue, slave_dev); slave 497 drivers/net/eql.c if (slave) { slave 498 drivers/net/eql.c sc.priority = slave->priority; slave 512 drivers/net/eql.c slave_t *slave; slave 530 drivers/net/eql.c slave = __eql_find_slave_dev(&eql->queue, slave_dev); slave 531 drivers/net/eql.c if (slave) { slave 532 drivers/net/eql.c slave->priority = sc.priority; slave 533 drivers/net/eql.c slave->priority_bps = sc.priority; slave 534 drivers/net/eql.c slave->priority_Bps = sc.priority / 8; slave 136 drivers/net/ethernet/mellanox/mlx4/cmd.c static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave, slave 813 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave, u64 slave_addr, slave 820 drivers/net/ethernet/mellanox/mlx4/cmd.c (slave & ~0x7f) | (size & 0xff)) { slave 822 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_addr, master_addr, slave, size); slave 827 drivers/net/ethernet/mellanox/mlx4/cmd.c in_param = (u64) slave | slave_addr; slave 831 drivers/net/ethernet/mellanox/mlx4/cmd.c out_param = (u64) slave | slave_addr; slave 891 drivers/net/ethernet/mellanox/mlx4/cmd.c static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave, slave 912 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slave_convert_port(dev, slave, slave_port); slave 938 drivers/net/ethernet/mellanox/mlx4/cmd.c pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; slave 953 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!err && slave != mlx4_master_func_num(dev)) { slave 956 drivers/net/ethernet/mellanox/mlx4/cmd.c *state = (*state & 0xf0) | vf_port_state(dev, port, slave); slave 957 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_cap_mask = priv->mfunc.master.slave_state[slave].ib_cap_mask[port]; slave 963 drivers/net/ethernet/mellanox/mlx4/cmd.c __be64 guid = mlx4_get_admin_guid(dev, slave, slave 969 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave == 0 && guid == 0) { slave 983 drivers/net/ethernet/mellanox/mlx4/cmd.c data, slave, port); slave 997 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_node_guid = mlx4_get_slave_node_guid(dev, slave); slave 1008 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave != mlx4_master_func_num(dev) && slave 1009 drivers/net/ethernet/mellanox/mlx4/cmd.c !mlx4_vf_smi_enabled(dev, slave, port)) { slave 1013 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, smp->mgmt_class, smp->method, slave 1025 drivers/net/ethernet/mellanox/mlx4/cmd.c static int mlx4_CMD_EPERM_wrapper(struct mlx4_dev *dev, int slave, slave 1034 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave, slave 1048 drivers/net/ethernet/mellanox/mlx4/cmd.c in_param |= slave; slave 1661 drivers/net/ethernet/mellanox/mlx4/cmd.c static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave, slave 1683 drivers/net/ethernet/mellanox/mlx4/cmd.c ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave, slave 1684 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.master.slave_state[slave].vhcr_dma, slave 1715 drivers/net/ethernet/mellanox/mlx4/cmd.c vhcr->op, slave); slave 1730 drivers/net/ethernet/mellanox/mlx4/cmd.c ret = mlx4_ACCESS_MEM(dev, inbox->dma, slave, slave 1744 drivers/net/ethernet/mellanox/mlx4/cmd.c if (cmd->verify && cmd->verify(dev, slave, vhcr, inbox)) { slave 1746 drivers/net/ethernet/mellanox/mlx4/cmd.c vhcr->op, slave, vhcr->in_modifier); slave 1763 drivers/net/ethernet/mellanox/mlx4/cmd.c err = cmd->wrapper(dev, slave, vhcr, inbox, outbox, slave 1791 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, err); slave 1794 drivers/net/ethernet/mellanox/mlx4/cmd.c vhcr->op, slave, vhcr->errno, err); slave 1803 drivers/net/ethernet/mellanox/mlx4/cmd.c ret = mlx4_ACCESS_MEM(dev, outbox->dma, slave, slave 1820 drivers/net/ethernet/mellanox/mlx4/cmd.c ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave, slave 1821 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.master.slave_state[slave].vhcr_dma, slave 1829 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_GEN_EQE(dev, slave, &priv->mfunc.master.cmd_eqe)) slave 1831 drivers/net/ethernet/mellanox/mlx4/cmd.c slave); slave 1842 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave, int port) slave 1851 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 1852 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 1861 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!(priv->mfunc.master.slave_state[slave].active && slave 1871 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, port); slave 1889 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, port); slave 1899 drivers/net/ethernet/mellanox/mlx4/cmd.c admin_vlan_ix, slave, port); slave 1924 drivers/net/ethernet/mellanox/mlx4/cmd.c work->slave = slave; slave 1995 drivers/net/ethernet/mellanox/mlx4/cmd.c static int mlx4_master_activate_admin_state(struct mlx4_priv *priv, int slave) slave 2001 drivers/net/ethernet/mellanox/mlx4/cmd.c &priv->mfunc.master.slave_state[slave]; slave 2003 drivers/net/ethernet/mellanox/mlx4/cmd.c &priv->dev, slave); slave 2012 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.master.vf_oper[slave].smi_enabled[port] = slave 2013 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.master.vf_admin[slave].enable_smi[port]; slave 2014 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 2015 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 2038 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, port); slave 2043 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_oper->vlan_idx, slave, port); slave 2054 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, port); slave 2058 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_oper->state.mac, vp_oper->mac_idx, slave, port); slave 2064 drivers/net/ethernet/mellanox/mlx4/cmd.c static void mlx4_master_deactivate_admin_state(struct mlx4_priv *priv, int slave) slave 2069 drivers/net/ethernet/mellanox/mlx4/cmd.c &priv->dev, slave); slave 2079 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.master.vf_oper[slave].smi_enabled[port] = slave 2081 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 2095 drivers/net/ethernet/mellanox/mlx4/cmd.c static void mlx4_master_do_cmd(struct mlx4_dev *dev, int slave, u8 cmd, slave 2105 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].comm_toggle ^= 1; slave 2106 drivers/net/ethernet/mellanox/mlx4/cmd.c reply = (u32) slave_state[slave].comm_toggle << 31; slave 2107 drivers/net/ethernet/mellanox/mlx4/cmd.c if (toggle != slave_state[slave].comm_toggle) { slave 2109 drivers/net/ethernet/mellanox/mlx4/cmd.c toggle, slave); slave 2113 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_warn(dev, "Received reset from slave:%d\n", slave); slave 2114 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].active = false; slave 2115 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].old_vlan_api = false; slave 2116 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].vst_qinq_supported = false; slave 2117 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_master_deactivate_admin_state(priv, slave); slave 2119 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].event_eq[i].eqn = -1; slave 2120 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].event_eq[i].token = 0; slave 2124 drivers/net/ethernet/mellanox/mlx4/cmd.c if (MLX4_COMM_CMD_FLR == slave_state[slave].last_cmd) slave 2127 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_dispatch_event(dev, MLX4_DEV_EVENT_SLAVE_SHUTDOWN, slave); slave 2136 drivers/net/ethernet/mellanox/mlx4/cmd.c MLX4_COMM_CMD_FLR == slave_state[slave].last_cmd) { slave 2138 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, cmd); slave 2144 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave_state[slave].last_cmd != MLX4_COMM_CMD_RESET) slave 2146 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].vhcr_dma = ((u64) param) << 48; slave 2147 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.master.slave_state[slave].cookie = 0; slave 2150 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave_state[slave].last_cmd != MLX4_COMM_CMD_VHCR0) slave 2152 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].vhcr_dma |= ((u64) param) << 32; slave 2155 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave_state[slave].last_cmd != MLX4_COMM_CMD_VHCR1) slave 2157 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].vhcr_dma |= ((u64) param) << 16; slave 2160 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave_state[slave].last_cmd != MLX4_COMM_CMD_VHCR2) slave 2162 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].vhcr_dma |= param; slave 2163 drivers/net/ethernet/mellanox/mlx4/cmd.c if (mlx4_master_activate_admin_state(priv, slave)) slave 2165 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].active = true; slave 2166 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_dispatch_event(dev, MLX4_DEV_EVENT_SLAVE_INIT, slave); slave 2169 drivers/net/ethernet/mellanox/mlx4/cmd.c if ((slave_state[slave].last_cmd != MLX4_COMM_CMD_VHCR_EN) && slave 2170 drivers/net/ethernet/mellanox/mlx4/cmd.c (slave_state[slave].last_cmd != MLX4_COMM_CMD_VHCR_POST)) { slave 2172 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, cmd, slave_state[slave].last_cmd); slave 2177 drivers/net/ethernet/mellanox/mlx4/cmd.c if (mlx4_master_process_vhcr(dev, slave, NULL)) { slave 2179 drivers/net/ethernet/mellanox/mlx4/cmd.c slave); slave 2186 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_warn(dev, "Bad comm cmd:%d from slave:%d\n", cmd, slave); slave 2190 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!slave_state[slave].is_slave_going_down) slave 2191 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].last_cmd = cmd; slave 2197 drivers/net/ethernet/mellanox/mlx4/cmd.c cmd, slave); slave 2201 drivers/net/ethernet/mellanox/mlx4/cmd.c &priv->mfunc.comm[slave].slave_read); slave 2208 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_delete_all_resources_for_slave(dev, slave); slave 2212 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, cmd); slave 2220 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!slave_state[slave].is_slave_going_down) slave 2221 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state[slave].last_cmd = MLX4_COMM_CMD_RESET; slave 2225 drivers/net/ethernet/mellanox/mlx4/cmd.c memset(&slave_state[slave].event_eq, 0, slave 2228 drivers/net/ethernet/mellanox/mlx4/cmd.c &priv->mfunc.comm[slave].slave_read); slave 2247 drivers/net/ethernet/mellanox/mlx4/cmd.c int i, j, slave; slave 2260 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = (i * 32) + j; slave 2262 drivers/net/ethernet/mellanox/mlx4/cmd.c &mfunc->comm[slave].slave_write)); slave 2263 drivers/net/ethernet/mellanox/mlx4/cmd.c slt = swab32(readl(&mfunc->comm[slave].slave_read)) slave 2267 drivers/net/ethernet/mellanox/mlx4/cmd.c if (master->slave_state[slave].comm_toggle slave 2270 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, slt, slave 2271 drivers/net/ethernet/mellanox/mlx4/cmd.c master->slave_state[slave].comm_toggle); slave 2272 drivers/net/ethernet/mellanox/mlx4/cmd.c master->slave_state[slave].comm_toggle = slave 2275 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_master_do_cmd(dev, slave, slave 2552 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 2565 drivers/net/ethernet/mellanox/mlx4/cmd.c for (slave = 0; slave < dev->num_slaves; slave++) { slave 2566 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_read = swab32(readl(&priv->mfunc.comm[slave].slave_read)); slave 2569 drivers/net/ethernet/mellanox/mlx4/cmd.c &priv->mfunc.comm[slave].slave_read); slave 2739 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave) slave 2741 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 1 || slave > dev->persist->num_vfs) { slave 2744 drivers/net/ethernet/mellanox/mlx4/cmd.c slave, dev->num_slaves); slave 2747 drivers/net/ethernet/mellanox/mlx4/cmd.c return slave - 1; slave 2769 drivers/net/ethernet/mellanox/mlx4/cmd.c struct mlx4_active_ports mlx4_get_active_ports(struct mlx4_dev *dev, int slave) slave 2776 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave == 0) { slave 2781 drivers/net/ethernet/mellanox/mlx4/cmd.c vf = mlx4_get_vf_indx(dev, slave); slave 2786 drivers/net/ethernet/mellanox/mlx4/cmd.c min((int)dev->dev_vfs[mlx4_get_vf_indx(dev, slave)].n_ports, slave 2793 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_slave_convert_port(struct mlx4_dev *dev, int slave, int port) slave 2796 drivers/net/ethernet/mellanox/mlx4/cmd.c struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); slave 2810 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_phys_to_slave_port(struct mlx4_dev *dev, int slave, int port) slave 2812 drivers/net/ethernet/mellanox/mlx4/cmd.c struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); slave 2864 drivers/net/ethernet/mellanox/mlx4/cmd.c static int mlx4_slaves_closest_port(struct mlx4_dev *dev, int slave, int port) slave 2866 drivers/net/ethernet/mellanox/mlx4/cmd.c struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); slave 2880 drivers/net/ethernet/mellanox/mlx4/cmd.c static int mlx4_set_vport_qos(struct mlx4_priv *priv, int slave, int port, slave 2892 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave > port_qos->num_of_qos_vfs) { slave 2917 drivers/net/ethernet/mellanox/mlx4/cmd.c err = mlx4_SET_VPORT_QOS_set(dev, port, slave, vpp_qos); slave 2919 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_info(dev, "Failed to set Vport %d QoS values\n", slave); slave 2981 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 2989 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = mlx4_get_slave_indx(dev, vf); slave 2990 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 0) slave 2993 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slaves_closest_port(dev, slave, port); slave 2994 drivers/net/ethernet/mellanox/mlx4/cmd.c s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 3016 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 3037 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = mlx4_get_slave_indx(dev, vf); slave 3038 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 0) slave 3041 drivers/net/ethernet/mellanox/mlx4/cmd.c slave_state = &priv->mfunc.master.slave_state[slave]; slave 3047 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slaves_closest_port(dev, slave, port); slave 3048 drivers/net/ethernet/mellanox/mlx4/cmd.c vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 3049 drivers/net/ethernet/mellanox/mlx4/cmd.c vf_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 3066 drivers/net/ethernet/mellanox/mlx4/cmd.c vf_admin->qos_vport = slave; slave 3073 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_master_immediate_activate_vlan_qos(priv, slave, port)) slave 3085 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 3098 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = mlx4_get_slave_indx(dev, vf); slave 3099 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 0) slave 3102 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slaves_closest_port(dev, slave, port); slave 3103 drivers/net/ethernet/mellanox/mlx4/cmd.c vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 3105 drivers/net/ethernet/mellanox/mlx4/cmd.c err = mlx4_set_vport_qos(priv, slave, port, max_tx_rate); slave 3134 drivers/net/ethernet/mellanox/mlx4/cmd.c vf_admin->qos_vport = max_tx_rate ? slave : MLX4_VPP_DEFAULT_VPORT; slave 3136 drivers/net/ethernet/mellanox/mlx4/cmd.c if (priv->mfunc.master.slave_state[slave].active && slave 3138 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_master_immediate_activate_vlan_qos(priv, slave, port); slave 3148 drivers/net/ethernet/mellanox/mlx4/cmd.c bool mlx4_get_slave_default_vlan(struct mlx4_dev *dev, int port, int slave, slave 3155 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slaves_closest_port(dev, slave, port); slave 3156 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 3173 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 3180 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = mlx4_get_slave_indx(dev, vf); slave 3181 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 0) slave 3184 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slaves_closest_port(dev, slave, port); slave 3185 drivers/net/ethernet/mellanox/mlx4/cmd.c s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 3203 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 3208 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = mlx4_get_slave_indx(dev, vf); slave 3209 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 0) slave 3212 drivers/net/ethernet/mellanox/mlx4/cmd.c s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 3244 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 3247 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = mlx4_get_slave_indx(dev, vf); slave 3248 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 0) slave 3251 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slaves_closest_port(dev, slave, port); slave 3271 drivers/net/ethernet/mellanox/mlx4/cmd.c link_state, slave, port); slave 3274 drivers/net/ethernet/mellanox/mlx4/cmd.c s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 3278 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_gen_port_state_change_eqe(dev, slave, port, link_stat_event); slave 3280 drivers/net/ethernet/mellanox/mlx4/cmd.c if (mlx4_master_immediate_activate_vlan_qos(priv, slave, port)) slave 3348 drivers/net/ethernet/mellanox/mlx4/cmd.c int slave; slave 3357 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = mlx4_get_slave_indx(dev, vf_idx); slave 3358 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 0) slave 3361 drivers/net/ethernet/mellanox/mlx4/cmd.c port = mlx4_slaves_closest_port(dev, slave, port); slave 3362 drivers/net/ethernet/mellanox/mlx4/cmd.c err = mlx4_calc_vf_counters(dev, slave, port, &tmp_vf_stats); slave 3374 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_vf_smi_enabled(struct mlx4_dev *dev, int slave, int port) slave 3378 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 1 || slave >= dev->num_slaves || slave 3382 drivers/net/ethernet/mellanox/mlx4/cmd.c return priv->mfunc.master.vf_oper[slave].smi_enabled[port] == slave 3387 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_vf_get_enable_smi_admin(struct mlx4_dev *dev, int slave, int port) slave 3391 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave == mlx4_master_func_num(dev)) slave 3394 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 1 || slave >= dev->num_slaves || slave 3398 drivers/net/ethernet/mellanox/mlx4/cmd.c return priv->mfunc.master.vf_admin[slave].enable_smi[port] == slave 3403 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_vf_set_enable_smi_admin(struct mlx4_dev *dev, int slave, int port, slave 3408 drivers/net/ethernet/mellanox/mlx4/cmd.c &priv->dev, slave); slave 3414 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave == mlx4_master_func_num(dev)) slave 3417 drivers/net/ethernet/mellanox/mlx4/cmd.c if (slave < 1 || slave >= dev->num_slaves || slave 3427 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->mfunc.master.vf_admin[slave].enable_smi[port] = enabled; slave 3099 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (bonding_info->slave.state == slave 3121 drivers/net/ethernet/mellanox/mlx4/en_netdev.c __s8 link = bonding_info->slave.link; slave 147 drivers/net/ethernet/mellanox/mlx4/eq.c u8 slave; slave 152 drivers/net/ethernet/mellanox/mlx4/eq.c slave = eqe->slave_id; slave 166 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave == ALL_SLAVES) { slave 184 drivers/net/ethernet/mellanox/mlx4/eq.c if (mlx4_GEN_EQE(dev, slave, eqe)) slave 186 drivers/net/ethernet/mellanox/mlx4/eq.c slave); slave 194 drivers/net/ethernet/mellanox/mlx4/eq.c static void slave_event(struct mlx4_dev *dev, u8 slave, struct mlx4_eqe *eqe) slave 206 drivers/net/ethernet/mellanox/mlx4/eq.c slave); slave 212 drivers/net/ethernet/mellanox/mlx4/eq.c s_eqe->slave_id = slave; slave 223 drivers/net/ethernet/mellanox/mlx4/eq.c static void mlx4_slave_event(struct mlx4_dev *dev, int slave, slave 228 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave < 0 || slave > dev->persist->num_vfs || slave 229 drivers/net/ethernet/mellanox/mlx4/eq.c slave == dev->caps.function || slave 230 drivers/net/ethernet/mellanox/mlx4/eq.c !priv->mfunc.master.slave_state[slave].active) slave 233 drivers/net/ethernet/mellanox/mlx4/eq.c slave_event(dev, slave, eqe); slave 253 drivers/net/ethernet/mellanox/mlx4/eq.c int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port) slave 258 drivers/net/ethernet/mellanox/mlx4/eq.c struct mlx4_slave_state *s_slave = &priv->mfunc.master.slave_state[slave]; slave 267 drivers/net/ethernet/mellanox/mlx4/eq.c eqe.event.port_mgmt_change.port = mlx4_phys_to_slave_port(dev, slave, port); slave 269 drivers/net/ethernet/mellanox/mlx4/eq.c return mlx4_GEN_EQE(dev, slave, &eqe); slave 273 drivers/net/ethernet/mellanox/mlx4/eq.c int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port) slave 278 drivers/net/ethernet/mellanox/mlx4/eq.c if (dev->persist->num_vfs < slave) slave 284 drivers/net/ethernet/mellanox/mlx4/eq.c eqe.event.port_mgmt_change.port = mlx4_phys_to_slave_port(dev, slave, port); slave 286 drivers/net/ethernet/mellanox/mlx4/eq.c return mlx4_GEN_EQE(dev, slave, &eqe); slave 290 drivers/net/ethernet/mellanox/mlx4/eq.c int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, slave 294 drivers/net/ethernet/mellanox/mlx4/eq.c u8 slave_port = mlx4_phys_to_slave_port(dev, slave, port); slave 297 drivers/net/ethernet/mellanox/mlx4/eq.c if (dev->persist->num_vfs < slave) slave 306 drivers/net/ethernet/mellanox/mlx4/eq.c port_subtype_change, slave, port); slave 307 drivers/net/ethernet/mellanox/mlx4/eq.c return mlx4_GEN_EQE(dev, slave, &eqe); slave 311 drivers/net/ethernet/mellanox/mlx4/eq.c enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port) slave 315 drivers/net/ethernet/mellanox/mlx4/eq.c struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); slave 317 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave >= dev->num_slaves || port > dev->caps.num_ports || slave 320 drivers/net/ethernet/mellanox/mlx4/eq.c __func__, slave, port); slave 323 drivers/net/ethernet/mellanox/mlx4/eq.c return s_state[slave].port_state[port]; slave 327 drivers/net/ethernet/mellanox/mlx4/eq.c static int mlx4_set_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, slave 332 drivers/net/ethernet/mellanox/mlx4/eq.c struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); slave 334 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave >= dev->num_slaves || port > dev->caps.num_ports || slave 337 drivers/net/ethernet/mellanox/mlx4/eq.c __func__, slave, port); slave 340 drivers/net/ethernet/mellanox/mlx4/eq.c s_state[slave].port_state[port] = state; slave 366 drivers/net/ethernet/mellanox/mlx4/eq.c int set_and_calc_slave_port_state(struct mlx4_dev *dev, int slave, slave 374 drivers/net/ethernet/mellanox/mlx4/eq.c struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); slave 376 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_get_slave_port_state(dev, slave, port); slave 380 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave >= dev->num_slaves || port > dev->caps.num_ports || slave 383 drivers/net/ethernet/mellanox/mlx4/eq.c __func__, slave, port); slave 387 drivers/net/ethernet/mellanox/mlx4/eq.c ctx = &priv->mfunc.master.slave_state[slave]; slave 393 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_set_slave_port_state(dev, slave, port, slave 398 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_set_slave_port_state(dev, slave, port, slave 401 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_set_slave_port_state(dev, slave, port, slave 408 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_set_slave_port_state(dev, slave, port, slave 413 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_set_slave_port_state(dev, slave, port, slave 420 drivers/net/ethernet/mellanox/mlx4/eq.c __func__, slave, port); slave 423 drivers/net/ethernet/mellanox/mlx4/eq.c ret = mlx4_get_slave_port_state(dev, slave, port); slave 502 drivers/net/ethernet/mellanox/mlx4/eq.c int slave = 0; slave 539 drivers/net/ethernet/mellanox/mlx4/eq.c & 0xffffff, &slave); slave 547 drivers/net/ethernet/mellanox/mlx4/eq.c if (!ret && slave != dev->caps.function) { slave 548 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_slave_event(dev, slave, eqe); slave 569 drivers/net/ethernet/mellanox/mlx4/eq.c &slave); slave 579 drivers/net/ethernet/mellanox/mlx4/eq.c __func__, slave, slave 583 drivers/net/ethernet/mellanox/mlx4/eq.c if (!ret && slave != dev->caps.function) { slave 588 drivers/net/ethernet/mellanox/mlx4/eq.c eqe->subtype, slave); slave 589 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_slave_event(dev, slave, eqe); slave 693 drivers/net/ethernet/mellanox/mlx4/eq.c & 0xffffff, &slave); slave 701 drivers/net/ethernet/mellanox/mlx4/eq.c if (!ret && slave != dev->caps.function) { slave 702 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_slave_event(dev, slave, eqe); slave 874 drivers/net/ethernet/mellanox/mlx4/eq.c int mlx4_MAP_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 882 drivers/net/ethernet/mellanox/mlx4/eq.c priv->mfunc.master.slave_state[slave].event_eq; slave 889 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave == dev->caps.function) slave 204 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave) slave 226 drivers/net/ethernet/mellanox/mlx4/fw.c in_modifier = slave; slave 259 drivers/net/ethernet/mellanox/mlx4/fw.c static int mlx4_activate_vst_qinq(struct mlx4_priv *priv, int slave, int port) slave 265 drivers/net/ethernet/mellanox/mlx4/fw.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 266 drivers/net/ethernet/mellanox/mlx4/fw.c vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 276 drivers/net/ethernet/mellanox/mlx4/fw.c slave, port); slave 281 drivers/net/ethernet/mellanox/mlx4/fw.c vp_oper->vlan_idx, slave, port); slave 290 drivers/net/ethernet/mellanox/mlx4/fw.c static int mlx4_handle_vst_qinq(struct mlx4_priv *priv, int slave, int port) slave 297 drivers/net/ethernet/mellanox/mlx4/fw.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 298 drivers/net/ethernet/mellanox/mlx4/fw.c vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; slave 299 drivers/net/ethernet/mellanox/mlx4/fw.c slave_state = &priv->mfunc.master.slave_state[slave]; slave 317 drivers/net/ethernet/mellanox/mlx4/fw.c "Slave %d does not support VST QinQ mode\n", slave); slave 321 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_activate_vst_qinq(priv, slave, port); slave 325 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, slave 396 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_get_active_ports(dev, slave); slave 398 drivers/net/ethernet/mellanox/mlx4/fw.c dev, slave, vhcr->in_modifier); slave 411 drivers/net/ethernet/mellanox/mlx4/fw.c proxy_qp = dev->phys_caps.base_proxy_sqpn + 8 * slave + port - 1; slave 416 drivers/net/ethernet/mellanox/mlx4/fw.c if (mlx4_vf_smi_enabled(dev, slave, port) && slave 425 drivers/net/ethernet/mellanox/mlx4/fw.c size = dev->phys_caps.base_tunnel_sqpn + 8 * slave + port - 1; slave 438 drivers/net/ethernet/mellanox/mlx4/fw.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 439 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_handle_vst_qinq(priv, slave, port); slave 452 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_get_active_ports(dev, slave); slave 454 drivers/net/ethernet/mellanox/mlx4/fw.c &priv->mfunc.master.slave_state[slave]; slave 475 drivers/net/ethernet/mellanox/mlx4/fw.c size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave]; slave 480 drivers/net/ethernet/mellanox/mlx4/fw.c size = priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[slave]; slave 485 drivers/net/ethernet/mellanox/mlx4/fw.c size = priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[slave]; slave 491 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_QUERY_FUNC(dev, &func, slave)) { slave 509 drivers/net/ethernet/mellanox/mlx4/fw.c size = priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[slave]; slave 514 drivers/net/ethernet/mellanox/mlx4/fw.c size = priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[slave]; slave 527 drivers/net/ethernet/mellanox/mlx4/fw.c size = dev->caps.reserved_lkey + ((slave << 8) & 0xFF00); slave 1269 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave, slave 1297 drivers/net/ethernet/mellanox/mlx4/fw.c actv_ports = mlx4_get_active_ports(dev, slave); slave 1403 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_QUERY_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 1415 drivers/net/ethernet/mellanox/mlx4/fw.c int port = mlx4_slave_convert_port(dev, slave, slave 1438 drivers/net/ethernet/mellanox/mlx4/fw.c if (!err && dev->caps.function != slave) { slave 1439 drivers/net/ethernet/mellanox/mlx4/fw.c def_mac = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.mac; slave 1451 drivers/net/ethernet/mellanox/mlx4/fw.c admin_link_state = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.link_state; slave 1470 drivers/net/ethernet/mellanox/mlx4/fw.c short_field = mlx4_get_slave_num_gids(dev, slave, port); slave 1740 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_QUERY_FW_wrapper(struct mlx4_dev *dev, int slave, slave 2250 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 2257 drivers/net/ethernet/mellanox/mlx4/fw.c int port = mlx4_slave_convert_port(dev, slave, vhcr->in_modifier); slave 2263 drivers/net/ethernet/mellanox/mlx4/fw.c if (priv->mfunc.master.slave_state[slave].init_port_mask & (1 << port)) slave 2274 drivers/net/ethernet/mellanox/mlx4/fw.c priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port); slave 2276 drivers/net/ethernet/mellanox/mlx4/fw.c if (slave == mlx4_master_func_num(dev)) { slave 2277 drivers/net/ethernet/mellanox/mlx4/fw.c if (check_qp0_state(dev, slave, port) && slave 2284 drivers/net/ethernet/mellanox/mlx4/fw.c priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port); slave 2287 drivers/net/ethernet/mellanox/mlx4/fw.c priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port); slave 2348 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 2355 drivers/net/ethernet/mellanox/mlx4/fw.c int port = mlx4_slave_convert_port(dev, slave, vhcr->in_modifier); slave 2361 drivers/net/ethernet/mellanox/mlx4/fw.c if (!(priv->mfunc.master.slave_state[slave].init_port_mask & slave 2372 drivers/net/ethernet/mellanox/mlx4/fw.c priv->mfunc.master.slave_state[slave].init_port_mask &= ~(1 << port); slave 2375 drivers/net/ethernet/mellanox/mlx4/fw.c if (slave == mlx4_master_func_num(dev)) { slave 2382 drivers/net/ethernet/mellanox/mlx4/fw.c priv->mfunc.master.slave_state[slave].init_port_mask &= ~(1 << port); slave 2386 drivers/net/ethernet/mellanox/mlx4/fw.c priv->mfunc.master.slave_state[slave].init_port_mask &= ~(1 << port); slave 2990 drivers/net/ethernet/mellanox/mlx4/fw.c int mlx4_ACCESS_REG_wrapper(struct mlx4_dev *dev, int slave, slave 3000 drivers/net/ethernet/mellanox/mlx4/fw.c if (slave != mlx4_master_func_num(dev) && slave 3009 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_slave_convert_port(dev, slave, slave 234 drivers/net/ethernet/mellanox/mlx4/fw.h int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, slave 239 drivers/net/ethernet/mellanox/mlx4/fw.h int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave); slave 778 drivers/net/ethernet/mellanox/mlx4/main.c void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port, int i, int val) slave 785 drivers/net/ethernet/mellanox/mlx4/main.c priv->virt2phys_pkey[slave][port - 1][i] = val; slave 789 drivers/net/ethernet/mellanox/mlx4/main.c void mlx4_put_slave_node_guid(struct mlx4_dev *dev, int slave, __be64 guid) slave 796 drivers/net/ethernet/mellanox/mlx4/main.c priv->slave_node_guids[slave] = guid; slave 800 drivers/net/ethernet/mellanox/mlx4/main.c __be64 mlx4_get_slave_node_guid(struct mlx4_dev *dev, int slave) slave 807 drivers/net/ethernet/mellanox/mlx4/main.c return priv->slave_node_guids[slave]; slave 811 drivers/net/ethernet/mellanox/mlx4/main.c int mlx4_is_slave_active(struct mlx4_dev *dev, int slave) slave 819 drivers/net/ethernet/mellanox/mlx4/main.c s_slave = &priv->mfunc.master.slave_state[slave]; slave 1558 drivers/net/ethernet/mellanox/mlx4/mcg.c int mlx4_PROMISC_wrapper(struct mlx4_dev *dev, int slave, slave 1565 drivers/net/ethernet/mellanox/mlx4/mcg.c int port = mlx4_slave_convert_port(dev, slave, vhcr->in_param >> 62); slave 203 drivers/net/ethernet/mellanox/mlx4/mlx4.h int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, slave 205 drivers/net/ethernet/mellanox/mlx4/mlx4.h int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, slave 654 drivers/net/ethernet/mellanox/mlx4/mlx4.h int slave; slave 986 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave, slave 991 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave, slave 996 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave, slave 1001 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave, slave 1006 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave, slave 1011 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 1016 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave, slave 1021 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave, slave 1035 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port, slave 1063 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave, slave 1068 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave, slave 1073 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_MAP_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 1077 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_COMM_INT_wrapper(struct mlx4_dev *dev, int slave, slave 1082 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 1087 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 1092 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 1097 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 1102 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 1107 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 1112 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 1117 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 1122 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 1127 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 1132 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1137 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1142 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1147 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1152 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1157 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1162 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1167 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_2ERR_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1172 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_RTS2SQD_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1177 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1182 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1187 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1192 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1198 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe); slave 1261 drivers/net/ethernet/mellanox/mlx4/mlx4.h u64 resource_id, int *slave); slave 1263 drivers/net/ethernet/mellanox/mlx4/mlx4.h void mlx4_reset_roce_gids(struct mlx4_dev *dev, int slave); slave 1269 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_FW_wrapper(struct mlx4_dev *dev, int slave, slave 1274 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SET_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 1279 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 1284 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 1289 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave, slave 1294 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 1304 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave, slave 1310 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, slave 1316 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_PROMISC_wrapper(struct mlx4_dev *dev, int slave, slave 1330 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SET_MCAST_FLTR_wrapper(struct mlx4_dev *dev, int slave, slave 1335 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_SET_VLAN_FLTR_wrapper(struct mlx4_dev *dev, int slave, slave 1342 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave, slave 1347 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_PKEY_TABLE_wrapper(struct mlx4_dev *dev, int slave, slave 1352 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave, slave 1357 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave, slave 1362 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave, slave 1367 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_ACCESS_REG_wrapper(struct mlx4_dev *dev, int slave, slave 1409 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port); slave 1411 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave); slave 1092 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port) slave 1095 drivers/net/ethernet/mellanox/mlx4/port.c int slave_gid = slave; slave 1101 drivers/net/ethernet/mellanox/mlx4/port.c if (slave == 0) slave 1106 drivers/net/ethernet/mellanox/mlx4/port.c actv_ports = mlx4_get_active_ports(dev, slave); slave 1128 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave, int port) slave 1132 drivers/net/ethernet/mellanox/mlx4/port.c int slave_gid = slave; slave 1139 drivers/net/ethernet/mellanox/mlx4/port.c if (slave == 0) slave 1143 drivers/net/ethernet/mellanox/mlx4/port.c actv_ports = mlx4_get_active_ports(dev, slave); slave 1169 drivers/net/ethernet/mellanox/mlx4/port.c static int mlx4_reset_roce_port_gids(struct mlx4_dev *dev, int slave, slave 1177 drivers/net/ethernet/mellanox/mlx4/port.c num_gids = mlx4_get_slave_num_gids(dev, slave, port); slave 1178 drivers/net/ethernet/mellanox/mlx4/port.c base = mlx4_get_base_gid_ix(dev, slave, port); slave 1204 drivers/net/ethernet/mellanox/mlx4/port.c void mlx4_reset_roce_gids(struct mlx4_dev *dev, int slave) slave 1211 drivers/net/ethernet/mellanox/mlx4/port.c if (slave < 0 || slave > dev->persist->num_vfs) slave 1214 drivers/net/ethernet/mellanox/mlx4/port.c actv_ports = mlx4_get_active_ports(dev, slave); slave 1236 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_reset_roce_port_gids(dev, slave, i + 1, mailbox); slave 1239 drivers/net/ethernet/mellanox/mlx4/port.c slave, i + 1, err); slave 1248 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_en_set_port_mtu(struct mlx4_dev *dev, int slave, int port, slave 1253 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_slave_state *slave_st = &master->slave_state[slave]; slave 1280 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_en_set_port_user_mtu(struct mlx4_dev *dev, int slave, int port, slave 1285 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_slave_state *slave_st = &master->slave_state[slave]; slave 1312 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_en_set_port_global_pause(struct mlx4_dev *dev, int slave, slave 1319 drivers/net/ethernet/mellanox/mlx4/port.c if (slave != mlx4_master_func_num(dev) && slave 1325 drivers/net/ethernet/mellanox/mlx4/port.c slave); slave 1332 drivers/net/ethernet/mellanox/mlx4/port.c static int mlx4_common_set_port(struct mlx4_dev *dev, int slave, u32 in_mod, slave 1363 drivers/net/ethernet/mellanox/mlx4/port.c if (slave != dev->caps.function && slave 1367 drivers/net/ethernet/mellanox/mlx4/port.c slave); slave 1391 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_en_set_port_mtu(dev, slave, port, slave 1395 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_en_set_port_user_mtu(dev, slave, port, slave 1400 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_en_set_port_global_pause(dev, slave, slave 1409 drivers/net/ethernet/mellanox/mlx4/port.c num_gids = mlx4_get_slave_num_gids(dev, slave, port); slave 1410 drivers/net/ethernet/mellanox/mlx4/port.c base = mlx4_get_base_gid_ix(dev, slave, port); slave 1449 drivers/net/ethernet/mellanox/mlx4/port.c slave, i); slave 1483 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_warn(dev, "denying SET_PORT Beacon slave:%d\n", slave); slave 1502 drivers/net/ethernet/mellanox/mlx4/port.c if (slave != mlx4_master_func_num(dev) && slave 1513 drivers/net/ethernet/mellanox/mlx4/port.c priv->mfunc.master.slave_state[slave].ib_cap_mask[port]; slave 1514 drivers/net/ethernet/mellanox/mlx4/port.c priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = new_cap_mask; slave 1522 drivers/net/ethernet/mellanox/mlx4/port.c if (slave != dev->caps.function) slave 1535 drivers/net/ethernet/mellanox/mlx4/port.c priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = slave 1540 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_SET_PORT_wrapper(struct mlx4_dev *dev, int slave, slave 1547 drivers/net/ethernet/mellanox/mlx4/port.c dev, slave, vhcr->in_modifier & 0xFF); slave 1555 drivers/net/ethernet/mellanox/mlx4/port.c return mlx4_common_set_port(dev, slave, vhcr->in_modifier, slave 1817 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_SET_MCAST_FLTR_wrapper(struct mlx4_dev *dev, int slave, slave 1837 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_SET_VLAN_FLTR_wrapper(struct mlx4_dev *dev, int slave, slave 1848 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave, slave 306 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_vlans(struct mlx4_dev *dev, int slave); slave 307 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, slave 318 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave > dev->persist->num_vfs) slave 324 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] : slave 325 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->allocated[slave]; slave 330 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c guaranteed = res_alloc->guaranteed[slave]; slave 332 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (allocated + count > res_alloc->quota[slave]) { slave 334 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, port, resource_str(res_type), count, slave 335 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c allocated, res_alloc->quota[slave]); slave 355 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, port, resource_str(res_type), free, slave 363 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] += count; slave 367 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->allocated[slave] += count; slave 378 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static inline void mlx4_release_resource(struct mlx4_dev *dev, int slave, slave 387 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave > dev->persist->num_vfs) slave 394 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] : slave 395 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->allocated[slave]; slave 396 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c guaranteed = res_alloc->guaranteed[slave]; slave 410 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (dev->persist->num_vfs + 1) + slave] -= count; slave 414 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->allocated[slave] -= count; slave 691 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void update_pkey_index(struct mlx4_dev *dev, int slave, slave 702 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c new_index = priv->virt2phys_pkey[slave][port - 1][orig_index]; slave 707 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 slave) slave 718 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_get_base_gid_ix(dev, slave, port) | 0x80; slave 720 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c qp_ctx->pri_path.mgid_index = slave | 0x80; slave 727 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_get_base_gid_ix(dev, slave, port); slave 730 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c qp_ctx->pri_path.mgid_index = slave & 0x7F; slave 737 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_get_base_gid_ix(dev, slave, port); slave 740 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c qp_ctx->alt_path.mgid_index = slave & 0x7F; slave 747 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 slave, int port); slave 751 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 slave, u32 qpn) slave 761 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; slave 764 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = handle_counter(dev, qpc, slave, port); slave 891 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int _get_res(struct mlx4_dev *dev, int slave, u64 res_id, slave 908 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c func_name, slave, res_id, mlx4_resource_type_to_str(type), slave 914 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (r->owner != slave) { slave 931 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c #define get_res(dev, slave, res_id, type, res) \ slave 932 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c _get_res((dev), (slave), (res_id), (type), (res), __func__) slave 936 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u64 res_id, int *slave) slave 949 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c *slave = r->owner; slave 957 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void put_res(struct mlx4_dev *dev, int slave, u64 res_id, slave 971 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 974 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int handle_existing_counter(struct mlx4_dev *dev, u8 slave, int port, slave 986 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (!r || r->owner != slave) { slave 999 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct mlx4_qp_context *qpc, u8 slave, slave 1011 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_COUNTER], slave 1023 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = counter_alloc_res(dev, slave, RES_OP_RESERVE, 0, 0, &counter_idx, slave 1029 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __func__, slave, err); slave 1033 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __func__, slave, qpc->pri_path.counter_index); slave 1041 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 slave, int port) slave 1044 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return handle_existing_counter(dev, slave, port, slave 1047 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return handle_unexisting_counter(dev, qpc, slave, port); slave 1186 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static struct res_common *alloc_tr(u64 id, enum mlx4_resource type, int slave, slave 1226 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c ret->owner = slave; slave 1231 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port, slave 1250 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_COUNTER], slave 1278 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int add_res_range(struct mlx4_dev *dev, int slave, u64 base, int count, slave 1293 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_arr[i] = alloc_tr(base + i, type, slave, extra); slave 1313 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[type]); slave 1465 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int rem_res_range(struct mlx4_dev *dev, int slave, u64 base, int count, slave 1481 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (r->owner != slave) { slave 1504 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int qp_res_start_move_to(struct mlx4_dev *dev, int slave, int qpn, slave 1517 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c else if (r->com.owner != slave) slave 1569 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mr_res_start_move_to(struct mlx4_dev *dev, int slave, int index, slave 1581 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c else if (r->com.owner != slave) slave 1622 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int eq_res_start_move_to(struct mlx4_dev *dev, int slave, int index, slave 1634 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c else if (r->com.owner != slave) slave 1671 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn, slave 1683 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c } else if (r->com.owner != slave) { slave 1711 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int srq_res_start_move_to(struct mlx4_dev *dev, int slave, int index, slave 1723 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c } else if (r->com.owner != slave) { slave 1747 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void res_abort_move(struct mlx4_dev *dev, int slave, slave 1756 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (r && (r->owner == slave)) slave 1761 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void res_end_move(struct mlx4_dev *dev, int slave, slave 1770 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (r && (r->owner == slave)) slave 1775 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int valid_reserved(struct mlx4_dev *dev, int slave, int qpn) slave 1778 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (mlx4_is_master(dev) || mlx4_is_guest_proxy(dev, slave, qpn)); slave 1786 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int qp_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 1804 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_grant_resource(dev, slave, RES_QP, count, 0); slave 1810 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_QP, count, 0); slave 1814 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, base, count, RES_QP, 0); slave 1816 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_QP, count, 0); slave 1824 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (valid_reserved(dev, slave, qpn)) { slave 1825 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, qpn, 1, RES_QP, 0); slave 1830 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_res_start_move_to(dev, slave, qpn, RES_QP_MAPPED, slave 1838 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_QP, qpn); slave 1843 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_QP, qpn); slave 1853 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mtt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 1865 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_grant_resource(dev, slave, RES_MTT, 1 << order, 0); slave 1871 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MTT, 1 << order, 0); slave 1875 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, base, 1, RES_MTT, order); slave 1877 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MTT, 1 << order, 0); slave 1886 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mpt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 1896 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_grant_resource(dev, slave, RES_MPT, 1, 0); slave 1902 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MPT, 1, 0); slave 1907 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, id, 1, RES_MPT, index); slave 1909 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MPT, 1, 0); slave 1918 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mr_res_start_move_to(dev, slave, id, slave 1925 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_MPT, id); slave 1929 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_MPT, id); slave 1935 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int cq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 1943 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_grant_resource(dev, slave, RES_CQ, 1, 0); slave 1949 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_CQ, 1, 0); slave 1953 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, cqn, 1, RES_CQ, 0); slave 1955 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_CQ, 1, 0); slave 1970 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int srq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 1978 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_grant_resource(dev, slave, RES_SRQ, 1, 0); slave 1984 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_SRQ, 1, 0); slave 1988 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, srqn, 1, RES_SRQ, 0); slave 1990 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_SRQ, 1, 0); slave 2005 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mac_find_smac_ix_in_slave(struct mlx4_dev *dev, int slave, int port, slave 2011 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_MAC]; slave 2023 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mac_add_to_slave(struct mlx4_dev *dev, int slave, u64 mac, int port, u8 smac_index) slave 2028 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_MAC]; slave 2039 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (mlx4_grant_resource(dev, slave, RES_MAC, 1, port)) slave 2043 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MAC, 1, port); slave 2051 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_MAC]); slave 2055 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void mac_del_from_slave(struct mlx4_dev *dev, int slave, u64 mac, slave 2061 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_MAC]; slave 2068 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MAC, 1, port); slave 2076 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_macs(struct mlx4_dev *dev, int slave) slave 2081 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_MAC]; slave 2090 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MAC, 1, res->port); slave 2095 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mac_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2108 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c dev, slave, port); slave 2122 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mac_add_to_slave(dev, slave, mac, port, smac_index); slave 2129 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int vlan_add_to_slave(struct mlx4_dev *dev, int slave, u16 vlan, slave 2135 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_VLAN]; slave 2146 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (mlx4_grant_resource(dev, slave, RES_VLAN, 1, port)) slave 2150 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_VLAN, 1, port); slave 2158 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_VLAN]); slave 2163 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void vlan_del_from_slave(struct mlx4_dev *dev, int slave, u16 vlan, slave 2169 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_VLAN]; slave 2176 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_VLAN, slave 2185 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_vlans(struct mlx4_dev *dev, int slave) slave 2190 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_VLAN]; slave 2199 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_VLAN, 1, res->port); slave 2204 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int vlan_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2220 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c dev, slave, port); slave 2226 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave_state[slave].old_vlan_api = true; slave 2235 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = vlan_add_to_slave(dev, slave, vlan, port, vlan_index); slave 2242 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2251 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_grant_resource(dev, slave, RES_COUNTER, 1, 0); slave 2257 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); slave 2261 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, index, 1, RES_COUNTER, port); slave 2264 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); slave 2272 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int xrcdn_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2285 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); slave 2294 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave, slave 2305 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2310 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mtt_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2315 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mpt_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2320 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = cq_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2325 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = srq_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2330 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mac_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2336 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = vlan_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2342 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = counter_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2347 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = xrcdn_alloc_res(dev, slave, vhcr->op_modifier, alop, slave 2359 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int qp_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2371 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, base, count, RES_QP, 0); slave 2374 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_QP, count, 0); slave 2379 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_res_start_move_to(dev, slave, qpn, RES_QP_RESERVED, slave 2387 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_QP, qpn); slave 2389 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (valid_reserved(dev, slave, qpn)) slave 2390 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, qpn, 1, RES_QP, 0); slave 2399 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mtt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2411 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, base, 1, RES_MTT, order); slave 2413 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MTT, 1 << order, 0); slave 2419 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mpt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2431 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, id, RES_MPT, &mpt); slave 2435 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, id, RES_MPT); slave 2437 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, id, 1, RES_MPT, 0); slave 2440 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MPT, 1, 0); slave 2446 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mr_res_start_move_to(dev, slave, id, slave 2452 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_MPT, id); slave 2461 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int cq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2470 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, cqn, 1, RES_CQ, 0); slave 2474 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_CQ, 1, 0); slave 2486 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int srq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2495 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, srqn, 1, RES_SRQ, 0); slave 2499 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_SRQ, 1, 0); slave 2511 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mac_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2521 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c dev, slave, port); slave 2525 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mac_del_from_slave(dev, slave, in_param, port); slave 2537 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int vlan_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2545 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c dev, slave, port); slave 2551 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave_state[slave].old_vlan_api) slave 2555 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c vlan_del_from_slave(dev, slave, in_param, port); slave 2566 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int counter_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2579 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, index, 1, RES_COUNTER, 0); slave 2584 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); slave 2589 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int xrcdn_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, slave 2599 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); slave 2608 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave, slave 2619 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_free_res(dev, slave, vhcr->op_modifier, alop, slave 2624 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mtt_free_res(dev, slave, vhcr->op_modifier, alop, slave 2629 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mpt_free_res(dev, slave, vhcr->op_modifier, alop, slave 2634 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = cq_free_res(dev, slave, vhcr->op_modifier, alop, slave 2639 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = srq_free_res(dev, slave, vhcr->op_modifier, alop, slave 2644 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mac_free_res(dev, slave, vhcr->op_modifier, alop, slave 2650 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = vlan_free_res(dev, slave, vhcr->op_modifier, alop, slave 2656 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = counter_free_res(dev, slave, vhcr->op_modifier, alop, slave 2661 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = xrcdn_free_res(dev, slave, vhcr->op_modifier, alop, slave 2743 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int check_mtt_range(struct mlx4_dev *dev, int slave, int start, slave 2754 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave, slave 2771 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mr_res_start_move_to(dev, slave, id, RES_MPT_HW, &mpt); slave 2784 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (pd_slave != 0 && --pd_slave != slave) { slave 2804 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); slave 2808 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = check_mtt_range(dev, slave, mtt_base, slave 2816 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 2822 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 2825 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_MPT, id); slave 2830 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 2832 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_MPT, id); slave 2837 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave, slave 2849 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mr_res_start_move_to(dev, slave, id, RES_MPT_MAPPED, &mpt); slave 2853 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 2860 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_MPT, id); slave 2864 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_MPT, id); slave 2869 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave, slave 2881 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, id, RES_MPT, &mpt); slave 2907 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 2915 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, id, RES_MPT); slave 2947 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave, slave 2951 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, slave 2973 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = adjust_qp_sched_queue(dev, slave, qpc, inbox); slave 2977 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_res_start_move_to(dev, slave, qpn, RES_QP_HW, &qp, 0); slave 2990 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); slave 2994 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = check_mtt_range(dev, slave, mtt_base, mtt_size, mtt); slave 2998 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, rcqn, RES_CQ, &rcq); slave 3003 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, scqn, RES_CQ, &scq); slave 3010 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, srqn, RES_SRQ, &srq); slave 3016 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_pkey_index(dev, slave, inbox); slave 3017 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3028 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, scqn, RES_CQ); slave 3032 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, srqn, RES_SRQ); slave 3038 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, rcqn, RES_CQ); slave 3039 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt_base, RES_MTT); slave 3040 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_QP, qpn); slave 3046 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, srqn, RES_SRQ); slave 3049 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, scqn, RES_CQ); slave 3051 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, rcqn, RES_CQ); slave 3053 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt_base, RES_MTT); slave 3055 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_QP, qpn); slave 3092 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 3100 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int res_id = (slave << 10) | eqn; slave 3107 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, res_id, 1, RES_EQ, 0); slave 3110 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = eq_res_start_move_to(dev, slave, res_id, RES_EQ_HW, &eq); slave 3114 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); slave 3118 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = check_mtt_range(dev, slave, mtt_base, mtt_size, mtt); slave 3122 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3128 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3129 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_EQ, res_id); slave 3133 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3135 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_EQ, res_id); slave 3137 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_res_range(dev, slave, res_id, 1, RES_EQ, 0); slave 3141 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave, slave 3153 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3158 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int get_containing_mtt(struct mlx4_dev *dev, int slave, int start, slave 3167 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c list_for_each_entry(mtt, &tracker->slave_list[slave].res_list[RES_MTT], slave 3169 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (!check_mtt_range(dev, slave, start, len, mtt)) { slave 3185 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c enum qp_transition transition, u8 slave) slave 3198 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave != mlx4_master_func_num(dev)) { slave 3215 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave != mlx4_master_func_num(dev)) { slave 3219 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c num_gids = mlx4_get_slave_num_gids(dev, slave, port); slave 3228 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c num_gids = mlx4_get_slave_num_gids(dev, slave, port); slave 3245 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave != mlx4_master_func_num(dev) && slave 3247 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c !mlx4_vf_smi_enabled(dev, slave, port)) { slave 3250 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __func__, slave, port); slave 3262 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave, slave 3277 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_containing_mtt(dev, slave, start, npages, &rmtt); slave 3295 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, rmtt->com.res_id, RES_MTT); slave 3300 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 3307 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int res_id = eqn | (slave << 10); slave 3311 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = eq_res_start_move_to(dev, slave, res_id, RES_EQ_RESERVED, &eq); slave 3315 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, eq->mtt->com.res_id, RES_MTT, NULL); slave 3319 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3324 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, eq->mtt->com.res_id, RES_MTT); slave 3325 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_EQ, res_id); slave 3326 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_res_range(dev, slave, res_id, 1, RES_EQ, 0); slave 3331 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, eq->mtt->com.res_id, RES_MTT); slave 3333 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_EQ, res_id); slave 3338 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe) slave 3352 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (slave < 0 || slave > dev->persist->num_vfs || slave 3353 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave == dev->caps.function || slave 3354 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c !priv->mfunc.master.slave_state[slave].active) slave 3357 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c event_eq = &priv->mfunc.master.slave_state[slave].event_eq[eqe->type]; slave 3363 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mutex_lock(&priv->mfunc.master.gen_eqe_mutex[slave]); slave 3364 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_id = (slave << 10) | event_eq->eqn; slave 3365 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, res_id, RES_EQ, &req); slave 3387 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c in_modifier = (slave & 0xff) | ((event_eq->eqn & 0x3ff) << 16); slave 3393 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, res_id, RES_EQ); slave 3394 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mutex_unlock(&priv->mfunc.master.gen_eqe_mutex[slave]); slave 3399 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, res_id, RES_EQ); slave 3402 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mutex_unlock(&priv->mfunc.master.gen_eqe_mutex[slave]); slave 3406 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave, slave 3413 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int res_id = eqn | (slave << 10); slave 3417 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, res_id, RES_EQ, &eq); slave 3426 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3429 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, res_id, RES_EQ); slave 3433 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 3446 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = cq_res_start_move_to(dev, slave, cqn, RES_CQ_HW, &cq); slave 3449 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); slave 3452 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = check_mtt_range(dev, slave, mtt_base, cq_get_mtt_size(cqc), mtt); slave 3455 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3460 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3461 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_CQ, cqn); slave 3465 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3467 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_CQ, cqn); slave 3471 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 3481 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = cq_res_start_move_to(dev, slave, cqn, RES_CQ_ALLOCATED, &cq); slave 3484 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3488 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_CQ, cqn); slave 3492 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_CQ, cqn); slave 3496 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 3506 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, cqn, RES_CQ, &cq); slave 3513 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3515 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, cqn, RES_CQ); slave 3520 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int handle_resize(struct mlx4_dev *dev, int slave, slave 3533 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, cq->mtt->com.res_id, RES_MTT, &orig_mtt); slave 3542 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); slave 3546 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = check_mtt_range(dev, slave, mtt_base, cq_get_mtt_size(cqc), mtt); slave 3549 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3553 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, orig_mtt->com.res_id, RES_MTT); slave 3556 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3560 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3562 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, orig_mtt->com.res_id, RES_MTT); slave 3568 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave, slave 3578 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, cqn, RES_CQ, &cq); slave 3586 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = handle_resize(dev, slave, vhcr, inbox, outbox, cmd, cq); slave 3590 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3592 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, cqn, RES_CQ); slave 3609 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 3625 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = srq_res_start_move_to(dev, slave, srqn, RES_SRQ_HW, &srq); slave 3628 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); slave 3631 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = check_mtt_range(dev, slave, mtt_base, srq_get_mtt_size(srqc), slave 3636 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3642 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3643 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_SRQ, srqn); slave 3647 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mtt->com.res_id, RES_MTT); slave 3649 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_SRQ, srqn); slave 3654 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 3664 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = srq_res_start_move_to(dev, slave, srqn, RES_SRQ_ALLOCATED, &srq); slave 3667 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3673 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_SRQ, srqn); slave 3678 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_SRQ, srqn); slave 3683 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 3693 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, srqn, RES_SRQ, &srq); slave 3700 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3702 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, srqn, RES_SRQ); slave 3706 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave, slave 3716 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, srqn, RES_SRQ, &srq); slave 3725 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3727 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, srqn, RES_SRQ); slave 3731 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3741 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, qpn, RES_QP, &qp); slave 3749 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3751 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, qpn, RES_QP); slave 3755 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3763 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_pkey_index(dev, slave, inbox); slave 3764 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_GEN_QP_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3767 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave, slave 3774 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c dev, slave, (qpc->pri_path.sched_queue >> 6 & 1) + 1) - 1; slave 3789 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c dev, slave, (qpc->alt_path.sched_queue >> 6 & 1) slave 3800 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int roce_verify_mac(struct mlx4_dev *dev, int slave, slave 3813 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (mac_find_smac_ix_in_slave(dev, slave, port, smac_ix, &mac)) slave 3819 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3836 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = adjust_qp_sched_queue(dev, slave, qpc, inbox); slave 3839 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = verify_qp_parameters(dev, vhcr, inbox, QP_TRANS_INIT2RTR, slave); slave 3843 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (roce_verify_mac(dev, slave, qpc, inbox)) slave 3846 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_pkey_index(dev, slave, inbox); slave 3847 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_gid(dev, inbox, (u8)slave); slave 3851 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, qpn, RES_QP, &qp); slave 3859 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = update_vport_qp_param(dev, inbox, slave, qpn); slave 3863 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3877 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, qpn, RES_QP); slave 3881 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3890 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = adjust_qp_sched_queue(dev, slave, context, inbox); slave 3893 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = verify_qp_parameters(dev, vhcr, inbox, QP_TRANS_RTR2RTS, slave); slave 3897 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_pkey_index(dev, slave, inbox); slave 3898 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_gid(dev, inbox, (u8)slave); slave 3900 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_GEN_QP_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3903 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3912 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = adjust_qp_sched_queue(dev, slave, context, inbox); slave 3915 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = verify_qp_parameters(dev, vhcr, inbox, QP_TRANS_RTS2RTS, slave); slave 3919 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_pkey_index(dev, slave, inbox); slave 3920 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_gid(dev, inbox, (u8)slave); slave 3922 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_GEN_QP_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3926 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3933 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int err = adjust_qp_sched_queue(dev, slave, context, inbox); slave 3937 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_GEN_QP_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3940 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3949 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = adjust_qp_sched_queue(dev, slave, context, inbox); slave 3952 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = verify_qp_parameters(dev, vhcr, inbox, QP_TRANS_SQD2SQD, slave); slave 3957 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_gid(dev, inbox, (u8)slave); slave 3958 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_pkey_index(dev, slave, inbox); slave 3959 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_GEN_QP_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3962 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3971 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = adjust_qp_sched_queue(dev, slave, context, inbox); slave 3974 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = verify_qp_parameters(dev, vhcr, inbox, QP_TRANS_SQD2RTS, slave); slave 3979 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_gid(dev, inbox, (u8)slave); slave 3980 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c update_pkey_index(dev, slave, inbox); slave 3981 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_GEN_QP_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 3984 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave, slave 3994 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_res_start_move_to(dev, slave, qpn, RES_QP_MAPPED, &qp, 0); slave 3997 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 4006 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_QP, qpn); slave 4010 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_QP, qpn); slave 4015 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static struct res_gid *find_gid(struct mlx4_dev *dev, int slave, slave 4027 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, slave 4039 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (find_gid(dev, slave, rqp, gid)) { slave 4055 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, slave 4063 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res = find_gid(dev, slave, rqp, gid); slave 4077 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int qp_attach(struct mlx4_dev *dev, int slave, struct mlx4_qp *qp, slave 4083 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int port = mlx4_slave_convert_port(dev, slave, gid[5]); slave 4092 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int port = mlx4_slave_convert_port(dev, slave, gid[5]); slave 4118 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int mlx4_adjust_port(struct mlx4_dev *dev, int slave, slave 4128 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c real_port = mlx4_slave_convert_port(dev, slave, gid[5]); slave 4137 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave, slave 4156 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, qpn, RES_QP, &rqp); slave 4162 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_attach(dev, slave, &qp, gid, block_loopback, prot, slave 4168 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_mcg_res(dev, slave, rqp, gid, prot, type, reg_id); slave 4172 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_adjust_port(dev, slave, gid, prot); slave 4176 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_mcg_res(dev, slave, rqp, gid, prot, type, ®_id); slave 4185 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, qpn, RES_QP); slave 4191 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, qpn, RES_QP); slave 4199 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int validate_eth_header_mac(int slave, struct _rule_hw *eth_header, slave 4214 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c eth_header->eth.dst_mac, slave); slave 4224 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int add_eth_header(struct mlx4_dev *dev, int slave, slave 4283 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, slave 4310 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 4315 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, qpn, RES_QP, &rqp); slave 4317 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_err(dev, "Updating qpn 0x%x for slave %d rejected\n", qpn, slave); slave 4325 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mac_find_smac_ix_in_slave(dev, slave, port, slave 4345 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, qpn, RES_QP); slave 4365 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave, slave 4374 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct list_head *rlist = &tracker->slave_list[slave].res_list[RES_MAC]; slave 4389 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_slave_convert_port(dev, slave, ctrl->port); slave 4394 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, qpn, RES_QP, &rqp); slave 4407 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (validate_eth_header_mac(slave, rule_header, rlist)) { slave 4418 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (add_eth_header(dev, slave, inbox, rlist, header_id)) { slave 4439 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, vhcr->out_param, 1, RES_FS_RULE, qpn); slave 4445 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, vhcr->out_param, RES_FS_RULE, &rrule); slave 4472 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, vhcr->out_param, RES_FS_RULE); slave 4480 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, qpn, RES_QP); slave 4499 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave, slave 4515 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, vhcr->in_param, RES_FS_RULE, &rrule); slave 4521 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, vhcr->in_param, RES_FS_RULE); slave 4529 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, vhcr->in_param, RES_FS_RULE); slave 4530 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, qpn, RES_QP, &rqp); slave 4535 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, mirr_reg_id, RES_FS_RULE, &rrule); slave 4539 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, mirr_reg_id, RES_FS_RULE); slave 4543 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, vhcr->in_param, 1, RES_FS_RULE, 0); slave 4555 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, qpn, RES_QP); slave 4563 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave, slave 4572 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, index, RES_COUNTER, NULL); slave 4576 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); slave 4577 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, index, RES_COUNTER); slave 4581 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp) slave 4603 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int _move_all_busy(struct mlx4_dev *dev, int slave, slave 4609 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct list_head *rlist = &tracker->slave_list[slave].res_list[type]; slave 4617 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (r->owner == slave) { slave 4639 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int move_all_busy(struct mlx4_dev *dev, int slave, slave 4647 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c busy = _move_all_busy(dev, slave, type, 0); slave 4655 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c busy = _move_all_busy(dev, slave, type, 1); slave 4659 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_qps(struct mlx4_dev *dev, int slave) slave 4664 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_QP]; slave 4672 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_QP); slave 4675 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 4680 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (qp->com.owner == slave) { slave 4682 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c detach_qp(dev, slave, qp); slave 4692 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (!valid_reserved(dev, slave, qpn)) { slave 4694 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, slave 4701 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (!valid_reserved(dev, slave, qpn)) slave 4706 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c in_param = slave; slave 4714 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, qp->local_qpn); slave 4732 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_srqs(struct mlx4_dev *dev, int slave) slave 4737 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_SRQ]; slave 4745 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_SRQ); slave 4748 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 4753 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (srq->com.owner == slave) { slave 4765 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, slave 4772 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c in_param = slave; slave 4779 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, srqn); slave 4797 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_cqs(struct mlx4_dev *dev, int slave) slave 4802 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_CQ]; slave 4810 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_CQ); slave 4813 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 4818 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (cq->com.owner == slave && !atomic_read(&cq->ref_count)) { slave 4830 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, slave 4837 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c in_param = slave; slave 4844 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, cqn); slave 4859 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_mrs(struct mlx4_dev *dev, int slave) slave 4864 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_MPT]; slave 4872 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_MPT); slave 4875 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 4880 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (mpt->com.owner == slave) { slave 4892 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, slave 4904 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c in_param = slave; slave 4911 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, mptn); slave 4926 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_mtts(struct mlx4_dev *dev, int slave) slave 4932 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_MTT]; slave 4939 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_MTT); slave 4942 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 4947 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (mtt->com.owner == slave) { slave 4960 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_MTT, slave 5061 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_fs_rule(struct mlx4_dev *dev, int slave) slave 5067 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_FS_RULE]; slave 5074 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_FS_RULE); slave 5077 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 5082 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (fs_rule->com.owner == slave) { slave 5114 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_eqs(struct mlx4_dev *dev, int slave) slave 5119 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_EQ]; slave 5126 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_EQ); slave 5129 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 5134 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (eq->com.owner == slave) { slave 5150 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_cmd(dev, slave, eqn & 0x3ff, slave 5156 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, eqn & 0x3ff); slave 5171 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_counters(struct mlx4_dev *dev, int slave) slave 5176 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_COUNTER]; slave 5183 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_COUNTER); slave 5186 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 5198 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (counter->com.owner == slave) { slave 5210 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); slave 5217 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void rem_slave_xrcdns(struct mlx4_dev *dev, int slave) slave 5222 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[slave].res_list[RES_XRCD]; slave 5228 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = move_all_busy(dev, slave, RES_XRCD); slave 5231 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave); slave 5235 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (xrcd->com.owner == slave) { slave 5246 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave) slave 5249 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_reset_roce_gids(dev, slave); slave 5250 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mutex_lock(&priv->mfunc.master.res_tracker.slave_list[slave].mutex); slave 5251 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_vlans(dev, slave); slave 5252 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_macs(dev, slave); slave 5253 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_fs_rule(dev, slave); slave 5254 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_qps(dev, slave); slave 5255 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_srqs(dev, slave); slave 5256 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_cqs(dev, slave); slave 5257 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_mrs(dev, slave); slave 5258 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_eqs(dev, slave); slave 5259 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_mtts(dev, slave); slave 5260 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_counters(dev, slave); slave 5261 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_slave_xrcdns(dev, slave); slave 5262 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mutex_unlock(&priv->mfunc.master.res_tracker.slave_list[slave].mutex); slave 5282 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c &tracker->slave_list[work->slave].res_list[RES_QP]; slave 5308 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c work->slave); slave 5341 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (qp->com.owner == work->slave) { slave 5398 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c work->slave, port, qp->local_qpn, err); slave 5409 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c errors, work->slave, work->port); slave 1738 drivers/net/ethernet/mscc/ocelot.c struct net_device *slave; slave 1741 drivers/net/ethernet/mscc/ocelot.c netdev_for_each_lower_dev(dev, slave, iter) { slave 1742 drivers/net/ethernet/mscc/ocelot.c ret = ocelot_netdevice_port_event(slave, event, info); slave 22 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp_xpb.h #define NFP_XPB_DEVICE(island, slave, device) \ slave 24 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp_xpb.h (((slave) & 3) << 22) | \ slave 3318 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct net_device *master, *slave; slave 3332 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c for_each_netdev_rcu(&init_net, slave) slave 3333 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (is_vlan_dev(slave) && slave 3334 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c vlan_dev_real_dev(slave) == master) slave 3335 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_config_indev_addr(adapter, slave, event); slave 3353 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct net_device *slave; slave 3367 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c for_each_netdev_in_bond_rcu(dev, slave) { slave 3368 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (!netxen_config_checkdev(slave)) slave 3370 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c adapter = netdev_priv(slave); slave 3394 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct net_device *dev, *slave; slave 3412 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c for_each_netdev_in_bond_rcu(dev, slave) { slave 3413 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (!netxen_config_checkdev(slave)) slave 3415 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c adapter = netdev_priv(slave); slave 16 drivers/net/ethernet/ti/cpsw-common.c int slave, u8 *mac_addr) slave 29 drivers/net/ethernet/ti/cpsw-common.c regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); slave 30 drivers/net/ethernet/ti/cpsw-common.c regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); slave 42 drivers/net/ethernet/ti/cpsw-common.c static int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave, slave 56 drivers/net/ethernet/ti/cpsw-common.c regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lo); slave 57 drivers/net/ethernet/ti/cpsw-common.c regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_hi); slave 69 drivers/net/ethernet/ti/cpsw-common.c int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr) slave 72 drivers/net/ethernet/ti/cpsw-common.c return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); slave 75 drivers/net/ethernet/ti/cpsw-common.c return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); slave 78 drivers/net/ethernet/ti/cpsw-common.c return davinci_emac_3517_get_macid(dev, 0x110, slave, mac_addr); slave 81 drivers/net/ethernet/ti/cpsw-common.c return cpsw_am33xx_cm_get_macid(dev, 0x30, slave, mac_addr); slave 84 drivers/net/ethernet/ti/cpsw-common.c return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); slave 87 drivers/net/ethernet/ti/cpsw-common.c return davinci_emac_3517_get_macid(dev, 0x514, slave, mac_addr); slave 36 drivers/net/ethernet/ti/cpsw-phy-sel.c phy_interface_t phy_mode, int slave); slave 41 drivers/net/ethernet/ti/cpsw-phy-sel.c phy_interface_t phy_mode, int slave) slave 76 drivers/net/ethernet/ti/cpsw-phy-sel.c mask = GMII_SEL_MODE_MASK << (slave * 2) | BIT(slave + 6); slave 77 drivers/net/ethernet/ti/cpsw-phy-sel.c mask |= BIT(slave + 4); slave 78 drivers/net/ethernet/ti/cpsw-phy-sel.c mode <<= slave * 2; slave 81 drivers/net/ethernet/ti/cpsw-phy-sel.c if (slave == 0) slave 88 drivers/net/ethernet/ti/cpsw-phy-sel.c if (slave == 0) slave 101 drivers/net/ethernet/ti/cpsw-phy-sel.c phy_interface_t phy_mode, int slave) slave 131 drivers/net/ethernet/ti/cpsw-phy-sel.c switch (slave) { slave 161 drivers/net/ethernet/ti/cpsw-phy-sel.c void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) slave 183 drivers/net/ethernet/ti/cpsw-phy-sel.c priv->cpsw_phy_sel(priv, phy_mode, slave); slave 73 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; \ slave 80 drivers/net/ethernet/ti/cpsw.c slave = cpsw->slaves; \ slave 82 drivers/net/ethernet/ti/cpsw.c (func)(slave++, ##arg); \ slave 1017 drivers/net/ethernet/ti/cpsw.c static void cpsw_set_slave_mac(struct cpsw_slave *slave, slave 1020 drivers/net/ethernet/ti/cpsw.c slave_write(slave, mac_hi(priv->mac_addr), SA_HI); slave 1021 drivers/net/ethernet/ti/cpsw.c slave_write(slave, mac_lo(priv->mac_addr), SA_LO); slave 1027 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 1032 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[cpsw_slave_index(cpsw, priv)]; slave 1033 drivers/net/ethernet/ti/cpsw.c shift = CPSW_FIFO_SHAPE_EN_SHIFT + 3 * slave->slave_num; slave 1043 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 1048 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[cpsw_slave_index(cpsw, priv)]; slave 1049 drivers/net/ethernet/ti/cpsw.c shift = CPSW_FIFO_SHAPE_EN_SHIFT + 3 * slave->slave_num; slave 1056 drivers/net/ethernet/ti/cpsw.c static void _cpsw_adjust_link(struct cpsw_slave *slave, slave 1059 drivers/net/ethernet/ti/cpsw.c struct phy_device *phy = slave->phy; slave 1067 drivers/net/ethernet/ti/cpsw.c slave_port = cpsw_get_slave_port(slave->slave_num); slave 1090 drivers/net/ethernet/ti/cpsw.c if (mac_control != slave->mac_control) slave 1091 drivers/net/ethernet/ti/cpsw.c cpsw_sl_ctl_set(slave->mac_sl, mac_control); slave 1100 drivers/net/ethernet/ti/cpsw.c priv->shp_cfg_speed != slave->phy->speed && slave 1110 drivers/net/ethernet/ti/cpsw.c cpsw_sl_wait_for_idle(slave->mac_sl, 100); slave 1112 drivers/net/ethernet/ti/cpsw.c cpsw_sl_ctl_reset(slave->mac_sl); slave 1115 drivers/net/ethernet/ti/cpsw.c if (mac_control != slave->mac_control) slave 1118 drivers/net/ethernet/ti/cpsw.c slave->mac_control = mac_control; slave 1181 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv, struct cpsw_slave *slave, slave 1188 drivers/net/ethernet/ti/cpsw.c slave_write(slave, slave->port_vlan, CPSW1_PORT_VLAN); slave 1190 drivers/net/ethernet/ti/cpsw.c slave_write(slave, slave->port_vlan, CPSW2_PORT_VLAN); slave 1191 drivers/net/ethernet/ti/cpsw.c cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, slave 1194 drivers/net/ethernet/ti/cpsw.c ALE_PORT_HOST, ALE_VLAN, slave->port_vlan, 0); slave 1197 drivers/net/ethernet/ti/cpsw.c ALE_SECURE, slave->port_vlan); slave 1202 drivers/net/ethernet/ti/cpsw.c static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv) slave 1208 drivers/net/ethernet/ti/cpsw.c cpsw_sl_reset(slave->mac_sl, 100); slave 1209 drivers/net/ethernet/ti/cpsw.c cpsw_sl_ctl_reset(slave->mac_sl); slave 1212 drivers/net/ethernet/ti/cpsw.c cpsw_sl_reg_write(slave->mac_sl, CPSW_SL_RX_PRI_MAP, slave 1217 drivers/net/ethernet/ti/cpsw.c slave_write(slave, TX_PRIORITY_MAPPING, CPSW1_TX_PRI_MAP); slave 1221 drivers/net/ethernet/ti/cpsw.c slave_write(slave, slave 1228 drivers/net/ethernet/ti/cpsw.c slave_write(slave, TX_PRIORITY_MAPPING, CPSW2_TX_PRI_MAP); slave 1232 drivers/net/ethernet/ti/cpsw.c slave_write(slave, slave 1239 drivers/net/ethernet/ti/cpsw.c cpsw_sl_reg_write(slave->mac_sl, CPSW_SL_RX_MAXLEN, slave 1241 drivers/net/ethernet/ti/cpsw.c cpsw_set_slave_mac(slave, priv); slave 1243 drivers/net/ethernet/ti/cpsw.c slave->mac_control = 0; /* no link yet */ slave 1245 drivers/net/ethernet/ti/cpsw.c slave_port = cpsw_get_slave_port(slave->slave_num); slave 1248 drivers/net/ethernet/ti/cpsw.c cpsw_add_dual_emac_def_ale_entries(priv, slave, slave_port); slave 1253 drivers/net/ethernet/ti/cpsw.c if (slave->data->phy_node) { slave 1254 drivers/net/ethernet/ti/cpsw.c phy = of_phy_connect(priv->ndev, slave->data->phy_node, slave 1255 drivers/net/ethernet/ti/cpsw.c &cpsw_adjust_link, 0, slave->data->phy_if); slave 1258 drivers/net/ethernet/ti/cpsw.c slave->data->phy_node, slave 1259 drivers/net/ethernet/ti/cpsw.c slave->slave_num); slave 1263 drivers/net/ethernet/ti/cpsw.c phy = phy_connect(priv->ndev, slave->data->phy_id, slave 1264 drivers/net/ethernet/ti/cpsw.c &cpsw_adjust_link, slave->data->phy_if); slave 1268 drivers/net/ethernet/ti/cpsw.c slave->data->phy_id, slave->slave_num, slave 1274 drivers/net/ethernet/ti/cpsw.c slave->phy = phy; slave 1276 drivers/net/ethernet/ti/cpsw.c phy_attached_info(slave->phy); slave 1278 drivers/net/ethernet/ti/cpsw.c phy_start(slave->phy); slave 1281 drivers/net/ethernet/ti/cpsw.c if (!IS_ERR(slave->data->ifphy)) slave 1282 drivers/net/ethernet/ti/cpsw.c phy_set_mode_ext(slave->data->ifphy, PHY_MODE_ETHERNET, slave 1283 drivers/net/ethernet/ti/cpsw.c slave->data->phy_if); slave 1285 drivers/net/ethernet/ti/cpsw.c cpsw_phy_sel(cpsw->dev, slave->phy->interface, slave 1286 drivers/net/ethernet/ti/cpsw.c slave->slave_num); slave 1396 drivers/net/ethernet/ti/cpsw.c static void cpsw_slave_stop(struct cpsw_slave *slave, struct cpsw_common *cpsw) slave 1400 drivers/net/ethernet/ti/cpsw.c slave_port = cpsw_get_slave_port(slave->slave_num); slave 1402 drivers/net/ethernet/ti/cpsw.c if (!slave->phy) slave 1404 drivers/net/ethernet/ti/cpsw.c phy_stop(slave->phy); slave 1405 drivers/net/ethernet/ti/cpsw.c phy_disconnect(slave->phy); slave 1406 drivers/net/ethernet/ti/cpsw.c slave->phy = NULL; slave 1409 drivers/net/ethernet/ti/cpsw.c cpsw_sl_reset(slave->mac_sl, 100); slave 1410 drivers/net/ethernet/ti/cpsw.c cpsw_sl_ctl_reset(slave->mac_sl); slave 1425 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 1434 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[cpsw_slave_index(cpsw, priv)]; slave 1435 drivers/net/ethernet/ti/cpsw.c send_pct = slave_read(slave, SEND_PERCENT); slave 1469 drivers/net/ethernet/ti/cpsw.c slave_write(slave, send_pct, SEND_PERCENT); slave 1484 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 1492 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[cpsw_slave_index(cpsw, priv)]; slave 1499 drivers/net/ethernet/ti/cpsw.c val = slave_read(slave, tx_in_ctl_rg); slave 1519 drivers/net/ethernet/ti/cpsw.c slave_write(slave, val, tx_in_ctl_rg); slave 1536 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 1558 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[cpsw_slave_index(cpsw, priv)]; slave 1559 drivers/net/ethernet/ti/cpsw.c if (slave->phy && slave->phy->link) { slave 1561 drivers/net/ethernet/ti/cpsw.c priv->shp_cfg_speed != slave->phy->speed) slave 1564 drivers/net/ethernet/ti/cpsw.c priv->shp_cfg_speed = slave->phy->speed; slave 1593 drivers/net/ethernet/ti/cpsw.c static void cpsw_cbs_resume(struct cpsw_slave *slave, struct cpsw_priv *priv) slave 1606 drivers/net/ethernet/ti/cpsw.c static void cpsw_mqprio_resume(struct cpsw_slave *slave, struct cpsw_priv *priv) slave 1625 drivers/net/ethernet/ti/cpsw.c slave_write(slave, tx_prio_map, tx_prio_rg); slave 1861 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave = &cpsw->slaves[cpsw->data.active_slave]; slave 1865 drivers/net/ethernet/ti/cpsw.c slave_write(slave, 0, CPSW1_TS_CTL); slave 1878 drivers/net/ethernet/ti/cpsw.c slave_write(slave, ts_en, CPSW1_TS_CTL); slave 1879 drivers/net/ethernet/ti/cpsw.c slave_write(slave, seq_id, CPSW1_TS_SEQ_LTYPE); slave 1884 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 1888 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[cpsw_slave_index(cpsw, priv)]; slave 1890 drivers/net/ethernet/ti/cpsw.c ctrl = slave_read(slave, CPSW2_CONTROL); slave 1915 drivers/net/ethernet/ti/cpsw.c slave_write(slave, mtype, CPSW2_TS_SEQ_MTYPE); slave 1916 drivers/net/ethernet/ti/cpsw.c slave_write(slave, ctrl, CPSW2_CONTROL); slave 2222 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 2258 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[i]; slave 2259 drivers/net/ethernet/ti/cpsw.c if (!slave->ndev) slave 2262 drivers/net/ethernet/ti/cpsw.c netdev_get_tx_queue(slave->ndev, queue)->tx_maxrate = rate; slave 2275 drivers/net/ethernet/ti/cpsw.c struct cpsw_slave *slave; slave 2318 drivers/net/ethernet/ti/cpsw.c slave = &cpsw->slaves[cpsw_slave_index(cpsw, priv)]; slave 2319 drivers/net/ethernet/ti/cpsw.c slave_write(slave, tx_prio_map, offset); slave 18 drivers/net/ethernet/ti/cpsw.h void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave); slave 21 drivers/net/ethernet/ti/cpsw.h void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) slave 24 drivers/net/ethernet/ti/cpsw.h int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr); slave 76 drivers/net/ethernet/ti/cpsw_priv.c struct cpsw_slave *slave = &cpsw->slaves[i]; slave 79 drivers/net/ethernet/ti/cpsw_priv.c slave->slave_num = i; slave 80 drivers/net/ethernet/ti/cpsw_priv.c slave->data = &cpsw->data.slave_data[i]; slave 81 drivers/net/ethernet/ti/cpsw_priv.c slave->regs = regs + slave_offset; slave 82 drivers/net/ethernet/ti/cpsw_priv.c slave->port_vlan = slave->data->dual_emac_res_vlan; slave 83 drivers/net/ethernet/ti/cpsw_priv.c slave->mac_sl = cpsw_sl_get("cpsw", dev, regs + sliver_offset); slave 84 drivers/net/ethernet/ti/cpsw_priv.c if (IS_ERR(slave->mac_sl)) slave 85 drivers/net/ethernet/ti/cpsw_priv.c return PTR_ERR(slave->mac_sl); slave 308 drivers/net/ethernet/ti/cpsw_priv.h static inline u32 slave_read(struct cpsw_slave *slave, u32 offset) slave 310 drivers/net/ethernet/ti/cpsw_priv.h return readl_relaxed(slave->regs + offset); slave 313 drivers/net/ethernet/ti/cpsw_priv.h static inline void slave_write(struct cpsw_slave *slave, u32 val, u32 offset) slave 315 drivers/net/ethernet/ti/cpsw_priv.h writel_relaxed(val, slave->regs + offset); slave 767 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave; slave 1731 drivers/net/ethernet/ti/netcp_ethss.c #define for_each_sec_slave(slave, priv) \ slave 1732 drivers/net/ethernet/ti/netcp_ethss.c list_for_each_entry((slave), &(priv)->secondary_slaves, slave_list) slave 1947 drivers/net/ethernet/ti/netcp_ethss.c if (!gbe_intf->slave) slave 1951 drivers/net/ethernet/ti/netcp_ethss.c cmd->base.port = gbe_intf->slave->phy_port_t; slave 1979 drivers/net/ethernet/ti/netcp_ethss.c if (!gbe_intf->slave) slave 1982 drivers/net/ethernet/ti/netcp_ethss.c if (port != gbe_intf->slave->phy_port_t) { slave 1999 drivers/net/ethernet/ti/netcp_ethss.c gbe_intf->slave->phy_port_t = port; slave 2059 drivers/net/ethernet/ti/netcp_ethss.c static void gbe_set_slave_mac(struct gbe_slave *slave, slave 2064 drivers/net/ethernet/ti/netcp_ethss.c writel(mac_hi(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_hi)); slave 2065 drivers/net/ethernet/ti/netcp_ethss.c writel(mac_lo(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_lo)); slave 2078 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave, slave 2081 drivers/net/ethernet/ti/netcp_ethss.c struct phy_device *phy = slave->phy; slave 2085 drivers/net/ethernet/ti/netcp_ethss.c mac_control = slave->mac_control; slave 2094 drivers/net/ethernet/ti/netcp_ethss.c writel(mac_control, GBE_REG_ADDR(slave, emac_regs, slave 2097 drivers/net/ethernet/ti/netcp_ethss.c cpsw_ale_control_set(gbe_dev->ale, slave->port_num, slave 2101 drivers/net/ethernet/ti/netcp_ethss.c if (ndev && slave->open && slave 2102 drivers/net/ethernet/ti/netcp_ethss.c ((slave->link_interface != SGMII_LINK_MAC_PHY) && slave 2103 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface != RGMII_LINK_MAC_PHY) && slave 2104 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface != XGMII_LINK_MAC_PHY))) slave 2107 drivers/net/ethernet/ti/netcp_ethss.c writel(mac_control, GBE_REG_ADDR(slave, emac_regs, slave 2109 drivers/net/ethernet/ti/netcp_ethss.c cpsw_ale_control_set(gbe_dev->ale, slave->port_num, slave 2113 drivers/net/ethernet/ti/netcp_ethss.c ((slave->link_interface != SGMII_LINK_MAC_PHY) && slave 2114 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface != RGMII_LINK_MAC_PHY) && slave 2115 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface != XGMII_LINK_MAC_PHY))) slave 2123 drivers/net/ethernet/ti/netcp_ethss.c static bool gbe_phy_link_status(struct gbe_slave *slave) slave 2125 drivers/net/ethernet/ti/netcp_ethss.c return !slave->phy || slave->phy->link; slave 2139 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave, slave 2143 drivers/net/ethernet/ti/netcp_ethss.c int sp = slave->slave_num, link_state; slave 2145 drivers/net/ethernet/ti/netcp_ethss.c if (!slave->open) slave 2148 drivers/net/ethernet/ti/netcp_ethss.c if (SLAVE_LINK_IS_RGMII(slave)) slave 2151 drivers/net/ethernet/ti/netcp_ethss.c if (SLAVE_LINK_IS_SGMII(slave)) slave 2155 drivers/net/ethernet/ti/netcp_ethss.c phy_link_state = gbe_phy_link_status(slave); slave 2158 drivers/net/ethernet/ti/netcp_ethss.c if (atomic_xchg(&slave->link_state, link_state) != link_state) slave 2159 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_link_state_action(gbe_dev, ndev, slave, slave 2172 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_update_link_state(gbe_intf->gbe_dev, gbe_intf->slave, slave 2185 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_update_link_state(gbe_intf->gbe_dev, gbe_intf->slave, slave 2192 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave; slave 2194 drivers/net/ethernet/ti/netcp_ethss.c for_each_sec_slave(slave, gbe_dev) slave 2195 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_update_link_state(gbe_dev, slave, NULL); slave 2201 drivers/net/ethernet/ti/netcp_ethss.c static int gbe_port_reset(struct gbe_slave *slave) slave 2206 drivers/net/ethernet/ti/netcp_ethss.c writel(SOFT_RESET, GBE_REG_ADDR(slave, emac_regs, soft_reset)); slave 2210 drivers/net/ethernet/ti/netcp_ethss.c v = readl(GBE_REG_ADDR(slave, emac_regs, soft_reset)); slave 2220 drivers/net/ethernet/ti/netcp_ethss.c static void gbe_port_config(struct gbe_priv *gbe_dev, struct gbe_slave *slave, slave 2231 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface >= XGMII_LINK_MAC_PHY)) { slave 2233 drivers/net/ethernet/ti/netcp_ethss.c xgmii_mode |= (1 << slave->slave_num); slave 2238 drivers/net/ethernet/ti/netcp_ethss.c rx_maxlen_reg = GBE_REG_ADDR(slave, port_regs, rx_maxlen); slave 2240 drivers/net/ethernet/ti/netcp_ethss.c rx_maxlen_reg = GBE_REG_ADDR(slave, emac_regs, rx_maxlen); slave 2243 drivers/net/ethernet/ti/netcp_ethss.c writel(slave->mac_control, GBE_REG_ADDR(slave, emac_regs, mac_control)); slave 2247 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave, bool set) slave 2249 drivers/net/ethernet/ti/netcp_ethss.c if (SLAVE_LINK_IS_XGMII(slave)) slave 2252 drivers/net/ethernet/ti/netcp_ethss.c netcp_sgmii_rtreset(SGMII_BASE(priv, slave->slave_num), slave 2253 drivers/net/ethernet/ti/netcp_ethss.c slave->slave_num, set); slave 2259 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave = intf->slave; slave 2262 drivers/net/ethernet/ti/netcp_ethss.c gbe_sgmii_rtreset(gbe_dev, slave, true); slave 2263 drivers/net/ethernet/ti/netcp_ethss.c gbe_port_reset(slave); slave 2265 drivers/net/ethernet/ti/netcp_ethss.c cpsw_ale_control_set(gbe_dev->ale, slave->port_num, slave 2268 drivers/net/ethernet/ti/netcp_ethss.c 1 << slave->port_num, 0, 0); slave 2270 drivers/net/ethernet/ti/netcp_ethss.c if (!slave->phy) slave 2273 drivers/net/ethernet/ti/netcp_ethss.c phy_stop(slave->phy); slave 2274 drivers/net/ethernet/ti/netcp_ethss.c phy_disconnect(slave->phy); slave 2275 drivers/net/ethernet/ti/netcp_ethss.c slave->phy = NULL; slave 2278 drivers/net/ethernet/ti/netcp_ethss.c static void gbe_sgmii_config(struct gbe_priv *priv, struct gbe_slave *slave) slave 2280 drivers/net/ethernet/ti/netcp_ethss.c if (SLAVE_LINK_IS_XGMII(slave)) slave 2283 drivers/net/ethernet/ti/netcp_ethss.c netcp_sgmii_reset(SGMII_BASE(priv, slave->slave_num), slave->slave_num); slave 2284 drivers/net/ethernet/ti/netcp_ethss.c netcp_sgmii_config(SGMII_BASE(priv, slave->slave_num), slave->slave_num, slave 2285 drivers/net/ethernet/ti/netcp_ethss.c slave->link_interface); slave 2291 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave = gbe_intf->slave; slave 2298 drivers/net/ethernet/ti/netcp_ethss.c gbe_sgmii_config(priv, slave); slave 2299 drivers/net/ethernet/ti/netcp_ethss.c gbe_port_reset(slave); slave 2301 drivers/net/ethernet/ti/netcp_ethss.c gbe_sgmii_rtreset(priv, slave, false); slave 2302 drivers/net/ethernet/ti/netcp_ethss.c gbe_port_config(priv, slave, priv->rx_packet_max); slave 2303 drivers/net/ethernet/ti/netcp_ethss.c gbe_set_slave_mac(slave, gbe_intf); slave 2309 drivers/net/ethernet/ti/netcp_ethss.c GBE_REG_ADDR(slave, port_regs, rx_pri_map)); slave 2312 drivers/net/ethernet/ti/netcp_ethss.c cpsw_ale_control_set(priv->ale, slave->port_num, slave 2315 drivers/net/ethernet/ti/netcp_ethss.c 1 << slave->port_num, 0, 0, ALE_MCAST_FWD_2); slave 2317 drivers/net/ethernet/ti/netcp_ethss.c if (slave->link_interface == SGMII_LINK_MAC_PHY) { slave 2320 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_port_t = PORT_MII; slave 2321 drivers/net/ethernet/ti/netcp_ethss.c } else if (slave->link_interface == RGMII_LINK_MAC_PHY) { slave 2323 drivers/net/ethernet/ti/netcp_ethss.c phy_mode = of_get_phy_mode(slave->node); slave 2335 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_port_t = PORT_MII; slave 2336 drivers/net/ethernet/ti/netcp_ethss.c } else if (slave->link_interface == XGMII_LINK_MAC_PHY) { slave 2339 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_port_t = PORT_FIBRE; slave 2346 drivers/net/ethernet/ti/netcp_ethss.c slave->phy = of_phy_connect(gbe_intf->ndev, slave 2347 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_node, slave 2350 drivers/net/ethernet/ti/netcp_ethss.c if (!slave->phy) { slave 2352 drivers/net/ethernet/ti/netcp_ethss.c slave->slave_num); slave 2356 drivers/net/ethernet/ti/netcp_ethss.c phydev_name(slave->phy)); slave 2357 drivers/net/ethernet/ti/netcp_ethss.c phy_start(slave->phy); slave 2622 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave = gbe_intf->slave; slave 2627 drivers/net/ethernet/ti/netcp_ethss.c writel(0, GBE_REG_ADDR(slave, port_regs, ts_ctl)); slave 2634 drivers/net/ethernet/ti/netcp_ethss.c (slave->ts_ctl.dst_port_map << TS_CTL_DST_PORT_SHIFT) | slave 2635 drivers/net/ethernet/ti/netcp_ethss.c (slave->ts_ctl.uni ? TS_UNI_EN : slave 2636 drivers/net/ethernet/ti/netcp_ethss.c slave->ts_ctl.maddr_map << TS_CTL_MADDR_SHIFT); slave 2644 drivers/net/ethernet/ti/netcp_ethss.c writel(ts_en, GBE_REG_ADDR(slave, port_regs, ts_ctl)); slave 2645 drivers/net/ethernet/ti/netcp_ethss.c writel(seq_id, GBE_REG_ADDR(slave, port_regs, ts_seq_ltype)); slave 2646 drivers/net/ethernet/ti/netcp_ethss.c writel(ctl, GBE_REG_ADDR(slave, port_regs, ts_ctl_ltype2)); slave 2830 drivers/net/ethernet/ti/netcp_ethss.c struct phy_device *phy = gbe_intf->slave->phy; slave 2851 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave; slave 2855 drivers/net/ethernet/ti/netcp_ethss.c if (!gbe_intf->slave->open) slave 2857 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_update_link_state(gbe_dev, gbe_intf->slave, slave 2862 drivers/net/ethernet/ti/netcp_ethss.c for_each_sec_slave(slave, gbe_dev) { slave 2863 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_update_link_state(gbe_dev, slave, NULL); slave 2901 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave = gbe_intf->slave; slave 2902 drivers/net/ethernet/ti/netcp_ethss.c int port_num = slave->port_num; slave 2951 drivers/net/ethernet/ti/netcp_ethss.c slave->open = true; slave 2952 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_update_link_state(gbe_dev, slave, ndev); slave 2976 drivers/net/ethernet/ti/netcp_ethss.c gbe_intf->slave->open = false; slave 2977 drivers/net/ethernet/ti/netcp_ethss.c atomic_set(&gbe_intf->slave->link_state, NETCP_LINK_STATE_INVALID); slave 2982 drivers/net/ethernet/ti/netcp_ethss.c static void init_slave_ts_ctl(struct gbe_slave *slave) slave 2984 drivers/net/ethernet/ti/netcp_ethss.c slave->ts_ctl.uni = 1; slave 2985 drivers/net/ethernet/ti/netcp_ethss.c slave->ts_ctl.dst_port_map = slave 2987 drivers/net/ethernet/ti/netcp_ethss.c slave->ts_ctl.maddr_map = slave 2992 drivers/net/ethernet/ti/netcp_ethss.c static void init_slave_ts_ctl(struct gbe_slave *slave) slave 2997 drivers/net/ethernet/ti/netcp_ethss.c static int init_slave(struct gbe_priv *gbe_dev, struct gbe_slave *slave, slave 3004 drivers/net/ethernet/ti/netcp_ethss.c if (of_property_read_u32(node, "slave-port", &slave->slave_num)) { slave 3010 drivers/net/ethernet/ti/netcp_ethss.c &slave->link_interface)) { slave 3013 drivers/net/ethernet/ti/netcp_ethss.c slave->link_interface = SGMII_LINK_MAC_PHY; slave 3016 drivers/net/ethernet/ti/netcp_ethss.c slave->node = node; slave 3017 drivers/net/ethernet/ti/netcp_ethss.c slave->open = false; slave 3018 drivers/net/ethernet/ti/netcp_ethss.c if ((slave->link_interface == SGMII_LINK_MAC_PHY) || slave 3019 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface == RGMII_LINK_MAC_PHY) || slave 3020 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface == XGMII_LINK_MAC_PHY)) slave 3021 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_node = of_parse_phandle(node, "phy-handle", 0); slave 3022 drivers/net/ethernet/ti/netcp_ethss.c slave->port_num = gbe_get_slave_port(gbe_dev, slave->slave_num); slave 3024 drivers/net/ethernet/ti/netcp_ethss.c if (slave->link_interface >= XGMII_LINK_MAC_PHY) slave 3025 drivers/net/ethernet/ti/netcp_ethss.c slave->mac_control = GBE_DEF_10G_MAC_CONTROL; slave 3027 drivers/net/ethernet/ti/netcp_ethss.c slave->mac_control = GBE_DEF_1G_MAC_CONTROL; slave 3030 drivers/net/ethernet/ti/netcp_ethss.c port_reg_num = slave->slave_num; slave 3032 drivers/net/ethernet/ti/netcp_ethss.c if (slave->slave_num > 1) { slave 3057 drivers/net/ethernet/ti/netcp_ethss.c slave->port_regs = gbe_dev->switch_regs + port_reg_ofs + slave 3059 drivers/net/ethernet/ti/netcp_ethss.c slave->emac_regs = gbe_dev->switch_regs + emac_reg_ofs + slave 3060 drivers/net/ethernet/ti/netcp_ethss.c (emac_reg_blk_sz * slave->slave_num); slave 3064 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, port_vlan); slave 3065 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, tx_pri_map); slave 3066 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, sa_lo); slave 3067 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, sa_hi); slave 3068 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, ts_ctl); slave 3069 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, ts_seq_ltype); slave 3070 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, ts_vlan); slave 3071 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, ts_ctl_ltype2); slave 3072 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, port_regs, ts_ctl2); slave 3075 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, emac_regs, mac_control); slave 3076 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, emac_regs, soft_reset); slave 3077 drivers/net/ethernet/ti/netcp_ethss.c GBE_SET_REG_OFS(slave, emac_regs, rx_maxlen); slave 3081 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, port_vlan); slave 3082 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, tx_pri_map); slave 3083 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, rx_pri_map); slave 3084 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, sa_lo); slave 3085 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, sa_hi); slave 3086 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, ts_ctl); slave 3087 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, ts_seq_ltype); slave 3088 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, ts_vlan); slave 3089 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, ts_ctl_ltype2); slave 3090 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, ts_ctl2); slave 3091 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, port_regs, rx_maxlen); slave 3094 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, emac_regs, mac_control); slave 3095 drivers/net/ethernet/ti/netcp_ethss.c GBENU_SET_REG_OFS(slave, emac_regs, soft_reset); slave 3099 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, port_vlan); slave 3100 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, tx_pri_map); slave 3101 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, sa_lo); slave 3102 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, sa_hi); slave 3103 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, ts_ctl); slave 3104 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, ts_seq_ltype); slave 3105 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, ts_vlan); slave 3106 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, ts_ctl_ltype2); slave 3107 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, port_regs, ts_ctl2); slave 3110 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, emac_regs, mac_control); slave 3111 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, emac_regs, soft_reset); slave 3112 drivers/net/ethernet/ti/netcp_ethss.c XGBE_SET_REG_OFS(slave, emac_regs, rx_maxlen); slave 3115 drivers/net/ethernet/ti/netcp_ethss.c atomic_set(&slave->link_state, NETCP_LINK_STATE_INVALID); slave 3117 drivers/net/ethernet/ti/netcp_ethss.c init_slave_ts_ctl(slave); slave 3128 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave; slave 3132 drivers/net/ethernet/ti/netcp_ethss.c slave = devm_kzalloc(dev, sizeof(*slave), GFP_KERNEL); slave 3133 drivers/net/ethernet/ti/netcp_ethss.c if (!slave) { slave 3139 drivers/net/ethernet/ti/netcp_ethss.c if (init_slave(gbe_dev, slave, port)) { slave 3143 drivers/net/ethernet/ti/netcp_ethss.c devm_kfree(dev, slave); slave 3148 drivers/net/ethernet/ti/netcp_ethss.c gbe_sgmii_config(gbe_dev, slave); slave 3149 drivers/net/ethernet/ti/netcp_ethss.c gbe_port_reset(slave); slave 3150 drivers/net/ethernet/ti/netcp_ethss.c gbe_port_config(gbe_dev, slave, gbe_dev->rx_packet_max); slave 3151 drivers/net/ethernet/ti/netcp_ethss.c list_add_tail(&slave->slave_list, &gbe_dev->secondary_slaves); slave 3153 drivers/net/ethernet/ti/netcp_ethss.c if ((slave->link_interface == SGMII_LINK_MAC_PHY) || slave 3154 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface == XGMII_LINK_MAC_PHY)) slave 3157 drivers/net/ethernet/ti/netcp_ethss.c slave->open = true; slave 3179 drivers/net/ethernet/ti/netcp_ethss.c if (slave->link_interface == SGMII_LINK_MAC_PHY) { slave 3181 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_port_t = PORT_MII; slave 3182 drivers/net/ethernet/ti/netcp_ethss.c } else if (slave->link_interface == RGMII_LINK_MAC_PHY) { slave 3184 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_port_t = PORT_MII; slave 3187 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_port_t = PORT_FIBRE; slave 3190 drivers/net/ethernet/ti/netcp_ethss.c for_each_sec_slave(slave, gbe_dev) { slave 3191 drivers/net/ethernet/ti/netcp_ethss.c if ((slave->link_interface != SGMII_LINK_MAC_PHY) && slave 3192 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface != RGMII_LINK_MAC_PHY) && slave 3193 drivers/net/ethernet/ti/netcp_ethss.c (slave->link_interface != XGMII_LINK_MAC_PHY)) slave 3195 drivers/net/ethernet/ti/netcp_ethss.c slave->phy = slave 3197 drivers/net/ethernet/ti/netcp_ethss.c slave->phy_node, slave 3200 drivers/net/ethernet/ti/netcp_ethss.c if (!slave->phy) { slave 3202 drivers/net/ethernet/ti/netcp_ethss.c slave->slave_num); slave 3205 drivers/net/ethernet/ti/netcp_ethss.c phydev_name(slave->phy)); slave 3206 drivers/net/ethernet/ti/netcp_ethss.c phy_start(slave->phy); slave 3213 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_slave *slave; slave 3216 drivers/net/ethernet/ti/netcp_ethss.c slave = first_sec_slave(gbe_dev); slave 3218 drivers/net/ethernet/ti/netcp_ethss.c if (slave->phy) slave 3219 drivers/net/ethernet/ti/netcp_ethss.c phy_disconnect(slave->phy); slave 3220 drivers/net/ethernet/ti/netcp_ethss.c list_del(&slave->slave_list); slave 3770 drivers/net/ethernet/ti/netcp_ethss.c gbe_intf->slave = devm_kzalloc(gbe_dev->dev, slave 3771 drivers/net/ethernet/ti/netcp_ethss.c sizeof(*gbe_intf->slave), slave 3773 drivers/net/ethernet/ti/netcp_ethss.c if (!gbe_intf->slave) { slave 3778 drivers/net/ethernet/ti/netcp_ethss.c if (init_slave(gbe_dev, gbe_intf->slave, node)) { slave 3790 drivers/net/ethernet/ti/netcp_ethss.c if (gbe_intf->slave) slave 3791 drivers/net/ethernet/ti/netcp_ethss.c devm_kfree(gbe_dev->dev, gbe_intf->slave); slave 3803 drivers/net/ethernet/ti/netcp_ethss.c devm_kfree(gbe_intf->dev, gbe_intf->slave); slave 193 drivers/net/wan/dlci.c netdev_start_xmit(skb, dlp->slave, txq, false); slave 207 drivers/net/wan/dlci.c flp = netdev_priv(dlp->slave); slave 219 drivers/net/wan/dlci.c err = (*flp->dlci_conf)(dlp->slave, dev, get); slave 247 drivers/net/wan/dlci.c strncpy(ifr->ifr_slave, dlp->slave->name, sizeof(ifr->ifr_slave)); slave 267 drivers/net/wan/dlci.c return dev_set_mtu(dlp->slave, new_mtu); slave 281 drivers/net/wan/dlci.c if (!netif_running(dlp->slave)) slave 284 drivers/net/wan/dlci.c flp = netdev_priv(dlp->slave); slave 285 drivers/net/wan/dlci.c err = (*flp->activate)(dlp->slave, dev); slave 304 drivers/net/wan/dlci.c flp = netdev_priv(dlp->slave); slave 305 drivers/net/wan/dlci.c err = (*flp->deactivate)(dlp->slave, dev); slave 312 drivers/net/wan/dlci.c struct net_device *master, *slave; slave 319 drivers/net/wan/dlci.c slave = dev_get_by_name(&init_net, dlci->devname); slave 320 drivers/net/wan/dlci.c if (!slave) slave 323 drivers/net/wan/dlci.c if (slave->type != ARPHRD_FRAD || netdev_priv(slave) == NULL) slave 337 drivers/net/wan/dlci.c if (dlp->slave == slave) { slave 346 drivers/net/wan/dlci.c dlp->slave = slave; slave 349 drivers/net/wan/dlci.c flp = netdev_priv(slave); slave 350 drivers/net/wan/dlci.c err = (*flp->assoc)(slave, master); slave 369 drivers/net/wan/dlci.c dev_put(slave); slave 377 drivers/net/wan/dlci.c struct net_device *master, *slave; slave 407 drivers/net/wan/dlci.c slave = dlp->slave; slave 408 drivers/net/wan/dlci.c flp = netdev_priv(slave); slave 410 drivers/net/wan/dlci.c err = (*flp->deassoc)(slave, master); slave 416 drivers/net/wan/dlci.c dev_put(slave); slave 497 drivers/net/wan/dlci.c if (dlp->slave == dev) { slave 500 drivers/net/wan/dlci.c dev_put(dlp->slave); slave 532 drivers/net/wan/dlci.c dev_put(dlp->slave); slave 509 drivers/net/wan/sdla.c static int sdla_activate(struct net_device *slave, struct net_device *master) slave 514 drivers/net/wan/sdla.c flp = netdev_priv(slave); slave 525 drivers/net/wan/sdla.c if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE)) slave 526 drivers/net/wan/sdla.c sdla_cmd(slave, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); slave 531 drivers/net/wan/sdla.c static int sdla_deactivate(struct net_device *slave, struct net_device *master) slave 536 drivers/net/wan/sdla.c flp = netdev_priv(slave); slave 547 drivers/net/wan/sdla.c if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE)) slave 548 drivers/net/wan/sdla.c sdla_cmd(slave, SDLA_DEACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); slave 553 drivers/net/wan/sdla.c static int sdla_assoc(struct net_device *slave, struct net_device *master) slave 561 drivers/net/wan/sdla.c flp = netdev_priv(slave); slave 577 drivers/net/wan/sdla.c master->mtu = slave->mtu; slave 579 drivers/net/wan/sdla.c if (netif_running(slave)) { slave 581 drivers/net/wan/sdla.c sdla_reconfig(slave); slave 583 drivers/net/wan/sdla.c sdla_cmd(slave, SDLA_ADD_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL); slave 589 drivers/net/wan/sdla.c static int sdla_deassoc(struct net_device *slave, struct net_device *master) slave 594 drivers/net/wan/sdla.c flp = netdev_priv(slave); slave 607 drivers/net/wan/sdla.c if (netif_running(slave)) { slave 609 drivers/net/wan/sdla.c sdla_reconfig(slave); slave 611 drivers/net/wan/sdla.c sdla_cmd(slave, SDLA_DELETE_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL); slave 617 drivers/net/wan/sdla.c static int sdla_dlci_conf(struct net_device *slave, struct net_device *master, int get) slave 624 drivers/net/wan/sdla.c flp = netdev_priv(slave); slave 637 drivers/net/wan/sdla.c if (netif_running(slave)) { slave 639 drivers/net/wan/sdla.c ret = sdla_cmd(slave, SDLA_READ_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, slave 642 drivers/net/wan/sdla.c ret = sdla_cmd(slave, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, slave 566 drivers/parport/share.c struct parport *slave = port->slaves[i-1]; slave 567 drivers/parport/share.c if (slave) slave 568 drivers/parport/share.c list_add_tail(&slave->list, &portlist); slave 575 drivers/parport/share.c struct parport *slave = port->slaves[i-1]; slave 576 drivers/parport/share.c if (slave) slave 577 drivers/parport/share.c attach_driver_chain(slave); slave 615 drivers/parport/share.c struct parport *slave = port->slaves[i-1]; slave 616 drivers/parport/share.c if (!slave) slave 618 drivers/parport/share.c detach_driver_chain(slave); slave 619 drivers/parport/share.c parport_daisy_fini(slave); slave 627 drivers/parport/share.c struct parport *slave = port->slaves[i-1]; slave 628 drivers/parport/share.c if (slave) slave 629 drivers/parport/share.c list_del_init(&slave->list); slave 638 drivers/parport/share.c struct parport *slave = port->slaves[i-1]; slave 639 drivers/parport/share.c if (slave) slave 640 drivers/parport/share.c parport_put_port(slave); slave 977 drivers/soc/mediatek/mtk-pmic-wrap.c const struct pwrap_slv_type *slave; slave 1119 drivers/soc/mediatek/mtk-pmic-wrap.c return wrp->slave->pwrap_read(wrp, adr, rdata); slave 1169 drivers/soc/mediatek/mtk-pmic-wrap.c return wrp->slave->pwrap_write(wrp, adr, wdata); slave 1232 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_read(wrp, wrp->slave->dew_regs[PWRAP_DEW_READ_TEST], slave 1257 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_DIO_EN], 1); slave 1271 drivers/soc/mediatek/mtk-pmic-wrap.c wrp->slave->dew_regs[PWRAP_DEW_READ_TEST], &rdata); slave 1326 drivers/soc/mediatek/mtk-pmic-wrap.c switch (wrp->slave->type) { slave 1334 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_RDDMY_NO], slave 1355 drivers/soc/mediatek/mtk-pmic-wrap.c ret = pwrap_read(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_RDY], slave 1393 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_SWRST], 0x1); slave 1394 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_SWRST], 0x0); slave 1395 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_KEY_SEL], 0x1); slave 1396 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_IV_SEL], 0x2); slave 1398 drivers/soc/mediatek/mtk-pmic-wrap.c switch (wrp->slave->type) { slave 1400 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_LOAD], slave 1402 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_START], slave 1408 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_EN], slave 1431 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_MODE], 0x1); slave 1441 drivers/soc/mediatek/mtk-pmic-wrap.c if (pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_WRITE_TEST], slave 1443 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_read(wrp, wrp->slave->dew_regs[PWRAP_DEW_WRITE_TEST], slave 1464 drivers/soc/mediatek/mtk-pmic-wrap.c wrp->slave->dew_regs[PWRAP_DEW_CRC_EN], 0x1)) slave 1469 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_writel(wrp, wrp->slave->dew_regs[PWRAP_DEW_CRC_VAL], slave 1491 drivers/soc/mediatek/mtk-pmic-wrap.c if (pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_OUT_EN], slave 1493 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_SRC_EN], slave 1505 drivers/soc/mediatek/mtk-pmic-wrap.c if (pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_OUT_EN], slave 1507 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_SRC_EN], slave 1519 drivers/soc/mediatek/mtk-pmic-wrap.c switch (wrp->slave->type) { slave 1547 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CRC_EN], 0x1); slave 1575 drivers/soc/mediatek/mtk-pmic-wrap.c if (HAS_CAP(wrp->slave->caps, PWRAP_SLV_CAP_SPI)) { slave 1592 drivers/soc/mediatek/mtk-pmic-wrap.c if (HAS_CAP(wrp->slave->caps, PWRAP_SLV_CAP_SPI)) { slave 1599 drivers/soc/mediatek/mtk-pmic-wrap.c if (HAS_CAP(wrp->slave->caps, PWRAP_SLV_CAP_DUALIO)) { slave 1606 drivers/soc/mediatek/mtk-pmic-wrap.c if (HAS_CAP(wrp->slave->caps, PWRAP_SLV_CAP_SECURITY)) { slave 1917 drivers/soc/mediatek/mtk-pmic-wrap.c wrp->slave = of_slave_id->data; slave 2023 drivers/soc/mediatek/mtk-pmic-wrap.c wrp->regmap = devm_regmap_init(wrp->dev, NULL, wrp, wrp->slave->regmap); slave 113 drivers/soundwire/bus.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 114 drivers/soundwire/bus.c struct sdw_bus *bus = slave->bus; slave 116 drivers/soundwire/bus.c sdw_slave_debugfs_exit(slave); slave 120 drivers/soundwire/bus.c if (slave->dev_num) /* clear dev_num if assigned */ slave 121 drivers/soundwire/bus.c clear_bit(slave->dev_num, bus->assigned); slave 123 drivers/soundwire/bus.c list_del_init(&slave->node); slave 274 drivers/soundwire/bus.c int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, slave 292 drivers/soundwire/bus.c if (slave && !slave->prop.paging_support) slave 303 drivers/soundwire/bus.c if (!slave) { slave 306 drivers/soundwire/bus.c } else if (!slave->prop.paging_support) { slave 307 drivers/soundwire/bus.c dev_err(&slave->dev, slave 327 drivers/soundwire/bus.c int sdw_nread(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) slave 332 drivers/soundwire/bus.c ret = sdw_fill_msg(&msg, slave, addr, count, slave 333 drivers/soundwire/bus.c slave->dev_num, SDW_MSG_FLAG_READ, val); slave 337 drivers/soundwire/bus.c ret = pm_runtime_get_sync(slave->bus->dev); slave 341 drivers/soundwire/bus.c ret = sdw_transfer(slave->bus, &msg); slave 342 drivers/soundwire/bus.c pm_runtime_put(slave->bus->dev); slave 355 drivers/soundwire/bus.c int sdw_nwrite(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) slave 360 drivers/soundwire/bus.c ret = sdw_fill_msg(&msg, slave, addr, count, slave 361 drivers/soundwire/bus.c slave->dev_num, SDW_MSG_FLAG_WRITE, val); slave 365 drivers/soundwire/bus.c ret = pm_runtime_get_sync(slave->bus->dev); slave 369 drivers/soundwire/bus.c ret = sdw_transfer(slave->bus, &msg); slave 370 drivers/soundwire/bus.c pm_runtime_put(slave->bus->dev); slave 381 drivers/soundwire/bus.c int sdw_read(struct sdw_slave *slave, u32 addr) slave 386 drivers/soundwire/bus.c ret = sdw_nread(slave, addr, 1, &buf); slave 400 drivers/soundwire/bus.c int sdw_write(struct sdw_slave *slave, u32 addr, u8 value) slave 402 drivers/soundwire/bus.c return sdw_nwrite(slave, addr, 1, &value); slave 413 drivers/soundwire/bus.c struct sdw_slave *slave = NULL; slave 415 drivers/soundwire/bus.c list_for_each_entry(slave, &bus->slaves, node) { slave 416 drivers/soundwire/bus.c if (slave->dev_num == i) slave 417 drivers/soundwire/bus.c return slave; slave 423 drivers/soundwire/bus.c static int sdw_compare_devid(struct sdw_slave *slave, struct sdw_slave_id id) slave 425 drivers/soundwire/bus.c if (slave->id.unique_id != id.unique_id || slave 426 drivers/soundwire/bus.c slave->id.mfg_id != id.mfg_id || slave 427 drivers/soundwire/bus.c slave->id.part_id != id.part_id || slave 428 drivers/soundwire/bus.c slave->id.class_id != id.class_id) slave 435 drivers/soundwire/bus.c static int sdw_get_device_num(struct sdw_slave *slave) slave 439 drivers/soundwire/bus.c bit = find_first_zero_bit(slave->bus->assigned, SDW_MAX_DEVICES); slave 449 drivers/soundwire/bus.c set_bit(bit, slave->bus->assigned); slave 455 drivers/soundwire/bus.c static int sdw_assign_device_num(struct sdw_slave *slave) slave 460 drivers/soundwire/bus.c if (!slave->dev_num) { slave 461 drivers/soundwire/bus.c mutex_lock(&slave->bus->bus_lock); slave 462 drivers/soundwire/bus.c dev_num = sdw_get_device_num(slave); slave 463 drivers/soundwire/bus.c mutex_unlock(&slave->bus->bus_lock); slave 465 drivers/soundwire/bus.c dev_err(slave->bus->dev, "Get dev_num failed: %d\n", slave 470 drivers/soundwire/bus.c dev_info(slave->bus->dev, slave 472 drivers/soundwire/bus.c slave->dev_num); slave 475 drivers/soundwire/bus.c dev_num = slave->dev_num; slave 476 drivers/soundwire/bus.c slave->dev_num = 0; slave 479 drivers/soundwire/bus.c ret = sdw_write(slave, SDW_SCP_DEVNUMBER, dev_num); slave 481 drivers/soundwire/bus.c dev_err(&slave->dev, "Program device_num %d failed: %d\n", slave 487 drivers/soundwire/bus.c slave->dev_num = dev_num; slave 523 drivers/soundwire/bus.c struct sdw_slave *slave, *_s; slave 559 drivers/soundwire/bus.c list_for_each_entry_safe(slave, _s, &bus->slaves, node) { slave 560 drivers/soundwire/bus.c if (sdw_compare_devid(slave, id) == 0) { slave 569 drivers/soundwire/bus.c ret = sdw_assign_device_num(slave); slave 571 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 599 drivers/soundwire/bus.c static void sdw_modify_slave_status(struct sdw_slave *slave, slave 602 drivers/soundwire/bus.c mutex_lock(&slave->bus->bus_lock); slave 603 drivers/soundwire/bus.c slave->status = status; slave 604 drivers/soundwire/bus.c mutex_unlock(&slave->bus->bus_lock); slave 607 drivers/soundwire/bus.c int sdw_configure_dpn_intr(struct sdw_slave *slave, slave 625 drivers/soundwire/bus.c ret = sdw_update(slave, addr, (mask | SDW_DPN_INT_PORT_READY), val); slave 627 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 633 drivers/soundwire/bus.c static int sdw_initialize_slave(struct sdw_slave *slave) slave 635 drivers/soundwire/bus.c struct sdw_slave_prop *prop = &slave->prop; slave 649 drivers/soundwire/bus.c ret = sdw_update(slave, SDW_SCP_INTMASK1, val, val); slave 651 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 657 drivers/soundwire/bus.c if (!slave->prop.dp0_prop) slave 664 drivers/soundwire/bus.c ret = sdw_update(slave, SDW_DP0_INTMASK, val, val); slave 666 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 674 drivers/soundwire/bus.c static int sdw_handle_dp0_interrupt(struct sdw_slave *slave, u8 *slave_status) slave 679 drivers/soundwire/bus.c status = sdw_read(slave, SDW_DP0_INT); slave 681 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 688 drivers/soundwire/bus.c dev_err(&slave->dev, "Test fail for port 0\n"); slave 698 drivers/soundwire/bus.c complete(&slave->port_ready[0]); slave 703 drivers/soundwire/bus.c dev_err(&slave->dev, "BRA failed\n"); slave 716 drivers/soundwire/bus.c ret = sdw_write(slave, SDW_DP0_INT, clear); slave 718 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 724 drivers/soundwire/bus.c status2 = sdw_read(slave, SDW_DP0_INT); slave 726 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 738 drivers/soundwire/bus.c dev_warn(slave->bus->dev, "Reached MAX_RETRY on DP0 read\n"); slave 743 drivers/soundwire/bus.c static int sdw_handle_port_interrupt(struct sdw_slave *slave, slave 751 drivers/soundwire/bus.c return sdw_handle_dp0_interrupt(slave, slave_status); slave 754 drivers/soundwire/bus.c status = sdw_read(slave, addr); slave 756 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 764 drivers/soundwire/bus.c dev_err(&slave->dev, "Test fail for port:%d\n", port); slave 773 drivers/soundwire/bus.c complete(&slave->port_ready[port]); slave 786 drivers/soundwire/bus.c ret = sdw_write(slave, addr, clear); slave 788 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 794 drivers/soundwire/bus.c status2 = sdw_read(slave, addr); slave 796 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 808 drivers/soundwire/bus.c dev_warn(slave->bus->dev, "Reached MAX_RETRY on port read"); slave 813 drivers/soundwire/bus.c static int sdw_handle_slave_alerts(struct sdw_slave *slave) slave 822 drivers/soundwire/bus.c sdw_modify_slave_status(slave, SDW_SLAVE_ALERT); slave 825 drivers/soundwire/bus.c ret = sdw_read(slave, SDW_SCP_INT1); slave 827 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 833 drivers/soundwire/bus.c ret = sdw_nread(slave, SDW_SCP_INTSTAT2, 2, buf2); slave 835 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 846 drivers/soundwire/bus.c dev_err(&slave->dev, "Parity error detected\n"); slave 851 drivers/soundwire/bus.c dev_err(&slave->dev, "Bus clash error detected\n"); slave 863 drivers/soundwire/bus.c dev_dbg(&slave->dev, "Slave impl defined interrupt\n"); slave 874 drivers/soundwire/bus.c sdw_handle_port_interrupt(slave, bit, slave 884 drivers/soundwire/bus.c sdw_handle_port_interrupt(slave, slave 896 drivers/soundwire/bus.c sdw_handle_port_interrupt(slave, slave 903 drivers/soundwire/bus.c if (slave_notify && slave->ops && slave 904 drivers/soundwire/bus.c slave->ops->interrupt_callback) { slave 909 drivers/soundwire/bus.c slave->ops->interrupt_callback(slave, &slave_intr); slave 913 drivers/soundwire/bus.c ret = sdw_write(slave, SDW_SCP_INT1, clear); slave 915 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 924 drivers/soundwire/bus.c ret = sdw_read(slave, SDW_SCP_INT1); slave 926 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 932 drivers/soundwire/bus.c ret = sdw_nread(slave, SDW_SCP_INTSTAT2, 2, _buf2); slave 934 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 955 drivers/soundwire/bus.c dev_warn(slave->bus->dev, "Reached MAX_RETRY on alert read\n"); slave 960 drivers/soundwire/bus.c static int sdw_update_slave_status(struct sdw_slave *slave, slave 963 drivers/soundwire/bus.c if (slave->ops && slave->ops->update_status) slave 964 drivers/soundwire/bus.c return slave->ops->update_status(slave, status); slave 978 drivers/soundwire/bus.c struct sdw_slave *slave; slave 1002 drivers/soundwire/bus.c slave = sdw_get_slave(bus, i); slave 1003 drivers/soundwire/bus.c if (!slave) slave 1008 drivers/soundwire/bus.c if (slave->status == SDW_SLAVE_UNATTACHED) slave 1011 drivers/soundwire/bus.c sdw_modify_slave_status(slave, SDW_SLAVE_UNATTACHED); slave 1015 drivers/soundwire/bus.c ret = sdw_handle_slave_alerts(slave); slave 1023 drivers/soundwire/bus.c if (slave->status == SDW_SLAVE_ATTACHED) slave 1026 drivers/soundwire/bus.c prev_status = slave->status; slave 1027 drivers/soundwire/bus.c sdw_modify_slave_status(slave, SDW_SLAVE_ATTACHED); slave 1032 drivers/soundwire/bus.c ret = sdw_initialize_slave(slave); slave 1046 drivers/soundwire/bus.c ret = sdw_update_slave_status(slave, status[i]); slave 1048 drivers/soundwire/bus.c dev_err(slave->bus->dev, slave 25 drivers/soundwire/bus.h void sdw_slave_debugfs_init(struct sdw_slave *slave); slave 26 drivers/soundwire/bus.h void sdw_slave_debugfs_exit(struct sdw_slave *slave); slave 32 drivers/soundwire/bus.h static inline void sdw_slave_debugfs_init(struct sdw_slave *slave) {} slave 33 drivers/soundwire/bus.h static inline void sdw_slave_debugfs_exit(struct sdw_slave *slave) {} slave 107 drivers/soundwire/bus.h struct sdw_slave *slave; slave 138 drivers/soundwire/bus.h struct sdw_dpn_prop *sdw_get_slave_dpn_prop(struct sdw_slave *slave, slave 141 drivers/soundwire/bus.h int sdw_configure_dpn_intr(struct sdw_slave *slave, int port, slave 150 drivers/soundwire/bus.h int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, slave 155 drivers/soundwire/bus.h sdw_update(struct sdw_slave *slave, u32 addr, u8 mask, u8 val) slave 159 drivers/soundwire/bus.h tmp = sdw_read(slave, addr); slave 164 drivers/soundwire/bus.h return sdw_write(slave, addr, tmp); slave 20 drivers/soundwire/bus_type.c sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) slave 25 drivers/soundwire/bus_type.c if (slave->id.mfg_id == id->mfg_id && slave 26 drivers/soundwire/bus_type.c slave->id.part_id == id->part_id) slave 36 drivers/soundwire/bus_type.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 39 drivers/soundwire/bus_type.c return !!sdw_get_device_id(slave, drv); slave 42 drivers/soundwire/bus_type.c int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size) slave 47 drivers/soundwire/bus_type.c slave->id.mfg_id, slave->id.part_id); slave 52 drivers/soundwire/bus_type.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 55 drivers/soundwire/bus_type.c sdw_slave_modalias(slave, modalias, sizeof(modalias)); slave 72 drivers/soundwire/bus_type.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 77 drivers/soundwire/bus_type.c id = sdw_get_device_id(slave, drv); slave 81 drivers/soundwire/bus_type.c slave->ops = drv->ops; slave 90 drivers/soundwire/bus_type.c ret = drv->probe(slave, id); slave 98 drivers/soundwire/bus_type.c if (slave->ops && slave->ops->read_prop) slave 99 drivers/soundwire/bus_type.c slave->ops->read_prop(slave); slave 107 drivers/soundwire/bus_type.c if (slave->prop.clk_stop_timeout == 0) slave 108 drivers/soundwire/bus_type.c slave->prop.clk_stop_timeout = 300; slave 110 drivers/soundwire/bus_type.c slave->bus->clk_stop_timeout = max_t(u32, slave->bus->clk_stop_timeout, slave 111 drivers/soundwire/bus_type.c slave->prop.clk_stop_timeout); slave 118 drivers/soundwire/bus_type.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 123 drivers/soundwire/bus_type.c ret = drv->remove(slave); slave 132 drivers/soundwire/bus_type.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 136 drivers/soundwire/bus_type.c drv->shutdown(slave); slave 604 drivers/soundwire/cadence_master.c u64 slave; slave 609 drivers/soundwire/cadence_master.c slave = ((u64)slave1 << 32) | slave0; slave 613 drivers/soundwire/cadence_master.c mask = (slave >> (i * CDNS_MCP_SLAVE_STATUS_NUM)) & slave 33 drivers/soundwire/debugfs.c static ssize_t sdw_sprintf(struct sdw_slave *slave, slave 38 drivers/soundwire/debugfs.c value = sdw_read(slave, reg); slave 49 drivers/soundwire/debugfs.c struct sdw_slave *slave = s_file->private; slave 63 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, i); slave 67 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, SDW_DP0_CHANNELEN); slave 69 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, i); slave 73 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, slave 77 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, i); slave 82 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, i); slave 84 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, i); slave 99 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, j); slave 105 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, j); slave 111 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, j); slave 121 drivers/soundwire/debugfs.c void sdw_slave_debugfs_init(struct sdw_slave *slave) slave 127 drivers/soundwire/debugfs.c master = slave->bus->debugfs; slave 130 drivers/soundwire/debugfs.c snprintf(name, sizeof(name), "%s", dev_name(&slave->dev)); slave 133 drivers/soundwire/debugfs.c debugfs_create_file("registers", 0400, d, slave, &sdw_slave_reg_fops); slave 135 drivers/soundwire/debugfs.c slave->debugfs = d; slave 138 drivers/soundwire/debugfs.c void sdw_slave_debugfs_exit(struct sdw_slave *slave) slave 140 drivers/soundwire/debugfs.c debugfs_remove_recursive(slave->debugfs); slave 123 drivers/soundwire/mipi_disco.c static int sdw_slave_read_dp0(struct sdw_slave *slave, slave 139 drivers/soundwire/mipi_disco.c dp0->words = devm_kcalloc(&slave->dev, slave 162 drivers/soundwire/mipi_disco.c static int sdw_slave_read_dpn(struct sdw_slave *slave, slave 182 drivers/soundwire/mipi_disco.c node = device_get_named_child_node(&slave->dev, name); slave 184 drivers/soundwire/mipi_disco.c dev_err(&slave->dev, "%s dpN not found\n", name); slave 196 drivers/soundwire/mipi_disco.c dpn[i].words = devm_kcalloc(&slave->dev, slave 235 drivers/soundwire/mipi_disco.c dpn[i].ch = devm_kcalloc(&slave->dev, dpn[i].num_ch, slave 249 drivers/soundwire/mipi_disco.c dpn[i].ch_combinations = devm_kcalloc(&slave->dev, slave 286 drivers/soundwire/mipi_disco.c int sdw_slave_read_prop(struct sdw_slave *slave) slave 288 drivers/soundwire/mipi_disco.c struct sdw_slave_prop *prop = &slave->prop; slave 289 drivers/soundwire/mipi_disco.c struct device *dev = &slave->dev; slave 347 drivers/soundwire/mipi_disco.c prop->dp0_prop = devm_kzalloc(&slave->dev, slave 353 drivers/soundwire/mipi_disco.c sdw_slave_read_dp0(slave, port, prop->dp0_prop); slave 364 drivers/soundwire/mipi_disco.c prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, slave 371 drivers/soundwire/mipi_disco.c sdw_slave_read_dpn(slave, prop->src_dpn_prop, nval, slave 375 drivers/soundwire/mipi_disco.c prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, slave 382 drivers/soundwire/mipi_disco.c sdw_slave_read_dpn(slave, prop->sink_dpn_prop, nval, slave 390 drivers/soundwire/mipi_disco.c slave->port_ready = devm_kcalloc(&slave->dev, num_of_ports, slave 391 drivers/soundwire/mipi_disco.c sizeof(*slave->port_ready), slave 393 drivers/soundwire/mipi_disco.c if (!slave->port_ready) slave 398 drivers/soundwire/mipi_disco.c init_completion(&slave->port_ready[i]); slave 12 drivers/soundwire/slave.c struct sdw_slave *slave = dev_to_sdw_dev(dev); slave 14 drivers/soundwire/slave.c kfree(slave); slave 20 drivers/soundwire/slave.c struct sdw_slave *slave; slave 23 drivers/soundwire/slave.c slave = kzalloc(sizeof(*slave), GFP_KERNEL); slave 24 drivers/soundwire/slave.c if (!slave) slave 28 drivers/soundwire/slave.c memcpy(&slave->id, id, sizeof(*id)); slave 29 drivers/soundwire/slave.c slave->dev.parent = bus->dev; slave 30 drivers/soundwire/slave.c slave->dev.fwnode = fwnode; slave 33 drivers/soundwire/slave.c dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x", slave 37 drivers/soundwire/slave.c slave->dev.release = sdw_slave_release; slave 38 drivers/soundwire/slave.c slave->dev.bus = &sdw_bus_type; slave 39 drivers/soundwire/slave.c slave->dev.of_node = of_node_get(to_of_node(fwnode)); slave 40 drivers/soundwire/slave.c slave->bus = bus; slave 41 drivers/soundwire/slave.c slave->status = SDW_SLAVE_UNATTACHED; slave 42 drivers/soundwire/slave.c slave->dev_num = 0; slave 45 drivers/soundwire/slave.c list_add_tail(&slave->node, &bus->slaves); slave 48 drivers/soundwire/slave.c ret = device_register(&slave->dev); slave 57 drivers/soundwire/slave.c list_del(&slave->node); slave 59 drivers/soundwire/slave.c put_device(&slave->dev); slave 61 drivers/soundwire/slave.c sdw_slave_debugfs_init(slave); slave 59 drivers/soundwire/stream.c struct sdw_slave *slave, slave 80 drivers/soundwire/stream.c ret = sdw_write(slave, addr1, t_params->offset2); slave 87 drivers/soundwire/stream.c ret = sdw_write(slave, addr2, t_params->blk_pkg_mode); slave 106 drivers/soundwire/stream.c ret = sdw_write(slave, addr3, wbuf); slave 117 drivers/soundwire/stream.c ret = sdw_write(slave, addr4, wbuf); slave 130 drivers/soundwire/stream.c struct sdw_slave_prop *slave_prop = &s_rt->slave->prop; slave 136 drivers/soundwire/stream.c dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, slave 162 drivers/soundwire/stream.c ret = sdw_update(s_rt->slave, addr1, 0xF, wbuf); slave 164 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 171 drivers/soundwire/stream.c ret = sdw_write(s_rt->slave, addr2, (p_params->bps - 1)); slave 173 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 181 drivers/soundwire/stream.c ret = sdw_write(s_rt->slave, addr3, wbuf); slave 183 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 190 drivers/soundwire/stream.c ret = sdw_write(s_rt->slave, addr4, t_params->offset1); slave 192 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 200 drivers/soundwire/stream.c ret = sdw_write(s_rt->slave, addr5, t_params->blk_grp_ctrl); slave 202 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 211 drivers/soundwire/stream.c ret = sdw_write(s_rt->slave, addr6, t_params->lane_ctrl); slave 213 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 221 drivers/soundwire/stream.c ret = _sdw_program_slave_port_params(bus, s_rt->slave, slave 224 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 316 drivers/soundwire/stream.c ret = sdw_update(s_rt->slave, addr, 0xFF, p_rt->ch_mask); slave 318 drivers/soundwire/stream.c ret = sdw_update(s_rt->slave, addr, 0xFF, 0x0); slave 321 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 399 drivers/soundwire/stream.c const struct sdw_slave_ops *ops = s_rt->slave->ops; slave 403 drivers/soundwire/stream.c ret = ops->port_prep(s_rt->slave, &prep_ch, cmd); slave 405 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 431 drivers/soundwire/stream.c dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, slave 453 drivers/soundwire/stream.c ret = sdw_configure_dpn_intr(s_rt->slave, p_rt->num, prep, slave 467 drivers/soundwire/stream.c ret = sdw_update(s_rt->slave, addr, slave 470 drivers/soundwire/stream.c ret = sdw_update(s_rt->slave, addr, 0xFF, 0x0); slave 473 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 479 drivers/soundwire/stream.c port_ready = &s_rt->slave->port_ready[prep_ch.num]; slave 483 drivers/soundwire/stream.c val = sdw_read(s_rt->slave, SDW_DPN_PREPARESTATUS(p_rt->num)); slave 486 drivers/soundwire/stream.c dev_err(&s_rt->slave->dev, slave 497 drivers/soundwire/stream.c ret = sdw_configure_dpn_intr(s_rt->slave, p_rt->num, prep, slave 576 drivers/soundwire/stream.c struct sdw_slave *slave; slave 586 drivers/soundwire/stream.c slave = s_rt->slave; slave 588 drivers/soundwire/stream.c if (slave->ops->bus_config) { slave 589 drivers/soundwire/stream.c ret = slave->ops->bus_config(slave, &bus->params); slave 592 drivers/soundwire/stream.c slave->dev_num); slave 954 drivers/soundwire/stream.c *sdw_alloc_slave_rt(struct sdw_slave *slave, slave 967 drivers/soundwire/stream.c s_rt->slave = slave; slave 984 drivers/soundwire/stream.c struct sdw_slave *slave, slave 993 drivers/soundwire/stream.c if (s_rt->slave != slave) slave 1013 drivers/soundwire/stream.c static void sdw_release_slave_stream(struct sdw_slave *slave, slave 1023 drivers/soundwire/stream.c if (s_rt->slave == slave) { slave 1049 drivers/soundwire/stream.c sdw_slave_port_release(s_rt->slave->bus, s_rt->slave, stream); slave 1050 drivers/soundwire/stream.c sdw_release_slave_stream(s_rt->slave, stream); slave 1100 drivers/soundwire/stream.c int sdw_stream_remove_slave(struct sdw_slave *slave, slave 1103 drivers/soundwire/stream.c mutex_lock(&slave->bus->bus_lock); slave 1105 drivers/soundwire/stream.c sdw_slave_port_release(slave->bus, slave, stream); slave 1106 drivers/soundwire/stream.c sdw_release_slave_stream(slave, stream); slave 1108 drivers/soundwire/stream.c mutex_unlock(&slave->bus->bus_lock); slave 1214 drivers/soundwire/stream.c static int sdw_slave_port_config(struct sdw_slave *slave, slave 1224 drivers/soundwire/stream.c p_rt = sdw_port_alloc(&slave->dev, port_config, i); slave 1232 drivers/soundwire/stream.c ret = sdw_is_valid_port_range(&slave->dev, p_rt); slave 1323 drivers/soundwire/stream.c int sdw_stream_add_slave(struct sdw_slave *slave, slave 1333 drivers/soundwire/stream.c mutex_lock(&slave->bus->bus_lock); slave 1339 drivers/soundwire/stream.c m_rt = sdw_alloc_master_rt(slave->bus, stream_config, stream); slave 1341 drivers/soundwire/stream.c dev_err(&slave->dev, slave 1348 drivers/soundwire/stream.c s_rt = sdw_alloc_slave_rt(slave, stream_config, stream); slave 1350 drivers/soundwire/stream.c dev_err(&slave->dev, slave 1357 drivers/soundwire/stream.c ret = sdw_config_stream(&slave->dev, stream, stream_config, true); slave 1363 drivers/soundwire/stream.c ret = sdw_slave_port_config(slave, s_rt, port_config, num_ports); slave 1383 drivers/soundwire/stream.c mutex_unlock(&slave->bus->bus_lock); slave 1395 drivers/soundwire/stream.c struct sdw_dpn_prop *sdw_get_slave_dpn_prop(struct sdw_slave *slave, slave 1404 drivers/soundwire/stream.c num_ports = hweight32(slave->prop.source_ports); slave 1405 drivers/soundwire/stream.c dpn_prop = slave->prop.src_dpn_prop; slave 1407 drivers/soundwire/stream.c num_ports = hweight32(slave->prop.sink_ports); slave 1408 drivers/soundwire/stream.c dpn_prop = slave->prop.sink_dpn_prop; slave 1044 drivers/spi/spi-fsl-dspi.c ctlr->slave = true; slave 84 drivers/spi/spi-pxa2xx-pci.c struct dw_dma_slave *slave = c->tx_param; slave 86 drivers/spi/spi-pxa2xx-pci.c slave->dma_dev = &dma_dev->dev; slave 87 drivers/spi/spi-pxa2xx-pci.c slave->m_master = 0; slave 88 drivers/spi/spi-pxa2xx-pci.c slave->p_master = 1; slave 92 drivers/spi/spi-pxa2xx-pci.c struct dw_dma_slave *slave = c->rx_param; slave 94 drivers/spi/spi-pxa2xx-pci.c slave->dma_dev = &dma_dev->dev; slave 95 drivers/spi/spi-pxa2xx-pci.c slave->m_master = 0; slave 96 drivers/spi/spi-pxa2xx-pci.c slave->p_master = 1; slave 605 drivers/spi/spi-sh-msiof.c bool slave = spi_controller_is_slave(p->ctlr); slave 609 drivers/spi/spi-sh-msiof.c if (!slave) slave 617 drivers/spi/spi-sh-msiof.c if (!ret && !slave) slave 625 drivers/spi/spi-sh-msiof.c bool slave = spi_controller_is_slave(p->ctlr); slave 629 drivers/spi/spi-sh-msiof.c if (!slave) slave 635 drivers/spi/spi-sh-msiof.c if (!ret && !slave) slave 828 drivers/spi/spi-topcliff-pch.c static bool pch_spi_filter(struct dma_chan *chan, void *slave) slave 830 drivers/spi/spi-topcliff-pch.c struct pch_dma_slave *param = slave; slave 2161 drivers/spi/spi.c static DEVICE_ATTR_RW(slave); slave 2214 drivers/spi/spi.c unsigned int size, bool slave) slave 2229 drivers/spi/spi.c ctlr->slave = slave; slave 2230 drivers/spi/spi.c if (IS_ENABLED(CONFIG_SPI_SLAVE) && slave) slave 2119 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c slot_zero->slave.slot_sync = first_data_slot + (num_slots/2); slave 2120 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c slot_zero->slave.slot_first = first_data_slot + (num_slots/2) + 1; slave 2121 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c slot_zero->slave.slot_last = first_data_slot + num_slots - 1; slave 2143 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c local = &slot_zero->slave; slave 363 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h struct vchiq_shared_state slave; slave 294 drivers/staging/vme/devices/vme_user.c struct vme_slave slave; slave 367 drivers/staging/vme/devices/vme_user.c memset(&slave, 0, sizeof(slave)); slave 373 drivers/staging/vme/devices/vme_user.c &slave.enable, &slave.vme_addr, slave 374 drivers/staging/vme/devices/vme_user.c &slave.size, &pci_addr, slave 375 drivers/staging/vme/devices/vme_user.c &slave.aspace, &slave.cycle); slave 377 drivers/staging/vme/devices/vme_user.c copied = copy_to_user(argp, &slave, slave 378 drivers/staging/vme/devices/vme_user.c sizeof(slave)); slave 388 drivers/staging/vme/devices/vme_user.c copied = copy_from_user(&slave, argp, sizeof(slave)); slave 398 drivers/staging/vme/devices/vme_user.c slave.enable, slave.vme_addr, slave.size, slave 399 drivers/staging/vme/devices/vme_user.c image[minor].pci_buf, slave.aspace, slave 400 drivers/staging/vme/devices/vme_user.c slave.cycle); slave 85 drivers/tty/serial/8250/serial_cs.c int slave; slave 277 drivers/tty/serial/8250/serial_cs.c if (!info->slave) slave 384 drivers/tty/serial/8250/serial_cs.c info->slave = 1; slave 388 drivers/tty/serial/8250/serial_cs.c info->slave = 1; slave 390 drivers/tty/serial/8250/serial_cs.c if (info->slave) slave 699 drivers/tty/serial/pch_uart.c static bool filter(struct dma_chan *chan, void *slave) slave 701 drivers/tty/serial/pch_uart.c struct pch_dma_slave *param = slave; slave 1223 drivers/usb/renesas_usbhs/fifo.c struct sh_dmae_slave *slave = param; slave 1230 drivers/usb/renesas_usbhs/fifo.c if (0 == slave->shdma_slave.slave_id) slave 1233 drivers/usb/renesas_usbhs/fifo.c chan->private = slave; slave 58 include/drm/bridge/dw_mipi_dsi.h void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave); slave 644 include/linux/dmaengine.h const char *slave; slave 17 include/linux/fsi.h struct fsi_slave *slave; slave 62 include/linux/fsi.h extern int fsi_slave_claim_range(struct fsi_slave *slave, slave 64 include/linux/fsi.h extern void fsi_slave_release_range(struct fsi_slave *slave, slave 66 include/linux/fsi.h extern int fsi_slave_read(struct fsi_slave *slave, uint32_t addr, slave 68 include/linux/fsi.h extern int fsi_slave_write(struct fsi_slave *slave, uint32_t addr, slave 21 include/linux/hsi/ssi_protocol.h struct hsi_client *ssip_slave_get_master(struct hsi_client *slave); slave 54 include/linux/if_frad.h struct net_device *slave; slave 510 include/linux/mfd/abx500/ab8500.h extern int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); slave 509 include/linux/mfd/db8500-prcmu.h int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); slave 510 include/linux/mfd/db8500-prcmu.h int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size); slave 641 include/linux/mfd/db8500-prcmu.h static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) slave 646 include/linux/mfd/db8500-prcmu.h static inline int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size) slave 256 include/linux/mfd/dbx500-prcmu.h int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); slave 257 include/linux/mfd/dbx500-prcmu.h int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size); slave 258 include/linux/mfd/dbx500-prcmu.h int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, u8 size); slave 421 include/linux/mfd/dbx500-prcmu.h static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size) slave 426 include/linux/mfd/dbx500-prcmu.h static inline int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size) slave 431 include/linux/mfd/dbx500-prcmu.h static inline int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, slave 328 include/linux/mlx4/cmd.h bool mlx4_get_slave_default_vlan(struct mlx4_dev *dev, int port, int slave, slave 1065 include/linux/mlx4/device.h static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) slave 1067 include/linux/mlx4/device.h int guest_proxy_base = dev->phys_caps.base_proxy_sqpn + slave * 8; slave 1462 include/linux/mlx4/device.h void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port, slave 1467 include/linux/mlx4/device.h int mlx4_is_slave_active(struct mlx4_dev *dev, int slave); slave 1468 include/linux/mlx4/device.h int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port); slave 1469 include/linux/mlx4/device.h int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port); slave 1471 include/linux/mlx4/device.h int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, u8 port_subtype_change); slave 1472 include/linux/mlx4/device.h enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port); slave 1473 include/linux/mlx4/device.h int set_and_calc_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, int event, enum slave_port_gen_event *gen_event); slave 1475 include/linux/mlx4/device.h void mlx4_put_slave_node_guid(struct mlx4_dev *dev, int slave, __be64 guid); slave 1476 include/linux/mlx4/device.h __be64 mlx4_get_slave_node_guid(struct mlx4_dev *dev, int slave); slave 1492 include/linux/mlx4/device.h struct mlx4_active_ports mlx4_get_active_ports(struct mlx4_dev *dev, int slave); slave 1497 include/linux/mlx4/device.h int mlx4_slave_convert_port(struct mlx4_dev *dev, int slave, int port); slave 1513 include/linux/mlx4/device.h int mlx4_phys_to_slave_port(struct mlx4_dev *dev, int slave, int port); slave 1515 include/linux/mlx4/device.h int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave, int port); slave 1521 include/linux/mlx4/device.h int mlx4_vf_smi_enabled(struct mlx4_dev *dev, int slave, int port); slave 1522 include/linux/mlx4/device.h int mlx4_vf_get_enable_smi_admin(struct mlx4_dev *dev, int slave, int port); slave 1523 include/linux/mlx4/device.h int mlx4_vf_set_enable_smi_admin(struct mlx4_dev *dev, int slave, int port, slave 2569 include/linux/netdevice.h #define for_each_netdev_in_bond_rcu(bond, slave) \ slave 2570 include/linux/netdevice.h for_each_netdev_rcu(&init_net, slave) \ slave 2571 include/linux/netdevice.h if (netdev_master_upper_dev_get_rcu(slave) == (bond)) slave 4354 include/linux/netdevice.h ifslave slave; slave 62 include/linux/platform_data/i2c-pxa.h struct i2c_slave_client *slave; slave 156 include/linux/pm_domain.h struct generic_pm_domain *slave; slave 72 include/linux/sh_dma.h const struct sh_dmae_slave_config *slave; slave 403 include/linux/soundwire/sdw.h int sdw_slave_read_prop(struct sdw_slave *slave); slave 528 include/linux/soundwire/sdw.h int (*interrupt_callback)(struct sdw_slave *slave, slave 530 include/linux/soundwire/sdw.h int (*update_status)(struct sdw_slave *slave, slave 532 include/linux/soundwire/sdw.h int (*bus_config)(struct sdw_slave *slave, slave 534 include/linux/soundwire/sdw.h int (*port_prep)(struct sdw_slave *slave, slave 862 include/linux/soundwire/sdw.h int sdw_stream_add_slave(struct sdw_slave *slave, slave 869 include/linux/soundwire/sdw.h int sdw_stream_remove_slave(struct sdw_slave *slave, slave 878 include/linux/soundwire/sdw.h int sdw_read(struct sdw_slave *slave, u32 addr); slave 879 include/linux/soundwire/sdw.h int sdw_write(struct sdw_slave *slave, u32 addr, u8 value); slave 880 include/linux/soundwire/sdw.h int sdw_nread(struct sdw_slave *slave, u32 addr, size_t count, u8 *val); slave 881 include/linux/soundwire/sdw.h int sdw_nwrite(struct sdw_slave *slave, u32 addr, size_t count, u8 *val); slave 17 include/linux/soundwire/sdw_type.h int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size); slave 470 include/linux/spi/spi.h bool slave; slave 635 include/linux/spi/spi.h return IS_ENABLED(CONFIG_SPI_SLAVE) && ctlr->slave; slave 649 include/linux/spi/spi.h unsigned int size, bool slave); slave 223 include/net/ax25.h char slave; /* slave_mode? */ slave 157 include/net/bond_3ad.h struct slave; slave 193 include/net/bond_3ad.h struct slave *slave; /* pointer to the bond slave that this aggregator belongs to */ slave 241 include/net/bond_3ad.h struct slave *slave; /* pointer to the bond slave that this port belongs to */ slave 260 include/net/bond_3ad.h #define SLAVE_AD_INFO(slave) ((slave)->ad_info) slave 294 include/net/bond_3ad.h void bond_3ad_bind_slave(struct slave *slave); slave 295 include/net/bond_3ad.h void bond_3ad_unbind_slave(struct slave *slave); slave 298 include/net/bond_3ad.h void bond_3ad_adapter_speed_duplex_changed(struct slave *slave); slave 299 include/net/bond_3ad.h void bond_3ad_handle_link_change(struct slave *slave, char link); slave 304 include/net/bond_3ad.h struct slave *slave); slave 12 include/net/bond_alb.h struct slave; slave 15 include/net/bond_alb.h #define SLAVE_TLB_INFO(slave) ((slave)->tlb_info) slave 56 include/net/bond_alb.h struct slave *tx_slave; /* A pointer to slave used for transmiting slave 111 include/net/bond_alb.h struct slave *slave; /* the slave assigned to this client */ slave 138 include/net/bond_alb.h struct slave *rx_slave;/* last slave to xmit from */ slave 155 include/net/bond_alb.h int bond_alb_init_slave(struct bonding *bond, struct slave *slave); slave 156 include/net/bond_alb.h void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave); slave 157 include/net/bond_alb.h void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link); slave 158 include/net/bond_alb.h void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave); slave 186 include/net/bonding.h struct slave *arr[0]; slave 200 include/net/bonding.h struct slave __rcu *curr_active_slave; slave 201 include/net/bonding.h struct slave __rcu *current_arp_slave; slave 202 include/net/bonding.h struct slave __rcu *primary_slave; slave 207 include/net/bonding.h struct slave *); slave 244 include/net/bonding.h ((struct slave *) rcu_dereference(dev->rx_handler_data)) slave 247 include/net/bonding.h ((struct slave *) rtnl_dereference(dev->rx_handler_data)) slave 249 include/net/bonding.h void bond_queue_slave_event(struct slave *slave); slave 250 include/net/bonding.h void bond_lower_state_changed(struct slave *slave); slave 262 include/net/bonding.h static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, slave 268 include/net/bonding.h static inline struct bonding *bond_get_bond_by_slave(struct slave *slave) slave 270 include/net/bonding.h return slave->bond; slave 329 include/net/bonding.h struct slave *slave = rcu_dereference(bond->curr_active_slave); slave 331 include/net/bonding.h return bond_uses_primary(bond) && slave ? slave->dev : NULL; slave 334 include/net/bonding.h static inline bool bond_slave_is_up(struct slave *slave) slave 336 include/net/bonding.h return netif_running(slave->dev) && netif_carrier_ok(slave->dev); slave 339 include/net/bonding.h static inline void bond_set_active_slave(struct slave *slave) slave 341 include/net/bonding.h if (slave->backup) { slave 342 include/net/bonding.h slave->backup = 0; slave 343 include/net/bonding.h bond_queue_slave_event(slave); slave 344 include/net/bonding.h bond_lower_state_changed(slave); slave 348 include/net/bonding.h static inline void bond_set_backup_slave(struct slave *slave) slave 350 include/net/bonding.h if (!slave->backup) { slave 351 include/net/bonding.h slave->backup = 1; slave 352 include/net/bonding.h bond_queue_slave_event(slave); slave 353 include/net/bonding.h bond_lower_state_changed(slave); slave 357 include/net/bonding.h static inline void bond_set_slave_state(struct slave *slave, slave 360 include/net/bonding.h if (slave->backup == slave_state) slave 363 include/net/bonding.h slave->backup = slave_state; slave 365 include/net/bonding.h bond_lower_state_changed(slave); slave 366 include/net/bonding.h bond_queue_slave_event(slave); slave 367 include/net/bonding.h slave->should_notify = 0; slave 369 include/net/bonding.h if (slave->should_notify) slave 370 include/net/bonding.h slave->should_notify = 0; slave 372 include/net/bonding.h slave->should_notify = 1; slave 379 include/net/bonding.h struct slave *tmp; slave 392 include/net/bonding.h struct slave *tmp; slave 402 include/net/bonding.h static inline int bond_slave_state(struct slave *slave) slave 404 include/net/bonding.h return slave->backup; slave 407 include/net/bonding.h static inline bool bond_is_active_slave(struct slave *slave) slave 409 include/net/bonding.h return !bond_slave_state(slave); slave 412 include/net/bonding.h static inline bool bond_slave_can_tx(struct slave *slave) slave 414 include/net/bonding.h return bond_slave_is_up(slave) && slave->link == BOND_LINK_UP && slave 415 include/net/bonding.h bond_is_active_slave(slave); slave 420 include/net/bonding.h struct slave *slave; slave 424 include/net/bonding.h slave = bond_slave_get_rcu(slave_dev); slave 425 include/net/bonding.h active = bond_is_active_slave(slave); slave 467 include/net/bonding.h struct slave *slave) slave 469 include/net/bonding.h return bond->params.arp_validate & (1 << bond_slave_state(slave)); slave 486 include/net/bonding.h struct slave *slave) slave 489 include/net/bonding.h unsigned long ret = slave->target_last_arp_rx[0]; slave 492 include/net/bonding.h if (time_before(slave->target_last_arp_rx[i], ret)) slave 493 include/net/bonding.h ret = slave->target_last_arp_rx[i]; slave 499 include/net/bonding.h struct slave *slave) slave 502 include/net/bonding.h return slave_oldest_target_arp_rx(bond, slave); slave 504 include/net/bonding.h return slave->last_rx; slave 508 include/net/bonding.h static inline void bond_netpoll_send_skb(const struct slave *slave, slave 511 include/net/bonding.h struct netpoll *np = slave->np; slave 517 include/net/bonding.h static inline void bond_netpoll_send_skb(const struct slave *slave, slave 523 include/net/bonding.h static inline void bond_set_slave_inactive_flags(struct slave *slave, slave 526 include/net/bonding.h if (!bond_is_lb(slave->bond)) slave 527 include/net/bonding.h bond_set_slave_state(slave, BOND_STATE_BACKUP, notify); slave 528 include/net/bonding.h if (!slave->bond->params.all_slaves_active) slave 529 include/net/bonding.h slave->inactive = 1; slave 532 include/net/bonding.h static inline void bond_set_slave_active_flags(struct slave *slave, slave 535 include/net/bonding.h bond_set_slave_state(slave, BOND_STATE_ACTIVE, notify); slave 536 include/net/bonding.h slave->inactive = 0; slave 539 include/net/bonding.h static inline bool bond_is_slave_inactive(struct slave *slave) slave 541 include/net/bonding.h return slave->inactive; slave 544 include/net/bonding.h static inline void bond_propose_link_state(struct slave *slave, int state) slave 546 include/net/bonding.h slave->link_new_state = state; slave 549 include/net/bonding.h static inline void bond_commit_link_state(struct slave *slave, bool notify) slave 551 include/net/bonding.h if (slave->link_new_state == BOND_LINK_NOCHANGE) slave 554 include/net/bonding.h slave->link = slave->link_new_state; slave 556 include/net/bonding.h bond_queue_slave_event(slave); slave 557 include/net/bonding.h bond_lower_state_changed(slave); slave 558 include/net/bonding.h slave->should_notify_link = 0; slave 560 include/net/bonding.h if (slave->should_notify_link) slave 561 include/net/bonding.h slave->should_notify_link = 0; slave 563 include/net/bonding.h slave->should_notify_link = 1; slave 567 include/net/bonding.h static inline void bond_set_slave_link_state(struct slave *slave, int state, slave 570 include/net/bonding.h bond_propose_link_state(slave, state); slave 571 include/net/bonding.h bond_commit_link_state(slave, notify); slave 577 include/net/bonding.h struct slave *tmp; slave 612 include/net/bonding.h int bond_arp_rcv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave); slave 618 include/net/bonding.h int bond_sysfs_slave_add(struct slave *slave); slave 619 include/net/bonding.h void bond_sysfs_slave_del(struct slave *slave); slave 626 include/net/bonding.h void bond_change_active_slave(struct bonding *bond, struct slave *new_active); slave 642 include/net/bonding.h int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave); slave 669 include/net/bonding.h static inline struct slave *bond_slave_has_mac(struct bonding *bond, slave 673 include/net/bonding.h struct slave *tmp; slave 683 include/net/bonding.h static inline struct slave *bond_slave_has_mac_rcu(struct bonding *bond, slave 687 include/net/bonding.h struct slave *tmp; slave 700 include/net/bonding.h struct slave *tmp; slave 124 include/net/caif/caif_spi.h bool slave; slave 164 include/net/dsa.h struct net_device *slave; slave 181 include/sound/control.h int _snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave, slave 206 include/sound/control.h snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave) slave 208 include/sound/control.h return _snd_ctl_add_slave(master, slave, 0); slave 229 include/sound/control.h struct snd_kcontrol *slave) slave 231 include/sound/control.h return _snd_ctl_add_slave(master, slave, SND_CTL_SLAVE_NEED_UPDATE); slave 241 include/sound/control.h struct snd_kcontrol *slave, slave 43 include/sound/designware_i2s.h bool (*filter)(struct dma_chan *chan, void *slave); slave 52 include/sound/designware_i2s.h bool (*filter)(struct dma_chan *chan, void *slave); slave 12 include/sound/spear_spdif.h bool (*filter)(struct dma_chan *chan, void *slave); slave 5457 kernel/sched/fair.c unsigned int slave = p->wakee_flips; slave 5460 kernel/sched/fair.c if (master < slave) slave 5461 kernel/sched/fair.c swap(master, slave); slave 5462 kernel/sched/fair.c if (slave < factor || master < slave * factor) slave 376 net/ax25/af_ax25.c if (ax25_dev->dama.slave && ax25->ax25_dev->values[AX25_VALUES_PROTOCOL] == AX25_PROTO_DAMA_SLAVE) slave 1273 net/ax25/af_ax25.c if (ax25->ax25_dev->dama.slave) slave 175 net/ax25/ax25_ds_subr.c if (ax25_dev->dama.slave == 0) slave 178 net/ax25/ax25_ds_subr.c ax25_dev->dama.slave = 1; slave 187 net/ax25/ax25_ds_subr.c if (ax25_dev->dama.slave && !ax25_check_dama_slave(ax25_dev)) { slave 189 net/ax25/ax25_ds_subr.c ax25_dev->dama.slave = 0; slave 70 net/ax25/ax25_ds_timer.c if (ax25_dev == NULL || !ax25_dev->dama.slave) slave 172 net/ax25/ax25_in.c if (dama || ax25->ax25_dev->dama.slave) slave 83 net/ax25/ax25_out.c if (ax25_dev->dama.slave) slave 201 net/ax25/ax25_out.c if (!ax25->ax25_dev->dama.slave) ax25_kick(ax25); slave 135 net/ax25/ax25_timer.c if (ax25->ax25_dev->dama.slave) slave 156 net/ax25/ax25_timer.c if (!ax25->ax25_dev->dama.slave) slave 175 net/ax25/ax25_timer.c if (!ax25->ax25_dev->dama.slave) slave 194 net/ax25/ax25_timer.c if (ax25->ax25_dev->dama.slave) slave 215 net/ax25/ax25_timer.c if (ax25->ax25_dev->dama.slave) slave 688 net/batman-adv/hard-interface.c static int batadv_master_del_slave(struct batadv_hard_iface *slave, slave 698 net/batman-adv/hard-interface.c ret = master->netdev_ops->ndo_del_slave(master, slave->net_dev); slave 249 net/dsa/dsa.c return dsa_is_user_port(ds, p) && ds->ports[p].slave; slave 261 net/dsa/dsa.c ret = dsa_slave_suspend(ds->ports[i].slave); slave 288 net/dsa/dsa.c ret = dsa_slave_resume(ds->ports[i].slave); slave 326 net/dsa/dsa2.c devlink_port_type_eth_set(dlp, dp->slave); slave 360 net/dsa/dsa2.c if (dp->slave) { slave 361 net/dsa/dsa2.c dsa_slave_destroy(dp->slave); slave 362 net/dsa/dsa2.c dp->slave = NULL; slave 125 net/dsa/dsa_priv.h return slave_port->slave; slave 505 net/dsa/port.c phydev = dp->slave->phydev; slave 1439 net/dsa/slave.c port->slave = slave_dev; slave 1468 net/dsa/slave.c port->slave = NULL; slave 1518 net/dsa/slave.c struct net_device *slave; slave 1526 net/dsa/slave.c slave = vlan_dev_real_dev(dev); slave 1527 net/dsa/slave.c if (!dsa_slave_dev_check(slave)) slave 1530 net/dsa/slave.c dp = dsa_slave_to_port(slave); slave 225 net/dsa/switch.c return vlan_for_each(dp->slave, dsa_port_vlan_device_check, slave 99 net/dsa/tag_8021q.c struct net_device *slave; slave 106 net/dsa/tag_8021q.c slave = ds->ports[port].slave; slave 108 net/dsa/tag_8021q.c err = br_vlan_get_pvid(slave, &pvid); slave 115 net/dsa/tag_8021q.c err = br_vlan_get_info(slave, pvid, &vinfo); slave 152 net/dsa/tag_8021q.c err = br_vlan_get_info(dp->slave, vid, &vinfo); slave 433 net/hsr/hsr_device.c int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2], slave 447 net/hsr/hsr_device.c ether_addr_copy(hsr_dev->dev_addr, slave[0]->dev_addr); slave 451 net/hsr/hsr_device.c slave[1]->dev_addr); slave 489 net/hsr/hsr_device.c res = hsr_add_port(hsr, slave[0], HSR_PT_SLAVE_A); slave 493 net/hsr/hsr_device.c res = hsr_add_port(hsr, slave[1], HSR_PT_SLAVE_B); slave 15 net/hsr/hsr_device.h int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2], slave 295 net/sched/sch_teql.c struct net_device *slave = qdisc_dev(q); slave 296 net/sched/sch_teql.c struct netdev_queue *slave_txq = netdev_get_tx_queue(slave, 0); slave 300 net/sched/sch_teql.c if (netif_xmit_stopped(netdev_get_tx_queue(slave, subq)) || slave 301 net/sched/sch_teql.c !netif_running(slave)) { slave 306 net/sched/sch_teql.c switch (teql_resolve(skb, skb_res, slave, slave_txq)) { slave 312 net/sched/sch_teql.c netdev_start_xmit(skb, slave, slave_txq, false) == slave 367 net/sched/sch_teql.c struct net_device *slave = qdisc_dev(q); slave 369 net/sched/sch_teql.c if (slave == NULL) slave 372 net/sched/sch_teql.c if (slave->mtu < mtu) slave 373 net/sched/sch_teql.c mtu = slave->mtu; slave 374 net/sched/sch_teql.c if (slave->hard_header_len > LL_MAX_HEADER) slave 381 net/sched/sch_teql.c if (!(slave->flags&IFF_POINTOPOINT)) slave 383 net/sched/sch_teql.c if (!(slave->flags&IFF_BROADCAST)) slave 385 net/sched/sch_teql.c if (!(slave->flags&IFF_MULTICAST)) slave 172 sound/core/timer.c static int snd_timer_check_slave(struct snd_timer_instance *slave) slave 180 sound/core/timer.c if (slave->slave_class == master->slave_class && slave 181 sound/core/timer.c slave->slave_id == master->slave_id) { slave 185 sound/core/timer.c list_move_tail(&slave->open_list, slave 189 sound/core/timer.c slave->master = master; slave 190 sound/core/timer.c slave->timer = master->timer; slave 207 sound/core/timer.c struct snd_timer_instance *slave, *tmp; slave 210 sound/core/timer.c list_for_each_entry_safe(slave, tmp, &snd_timer_slave_list, open_list) { slave 211 sound/core/timer.c if (slave->slave_class == master->slave_class && slave 212 sound/core/timer.c slave->slave_id == master->slave_id) { slave 216 sound/core/timer.c list_move_tail(&slave->open_list, &master->slave_list_head); slave 220 sound/core/timer.c slave->master = master; slave 221 sound/core/timer.c slave->timer = master->timer; slave 222 sound/core/timer.c if (slave->flags & SNDRV_TIMER_IFLG_RUNNING) slave 223 sound/core/timer.c list_add_tail(&slave->active_list, slave 358 sound/core/timer.c struct snd_timer_instance *slave, *tmp; slave 387 sound/core/timer.c list_for_each_entry_safe(slave, tmp, &timeri->slave_list_head, slave 389 sound/core/timer.c list_move_tail(&slave->open_list, &snd_timer_slave_list); slave 391 sound/core/timer.c slave->master = NULL; slave 392 sound/core/timer.c slave->timer = NULL; slave 393 sound/core/timer.c list_del_init(&slave->ack_list); slave 394 sound/core/timer.c list_del_init(&slave->active_list); slave 54 sound/core/vmaster.c struct snd_kcontrol slave; /* the copy of original control entry */ slave 57 sound/core/vmaster.c static int slave_update(struct link_slave *slave) slave 65 sound/core/vmaster.c uctl->id = slave->slave.id; slave 66 sound/core/vmaster.c err = slave->slave.get(&slave->slave, uctl); slave 69 sound/core/vmaster.c for (ch = 0; ch < slave->info.count; ch++) slave 70 sound/core/vmaster.c slave->vals[ch] = uctl->value.integer.value[ch]; slave 77 sound/core/vmaster.c static int slave_init(struct link_slave *slave) slave 82 sound/core/vmaster.c if (slave->info.count) { slave 84 sound/core/vmaster.c if (slave->flags & SND_CTL_SLAVE_NEED_UPDATE) slave 85 sound/core/vmaster.c return slave_update(slave); slave 92 sound/core/vmaster.c uinfo->id = slave->slave.id; slave 93 sound/core/vmaster.c err = slave->slave.info(&slave->slave, uinfo); slave 98 sound/core/vmaster.c slave->info.type = uinfo->type; slave 99 sound/core/vmaster.c slave->info.count = uinfo->count; slave 100 sound/core/vmaster.c if (slave->info.count > 2 || slave 101 sound/core/vmaster.c (slave->info.type != SNDRV_CTL_ELEM_TYPE_INTEGER && slave 102 sound/core/vmaster.c slave->info.type != SNDRV_CTL_ELEM_TYPE_BOOLEAN)) { slave 107 sound/core/vmaster.c slave->info.min_val = uinfo->value.integer.min; slave 108 sound/core/vmaster.c slave->info.max_val = uinfo->value.integer.max; slave 111 sound/core/vmaster.c return slave_update(slave); slave 117 sound/core/vmaster.c struct link_slave *slave; slave 122 sound/core/vmaster.c list_for_each_entry(slave, &master->slaves, list) { slave 123 sound/core/vmaster.c int err = slave_init(slave); slave 126 sound/core/vmaster.c master->info = slave->info; slave 137 sound/core/vmaster.c static int slave_get_val(struct link_slave *slave, slave 142 sound/core/vmaster.c err = slave_init(slave); slave 145 sound/core/vmaster.c for (ch = 0; ch < slave->info.count; ch++) slave 146 sound/core/vmaster.c ucontrol->value.integer.value[ch] = slave->vals[ch]; slave 150 sound/core/vmaster.c static int slave_put_val(struct link_slave *slave, slave 155 sound/core/vmaster.c err = master_init(slave->master); slave 159 sound/core/vmaster.c switch (slave->info.type) { slave 161 sound/core/vmaster.c for (ch = 0; ch < slave->info.count; ch++) slave 163 sound/core/vmaster.c !!slave->master->val; slave 166 sound/core/vmaster.c for (ch = 0; ch < slave->info.count; ch++) { slave 169 sound/core/vmaster.c vol += slave->master->val - slave->master->info.max_val; slave 170 sound/core/vmaster.c if (vol < slave->info.min_val) slave 171 sound/core/vmaster.c vol = slave->info.min_val; slave 172 sound/core/vmaster.c else if (vol > slave->info.max_val) slave 173 sound/core/vmaster.c vol = slave->info.max_val; slave 178 sound/core/vmaster.c return slave->slave.put(&slave->slave, ucontrol); slave 187 sound/core/vmaster.c struct link_slave *slave = snd_kcontrol_chip(kcontrol); slave 188 sound/core/vmaster.c return slave->slave.info(&slave->slave, uinfo); slave 194 sound/core/vmaster.c struct link_slave *slave = snd_kcontrol_chip(kcontrol); slave 195 sound/core/vmaster.c return slave_get_val(slave, ucontrol); slave 201 sound/core/vmaster.c struct link_slave *slave = snd_kcontrol_chip(kcontrol); slave 204 sound/core/vmaster.c err = slave_init(slave); slave 207 sound/core/vmaster.c for (ch = 0; ch < slave->info.count; ch++) { slave 208 sound/core/vmaster.c if (slave->vals[ch] != ucontrol->value.integer.value[ch]) { slave 210 sound/core/vmaster.c slave->vals[ch] = ucontrol->value.integer.value[ch]; slave 215 sound/core/vmaster.c err = slave_put_val(slave, ucontrol); slave 225 sound/core/vmaster.c struct link_slave *slave = snd_kcontrol_chip(kcontrol); slave 227 sound/core/vmaster.c return slave->slave.tlv.c(&slave->slave, op_flag, size, tlv); slave 232 sound/core/vmaster.c struct link_slave *slave = snd_kcontrol_chip(kcontrol); slave 233 sound/core/vmaster.c if (slave->slave.private_free) slave 234 sound/core/vmaster.c slave->slave.private_free(&slave->slave); slave 235 sound/core/vmaster.c if (slave->master) slave 236 sound/core/vmaster.c list_del(&slave->list); slave 237 sound/core/vmaster.c kfree(slave); slave 252 sound/core/vmaster.c int _snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave, slave 258 sound/core/vmaster.c srec = kzalloc(struct_size(srec, slave.vd, slave->count), slave 262 sound/core/vmaster.c srec->kctl = slave; slave 263 sound/core/vmaster.c srec->slave = *slave; slave 264 sound/core/vmaster.c memcpy(srec->slave.vd, slave->vd, slave->count * sizeof(*slave->vd)); slave 269 sound/core/vmaster.c slave->info = slave_info; slave 270 sound/core/vmaster.c slave->get = slave_get; slave 271 sound/core/vmaster.c slave->put = slave_put; slave 272 sound/core/vmaster.c if (slave->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) slave 273 sound/core/vmaster.c slave->tlv.c = slave_tlv_cmd; slave 274 sound/core/vmaster.c slave->private_data = srec; slave 275 sound/core/vmaster.c slave->private_free = slave_free; slave 314 sound/core/vmaster.c struct link_slave *slave; slave 320 sound/core/vmaster.c list_for_each_entry(slave, &master->slaves, list) { slave 322 sound/core/vmaster.c uval->id = slave->slave.id; slave 323 sound/core/vmaster.c slave_get_val(slave, uval); slave 325 sound/core/vmaster.c slave_put_val(slave, uval); slave 358 sound/core/vmaster.c struct link_slave *slave, *n; slave 361 sound/core/vmaster.c list_for_each_entry_safe(slave, n, &master->slaves, list) { slave 362 sound/core/vmaster.c struct snd_kcontrol *sctl = slave->kctl; slave 364 sound/core/vmaster.c memcpy(sctl, &slave->slave, sizeof(*sctl)); slave 365 sound/core/vmaster.c memcpy(sctl->vd, slave->slave.vd, slave 368 sound/core/vmaster.c kfree(slave); slave 500 sound/core/vmaster.c struct snd_kcontrol *slave, slave 505 sound/core/vmaster.c struct link_slave *slave; slave 512 sound/core/vmaster.c list_for_each_entry(slave, &master->slaves, list) { slave 513 sound/core/vmaster.c err = func(slave->kctl, &slave->slave, arg); slave 36 sound/i2c/i2c.c struct snd_i2c_bus *slave; slave 49 sound/i2c/i2c.c slave = snd_i2c_slave_bus(bus->buses.next); slave 50 sound/i2c/i2c.c snd_device_free(bus->card, slave); slave 768 sound/pci/ca0106/ca0106_mixer.c struct snd_kcontrol *slave = ctl_find(card, *list); slave 769 sound/pci/ca0106/ca0106_mixer.c if (slave) slave 770 sound/pci/ca0106/ca0106_mixer.c snd_ctl_add_slave(master, slave); slave 1858 sound/pci/hda/hda_codec.c static int init_slave_0dB(struct snd_kcontrol *slave, slave 1897 sound/pci/hda/hda_codec.c put_kctl_with_value(slave, val); slave 1905 sound/pci/hda/hda_codec.c static int init_slave_unmute(struct snd_kcontrol *slave, slave 1909 sound/pci/hda/hda_codec.c return put_kctl_with_value(slave, 1); slave 1913 sound/pci/hda/hda_codec.c void *data, struct snd_kcontrol *slave) slave 1915 sound/pci/hda/hda_codec.c return snd_ctl_add_slave(data, slave); slave 426 sound/pci/ice1712/juli.c struct snd_kcontrol *slave = ctl_find(card, *list); slave 428 sound/pci/ice1712/juli.c if (slave) { slave 430 sound/pci/ice1712/juli.c snd_ctl_add_slave(master, slave); slave 783 sound/pci/ice1712/quartet.c struct snd_kcontrol *slave = ctl_find(card, *list); slave 784 sound/pci/ice1712/quartet.c if (slave) slave 785 sound/pci/ice1712/quartet.c snd_ctl_add_slave(master, slave); slave 220 sound/soc/intel/common/sst-firmware.c struct dma_slave_config slave; slave 234 sound/soc/intel/common/sst-firmware.c memset(&slave, 0, sizeof(slave)); slave 235 sound/soc/intel/common/sst-firmware.c slave.direction = DMA_MEM_TO_DEV; slave 236 sound/soc/intel/common/sst-firmware.c slave.src_addr_width = slave 237 sound/soc/intel/common/sst-firmware.c slave.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; slave 238 sound/soc/intel/common/sst-firmware.c slave.src_maxburst = slave.dst_maxburst = SST_DSP_DMA_MAX_BURST; slave 240 sound/soc/intel/common/sst-firmware.c ret = dmaengine_slave_config(dma->ch, &slave); slave 317 sound/soc/sh/siu_pcm.c static bool filter(struct dma_chan *chan, void *slave) slave 319 sound/soc/sh/siu_pcm.c struct sh_dmae_slave *param = slave; slave 42 sound/soc/spear/spear_pcm.c bool (*filter)(struct dma_chan *chan, void *slave)) slave 11 sound/soc/spear/spear_pcm.h bool (*filter)(struct dma_chan *chan, void *slave)); slave 215 sound/usb/usx2y/us122l.c us122l->master = us122l->slave; slave 217 sound/usb/usx2y/us122l.c us122l->slave = NULL; slave 419 sound/usb/usx2y/us122l.c us122l->slave = file; slave 16 sound/usb/usx2y/us122l.h struct file *slave; slave 103 tools/testing/selftests/filesystems/devpts_pts.c int master = -1, slave = -1, fret = -1; slave 123 tools/testing/selftests/filesystems/devpts_pts.c slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC); slave 125 tools/testing/selftests/filesystems/devpts_pts.c if (slave < 0) { slave 145 tools/testing/selftests/filesystems/devpts_pts.c ret = login_pty(slave); slave 181 tools/testing/selftests/filesystems/devpts_pts.c if (slave >= 0) slave 182 tools/testing/selftests/filesystems/devpts_pts.c close(slave);