mb 11 arch/alpha/include/asm/agp.h #define flush_agp_cache() mb() mb 376 arch/alpha/include/asm/core_t2.h mb(); mb 391 arch/alpha/include/asm/core_t2.h mb(); mb 402 arch/alpha/include/asm/core_t2.h mb(); mb 46 arch/alpha/include/asm/io.h mb(); mb 326 arch/alpha/include/asm/io.h mb(); mb 333 arch/alpha/include/asm/io.h mb(); mb 339 arch/alpha/include/asm/io.h mb(); mb 345 arch/alpha/include/asm/io.h mb(); mb 374 arch/alpha/include/asm/io.h mb(); mb 380 arch/alpha/include/asm/io.h mb(); mb 419 arch/alpha/include/asm/io.h mb(); mb 426 arch/alpha/include/asm/io.h mb(); mb 432 arch/alpha/include/asm/io.h mb(); mb 438 arch/alpha/include/asm/io.h mb(); mb 467 arch/alpha/include/asm/io.h mb(); mb 474 arch/alpha/include/asm/io.h mb(); mb 480 arch/alpha/include/asm/io.h mb(); mb 486 arch/alpha/include/asm/io.h mb(); mb 122 arch/alpha/include/asm/jensen.h mb(); mb 138 arch/alpha/include/asm/jensen.h mb(); mb 190 arch/alpha/include/asm/jensen.h mb(); mb 197 arch/alpha/include/asm/jensen.h mb(); mb 26 arch/alpha/include/asm/spinlock.h mb(); mb 159 arch/alpha/include/asm/spinlock.h mb(); mb 140 arch/alpha/kernel/core_apecs.c mb(); mb 146 arch/alpha/kernel/core_apecs.c mb(); mb 154 arch/alpha/kernel/core_apecs.c mb(); mb 165 arch/alpha/kernel/core_apecs.c mb(); mb 168 arch/alpha/kernel/core_apecs.c mb(); mb 192 arch/alpha/kernel/core_apecs.c mb(); mb 201 arch/alpha/kernel/core_apecs.c mb(); mb 220 arch/alpha/kernel/core_apecs.c mb(); mb 225 arch/alpha/kernel/core_apecs.c mb(); mb 231 arch/alpha/kernel/core_apecs.c mb(); mb 235 arch/alpha/kernel/core_apecs.c mb(); mb 236 arch/alpha/kernel/core_apecs.c mb(); /* magic */ mb 238 arch/alpha/kernel/core_apecs.c mb(); mb 261 arch/alpha/kernel/core_apecs.c mb(); mb 269 arch/alpha/kernel/core_apecs.c mb(); mb 321 arch/alpha/kernel/core_apecs.c mb(); mb 372 arch/alpha/kernel/core_apecs.c mb(); mb 384 arch/alpha/kernel/core_apecs.c mb(); mb 388 arch/alpha/kernel/core_apecs.c mb(); mb 410 arch/alpha/kernel/core_apecs.c mb(); mb 411 arch/alpha/kernel/core_apecs.c mb(); /* magic */ mb 415 arch/alpha/kernel/core_apecs.c mb(); mb 118 arch/alpha/kernel/core_cia.c mb(); mb 125 arch/alpha/kernel/core_cia.c mb(); mb 129 arch/alpha/kernel/core_cia.c mb(); mb 133 arch/alpha/kernel/core_cia.c mb(); mb 137 arch/alpha/kernel/core_cia.c mb(); mb 138 arch/alpha/kernel/core_cia.c mb(); /* magic */ mb 142 arch/alpha/kernel/core_cia.c mb(); mb 145 arch/alpha/kernel/core_cia.c mb(); mb 150 arch/alpha/kernel/core_cia.c mb(); mb 172 arch/alpha/kernel/core_cia.c mb(); mb 179 arch/alpha/kernel/core_cia.c mb(); mb 183 arch/alpha/kernel/core_cia.c mb(); mb 187 arch/alpha/kernel/core_cia.c mb(); mb 191 arch/alpha/kernel/core_cia.c mb(); mb 195 arch/alpha/kernel/core_cia.c mb(); mb 200 arch/alpha/kernel/core_cia.c mb(); mb 261 arch/alpha/kernel/core_cia.c mb(); mb 291 arch/alpha/kernel/core_cia.c mb(); mb 294 arch/alpha/kernel/core_cia.c mb(); mb 296 arch/alpha/kernel/core_cia.c mb(); mb 320 arch/alpha/kernel/core_cia.c mb(); mb 322 arch/alpha/kernel/core_cia.c mb(); mb 324 arch/alpha/kernel/core_cia.c mb(); mb 366 arch/alpha/kernel/core_cia.c mb(); mb 369 arch/alpha/kernel/core_cia.c mb(); mb 371 arch/alpha/kernel/core_cia.c mb(); mb 391 arch/alpha/kernel/core_cia.c mb(); mb 430 arch/alpha/kernel/core_cia.c mb(); mb 432 arch/alpha/kernel/core_cia.c mb(); mb 434 arch/alpha/kernel/core_cia.c mb(); mb 467 arch/alpha/kernel/core_cia.c mb(); mb 469 arch/alpha/kernel/core_cia.c mb(); mb 471 arch/alpha/kernel/core_cia.c mb(); mb 491 arch/alpha/kernel/core_cia.c mb(); mb 493 arch/alpha/kernel/core_cia.c mb(); mb 495 arch/alpha/kernel/core_cia.c mb(); mb 515 arch/alpha/kernel/core_cia.c mb(); mb 517 arch/alpha/kernel/core_cia.c mb(); mb 519 arch/alpha/kernel/core_cia.c mb(); mb 546 arch/alpha/kernel/core_cia.c mb(); mb 548 arch/alpha/kernel/core_cia.c mb(); mb 550 arch/alpha/kernel/core_cia.c mb(); mb 602 arch/alpha/kernel/core_cia.c mb(); mb 625 arch/alpha/kernel/core_cia.c mb(); mb 680 arch/alpha/kernel/core_cia.c mb(); mb 831 arch/alpha/kernel/core_cia.c mb(); mb 1205 arch/alpha/kernel/core_cia.c mb(); mb 1206 arch/alpha/kernel/core_cia.c mb(); /* magic */ mb 1210 arch/alpha/kernel/core_cia.c mb(); mb 140 arch/alpha/kernel/core_irongate.c mb(); mb 145 arch/alpha/kernel/core_irongate.c mb(); mb 150 arch/alpha/kernel/core_irongate.c mb(); mb 174 arch/alpha/kernel/core_irongate.c mb(); mb 180 arch/alpha/kernel/core_irongate.c mb(); mb 140 arch/alpha/kernel/core_lca.c mb(); mb 156 arch/alpha/kernel/core_lca.c mb(); mb 177 arch/alpha/kernel/core_lca.c mb(); mb 193 arch/alpha/kernel/core_lca.c mb(); mb 246 arch/alpha/kernel/core_lca.c mb(); mb 516 arch/alpha/kernel/core_lca.c mb(); mb 61 arch/alpha/kernel/core_marvel.c mb(); mb 63 arch/alpha/kernel/core_marvel.c mb(); mb 73 arch/alpha/kernel/core_marvel.c mb(); mb 75 arch/alpha/kernel/core_marvel.c mb(); mb 579 arch/alpha/kernel/core_marvel.c mb(); mb 584 arch/alpha/kernel/core_marvel.c mb(); mb 589 arch/alpha/kernel/core_marvel.c mb(); mb 616 arch/alpha/kernel/core_marvel.c mb(); mb 104 arch/alpha/kernel/core_mcpcia.c mb(); mb 108 arch/alpha/kernel/core_mcpcia.c mb(); mb 113 arch/alpha/kernel/core_mcpcia.c mb(); mb 117 arch/alpha/kernel/core_mcpcia.c mb(); mb 118 arch/alpha/kernel/core_mcpcia.c mb(); /* magic */ mb 123 arch/alpha/kernel/core_mcpcia.c mb(); mb 126 arch/alpha/kernel/core_mcpcia.c mb(); mb 148 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_CAP_ERR(mid) = stat0; mb(); mb 155 arch/alpha/kernel/core_mcpcia.c mb(); mb 159 arch/alpha/kernel/core_mcpcia.c mb(); mb 160 arch/alpha/kernel/core_mcpcia.c mb(); /* magic */ mb 163 arch/alpha/kernel/core_mcpcia.c mb(); mb 250 arch/alpha/kernel/core_mcpcia.c mb(); mb 262 arch/alpha/kernel/core_mcpcia.c mb(); mb 263 arch/alpha/kernel/core_mcpcia.c mb(); mb 270 arch/alpha/kernel/core_mcpcia.c mb(); mb 275 arch/alpha/kernel/core_mcpcia.c mb(); mb 276 arch/alpha/kernel/core_mcpcia.c mb(); /* magic */ mb 280 arch/alpha/kernel/core_mcpcia.c mb(); mb 283 arch/alpha/kernel/core_mcpcia.c mb(); mb 339 arch/alpha/kernel/core_mcpcia.c mb(); mb 357 arch/alpha/kernel/core_mcpcia.c mb(); mb 393 arch/alpha/kernel/core_mcpcia.c mb(); mb 396 arch/alpha/kernel/core_mcpcia.c mb(); mb 399 arch/alpha/kernel/core_mcpcia.c mb(); mb 585 arch/alpha/kernel/core_mcpcia.c mb(); mb 586 arch/alpha/kernel/core_mcpcia.c mb(); /* magic */ mb 609 arch/alpha/kernel/core_mcpcia.c mb(); mb 122 arch/alpha/kernel/core_polaris.c mb(); mb 127 arch/alpha/kernel/core_polaris.c mb(); mb 132 arch/alpha/kernel/core_polaris.c mb(); mb 186 arch/alpha/kernel/core_polaris.c mb(); mb 194 arch/alpha/kernel/core_polaris.c mb(); mb 195 arch/alpha/kernel/core_polaris.c mb(); mb 199 arch/alpha/kernel/core_polaris.c mb(); mb 194 arch/alpha/kernel/core_t2.c mb(); mb 196 arch/alpha/kernel/core_t2.c mb(); mb 202 arch/alpha/kernel/core_t2.c mb(); mb 206 arch/alpha/kernel/core_t2.c mb(); mb 207 arch/alpha/kernel/core_t2.c mb(); /* magic */ mb 219 arch/alpha/kernel/core_t2.c mb(); mb 223 arch/alpha/kernel/core_t2.c mb(); mb 228 arch/alpha/kernel/core_t2.c mb(); mb 246 arch/alpha/kernel/core_t2.c mb(); mb 248 arch/alpha/kernel/core_t2.c mb(); mb 254 arch/alpha/kernel/core_t2.c mb(); mb 258 arch/alpha/kernel/core_t2.c mb(); mb 259 arch/alpha/kernel/core_t2.c mb(); /* magic */ mb 270 arch/alpha/kernel/core_t2.c mb(); mb 274 arch/alpha/kernel/core_t2.c mb(); mb 279 arch/alpha/kernel/core_t2.c mb(); mb 362 arch/alpha/kernel/core_t2.c mb(); mb 426 arch/alpha/kernel/core_t2.c mb(); mb 466 arch/alpha/kernel/core_t2.c *(vulp)T2_HAE_1 = 0; mb(); /* Sparse MEM HAE */ mb 467 arch/alpha/kernel/core_t2.c *(vulp)T2_HAE_2 = 0; mb(); /* Sparse I/O HAE */ mb 468 arch/alpha/kernel/core_t2.c *(vulp)T2_HAE_3 = 0; mb(); /* Config Space HAE */ mb 479 arch/alpha/kernel/core_t2.c *(vulp)T2_HAE_4 = 0; mb(); mb 494 arch/alpha/kernel/core_t2.c mb(); mb 501 arch/alpha/kernel/core_t2.c mb(); mb 514 arch/alpha/kernel/core_t2.c mb(); mb 519 arch/alpha/kernel/core_t2.c mb(); mb 543 arch/alpha/kernel/core_t2.c mb(); mb 544 arch/alpha/kernel/core_t2.c mb(); /* magic */ mb 565 arch/alpha/kernel/core_t2.c mb(); mb 566 arch/alpha/kernel/core_t2.c mb(); /* magic */ mb 573 arch/alpha/kernel/core_t2.c mb(); mb 605 arch/alpha/kernel/core_t2.c mb(); mb 609 arch/alpha/kernel/core_t2.c mb(); mb 177 arch/alpha/kernel/core_titan.c mb(); mb 182 arch/alpha/kernel/core_titan.c mb(); mb 187 arch/alpha/kernel/core_titan.c mb(); mb 231 arch/alpha/kernel/core_titan.c mb(); mb 153 arch/alpha/kernel/core_tsunami.c mb(); mb 158 arch/alpha/kernel/core_tsunami.c mb(); mb 163 arch/alpha/kernel/core_tsunami.c mb(); mb 195 arch/alpha/kernel/core_tsunami.c mb(); mb 209 arch/alpha/kernel/core_tsunami.c mb(); mb 457 arch/alpha/kernel/core_tsunami.c mb(); mb 475 arch/alpha/kernel/core_tsunami.c mb(); mb 476 arch/alpha/kernel/core_tsunami.c mb(); /* magic */ mb 480 arch/alpha/kernel/core_tsunami.c mb(); mb 330 arch/alpha/kernel/core_wildfire.c mb(); mb 331 arch/alpha/kernel/core_wildfire.c mb(); /* magic */ mb 335 arch/alpha/kernel/core_wildfire.c mb(); mb 353 arch/alpha/kernel/core_wildfire.c mb(); mb 419 arch/alpha/kernel/core_wildfire.c mb(); mb 424 arch/alpha/kernel/core_wildfire.c mb(); mb 429 arch/alpha/kernel/core_wildfire.c mb(); mb 241 arch/alpha/kernel/err_ev6.c mb(); mb 274 arch/alpha/kernel/err_ev6.c mb(); mb 129 arch/alpha/kernel/err_ev7.c mb(); mb 144 arch/alpha/kernel/err_ev7.c mb(); mb 883 arch/alpha/kernel/err_marvel.c mb(); mb 891 arch/alpha/kernel/err_marvel.c mb(); mb 1061 arch/alpha/kernel/err_marvel.c mb(); mb 1154 arch/alpha/kernel/err_marvel.c mb(); mb 411 arch/alpha/kernel/err_titan.c mb(); mb 470 arch/alpha/kernel/err_titan.c mb(); mb 724 arch/alpha/kernel/err_titan.c mb(); mb 760 arch/alpha/kernel/err_titan.c mb(); mb 20 arch/alpha/kernel/io.c mb(); mb 27 arch/alpha/kernel/io.c mb(); mb 34 arch/alpha/kernel/io.c mb(); mb 40 arch/alpha/kernel/io.c mb(); mb 46 arch/alpha/kernel/io.c mb(); mb 52 arch/alpha/kernel/io.c mb(); mb 152 arch/alpha/kernel/io.c mb(); mb 159 arch/alpha/kernel/io.c mb(); mb 166 arch/alpha/kernel/io.c mb(); mb 173 arch/alpha/kernel/io.c mb(); mb 179 arch/alpha/kernel/io.c mb(); mb 185 arch/alpha/kernel/io.c mb(); mb 191 arch/alpha/kernel/io.c mb(); mb 197 arch/alpha/kernel/io.c mb(); mb 465 arch/alpha/kernel/io.c mb(); mb 520 arch/alpha/kernel/io.c mb(); mb 582 arch/alpha/kernel/io.c mb(); mb 28 arch/alpha/kernel/irq_pyxis.c mb(); mb 55 arch/alpha/kernel/irq_pyxis.c mb(); mb 98 arch/alpha/kernel/irq_pyxis.c mb(); mb 160 arch/alpha/kernel/smp.c mb(); mb 375 arch/alpha/kernel/smp.c mb(); mb 514 arch/alpha/kernel/smp.c mb(); mb 518 arch/alpha/kernel/smp.c mb(); mb 535 arch/alpha/kernel/smp.c mb(); /* Order interrupt and bit testing. */ mb 537 arch/alpha/kernel/smp.c mb(); /* Order bit clearing and data access. */ mb 564 arch/alpha/kernel/smp.c mb(); /* Order data access and bit testing. */ mb 43 arch/alpha/kernel/sys_alcor.c mb(); mb 64 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_CLEAR = 1 << (d->irq - 16); mb(); mb 65 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_CLEAR = 0; mb(); mb 74 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_CLEAR = 0x80000000; mb(); mb 75 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_CLEAR = 0; mb(); mb 117 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_MASK = 0; mb(); /* all disabled */ mb 118 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_EDGE = 0; mb(); /* all are level */ mb 119 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_HILO = 0x80000000U; mb(); /* ISA only HI */ mb 120 arch/alpha/kernel/sys_alcor.c *(vuip)GRU_INT_CLEAR = 0; mb(); /* all clear */ mb 214 arch/alpha/kernel/sys_alcor.c mb(); mb 82 arch/alpha/kernel/sys_dp264.c mb(); mb 95 arch/alpha/kernel/sys_dp264.c mb(); mb 121 arch/alpha/kernel/sys_marvel.c mb(); mb 142 arch/alpha/kernel/sys_marvel.c mb(); mb 185 arch/alpha/kernel/sys_marvel.c mb(); mb 202 arch/alpha/kernel/sys_marvel.c mb(); mb 219 arch/alpha/kernel/sys_marvel.c mb(); mb 230 arch/alpha/kernel/sys_marvel.c mb(); mb 241 arch/alpha/kernel/sys_marvel.c mb(); mb 70 arch/alpha/kernel/sys_miata.c *(vulp)PYXIS_INT_HILO = 0x000000B2UL; mb(); /* ISA/NMI HI */ mb 71 arch/alpha/kernel/sys_miata.c *(vulp)PYXIS_RT_COUNT = 0UL; mb(); /* clear count */ mb 253 arch/alpha/kernel/sys_miata.c mb(); mb 181 arch/alpha/kernel/sys_mikasa.c mb(); mb 182 arch/alpha/kernel/sys_mikasa.c mb(); /* magic */ mb 186 arch/alpha/kernel/sys_mikasa.c mb(); mb 153 arch/alpha/kernel/sys_nautilus.c mb(); mb 158 arch/alpha/kernel/sys_nautilus.c mb(); mb 163 arch/alpha/kernel/sys_nautilus.c mb(); mb 185 arch/alpha/kernel/sys_nautilus.c mb(); mb 270 arch/alpha/kernel/sys_noritake.c mb(); mb 271 arch/alpha/kernel/sys_noritake.c mb(); /* magic */ mb 275 arch/alpha/kernel/sys_noritake.c mb(); mb 51 arch/alpha/kernel/sys_rawhide.c mb(); mb 40 arch/alpha/kernel/sys_ruffian.c *(vulp)PYXIS_INT_HILO = 0x000000c0UL; mb(); mb 41 arch/alpha/kernel/sys_ruffian.c *(vulp)PYXIS_INT_CNFG = 0x00002064UL; mb(); /* all clear */ mb 96 arch/alpha/kernel/sys_ruffian.c mb(); mb 45 arch/alpha/kernel/sys_rx164.c mb(); mb 300 arch/alpha/kernel/sys_sable.c mb(); mb 302 arch/alpha/kernel/sys_sable.c mb(); mb 304 arch/alpha/kernel/sys_sable.c mb(); mb 305 arch/alpha/kernel/sys_sable.c mb(); mb 312 arch/alpha/kernel/sys_sable.c mb(); mb 313 arch/alpha/kernel/sys_sable.c mb(); mb 97 arch/alpha/kernel/sys_titan.c mb(); mb 110 arch/alpha/kernel/sys_titan.c mb(); mb 61 arch/alpha/kernel/sys_wildfire.c mb(); mb 88 arch/alpha/kernel/sys_wildfire.c mb(); mb 42 arch/arc/include/asm/switch_to.h mb(); \ mb 95 arch/arc/plat-axs10x/axs10x.c char mb[32]; mb 105 arch/arc/plat-axs10x/axs10x.c scnprintf(mb, 32, "MainBoard v%d", mb_rev); mb 106 arch/arc/plat-axs10x/axs10x.c axs10x_print_board_ver(CREG_MB_VER, mb); mb 72 arch/arm/mach-actions/platsmp.c mb(); mb 237 arch/arm/mach-bcm/platsmp-brcmstb.c mb(); mb 78 arch/arm/mach-prima2/platsmp.c mb(); mb 72 arch/arm/mach-qcom/platsmp.c mb(); mb 115 arch/arm/mach-qcom/platsmp.c mb(); mb 123 arch/arm/mach-qcom/platsmp.c mb(); mb 128 arch/arm/mach-qcom/platsmp.c mb(); mb 133 arch/arm/mach-qcom/platsmp.c mb(); mb 138 arch/arm/mach-qcom/platsmp.c mb(); mb 143 arch/arm/mach-qcom/platsmp.c mb(); mb 202 arch/arm/mach-qcom/platsmp.c mb(); mb 209 arch/arm/mach-qcom/platsmp.c mb(); mb 219 arch/arm/mach-qcom/platsmp.c mb(); mb 224 arch/arm/mach-qcom/platsmp.c mb(); mb 229 arch/arm/mach-qcom/platsmp.c mb(); mb 234 arch/arm/mach-qcom/platsmp.c mb(); mb 238 arch/arm/mach-qcom/platsmp.c mb(); mb 83 arch/arm/mach-ux500/platsmp.c mb(); mb 218 arch/arm/mm/fault-armv.c mb(); mb 220 arch/arm/mm/fault-armv.c mb(); mb 222 arch/arm/mm/fault-armv.c mb(); mb 224 arch/arm/mm/fault-armv.c mb(); mb 847 arch/arm/plat-omap/dma.c mb(); mb 900 arch/arm/plat-omap/dma.c mb(); mb 64 arch/arm64/include/asm/arch_gicv3.h mb(); mb 56 arch/arm64/include/asm/atomic_ll_sc.h #define ATOMIC_OP_RETURN(name, mb, acq, rel, cl, op, asm_op, constraint)\ mb 70 arch/arm64/include/asm/atomic_ll_sc.h " " #mb ) \ mb 78 arch/arm64/include/asm/atomic_ll_sc.h #define ATOMIC_FETCH_OP(name, mb, acq, rel, cl, op, asm_op, constraint) \ mb 92 arch/arm64/include/asm/atomic_ll_sc.h " " #mb ) \ mb 155 arch/arm64/include/asm/atomic_ll_sc.h #define ATOMIC64_OP_RETURN(name, mb, acq, rel, cl, op, asm_op, constraint)\ mb 169 arch/arm64/include/asm/atomic_ll_sc.h " " #mb ) \ mb 177 arch/arm64/include/asm/atomic_ll_sc.h #define ATOMIC64_FETCH_OP(name, mb, acq, rel, cl, op, asm_op, constraint)\ mb 191 arch/arm64/include/asm/atomic_ll_sc.h " " #mb ) \ mb 259 arch/arm64/include/asm/atomic_ll_sc.h #define __CMPXCHG_CASE(w, sfx, name, sz, mb, acq, rel, cl, constraint) \ mb 284 arch/arm64/include/asm/atomic_ll_sc.h " " #mb "\n" \ mb 318 arch/arm64/include/asm/atomic_ll_sc.h #define __CMPXCHG_DBL(name, mb, rel, cl) \ mb 338 arch/arm64/include/asm/atomic_ll_sc.h " " #mb "\n" \ mb 30 arch/arm64/include/asm/atomic_lse.h #define ATOMIC_FETCH_OP(name, mb, op, asm_op, cl...) \ mb 35 arch/arm64/include/asm/atomic_lse.h " " #asm_op #mb " %w[i], %w[i], %[v]" \ mb 57 arch/arm64/include/asm/atomic_lse.h #define ATOMIC_OP_ADD_RETURN(name, mb, cl...) \ mb 64 arch/arm64/include/asm/atomic_lse.h " ldadd" #mb " %w[i], %w[tmp], %[v]\n" \ mb 90 arch/arm64/include/asm/atomic_lse.h #define ATOMIC_FETCH_OP_AND(name, mb, cl...) \ mb 96 arch/arm64/include/asm/atomic_lse.h " ldclr" #mb " %w[i], %w[i], %[v]" \ mb 121 arch/arm64/include/asm/atomic_lse.h #define ATOMIC_OP_SUB_RETURN(name, mb, cl...) \ mb 129 arch/arm64/include/asm/atomic_lse.h " ldadd" #mb " %w[i], %w[tmp], %[v]\n" \ mb 145 arch/arm64/include/asm/atomic_lse.h #define ATOMIC_FETCH_OP_SUB(name, mb, cl...) \ mb 151 arch/arm64/include/asm/atomic_lse.h " ldadd" #mb " %w[i], %w[i], %[v]" \ mb 183 arch/arm64/include/asm/atomic_lse.h #define ATOMIC64_FETCH_OP(name, mb, op, asm_op, cl...) \ mb 188 arch/arm64/include/asm/atomic_lse.h " " #asm_op #mb " %[i], %[i], %[v]" \ mb 210 arch/arm64/include/asm/atomic_lse.h #define ATOMIC64_OP_ADD_RETURN(name, mb, cl...) \ mb 217 arch/arm64/include/asm/atomic_lse.h " ldadd" #mb " %[i], %x[tmp], %[v]\n" \ mb 243 arch/arm64/include/asm/atomic_lse.h #define ATOMIC64_FETCH_OP_AND(name, mb, cl...) \ mb 249 arch/arm64/include/asm/atomic_lse.h " ldclr" #mb " %[i], %[i], %[v]" \ mb 274 arch/arm64/include/asm/atomic_lse.h #define ATOMIC64_OP_SUB_RETURN(name, mb, cl...) \ mb 282 arch/arm64/include/asm/atomic_lse.h " ldadd" #mb " %[i], %x[tmp], %[v]\n" \ mb 298 arch/arm64/include/asm/atomic_lse.h #define ATOMIC64_FETCH_OP_SUB(name, mb, cl...) \ mb 304 arch/arm64/include/asm/atomic_lse.h " ldadd" #mb " %[i], %[i], %[v]" \ mb 340 arch/arm64/include/asm/atomic_lse.h #define __CMPXCHG_CASE(w, sfx, name, sz, mb, cl...) \ mb 354 arch/arm64/include/asm/atomic_lse.h " cas" #mb #sfx "\t%" #w "[tmp], %" #w "[new], %[v]\n" \ mb 383 arch/arm64/include/asm/atomic_lse.h #define __CMPXCHG_DBL(name, mb, cl...) \ mb 401 arch/arm64/include/asm/atomic_lse.h " casp" #mb "\t%[old1], %[old2], %[new1], %[new2], %[v]\n"\ mb 21 arch/arm64/include/asm/cmpxchg.h #define __XCHG_CASE(w, sfx, name, sz, mb, nop_lse, acq, acq_lse, rel, cl) \ mb 33 arch/arm64/include/asm/cmpxchg.h " " #mb, \ mb 26 arch/c6x/include/asm/switch_to.h mb(); \ mb 31 arch/csky/include/asm/io.h #define writeb(v,c) ({ wmb(); writeb_relaxed((v),(c)); mb(); }) mb 32 arch/csky/include/asm/io.h #define writew(v,c) ({ wmb(); writew_relaxed((v),(c)); mb(); }) mb 33 arch/csky/include/asm/io.h #define writel(v,c) ({ wmb(); writel_relaxed((v),(c)); mb(); }) mb 35 arch/csky/mm/cachev1.c mb(); mb 39 arch/csky/mm/cachev1.c mb(); mb 71 arch/csky/mm/cachev1.c mb(); mb 77 arch/csky/mm/cachev1.c mb(); mb 84 arch/csky/mm/cachev1.c mb(); mb 115 arch/hexagon/mm/cache.c mb(); mb 19 arch/ia64/include/asm/agp.h #define flush_agp_cache() mb() mb 40 arch/ia64/include/asm/barrier.h #define rmb() mb() mb 41 arch/ia64/include/asm/barrier.h #define wmb() mb() mb 43 arch/ia64/include/asm/barrier.h #define dma_rmb() mb() mb 44 arch/ia64/include/asm/barrier.h #define dma_wmb() mb() mb 46 arch/ia64/include/asm/barrier.h # define __smp_mb() mb() mb 150 arch/ia64/kernel/crash.c mb(); mb 103 arch/ia64/kernel/smp.c mb(); /* Order interrupt and bit testing. */ mb 105 arch/ia64/kernel/smp.c mb(); /* Order bit clearing and data access. */ mb 133 arch/ia64/kernel/smp.c mb(); /* Order data access and bit testing. */ mb 268 arch/ia64/kernel/smp.c mb(); mb 863 arch/ia64/kernel/unaligned.c mb(); mb 944 arch/ia64/kernel/unaligned.c mb(); mb 441 arch/mips/cavium-octeon/setup.c mb(); mb 219 arch/mips/cavium-octeon/smp.c mb(); mb 342 arch/mips/cavium-octeon/smp.c mb(); mb 355 arch/mips/cavium-octeon/smp.c mb(); mb 399 arch/mips/cavium-octeon/smp.c mb(); mb 241 arch/mips/include/asm/barrier.h #define nudge_writes() mb() mb 90 arch/mips/include/asm/io.h #define iobarrier_rw() mb() mb 311 arch/mips/kernel/mips-cm.c mb(); mb 106 arch/mips/kernel/mips-cpc.c mb(); mb 187 arch/mips/kernel/smp-bmips.c mb(); mb 177 arch/mips/kernel/spram.c mb(); mb 51 arch/mips/kernel/sync-r4k.c mb(); mb 72 arch/mips/kernel/sync-r4k.c mb(); mb 102 arch/mips/kernel/sync-r4k.c mb(); mb 112 arch/mips/kernel/sync-r4k.c mb(); mb 446 arch/mips/loongson64/loongson-3/smp.c mb(); mb 689 arch/mips/loongson64/loongson-3/smp.c mb(); mb 73 arch/mips/mm/c-octeon.c mb(); mb 229 arch/mips/mti-malta/malta-init.c mb(); mb 266 arch/mips/mti-malta/malta-init.c mb(); mb 231 arch/mips/pci/pci-ar2315.c mb(); /* PCI must see space change before we begin */ mb 323 arch/mips/txx9/rbtx4939/setup.c mb(); /* see inline_map_write() in mtd/map.h */ mb 25 arch/nds32/include/asm/nds32.h mb(); mb 31 arch/nds32/include/asm/nds32.h mb(); mb 54 arch/openrisc/kernel/sync-timer.c mb(); mb 75 arch/openrisc/kernel/sync-timer.c mb(); mb 105 arch/openrisc/kernel/sync-timer.c mb(); mb 115 arch/openrisc/kernel/sync-timer.c mb(); mb 13 arch/parisc/include/asm/agp.h #define flush_agp_cache() mb() mb 17 arch/parisc/include/asm/assembly.h #define LDREGM ldd,mb mb 267 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr30 mb 268 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr29 mb 269 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr28 mb 270 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr27 mb 271 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr26 mb 272 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr25 mb 273 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr24 mb 274 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr23 mb 275 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr22 mb 276 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr21 mb 277 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr20 mb 278 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr19 mb 279 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr18 mb 280 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr17 mb 281 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr16 mb 282 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr15 mb 283 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr14 mb 284 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr13 mb 285 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr12 mb 286 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr11 mb 287 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr10 mb 288 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr9 mb 289 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr8 mb 290 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr7 mb 291 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr6 mb 292 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr5 mb 293 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr4 mb 294 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr3 mb 295 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr2 mb 296 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr1 mb 297 arch/parisc/include/asm/assembly.h fldd,mb -8(\regs), %fr0 mb 314 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr21 mb 315 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr20 mb 316 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr19 mb 317 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr18 mb 318 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr17 mb 319 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr16 mb 320 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr15 mb 321 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr14 mb 322 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr13 mb 323 arch/parisc/include/asm/assembly.h fldd,mb -8(%r30), %fr12 mb 366 arch/parisc/include/asm/assembly.h ldd,mb -CALLEE_REG_FRAME_SIZE(%r30), %r3 mb 410 arch/parisc/include/asm/assembly.h ldw,mb -CALLEE_REG_FRAME_SIZE(%r30), %r3 mb 13 arch/parisc/include/asm/barrier.h #define rmb() mb() mb 14 arch/parisc/include/asm/barrier.h #define wmb() mb() mb 15 arch/parisc/include/asm/barrier.h #define dma_rmb() mb() mb 16 arch/parisc/include/asm/barrier.h #define dma_wmb() mb() mb 25 arch/parisc/include/asm/barrier.h #define __smp_mb() mb() mb 26 arch/parisc/include/asm/barrier.h #define __smp_rmb() mb() mb 27 arch/parisc/include/asm/barrier.h #define __smp_wmb() mb() mb 43 arch/parisc/include/asm/spinlock.h mb(); mb 141 arch/parisc/include/asm/spinlock.h mb(); mb 133 arch/parisc/kernel/smp.c mb(); /* Order bit clearing and data access. */ mb 265 arch/parisc/kernel/smp.c mb(); mb 337 arch/parisc/kernel/smp.c mb(); mb 351 arch/parisc/kernel/smp.c mb(); mb 10 arch/powerpc/include/asm/agp.h #define flush_agp_cache() mb() mb 53 arch/powerpc/include/asm/barrier.h #define __smp_mb() mb() mb 69 arch/powerpc/include/asm/cacheflush.h mb(); /* sync */ mb 75 arch/powerpc/include/asm/cacheflush.h mb(); /* sync */ mb 96 arch/powerpc/include/asm/cacheflush.h mb(); /* sync */ mb 115 arch/powerpc/include/asm/cacheflush.h mb(); /* sync */ mb 12 arch/powerpc/include/asm/mmiowb.h #define mmiowb() mb() mb 225 arch/powerpc/include/asm/nohash/pgtable.h mb(); mb 245 arch/powerpc/kernel/crash.c mb(); mb 331 arch/powerpc/kernel/iommu.c mb(); mb 540 arch/powerpc/kernel/iommu.c mb(); mb 981 arch/powerpc/kernel/iommu.c mb(); mb 142 arch/powerpc/kernel/machine_kexec_64.c mb(); /* make sure our irqs are disabled before we say they are */ mb 146 arch/powerpc/kernel/machine_kexec_64.c mb(); /* make sure all irqs are disabled before this */ mb 194 arch/powerpc/kernel/machine_kexec_64.c mb(); mb 227 arch/powerpc/kernel/machine_kexec_64.c mb(); /* make sure IRQs are disabled before we say they are */ mb 2139 arch/powerpc/kernel/prom_init.c mb(); mb 3211 arch/powerpc/kernel/prom_init.c mb(); mb 3220 arch/powerpc/kernel/prom_init.c mb(); mb 471 arch/powerpc/kernel/setup_64.c mb(); mb 64 arch/powerpc/kernel/smp-tbsync.c mb(); mb 121 arch/powerpc/kernel/smp-tbsync.c mb(); mb 277 arch/powerpc/kernel/smp.c mb(); /* order any irq clear */ mb 18 arch/powerpc/kernel/swsusp_64.c mb(); mb 3212 arch/powerpc/kvm/book3s_hv.c mb(); mb 3330 arch/powerpc/kvm/book3s_hv.c mb(); mb 100 arch/powerpc/kvm/book3s_xive.c mb(); mb 308 arch/powerpc/kvm/book3s_xive.c mb(); mb 408 arch/powerpc/kvm/book3s_xive.c mb(); mb 516 arch/powerpc/kvm/book3s_xive.c mb(); mb 985 arch/powerpc/kvm/book3s_xive.c mb(); mb 1066 arch/powerpc/kvm/book3s_xive.c mb(); mb 29 arch/powerpc/kvm/book3s_xive_template.c mb(); mb 587 arch/powerpc/kvm/book3s_xive_template.c mb(); mb 631 arch/powerpc/kvm/book3s_xive_template.c mb(); mb 214 arch/powerpc/kvm/e500_mmu_host.c mb(); mb 49 arch/powerpc/kvm/e500mc.c mb(); mb 1142 arch/powerpc/lib/sstep.c #define MASK32(mb, me) ((0xffffffffUL >> (mb)) + \ mb 1143 arch/powerpc/lib/sstep.c ((signed long)-0x80000000L >> (me)) + ((me) >= (mb))) mb 1145 arch/powerpc/lib/sstep.c #define MASK64_L(mb) (~0UL >> (mb)) mb 1147 arch/powerpc/lib/sstep.c #define MASK64(mb, me) (MASK64_L(mb) + MASK64_R(me) + ((me) >= (mb))) mb 1171 arch/powerpc/lib/sstep.c unsigned int mb, me, sh; mb 1403 arch/powerpc/lib/sstep.c mb = (instr >> 6) & 0x1f; mb 1406 arch/powerpc/lib/sstep.c imm = MASK32(mb, me); mb 1411 arch/powerpc/lib/sstep.c mb = (instr >> 6) & 0x1f; mb 1414 arch/powerpc/lib/sstep.c op->val = ROTATE(val, rb) & MASK32(mb, me); mb 1418 arch/powerpc/lib/sstep.c mb = (instr >> 6) & 0x1f; mb 1422 arch/powerpc/lib/sstep.c op->val = ROTATE(val, rb) & MASK32(mb, me); mb 1456 arch/powerpc/lib/sstep.c mb = ((instr >> 6) & 0x1f) | (instr & 0x20); mb 1463 arch/powerpc/lib/sstep.c val &= MASK64_L(mb); mb 1466 arch/powerpc/lib/sstep.c val &= MASK64_R(mb); mb 1469 arch/powerpc/lib/sstep.c val &= MASK64(mb, 63 - sh); mb 1472 arch/powerpc/lib/sstep.c imm = MASK64(mb, 63 - sh); mb 1483 arch/powerpc/lib/sstep.c op->val = val & MASK64_L(mb); mb 1486 arch/powerpc/lib/sstep.c op->val = val & MASK64_R(mb); mb 1497 arch/powerpc/lib/sstep.c mb = (instr >> 6) & 0x1f; /* bc field */ mb 1498 arch/powerpc/lib/sstep.c val = (regs->ccr >> (31 - mb)) & 1; mb 2782 arch/powerpc/lib/sstep.c mb(); mb 365 arch/powerpc/mm/mem.c mb(); /* sync */ mb 369 arch/powerpc/mm/mem.c mb(); /* sync */ mb 393 arch/powerpc/mm/mem.c mb(); /* sync */ mb 420 arch/powerpc/mm/mem.c mb(); /* sync */ mb 202 arch/powerpc/mm/nohash/8xx.c mb(); mb 656 arch/powerpc/mm/nohash/tlb.c mb(); mb 154 arch/powerpc/net/bpf_jit.h #define PPC_RLWINM(d, a, i, mb, me) EMIT(PPC_INST_RLWINM | ___PPC_RA(d) | \ mb 156 arch/powerpc/net/bpf_jit.h __PPC_MB(mb) | __PPC_ME(me)) mb 157 arch/powerpc/net/bpf_jit.h #define PPC_RLWINM_DOT(d, a, i, mb, me) EMIT(PPC_INST_RLWINM_DOT | \ mb 159 arch/powerpc/net/bpf_jit.h __PPC_SH(i) | __PPC_MB(mb) | \ mb 161 arch/powerpc/net/bpf_jit.h #define PPC_RLWIMI(d, a, i, mb, me) EMIT(PPC_INST_RLWIMI | ___PPC_RA(d) | \ mb 163 arch/powerpc/net/bpf_jit.h __PPC_MB(mb) | __PPC_ME(me)) mb 164 arch/powerpc/net/bpf_jit.h #define PPC_RLDICL(d, a, i, mb) EMIT(PPC_INST_RLDICL | ___PPC_RA(d) | \ mb 166 arch/powerpc/net/bpf_jit.h __PPC_MB64(mb)) mb 162 arch/powerpc/oprofile/op_model_7450.c mb(); mb 336 arch/powerpc/oprofile/op_model_fsl_emb.c mb(); mb 251 arch/powerpc/oprofile/op_model_power4.c mb(); mb 1234 arch/powerpc/perf/core-book3s.c mb(); mb 1243 arch/powerpc/perf/core-book3s.c mb(); mb 1417 arch/powerpc/perf/core-book3s.c mb(); mb 1427 arch/powerpc/perf/core-book3s.c mb(); mb 94 arch/powerpc/platforms/40x/ep405.c mb(); mb 114 arch/powerpc/platforms/44x/iss4xx.c mb(); mb 185 arch/powerpc/platforms/44x/ppc476.c mb(); mb 83 arch/powerpc/platforms/4xx/cpm.c mb(); mb 122 arch/powerpc/platforms/52xx/mpc52xx_pci.c mb(); mb 158 arch/powerpc/platforms/52xx/mpc52xx_pci.c mb(); mb 179 arch/powerpc/platforms/52xx/mpc52xx_pci.c mb(); mb 219 arch/powerpc/platforms/52xx/mpc52xx_pci.c mb(); mb 222 arch/powerpc/platforms/52xx/mpc52xx_pci.c mb(); mb 48 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c mb(); mb 153 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c mb(); mb 86 arch/powerpc/platforms/85xx/smp.c mb(); mb 191 arch/powerpc/platforms/cell/iommu.c mb(); mb 225 arch/powerpc/platforms/cell/iommu.c mb(); mb 390 arch/powerpc/platforms/cell/iommu.c mb(); mb 908 arch/powerpc/platforms/cell/iommu.c mb(); mb 338 arch/powerpc/platforms/cell/ras.c mb(); mb 345 arch/powerpc/platforms/cell/ras.c mb(); mb 131 arch/powerpc/platforms/cell/spu_base.c mb(); mb 197 arch/powerpc/platforms/cell/spufs/sched.c mb(); mb 316 arch/powerpc/platforms/cell/spufs/switch.c mb(); mb 738 arch/powerpc/platforms/cell/spufs/switch.c mb(); mb 516 arch/powerpc/platforms/powermac/feature.c mb(); mb 1343 arch/powerpc/platforms/powermac/feature.c mb(); mb 1347 arch/powerpc/platforms/powermac/feature.c mb(); mb 1368 arch/powerpc/platforms/powermac/feature.c mb(); mb 1372 arch/powerpc/platforms/powermac/feature.c mb(); mb 225 arch/powerpc/platforms/powermac/low_i2c.c mb(); mb 66 arch/powerpc/platforms/powermac/pic.c mb(); mb 90 arch/powerpc/platforms/powermac/pic.c mb(); mb 125 arch/powerpc/platforms/powermac/pic.c mb(); mb 625 arch/powerpc/platforms/powermac/pic.c mb(); mb 638 arch/powerpc/platforms/powermac/pic.c mb(); mb 236 arch/powerpc/platforms/powermac/smp.c mb(); mb 356 arch/powerpc/platforms/powermac/smp.c mb(); mb 385 arch/powerpc/platforms/powermac/smp.c mb(); mb 387 arch/powerpc/platforms/powermac/smp.c mb(); mb 390 arch/powerpc/platforms/powermac/smp.c mb(); mb 426 arch/powerpc/platforms/powermac/smp.c mb(); mb 429 arch/powerpc/platforms/powermac/smp.c mb(); mb 432 arch/powerpc/platforms/powermac/smp.c mb(); mb 469 arch/powerpc/platforms/powermac/smp.c mb(); mb 471 arch/powerpc/platforms/powermac/smp.c mb(); mb 474 arch/powerpc/platforms/powermac/smp.c mb(); mb 476 arch/powerpc/platforms/powermac/smp.c mb(); mb 489 arch/powerpc/platforms/powermac/smp.c mb(); mb 492 arch/powerpc/platforms/powermac/smp.c mb(); mb 495 arch/powerpc/platforms/powermac/smp.c mb(); mb 933 arch/powerpc/platforms/powermac/smp.c mb(); mb 116 arch/powerpc/platforms/powermac/udbg_scc.c mb(); mb 1922 arch/powerpc/platforms/powernv/pci-ioda.c mb(); /* Ensure above stores are visible */ mb 1990 arch/powerpc/platforms/powernv/pci-ioda.c mb(); /* Ensure previous TCE table stores are visible */ mb 2003 arch/powerpc/platforms/powernv/pci-ioda.c mb(); /* Ensure above stores are visible */ mb 2023 arch/powerpc/platforms/powernv/pci-ioda.c mb(); mb 362 arch/powerpc/platforms/powernv/setup.c mb(); mb 364 arch/powerpc/platforms/powernv/setup.c mb(); mb 157 arch/powerpc/platforms/powernv/subcore.c mb(); mb 249 arch/powerpc/platforms/powernv/subcore.c mb(); mb 320 arch/powerpc/platforms/powernv/subcore.c mb(); mb 354 arch/powerpc/platforms/powernv/subcore.c mb(); mb 129 arch/powerpc/sysdev/cpm2_pic.c mb(); mb 165 arch/powerpc/sysdev/dart_iommu.c mb(); mb 551 arch/powerpc/sysdev/ipic.c mb(); mb 570 arch/powerpc/sysdev/ipic.c mb(); mb 593 arch/powerpc/sysdev/ipic.c mb(); mb 1425 arch/powerpc/sysdev/mpic.c mb(); mb 239 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 243 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 253 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 257 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 266 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 279 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 286 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 299 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 301 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 310 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 314 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 318 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 340 arch/powerpc/sysdev/tsi108_pci.c mb(); mb 65 arch/powerpc/sysdev/xics/icp-hv.c mb(); mb 163 arch/powerpc/sysdev/xics/icp-native.c mb(); mb 349 arch/powerpc/sysdev/xive/native.c mb(); mb 595 arch/powerpc/sysdev/xive/spapr.c mb(); mb 1567 arch/powerpc/xmon/ppc-opc.c int mb, me, mx, count, last; mb 1577 arch/powerpc/xmon/ppc-opc.c mb = 0; mb 1594 arch/powerpc/xmon/ppc-opc.c mb = mx; mb 1610 arch/powerpc/xmon/ppc-opc.c return insn | (mb << 6) | ((me - 1) << 1); mb 1619 arch/powerpc/xmon/ppc-opc.c int mb, me; mb 1624 arch/powerpc/xmon/ppc-opc.c mb = (insn >> 6) & 0x1f; mb 1626 arch/powerpc/xmon/ppc-opc.c if (mb < me + 1) mb 1629 arch/powerpc/xmon/ppc-opc.c for (i = mb; i <= me; i++) mb 1632 arch/powerpc/xmon/ppc-opc.c else if (mb == me + 1) mb 1637 arch/powerpc/xmon/ppc-opc.c for (i = me + 1; i < mb; i++) mb 595 arch/powerpc/xmon/xmon.c mb(); mb 619 arch/powerpc/xmon/xmon.c mb(); mb 1248 arch/powerpc/xmon/xmon.c mb(); mb 1256 arch/powerpc/xmon/xmon.c mb(); mb 125 arch/riscv/kernel/smp.c mb(); mb 149 arch/riscv/kernel/smp.c mb(); mb 28 arch/s390/include/asm/barrier.h #define dma_rmb() mb() mb 29 arch/s390/include/asm/barrier.h #define dma_wmb() mb() mb 30 arch/s390/include/asm/barrier.h #define __smp_mb() mb() mb 29 arch/sh/include/asm/barrier.h #define rmb() mb() mb 30 arch/sh/include/asm/barrier.h #define wmb() mb() mb 10 arch/sh/include/asm/cache_insns_32.h #define __icbi(addr) mb() mb 72 arch/sh/kernel/io.c mb(); mb 95 arch/sh/kernel/io.c mb(); mb 111 arch/sh/kernel/smp.c mb(); mb 9 arch/sparc/include/asm/agp.h #define flush_agp_cache() mb() mb 101 arch/sparc/kernel/leon_smp.c mb(); mb 133 arch/sparc/kernel/nmi.c mb(); mb 291 arch/sparc/kernel/smp_32.c mb(); mb 1324 arch/sparc/kernel/smp_64.c mb(); mb 67 arch/sparc/kernel/sun4m_smp.c mb(); mb 800 arch/sparc/mm/init_64.c mb(); mb 111 arch/x86/include/asm/mwait.h mb(); mb 113 arch/x86/include/asm/mwait.h mb(); mb 114 arch/x86/kernel/cpu/mce/inject.c mb(); mb 118 arch/x86/kernel/cpu/mce/inject.c mb(); mb 122 arch/x86/kernel/cpu/mce/inject.c mb(); mb 1157 arch/x86/kernel/e820.c unsigned long mb = pos >> 20; mb 1160 arch/x86/kernel/e820.c if (!mb) mb 1164 arch/x86/kernel/e820.c if (mb < 16) mb 681 arch/x86/kernel/process.c mb(); /* quirk */ mb 683 arch/x86/kernel/process.c mb(); /* quirk */ mb 829 arch/x86/kernel/smpboot.c mb(); mb 1329 arch/x86/kernel/smpboot.c mb(); mb 1718 arch/x86/kernel/smpboot.c mb(); mb 1720 arch/x86/kernel/smpboot.c mb(); mb 1722 arch/x86/kernel/smpboot.c mb(); mb 488 arch/x86/mm/numa.c struct numa_memblk *mb = numa_meminfo.blk + i; mb 491 arch/x86/mm/numa.c ret = memblock_set_node(mb->start, mb->end - mb->start, &memblock.reserved, mb->nid); mb 518 arch/x86/mm/numa.c struct numa_memblk *mb = numa_meminfo.blk + i; mb 520 arch/x86/mm/numa.c if (!node_isset(mb->nid, reserved_nodemask)) mb 523 arch/x86/mm/numa.c memblock_clear_hotplug(mb->start, mb->end - mb->start); mb 539 arch/x86/mm/numa.c struct numa_memblk *mb = &mi->blk[i]; mb 540 arch/x86/mm/numa.c memblock_set_node(mb->start, mb->end - mb->start, mb 541 arch/x86/mm/numa.c &memblock.memory, mb->nid); mb 302 arch/x86/mm/pageattr.c mb(); mb 304 arch/x86/mm/pageattr.c mb(); mb 364 arch/x86/mm/pageattr.c mb(); mb 377 arch/x86/mm/pageattr.c mb(); mb 16 arch/xtensa/include/asm/barrier.h #define wmb() mb() mb 205 arch/xtensa/kernel/smp.c mb(); mb 223 arch/xtensa/kernel/smp.c mb(); mb 314 arch/xtensa/kernel/smp.c mb(); mb 83 crypto/xor.c mb(); /* prevent loop optimzation */ mb 85 crypto/xor.c mb(); mb 87 crypto/xor.c mb(); mb 2951 drivers/ata/libata-sff.c mb(); /* make sure PRD table writes are visible to controller */ mb 128 drivers/ata/pata_ns87415.c mb(); /* make sure PRD table writes are visible to controller */ mb 1819 drivers/ata/sata_mv.c mb(); /* ensure data structure is visible to the chipset */ mb 570 drivers/ata/sata_rcar.c mb(); /* make sure PRD table writes are visible to controller */ mb 238 drivers/ata/sata_svw.c mb(); /* make sure PRD table writes are visible to controller */ mb 567 drivers/atm/ambassador.c wr_mem (dev, offsetof(amb_mem, mb.adapter.cmd_address), virt_to_bus (ptrs->in)); mb 630 drivers/atm/ambassador.c wr_mem (dev, offsetof(amb_mem, mb.adapter.tx_address), virt_to_bus (txq->in.ptr)); mb 687 drivers/atm/ambassador.c wr_mem (dev, offsetof(amb_mem, mb.adapter.rx_address[pool]), virt_to_bus (rxq->in.ptr)); mb 1864 drivers/atm/ambassador.c wr_plain (dev, offsetof(amb_mem, mb.loader.ready), 0); mb 1874 drivers/atm/ambassador.c while (!rd_plain (dev, offsetof(amb_mem, mb.loader.ready))) mb 1884 drivers/atm/ambassador.c word = rd_mem (dev, offsetof(amb_mem, mb.loader.result)); mb 311 drivers/atm/ambassador.h } mb; mb 57 drivers/atm/atmtcp.c mb(); mb 74 drivers/atm/atmtcp.c mb(); mb 247 drivers/atm/fore200e.c mb(); mb 2202 drivers/atm/lanai.c mb(); /* Make sure that all that made it */ mb 659 drivers/atm/zatm.c mb(); mb 301 drivers/auxdisplay/ht16k33.c mb(); mb 312 drivers/auxdisplay/ht16k33.c mb(); mb 363 drivers/block/drbd/drbd_nl.c char mb[14]; mb 364 drivers/block/drbd/drbd_nl.c char *argv[] = {drbd_usermode_helper, cmd, mb, NULL }; mb 372 drivers/block/drbd/drbd_nl.c snprintf(mb, 14, "minor-%d", device_to_minor(device)); mb 379 drivers/block/drbd/drbd_nl.c drbd_info(device, "helper command: %s %s %s\n", drbd_usermode_helper, cmd, mb); mb 387 drivers/block/drbd/drbd_nl.c drbd_usermode_helper, cmd, mb, mb 391 drivers/block/drbd/drbd_nl.c drbd_usermode_helper, cmd, mb, mb 100 drivers/char/agp/alpha-agp.c mb(); mb 193 drivers/char/agp/uninorth-agp.c mb(); mb 221 drivers/char/agp/uninorth-agp.c mb(); mb 478 drivers/char/agp/uninorth-agp.c mb(); mb 381 drivers/char/ipmi/ipmi_ssif.c unsigned char mb[2]; mb 387 drivers/char/ipmi/ipmi_ssif.c mb[0] = (IPMI_NETFN_APP_REQUEST << 2); mb 388 drivers/char/ipmi/ipmi_ssif.c mb[1] = IPMI_GET_MSG_FLAGS_CMD; mb 389 drivers/char/ipmi/ipmi_ssif.c if (start_send(ssif_info, mb, 2) != 0) mb 907 drivers/char/random.c mb(); mb 269 drivers/clk/qcom/clk-alpha-pll.c mb(); mb 359 drivers/clk/qcom/clk-alpha-pll.c mb(); mb 375 drivers/clk/qcom/clk-alpha-pll.c mb(); mb 399 drivers/clk/qcom/clk-alpha-pll.c mb(); mb 732 drivers/clk/qcom/clk-alpha-pll.c mb(); mb 38 drivers/clk/qcom/clk-krait.c mb(); mb 255 drivers/cpufreq/pmac32-cpufreq.c mb(); mb 242 drivers/crypto/caam/jr.c mb(); mb 50 drivers/dma/dw/of.c u32 tmp, arr[DW_DMA_MAX_NR_MASTERS], mb[DW_DMA_MAX_NR_CHANNELS]; mb 93 drivers/dma/dw/of.c if (!of_property_read_u32_array(np, "multi-block", mb, nr_channels)) { mb 95 drivers/dma/dw/of.c pdata->multi_block[tmp] = mb[tmp]; mb 888 drivers/dma/qcom/bam_dma.c mb(); mb 488 drivers/dma/ti/omap-dma.c mb(); mb 550 drivers/dma/ti/omap-dma.c mb(); mb 1415 drivers/dma/ti/omap-dma.c mb(); mb 120 drivers/edac/cell_edac.c mb(); /* sync up */ mb 42 drivers/edac/edac_mc.h #define MiB_TO_PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) mb 45 drivers/edac/edac_mc.h #define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20)) mb 1761 drivers/edac/sb_edac.c u32 gb, mb; mb 1771 drivers/edac/sb_edac.c gb = div_u64_rem(tmp_mb, 1024, &mb); mb 1773 drivers/edac/sb_edac.c gb, (mb*1000)/1024, (u64)pvt->tolm); mb 1779 drivers/edac/sb_edac.c gb = div_u64_rem(tmp_mb, 1024, &mb); mb 1781 drivers/edac/sb_edac.c gb, (mb*1000)/1024, (u64)pvt->tohm); mb 1803 drivers/edac/sb_edac.c gb = div_u64_rem(tmp_mb, 1024, &mb); mb 1807 drivers/edac/sb_edac.c gb, (mb*1000)/1024, mb 1840 drivers/edac/sb_edac.c gb = div_u64_rem(tmp_mb, 1024, &mb); mb 1842 drivers/edac/sb_edac.c n_tads, gb, (mb*1000)/1024, mb 1865 drivers/edac/sb_edac.c gb = div_u64_rem(tmp_mb, 1024, &mb); mb 1868 drivers/edac/sb_edac.c gb, (mb*1000)/1024, mb 1890 drivers/edac/sb_edac.c gb = div_u64_rem(tmp_mb, 1024, &mb); mb 1893 drivers/edac/sb_edac.c gb, (mb*1000)/1024, mb 1904 drivers/edac/sb_edac.c gb = div_u64_rem(tmp_mb, 1024, &mb); mb 1907 drivers/edac/sb_edac.c gb, (mb*1000)/1024, mb 1945 drivers/edac/sb_edac.c u32 mb, gb; mb 2206 drivers/edac/sb_edac.c gb = div_u64_rem(limit >> 20, 1024, &mb); mb 2209 drivers/edac/sb_edac.c gb, (mb*1000)/1024, mb 1585 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c mb(); mb 252 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c mb(); mb 339 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c mb(); mb 134 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c mb(); mb 1742 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c mb(); mb 117 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c mb(); mb 1291 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c mb(); mb 1476 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c mb(); mb 202 drivers/gpu/drm/ati_pcigart.c mb(); mb 65 drivers/gpu/drm/drm_cache.c mb(); mb 68 drivers/gpu/drm/drm_cache.c mb(); mb 128 drivers/gpu/drm/drm_cache.c mb(); mb 131 drivers/gpu/drm/drm_cache.c mb(); mb 161 drivers/gpu/drm/drm_cache.c mb(); mb 165 drivers/gpu/drm/drm_cache.c mb(); mb 141 drivers/gpu/drm/etnaviv/etnaviv_buffer.c mb(); mb 143 drivers/gpu/drm/etnaviv/etnaviv_buffer.c mb(); mb 62 drivers/gpu/drm/gma500/mmu.c mb(); mb 64 drivers/gpu/drm/gma500/mmu.c mb(); mb 298 drivers/gpu/drm/gma500/mmu.c mb(); mb 303 drivers/gpu/drm/gma500/mmu.c mb(); mb 524 drivers/gpu/drm/gma500/mmu.c mb(); mb 544 drivers/gpu/drm/gma500/mmu.c mb(); mb 82 drivers/gpu/drm/i915/gem/i915_gem_domain.c mb(); mb 143 drivers/gpu/drm/i915/gem/i915_gem_domain.c mb(); mb 961 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c mb(); mb 1007 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c mb(); mb 1104 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c mb(); mb 172 drivers/gpu/drm/i915/gt/intel_engine.h mb(); mb 176 drivers/gpu/drm/i915/gt/intel_engine.h mb(); mb 691 drivers/gpu/drm/i915/gt/intel_lrc.c mb(); mb 47 drivers/gpu/drm/i915/gvt/debugfs.c struct diff_mmio *mb; mb 50 drivers/gpu/drm/i915/gvt/debugfs.c mb = container_of(b, struct diff_mmio, node); mb 51 drivers/gpu/drm/i915/gvt/debugfs.c if (ma->offset < mb->offset) mb 53 drivers/gpu/drm/i915/gvt/debugfs.c else if (ma->offset > mb->offset) mb 372 drivers/gpu/drm/i915/gvt/gvt.h #define MB_TO_BYTES(mb) ((mb) << 20ULL) mb 1167 drivers/gpu/drm/mgag200/mgag200_mode.c u32 mb; mb 1176 drivers/gpu/drm/mgag200/mgag200_mode.c mb = (mode->clock * bpp) / 1000; mb 1177 drivers/gpu/drm/mgag200/mgag200_mode.c if (mb > 3100) mb 1179 drivers/gpu/drm/mgag200/mgag200_mode.c else if (mb > 2600) mb 1181 drivers/gpu/drm/mgag200/mgag200_mode.c else if (mb > 1900) mb 1183 drivers/gpu/drm/mgag200/mgag200_mode.c else if (mb > 1160) mb 1185 drivers/gpu/drm/mgag200/mgag200_mode.c else if (mb > 440) mb 39 drivers/gpu/drm/msm/adreno/a5xx_gpu.c mb(); mb 68 drivers/gpu/drm/msm/adreno/a6xx_gpu.c mb(); mb 502 drivers/gpu/drm/msm/adreno/adreno_gpu.c mb(); mb 248 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c mb(); mb 17 drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c mb(); /* make sure read happened */ mb 295 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c mb(); mb 354 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c mb(); mb 98 drivers/gpu/drm/nouveau/nouveau_dma.c mb(); mb 139 drivers/gpu/drm/nouveau/nouveau_dma.h mb(); \ mb 178 drivers/gpu/drm/omapdrm/omap_crtc.c mb(); mb 123 drivers/gpu/drm/qxl/qxl_cmd.c mb(); mb 150 drivers/gpu/drm/qxl/qxl_cmd.c mb(); mb 530 drivers/gpu/drm/r128/r128_drv.h mb(); \ mb 100 drivers/gpu/drm/radeon/r300.c mb(); mb 183 drivers/gpu/drm/radeon/radeon_gart.c mb(); mb 270 drivers/gpu/drm/radeon/radeon_gart.c mb(); mb 318 drivers/gpu/drm/radeon/radeon_gart.c mb(); mb 180 drivers/gpu/drm/radeon/radeon_ring.c mb(); mb 61 drivers/gpu/drm/savage/savage_bci.c mb(); mb 135 drivers/gpu/drm/savage/savage_bci.c mb(); mb 462 drivers/gpu/drm/savage/savage_bci.c mb(); mb 1041 drivers/gpu/drm/savage/savage_state.c mb(); mb 436 drivers/gpu/drm/ttm/ttm_bo_util.c mb(); mb 92 drivers/gpu/drm/vboxvideo/vbox_hgsmi.c mb(); mb 70 drivers/gpu/drm/via/via_dma.c #define via_flush_write_combine() mb() mb 148 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c mb(); mb 420 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c mb(); mb 440 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c mb(); mb 442 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c mb(); mb 485 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c mb(); mb 491 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c mb(); mb 1092 drivers/hv/hv_balloon.c #define MB2PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) mb 2345 drivers/hv/vmbus_drv.c mb(); mb 165 drivers/hwspinlock/hwspinlock_core.c mb(); mb 282 drivers/hwspinlock/hwspinlock_core.c mb(); mb 67 drivers/hwtracing/coresight/coresight-etm3x.c mb(); mb 82 drivers/hwtracing/coresight/coresight-etm3x.c mb(); mb 94 drivers/hwtracing/coresight/coresight-etm3x.c mb(); mb 103 drivers/hwtracing/coresight/coresight-etm3x.c mb(); mb 114 drivers/hwtracing/coresight/coresight-priv.h mb(); mb 124 drivers/hwtracing/coresight/coresight-priv.h mb(); mb 1516 drivers/ide/pmac.c mb(); mb 2068 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_post_mbox *mb = (struct hns_roce_post_mbox *)desc.data; mb 2072 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mb->in_param_l = cpu_to_le32(in_param); mb 2073 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mb->in_param_h = cpu_to_le32(in_param >> 32); mb 2074 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mb->out_param_l = cpu_to_le32(out_param); mb 2075 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mb->out_param_h = cpu_to_le32(out_param >> 32); mb 2076 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mb->cmd_tag = cpu_to_le32(in_modifier << 8 | op); mb 2077 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mb->token_event_en = cpu_to_le32(event << 16 | token); mb 1125 drivers/infiniband/hw/hns/hns_roce_mr.c mb(); mb 93 drivers/infiniband/hw/i40iw/i40iw_uk.c mb(); /* valid bit is written and loads completed before reading shadow */ mb 196 drivers/infiniband/hw/mthca/mthca_eq.c mb(); mb 1783 drivers/infiniband/hw/qib/qib_iba6120.c mb(); /* prevent compiler re-ordering around actual reset */ mb 2096 drivers/infiniband/hw/qib/qib_iba7220.c mb(); /* prevent compiler reordering around actual reset */ mb 104 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.c mb(); mb 704 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c mb(); mb 957 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c mb(); mb 1024 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c mb(); mb 627 drivers/input/keyboard/atkbd.c mb(); mb 172 drivers/input/keyboard/hilkbd.c mb(); mb 202 drivers/input/keyboard/matrix_keypad.c mb(); mb 1933 drivers/input/misc/ims-pcu.c mb(); /* make sure flag setting is not reordered */ mb 193 drivers/input/misc/xen-kbdfront.c mb(); /* ensure we got ring contents */ mb 208 drivers/input/touchscreen/ads7846.c mb(); mb 220 drivers/input/touchscreen/ads7846.c mb(); mb 354 drivers/input/touchscreen/auo-pixcir-ts.c mb(); mb 383 drivers/input/touchscreen/auo-pixcir-ts.c mb(); mb 572 drivers/input/touchscreen/bu21013_ts.c mb(); mb 604 drivers/input/touchscreen/bu21013_ts.c mb(); mb 230 drivers/input/touchscreen/colibri-vf50-ts.c mb(); mb 189 drivers/input/touchscreen/da9052_tsi.c mb(); mb 204 drivers/input/touchscreen/da9052_tsi.c mb(); mb 305 drivers/input/touchscreen/pixcir_i2c_ts.c mb(); /* Update status before IRQ can fire */ mb 333 drivers/input/touchscreen/pixcir_i2c_ts.c mb(); /* update status before we synchronize irq */ mb 190 drivers/input/touchscreen/tsc2007_core.c mb(); mb 202 drivers/input/touchscreen/tsc2007_core.c mb(); mb 228 drivers/input/touchscreen/ucb1400_ts.c mb(); mb 241 drivers/input/touchscreen/ucb1400_ts.c mb(); mb 753 drivers/iommu/arm-smmu-v3.c mb(); mb 118 drivers/iommu/fsl_pamu.c mb(); mb 121 drivers/iommu/fsl_pamu.c mb(); mb 143 drivers/iommu/fsl_pamu.c mb(); mb 275 drivers/iommu/fsl_pamu.c mb(); mb 300 drivers/iommu/fsl_pamu.c mb(); mb 392 drivers/iommu/fsl_pamu.c mb(); mb 481 drivers/iommu/fsl_pamu.c mb(); mb 744 drivers/iommu/fsl_pamu.c mb(); mb 83 drivers/irqchip/irq-eznps.c mb(); mb 262 drivers/macintosh/macio-adb.c mb(); mb 160 drivers/macintosh/rack-meter.c mb(); mb 224 drivers/macintosh/smu.c mb(); mb 728 drivers/macintosh/via-cuda.c mb(); mb 529 drivers/macintosh/via-pmu.c int mb = pmac_call_feature(PMAC_FTR_GET_MB_INFO, mb 532 drivers/macintosh/via-pmu.c if (mb == PMAC_TYPE_COMET) mb 708 drivers/macintosh/via-pmu.c int mb = pmac_call_feature(PMAC_FTR_GET_MB_INFO, mb 716 drivers/macintosh/via-pmu.c if (mb == PMAC_TYPE_COMET) { mb 1233 drivers/macintosh/via-pmu.c mb(); mb 2090 drivers/macintosh/via-pmu.c mb(); mb 38 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb; mb 54 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); mb 56 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox_chan *chans = mb->chans; mb 61 drivers/mailbox/rockchip-mailbox.c if (msg->rx_size > mb->buf_size) { mb 62 drivers/mailbox/rockchip-mailbox.c dev_err(mb->mbox.dev, "Transmit size over buf size(%d)\n", mb 63 drivers/mailbox/rockchip-mailbox.c mb->buf_size); mb 67 drivers/mailbox/rockchip-mailbox.c dev_dbg(mb->mbox.dev, "Chan[%d]: A2B message, cmd 0x%08x\n", mb 70 drivers/mailbox/rockchip-mailbox.c mb->chans[chans->idx].msg = msg; mb 72 drivers/mailbox/rockchip-mailbox.c writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); mb 73 drivers/mailbox/rockchip-mailbox.c writel_relaxed(msg->rx_size, mb->mbox_base + mb 81 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); mb 84 drivers/mailbox/rockchip-mailbox.c writel_relaxed((1 << mb->mbox.num_chans) - 1, mb 85 drivers/mailbox/rockchip-mailbox.c mb->mbox_base + MAILBOX_B2A_INTEN); mb 92 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); mb 93 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox_chan *chans = mb->chans; mb 96 drivers/mailbox/rockchip-mailbox.c writel_relaxed(0, mb->mbox_base + MAILBOX_B2A_INTEN); mb 98 drivers/mailbox/rockchip-mailbox.c mb->chans[chans->idx].msg = NULL; mb 110 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = (struct rockchip_mbox *)dev_id; mb 111 drivers/mailbox/rockchip-mailbox.c u32 status = readl_relaxed(mb->mbox_base + MAILBOX_B2A_STATUS); mb 113 drivers/mailbox/rockchip-mailbox.c for (idx = 0; idx < mb->mbox.num_chans; idx++) { mb 114 drivers/mailbox/rockchip-mailbox.c if ((status & (1 << idx)) && (irq == mb->chans[idx].irq)) { mb 117 drivers/mailbox/rockchip-mailbox.c mb->mbox_base + MAILBOX_B2A_STATUS); mb 129 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = (struct rockchip_mbox *)dev_id; mb 131 drivers/mailbox/rockchip-mailbox.c for (idx = 0; idx < mb->mbox.num_chans; idx++) { mb 132 drivers/mailbox/rockchip-mailbox.c if (irq != mb->chans[idx].irq) mb 135 drivers/mailbox/rockchip-mailbox.c msg = mb->chans[idx].msg; mb 137 drivers/mailbox/rockchip-mailbox.c dev_err(mb->mbox.dev, mb 142 drivers/mailbox/rockchip-mailbox.c mbox_chan_received_data(&mb->mbox.chans[idx], msg); mb 143 drivers/mailbox/rockchip-mailbox.c mb->chans[idx].msg = NULL; mb 145 drivers/mailbox/rockchip-mailbox.c dev_dbg(mb->mbox.dev, "Chan[%d]: B2A message, cmd 0x%08x\n", mb 166 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb; mb 178 drivers/mailbox/rockchip-mailbox.c mb = devm_kzalloc(&pdev->dev, sizeof(*mb), GFP_KERNEL); mb 179 drivers/mailbox/rockchip-mailbox.c if (!mb) mb 182 drivers/mailbox/rockchip-mailbox.c mb->chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, mb 183 drivers/mailbox/rockchip-mailbox.c sizeof(*mb->chans), GFP_KERNEL); mb 184 drivers/mailbox/rockchip-mailbox.c if (!mb->chans) mb 187 drivers/mailbox/rockchip-mailbox.c mb->mbox.chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, mb 188 drivers/mailbox/rockchip-mailbox.c sizeof(*mb->mbox.chans), GFP_KERNEL); mb 189 drivers/mailbox/rockchip-mailbox.c if (!mb->mbox.chans) mb 192 drivers/mailbox/rockchip-mailbox.c platform_set_drvdata(pdev, mb); mb 194 drivers/mailbox/rockchip-mailbox.c mb->mbox.dev = &pdev->dev; mb 195 drivers/mailbox/rockchip-mailbox.c mb->mbox.num_chans = drv_data->num_chans; mb 196 drivers/mailbox/rockchip-mailbox.c mb->mbox.ops = &rockchip_mbox_chan_ops; mb 197 drivers/mailbox/rockchip-mailbox.c mb->mbox.txdone_irq = true; mb 203 drivers/mailbox/rockchip-mailbox.c mb->mbox_base = devm_ioremap_resource(&pdev->dev, res); mb 204 drivers/mailbox/rockchip-mailbox.c if (IS_ERR(mb->mbox_base)) mb 205 drivers/mailbox/rockchip-mailbox.c return PTR_ERR(mb->mbox_base); mb 208 drivers/mailbox/rockchip-mailbox.c mb->buf_size = (size_t)resource_size(res) / (drv_data->num_chans * 2); mb 210 drivers/mailbox/rockchip-mailbox.c mb->pclk = devm_clk_get(&pdev->dev, "pclk_mailbox"); mb 211 drivers/mailbox/rockchip-mailbox.c if (IS_ERR(mb->pclk)) { mb 212 drivers/mailbox/rockchip-mailbox.c ret = PTR_ERR(mb->pclk); mb 218 drivers/mailbox/rockchip-mailbox.c ret = clk_prepare_enable(mb->pclk); mb 224 drivers/mailbox/rockchip-mailbox.c for (i = 0; i < mb->mbox.num_chans; i++) { mb 232 drivers/mailbox/rockchip-mailbox.c dev_name(&pdev->dev), mb); mb 236 drivers/mailbox/rockchip-mailbox.c mb->chans[i].idx = i; mb 237 drivers/mailbox/rockchip-mailbox.c mb->chans[i].irq = irq; mb 238 drivers/mailbox/rockchip-mailbox.c mb->chans[i].mb = mb; mb 239 drivers/mailbox/rockchip-mailbox.c mb->chans[i].msg = NULL; mb 242 drivers/mailbox/rockchip-mailbox.c ret = devm_mbox_controller_register(&pdev->dev, &mb->mbox); mb 216 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = &hsp->mailboxes[bit]; mb 218 drivers/mailbox/tegra-hsp.c if (mb->producer) { mb 228 drivers/mailbox/tegra-hsp.c hsp->mask &= ~BIT(HSP_INT_EMPTY_SHIFT + mb->index); mb 234 drivers/mailbox/tegra-hsp.c mbox_chan_txdone(mb->channel.chan, 0); mb 242 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = &hsp->mailboxes[bit]; mb 244 drivers/mailbox/tegra-hsp.c if (!mb->producer) { mb 245 drivers/mailbox/tegra-hsp.c value = tegra_hsp_channel_readl(&mb->channel, mb 249 drivers/mailbox/tegra-hsp.c mbox_chan_received_data(mb->channel.chan, msg); mb 260 drivers/mailbox/tegra-hsp.c tegra_hsp_channel_writel(&mb->channel, 0x0, mb 368 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = chan->con_priv; mb 369 drivers/mailbox/tegra-hsp.c struct tegra_hsp *hsp = mb->channel.hsp; mb 373 drivers/mailbox/tegra-hsp.c if (WARN_ON(!mb->producer)) mb 380 drivers/mailbox/tegra-hsp.c tegra_hsp_channel_writel(&mb->channel, value, HSP_SM_SHRD_MBOX); mb 385 drivers/mailbox/tegra-hsp.c hsp->mask |= BIT(HSP_INT_EMPTY_SHIFT + mb->index); mb 396 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = chan->con_priv; mb 397 drivers/mailbox/tegra-hsp.c struct tegra_hsp_channel *ch = &mb->channel; mb 417 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = chan->con_priv; mb 418 drivers/mailbox/tegra-hsp.c struct tegra_hsp_channel *ch = &mb->channel; mb 419 drivers/mailbox/tegra-hsp.c struct tegra_hsp *hsp = mb->channel.hsp; mb 437 drivers/mailbox/tegra-hsp.c if (mb->producer) mb 438 drivers/mailbox/tegra-hsp.c hsp->mask &= ~BIT(HSP_INT_EMPTY_SHIFT + mb->index); mb 440 drivers/mailbox/tegra-hsp.c hsp->mask |= BIT(HSP_INT_FULL_SHIFT + mb->index); mb 447 drivers/mailbox/tegra-hsp.c if (mb->producer) mb 460 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = chan->con_priv; mb 461 drivers/mailbox/tegra-hsp.c struct tegra_hsp_channel *ch = &mb->channel; mb 462 drivers/mailbox/tegra-hsp.c struct tegra_hsp *hsp = mb->channel.hsp; mb 466 drivers/mailbox/tegra-hsp.c if (mb->producer) mb 476 drivers/mailbox/tegra-hsp.c if (mb->producer) mb 477 drivers/mailbox/tegra-hsp.c hsp->mask &= ~BIT(HSP_INT_EMPTY_SHIFT + mb->index); mb 479 drivers/mailbox/tegra-hsp.c hsp->mask &= ~BIT(HSP_INT_FULL_SHIFT + mb->index); mb 537 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb; mb 545 drivers/mailbox/tegra-hsp.c mb = &hsp->mailboxes[index]; mb 548 drivers/mailbox/tegra-hsp.c mb->producer = false; mb 550 drivers/mailbox/tegra-hsp.c mb->producer = true; mb 552 drivers/mailbox/tegra-hsp.c return mb->channel.chan; mb 582 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = &hsp->mailboxes[i]; mb 584 drivers/mailbox/tegra-hsp.c mb->index = i; mb 586 drivers/mailbox/tegra-hsp.c mb->channel.hsp = hsp; mb 587 drivers/mailbox/tegra-hsp.c mb->channel.regs = hsp->regs + SZ_64K + i * SZ_32K; mb 588 drivers/mailbox/tegra-hsp.c mb->channel.chan = &hsp->mbox_sm.chans[i]; mb 589 drivers/mailbox/tegra-hsp.c mb->channel.chan->con_priv = mb; mb 787 drivers/mailbox/tegra-hsp.c struct tegra_hsp_mailbox *mb = &hsp->mailboxes[i]; mb 789 drivers/mailbox/tegra-hsp.c if (mb->channel.chan->cl) mb 790 drivers/mailbox/tegra-hsp.c tegra_hsp_mailbox_startup(mb->channel.chan); mb 1737 drivers/md/raid5-cache.c struct r5l_meta_block *mb; mb 1745 drivers/md/raid5-cache.c mb = page_address(page); mb 1746 drivers/md/raid5-cache.c stored_crc = le32_to_cpu(mb->checksum); mb 1747 drivers/md/raid5-cache.c mb->checksum = 0; mb 1749 drivers/md/raid5-cache.c if (le32_to_cpu(mb->magic) != R5LOG_MAGIC || mb 1750 drivers/md/raid5-cache.c le64_to_cpu(mb->seq) != ctx->seq || mb 1751 drivers/md/raid5-cache.c mb->version != R5LOG_VERSION || mb 1752 drivers/md/raid5-cache.c le64_to_cpu(mb->position) != ctx->pos) mb 1755 drivers/md/raid5-cache.c crc = crc32c_le(log->uuid_checksum, mb, PAGE_SIZE); mb 1759 drivers/md/raid5-cache.c if (le32_to_cpu(mb->meta_size) > PAGE_SIZE) mb 1772 drivers/md/raid5-cache.c struct r5l_meta_block *mb; mb 1774 drivers/md/raid5-cache.c mb = page_address(page); mb 1775 drivers/md/raid5-cache.c clear_page(mb); mb 1776 drivers/md/raid5-cache.c mb->magic = cpu_to_le32(R5LOG_MAGIC); mb 1777 drivers/md/raid5-cache.c mb->version = R5LOG_VERSION; mb 1778 drivers/md/raid5-cache.c mb->meta_size = cpu_to_le32(sizeof(struct r5l_meta_block)); mb 1779 drivers/md/raid5-cache.c mb->seq = cpu_to_le64(seq); mb 1780 drivers/md/raid5-cache.c mb->position = cpu_to_le64(pos); mb 1787 drivers/md/raid5-cache.c struct r5l_meta_block *mb; mb 1793 drivers/md/raid5-cache.c mb = page_address(page); mb 1794 drivers/md/raid5-cache.c mb->checksum = cpu_to_le32(crc32c_le(log->uuid_checksum, mb 1795 drivers/md/raid5-cache.c mb, PAGE_SIZE)); mb 2010 drivers/md/raid5-cache.c struct r5l_meta_block *mb = page_address(ctx->meta_page); mb 2021 drivers/md/raid5-cache.c while (mb_offset < le32_to_cpu(mb->meta_size)) { mb 2022 drivers/md/raid5-cache.c payload = (void *)mb + mb_offset; mb 2023 drivers/md/raid5-cache.c payload_flush = (void *)mb + mb_offset; mb 2084 drivers/md/raid5-cache.c struct r5l_meta_block *mb; mb 2104 drivers/md/raid5-cache.c mb = page_address(ctx->meta_page); mb 2108 drivers/md/raid5-cache.c while (mb_offset < le32_to_cpu(mb->meta_size)) { mb 2111 drivers/md/raid5-cache.c payload = (void *)mb + mb_offset; mb 2112 drivers/md/raid5-cache.c payload_flush = (void *)mb + mb_offset; mb 2372 drivers/md/raid5-cache.c struct r5l_meta_block *mb; mb 2380 drivers/md/raid5-cache.c mb = page_address(page); mb 2381 drivers/md/raid5-cache.c offset = le32_to_cpu(mb->meta_size); mb 2390 drivers/md/raid5-cache.c payload = (void *)mb + offset; mb 2410 drivers/md/raid5-cache.c mb->meta_size = cpu_to_le32(offset); mb 2411 drivers/md/raid5-cache.c mb->checksum = cpu_to_le32(crc32c_le(log->uuid_checksum, mb 2412 drivers/md/raid5-cache.c mb, PAGE_SIZE)); mb 2962 drivers/md/raid5-cache.c struct r5l_meta_block *mb; mb 2979 drivers/md/raid5-cache.c mb = page_address(page); mb 2981 drivers/md/raid5-cache.c if (le32_to_cpu(mb->magic) != R5LOG_MAGIC || mb 2982 drivers/md/raid5-cache.c mb->version != R5LOG_VERSION) { mb 2986 drivers/md/raid5-cache.c stored_crc = le32_to_cpu(mb->checksum); mb 2987 drivers/md/raid5-cache.c mb->checksum = 0; mb 2988 drivers/md/raid5-cache.c expected_crc = crc32c_le(log->uuid_checksum, mb, PAGE_SIZE); mb 2993 drivers/md/raid5-cache.c if (le64_to_cpu(mb->position) != cp) { mb 3009 drivers/md/raid5-cache.c log->last_cp_seq = le64_to_cpu(mb->seq); mb 234 drivers/media/dvb-core/dmxdev.c mb(); mb 1018 drivers/media/dvb-core/dvb_ca_en50221.c mb(); mb 1896 drivers/media/dvb-core/dvb_ca_en50221.c mb(); mb 793 drivers/media/dvb-core/dvb_frontend.c mb(); mb 809 drivers/media/dvb-core/dvb_frontend.c mb(); mb 871 drivers/media/dvb-core/dvb_frontend.c mb(); mb 2862 drivers/media/dvb-core/dvb_frontend.c mb(); mb 1014 drivers/media/dvb-frontends/dib9000.c u16 mb[10]; mb 1022 drivers/media/dvb-frontends/dib9000.c mb[0] = (u16) address; mb 1023 drivers/media/dvb-frontends/dib9000.c mb[1] = len / 2; mb 1024 drivers/media/dvb-frontends/dib9000.c dib9000_mbx_send_attr(state, OUT_MSG_BRIDGE_APB_R, mb, 2, attribute); mb 1025 drivers/media/dvb-frontends/dib9000.c switch (dib9000_mbx_get_message_attr(state, IN_MSG_END_BRIDGE_APB_RW, mb, &s, attribute)) { mb 1029 drivers/media/dvb-frontends/dib9000.c b[i * 2] = (mb[i + 1] >> 8) & 0xff; mb 1030 drivers/media/dvb-frontends/dib9000.c b[i * 2 + 1] = (mb[i + 1]) & 0xff; mb 1041 drivers/media/dvb-frontends/dib9000.c u16 mb[10]; mb 1052 drivers/media/dvb-frontends/dib9000.c mb[0] = (u16)address; mb 1054 drivers/media/dvb-frontends/dib9000.c mb[1 + i / 2] = b[i] << 8 | b[i + 1]; mb 1056 drivers/media/dvb-frontends/dib9000.c mb[1 + len / 2] = b[len - 1] << 8; mb 1058 drivers/media/dvb-frontends/dib9000.c dib9000_mbx_send_attr(state, OUT_MSG_BRIDGE_APB_W, mb, (3 + len) / 2, attribute); mb 1059 drivers/media/dvb-frontends/dib9000.c return dib9000_mbx_get_message_attr(state, IN_MSG_END_BRIDGE_APB_RW, mb, &s, attribute) == 1 ? 0 : -EINVAL; mb 352 drivers/media/pci/cx18/cx18-driver.h struct cx18_mailbox mb; mb 105 drivers/media/pci/cx18/cx18-mailbox.c static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) mb 113 drivers/media/pci/cx18/cx18-mailbox.c name, mb->request, mb->ack, mb->cmd, mb->error, mb 114 drivers/media/pci/cx18/cx18-mailbox.c u32arr2hex(mb->args, MAX_MB_ARGUMENTS, argstr)); mb 233 drivers/media/pci/cx18/cx18-mailbox.c struct cx18_mailbox *mb; mb 239 drivers/media/pci/cx18/cx18-mailbox.c mb = &order->mb; mb 240 drivers/media/pci/cx18/cx18-mailbox.c handle = mb->args[0]; mb 247 drivers/media/pci/cx18/cx18-mailbox.c "stale" : "good", mb->request); mb 251 drivers/media/pci/cx18/cx18-mailbox.c mdl_ack_count = mb->args[2]; mb 280 drivers/media/pci/cx18/cx18-mailbox.c mb->request); mb 328 drivers/media/pci/cx18/cx18-mailbox.c CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str); mb 339 drivers/media/pci/cx18/cx18-mailbox.c switch (order->mb.cmd) { mb 348 drivers/media/pci/cx18/cx18-mailbox.c order->mb.cmd); mb 355 drivers/media/pci/cx18/cx18-mailbox.c order->mb.cmd); mb 398 drivers/media/pci/cx18/cx18-mailbox.c order->rpu, order->mb.cmd); mb 402 drivers/media/pci/cx18/cx18-mailbox.c req = order->mb.request; mb 419 drivers/media/pci/cx18/cx18-mailbox.c struct cx18_mailbox *mb; mb 422 drivers/media/pci/cx18/cx18-mailbox.c mb = &order->mb; mb 423 drivers/media/pci/cx18/cx18-mailbox.c handle = mb->args[0]; mb 424 drivers/media/pci/cx18/cx18-mailbox.c mdl_ack_offset = mb->args[1]; mb 425 drivers/media/pci/cx18/cx18-mailbox.c mdl_ack_count = mb->args[2]; mb 450 drivers/media/pci/cx18/cx18-mailbox.c str_offset = order->mb.args[1]; mb 472 drivers/media/pci/cx18/cx18-mailbox.c switch (order->mb.cmd) { mb 481 drivers/media/pci/cx18/cx18-mailbox.c order->mb.cmd); mb 488 drivers/media/pci/cx18/cx18-mailbox.c order->mb.cmd); mb 522 drivers/media/pci/cx18/cx18-mailbox.c struct cx18_mailbox __iomem *mb; mb 530 drivers/media/pci/cx18/cx18-mailbox.c mb = &cx->scb->cpu2epu_mb; mb 533 drivers/media/pci/cx18/cx18-mailbox.c mb = &cx->scb->apu2epu_mb; mb 547 drivers/media/pci/cx18/cx18-mailbox.c order_mb = &order->mb; mb 551 drivers/media/pci/cx18/cx18-mailbox.c (&order_mb->cmd)[i] = cx18_readl(cx, &mb->cmd + i); mb 555 drivers/media/pci/cx18/cx18-mailbox.c (&order_mb->request)[i] = cx18_readl(cx, &mb->request + i); mb 584 drivers/media/pci/cx18/cx18-mailbox.c struct cx18_mailbox __iomem *mb; mb 614 drivers/media/pci/cx18/cx18-mailbox.c mb = &cx->scb->epu2apu_mb; mb 620 drivers/media/pci/cx18/cx18-mailbox.c mb = &cx->scb->epu2cpu_mb; mb 638 drivers/media/pci/cx18/cx18-mailbox.c req = cx18_readl(cx, &mb->request); mb 641 drivers/media/pci/cx18/cx18-mailbox.c (ack = cx18_readl(cx, &mb->ack)) == req, mb 645 drivers/media/pci/cx18/cx18-mailbox.c cx18_writel(cx, req, &mb->ack); mb 655 drivers/media/pci/cx18/cx18-mailbox.c cx18_writel(cx, cmd, &mb->cmd); mb 657 drivers/media/pci/cx18/cx18-mailbox.c cx18_writel(cx, data[i], &mb->args[i]); mb 658 drivers/media/pci/cx18/cx18-mailbox.c cx18_writel(cx, 0, &mb->error); mb 659 drivers/media/pci/cx18/cx18-mailbox.c cx18_writel(cx, req, &mb->request); mb 660 drivers/media/pci/cx18/cx18-mailbox.c cx18_writel(cx, req - 1, &mb->ack); /* ensure ack & req are distinct */ mb 675 drivers/media/pci/cx18/cx18-mailbox.c ack = cx18_readl(cx, &mb->ack); mb 679 drivers/media/pci/cx18/cx18-mailbox.c ack = cx18_readl(cx, &mb->ack); mb 710 drivers/media/pci/cx18/cx18-mailbox.c data[i] = cx18_readl(cx, &mb->args[i]); mb 711 drivers/media/pci/cx18/cx18-mailbox.c err = cx18_readl(cx, &mb->error); mb 131 drivers/media/pci/ivtv/ivtv-mailbox.c static int try_mailbox(struct ivtv *itv, struct ivtv_mailbox_data *mbdata, int mb) mb 133 drivers/media/pci/ivtv/ivtv-mailbox.c u32 flags = readl(&mbdata->mbox[mb].flags); mb 137 drivers/media/pci/ivtv/ivtv-mailbox.c if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { mb 138 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(IVTV_MBOX_DRIVER_BUSY, &mbdata->mbox[mb].flags); mb 149 drivers/media/pci/ivtv/ivtv-mailbox.c int i, mb; mb 160 drivers/media/pci/ivtv/ivtv-mailbox.c for (mb = 1; mb <= max_mbox; mb++) mb 161 drivers/media/pci/ivtv/ivtv-mailbox.c if (try_mailbox(itv, mbdata, mb)) mb 162 drivers/media/pci/ivtv/ivtv-mailbox.c return mb; mb 205 drivers/media/pci/ivtv/ivtv-mailbox.c int flags, mb, i; mb 246 drivers/media/pci/ivtv/ivtv-mailbox.c mb = i % (mbdata->max_mbox + 1); mb 247 drivers/media/pci/ivtv/ivtv-mailbox.c if (try_mailbox(itv, mbdata, mb)) { mb 248 drivers/media/pci/ivtv/ivtv-mailbox.c write_mailbox(&mbdata->mbox[mb], cmd, args, data); mb 249 drivers/media/pci/ivtv/ivtv-mailbox.c clear_bit(mb, &mbdata->busy); mb 253 drivers/media/pci/ivtv/ivtv-mailbox.c api_info[cmd].name, mb, readl(&mbdata->mbox[mb].flags)); mb 263 drivers/media/pci/ivtv/ivtv-mailbox.c mb = get_mailbox(itv, mbdata, flags); mb 264 drivers/media/pci/ivtv/ivtv-mailbox.c if (mb < 0) { mb 269 drivers/media/pci/ivtv/ivtv-mailbox.c mbox = &mbdata->mbox[mb]; mb 276 drivers/media/pci/ivtv/ivtv-mailbox.c clear_bit(mb, &mbdata->busy); mb 295 drivers/media/pci/ivtv/ivtv-mailbox.c clear_bit(mb, &mbdata->busy); mb 311 drivers/media/pci/ivtv/ivtv-mailbox.c clear_bit(mb, &mbdata->busy); mb 358 drivers/media/pci/ivtv/ivtv-mailbox.c void ivtv_api_get_data(struct ivtv_mailbox_data *mbdata, int mb, mb 361 drivers/media/pci/ivtv/ivtv-mailbox.c volatile u32 __iomem *p = mbdata->mbox[mb].data; mb 15 drivers/media/pci/ivtv/ivtv-mailbox.h void ivtv_api_get_data(struct ivtv_mailbox_data *mbdata, int mb, mb 300 drivers/media/platform/exynos4-is/fimc-is.h mb(); mb 1006 drivers/media/platform/exynos4-is/fimc-lite.c mb(); mb 441 drivers/media/platform/qcom/camss/camss-ispif.c mb(); mb 171 drivers/media/platform/qcom/venus/firmware.c mb(); mb 227 drivers/media/platform/qcom/venus/hfi_venus.c mb(); mb 318 drivers/media/platform/qcom/venus/hfi_venus.c mb(); mb 704 drivers/media/platform/s5p-mfc/s5p_mfc_common.h unsigned int mb; mb 737 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c writel(ctx->slice_size.mb, mfc_regs->e_mslice_size_mb); mb 782 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c ctx->slice_size.mb = p->slice_mb; mb 536 drivers/media/radio/si470x/radio-si470x-usb.c mb(); mb 693 drivers/media/tuners/mt2063.c u32 ma, mb, mc, md, me, mf; mb 762 drivers/media/tuners/mt2063.c mb = (n * ((f_LO1 + hgcs) / gc_Scale) + mb 764 drivers/media/tuners/mt2063.c if (ma != mb) { mb 1427 drivers/media/usb/go7007/go7007-fw.c int ret, mb, i, addr, cnt = 0; mb 1456 drivers/media/usb/go7007/go7007-fw.c for (mb = 0; mb < 1624; ++mb) { mb 1458 drivers/media/usb/go7007/go7007-fw.c pack[i * 2 + 3] |= go->modet_map[mb]; mb 1459 drivers/media/usb/go7007/go7007-fw.c if (mb % 8 != 7) mb 1463 drivers/media/usb/go7007/go7007-fw.c if (i == 10 || mb == 1623) { mb 179 drivers/media/usb/usbvision/usbvision.h #define YUV_TO_RGB_BY_THE_BOOK(my, mu, mv, mr, mg, mb) { \ mb 188 drivers/media/usb/usbvision/usbvision.h mb = LIMIT_RGB(mm_b); \ mb 474 drivers/message/fusion/mptbase.c mb(); mb 500 drivers/message/fusion/mptbase.c mb(); mb 570 drivers/message/fusion/mptbase.c mb(); mb 124 drivers/misc/cxl/fault.c mb(); /* Order seg table write to TFC MMIO write */ mb 71 drivers/misc/cxl/main.c mb(); mb 1107 drivers/misc/habanalabs/habanalabs.h mb(); \ mb 94 drivers/misc/habanalabs/mmu.c mb(); mb 320 drivers/misc/mic/host/mic_x100.c mb(); mb 88 drivers/misc/mic/scif/scif_rb.c mb(); mb 203 drivers/misc/mic/scif/scif_rb.c mb(); mb 549 drivers/misc/ocxl/link.c mb(); mb 597 drivers/misc/ocxl/link.c mb(); mb 659 drivers/misc/ocxl/link.c mb(); mb 343 drivers/misc/sgi-gru/gru_instructions.h mb(); mb 346 drivers/misc/sgi-gru/grukservices.c mb(); mb 504 drivers/misc/sgi-gru/grumain.c mb(); mb 530 drivers/misc/sgi-gru/grumain.c mb(); /* Let the CL flush complete */ mb 77 drivers/misc/vexpress-syscfg.c mb(); mb 177 drivers/mmc/host/mmci_qcom_dml.c mb(); mb 1622 drivers/mmc/host/sdhci-msm.c mb(); mb 1931 drivers/mmc/host/sdhci-msm.c mb(); mb 1336 drivers/mtd/nand/raw/brcmnand/brcmnand.c mb(); /* flush previous writes */ mb 1681 drivers/mtd/nand/raw/brcmnand/brcmnand.c mb(); /* flush previous writes */ mb 290 drivers/net/can/at91_can.c unsigned int mb, enum at91_mb_mode mode, int prio) mb 292 drivers/net/can/at91_can.c at91_write(priv, AT91_MMR(mb), (mode << 24) | (prio << 16)); mb 295 drivers/net/can/at91_can.c static inline void set_mb_mode(const struct at91_priv *priv, unsigned int mb, mb 298 drivers/net/can/at91_can.c set_mb_mode_prio(priv, mb, mode, 0); mb 454 drivers/net/can/at91_can.c unsigned int mb, prio; mb 460 drivers/net/can/at91_can.c mb = get_tx_next_mb(priv); mb 463 drivers/net/can/at91_can.c if (unlikely(!(at91_read(priv, AT91_MSR(mb)) & AT91_MSR_MRDY))) { mb 474 drivers/net/can/at91_can.c set_mb_mode(priv, mb, AT91_MB_MODE_DISABLED); mb 475 drivers/net/can/at91_can.c at91_write(priv, AT91_MID(mb), reg_mid); mb 476 drivers/net/can/at91_can.c set_mb_mode_prio(priv, mb, AT91_MB_MODE_TX, prio); mb 478 drivers/net/can/at91_can.c at91_write(priv, AT91_MDL(mb), *(u32 *)(cf->data + 0)); mb 479 drivers/net/can/at91_can.c at91_write(priv, AT91_MDH(mb), *(u32 *)(cf->data + 4)); mb 482 drivers/net/can/at91_can.c at91_write(priv, AT91_MCR(mb), reg_mcr); mb 487 drivers/net/can/at91_can.c can_put_echo_skb(skb, dev, mb - get_mb_tx_first(priv)); mb 504 drivers/net/can/at91_can.c at91_write(priv, AT91_IER, 1 << mb); mb 529 drivers/net/can/at91_can.c unsigned int mb) mb 531 drivers/net/can/at91_can.c u32 mask = 1 << mb; mb 570 drivers/net/can/at91_can.c static void at91_read_mb(struct net_device *dev, unsigned int mb, mb 576 drivers/net/can/at91_can.c reg_mid = at91_read(priv, AT91_MID(mb)); mb 582 drivers/net/can/at91_can.c reg_msr = at91_read(priv, AT91_MSR(mb)); mb 588 drivers/net/can/at91_can.c *(u32 *)(cf->data + 0) = at91_read(priv, AT91_MDL(mb)); mb 589 drivers/net/can/at91_can.c *(u32 *)(cf->data + 4) = at91_read(priv, AT91_MDH(mb)); mb 593 drivers/net/can/at91_can.c at91_write(priv, AT91_MID(mb), AT91_MID_MIDE); mb 595 drivers/net/can/at91_can.c if (unlikely(mb == get_mb_rx_last(priv) && reg_msr & AT91_MSR_MMI)) mb 607 drivers/net/can/at91_can.c static void at91_read_msg(struct net_device *dev, unsigned int mb) mb 619 drivers/net/can/at91_can.c at91_read_mb(dev, mb, cf); mb 682 drivers/net/can/at91_can.c unsigned int mb; mb 691 drivers/net/can/at91_can.c for (mb = find_next_bit(addr, get_mb_tx_first(priv), priv->rx_next); mb 692 drivers/net/can/at91_can.c mb < get_mb_tx_first(priv) && quota > 0; mb 694 drivers/net/can/at91_can.c mb = find_next_bit(addr, get_mb_tx_first(priv), ++priv->rx_next)) { mb 695 drivers/net/can/at91_can.c at91_read_msg(dev, mb); mb 698 drivers/net/can/at91_can.c if (mb == get_mb_rx_low_last(priv)) mb 701 drivers/net/can/at91_can.c else if (mb > get_mb_rx_low_last(priv)) mb 703 drivers/net/can/at91_can.c at91_activate_rx_mb(priv, mb); mb 711 drivers/net/can/at91_can.c mb > get_mb_rx_last(priv)) { mb 835 drivers/net/can/at91_can.c unsigned int mb; mb 840 drivers/net/can/at91_can.c mb = get_tx_echo_mb(priv); mb 843 drivers/net/can/at91_can.c if (!(reg_sr & (1 << mb))) mb 847 drivers/net/can/at91_can.c at91_write(priv, AT91_IDR, 1 << mb); mb 855 drivers/net/can/at91_can.c reg_msr = at91_read(priv, AT91_MSR(mb)); mb 859 drivers/net/can/at91_can.c can_get_echo_skb(dev, mb - get_mb_tx_first(priv)); mb 229 drivers/net/can/flexcan.c u8 mb[2][512]; /* 0x80 */ mb 382 drivers/net/can/flexcan.c bank_size = sizeof(priv->regs->mb[0]) / priv->mb_size; mb 389 drivers/net/can/flexcan.c (&priv->regs->mb[bank][priv->mb_size * mb_index]); mb 793 drivers/net/can/flexcan.c struct flexcan_mb __iomem *mb; mb 797 drivers/net/can/flexcan.c mb = flexcan_get_mb(priv, n); mb 803 drivers/net/can/flexcan.c reg_ctrl = priv->read(&mb->can_ctrl); mb 822 drivers/net/can/flexcan.c reg_ctrl = priv->read(&mb->can_ctrl); mb 828 drivers/net/can/flexcan.c reg_id = priv->read(&mb->can_id); mb 839 drivers/net/can/flexcan.c __be32 data = cpu_to_be32(priv->read(&mb->data[i / sizeof(u32)])); mb 1045 drivers/net/can/flexcan.c struct flexcan_mb __iomem *mb; mb 1147 drivers/net/can/flexcan.c mb = flexcan_get_mb(priv, i); mb 1149 drivers/net/can/flexcan.c &mb->can_ctrl); mb 1154 drivers/net/can/flexcan.c mb = flexcan_get_mb(priv, i); mb 1156 drivers/net/can/flexcan.c &mb->can_ctrl); mb 1276 drivers/net/can/flexcan.c priv->mb_count = (sizeof(priv->regs->mb[0]) / priv->mb_size) + mb 1277 drivers/net/can/flexcan.c (sizeof(priv->regs->mb[1]) / priv->mb_size); mb 1227 drivers/net/can/grcan.c mb(); mb 53 drivers/net/can/rcar/rcar_can.c struct rcar_can_mbox_regs mb[RCAR_CAN_N_MBX]; /* Mailbox registers */ mb 612 drivers/net/can/rcar/rcar_can.c &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].data[i]); mb 615 drivers/net/can/rcar/rcar_can.c writel(data, &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].id); mb 617 drivers/net/can/rcar/rcar_can.c writeb(cf->can_dlc, &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].dlc); mb 655 drivers/net/can/rcar/rcar_can.c data = readl(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].id); mb 661 drivers/net/can/rcar/rcar_can.c dlc = readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].dlc); mb 668 drivers/net/can/rcar/rcar_can.c readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].data[dlc]); mb 186 drivers/net/can/softing/softing_fw.c mb(); mb 201 drivers/net/can/softing/softing_main.c mb(); mb 494 drivers/net/can/softing/softing_main.c mb(); mb 628 drivers/net/ethernet/aeroflex/greth.c mb(); mb 693 drivers/net/ethernet/aeroflex/greth.c mb(); mb 753 drivers/net/ethernet/aeroflex/greth.c mb(); mb 870 drivers/net/ethernet/aeroflex/greth.c mb(); mb 2959 drivers/net/ethernet/alteon/acenic.c mb(); mb 2964 drivers/net/ethernet/alteon/acenic.c mb(); mb 2969 drivers/net/ethernet/alteon/acenic.c mb(); mb 2974 drivers/net/ethernet/alteon/acenic.c mb(); mb 2989 drivers/net/ethernet/alteon/acenic.c mb(); mb 2999 drivers/net/ethernet/alteon/acenic.c mb(); mb 3005 drivers/net/ethernet/alteon/acenic.c mb(); mb 3010 drivers/net/ethernet/alteon/acenic.c mb(); mb 3024 drivers/net/ethernet/alteon/acenic.c mb(); mb 3029 drivers/net/ethernet/alteon/acenic.c mb(); mb 3034 drivers/net/ethernet/alteon/acenic.c mb(); mb 3037 drivers/net/ethernet/alteon/acenic.c mb(); mb 3052 drivers/net/ethernet/alteon/acenic.c mb(); mb 3057 drivers/net/ethernet/alteon/acenic.c mb(); mb 3062 drivers/net/ethernet/alteon/acenic.c mb(); mb 3067 drivers/net/ethernet/alteon/acenic.c mb(); mb 3071 drivers/net/ethernet/alteon/acenic.c mb(); mb 3137 drivers/net/ethernet/alteon/acenic.c mb(); mb 3141 drivers/net/ethernet/alteon/acenic.c mb(); mb 3147 drivers/net/ethernet/alteon/acenic.c mb(); mb 3153 drivers/net/ethernet/alteon/acenic.c mb(); mb 3158 drivers/net/ethernet/alteon/acenic.c mb(); mb 3166 drivers/net/ethernet/alteon/acenic.c mb(); mb 3173 drivers/net/ethernet/alteon/acenic.c mb(); mb 2065 drivers/net/ethernet/amazon/ena/ena_com.c mb(); mb 320 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 326 drivers/net/ethernet/apple/mace.c out_8(&mb->biucc, SWRST); mb 327 drivers/net/ethernet/apple/mace.c if (in_8(&mb->biucc) & SWRST) { mb 338 drivers/net/ethernet/apple/mace.c out_8(&mb->imr, 0xff); /* disable all intrs for now */ mb 339 drivers/net/ethernet/apple/mace.c i = in_8(&mb->ir); mb 340 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, 0); /* turn off tx, rx */ mb 342 drivers/net/ethernet/apple/mace.c out_8(&mb->biucc, XMTSP_64); mb 343 drivers/net/ethernet/apple/mace.c out_8(&mb->utr, RTRD); mb 344 drivers/net/ethernet/apple/mace.c out_8(&mb->fifocc, RCVFW_32 | XMTFW_16 | XMTFWU | RCVFWU | XMTBRST); mb 345 drivers/net/ethernet/apple/mace.c out_8(&mb->xmtfc, AUTO_PAD_XMIT); /* auto-pad short frames */ mb 346 drivers/net/ethernet/apple/mace.c out_8(&mb->rcvfc, 0); mb 353 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, LOGADDR); mb 355 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, ADDRCHG | LOGADDR); mb 356 drivers/net/ethernet/apple/mace.c while ((in_8(&mb->iac) & ADDRCHG) != 0) mb 360 drivers/net/ethernet/apple/mace.c out_8(&mb->ladrf, 0); mb 364 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, 0); mb 367 drivers/net/ethernet/apple/mace.c out_8(&mb->plscc, PORTSEL_AUI + ENPLSIO); mb 369 drivers/net/ethernet/apple/mace.c out_8(&mb->plscc, PORTSEL_GPSI + ENPLSIO); mb 375 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 381 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, PHYADDR); mb 383 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, ADDRCHG | PHYADDR); mb 384 drivers/net/ethernet/apple/mace.c while ((in_8(&mb->iac) & ADDRCHG) != 0) mb 388 drivers/net/ethernet/apple/mace.c out_8(&mb->padr, dev->dev_addr[i] = p[i]); mb 390 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, 0); mb 396 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 404 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, mp->maccc); mb 431 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 491 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, mp->maccc); mb 493 drivers/net/ethernet/apple/mace.c out_8(&mb->imr, RCVINT); mb 501 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 506 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, 0); mb 507 drivers/net/ethernet/apple/mace.c out_8(&mb->imr, 0xff); /* disable all intrs */ mb 587 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 620 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, LOGADDR); mb 622 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, ADDRCHG | LOGADDR); mb 623 drivers/net/ethernet/apple/mace.c while ((in_8(&mb->iac) & ADDRCHG) != 0) mb 627 drivers/net/ethernet/apple/mace.c out_8(&mb->ladrf, multicast_filter[i]); mb 629 drivers/net/ethernet/apple/mace.c out_8(&mb->iac, 0); mb 632 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, mp->maccc); mb 638 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 643 drivers/net/ethernet/apple/mace.c dev->stats.rx_missed_errors += in_8(&mb->mpc); /* reading clears it */ mb 646 drivers/net/ethernet/apple/mace.c dev->stats.rx_length_errors += in_8(&mb->rntpc); /* reading clears it */ mb 661 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 670 drivers/net/ethernet/apple/mace.c intr = in_8(&mb->ir); /* read interrupt register */ mb 671 drivers/net/ethernet/apple/mace.c in_8(&mb->xmtrc); /* get retries */ mb 675 drivers/net/ethernet/apple/mace.c while (in_8(&mb->pr) & XMTSV) { mb 683 drivers/net/ethernet/apple/mace.c intr = in_8(&mb->ir); mb 687 drivers/net/ethernet/apple/mace.c fs = in_8(&mb->xmtfs); mb 689 drivers/net/ethernet/apple/mace.c out_8(&mb->xmtfc, AUTO_PAD_XMIT); mb 699 drivers/net/ethernet/apple/mace.c xcount = (in_8(&mb->fifofc) >> XMTFC_SH) & XMTFC_MASK; mb 712 drivers/net/ethernet/apple/mace.c out_8(&mb->xmtfc, DXMTFCS); mb 714 drivers/net/ethernet/apple/mace.c fs = in_8(&mb->xmtfs); mb 732 drivers/net/ethernet/apple/mace.c x = (in_8(&mb->fifofc) >> XMTFC_SH) & XMTFC_MASK; mb 744 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, in_8(&mb->maccc) & ~ENXMT); mb 745 drivers/net/ethernet/apple/mace.c out_8(&mb->fifocc, in_8(&mb->fifocc) | XMTFWU); mb 747 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, in_8(&mb->maccc) | ENXMT); mb 748 drivers/net/ethernet/apple/mace.c out_8(&mb->xmtfc, AUTO_PAD_XMIT); mb 807 drivers/net/ethernet/apple/mace.c volatile struct mace __iomem *mb = mp->mace; mb 820 drivers/net/ethernet/apple/mace.c mace_handle_misc_intrs(mp, in_8(&mb->ir), dev); mb 825 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, 0); mb 862 drivers/net/ethernet/apple/mace.c out_8(&mb->imr, RCVINT); mb 863 drivers/net/ethernet/apple/mace.c out_8(&mb->maccc, mp->maccc); mb 264 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 270 drivers/net/ethernet/apple/macmace.c mb->biucc = SWRST; mb 271 drivers/net/ethernet/apple/macmace.c if (mb->biucc & SWRST) { mb 282 drivers/net/ethernet/apple/macmace.c mb->maccc = 0; /* turn off tx, rx */ mb 283 drivers/net/ethernet/apple/macmace.c mb->imr = 0xFF; /* disable all intrs for now */ mb 284 drivers/net/ethernet/apple/macmace.c i = mb->ir; mb 286 drivers/net/ethernet/apple/macmace.c mb->biucc = XMTSP_64; mb 287 drivers/net/ethernet/apple/macmace.c mb->utr = RTRD; mb 288 drivers/net/ethernet/apple/macmace.c mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; mb 290 drivers/net/ethernet/apple/macmace.c mb->xmtfc = AUTO_PAD_XMIT; /* auto-pad short frames */ mb 291 drivers/net/ethernet/apple/macmace.c mb->rcvfc = 0; mb 298 drivers/net/ethernet/apple/macmace.c mb->iac = LOGADDR; mb 300 drivers/net/ethernet/apple/macmace.c mb->iac = ADDRCHG | LOGADDR; mb 301 drivers/net/ethernet/apple/macmace.c while ((mb->iac & ADDRCHG) != 0) mb 305 drivers/net/ethernet/apple/macmace.c mb->ladrf = 0; mb 309 drivers/net/ethernet/apple/macmace.c mb->iac = 0; mb 311 drivers/net/ethernet/apple/macmace.c mb->plscc = PORTSEL_AUI; mb 321 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 327 drivers/net/ethernet/apple/macmace.c mb->iac = PHYADDR; mb 329 drivers/net/ethernet/apple/macmace.c mb->iac = ADDRCHG | PHYADDR; mb 330 drivers/net/ethernet/apple/macmace.c while ((mb->iac & ADDRCHG) != 0) mb 334 drivers/net/ethernet/apple/macmace.c mb->padr = dev->dev_addr[i] = p[i]; mb 336 drivers/net/ethernet/apple/macmace.c mb->iac = 0; mb 342 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 348 drivers/net/ethernet/apple/macmace.c maccc = mb->maccc; mb 352 drivers/net/ethernet/apple/macmace.c mb->maccc = maccc; mb 367 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 409 drivers/net/ethernet/apple/macmace.c mb->maccc = ENXMT | ENRCV; mb 411 drivers/net/ethernet/apple/macmace.c mb->imr = RCVINT; mb 430 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 432 drivers/net/ethernet/apple/macmace.c mb->maccc = 0; /* disable rx and tx */ mb 433 drivers/net/ethernet/apple/macmace.c mb->imr = 0xFF; /* disable all irqs */ mb 482 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 489 drivers/net/ethernet/apple/macmace.c maccc = mb->maccc; mb 490 drivers/net/ethernet/apple/macmace.c mb->maccc &= ~PROM; mb 493 drivers/net/ethernet/apple/macmace.c mb->maccc |= PROM; mb 514 drivers/net/ethernet/apple/macmace.c mb->iac = LOGADDR; mb 516 drivers/net/ethernet/apple/macmace.c mb->iac = ADDRCHG | LOGADDR; mb 517 drivers/net/ethernet/apple/macmace.c while ((mb->iac & ADDRCHG) != 0) mb 521 drivers/net/ethernet/apple/macmace.c mb->ladrf = multicast_filter[i]; mb 523 drivers/net/ethernet/apple/macmace.c mb->iac = 0; mb 526 drivers/net/ethernet/apple/macmace.c mb->maccc = maccc; mb 533 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 538 drivers/net/ethernet/apple/macmace.c dev->stats.rx_missed_errors += mb->mpc; /* reading clears it */ mb 541 drivers/net/ethernet/apple/macmace.c dev->stats.rx_length_errors += mb->rntpc; /* reading clears it */ mb 556 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 563 drivers/net/ethernet/apple/macmace.c intr = mb->ir; /* read interrupt register */ mb 567 drivers/net/ethernet/apple/macmace.c fs = mb->xmtfs; mb 587 drivers/net/ethernet/apple/macmace.c if (mb->xmtfs & UFLO) { mb 606 drivers/net/ethernet/apple/macmace.c volatile struct mace *mb = mp->mace; mb 612 drivers/net/ethernet/apple/macmace.c mb->maccc = 0; mb 624 drivers/net/ethernet/apple/macmace.c mb->maccc = ENXMT | ENRCV; mb 626 drivers/net/ethernet/apple/macmace.c mb->imr = RCVINT; mb 3819 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c mb(); mb 6500 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c mb(); mb 6539 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c mb(); mb 212 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mb(); mb 243 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mb(); mb 3061 drivers/net/ethernet/brocade/bna/bfa_ioc.c (struct bfi_flash_write_req *) flash->mb.msg; mb 3078 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_ioc_mbox_queue(flash->ioc, &flash->mb, NULL, NULL); mb 3094 drivers/net/ethernet/brocade/bna/bfa_ioc.c (struct bfi_flash_read_req *) flash->mb.msg; mb 3106 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_ioc_mbox_queue(flash->ioc, &flash->mb, NULL, NULL); mb 3258 drivers/net/ethernet/brocade/bna/bfa_ioc.c (struct bfi_flash_query_req *) flash->mb.msg; mb 3274 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_ioc_mbox_queue(flash->ioc, &flash->mb, NULL, NULL); mb 330 drivers/net/ethernet/brocade/bna/bfa_ioc.h struct bfa_mbox_cmd mb; /* mailbox */ mb 228 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_cmdq_ci_update(struct bfa_msgq_cmdq *cmdq, struct bfi_mbmsg *mb) mb 230 drivers/net/ethernet/brocade/bna/bfa_msgq.c struct bfi_msgq_i2h_db *dbell = (struct bfi_msgq_i2h_db *)mb; mb 265 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_cmdq_copy_req(struct bfa_msgq_cmdq *cmdq, struct bfi_mbmsg *mb) mb 268 drivers/net/ethernet/brocade/bna/bfa_msgq.c (struct bfi_msgq_i2h_cmdq_copy_req *)mb; mb 460 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_rspq_pi_update(struct bfa_msgq_rspq *rspq, struct bfi_mbmsg *mb) mb 462 drivers/net/ethernet/brocade/bna/bfa_msgq.c struct bfi_msgq_i2h_db *dbell = (struct bfi_msgq_i2h_db *)mb; mb 500 drivers/net/ethernet/brocade/bna/bfa_msgq.c struct bfi_mbmsg *mb) mb 505 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c unsigned int mb = pi->adapter->pf; mb 511 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_rxmode(pi->adapter, mb, pi->viid, dev->mtu, -1, -1, -1, mb 517 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_link_l1cfg(pi->adapter, mb, pi->tx_chan, mb 521 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_enable_pi_params(pi->adapter, mb, pi, true, mb 1121 drivers/net/ethernet/dlink/sundance.c mb(); mb 1767 drivers/net/ethernet/ibm/emac/core.c mb(); mb 1859 drivers/net/ethernet/ibm/emac/core.c mb(); mb 217 drivers/net/ethernet/ibm/ibmveth.c mb(); mb 273 drivers/net/ethernet/ibm/ibmveth.c mb(); mb 291 drivers/net/ethernet/ibm/ibmveth.c mb(); mb 389 drivers/net/ethernet/ibm/ibmveth.c mb(); mb 3371 drivers/net/ethernet/ibm/ibmvnic.c mb(); mb 3394 drivers/net/ethernet/ibm/ibmvnic.c mb(); mb 3424 drivers/net/ethernet/ibm/ibmvnic.c mb(); mb 2347 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mb(); mb 300 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c mb(); mb 331 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c mb(); mb 69 drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h mb(); mb 400 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 417 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 516 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 616 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 756 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 781 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 783 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 1169 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 1171 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 1174 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 1441 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 1579 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 2498 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 2531 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 2555 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 2562 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); /* force write every 32 bytes */ mb 2575 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); /* barrier before setting valid flag */ mb 2582 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 2862 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mb(); mb 495 drivers/net/ethernet/natsemi/ns83820.c mb(); mb 858 drivers/net/ethernet/natsemi/ns83820.c mb(); mb 1003 drivers/net/ethernet/natsemi/ns83820.c mb(); mb 1826 drivers/net/ethernet/realtek/8139too.c mb(); mb 250 drivers/net/ethernet/sfc/siena_sriov.c mb(); /* Finish writing source/reading dest before DMA starts */ mb 292 drivers/net/ethernet/sfc/siena_sriov.c mb(); /* Don't write source/read dest before DMA is complete */ mb 1471 drivers/net/ethernet/sgi/ioc3-eth.c mb(); /* make sure all descriptor changes are visible */ mb 816 drivers/net/ethernet/silan/sc92031.c mb(); mb 206 drivers/net/ethernet/sun/sungem.c mb(); mb 220 drivers/net/ethernet/sun/sungem.c mb(); mb 738 drivers/net/ethernet/sun/sungem.c mb(); mb 1112 drivers/net/ethernet/sun/sungem.c mb(); mb 366 drivers/net/fddi/defxx.c mb(); mb 389 drivers/net/fddi/defxx.c mb(); mb 83 drivers/net/fddi/skfp/ess.c static void ess_send_frame(struct s_smc *smc, SMbuf *mb); mb 99 drivers/net/fddi/skfp/ess.c int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, mb 113 drivers/net/fddi/skfp/ess.c int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, mb 203 drivers/net/fddi/skfp/ess.c db->sm_len = mb->sm_len ; mb 204 drivers/net/fddi/skfp/ess.c db->sm_off = mb->sm_off ; mb 476 drivers/net/fddi/skfp/ess.c SMbuf *mb ; mb 483 drivers/net/fddi/skfp/ess.c if (!(mb=smt_build_frame(smc,SMT_RAF,SMT_REPLY, mb 488 drivers/net/fddi/skfp/ess.c if (!(mb=smt_build_frame(smc,SMT_RAF,SMT_REPLY, mb 493 drivers/net/fddi/skfp/ess.c chg = smtod(mb,struct smt_sba_chg *) ; mb 534 drivers/net/fddi/skfp/ess.c ess_send_frame(smc,mb) ; mb 554 drivers/net/fddi/skfp/ess.c SMbuf *mb ; mb 581 drivers/net/fddi/skfp/ess.c if (!(mb=smt_build_frame(smc,SMT_RAF,SMT_REQUEST, mb 584 drivers/net/fddi/skfp/ess.c req = smtod(mb,struct smt_sba_alc_req *) ; mb 656 drivers/net/fddi/skfp/ess.c ess_send_frame(smc,mb) ; mb 659 drivers/net/fddi/skfp/ess.c static void ess_send_frame(struct s_smc *smc, SMbuf *mb) mb 670 drivers/net/fddi/skfp/ess.c smc->ess.sba_reply_pend = mb ; mb 673 drivers/net/fddi/skfp/ess.c smt_free_mbuf(smc,mb) ; mb 681 drivers/net/fddi/skfp/ess.c smt_send_frame(smc,mb,FC_SMT_INFO,0) ; mb 517 drivers/net/fddi/skfp/h/cmtdef.h void smt_received_pack(struct s_smc *smc, SMbuf *mb, int fs); mb 526 drivers/net/fddi/skfp/h/cmtdef.h void smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc); mb 527 drivers/net/fddi/skfp/h/cmtdef.h void smt_free_mbuf(struct s_smc *smc, SMbuf *mb); mb 574 drivers/net/fddi/skfp/h/cmtdef.h void smt_pmf_received_pack(struct s_smc *smc, SMbuf *mb, int local); mb 575 drivers/net/fddi/skfp/h/cmtdef.h void smt_send_frame(struct s_smc *smc, SMbuf *mb, int fc, int local); mb 619 drivers/net/fddi/skfp/h/cmtdef.h int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, mb 95 drivers/net/fddi/skfp/h/hwmtm.h SMbuf mb[MAX_MBUF] ; /* mbuf pool */ mb 74 drivers/net/fddi/skfp/hwmtm.c static void queue_llc_rx(struct s_smc *smc, SMbuf *mb); mb 75 drivers/net/fddi/skfp/hwmtm.c static void smt_to_llc(struct s_smc *smc, SMbuf *mb); mb 78 drivers/net/fddi/skfp/hwmtm.c static void queue_txd_mb(struct s_smc *smc, SMbuf *mb); mb 137 drivers/net/fddi/skfp/hwmtm.c void smt_free_mbuf(struct s_smc *smc, SMbuf *mb); mb 277 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; mb 420 drivers/net/fddi/skfp/hwmtm.c SMbuf *mb ; mb 430 drivers/net/fddi/skfp/hwmtm.c mb = smc->os.hwm.mbuf_pool.mb_start ; mb 433 drivers/net/fddi/skfp/hwmtm.c mb->sm_use_count = 1 ; mb 434 drivers/net/fddi/skfp/hwmtm.c smt_free_mbuf(smc,mb) ; mb 435 drivers/net/fddi/skfp/hwmtm.c mb++ ; mb 438 drivers/net/fddi/skfp/hwmtm.c mb = mb_start ; mb 442 drivers/net/fddi/skfp/hwmtm.c mb->sm_use_count = 1 ; mb 443 drivers/net/fddi/skfp/hwmtm.c smt_free_mbuf(smc,mb) ; mb 444 drivers/net/fddi/skfp/hwmtm.c mb++ ; mb 484 drivers/net/fddi/skfp/hwmtm.c register SMbuf *mb ; mb 487 drivers/net/fddi/skfp/hwmtm.c mb = smc->os.hwm.mbuf_pool.mb_free ; mb 489 drivers/net/fddi/skfp/hwmtm.c mb = mb_free ; mb 491 drivers/net/fddi/skfp/hwmtm.c if (mb) { mb 493 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.mbuf_pool.mb_free = mb->sm_next ; mb 495 drivers/net/fddi/skfp/hwmtm.c mb_free = mb->sm_next ; mb 497 drivers/net/fddi/skfp/hwmtm.c mb->sm_off = 8 ; mb 498 drivers/net/fddi/skfp/hwmtm.c mb->sm_use_count = 1 ; mb 500 drivers/net/fddi/skfp/hwmtm.c DB_GEN(3, "get SMbuf: mb = %p", mb); mb 501 drivers/net/fddi/skfp/hwmtm.c return mb; /* May be NULL */ mb 504 drivers/net/fddi/skfp/hwmtm.c void smt_free_mbuf(struct s_smc *smc, SMbuf *mb) mb 507 drivers/net/fddi/skfp/hwmtm.c if (mb) { mb 508 drivers/net/fddi/skfp/hwmtm.c mb->sm_use_count-- ; mb 509 drivers/net/fddi/skfp/hwmtm.c DB_GEN(3, "free_mbuf: sm_use_count = %d", mb->sm_use_count); mb 515 drivers/net/fddi/skfp/hwmtm.c if (!mb->sm_use_count) { mb 516 drivers/net/fddi/skfp/hwmtm.c DB_GEN(3, "free SMbuf: mb = %p", mb); mb 518 drivers/net/fddi/skfp/hwmtm.c mb->sm_next = smc->os.hwm.mbuf_pool.mb_free ; mb 519 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.mbuf_pool.mb_free = mb ; mb 521 drivers/net/fddi/skfp/hwmtm.c mb->sm_next = mb_free ; mb 522 drivers/net/fddi/skfp/hwmtm.c mb_free = mb ; mb 709 drivers/net/fddi/skfp/hwmtm.c SMbuf *mb ; mb 845 drivers/net/fddi/skfp/hwmtm.c while ((mb = get_llc_rx(smc))) { mb 846 drivers/net/fddi/skfp/hwmtm.c smt_to_llc(smc,mb) ; mb 852 drivers/net/fddi/skfp/hwmtm.c while (!offDepth && (mb = get_llc_rx(smc))) { mb 853 drivers/net/fddi/skfp/hwmtm.c smt_to_llc(smc,mb) ; mb 1051 drivers/net/fddi/skfp/hwmtm.c SMbuf *mb ; mb 1262 drivers/net/fddi/skfp/hwmtm.c if (!(mb = smt_get_mbuf(smc))) { mb 1267 drivers/net/fddi/skfp/hwmtm.c data = smtod(mb,char *) - 1 ; mb 1281 drivers/net/fddi/skfp/hwmtm.c data = smtod(mb,char *) - 1 ; mb 1283 drivers/net/fddi/skfp/hwmtm.c fc = *(char *)mb->sm_data = *data ; mb 1284 drivers/net/fddi/skfp/hwmtm.c mb->sm_len = len - 1 ; /* len - fc */ mb 1305 drivers/net/fddi/skfp/hwmtm.c smt_received_pack(smc,mb,(int)(rfsw>>25)) ; mb 1326 drivers/net/fddi/skfp/hwmtm.c smt_received_pack(smc,mb,(int)(rfsw>>25)) ; mb 1338 drivers/net/fddi/skfp/hwmtm.c smt_free_mbuf(smc,mb) ; mb 1345 drivers/net/fddi/skfp/hwmtm.c smt_free_mbuf(smc,mb) ; mb 1376 drivers/net/fddi/skfp/hwmtm.c static void smt_to_llc(struct s_smc *smc, SMbuf *mb) mb 1381 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.r.len = mb->sm_len ; mb 1382 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.r.mb_pos = smtod(mb,char *) ; mb 1384 drivers/net/fddi/skfp/hwmtm.c (void)mac_drv_rx_init(smc,(int)mb->sm_len,(int)fc, mb 1385 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.r.mb_pos,(int)mb->sm_len) ; mb 1386 drivers/net/fddi/skfp/hwmtm.c smt_free_mbuf(smc,mb) ; mb 1730 drivers/net/fddi/skfp/hwmtm.c static void queue_llc_rx(struct s_smc *smc, SMbuf *mb) mb 1732 drivers/net/fddi/skfp/hwmtm.c DB_GEN(4, "queue_llc_rx: mb = %p", mb); mb 1734 drivers/net/fddi/skfp/hwmtm.c mb->sm_next = (SMbuf *)NULL ; mb 1736 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.llc_rx_pipe = mb ; mb 1739 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.llc_rx_tail->sm_next = mb ; mb 1741 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.llc_rx_tail = mb ; mb 1756 drivers/net/fddi/skfp/hwmtm.c SMbuf *mb ; mb 1758 drivers/net/fddi/skfp/hwmtm.c if ((mb = smc->os.hwm.llc_rx_pipe)) { mb 1760 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.llc_rx_pipe = mb->sm_next ; mb 1762 drivers/net/fddi/skfp/hwmtm.c DB_GEN(4, "get_llc_rx: mb = 0x%p", mb); mb 1763 drivers/net/fddi/skfp/hwmtm.c return mb; mb 1770 drivers/net/fddi/skfp/hwmtm.c static void queue_txd_mb(struct s_smc *smc, SMbuf *mb) mb 1772 drivers/net/fddi/skfp/hwmtm.c DB_GEN(4, "_rx: queue_txd_mb = %p", mb); mb 1774 drivers/net/fddi/skfp/hwmtm.c mb->sm_next = (SMbuf *)NULL ; mb 1776 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.txd_tx_pipe = mb ; mb 1779 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.txd_tx_tail->sm_next = mb ; mb 1781 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.txd_tx_tail = mb ; mb 1789 drivers/net/fddi/skfp/hwmtm.c SMbuf *mb ; mb 1791 drivers/net/fddi/skfp/hwmtm.c if ((mb = smc->os.hwm.txd_tx_pipe)) { mb 1793 drivers/net/fddi/skfp/hwmtm.c smc->os.hwm.txd_tx_pipe = mb->sm_next ; mb 1795 drivers/net/fddi/skfp/hwmtm.c DB_GEN(4, "get_txd_mb: mb = 0x%p", mb); mb 1796 drivers/net/fddi/skfp/hwmtm.c return mb; mb 1802 drivers/net/fddi/skfp/hwmtm.c void smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc) mb 1817 drivers/net/fddi/skfp/hwmtm.c NDD_TRACE("THSB",mb,fc,0) ; mb 1818 drivers/net/fddi/skfp/hwmtm.c DB_TX(4, "smt_send_mbuf: mb = 0x%p, fc = 0x%x", mb, fc); mb 1820 drivers/net/fddi/skfp/hwmtm.c mb->sm_off-- ; /* set to fc */ mb 1821 drivers/net/fddi/skfp/hwmtm.c mb->sm_len++ ; /* + fc */ mb 1822 drivers/net/fddi/skfp/hwmtm.c data = smtod(mb,char *) ; mb 1831 drivers/net/fddi/skfp/hwmtm.c len = mb->sm_len ; mb 1866 drivers/net/fddi/skfp/hwmtm.c smt_free_mbuf(smc,mb) ; mb 1873 drivers/net/fddi/skfp/hwmtm.c mb->sm_use_count = 2 ; mb 1884 drivers/net/fddi/skfp/hwmtm.c (((__u32)(mb->sm_len-1)&3) << 27)) ; mb 1907 drivers/net/fddi/skfp/hwmtm.c queue_txd_mb(smc,mb) ; mb 1912 drivers/net/fddi/skfp/hwmtm.c queue_llc_rx(smc,mb) ; mb 1942 drivers/net/fddi/skfp/hwmtm.c SMbuf *mb ; mb 1982 drivers/net/fddi/skfp/hwmtm.c mb = get_txd_mb(smc) ; mb 1983 drivers/net/fddi/skfp/hwmtm.c smt_free_mbuf(smc,mb) ; mb 277 drivers/net/fddi/skfp/pmf.c void smt_pmf_received_pack(struct s_smc *smc, SMbuf *mb, int local) mb 282 drivers/net/fddi/skfp/pmf.c sm = smtod(mb,struct smt_header *) ; mb 283 drivers/net/fddi/skfp/pmf.c DB_SMT("SMT: processing PMF frame at %p len %d", sm, mb->sm_len); mb 310 drivers/net/fddi/skfp/pmf.c SMbuf *mb ; mb 326 drivers/net/fddi/skfp/pmf.c if (!(mb = smt_get_mbuf(smc))) mb 327 drivers/net/fddi/skfp/pmf.c return mb; mb 329 drivers/net/fddi/skfp/pmf.c smt = smtod(mb, struct smt_header *) ; mb 475 drivers/net/fddi/skfp/pmf.c mb->sm_len = smt->smt_len + sizeof(struct smt_header) ; mb 492 drivers/net/fddi/skfp/pmf.c return mb; mb 30 drivers/net/fddi/skfp/smt.c #define m_fc(mb) ((mb)->sm_data[0]) mb 76 drivers/net/fddi/skfp/smt.c static void smt_add_frame_len(SMbuf *mb, int len); mb 464 drivers/net/fddi/skfp/smt.c void smt_received_pack(struct s_smc *smc, SMbuf *mb, int fs) mb 472 drivers/net/fddi/skfp/smt.c switch (m_fc(mb)) { mb 479 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 484 drivers/net/fddi/skfp/smt.c sm = smtod(mb,struct smt_header *) ; mb 490 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 496 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 501 drivers/net/fddi/skfp/smt.c smt_swap_para(sm,(int) mb->sm_len,1) ; mb 503 drivers/net/fddi/skfp/smt.c smt_type_name[m_fc(mb) & 0xf], sm); mb 512 drivers/net/fddi/skfp/smt.c if (m_fc(mb) == FC_SMT_NSA && sm->smt_class == SMT_NIF && mb 522 drivers/net/fddi/skfp/smt.c if ( (fs & A_INDICATOR) && m_fc(mb) == FC_SMT_NSA) { mb 525 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 534 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 557 drivers/net/fddi/skfp/smt.c smt_send_rdf(smc,mb,m_fc(mb),SMT_RDF_VERSION,local) ; mb 558 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 561 drivers/net/fddi/skfp/smt.c if ((sm->smt_len > mb->sm_len - sizeof(struct smt_header)) || mb 564 drivers/net/fddi/skfp/smt.c smt_send_rdf(smc,mb,m_fc(mb),SMT_RDF_LENGTH,local) ; mb 565 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 577 drivers/net/fddi/skfp/smt.c if (!(fs & C_INDICATOR) && m_fc(mb) == FC_SMT_NSA mb 613 drivers/net/fddi/skfp/smt.c ((!(fs & A_INDICATOR) && m_fc(mb) == FC_SMT_NSA) || mb 614 drivers/net/fddi/skfp/smt.c (m_fc(mb) != FC_SMT_NSA))) { mb 726 drivers/net/fddi/skfp/smt.c smt_send_rdf(smc,mb,m_fc(mb),SMT_RDF_LENGTH, mb 738 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,FC_SMT_INFO,local) ; mb 750 drivers/net/fddi/skfp/smt.c fs = ess_raf_received_pack(smc,mb,sm,fs) ; mb 764 drivers/net/fddi/skfp/smt.c smt_send_rdf(smc,mb,m_fc(mb),SMT_RDF_CLASS,local) ; mb 784 drivers/net/fddi/skfp/smt.c smt_pmf_received_pack(smc,mb, local) ; mb 800 drivers/net/fddi/skfp/smt.c smt_send_rdf(smc,mb,m_fc(mb),SMT_RDF_CLASS,local) ; mb 807 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 828 drivers/net/fddi/skfp/smt.c void smt_send_frame(struct s_smc *smc, SMbuf *mb, int fc, int local) mb 835 drivers/net/fddi/skfp/smt.c smt_free_mbuf(smc,mb) ; mb 838 drivers/net/fddi/skfp/smt.c sm = smtod(mb,struct smt_header *) ; mb 842 drivers/net/fddi/skfp/smt.c smt_swap_para(sm,(int) mb->sm_len,0) ; /* swap para & header */ mb 845 drivers/net/fddi/skfp/smt.c smt_send_mbuf(smc,mb,local ? FC_SMT_LOC : fc) ; mb 857 drivers/net/fddi/skfp/smt.c SMbuf *mb ; mb 877 drivers/net/fddi/skfp/smt.c if (!(mb=smt_build_frame(smc,SMT_RDF,SMT_REPLY,sizeof(struct smt_rdf)))) mb 879 drivers/net/fddi/skfp/smt.c rdf = smtod(mb,struct smt_rdf *) ; mb 917 drivers/net/fddi/skfp/smt.c mb->sm_len += len ; mb 922 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,FC_SMT_INFO,local) ; mb 936 drivers/net/fddi/skfp/smt.c SMbuf *mb ; mb 938 drivers/net/fddi/skfp/smt.c if (!(mb = smt_build_frame(smc,SMT_NIF,type,sizeof(struct smt_nif)))) mb 940 drivers/net/fddi/skfp/smt.c nif = smtod(mb, struct smt_nif *) ; mb 950 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,fc,local) ; mb 1003 drivers/net/fddi/skfp/smt.c SMbuf *mb ; mb 1005 drivers/net/fddi/skfp/smt.c if (!(mb = smt_build_frame(smc,SMT_ECF,type,SMT_ECF_LEN + len))) mb 1007 drivers/net/fddi/skfp/smt.c ecf = smtod(mb, struct smt_ecf *) ; mb 1013 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,fc,0) ; mb 1026 drivers/net/fddi/skfp/smt.c SMbuf *mb ; mb 1028 drivers/net/fddi/skfp/smt.c if (!(mb = smt_build_frame(smc,SMT_SIF_CONFIG,SMT_REPLY, mb 1032 drivers/net/fddi/skfp/smt.c sif = smtod(mb, struct smt_sif_config *) ; mb 1044 drivers/net/fddi/skfp/smt.c smt_add_frame_len(mb,len) ; /* adjust length fields */ mb 1046 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,FC_SMT_INFO,local) ; mb 1059 drivers/net/fddi/skfp/smt.c SMbuf *mb ; mb 1069 drivers/net/fddi/skfp/smt.c if (!(mb = smt_build_frame(smc,SMT_SIF_OPER,SMT_REPLY, mb 1072 drivers/net/fddi/skfp/smt.c sif = smtod(mb, struct smt_sif_operation *) ; mb 1095 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,FC_SMT_INFO,local) ; mb 1104 drivers/net/fddi/skfp/smt.c SMbuf *mb ; mb 1112 drivers/net/fddi/skfp/smt.c if (!(mb = smt_get_mbuf(smc))) mb 1113 drivers/net/fddi/skfp/smt.c return mb; mb 1115 drivers/net/fddi/skfp/smt.c mb->sm_len = length ; mb 1116 drivers/net/fddi/skfp/smt.c smt = smtod(mb, struct smt_header *) ; mb 1134 drivers/net/fddi/skfp/smt.c return mb; mb 1137 drivers/net/fddi/skfp/smt.c static void smt_add_frame_len(SMbuf *mb, int len) mb 1141 drivers/net/fddi/skfp/smt.c smt = smtod(mb, struct smt_header *) ; mb 1143 drivers/net/fddi/skfp/smt.c mb->sm_len += len ; mb 1699 drivers/net/fddi/skfp/smt.c SMbuf *mb ; mb 1704 drivers/net/fddi/skfp/smt.c mb = smt_get_mbuf() ; mb 1705 drivers/net/fddi/skfp/smt.c mb->sm_len = 3000+12 ; mb 1706 drivers/net/fddi/skfp/smt.c p = smtod(mb, char *) + 12 ; mb 1710 drivers/net/fddi/skfp/smt.c smt = smtod(mb, struct smt_header *) ; mb 1713 drivers/net/fddi/skfp/smt.c smt_send_mbuf(smc,mb,FC_ASYNC_LLC) ; mb 371 drivers/net/fddi/skfp/srf.c SMbuf *mb ; mb 383 drivers/net/fddi/skfp/srf.c if (!(mb = smt_build_frame(smc,SMT_SRF,SMT_ANNOUNCE,0))) mb 388 drivers/net/fddi/skfp/srf.c smt = smtod(mb, struct smt_header *) ; mb 409 drivers/net/fddi/skfp/srf.c mb->sm_len = smt->smt_len + sizeof(struct smt_header) ; mb 411 drivers/net/fddi/skfp/srf.c DB_SMT("SRF: sending SRF at %p, len %d", smt, mb->sm_len); mb 417 drivers/net/fddi/skfp/srf.c smt_send_frame(smc,mb,FC_SMT_INFO,0) ; mb 410 drivers/net/hippi/rrunner.c mb(); mb 414 drivers/net/hippi/rrunner.c mb(); mb 416 drivers/net/hippi/rrunner.c mb(); mb 422 drivers/net/hippi/rrunner.c mb(); mb 460 drivers/net/hippi/rrunner.c mb(); mb 464 drivers/net/hippi/rrunner.c mb(); mb 474 drivers/net/hippi/rrunner.c mb(); mb 480 drivers/net/hippi/rrunner.c mb(); mb 494 drivers/net/hippi/rrunner.c mb(); mb 1498 drivers/net/hippi/rrunner.c mb(); mb 1500 drivers/net/hippi/rrunner.c mb(); mb 1503 drivers/net/hippi/rrunner.c mb(); mb 1549 drivers/net/hippi/rrunner.c mb(); mb 1551 drivers/net/hippi/rrunner.c mb(); mb 1559 drivers/net/hippi/rrunner.c mb(); mb 509 drivers/net/hippi/rrunner.h mb(); mb 526 drivers/net/hippi/rrunner.h mb(); mb 543 drivers/net/hippi/rrunner.h mb(); mb 193 drivers/net/wireless/ath/ath10k/htt_rx.c mb(); mb 652 drivers/net/wireless/broadcom/b43/dma.c mb(); mb 507 drivers/net/wireless/broadcom/b43legacy/dma.c mb(); /* all descbuffer setup before next line */ mb 268 drivers/net/wireless/broadcom/brcm80211/brcmsmac/types.h #define mboolset(mb, bit) ((mb) |= (bit)) mb 270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/types.h #define mboolclr(mb, bit) ((mb) &= ~(bit)) mb 272 drivers/net/wireless/broadcom/brcm80211/brcmsmac/types.h #define mboolisset(mb, bit) (((mb) & (bit)) != 0) mb 273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/types.h #define mboolmaskset(mb, mask, val) ((mb) = (((mb) & ~(mask)) | (val))) mb 1400 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c struct iwl_missed_beacons_notif *mb = (void *)pkt->data; mb 1406 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c u32 id = le32_to_cpu(mb->mac_id); mb 1410 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c le32_to_cpu(mb->mac_id), mb 1411 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c le32_to_cpu(mb->consec_missed_beacons), mb 1412 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c le32_to_cpu(mb->consec_missed_beacons_since_last_rx), mb 1413 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c le32_to_cpu(mb->num_recvd_beacons), mb 1414 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c le32_to_cpu(mb->num_expected_beacons)); mb 1422 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c rx_missed_bcon = le32_to_cpu(mb->consec_missed_beacons); mb 1424 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c le32_to_cpu(mb->consec_missed_beacons_since_last_rx); mb 29 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c mb(); mb 64 drivers/net/xen-netback/rx.c mb(); mb 328 drivers/nvme/host/pci.c mb(); mb 1247 drivers/nvme/host/pci.c mb(); mb 1380 drivers/nvme/host/pci.c mb(); mb 43 drivers/parport/parport_amiga.c mb(); mb 120 drivers/parport/parport_amiga.c mb(); mb 127 drivers/parport/parport_amiga.c mb(); mb 140 drivers/parport/parport_amiga.c mb(); mb 145 drivers/parport/parport_amiga.c mb(); mb 150 drivers/parport/parport_amiga.c mb(); mb 155 drivers/parport/parport_amiga.c mb(); mb 203 drivers/parport/parport_amiga.c mb(); mb 698 drivers/pci/controller/pci-hyperv.c mb(); mb 715 drivers/pci/controller/pci-hyperv.c mb(); mb 735 drivers/pci/controller/pci-hyperv.c mb(); mb 786 drivers/pci/controller/pci-hyperv.c mb(); mb 99 drivers/phy/qualcomm/phy-qcom-apq8064-sata.c mb(); mb 134 drivers/phy/qualcomm/phy-qcom-apq8064-sata.c mb(); mb 95 drivers/phy/qualcomm/phy-qcom-ipq806x-sata.c mb(); mb 58 drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c mb(); mb 79 drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c mb(); mb 81 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c mb(); mb 97 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c mb(); mb 109 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c mb(); mb 117 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c mb(); mb 126 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c mb(); mb 137 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c mb(); mb 55 drivers/phy/qualcomm/phy-qcom-ufs.c mb(); mb 199 drivers/pinctrl/sirf/pinctrl-atlas7.c #define PADCONF(pad, t, mr, pr, dsr, adr, mb, pb, dsb, adb) \ mb 207 drivers/pinctrl/sirf/pinctrl-atlas7.c .mux_bit = mb, \ mb 325 drivers/platform/mellanox/mlxbf-tmfifo.c mb(); mb 51 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = container_of(work, mb 61 drivers/power/supply/ipaq_micro_battery.c ipaq_micro_tx_msg_sync(mb->micro, &msg_battery); mb 75 drivers/power/supply/ipaq_micro_battery.c mb->ac = msg_battery.rx_data[0]; mb 76 drivers/power/supply/ipaq_micro_battery.c mb->chemistry = msg_battery.rx_data[1]; mb 77 drivers/power/supply/ipaq_micro_battery.c mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + mb 79 drivers/power/supply/ipaq_micro_battery.c mb->flag = msg_battery.rx_data[4]; mb 85 drivers/power/supply/ipaq_micro_battery.c ipaq_micro_tx_msg_sync(mb->micro, &msg_sensor); mb 86 drivers/power/supply/ipaq_micro_battery.c mb->temperature = msg_sensor.rx_data[1] << 8 | msg_sensor.rx_data[0]; mb 88 drivers/power/supply/ipaq_micro_battery.c queue_delayed_work(mb->wq, &mb->update, msecs_to_jiffies(BATT_PERIOD)); mb 93 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = dev_get_drvdata(b->dev.parent); mb 95 drivers/power/supply/ipaq_micro_battery.c switch (mb->flag & 0x07) { mb 113 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = dev_get_drvdata(b->dev.parent); mb 115 drivers/power/supply/ipaq_micro_battery.c if (mb->flag == MICRO_BATT_STATUS_UNKNOWN) mb 118 drivers/power/supply/ipaq_micro_battery.c if (mb->flag & MICRO_BATT_STATUS_FULL) mb 121 drivers/power/supply/ipaq_micro_battery.c if ((mb->flag & MICRO_BATT_STATUS_CHARGING) || mb 122 drivers/power/supply/ipaq_micro_battery.c (mb->flag & MICRO_BATT_STATUS_CHARGEMAIN)) mb 132 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = dev_get_drvdata(b->dev.parent); mb 136 drivers/power/supply/ipaq_micro_battery.c switch (mb->chemistry) { mb 164 drivers/power/supply/ipaq_micro_battery.c val->intval = mb->temperature; mb 167 drivers/power/supply/ipaq_micro_battery.c val->intval = mb->voltage; mb 180 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = dev_get_drvdata(b->dev.parent); mb 184 drivers/power/supply/ipaq_micro_battery.c val->intval = mb->ac; mb 227 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb; mb 230 drivers/power/supply/ipaq_micro_battery.c mb = devm_kzalloc(&pdev->dev, sizeof(*mb), GFP_KERNEL); mb 231 drivers/power/supply/ipaq_micro_battery.c if (!mb) mb 234 drivers/power/supply/ipaq_micro_battery.c mb->micro = dev_get_drvdata(pdev->dev.parent); mb 235 drivers/power/supply/ipaq_micro_battery.c mb->wq = alloc_workqueue("ipaq-battery-wq", WQ_MEM_RECLAIM, 0); mb 236 drivers/power/supply/ipaq_micro_battery.c if (!mb->wq) mb 239 drivers/power/supply/ipaq_micro_battery.c INIT_DELAYED_WORK(&mb->update, micro_battery_work); mb 240 drivers/power/supply/ipaq_micro_battery.c platform_set_drvdata(pdev, mb); mb 241 drivers/power/supply/ipaq_micro_battery.c queue_delayed_work(mb->wq, &mb->update, 1); mb 263 drivers/power/supply/ipaq_micro_battery.c cancel_delayed_work_sync(&mb->update); mb 264 drivers/power/supply/ipaq_micro_battery.c destroy_workqueue(mb->wq); mb 271 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = platform_get_drvdata(pdev); mb 275 drivers/power/supply/ipaq_micro_battery.c cancel_delayed_work_sync(&mb->update); mb 276 drivers/power/supply/ipaq_micro_battery.c destroy_workqueue(mb->wq); mb 283 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = dev_get_drvdata(dev); mb 285 drivers/power/supply/ipaq_micro_battery.c cancel_delayed_work_sync(&mb->update); mb 291 drivers/power/supply/ipaq_micro_battery.c struct micro_battery *mb = dev_get_drvdata(dev); mb 293 drivers/power/supply/ipaq_micro_battery.c queue_delayed_work(mb->wq, &mb->update, msecs_to_jiffies(BATT_PERIOD)); mb 139 drivers/rapidio/devices/tsi721.c mb(); mb 1715 drivers/rapidio/devices/tsi721.c mb(); mb 2003 drivers/rapidio/devices/tsi721.c mb(); mb 2240 drivers/rapidio/devices/tsi721.c mb(); mb 70 drivers/remoteproc/stm32_rproc.c struct stm32_mbox mb[MBOX_NB_MBX]; mb 181 drivers/remoteproc/stm32_rproc.c for (i = 0; i < ARRAY_SIZE(ddata->mb); i++) { mb 182 drivers/remoteproc/stm32_rproc.c if (!strncmp(ddata->mb[i].name, name, strlen(name))) mb 267 drivers/remoteproc/stm32_rproc.c struct stm32_mbox *mb = container_of(cl, struct stm32_mbox, client); mb 269 drivers/remoteproc/stm32_rproc.c if (rproc_vq_interrupt(rproc, mb->vq_id) == IRQ_NONE) mb 270 drivers/remoteproc/stm32_rproc.c dev_dbg(&rproc->dev, "no message found in vq%d\n", mb->vq_id); mb 278 drivers/remoteproc/stm32_rproc.c for (i = 0; i < ARRAY_SIZE(ddata->mb); i++) { mb 279 drivers/remoteproc/stm32_rproc.c if (ddata->mb[i].chan) mb 280 drivers/remoteproc/stm32_rproc.c mbox_free_channel(ddata->mb[i].chan); mb 281 drivers/remoteproc/stm32_rproc.c ddata->mb[i].chan = NULL; mb 322 drivers/remoteproc/stm32_rproc.c memcpy(ddata->mb, stm32_rproc_mbox, sizeof(stm32_rproc_mbox)); mb 325 drivers/remoteproc/stm32_rproc.c name = ddata->mb[i].name; mb 327 drivers/remoteproc/stm32_rproc.c cl = &ddata->mb[i].client; mb 330 drivers/remoteproc/stm32_rproc.c ddata->mb[i].chan = mbox_request_channel_byname(cl, name); mb 331 drivers/remoteproc/stm32_rproc.c if (IS_ERR(ddata->mb[i].chan)) { mb 333 drivers/remoteproc/stm32_rproc.c ddata->mb[i].chan = NULL; mb 416 drivers/remoteproc/stm32_rproc.c if (idx >= 0 && ddata->mb[idx].chan) { mb 418 drivers/remoteproc/stm32_rproc.c err = mbox_send_message(ddata->mb[idx].chan, mb 458 drivers/remoteproc/stm32_rproc.c if (vqid != ddata->mb[i].vq_id) mb 460 drivers/remoteproc/stm32_rproc.c if (!ddata->mb[i].chan) mb 462 drivers/remoteproc/stm32_rproc.c err = mbox_send_message(ddata->mb[i].chan, (void *)(long)vqid); mb 465 drivers/remoteproc/stm32_rproc.c __func__, ddata->mb[i].name, err); mb 940 drivers/s390/cio/qdio_main.c mb(); mb 102 drivers/scsi/a3000.c mb(); /* make sure setup is completed */ mb 104 drivers/scsi/a3000.c mb(); /* make sure DMA has started before next IO */ mb 124 drivers/scsi/a3000.c mb(); /* make sure CNTR is updated before next IO */ mb 129 drivers/scsi/a3000.c mb(); /* don't allow prefetch */ mb 132 drivers/scsi/a3000.c mb(); /* no IO until FLUSH is done */ mb 143 drivers/scsi/a3000.c mb(); /* make sure DMA is stopped before next IO */ mb 147 drivers/scsi/a3000.c mb(); /* make sure CNTR is updated before next IO */ mb 799 drivers/scsi/aha152x.c mb(); mb 62 drivers/scsi/aha1542.c struct mailbox *mb; mb 269 drivers/scsi/aha1542.c struct mailbox *mb = aha1542->mb; mb 314 drivers/scsi/aha1542.c if (mb[mbi].status != 0) mb 321 drivers/scsi/aha1542.c if (mb[mbi].status == 0) { mb 329 drivers/scsi/aha1542.c mbo = (scsi2int(mb[mbi].ccbptr) - (unsigned long)aha1542->ccb_handle) / sizeof(struct ccb); mb 330 drivers/scsi/aha1542.c mbistatus = mb[mbi].status; mb 331 drivers/scsi/aha1542.c mb[mbi].status = 0; mb 337 drivers/scsi/aha1542.c ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); mb 402 drivers/scsi/aha1542.c struct mailbox *mb = aha1542->mb; mb 445 drivers/scsi/aha1542.c if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) mb 452 drivers/scsi/aha1542.c if (mb[mbo].status || aha1542->int_cmds[mbo]) mb 465 drivers/scsi/aha1542.c any2scsi(mb[mbo].ccbptr, aha1542->ccb_handle + mbo * sizeof(*ccb)); mb 508 drivers/scsi/aha1542.c mb[mbo].status = 1; mb 529 drivers/scsi/aha1542.c aha1542->mb[i].status = 0; mb 530 drivers/scsi/aha1542.c any2scsi(aha1542->mb[i].ccbptr, mb 532 drivers/scsi/aha1542.c aha1542->mb[AHA1542_MAILBOXES + i].status = 0; mb 772 drivers/scsi/aha1542.c aha1542->mb = dma_alloc_coherent(pdev, mb 775 drivers/scsi/aha1542.c if (!aha1542->mb) mb 818 drivers/scsi/aha1542.c aha1542->mb, aha1542->mb_handle); mb 838 drivers/scsi/aha1542.c aha1542->mb, aha1542->mb_handle); mb 857 drivers/scsi/aha1542.c struct mailbox *mb = aha1542->mb; mb 869 drivers/scsi/aha1542.c if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) mb 876 drivers/scsi/aha1542.c if (mb[mbo].status || aha1542->int_cmds[mbo]) mb 886 drivers/scsi/aha1542.c any2scsi(mb[mbo].ccbptr, aha1542->ccb_handle + mbo * sizeof(*ccb)); mb 963 drivers/scsi/aha1542.c aha1542->mb[i].status = 0; mb 410 drivers/scsi/aic7xxx/aic79xx_osm.c mb(); mb 425 drivers/scsi/aic7xxx/aic79xx_osm.c mb(); mb 438 drivers/scsi/aic7xxx/aic79xx_osm.c mb(); mb 449 drivers/scsi/aic7xxx/aic79xx_osm.c mb(); mb 97 drivers/scsi/aic7xxx/aic79xx_proc.c u_int mb; mb 110 drivers/scsi/aic7xxx/aic79xx_proc.c mb = speed / 1000; mb 111 drivers/scsi/aic7xxx/aic79xx_proc.c if (mb > 0) mb 112 drivers/scsi/aic7xxx/aic79xx_proc.c seq_printf(m, "%d.%03dMB/s transfers", mb, speed % 1000); mb 408 drivers/scsi/aic7xxx/aic7xxx_osm.c mb(); mb 420 drivers/scsi/aic7xxx/aic7xxx_osm.c mb(); mb 98 drivers/scsi/aic7xxx/aic7xxx_proc.c u_int mb; mb 107 drivers/scsi/aic7xxx/aic7xxx_proc.c mb = speed / 1000; mb 108 drivers/scsi/aic7xxx/aic7xxx_proc.c if (mb > 0) mb 109 drivers/scsi/aic7xxx/aic7xxx_proc.c seq_printf(m, "%d.%03dMB/s transfers", mb, speed % 1000); mb 339 drivers/scsi/aic94xx/aic94xx_task.c mb(); mb 529 drivers/scsi/aic94xx/aic94xx_tmf.c mb(); mb 5181 drivers/scsi/be2iscsi/be_main.c mb(); mb 3409 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_query_s *)ablk->mb.msg; mb 3413 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 3441 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_pf_req_s *)ablk->mb.msg; mb 3448 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 3473 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_pf_req_s *)ablk->mb.msg; mb 3477 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 3502 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_cfg_req_s *)ablk->mb.msg; mb 3508 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 3533 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_cfg_req_s *)ablk->mb.msg; mb 3540 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 3565 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_pf_req_s *)ablk->mb.msg; mb 3571 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 3595 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_optrom_s *)ablk->mb.msg; mb 3598 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 3622 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_optrom_s *)ablk->mb.msg; mb 3625 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(ablk->ioc, &ablk->mb); mb 4251 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_query_req_s *) flash->mb.msg; mb 4257 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(flash->ioc, &flash->mb); mb 4269 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_write_req_s *) flash->mb.msg; mb 4286 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(flash->ioc, &flash->mb); mb 4302 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_read_req_s *) flash->mb.msg; mb 4314 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(flash->ioc, &flash->mb); mb 4327 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_erase_req_s *) flash->mb.msg; mb 4333 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(flash->ioc, &flash->mb); mb 5348 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_query_req_s *) phy->mb.msg; mb 5354 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(phy->ioc, &phy->mb); mb 5367 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_write_req_s *) phy->mb.msg; mb 5391 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(phy->ioc, &phy->mb); mb 5407 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_read_req_s *) phy->mb.msg; mb 5418 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(phy->ioc, &phy->mb); mb 5431 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_stats_req_s *) phy->mb.msg; mb 5437 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(phy->ioc, &phy->mb); mb 6224 drivers/scsi/bfa/bfa_ioc.c (struct bfi_fru_write_req_s *) fru->mb.msg; mb 6242 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(fru->ioc, &fru->mb); mb 6258 drivers/scsi/bfa/bfa_ioc.c (struct bfi_fru_read_req_s *) fru->mb.msg; mb 6267 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(fru->ioc, &fru->mb); mb 406 drivers/scsi/bfa/bfa_ioc.h struct bfa_mbox_cmd_s mb; mb 489 drivers/scsi/bfa/bfa_ioc.h struct bfa_mbox_cmd_s mb; /* mailbox */ mb 681 drivers/scsi/bfa/bfa_ioc.h struct bfa_mbox_cmd_s mb; /* mailbox */ mb 730 drivers/scsi/bfa/bfa_ioc.h struct bfa_mbox_cmd_s mb; /* mailbox */ mb 465 drivers/scsi/csiostor/csio_attr.c rsp = (struct fw_fcoe_vnp_cmd *)(mbp->mb); mb 537 drivers/scsi/csiostor/csio_attr.c rsp = (struct fw_fcoe_vnp_cmd *)(mbp->mb); mb 1145 drivers/scsi/csiostor/csio_hw.c struct fw_caps_config_cmd *rsp = (struct fw_caps_config_cmd *)mbp->mb; mb 1895 drivers/scsi/csiostor/csio_hw.c rsp = (struct fw_fcoe_res_info_cmd *)(mbp->mb); mb 2104 drivers/scsi/csiostor/csio_hw.c caps_cmd = (struct fw_caps_config_cmd *)(mbp->mb); mb 618 drivers/scsi/csiostor/csio_lnode.c struct fw_fcoe_vnp_cmd *rsp = (struct fw_fcoe_vnp_cmd *)(mbp->mb); mb 762 drivers/scsi/csiostor/csio_lnode.c lcmd = (struct fw_fcoe_link_cmd *)mbp->mb; mb 788 drivers/scsi/csiostor/csio_lnode.c (struct fw_fcoe_fcf_cmd *)(mbp->mb); mb 60 drivers/scsi/csiostor/csio_mb.c hdr = (struct fw_cmd_hdr *)(mbp->mb); mb 80 drivers/scsi/csiostor/csio_mb.c struct fw_hello_cmd *cmdp = (struct fw_hello_cmd *)(mbp->mb); mb 112 drivers/scsi/csiostor/csio_mb.c struct fw_hello_cmd *rsp = (struct fw_hello_cmd *)(mbp->mb); mb 143 drivers/scsi/csiostor/csio_mb.c struct fw_bye_cmd *cmdp = (struct fw_bye_cmd *)(mbp->mb); mb 166 drivers/scsi/csiostor/csio_mb.c struct fw_reset_cmd *cmdp = (struct fw_reset_cmd *)(mbp->mb); mb 200 drivers/scsi/csiostor/csio_mb.c struct fw_params_cmd *cmdp = (struct fw_params_cmd *)(mbp->mb); mb 244 drivers/scsi/csiostor/csio_mb.c struct fw_params_cmd *rsp = (struct fw_params_cmd *)(mbp->mb); mb 266 drivers/scsi/csiostor/csio_mb.c struct fw_ldst_cmd *ldst_cmd = (struct fw_ldst_cmd *)(mbp->mb); mb 305 drivers/scsi/csiostor/csio_mb.c (struct fw_caps_config_cmd *)(mbp->mb); mb 346 drivers/scsi/csiostor/csio_mb.c struct fw_port_cmd *cmdp = (struct fw_port_cmd *)(mbp->mb); mb 389 drivers/scsi/csiostor/csio_mb.c struct fw_port_cmd *rsp = (struct fw_port_cmd *)(mbp->mb); mb 416 drivers/scsi/csiostor/csio_mb.c struct fw_initialize_cmd *cmdp = (struct fw_initialize_cmd *)(mbp->mb); mb 444 drivers/scsi/csiostor/csio_mb.c struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); mb 490 drivers/scsi/csiostor/csio_mb.c struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); mb 594 drivers/scsi/csiostor/csio_mb.c struct fw_iq_cmd *rsp = (struct fw_iq_cmd *)(mbp->mb); mb 626 drivers/scsi/csiostor/csio_mb.c struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); mb 662 drivers/scsi/csiostor/csio_mb.c struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); mb 699 drivers/scsi/csiostor/csio_mb.c struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); mb 780 drivers/scsi/csiostor/csio_mb.c struct fw_eq_ofld_cmd *rsp = (struct fw_eq_ofld_cmd *)(mbp->mb); mb 812 drivers/scsi/csiostor/csio_mb.c struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); mb 844 drivers/scsi/csiostor/csio_mb.c (struct fw_fcoe_link_cmd *)(mbp->mb); mb 878 drivers/scsi/csiostor/csio_mb.c (struct fw_fcoe_res_info_cmd *)(mbp->mb); mb 913 drivers/scsi/csiostor/csio_mb.c (struct fw_fcoe_vnp_cmd *)(mbp->mb); mb 954 drivers/scsi/csiostor/csio_mb.c (struct fw_fcoe_vnp_cmd *)(mbp->mb); mb 983 drivers/scsi/csiostor/csio_mb.c (struct fw_fcoe_vnp_cmd *)(mbp->mb); mb 1014 drivers/scsi/csiostor/csio_mb.c (struct fw_fcoe_fcf_cmd *)(mbp->mb); mb 1033 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_stats_cmd *cmdp = (struct fw_fcoe_stats_cmd *)(mbp->mb); mb 1057 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_stats_cmd *rsp = (struct fw_fcoe_stats_cmd *)(mbp->mb); mb 1193 drivers/scsi/csiostor/csio_mb.c __be64 *cmd = mbp->mb; mb 1212 drivers/scsi/csiostor/csio_mb.c *((uint8_t *)mbp->mb)); mb 1221 drivers/scsi/csiostor/csio_mb.c hw->pfn, *((uint8_t *)mbp->mb)); mb 1250 drivers/scsi/csiostor/csio_mb.c hw->pfn, *((uint8_t *)mbp->mb), owner); mb 1257 drivers/scsi/csiostor/csio_mb.c hw->pfn, *((uint8_t *)mbp->mb), mb 1296 drivers/scsi/csiostor/csio_mb.c cmd = mbp->mb; mb 1533 drivers/scsi/csiostor/csio_mb.c cmd = mbp->mb; mb 1591 drivers/scsi/csiostor/csio_mb.c fw_hdr = (struct fw_cmd_hdr *)(mbp->mb); mb 1644 drivers/scsi/csiostor/csio_mb.c hdr = (struct fw_cmd_hdr *)(mbp->mb); mb 117 drivers/scsi/csiostor/csio_mb.h __be64 mb[CSIO_MB_MAX_REGS]; /* MB in HW format */ mb 2449 drivers/scsi/hpsa.c mb(); /* Declare command idle before checking for pending events. */ mb 1422 drivers/scsi/ibmvscsi/ibmvfc.c mb(); mb 203 drivers/scsi/ibmvscsi/ibmvscsi.c mb(); mb 1643 drivers/scsi/libsas/sas_expander.c mb(); mb 1943 drivers/scsi/libsas/sas_expander.c mb(); mb 1145 drivers/scsi/lpfc/lpfc_attr.c pmboxq->u.mb.mbxCommand = MBX_DOWN_LINK; mb 1146 drivers/scsi/lpfc/lpfc_attr.c pmboxq->u.mb.mbxOwner = OWN_HOST; mb 1151 drivers/scsi/lpfc/lpfc_attr.c (pmboxq->u.mb.mbxStatus == 0 || mb 1152 drivers/scsi/lpfc/lpfc_attr.c pmboxq->u.mb.mbxStatus == MBXERR_LINK_DOWN)) { mb 1159 drivers/scsi/lpfc/lpfc_attr.c (pmboxq->u.mb.mbxStatus == MBXERR_SEC_NO_PERMISSION)) mb 1862 drivers/scsi/lpfc/lpfc_attr.c pmb = &pmboxq->u.mb; mb 6605 drivers/scsi/lpfc/lpfc_attr.c pmb = &pmboxq->u.mb; mb 6716 drivers/scsi/lpfc/lpfc_attr.c pmb = &pmboxq->u.mb; mb 83 drivers/scsi/lpfc/lpfc_bsg.c MAILBOX_t *mb; mb 1834 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.mbxCommand = MBX_DOWN_LINK; mb 1835 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.mbxOwner = OWN_HOST; mb 1839 drivers/scsi/lpfc/lpfc_bsg.c if ((mbxstatus == MBX_SUCCESS) && (pmboxq->u.mb.mbxStatus == 0)) { mb 1852 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.un.varInitLnk.link_flags = FLAGS_LOCAL_LB; mb 1854 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.un.varInitLnk.link_flags = mb 1857 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.mbxCommand = MBX_INIT_LINK; mb 1858 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.mbxOwner = OWN_HOST; mb 1863 drivers/scsi/lpfc/lpfc_bsg.c if ((mbxstatus != MBX_SUCCESS) || (pmboxq->u.mb.mbxStatus)) mb 1955 drivers/scsi/lpfc/lpfc_bsg.c if ((mbxstatus == MBX_SUCCESS) && (pmboxq->u.mb.mbxStatus == 0)) mb 2014 drivers/scsi/lpfc/lpfc_bsg.c if ((mbxstatus != MBX_SUCCESS) || (pmboxq->u.mb.mbxStatus)) { mb 2018 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.mbxStatus); mb 2581 drivers/scsi/lpfc/lpfc_bsg.c if ((status != MBX_SUCCESS) || (mbox->u.mb.mbxStatus)) { mb 2592 drivers/scsi/lpfc/lpfc_bsg.c *rpi = mbox->u.mb.un.varWords[0]; mb 2625 drivers/scsi/lpfc/lpfc_bsg.c if ((status != MBX_SUCCESS) || (mbox->u.mb.mbxStatus)) { mb 3469 drivers/scsi/lpfc/lpfc_bsg.c pmb = (uint8_t *)&pmboxq->u.mb; mb 3470 drivers/scsi/lpfc/lpfc_bsg.c pmb_buf = (uint8_t *)dd_data->context_un.mbox.mb; mb 3519 drivers/scsi/lpfc/lpfc_bsg.c MAILBOX_t *mb, struct lpfc_vport *vport) mb 3522 drivers/scsi/lpfc/lpfc_bsg.c switch (mb->mbxCommand) { mb 3539 drivers/scsi/lpfc/lpfc_bsg.c mb->mbxCommand); mb 3574 drivers/scsi/lpfc/lpfc_bsg.c mb->un.varWords[0], mb 3575 drivers/scsi/lpfc/lpfc_bsg.c mb->un.varWords[1]); mb 3576 drivers/scsi/lpfc/lpfc_bsg.c if ((mb->un.varWords[0] == SETVAR_MLOMNT) mb 3577 drivers/scsi/lpfc/lpfc_bsg.c && (mb->un.varWords[1] == 1)) { mb 3579 drivers/scsi/lpfc/lpfc_bsg.c } else if (mb->un.varWords[0] == SETVAR_MLORST) { mb 3594 drivers/scsi/lpfc/lpfc_bsg.c mb->mbxCommand); mb 3665 drivers/scsi/lpfc/lpfc_bsg.c pmb = (uint8_t *)&pmboxq->u.mb; mb 3666 drivers/scsi/lpfc/lpfc_bsg.c pmb_buf = (uint8_t *)dd_data->context_un.mbox.mb; mb 3736 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.mbxStatus = MBXERR_ERROR; mb 3741 drivers/scsi/lpfc/lpfc_bsg.c phba->mbox_ext_buf_ctx.state, pmboxq->u.mb.mbxStatus); mb 3743 drivers/scsi/lpfc/lpfc_bsg.c if (pmboxq->u.mb.mbxStatus || phba->mbox_ext_buf_ctx.numBuf == 1) mb 3776 drivers/scsi/lpfc/lpfc_bsg.c pmboxq->u.mb.mbxStatus = MBXERR_ERROR; mb 3781 drivers/scsi/lpfc/lpfc_bsg.c phba->mbox_ext_buf_ctx.state, pmboxq->u.mb.mbxStatus); mb 4017 drivers/scsi/lpfc/lpfc_bsg.c pmb = &pmboxq->u.mb; mb 4039 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)pmbx; mb 4196 drivers/scsi/lpfc/lpfc_bsg.c pmb = &pmboxq->u.mb; mb 4210 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)mbx; mb 4543 drivers/scsi/lpfc/lpfc_bsg.c pmb = &pmboxq->u.mb; mb 4556 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)pbuf; mb 4817 drivers/scsi/lpfc/lpfc_bsg.c pmb = &pmboxq->u.mb; mb 4971 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)pmbx; mb 5963 drivers/scsi/lpfc/lpfc_els.c MAILBOX_t *mb; mb 5975 drivers/scsi/lpfc/lpfc_els.c mb = &pmb->u.mb; mb 5990 drivers/scsi/lpfc/lpfc_els.c shdr_status, shdr_add_status, mb->mbxStatus); mb 5992 drivers/scsi/lpfc/lpfc_els.c if ((mb->mbxStatus != MBX_SUCCESS) || shdr_status || mb 6820 drivers/scsi/lpfc/lpfc_els.c mbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0; mb 7061 drivers/scsi/lpfc/lpfc_els.c MAILBOX_t *mb; mb 7071 drivers/scsi/lpfc/lpfc_els.c mb = &pmb->u.mb; mb 7079 drivers/scsi/lpfc/lpfc_els.c if (mb->mbxStatus) { mb 7106 drivers/scsi/lpfc/lpfc_els.c rls_rsp->linkFailureCnt = cpu_to_be32(mb->un.varRdLnk.linkFailureCnt); mb 7107 drivers/scsi/lpfc/lpfc_els.c rls_rsp->lossSyncCnt = cpu_to_be32(mb->un.varRdLnk.lossSyncCnt); mb 7108 drivers/scsi/lpfc/lpfc_els.c rls_rsp->lossSignalCnt = cpu_to_be32(mb->un.varRdLnk.lossSignalCnt); mb 7109 drivers/scsi/lpfc/lpfc_els.c rls_rsp->primSeqErrCnt = cpu_to_be32(mb->un.varRdLnk.primSeqErrCnt); mb 7110 drivers/scsi/lpfc/lpfc_els.c rls_rsp->invalidXmitWord = cpu_to_be32(mb->un.varRdLnk.invalidXmitWord); mb 7111 drivers/scsi/lpfc/lpfc_els.c rls_rsp->crcCnt = cpu_to_be32(mb->un.varRdLnk.crcCnt); mb 7148 drivers/scsi/lpfc/lpfc_els.c MAILBOX_t *mb; mb 7159 drivers/scsi/lpfc/lpfc_els.c mb = &pmb->u.mb; mb 7167 drivers/scsi/lpfc/lpfc_els.c if (mb->mbxStatus) { mb 7202 drivers/scsi/lpfc/lpfc_els.c rps_rsp->linkFailureCnt = cpu_to_be32(mb->un.varRdLnk.linkFailureCnt); mb 7203 drivers/scsi/lpfc/lpfc_els.c rps_rsp->lossSyncCnt = cpu_to_be32(mb->un.varRdLnk.lossSyncCnt); mb 7204 drivers/scsi/lpfc/lpfc_els.c rps_rsp->lossSignalCnt = cpu_to_be32(mb->un.varRdLnk.lossSignalCnt); mb 7205 drivers/scsi/lpfc/lpfc_els.c rps_rsp->primSeqErrCnt = cpu_to_be32(mb->un.varRdLnk.primSeqErrCnt); mb 7206 drivers/scsi/lpfc/lpfc_els.c rps_rsp->invalidXmitWord = cpu_to_be32(mb->un.varRdLnk.invalidXmitWord); mb 7207 drivers/scsi/lpfc/lpfc_els.c rps_rsp->crcCnt = cpu_to_be32(mb->un.varRdLnk.crcCnt); mb 8739 drivers/scsi/lpfc/lpfc_els.c mbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0; mb 8971 drivers/scsi/lpfc/lpfc_els.c MAILBOX_t *mb = &pmb->u.mb; mb 8978 drivers/scsi/lpfc/lpfc_els.c if (mb->mbxStatus) { mb 8981 drivers/scsi/lpfc/lpfc_els.c " upd bit: x%x \n", mb->mbxStatus, mb 8982 drivers/scsi/lpfc/lpfc_els.c mb->un.varRegVpi.upd); mb 8984 drivers/scsi/lpfc/lpfc_els.c mb->un.varRegVpi.upd) mb 8987 drivers/scsi/lpfc/lpfc_els.c switch (mb->mbxStatus) { mb 9026 drivers/scsi/lpfc/lpfc_els.c if (mb->mbxStatus == MBX_NOT_FINISHED) mb 891 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mb; mb 942 drivers/scsi/lpfc/lpfc_hbadisc.c mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mb 943 drivers/scsi/lpfc/lpfc_hbadisc.c if (mb) { mb 944 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_unreg_did(phba, 0xffff, LPFC_UNREG_ALL_DFLT_RPIS, mb); mb 945 drivers/scsi/lpfc/lpfc_hbadisc.c mb->vport = vport; mb 946 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mb 947 drivers/scsi/lpfc/lpfc_hbadisc.c if (lpfc_sli_issue_mbox(phba, mb, MBX_NOWAIT) mb 949 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mb, phba->mbox_mem_pool); mb 956 drivers/scsi/lpfc/lpfc_hbadisc.c mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mb 957 drivers/scsi/lpfc/lpfc_hbadisc.c if (mb) { mb 958 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_config_link(phba, mb); mb 959 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mb 960 drivers/scsi/lpfc/lpfc_hbadisc.c mb->vport = vport; mb 961 drivers/scsi/lpfc/lpfc_hbadisc.c if (lpfc_sli_issue_mbox(phba, mb, MBX_NOWAIT) mb 963 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mb, phba->mbox_mem_pool); mb 1081 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 1089 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mb->mbxStatus) && (mb->mbxStatus != 0x1601)) { mb 1094 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbxStatus, vport->port_state); mb 1143 drivers/scsi/lpfc/lpfc_hbadisc.c if (pmb->u.mb.mbxStatus) mb 1182 drivers/scsi/lpfc/lpfc_hbadisc.c pmb->u.mb.mbxStatus, vport->port_state); mb 1222 drivers/scsi/lpfc/lpfc_hbadisc.c if (mboxq->u.mb.mbxStatus) { mb 1226 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus, vport->port_state); mb 2771 drivers/scsi/lpfc/lpfc_hbadisc.c if (mboxq->u.mb.mbxStatus && mb 2774 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus != MBX_VFI_IN_USE) { mb 2778 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus); mb 2834 drivers/scsi/lpfc/lpfc_hbadisc.c if (mboxq->u.mb.mbxStatus) { mb 2838 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus); mb 2974 drivers/scsi/lpfc/lpfc_hbadisc.c if (mboxq->u.mb.mbxStatus && mb 2977 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus != MBX_VFI_IN_USE) { mb 2981 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus, vport->port_state); mb 3058 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 3066 drivers/scsi/lpfc/lpfc_hbadisc.c if (mb->mbxStatus) { mb 3071 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbxStatus, vport->port_state); mb 3391 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 3402 drivers/scsi/lpfc/lpfc_hbadisc.c if (mb->mbxStatus) { mb 3405 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbxStatus, vport->port_state); mb 3411 drivers/scsi/lpfc/lpfc_hbadisc.c la = (struct lpfc_mbx_read_top *) &pmb->u.mb.un.varReadTop; mb 3605 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 3609 drivers/scsi/lpfc/lpfc_hbadisc.c switch (mb->mbxStatus) { mb 3614 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbxStatus); mb 3620 drivers/scsi/lpfc/lpfc_hbadisc.c vport->vpi, mb->mbxStatus); mb 3670 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 3672 drivers/scsi/lpfc/lpfc_hbadisc.c switch (mb->mbxStatus) { mb 3678 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbxStatus); mb 3729 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb; mb 3749 drivers/scsi/lpfc/lpfc_hbadisc.c mb = &pmb->u.mb; mb 3775 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mbx_wait_rc != MBX_SUCCESS) || mb->mbxStatus) { mb 3780 drivers/scsi/lpfc/lpfc_hbadisc.c mbx_wait_rc, mb->mbxStatus); mb 3794 drivers/scsi/lpfc/lpfc_hbadisc.c if (mb->un.varDmp.word_cnt > mb 3796 drivers/scsi/lpfc/lpfc_hbadisc.c mb->un.varDmp.word_cnt = mb 3799 drivers/scsi/lpfc/lpfc_hbadisc.c byte_count = mb->un.varDmp.word_cnt; mb 3800 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_sli_pcimem_bcopy(((uint8_t *)mb) + DMP_RSP_OFFSET, mb 3872 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 3881 drivers/scsi/lpfc/lpfc_hbadisc.c if (mb->mbxStatus) { mb 3884 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbxStatus); mb 3911 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_rpi = mb->un.varWords[0]; mb 4023 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 4032 drivers/scsi/lpfc/lpfc_hbadisc.c if (mb->mbxStatus) { mb 4035 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbxStatus); mb 4065 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_rpi = mb->un.varWords[0]; mb 5095 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mb, *nextmb; mb 5125 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mb = phba->sli.mbox_active)) { mb 5126 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) && mb 5127 drivers/scsi/lpfc/lpfc_hbadisc.c !(mb->mbox_flag & LPFC_MBX_IMED_UNREG) && mb 5128 drivers/scsi/lpfc/lpfc_hbadisc.c (ndlp == (struct lpfc_nodelist *)mb->ctx_ndlp)) { mb 5129 drivers/scsi/lpfc/lpfc_hbadisc.c mb->ctx_ndlp = NULL; mb 5130 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mb 5136 drivers/scsi/lpfc/lpfc_hbadisc.c list_for_each_entry(mb, &phba->sli.mboxq_cmpl, list) { mb 5137 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) || mb 5138 drivers/scsi/lpfc/lpfc_hbadisc.c (mb->mbox_flag & LPFC_MBX_IMED_UNREG) || mb 5139 drivers/scsi/lpfc/lpfc_hbadisc.c (ndlp != (struct lpfc_nodelist *)mb->ctx_ndlp)) mb 5142 drivers/scsi/lpfc/lpfc_hbadisc.c mb->ctx_ndlp = NULL; mb 5143 drivers/scsi/lpfc/lpfc_hbadisc.c mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mb 5146 drivers/scsi/lpfc/lpfc_hbadisc.c list_for_each_entry_safe(mb, nextmb, &phba->sli.mboxq, list) { mb 5147 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) && mb 5148 drivers/scsi/lpfc/lpfc_hbadisc.c !(mb->mbox_flag & LPFC_MBX_IMED_UNREG) && mb 5149 drivers/scsi/lpfc/lpfc_hbadisc.c (ndlp == (struct lpfc_nodelist *)mb->ctx_ndlp)) { mb 5150 drivers/scsi/lpfc/lpfc_hbadisc.c mp = (struct lpfc_dmabuf *)(mb->ctx_buf); mb 5155 drivers/scsi/lpfc/lpfc_hbadisc.c list_del(&mb->list); mb 5156 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mb, phba->mbox_mem_pool); mb 5940 drivers/scsi/lpfc/lpfc_hbadisc.c initlinkmbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0; mb 6041 drivers/scsi/lpfc/lpfc_hbadisc.c MAILBOX_t *mb = &pmb->u.mb; mb 6050 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_rpi = mb->un.varWords[0]; mb 6504 drivers/scsi/lpfc/lpfc_hbadisc.c if (mboxq->u.mb.mbxStatus) { mb 6508 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus, vport->port_state); mb 6529 drivers/scsi/lpfc/lpfc_hbadisc.c if (mboxq->u.mb.mbxStatus) { mb 6533 drivers/scsi/lpfc/lpfc_hbadisc.c mboxq->u.mb.mbxStatus, vport->port_state); mb 124 drivers/scsi/lpfc/lpfc_init.c MAILBOX_t *mb; mb 137 drivers/scsi/lpfc/lpfc_init.c mb = &pmb->u.mb; mb 150 drivers/scsi/lpfc/lpfc_init.c memset((char*)mb->un.varRDnvp.rsvd3, 0, mb 151 drivers/scsi/lpfc/lpfc_init.c sizeof (mb->un.varRDnvp.rsvd3)); mb 152 drivers/scsi/lpfc/lpfc_init.c memcpy((char*)mb->un.varRDnvp.rsvd3, licensed, mb 162 drivers/scsi/lpfc/lpfc_init.c mb->mbxCommand, mb->mbxStatus); mb 166 drivers/scsi/lpfc/lpfc_init.c memcpy(phba->wwnn, (char *)mb->un.varRDnvp.nodename, mb 168 drivers/scsi/lpfc/lpfc_init.c memcpy(phba->wwpn, (char *)mb->un.varRDnvp.portname, mb 185 drivers/scsi/lpfc/lpfc_init.c mb->mbxCommand, mb->mbxStatus); mb 195 drivers/scsi/lpfc/lpfc_init.c if (mb->un.varRdRev.rr == 0) { mb 204 drivers/scsi/lpfc/lpfc_init.c if (phba->sli_rev == 3 && !mb->un.varRdRev.v3rsp) { mb 211 drivers/scsi/lpfc/lpfc_init.c memcpy(&vp->sli3Feat, &mb->un.varRdRev.sli3Feat, sizeof(uint32_t)); mb 212 drivers/scsi/lpfc/lpfc_init.c vp->rev.sli1FwRev = mb->un.varRdRev.sli1FwRev; mb 213 drivers/scsi/lpfc/lpfc_init.c memcpy(vp->rev.sli1FwName, (char*) mb->un.varRdRev.sli1FwName, 16); mb 214 drivers/scsi/lpfc/lpfc_init.c vp->rev.sli2FwRev = mb->un.varRdRev.sli2FwRev; mb 215 drivers/scsi/lpfc/lpfc_init.c memcpy(vp->rev.sli2FwName, (char *) mb->un.varRdRev.sli2FwName, 16); mb 216 drivers/scsi/lpfc/lpfc_init.c vp->rev.biuRev = mb->un.varRdRev.biuRev; mb 217 drivers/scsi/lpfc/lpfc_init.c vp->rev.smRev = mb->un.varRdRev.smRev; mb 218 drivers/scsi/lpfc/lpfc_init.c vp->rev.smFwRev = mb->un.varRdRev.un.smFwRev; mb 219 drivers/scsi/lpfc/lpfc_init.c vp->rev.endecRev = mb->un.varRdRev.endecRev; mb 220 drivers/scsi/lpfc/lpfc_init.c vp->rev.fcphHigh = mb->un.varRdRev.fcphHigh; mb 221 drivers/scsi/lpfc/lpfc_init.c vp->rev.fcphLow = mb->un.varRdRev.fcphLow; mb 222 drivers/scsi/lpfc/lpfc_init.c vp->rev.feaLevelHigh = mb->un.varRdRev.feaLevelHigh; mb 223 drivers/scsi/lpfc/lpfc_init.c vp->rev.feaLevelLow = mb->un.varRdRev.feaLevelLow; mb 224 drivers/scsi/lpfc/lpfc_init.c vp->rev.postKernRev = mb->un.varRdRev.postKernRev; mb 225 drivers/scsi/lpfc/lpfc_init.c vp->rev.opFwRev = mb->un.varRdRev.opFwRev; mb 235 drivers/scsi/lpfc/lpfc_init.c memcpy(phba->RandomData, (char *)&mb->un.varWords[24], mb 250 drivers/scsi/lpfc/lpfc_init.c mb->mbxCommand, mb->mbxStatus); mb 251 drivers/scsi/lpfc/lpfc_init.c mb->un.varDmp.word_cnt = 0; mb 256 drivers/scsi/lpfc/lpfc_init.c if (mb->un.varDmp.word_cnt == 0) mb 258 drivers/scsi/lpfc/lpfc_init.c if (mb->un.varDmp.word_cnt > DMP_VPD_SIZE - offset) mb 259 drivers/scsi/lpfc/lpfc_init.c mb->un.varDmp.word_cnt = DMP_VPD_SIZE - offset; mb 260 drivers/scsi/lpfc/lpfc_init.c lpfc_sli_pcimem_bcopy(((uint8_t *)mb) + DMP_RSP_OFFSET, mb 262 drivers/scsi/lpfc/lpfc_init.c mb->un.varDmp.word_cnt); mb 263 drivers/scsi/lpfc/lpfc_init.c offset += mb->un.varDmp.word_cnt; mb 264 drivers/scsi/lpfc/lpfc_init.c } while (mb->un.varDmp.word_cnt && offset < DMP_VPD_SIZE); mb 286 drivers/scsi/lpfc/lpfc_init.c if (pmboxq->u.mb.mbxStatus == MBX_SUCCESS) mb 313 drivers/scsi/lpfc/lpfc_init.c if (pmboxq->u.mb.mbxStatus != MBX_SUCCESS) { mb 321 drivers/scsi/lpfc/lpfc_init.c prog_id_word = pmboxq->u.mb.un.varWords[7]; mb 415 drivers/scsi/lpfc/lpfc_init.c MAILBOX_t *mb; mb 436 drivers/scsi/lpfc/lpfc_init.c mb = &pmb->u.mb; mb 450 drivers/scsi/lpfc/lpfc_init.c mb->mbxCommand, mb->mbxStatus); mb 504 drivers/scsi/lpfc/lpfc_init.c mb->mbxCommand, mb->mbxStatus); mb 514 drivers/scsi/lpfc/lpfc_init.c i = (mb->un.varRdConfig.max_xri + 1); mb 523 drivers/scsi/lpfc/lpfc_init.c i = (mb->un.varRdConfig.max_xri >> 3); mb 531 drivers/scsi/lpfc/lpfc_init.c phba->lmt = mb->un.varRdConfig.lmt; mb 562 drivers/scsi/lpfc/lpfc_init.c pmb->u.mb.mbxCommand, mb 563 drivers/scsi/lpfc/lpfc_init.c pmb->u.mb.mbxStatus); mb 715 drivers/scsi/lpfc/lpfc_init.c MAILBOX_t *mb; mb 723 drivers/scsi/lpfc/lpfc_init.c mb = &pmb->u.mb; mb 759 drivers/scsi/lpfc/lpfc_init.c mb->mbxCommand, mb->mbxStatus); mb 2998 drivers/scsi/lpfc/lpfc_init.c actcmd = phba->sli.mbox_active->u.mb.mbxCommand; mb 4195 drivers/scsi/lpfc/lpfc_init.c MAILBOX_t *mb; mb 4214 drivers/scsi/lpfc/lpfc_init.c mb = &mboxq->u.mb; mb 4215 drivers/scsi/lpfc/lpfc_init.c memcpy(&wwn, (char *)mb->un.varRDnvp.portname, sizeof(uint64_t)); mb 4873 drivers/scsi/lpfc/lpfc_init.c MAILBOX_t *mb; mb 4959 drivers/scsi/lpfc/lpfc_init.c mb = &pmb->u.mb; mb 4960 drivers/scsi/lpfc/lpfc_init.c mb->mbxStatus = MBX_SUCCESS; mb 4966 drivers/scsi/lpfc/lpfc_init.c la = (struct lpfc_mbx_read_top *) &pmb->u.mb.un.varReadTop; mb 5135 drivers/scsi/lpfc/lpfc_init.c MAILBOX_t *mb; mb 5235 drivers/scsi/lpfc/lpfc_init.c mb = &pmb->u.mb; mb 5236 drivers/scsi/lpfc/lpfc_init.c mb->mbxStatus = MBX_SUCCESS; mb 5242 drivers/scsi/lpfc/lpfc_init.c la = (struct lpfc_mbx_read_top *)&pmb->u.mb.un.varReadTop; mb 6416 drivers/scsi/lpfc/lpfc_init.c MAILBOX_t *mb; mb 6605 drivers/scsi/lpfc/lpfc_init.c mb = &mboxq->u.mb; mb 6606 drivers/scsi/lpfc/lpfc_init.c memcpy(&wwn, (char *)mb->un.varRDnvp.nodename, mb 6610 drivers/scsi/lpfc/lpfc_init.c memcpy(&wwn, (char *)mb->un.varRDnvp.portname, mb 10416 drivers/scsi/lpfc/lpfc_init.c pmb->u.mb.mbxCommand, pmb->u.mb.mbxStatus); mb 11531 drivers/scsi/lpfc/lpfc_init.c mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; mb 62 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 65 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 69 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_DUMP_MEMORY; mb 70 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.type = DMP_NV_PARAMS; mb 71 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.entry_index = offset; mb 72 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.region_id = DMP_REGION_VPORT; mb 73 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 77 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.cv = 1; mb 78 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); mb 98 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varWords[3] = putPaddrLow(mp->phys); mb 99 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varWords[4] = putPaddrHigh(mp->phys); mb 100 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.sli4_length = sizeof(struct static_vport_info); mb 115 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 117 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 118 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_DOWN_LINK; mb 119 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 138 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 141 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 146 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_DUMP_MEMORY; mb 147 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.cv = 1; mb 148 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.type = DMP_NV_PARAMS; mb 149 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.entry_index = offset; mb 150 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.region_id = region_id; mb 151 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.word_cnt = (DMP_RSP_SIZE / sizeof (uint32_t)); mb 152 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.co = 0; mb 153 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.resp_offset = 0; mb 155 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 170 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 173 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 179 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_DUMP_MEMORY; mb 180 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 181 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.cv = 1; mb 182 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.type = DMP_NV_PARAMS; mb 184 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.entry_index = 0; mb 185 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.region_id = WAKE_UP_PARMS_REGION_ID; mb 186 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.word_cnt = WAKE_UP_PARMS_WORD_SIZE; mb 187 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.co = 0; mb 188 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.resp_offset = 0; mb 207 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 209 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 211 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_READ_NV; mb 212 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 233 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 235 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 237 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_ASYNCEVT_ENABLE; mb 238 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgAsyncEvent.ring = ring; mb 239 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 259 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 261 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 263 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_HEARTBEAT; mb 264 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 293 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 295 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 299 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_READ_TOPOLOGY; mb 300 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varReadTop.lilpBde64.tus.f.bdeSize = LPFC_ALPA_MAP_SIZE; mb 301 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varReadTop.lilpBde64.addrHigh = putPaddrHigh(mp->phys); mb 302 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varReadTop.lilpBde64.addrLow = putPaddrLow(mp->phys); mb 308 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 330 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 332 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 335 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varClearLA.eventTag = phba->fc_eventTag; mb 336 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_CLEAR_LA; mb 337 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 359 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 366 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.cr = 1; mb 367 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.ci = 1; mb 368 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.cr_delay = phba->cfg_cr_delay; mb 369 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.cr_count = phba->cfg_cr_count; mb 372 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.myId = vport->fc_myDID; mb 373 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.edtov = phba->fc_edtov; mb 374 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.arbtov = phba->fc_arbtov; mb 375 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.ratov = phba->fc_ratov; mb 376 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.rttov = phba->fc_rttov; mb 377 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.altov = phba->fc_altov; mb 378 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.crtov = phba->fc_crtov; mb 379 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.cscn = 0; mb 381 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.cscn = 1; mb 382 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.bbscn = bf_get(lpfc_bbscn_def, mb 387 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgLnk.ack0_enable = 1; mb 389 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_CONFIG_LINK; mb 390 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 410 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 440 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.attentionConditions[0] = attentionConditions[0]; mb 441 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.attentionConditions[1] = attentionConditions[1]; mb 448 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.messageNumberByHA[HA_R0_POS] = 1; mb 450 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.messageNumberByHA[HA_R1_POS] = 1; mb 453 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.messageNumberByHA[HA_R0_POS^3] = 1; mb 455 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.messageNumberByHA[HA_R1_POS^3] = 1; mb 458 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.autoClearHA[0] = attentionConditions[0]; mb 459 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.autoClearHA[1] = attentionConditions[1]; mb 462 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.autoClearHA[0] = 0; mb 463 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgMSI.autoClearHA[1] = 0; mb 466 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_CONFIG_MSI; mb 467 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 491 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 493 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 498 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_LOOP; mb 499 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_TOPOLOGY_FAILOVER; mb 502 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_PT_PT; mb 505 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_LOOP; mb 508 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_PT_PT; mb 509 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_TOPOLOGY_FAILOVER; mb 512 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags = FLAGS_LOCAL_LB; mb 518 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags & FLAGS_TOPOLOGY_MODE_LOOP) { mb 519 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_PT_PT; mb 524 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_IMED_ABORT; mb 533 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 534 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_1G; mb 537 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 538 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_2G; mb 541 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 542 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_4G; mb 545 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 546 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_8G; mb 549 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 550 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_10G; mb 553 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 554 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_16G; mb 557 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 558 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_32G; mb 561 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; mb 562 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_64G; mb 566 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_AUTO; mb 572 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.link_speed = LINK_SPEED_AUTO; mb 574 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = (volatile uint8_t)MBX_INIT_LINK; mb 575 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 576 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varInitLnk.fabric_AL_PA = phba->fc_pref_ALPA; mb 605 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 607 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 610 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 619 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_READ_SPARM64; mb 626 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_READ_SPARM64; mb 627 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRdSparm.un.sp64.tus.f.bdeSize = sizeof (struct serv_parm); mb 628 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRdSparm.un.sp64.addrHigh = putPaddrHigh(mp->phys); mb 629 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRdSparm.un.sp64.addrLow = putPaddrLow(mp->phys); mb 631 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRdSparm.vpi = phba->vpi_ids[vpi]; mb 658 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 660 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 663 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregDID.did = did; mb 664 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregDID.vpi = vpi; mb 667 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregDID.vpi = phba->vpi_ids[vpi]; mb 669 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_UNREG_D_ID; mb 670 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 690 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 692 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 695 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_READ_CONFIG; mb 696 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 715 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 717 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 720 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_READ_LNK_STAT; mb 721 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 753 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 759 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.rpi = 0; mb 761 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.rpi = phba->sli4_hba.rpi_ids[rpi]; mb 763 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.vpi = phba->vpi_ids[vpi]; mb 764 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.did = did; mb 765 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 772 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_REG_LOGIN64; mb 788 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_REG_LOGIN64; mb 789 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.un.sp64.tus.f.bdeSize = sizeof (struct serv_parm); mb 790 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.un.sp64.addrHigh = putPaddrHigh(mp->phys); mb 791 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.un.sp64.addrLow = putPaddrLow(mp->phys); mb 817 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 819 drivers/scsi/lpfc/lpfc_mbox.c mb = &pmb->u.mb; mb 822 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregLogin.rpi = rpi; mb 823 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregLogin.rsvd1 = 0; mb 825 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregLogin.vpi = phba->vpi_ids[vpi]; mb 827 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_UNREG_LOGIN; mb 828 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 858 drivers/scsi/lpfc/lpfc_mbox.c mbox->u.mb.un.varUnregLogin.rsvd1 = 0x4000; mb 886 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 895 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.upd = 1; mb 897 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.vpi = phba->vpi_ids[vport->vpi]; mb 898 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.sid = vport->fc_myDID; mb 900 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.vfi = phba->sli4_hba.vfi_ids[vport->vfi]; mb 902 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.vfi = vport->vfi + vport->phba->vfi_base; mb 903 drivers/scsi/lpfc/lpfc_mbox.c memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, mb 905 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); mb 906 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); mb 908 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_REG_VPI; mb 909 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 933 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 937 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregVpi.vpi = phba->vpi_ids[vpi]; mb 939 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varUnregVpi.sli4_vpi = phba->vpi_ids[vpi]; mb 941 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_UNREG_VPI; mb 942 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 1031 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 1033 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRdRev.cv = 1; mb 1034 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRdRev.v3req = 1; /* Request SLI3 info */ mb 1035 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_READ_REV; mb 1036 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 1043 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 1046 drivers/scsi/lpfc/lpfc_mbox.c switch (mb->mbxCommand) { mb 1144 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 1145 drivers/scsi/lpfc/lpfc_mbox.c struct config_hbq_var *hbqmb = &mb->un.varCfgHbq; mb 1170 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_CONFIG_HBQ; mb 1171 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 1219 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 1225 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.ring = ring; mb 1226 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.maxOrigXchg = 0; mb 1227 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.maxRespXchg = 0; mb 1228 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.recvNotify = 1; mb 1232 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.numMask = pring->num_mask; mb 1233 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_CONFIG_RING; mb 1234 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 1238 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.profile = pring->prt[0].profile; mb 1244 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.rrRegs[i].rval = pring->prt[i].rctl; mb 1245 drivers/scsi/lpfc/lpfc_mbox.c if (mb->un.varCfgRing.rrRegs[i].rval != FC_RCTL_ELS_REQ) mb 1246 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.rrRegs[i].rmask = 0xff; mb 1248 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.rrRegs[i].rmask = 0xfe; mb 1249 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.rrRegs[i].tval = pring->prt[i].type; mb 1250 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgRing.rrRegs[i].tmask = 0xff; mb 1274 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 1283 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_CONFIG_PORT; mb 1284 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 1286 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.pcbLen = sizeof(PCB_t); mb 1290 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.pcbLow = putPaddrLow(pdma_addr); mb 1291 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.pcbHigh = putPaddrHigh(pdma_addr); mb 1294 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.hps = 1; mb 1300 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.cbg = 1; /* configure BlockGuard */ mb 1302 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.cdss = 1; /* Configure Security */ mb 1303 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.cerbm = 1; /* Request HBQs */ mb 1304 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.ccrp = 1; /* Command Ring Polling */ mb 1305 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.max_hbq = lpfc_sli_hbq_count(); mb 1308 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.max_vpi = LPFC_MAX_VPI; mb 1309 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.cmv = 1; mb 1311 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.max_vpi = phba->max_vpi = 0; mb 1314 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.sli_mode = phba->sli_rev; mb 1318 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.casabt = 1; mb 1391 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varCfgPort.hps = 1; mb 1437 drivers/scsi/lpfc/lpfc_mbox.c memcpy(&mb->un.varCfgPort.hbainit, hbainit, 20); mb 1462 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb = &pmb->u.mb; mb 1465 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_KILL_BOARD; mb 1466 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxOwner = OWN_HOST; mb 1581 drivers/scsi/lpfc/lpfc_mbox.c mboxq->u.mb.mbxCommand); mb 1627 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mbox = &mboxq->u.mb; mb 1962 drivers/scsi/lpfc/lpfc_mbox.c if (mbox->u.mb.mbxCommand != MBX_SLI4_CONFIG) mb 1995 drivers/scsi/lpfc/lpfc_mbox.c if (mbox->u.mb.mbxCommand != MBX_SLI4_CONFIG) mb 2269 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 2272 drivers/scsi/lpfc/lpfc_mbox.c mb = &mbox->u.mb; mb 2293 drivers/scsi/lpfc/lpfc_mbox.c mb->mbxCommand = MBX_DUMP_MEMORY; mb 2294 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.type = DMP_NV_PARAMS; mb 2295 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.region_id = DMP_REGION_23; mb 2296 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varDmp.sli4_length = DMP_RGN23_SIZE; mb 2297 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varWords[3] = putPaddrLow(mp->phys); mb 2298 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varWords[4] = putPaddrHigh(mp->phys); mb 2305 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mb; mb 2310 drivers/scsi/lpfc/lpfc_mbox.c mb = &mboxq->u.mb; mb 2311 drivers/scsi/lpfc/lpfc_mbox.c if (mb->mbxStatus) mb 2314 drivers/scsi/lpfc/lpfc_mbox.c memcpy(&rdp_context->link_stat, &mb->un.varRdLnk, sizeof(READ_LNK_VAR)); mb 941 drivers/scsi/lpfc/lpfc_nportdisc.c (!pmb->u.mb.mbxStatus)) { mb 942 drivers/scsi/lpfc/lpfc_nportdisc.c rpi = pmb->u.mb.un.varWords[0]; mb 1363 drivers/scsi/lpfc/lpfc_nportdisc.c MAILBOX_t *mb = &pmb->u.mb; mb 1369 drivers/scsi/lpfc/lpfc_nportdisc.c !mb->mbxStatus) { mb 1370 drivers/scsi/lpfc/lpfc_nportdisc.c rpi = pmb->u.mb.un.varWords[0]; mb 1669 drivers/scsi/lpfc/lpfc_nportdisc.c LPFC_MBOXQ_t *mb; mb 1677 drivers/scsi/lpfc/lpfc_nportdisc.c if ((mb = phba->sli.mbox_active)) { mb 1678 drivers/scsi/lpfc/lpfc_nportdisc.c if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) && mb 1679 drivers/scsi/lpfc/lpfc_nportdisc.c (ndlp == (struct lpfc_nodelist *)mb->ctx_ndlp)) { mb 1682 drivers/scsi/lpfc/lpfc_nportdisc.c mb->ctx_ndlp = NULL; mb 1683 drivers/scsi/lpfc/lpfc_nportdisc.c mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mb 1688 drivers/scsi/lpfc/lpfc_nportdisc.c list_for_each_entry_safe(mb, nextmb, &phba->sli.mboxq, list) { mb 1689 drivers/scsi/lpfc/lpfc_nportdisc.c if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) && mb 1690 drivers/scsi/lpfc/lpfc_nportdisc.c (ndlp == (struct lpfc_nodelist *)mb->ctx_ndlp)) { mb 1691 drivers/scsi/lpfc/lpfc_nportdisc.c mp = (struct lpfc_dmabuf *)(mb->ctx_buf); mb 1698 drivers/scsi/lpfc/lpfc_nportdisc.c list_del(&mb->list); mb 1700 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mb, phba->mbox_mem_pool); mb 1750 drivers/scsi/lpfc/lpfc_nportdisc.c MAILBOX_t *mb = &pmb->u.mb; mb 1751 drivers/scsi/lpfc/lpfc_nportdisc.c uint32_t did = mb->un.varWords[1]; mb 1753 drivers/scsi/lpfc/lpfc_nportdisc.c if (mb->mbxStatus) { mb 1758 drivers/scsi/lpfc/lpfc_nportdisc.c did, mb->mbxStatus, vport->port_state, mb 1759 drivers/scsi/lpfc/lpfc_nportdisc.c mb->un.varRegLogin.vpi, mb 1760 drivers/scsi/lpfc/lpfc_nportdisc.c mb->un.varRegLogin.rpi); mb 1765 drivers/scsi/lpfc/lpfc_nportdisc.c if (mb->mbxStatus == MBXERR_RPI_FULL) { mb 1787 drivers/scsi/lpfc/lpfc_nportdisc.c ndlp->nlp_rpi = mb->un.varWords[0]; mb 2669 drivers/scsi/lpfc/lpfc_nportdisc.c MAILBOX_t *mb = &pmb->u.mb; mb 2671 drivers/scsi/lpfc/lpfc_nportdisc.c if (!mb->mbxStatus) { mb 2674 drivers/scsi/lpfc/lpfc_nportdisc.c ndlp->nlp_rpi = mb->un.varWords[0]; mb 346 drivers/scsi/lpfc/lpfc_sli.c mb(); mb 560 drivers/scsi/lpfc/lpfc_sli.c mb(); mb 1546 drivers/scsi/lpfc/lpfc_sli.c pmbox = &pmb->u.mb; mb 2480 drivers/scsi/lpfc/lpfc_sli.c pmb->u.mb.mbxCommand == MBX_REG_LOGIN64 && mb 2481 drivers/scsi/lpfc/lpfc_sli.c !pmb->u.mb.mbxStatus) { mb 2482 drivers/scsi/lpfc/lpfc_sli.c rpi = pmb->u.mb.un.varWords[0]; mb 2483 drivers/scsi/lpfc/lpfc_sli.c vpi = pmb->u.mb.un.varRegLogin.vpi; mb 2494 drivers/scsi/lpfc/lpfc_sli.c if ((pmb->u.mb.mbxCommand == MBX_REG_VPI) && mb 2496 drivers/scsi/lpfc/lpfc_sli.c !pmb->u.mb.mbxStatus) { mb 2504 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.mbxCommand == MBX_REG_LOGIN64) { mb 2511 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.mbxCommand == MBX_UNREG_LOGIN) { mb 2539 drivers/scsi/lpfc/lpfc_sli.c if ((pmb->u.mb.mbxCommand == MBX_INIT_LINK) && mb 2540 drivers/scsi/lpfc/lpfc_sli.c (pmb->u.mb.mbxStatus == MBXERR_SEC_NO_PERMISSION)) mb 2570 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.mbxCommand == MBX_UNREG_LOGIN) { mb 2650 drivers/scsi/lpfc/lpfc_sli.c pmbox = &pmb->u.mb; mb 4546 drivers/scsi/lpfc/lpfc_sli.c MAILBOX_t *mb; mb 4566 drivers/scsi/lpfc/lpfc_sli.c mb = (MAILBOX_t *) &word0; mb 4567 drivers/scsi/lpfc/lpfc_sli.c mb->mbxCommand = MBX_RESTART; mb 4568 drivers/scsi/lpfc/lpfc_sli.c mb->mbxHc = 1; mb 4573 drivers/scsi/lpfc/lpfc_sli.c writel(*(uint32_t *) mb, to_slim); mb 4582 drivers/scsi/lpfc/lpfc_sli.c writel(*(uint32_t *) mb, to_slim); mb 4839 drivers/scsi/lpfc/lpfc_sli.c pmbox = &pmb->u.mb; mb 4967 drivers/scsi/lpfc/lpfc_sli.c pmb->u.mb.mbxCommand, pmb->u.mb.mbxStatus, 0); mb 4979 drivers/scsi/lpfc/lpfc_sli.c if ((pmb->u.mb.un.varCfgPort.casabt == 1) && mb 4980 drivers/scsi/lpfc/lpfc_sli.c (pmb->u.mb.un.varCfgPort.gasabt == 0)) mb 4989 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.un.varCfgPort.sli_mode == 3) { mb 4990 drivers/scsi/lpfc/lpfc_sli.c if (!pmb->u.mb.un.varCfgPort.cMA) { mb 4994 drivers/scsi/lpfc/lpfc_sli.c if (phba->max_vpi && pmb->u.mb.un.varCfgPort.gmv) { mb 4996 drivers/scsi/lpfc/lpfc_sli.c phba->max_vpi = pmb->u.mb.un.varCfgPort.max_vpi; mb 5004 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.un.varCfgPort.gdss) { mb 5006 drivers/scsi/lpfc/lpfc_sli.c phba->fips_level = pmb->u.mb.un.varCfgPort.fips_level; mb 5007 drivers/scsi/lpfc/lpfc_sli.c phba->fips_spec_rev = pmb->u.mb.un.varCfgPort.fips_rev; mb 5013 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.un.varCfgPort.sec_err) { mb 5017 drivers/scsi/lpfc/lpfc_sli.c pmb->u.mb.un.varCfgPort.sec_err); mb 5019 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.un.varCfgPort.gerbm) mb 5021 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.un.varCfgPort.gcrp) mb 5028 drivers/scsi/lpfc/lpfc_sli.c if (pmb->u.mb.un.varCfgPort.gbg == 0) { mb 6316 drivers/scsi/lpfc/lpfc_sli.c MAILBOX_t *mb; mb 6321 drivers/scsi/lpfc/lpfc_sli.c mb = &pmb->u.mb; mb 6328 drivers/scsi/lpfc/lpfc_sli.c if (mb->mbxStatus != MBX_SUCCESS || shdr_status) { mb 6333 drivers/scsi/lpfc/lpfc_sli.c shdr_status, shdr_add_status, mb->mbxStatus); mb 7926 drivers/scsi/lpfc/lpfc_sli.c MAILBOX_t *mb = NULL; mb 7935 drivers/scsi/lpfc/lpfc_sli.c mb = &pmbox->u.mb; mb 7954 drivers/scsi/lpfc/lpfc_sli.c mb->mbxCommand, mb 8045 drivers/scsi/lpfc/lpfc_sli.c pmbox->u.mb.mbxCommand); mb 8065 drivers/scsi/lpfc/lpfc_sli.c mbx = &pmbox->u.mb; mb 8076 drivers/scsi/lpfc/lpfc_sli.c pmbox->u.mb.mbxCommand, psli->sli_flag, flag); mb 8088 drivers/scsi/lpfc/lpfc_sli.c pmbox->u.mb.mbxCommand, psli->sli_flag, flag); mb 8107 drivers/scsi/lpfc/lpfc_sli.c pmbox->u.mb.mbxCommand, mb 8119 drivers/scsi/lpfc/lpfc_sli.c pmbox->u.mb.mbxCommand, mb 8172 drivers/scsi/lpfc/lpfc_sli.c pmbox->u.mb.mbxCommand, mb 8394 drivers/scsi/lpfc/lpfc_sli.c pmbox->u.mb.mbxStatus = MBX_NOT_FINISHED; mb 8548 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_mqe *mb = &mboxq->u.mqe; mb 8563 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxCommand, mb 8583 drivers/scsi/lpfc/lpfc_sli.c mbx_cmnd = bf_get(lpfc_mqe_command, mb); mb 8585 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_pcimem_bcopy(mb, phba->sli4_hba.bmbx.avirt, mb 8610 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_pcimem_bcopy(phba->sli4_hba.bmbx.avirt, mb, mb 8622 drivers/scsi/lpfc/lpfc_sli.c if (bf_get(lpfc_mqe_status, mb) == MBX_SUCCESS) mb 8623 drivers/scsi/lpfc/lpfc_sli.c bf_set(lpfc_mqe_status, mb, mb 8636 drivers/scsi/lpfc/lpfc_sli.c bf_get(lpfc_mqe_status, mb), mb 8637 drivers/scsi/lpfc/lpfc_sli.c mb->un.mb_words[0], mb->un.mb_words[1], mb 8638 drivers/scsi/lpfc/lpfc_sli.c mb->un.mb_words[2], mb->un.mb_words[3], mb 8639 drivers/scsi/lpfc/lpfc_sli.c mb->un.mb_words[4], mb->un.mb_words[5], mb 8640 drivers/scsi/lpfc/lpfc_sli.c mb->un.mb_words[6], mb->un.mb_words[7], mb 8641 drivers/scsi/lpfc/lpfc_sli.c mb->un.mb_words[8], mb->un.mb_words[9], mb 8642 drivers/scsi/lpfc/lpfc_sli.c mb->un.mb_words[10], mb->un.mb_words[11], mb 8643 drivers/scsi/lpfc/lpfc_sli.c mb->un.mb_words[12], mboxq->mcqe.word0, mb 8676 drivers/scsi/lpfc/lpfc_sli.c lpfc_idiag_mbxacc_dump_issue_mbox(phba, &mboxq->u.mb); mb 8684 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxCommand, mb 8704 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxCommand, mb 8721 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxCommand, mb 8738 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxCommand, mb 8761 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxCommand, mb 8890 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxCommand, mb 8902 drivers/scsi/lpfc/lpfc_sli.c mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; mb 10616 drivers/scsi/lpfc/lpfc_sli.c pmb->u.mb.mbxStatus = MBX_NOT_FINISHED; mb 12498 drivers/scsi/lpfc/lpfc_sli.c pmbox = &pmb->u.mb; mb 19154 drivers/scsi/lpfc/lpfc_sli.c MAILBOX_t *mb; mb 19167 drivers/scsi/lpfc/lpfc_sli.c mb = &pmb->u.mb; mb 19177 drivers/scsi/lpfc/lpfc_sli.c rc, mb->mbxStatus); mb 19178 drivers/scsi/lpfc/lpfc_sli.c mb->un.varDmp.word_cnt = 0; mb 19184 drivers/scsi/lpfc/lpfc_sli.c if (mb->un.varDmp.word_cnt == 0) mb 19186 drivers/scsi/lpfc/lpfc_sli.c if (mb->un.varDmp.word_cnt > DMP_RGN23_SIZE - offset) mb 19187 drivers/scsi/lpfc/lpfc_sli.c mb->un.varDmp.word_cnt = DMP_RGN23_SIZE - offset; mb 19189 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli_pcimem_bcopy(((uint8_t *)mb) + DMP_RSP_OFFSET, mb 19191 drivers/scsi/lpfc/lpfc_sli.c mb->un.varDmp.word_cnt); mb 19192 drivers/scsi/lpfc/lpfc_sli.c offset += mb->un.varDmp.word_cnt; mb 19193 drivers/scsi/lpfc/lpfc_sli.c } while (mb->un.varDmp.word_cnt && offset < DMP_RGN23_SIZE); mb 19485 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mb, *nextmb; mb 19495 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry_safe(mb, nextmb, &phba->sli.mboxq, list) { mb 19496 drivers/scsi/lpfc/lpfc_sli.c if (mb->vport != vport) mb 19499 drivers/scsi/lpfc/lpfc_sli.c if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) && mb 19500 drivers/scsi/lpfc/lpfc_sli.c (mb->u.mb.mbxCommand != MBX_REG_VPI)) mb 19503 drivers/scsi/lpfc/lpfc_sli.c list_del(&mb->list); mb 19504 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&mb->list, &mbox_cmd_list); mb 19507 drivers/scsi/lpfc/lpfc_sli.c mb = phba->sli.mbox_active; mb 19508 drivers/scsi/lpfc/lpfc_sli.c if (mb && (mb->vport == vport)) { mb 19509 drivers/scsi/lpfc/lpfc_sli.c if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) || mb 19510 drivers/scsi/lpfc/lpfc_sli.c (mb->u.mb.mbxCommand == MBX_REG_VPI)) mb 19511 drivers/scsi/lpfc/lpfc_sli.c mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mb 19512 drivers/scsi/lpfc/lpfc_sli.c if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { mb 19513 drivers/scsi/lpfc/lpfc_sli.c act_mbx_ndlp = (struct lpfc_nodelist *)mb->ctx_ndlp; mb 19517 drivers/scsi/lpfc/lpfc_sli.c mb->mbox_flag |= LPFC_MBX_IMED_UNREG; mb 19523 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(mb, &phba->sli.mboxq_cmpl, list) { mb 19528 drivers/scsi/lpfc/lpfc_sli.c if ((mb->vport != vport) || mb 19529 drivers/scsi/lpfc/lpfc_sli.c (mb->mbox_flag & LPFC_MBX_IMED_UNREG)) mb 19532 drivers/scsi/lpfc/lpfc_sli.c if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) && mb 19533 drivers/scsi/lpfc/lpfc_sli.c (mb->u.mb.mbxCommand != MBX_REG_VPI)) mb 19536 drivers/scsi/lpfc/lpfc_sli.c mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mb 19537 drivers/scsi/lpfc/lpfc_sli.c if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { mb 19538 drivers/scsi/lpfc/lpfc_sli.c ndlp = (struct lpfc_nodelist *)mb->ctx_ndlp; mb 19540 drivers/scsi/lpfc/lpfc_sli.c mb->mbox_flag |= LPFC_MBX_IMED_UNREG; mb 19556 drivers/scsi/lpfc/lpfc_sli.c list_remove_head(&mbox_cmd_list, mb, LPFC_MBOXQ_t, list); mb 19557 drivers/scsi/lpfc/lpfc_sli.c if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { mb 19558 drivers/scsi/lpfc/lpfc_sli.c mp = (struct lpfc_dmabuf *)(mb->ctx_buf); mb 19563 drivers/scsi/lpfc/lpfc_sli.c mb->ctx_buf = NULL; mb 19564 drivers/scsi/lpfc/lpfc_sli.c ndlp = (struct lpfc_nodelist *)mb->ctx_ndlp; mb 19565 drivers/scsi/lpfc/lpfc_sli.c mb->ctx_ndlp = NULL; mb 19573 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mb, phba->mbox_mem_pool); mb 149 drivers/scsi/lpfc/lpfc_sli.h MAILBOX_t mb; /* Mailbox cmd */ mb 121 drivers/scsi/lpfc/lpfc_vport.c MAILBOX_t *mb; mb 129 drivers/scsi/lpfc/lpfc_vport.c mb = &pmb->u.mb; mb 150 drivers/scsi/lpfc/lpfc_vport.c mb->mbxCommand); mb 160 drivers/scsi/lpfc/lpfc_vport.c mb->mbxCommand, mb->mbxStatus, rc); mb 2649 drivers/scsi/myrb.c mb(); mb 2925 drivers/scsi/myrb.c mb(); mb 2524 drivers/scsi/myrs.c mb(); mb 2772 drivers/scsi/myrs.c mb(); mb 3022 drivers/scsi/myrs.c mb(); mb 314 drivers/scsi/ncr53c8xx.h #define MEMORY_BARRIER() mb() mb 1577 drivers/scsi/pm8001/pm8001_hwi.c mb();/* in order to force CPU ordering */ mb 2099 drivers/scsi/pm8001/pm8001_hwi.c mb();/* in order to force CPU ordering */ mb 2287 drivers/scsi/pm8001/pm8001_hwi.c mb();/* in order to force CPU ordering */ mb 3094 drivers/scsi/pm8001/pm8001_hwi.c mb();/* in order to force CPU ordering */ mb 3773 drivers/scsi/pm8001/pm8001_hwi.c mb(); mb 983 drivers/scsi/pm8001/pm8001_sas.c mb();/* in order to force CPU ordering */ mb 1801 drivers/scsi/pm8001/pm80xx_hwi.c mb();/* in order to force CPU ordering */ mb 1998 drivers/scsi/pm8001/pm80xx_hwi.c mb();/* in order to force CPU ordering */ mb 2848 drivers/scsi/pm8001/pm80xx_hwi.c mb();/* in order to force CPU ordering */ mb 873 drivers/scsi/pmcraid.c mb(); mb 1118 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 1127 drivers/scsi/qla1280.c mb[0] = MBC_SET_TARGET_PARAMETERS; mb 1128 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); mb 1129 drivers/scsi/qla1280.c mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; mb 1130 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; mb 1131 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; mb 1132 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; mb 1133 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; mb 1134 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; mb 1135 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; mb 1136 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.disconnect_allowed << 15; mb 1139 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; mb 1140 drivers/scsi/qla1280.c mb[3] = (nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8); mb 1141 drivers/scsi/qla1280.c mb[6] = (nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8) | mb 1145 drivers/scsi/qla1280.c mb[3] = (nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8); mb 1147 drivers/scsi/qla1280.c mb[3] |= nv->bus[bus].target[target].sync_period; mb 1149 drivers/scsi/qla1280.c status = qla1280_mailbox_command(ha, mr, mb); mb 1153 drivers/scsi/qla1280.c mb[0] = MBC_SET_DEVICE_QUEUE; mb 1154 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); mb 1155 drivers/scsi/qla1280.c mb[1] |= lun; mb 1156 drivers/scsi/qla1280.c mb[2] = nv->bus[bus].max_queue_depth; mb 1157 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].execution_throttle; mb 1158 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, 0x0f, mb); mb 1556 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 1636 drivers/scsi/qla1280.c mb[0] = MBC_MAILBOX_REGISTER_TEST; mb 1637 drivers/scsi/qla1280.c mb[1] = 0xAAAA; mb 1638 drivers/scsi/qla1280.c mb[2] = 0x5555; mb 1639 drivers/scsi/qla1280.c mb[3] = 0xAA55; mb 1640 drivers/scsi/qla1280.c mb[4] = 0x55AA; mb 1641 drivers/scsi/qla1280.c mb[5] = 0xA5A5; mb 1642 drivers/scsi/qla1280.c mb[6] = 0x5A5A; mb 1643 drivers/scsi/qla1280.c mb[7] = 0x2525; mb 1645 drivers/scsi/qla1280.c status = qla1280_mailbox_command(ha, 0xff, mb); mb 1649 drivers/scsi/qla1280.c if (mb[1] != 0xAAAA || mb[2] != 0x5555 || mb[3] != 0xAA55 || mb 1650 drivers/scsi/qla1280.c mb[4] != 0x55AA || mb[5] != 0xA5A5 || mb[6] != 0x5A5A || mb 1651 drivers/scsi/qla1280.c mb[7] != 0x2525) { mb 1671 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT], i; mb 1687 drivers/scsi/qla1280.c mb[0] = MBC_WRITE_RAM_WORD; mb 1688 drivers/scsi/qla1280.c mb[1] = risc_address + i; mb 1689 drivers/scsi/qla1280.c mb[2] = __le16_to_cpu(fw_data[i]); mb 1691 drivers/scsi/qla1280.c err = qla1280_mailbox_command(ha, BIT_0 | BIT_1 | BIT_2, mb); mb 1710 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT], cnt; mb 1751 drivers/scsi/qla1280.c mb[0] = MBC_LOAD_RAM; mb 1752 drivers/scsi/qla1280.c mb[1] = risc_address; mb 1753 drivers/scsi/qla1280.c mb[4] = cnt; mb 1754 drivers/scsi/qla1280.c mb[3] = ha->request_dma & 0xffff; mb 1755 drivers/scsi/qla1280.c mb[2] = (ha->request_dma >> 16) & 0xffff; mb 1756 drivers/scsi/qla1280.c mb[7] = upper_32_bits(ha->request_dma) & 0xffff; mb 1757 drivers/scsi/qla1280.c mb[6] = upper_32_bits(ha->request_dma) >> 16; mb 1759 drivers/scsi/qla1280.c __func__, mb[0], mb 1761 drivers/scsi/qla1280.c mb[6], mb[7], mb[2], mb[3]); mb 1763 drivers/scsi/qla1280.c BIT_1 | BIT_0, mb); mb 1771 drivers/scsi/qla1280.c mb[0] = MBC_DUMP_RAM; mb 1772 drivers/scsi/qla1280.c mb[1] = risc_address; mb 1773 drivers/scsi/qla1280.c mb[4] = cnt; mb 1774 drivers/scsi/qla1280.c mb[3] = p_tbuf & 0xffff; mb 1775 drivers/scsi/qla1280.c mb[2] = (p_tbuf >> 16) & 0xffff; mb 1776 drivers/scsi/qla1280.c mb[7] = upper_32_bits(p_tbuf) & 0xffff; mb 1777 drivers/scsi/qla1280.c mb[6] = upper_32_bits(p_tbuf) >> 16; mb 1780 drivers/scsi/qla1280.c BIT_1 | BIT_0, mb); mb 1815 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 1822 drivers/scsi/qla1280.c mb[0] = MBC_VERIFY_CHECKSUM; mb 1824 drivers/scsi/qla1280.c mb[1] = ha->fwstart; mb 1825 drivers/scsi/qla1280.c err = qla1280_mailbox_command(ha, BIT_1 | BIT_0, mb); mb 1833 drivers/scsi/qla1280.c mb[0] = MBC_EXECUTE_FIRMWARE; mb 1834 drivers/scsi/qla1280.c mb[1] = ha->fwstart; mb 1835 drivers/scsi/qla1280.c err = qla1280_mailbox_command(ha, BIT_1 | BIT_0, &mb[0]); mb 1880 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 1894 drivers/scsi/qla1280.c mb[0] = MBC_INIT_REQUEST_QUEUE_A64; mb 1895 drivers/scsi/qla1280.c mb[1] = REQUEST_ENTRY_CNT; mb 1896 drivers/scsi/qla1280.c mb[3] = ha->request_dma & 0xffff; mb 1897 drivers/scsi/qla1280.c mb[2] = (ha->request_dma >> 16) & 0xffff; mb 1898 drivers/scsi/qla1280.c mb[4] = 0; mb 1899 drivers/scsi/qla1280.c mb[7] = upper_32_bits(ha->request_dma) & 0xffff; mb 1900 drivers/scsi/qla1280.c mb[6] = upper_32_bits(ha->request_dma) >> 16; mb 1903 drivers/scsi/qla1280.c &mb[0]))) { mb 1908 drivers/scsi/qla1280.c mb[0] = MBC_INIT_RESPONSE_QUEUE_A64; mb 1909 drivers/scsi/qla1280.c mb[1] = RESPONSE_ENTRY_CNT; mb 1910 drivers/scsi/qla1280.c mb[3] = ha->response_dma & 0xffff; mb 1911 drivers/scsi/qla1280.c mb[2] = (ha->response_dma >> 16) & 0xffff; mb 1912 drivers/scsi/qla1280.c mb[5] = 0; mb 1913 drivers/scsi/qla1280.c mb[7] = upper_32_bits(ha->response_dma) & 0xffff; mb 1914 drivers/scsi/qla1280.c mb[6] = upper_32_bits(ha->response_dma) >> 16; mb 1917 drivers/scsi/qla1280.c &mb[0]); mb 2066 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 2071 drivers/scsi/qla1280.c mb[0] = MBC_SET_TARGET_PARAMETERS; mb 2072 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); mb 2079 drivers/scsi/qla1280.c mb[2] = (TP_RENEGOTIATE | TP_AUTO_REQUEST_SENSE | TP_TAGGED_QUEUE mb 2083 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; mb 2085 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; mb 2086 drivers/scsi/qla1280.c mb[3] |= nv->bus[bus].target[target].sync_period; mb 2087 drivers/scsi/qla1280.c status = qla1280_mailbox_command(ha, 0x0f, mb); mb 2109 drivers/scsi/qla1280.c mb[0] = MBC_SET_DEVICE_QUEUE; mb 2110 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); mb 2111 drivers/scsi/qla1280.c mb[1] |= lun; mb 2112 drivers/scsi/qla1280.c mb[2] = nv->bus[bus].max_queue_depth; mb 2113 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].execution_throttle; mb 2114 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, 0x0f, mb); mb 2124 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 2133 drivers/scsi/qla1280.c mb[0] = MBC_SET_INITIATOR_ID; mb 2134 drivers/scsi/qla1280.c mb[1] = bus ? ha->bus_settings[bus].id | BIT_7 : mb 2136 drivers/scsi/qla1280.c status = qla1280_mailbox_command(ha, BIT_1 | BIT_0, &mb[0]); mb 2158 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 2220 drivers/scsi/qla1280.c mb[0] = MBC_SET_SYSTEM_PARAMETER; mb 2221 drivers/scsi/qla1280.c mb[1] = nv->isp_parameter; mb 2222 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_1 | BIT_0, &mb[0]); mb 2226 drivers/scsi/qla1280.c mb[0] = MBC_SET_CLOCK_RATE; mb 2227 drivers/scsi/qla1280.c mb[1] = 40; mb 2228 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_1 | BIT_0, mb); mb 2232 drivers/scsi/qla1280.c mb[0] = MBC_SET_FIRMWARE_FEATURES; mb 2233 drivers/scsi/qla1280.c mb[1] = nv->firmware_feature.f.enable_fast_posting; mb 2234 drivers/scsi/qla1280.c mb[1] |= nv->firmware_feature.f.report_lvd_bus_transition << 1; mb 2235 drivers/scsi/qla1280.c mb[1] |= nv->firmware_feature.f.disable_synchronous_backoff << 5; mb 2236 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_1 | BIT_0, mb); mb 2239 drivers/scsi/qla1280.c mb[0] = MBC_SET_RETRY_COUNT; mb 2240 drivers/scsi/qla1280.c mb[1] = nv->bus[0].retry_count; mb 2241 drivers/scsi/qla1280.c mb[2] = nv->bus[0].retry_delay; mb 2242 drivers/scsi/qla1280.c mb[6] = nv->bus[1].retry_count; mb 2243 drivers/scsi/qla1280.c mb[7] = nv->bus[1].retry_delay; mb 2245 drivers/scsi/qla1280.c BIT_1 | BIT_0, &mb[0]); mb 2248 drivers/scsi/qla1280.c mb[0] = MBC_SET_ASYNC_DATA_SETUP; mb 2249 drivers/scsi/qla1280.c mb[1] = nv->bus[0].config_2.async_data_setup_time; mb 2250 drivers/scsi/qla1280.c mb[2] = nv->bus[1].config_2.async_data_setup_time; mb 2251 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_2 | BIT_1 | BIT_0, &mb[0]); mb 2254 drivers/scsi/qla1280.c mb[0] = MBC_SET_ACTIVE_NEGATION; mb 2255 drivers/scsi/qla1280.c mb[1] = 0; mb 2257 drivers/scsi/qla1280.c mb[1] |= BIT_5; mb 2259 drivers/scsi/qla1280.c mb[1] |= BIT_4; mb 2260 drivers/scsi/qla1280.c mb[2] = 0; mb 2262 drivers/scsi/qla1280.c mb[2] |= BIT_5; mb 2264 drivers/scsi/qla1280.c mb[2] |= BIT_4; mb 2265 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_2 | BIT_1 | BIT_0, mb); mb 2267 drivers/scsi/qla1280.c mb[0] = MBC_SET_DATA_OVERRUN_RECOVERY; mb 2268 drivers/scsi/qla1280.c mb[1] = 2; /* Reset SCSI bus and return all outstanding IO */ mb 2269 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_1 | BIT_0, mb); mb 2272 drivers/scsi/qla1280.c mb[0] = MBC_SET_PCI_CONTROL; mb 2273 drivers/scsi/qla1280.c mb[1] = BIT_1; /* Data DMA Channel Burst Enable */ mb 2274 drivers/scsi/qla1280.c mb[2] = BIT_1; /* Command DMA Channel Burst Enable */ mb 2275 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_2 | BIT_1 | BIT_0, mb); mb 2277 drivers/scsi/qla1280.c mb[0] = MBC_SET_TAG_AGE_LIMIT; mb 2278 drivers/scsi/qla1280.c mb[1] = 8; mb 2279 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_1 | BIT_0, mb); mb 2282 drivers/scsi/qla1280.c mb[0] = MBC_SET_SELECTION_TIMEOUT; mb 2283 drivers/scsi/qla1280.c mb[1] = nv->bus[0].selection_timeout; mb 2284 drivers/scsi/qla1280.c mb[2] = nv->bus[1].selection_timeout; mb 2285 drivers/scsi/qla1280.c status |= qla1280_mailbox_command(ha, BIT_2 | BIT_1 | BIT_0, mb); mb 2415 drivers/scsi/qla1280.c qla1280_mailbox_command(struct scsi_qla_host *ha, uint8_t mr, uint16_t *mb) mb 2438 drivers/scsi/qla1280.c iptr = mb; mb 2471 drivers/scsi/qla1280.c mb[0], ha->mailbox_out[0], RD_REG_WORD(®->istatus)); mb 2482 drivers/scsi/qla1280.c optr = mb; mb 2492 drivers/scsi/qla1280.c "0x%x ****\n", mb[0]); mb 2544 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 2555 drivers/scsi/qla1280.c mb[0] = MBC_BUS_RESET; mb 2556 drivers/scsi/qla1280.c mb[1] = reset_delay; mb 2557 drivers/scsi/qla1280.c mb[2] = (uint16_t) bus; mb 2558 drivers/scsi/qla1280.c status = qla1280_mailbox_command(ha, BIT_2 | BIT_1 | BIT_0, &mb[0]); mb 2604 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 2609 drivers/scsi/qla1280.c mb[0] = MBC_ABORT_TARGET; mb 2610 drivers/scsi/qla1280.c mb[1] = (bus ? (target | BIT_7) : target) << 8; mb 2611 drivers/scsi/qla1280.c mb[2] = 1; mb 2612 drivers/scsi/qla1280.c status = qla1280_mailbox_command(ha, BIT_2 | BIT_1 | BIT_0, &mb[0]); mb 2638 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 2650 drivers/scsi/qla1280.c mb[0] = MBC_ABORT_COMMAND; mb 2651 drivers/scsi/qla1280.c mb[1] = (bus ? target | BIT_7 : target) << 8 | lun; mb 2652 drivers/scsi/qla1280.c mb[2] = handle >> 16; mb 2653 drivers/scsi/qla1280.c mb[3] = handle & 0xffff; mb 2654 drivers/scsi/qla1280.c status = qla1280_mailbox_command(ha, 0x0f, &mb[0]); mb 3892 drivers/scsi/qla1280.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 3900 drivers/scsi/qla1280.c mb[0] = MBC_GET_TARGET_PARAMETERS; mb 3901 drivers/scsi/qla1280.c mb[1] = (uint16_t) (bus ? target | BIT_7 : target); mb 3902 drivers/scsi/qla1280.c mb[1] <<= 8; mb 3904 drivers/scsi/qla1280.c &mb[0]); mb 3908 drivers/scsi/qla1280.c if (mb[3] != 0) { mb 3910 drivers/scsi/qla1280.c (mb[3] & 0xff), (mb[3] >> 8)); mb 3911 drivers/scsi/qla1280.c if (mb[2] & BIT_13) mb 3913 drivers/scsi/qla1280.c if ((mb[2] & BIT_5) && ((mb[6] >> 8) & 0xff) >= 2) mb 1300 drivers/scsi/qla2xxx/qla_bsg.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 1347 drivers/scsi/qla2xxx/qla_bsg.c port_param->speed, mb); mb 1350 drivers/scsi/qla2xxx/qla_bsg.c &port_param->speed, mb); mb 1356 drivers/scsi/qla2xxx/qla_bsg.c rval, fcport->fp_speed, mb[0], mb[1]); mb 940 drivers/scsi/qla2xxx/qla_def.h uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 953 drivers/scsi/qla2xxx/qla_def.h uint32_t mb[MAILBOX_REGISTER_COUNT]; mb 2300 drivers/scsi/qla2xxx/qla_def.h uint16_t mb[28]; mb 3302 drivers/scsi/qla2xxx/qla_def.h uint16_t mb[QLA_IDC_ACK_REGS]; mb 4624 drivers/scsi/qla2xxx/qla_def.h mb(); \ mb 4641 drivers/scsi/qla2xxx/qla_def.h mb(); \ mb 128 drivers/scsi/qla2xxx/qla_dfs.c uint16_t mb[MAX_IOCB_MB_REG]; mb 131 drivers/scsi/qla2xxx/qla_dfs.c rc = qla24xx_res_count_wait(vha, mb, SIZEOF_IOCB_MB_REG); mb 133 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "Mailbox Command failed %d, mb %#x", rc, mb[0]); mb 136 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "Original TGT exchg count[%d]\n", mb[1]); mb 137 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "current TGT exchg count[%d]\n", mb[2]); mb 138 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "original Initiator Exchange count[%d]\n", mb[3]); mb 139 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "Current Initiator Exchange count[%d]\n", mb[6]); mb 140 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "Original IOCB count[%d]\n", mb[7]); mb 141 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "Current IOCB count[%d]\n", mb[10]); mb 142 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "MAX VP count[%d]\n", mb[11]); mb 143 drivers/scsi/qla2xxx/qla_dfs.c seq_printf(s, "MAX FCF count[%d]\n", mb[12]); mb 145 drivers/scsi/qla2xxx/qla_dfs.c mb[20]); mb 147 drivers/scsi/qla2xxx/qla_dfs.c mb[21]); mb 149 drivers/scsi/qla2xxx/qla_dfs.c mb[22]); mb 151 drivers/scsi/qla2xxx/qla_dfs.c mb[23]); mb 1364 drivers/scsi/qla2xxx/qla_gs.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 1372 drivers/scsi/qla2xxx/qla_gs.c 0xfa, mb, BIT_1); mb 1373 drivers/scsi/qla2xxx/qla_gs.c if (rval != QLA_SUCCESS || mb[0] != MBS_COMMAND_COMPLETE) { mb 1382 drivers/scsi/qla2xxx/qla_gs.c vha->mgmt_svr_loop_id, mb[0], mb[1], mb[2], mb[6], mb 1383 drivers/scsi/qla2xxx/qla_gs.c mb[7]); mb 1075 drivers/scsi/qla2xxx/qla_init.c u16 *mb; mb 1110 drivers/scsi/qla2xxx/qla_init.c mb = sp->u.iocb_cmd.u.mbx.out_mb; mb 1111 drivers/scsi/qla2xxx/qla_init.c mb[0] = MBC_PORT_NODE_NAME_LIST; mb 1112 drivers/scsi/qla2xxx/qla_init.c mb[1] = BIT_2 | BIT_3; mb 1113 drivers/scsi/qla2xxx/qla_init.c mb[2] = MSW(vha->gnl.ldma); mb 1114 drivers/scsi/qla2xxx/qla_init.c mb[3] = LSW(vha->gnl.ldma); mb 1115 drivers/scsi/qla2xxx/qla_init.c mb[6] = MSW(MSD(vha->gnl.ldma)); mb 1116 drivers/scsi/qla2xxx/qla_init.c mb[7] = LSW(MSD(vha->gnl.ldma)); mb 1117 drivers/scsi/qla2xxx/qla_init.c mb[8] = vha->gnl.size; mb 1118 drivers/scsi/qla2xxx/qla_init.c mb[9] = vha->vp_idx; mb 1157 drivers/scsi/qla2xxx/qla_init.c u16 *mb = sp->u.iocb_cmd.u.mbx.in_mb; mb 1162 drivers/scsi/qla2xxx/qla_init.c sp->name, res, fcport->port_name, mb[1], mb[2]); mb 1302 drivers/scsi/qla2xxx/qla_init.c u16 *mb; mb 1338 drivers/scsi/qla2xxx/qla_init.c mb = sp->u.iocb_cmd.u.mbx.out_mb; mb 1339 drivers/scsi/qla2xxx/qla_init.c mb[0] = MBC_GET_PORT_DATABASE; mb 1340 drivers/scsi/qla2xxx/qla_init.c mb[1] = fcport->loop_id; mb 1341 drivers/scsi/qla2xxx/qla_init.c mb[2] = MSW(pd_dma); mb 1342 drivers/scsi/qla2xxx/qla_init.c mb[3] = LSW(pd_dma); mb 1343 drivers/scsi/qla2xxx/qla_init.c mb[6] = MSW(MSD(pd_dma)); mb 1344 drivers/scsi/qla2xxx/qla_init.c mb[7] = LSW(MSD(pd_dma)); mb 1345 drivers/scsi/qla2xxx/qla_init.c mb[9] = vha->vp_idx; mb 1346 drivers/scsi/qla2xxx/qla_init.c mb[10] = opt; mb 2693 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[4] = {0x1010, 0, 1, 0}; mb 2698 drivers/scsi/qla2xxx/qla_init.c return qla81xx_write_mpi_register(vha, mb); mb 2958 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[5]; mb 3011 drivers/scsi/qla2xxx/qla_init.c mb[1] = RD_MAILBOX_REG(ha, reg, 1); mb 3012 drivers/scsi/qla2xxx/qla_init.c mb[2] = RD_MAILBOX_REG(ha, reg, 2); mb 3013 drivers/scsi/qla2xxx/qla_init.c mb[3] = RD_MAILBOX_REG(ha, reg, 3); mb 3014 drivers/scsi/qla2xxx/qla_init.c mb[4] = qla2x00_debounce_register(MAILBOX_REG(ha, reg, 4)); mb 3015 drivers/scsi/qla2xxx/qla_init.c if (mb[1] != PROD_ID_1 || (mb[2] != PROD_ID_2 && mb[2] != PROD_ID_2a) || mb 3016 drivers/scsi/qla2xxx/qla_init.c mb[3] != PROD_ID_3) { mb 3019 drivers/scsi/qla2xxx/qla_init.c mb[1], mb[2], mb[3]); mb 3023 drivers/scsi/qla2xxx/qla_init.c ha->product_id[0] = mb[1]; mb 3024 drivers/scsi/qla2xxx/qla_init.c ha->product_id[1] = mb[2]; mb 3025 drivers/scsi/qla2xxx/qla_init.c ha->product_id[2] = mb[3]; mb 3026 drivers/scsi/qla2xxx/qla_init.c ha->product_id[3] = mb[4]; mb 5277 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 5292 drivers/scsi/qla2xxx/qla_init.c mb); mb 5296 drivers/scsi/qla2xxx/qla_init.c fcport->port_name, rval, fcport->fp_speed, mb[0], mb[1]); mb 5509 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 5551 drivers/scsi/qla2xxx/qla_init.c 0xfc, mb, BIT_1|BIT_0); mb 5552 drivers/scsi/qla2xxx/qla_init.c if (rval != QLA_SUCCESS || mb[0] != MBS_COMMAND_COMPLETE) { mb 5555 drivers/scsi/qla2xxx/qla_init.c loop_id, mb[0], mb[1], mb[2], mb[6], mb[7], rval); mb 5991 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 6007 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.al_pa, mb, BIT_0); mb 6011 drivers/scsi/qla2xxx/qla_init.c if (mb[0] == MBS_PORT_ID_USED) { mb 6021 drivers/scsi/qla2xxx/qla_init.c fcport->loop_id = mb[1]; mb 6029 drivers/scsi/qla2xxx/qla_init.c } else if (mb[0] == MBS_COMMAND_COMPLETE) { mb 6044 drivers/scsi/qla2xxx/qla_init.c if (mb[1] & BIT_0) { mb 6048 drivers/scsi/qla2xxx/qla_init.c if (mb[1] & BIT_1) { mb 6053 drivers/scsi/qla2xxx/qla_init.c if (mb[10] & BIT_0) mb 6055 drivers/scsi/qla2xxx/qla_init.c if (mb[10] & BIT_1) mb 6059 drivers/scsi/qla2xxx/qla_init.c if (mb[10] & BIT_7) mb 6066 drivers/scsi/qla2xxx/qla_init.c } else if (mb[0] == MBS_LOOP_ID_USED) { mb 6076 drivers/scsi/qla2xxx/qla_init.c } else if (mb[0] == MBS_COMMAND_ERROR) { mb 6096 drivers/scsi/qla2xxx/qla_init.c "jiffies=%lx.\n", mb[0], fcport->d_id.b.domain, mb 6132 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 6134 drivers/scsi/qla2xxx/qla_init.c memset(mb, 0, sizeof(mb)); mb 6135 drivers/scsi/qla2xxx/qla_init.c rval = qla2x00_login_local_device(vha, fcport, mb, BIT_0); mb 6138 drivers/scsi/qla2xxx/qla_init.c if (mb[0] == MBS_COMMAND_ERROR) mb 6140 drivers/scsi/qla2xxx/qla_init.c else if (mb[0] == MBS_COMMAND_PARAMETER_ERROR) mb 8138 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[MAILBOX_REGISTER_COUNT]; mb 8155 drivers/scsi/qla2xxx/qla_init.c rval2 = ha->isp_ops->fabric_login(vha, NPH_SNS, 0xff, 0xff, 0xfc, mb, mb 8157 drivers/scsi/qla2xxx/qla_init.c if (rval2 != QLA_SUCCESS || mb[0] != MBS_COMMAND_COMPLETE) { mb 8166 drivers/scsi/qla2xxx/qla_init.c NPH_SNS, mb[0], mb[1], mb[2], mb[6], mb[7]); mb 8823 drivers/scsi/qla2xxx/qla_init.c uint16_t mb[5]; mb 8838 drivers/scsi/qla2xxx/qla_init.c ret = qla24xx_set_fcp_prio(vha, fcport->loop_id, priority, mb); mb 3432 drivers/scsi/qla2xxx/qla_iocb.c sz = min(ARRAY_SIZE(mbx->mb), ARRAY_SIZE(sp->u.iocb_cmd.u.mbx.out_mb)); mb 3435 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb[i] = cpu_to_le16(sp->u.iocb_cmd.u.mbx.out_mb[i]); mb 52 drivers/scsi/qla2xxx/qla_isr.c uint16_t mb[8]; mb 96 drivers/scsi/qla2xxx/qla_isr.c mb[0] = RD_MAILBOX_REG(ha, reg, 0); mb 97 drivers/scsi/qla2xxx/qla_isr.c if (mb[0] > 0x3fff && mb[0] < 0x8000) { mb 98 drivers/scsi/qla2xxx/qla_isr.c qla2x00_mbx_completion(vha, mb[0]); mb 100 drivers/scsi/qla2xxx/qla_isr.c } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { mb 101 drivers/scsi/qla2xxx/qla_isr.c mb[1] = RD_MAILBOX_REG(ha, reg, 1); mb 102 drivers/scsi/qla2xxx/qla_isr.c mb[2] = RD_MAILBOX_REG(ha, reg, 2); mb 103 drivers/scsi/qla2xxx/qla_isr.c mb[3] = RD_MAILBOX_REG(ha, reg, 3); mb 104 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); mb 109 drivers/scsi/qla2xxx/qla_isr.c mb[0]); mb 171 drivers/scsi/qla2xxx/qla_isr.c uint16_t mb[8]; mb 234 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MSW(stat); mb 235 drivers/scsi/qla2xxx/qla_isr.c mb[1] = RD_MAILBOX_REG(ha, reg, 1); mb 236 drivers/scsi/qla2xxx/qla_isr.c mb[2] = RD_MAILBOX_REG(ha, reg, 2); mb 237 drivers/scsi/qla2xxx/qla_isr.c mb[3] = RD_MAILBOX_REG(ha, reg, 3); mb 238 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); mb 244 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_CMPLT_1_16BIT; mb 245 drivers/scsi/qla2xxx/qla_isr.c mb[1] = MSW(stat); mb 246 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); mb 249 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_SCSI_COMPLETION; mb 250 drivers/scsi/qla2xxx/qla_isr.c mb[1] = MSW(stat); mb 251 drivers/scsi/qla2xxx/qla_isr.c mb[2] = RD_MAILBOX_REG(ha, reg, 2); mb 252 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); mb 318 drivers/scsi/qla2xxx/qla_isr.c uint16_t cnt, timeout, mb[QLA_IDC_ACK_REGS]; mb 329 drivers/scsi/qla2xxx/qla_isr.c mb[cnt] = RD_REG_WORD(wptr); mb 334 drivers/scsi/qla2xxx/qla_isr.c event[aen & 0xff], mb[0], mb[1], mb[2], mb[3], mb 335 drivers/scsi/qla2xxx/qla_isr.c mb[4], mb[5], mb[6]); mb 339 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] >> 15) { mb 355 drivers/scsi/qla2xxx/qla_isr.c rval = qla2x00_post_idc_ack_work(vha, mb); mb 390 drivers/scsi/qla2xxx/qla_isr.c qla83xx_handle_8200_aen(scsi_qla_host_t *vha, uint16_t *mb) mb 407 drivers/scsi/qla2xxx/qla_isr.c mb[0], mb[1], mb[2], mb[6]); mb 410 drivers/scsi/qla2xxx/qla_isr.c "Drv-Presence: mb[5] = 0x%x.\n", mb[3], mb[7], mb[4], mb[5]); mb 412 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] & (IDC_PEG_HALT_STATUS_CHANGE | IDC_NIC_FW_REPORTED_FAILURE | mb 418 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] & IDC_PEG_HALT_STATUS_CHANGE) { mb 434 drivers/scsi/qla2xxx/qla_isr.c protocol_engine_id = (mb[2] & 0xff); mb 435 drivers/scsi/qla2xxx/qla_isr.c fw_err_code = (((mb[2] & 0xff00) >> 8) | mb 436 drivers/scsi/qla2xxx/qla_isr.c ((mb[6] & 0x1fff) << 8)); mb 437 drivers/scsi/qla2xxx/qla_isr.c err_level = ((mb[6] & 0xe000) >> 13); mb 443 drivers/scsi/qla2xxx/qla_isr.c "Register: 0x%x%x.\n", mb[7], mb[3]); mb 462 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] & IDC_NIC_FW_REPORTED_FAILURE) { mb 500 drivers/scsi/qla2xxx/qla_isr.c peg_fw_state = (mb[2] & 0x00ff); mb 501 drivers/scsi/qla2xxx/qla_isr.c nw_interface_link_up = ((mb[2] & 0x0100) >> 8); mb 502 drivers/scsi/qla2xxx/qla_isr.c nw_interface_signal_detect = ((mb[2] & 0x0200) >> 9); mb 503 drivers/scsi/qla2xxx/qla_isr.c sfp_status = ((mb[2] & 0x0c00) >> 10); mb 504 drivers/scsi/qla2xxx/qla_isr.c htbt_counter = ((mb[2] & 0x7000) >> 12); mb 505 drivers/scsi/qla2xxx/qla_isr.c htbt_monitor_enable = ((mb[2] & 0x8000) >> 15); mb 506 drivers/scsi/qla2xxx/qla_isr.c sfp_additional_info = (mb[6] & 0x0003); mb 507 drivers/scsi/qla2xxx/qla_isr.c sfp_multirate = ((mb[6] & 0x0004) >> 2); mb 508 drivers/scsi/qla2xxx/qla_isr.c sfp_tx_fault = ((mb[6] & 0x0008) >> 3); mb 509 drivers/scsi/qla2xxx/qla_isr.c link_speed = ((mb[6] & 0x0070) >> 4); mb 510 drivers/scsi/qla2xxx/qla_isr.c dcbx_status = ((mb[6] & 0x7000) >> 12); mb 532 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] & IDC_HEARTBEAT_FAILURE) { mb 541 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] & IDC_DEVICE_STATE_CHANGE) { mb 543 drivers/scsi/qla2xxx/qla_isr.c "IDC Device-State changed = 0x%x.\n", mb[4]); mb 629 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) mb 649 drivers/scsi/qla2xxx/qla_isr.c switch (mb[0]) { mb 651 drivers/scsi/qla2xxx/qla_isr.c handles[0] = le32_to_cpu((uint32_t)((mb[2] << 16) | mb[1])); mb 655 drivers/scsi/qla2xxx/qla_isr.c handles[0] = mb[1]; mb 657 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_SCSI_COMPLETION; mb 660 drivers/scsi/qla2xxx/qla_isr.c handles[0] = mb[1]; mb 661 drivers/scsi/qla2xxx/qla_isr.c handles[1] = mb[2]; mb 663 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_SCSI_COMPLETION; mb 666 drivers/scsi/qla2xxx/qla_isr.c handles[0] = mb[1]; mb 667 drivers/scsi/qla2xxx/qla_isr.c handles[1] = mb[2]; mb 668 drivers/scsi/qla2xxx/qla_isr.c handles[2] = mb[3]; mb 670 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_SCSI_COMPLETION; mb 673 drivers/scsi/qla2xxx/qla_isr.c handles[0] = mb[1]; mb 674 drivers/scsi/qla2xxx/qla_isr.c handles[1] = mb[2]; mb 675 drivers/scsi/qla2xxx/qla_isr.c handles[2] = mb[3]; mb 678 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_SCSI_COMPLETION; mb 681 drivers/scsi/qla2xxx/qla_isr.c handles[0] = mb[1]; mb 682 drivers/scsi/qla2xxx/qla_isr.c handles[1] = mb[2]; mb 683 drivers/scsi/qla2xxx/qla_isr.c handles[2] = mb[3]; mb 687 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_SCSI_COMPLETION; mb 690 drivers/scsi/qla2xxx/qla_isr.c handles[0] = le32_to_cpu((uint32_t)((mb[2] << 16) | mb[1])); mb 695 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MBA_SCSI_COMPLETION; mb 701 drivers/scsi/qla2xxx/qla_isr.c switch (mb[0]) { mb 724 drivers/scsi/qla2xxx/qla_isr.c "mbx7=%xh.\n", mb[1], mb[2], mb[3], mbx); mb 733 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] == 0 && mb[2] == 0) { mb 747 drivers/scsi/qla2xxx/qla_isr.c } else if (mb[1] == 0) { mb 759 drivers/scsi/qla2xxx/qla_isr.c "ISP Request Transfer Error (%x).\n", mb[1]); mb 766 drivers/scsi/qla2xxx/qla_isr.c "ISP Response Transfer Error (%x).\n", mb[1]); mb 773 drivers/scsi/qla2xxx/qla_isr.c "Asynchronous WAKEUP_THRES (%x).\n", mb[1]); mb 778 drivers/scsi/qla2xxx/qla_isr.c "LOOP INIT ERROR (%x).\n", mb[1]); mb 786 drivers/scsi/qla2xxx/qla_isr.c "LIP occurred (%x).\n", mb[1]); mb 803 drivers/scsi/qla2xxx/qla_isr.c qla2x00_post_aen_work(vha, FCH_EVT_LIP, mb[1]); mb 810 drivers/scsi/qla2xxx/qla_isr.c ha->link_data_rate = mb[1]; mb 836 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3], mbx); mb 879 drivers/scsi/qla2xxx/qla_isr.c "LIP reset occurred (%x).\n", mb[1]); mb 896 drivers/scsi/qla2xxx/qla_isr.c qla2x00_post_aen_work(vha, FCH_EVT_LIPRESET, mb[1]); mb 909 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 949 drivers/scsi/qla2xxx/qla_isr.c "Configuration change detected: value=%x.\n", mb[1]); mb 985 drivers/scsi/qla2xxx/qla_isr.c ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff) || mb 986 drivers/scsi/qla2xxx/qla_isr.c (mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff)) mb 989 drivers/scsi/qla2xxx/qla_isr.c if (mb[2] == 0x7) { mb 992 drivers/scsi/qla2xxx/qla_isr.c mb[1] == 0xffff ? "unavailable" : "logout", mb 993 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 995 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] == 0xffff) mb 998 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] == NPH_SNS_LID(ha)) { mb 1009 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] == handle_cnt) { mb 1016 drivers/scsi/qla2xxx/qla_isr.c fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]); mb 1063 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1069 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1087 drivers/scsi/qla2xxx/qla_isr.c if (ha->flags.npiv_supported && vha->vp_idx != (mb[3] & 0xff)) mb 1092 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1094 drivers/scsi/qla2xxx/qla_isr.c rscn_entry = ((mb[1] & 0xff) << 16) | mb[2]; mb 1105 drivers/scsi/qla2xxx/qla_isr.c rscn_entry = ((mb[1] & 0x3ff) << 16) | mb[2]; mb 1137 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1142 drivers/scsi/qla2xxx/qla_isr.c "Trace Notification -- %04x %04x.\n", mb[1], mb[2]); mb 1148 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1151 drivers/scsi/qla2xxx/qla_isr.c switch (mb[1]) { mb 1155 drivers/scsi/qla2xxx/qla_isr.c mb[2], mb[3]); mb 1158 drivers/scsi/qla2xxx/qla_isr.c ha->cs84xx->op_fw_version = mb[3] << 16 | mb[2]; mb 1164 drivers/scsi/qla2xxx/qla_isr.c ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; mb 1170 drivers/scsi/qla2xxx/qla_isr.c ha->cs84xx->diag_fw_version = mb[3] << 16 | mb[2]; mb 1179 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1186 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1191 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1196 drivers/scsi/qla2xxx/qla_isr.c mb[1], mb[2], mb[3]); mb 1200 drivers/scsi/qla2xxx/qla_isr.c mb[4] = RD_REG_WORD(®24->mailbox4); mb 1201 drivers/scsi/qla2xxx/qla_isr.c if (((mb[2] & 0x7fff) == MBC_PORT_RESET || mb 1202 drivers/scsi/qla2xxx/qla_isr.c (mb[2] & 0x7fff) == MBC_SET_PORT_CONFIG) && mb 1203 drivers/scsi/qla2xxx/qla_isr.c (mb[4] & INTERNAL_LOOPBACK_MASK) != 0) { mb 1222 drivers/scsi/qla2xxx/qla_isr.c qla81xx_idc_event(vha, mb[0], mb[1]); mb 1226 drivers/scsi/qla2xxx/qla_isr.c mb[4] = RD_REG_WORD(®24->mailbox4); mb 1227 drivers/scsi/qla2xxx/qla_isr.c mb[5] = RD_REG_WORD(®24->mailbox5); mb 1228 drivers/scsi/qla2xxx/qla_isr.c mb[6] = RD_REG_WORD(®24->mailbox6); mb 1229 drivers/scsi/qla2xxx/qla_isr.c mb[7] = RD_REG_WORD(®24->mailbox7); mb 1230 drivers/scsi/qla2xxx/qla_isr.c qla83xx_handle_8200_aen(vha, mb); mb 1236 drivers/scsi/qla2xxx/qla_isr.c mb[0], mb 1237 drivers/scsi/qla2xxx/qla_isr.c mb[1] == 0 ? "start" : mb 1238 drivers/scsi/qla2xxx/qla_isr.c mb[1] == 1 ? "done (pass)" : mb 1239 drivers/scsi/qla2xxx/qla_isr.c mb[1] == 2 ? "done (error)" : "other"); mb 1244 drivers/scsi/qla2xxx/qla_isr.c "TEMPERATURE ALERT: %04x %04x %04x\n", mb[1], mb[2], mb[3]); mb 1245 drivers/scsi/qla2xxx/qla_isr.c if (mb[1] == 0x12) mb 1251 drivers/scsi/qla2xxx/qla_isr.c "Transceiver Insertion: %04x\n", mb[1]); mb 1257 drivers/scsi/qla2xxx/qla_isr.c mb[0], mb[1], mb[2], mb[3]); mb 1260 drivers/scsi/qla2xxx/qla_isr.c qlt_async_event(mb[0], vha, mb); mb 1263 drivers/scsi/qla2xxx/qla_isr.c qla2x00_alert_all_vps(rsp, mb); mb 1447 drivers/scsi/qla2xxx/qla_isr.c sz = min(ARRAY_SIZE(pkt->mb), ARRAY_SIZE(sp->u.iocb_cmd.u.mbx.in_mb)); mb 1450 drivers/scsi/qla2xxx/qla_isr.c si->u.mbx.in_mb[i] = le16_to_cpu(pkt->mb[i]); mb 3180 drivers/scsi/qla2xxx/qla_isr.c uint16_t mb[8]; mb 3233 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MSW(stat); mb 3234 drivers/scsi/qla2xxx/qla_isr.c mb[1] = RD_REG_WORD(®->mailbox1); mb 3235 drivers/scsi/qla2xxx/qla_isr.c mb[2] = RD_REG_WORD(®->mailbox2); mb 3236 drivers/scsi/qla2xxx/qla_isr.c mb[3] = RD_REG_WORD(®->mailbox3); mb 3237 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); mb 3314 drivers/scsi/qla2xxx/qla_isr.c uint16_t mb[8]; mb 3362 drivers/scsi/qla2xxx/qla_isr.c mb[0] = MSW(stat); mb 3363 drivers/scsi/qla2xxx/qla_isr.c mb[1] = RD_REG_WORD(®->mailbox1); mb 3364 drivers/scsi/qla2xxx/qla_isr.c mb[2] = RD_REG_WORD(®->mailbox2); mb 3365 drivers/scsi/qla2xxx/qla_isr.c mb[3] = RD_REG_WORD(®->mailbox3); mb 3366 drivers/scsi/qla2xxx/qla_isr.c qla2x00_async_event(vha, rsp, mb); mb 156 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBS_LINK_DOWN_ERROR; mb 166 drivers/scsi/qla2xxx/qla_mbx.c !is_rom_cmd(mcp->mb[0])) { mb 169 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0]); mb 183 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0]); mb 198 drivers/scsi/qla2xxx/qla_mbx.c "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); mb 218 drivers/scsi/qla2xxx/qla_mbx.c iptr = mcp->mb; mb 219 drivers/scsi/qla2xxx/qla_mbx.c command = mcp->mb[0]; mb 377 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBS_LINK_DOWN_ERROR; mb 393 drivers/scsi/qla2xxx/qla_mbx.c iptr2 = mcp->mb; mb 412 drivers/scsi/qla2xxx/qla_mbx.c uint16_t mb[8]; mb 417 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = RD_REG_WORD(®->isp24.mailbox0); mb 418 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = RD_REG_WORD(®->isp24.mailbox1); mb 419 drivers/scsi/qla2xxx/qla_mbx.c mb[2] = RD_REG_WORD(®->isp24.mailbox2); mb 420 drivers/scsi/qla2xxx/qla_mbx.c mb[3] = RD_REG_WORD(®->isp24.mailbox3); mb 421 drivers/scsi/qla2xxx/qla_mbx.c mb[7] = RD_REG_WORD(®->isp24.mailbox7); mb 429 drivers/scsi/qla2xxx/qla_mbx.c command, ictrl, jiffies, mb[0], mb[1], mb[2], mb[3], mb 430 drivers/scsi/qla2xxx/qla_mbx.c mb[7], host_status, hccr); mb 433 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = RD_MAILBOX_REG(ha, ®->isp, 0); mb 437 drivers/scsi/qla2xxx/qla_mbx.c "mb[0]=0x%x\n", command, ictrl, jiffies, mb[0]); mb 465 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] != MBC_GEN_SYSTEM_ERROR) mb 486 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] != MBC_GEN_SYSTEM_ERROR) { mb 508 drivers/scsi/qla2xxx/qla_mbx.c "abort.\n", command, mcp->mb[0], mb 533 drivers/scsi/qla2xxx/qla_mbx.c command, mcp->mb[0]); mb 559 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0]); mb 569 drivers/scsi/qla2xxx/qla_mbx.c printk(" mb[%u]=%x", i, mcp->mb[i]); mb 607 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LOAD_RISC_RAM_EXTENDED; mb 608 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = MSW(risc_addr); mb 611 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LOAD_RISC_RAM; mb 614 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(risc_addr); mb 615 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(req_dma); mb 616 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(req_dma); mb 617 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(req_dma)); mb 618 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(req_dma)); mb 621 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = MSW(risc_code_size); mb 622 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = LSW(risc_code_size); mb 625 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(risc_code_size); mb 637 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 697 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_EXECUTE_FIRMWARE; mb 701 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = MSW(risc_addr); mb 702 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(risc_addr); mb 703 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0; mb 704 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = 0; mb 705 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11] = 0; mb 711 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] |= mb 720 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] |= mb 728 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] |= NVME_ENABLE_FLAG; mb 735 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] |= BIT_4; mb 736 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11] |= nv->min_supported_speed & 0xF; mb 745 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] |= ENABLE_EXTENDED_LOGIN; mb 748 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] |= ENABLE_EXCHANGE_OFFLD; mb 753 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(risc_addr); mb 756 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = 0; mb 767 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 774 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_ability_mask = mcp->mb[3] << 16 | mcp->mb[2]; mb 777 drivers/scsi/qla2xxx/qla_mbx.c ql_dbg(ql_dbg_mbx, vha, 0x1027, "exchanges=%x.\n", mcp->mb[1]); mb 779 drivers/scsi/qla2xxx/qla_mbx.c ha->max_supported_speed = mcp->mb[2] & (BIT_0|BIT_1); mb 785 drivers/scsi/qla2xxx/qla_mbx.c ha->min_supported_speed = mcp->mb[5] & mb 831 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 832 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_MEM_OFFLOAD_CNTRL_STAT; mb 833 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = FETCH_XLOGINS_STAT; mb 843 drivers/scsi/qla2xxx/qla_mbx.c *buf_sz = mcp->mb[4]; mb 844 drivers/scsi/qla2xxx/qla_mbx.c *ex_logins_cnt = mcp->mb[10]; mb 848 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4], mcp->mb[10]); mb 888 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 889 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_MEM_OFFLOAD_CNTRL_STAT; mb 890 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = CONFIG_XLOGINS_MEM; mb 891 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(phys_addr); mb 892 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(phys_addr); mb 893 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(phys_addr)); mb 894 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(phys_addr)); mb 895 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = MSW(ha->exlogin_size); mb 896 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = LSW(ha->exlogin_size); mb 940 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 941 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_MEM_OFFLOAD_CNTRL_STAT; mb 942 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = FETCH_XCHOFFLD_STAT; mb 952 drivers/scsi/qla2xxx/qla_mbx.c *buf_sz = mcp->mb[4]; mb 953 drivers/scsi/qla2xxx/qla_mbx.c *ex_logins_cnt = mcp->mb[10]; mb 957 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4], mcp->mb[10]); mb 997 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 998 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_MEM_OFFLOAD_CNTRL_STAT; mb 999 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = CONFIG_XCHOFFLD_MEM; mb 1000 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(ha->exchoffld_buf_dma); mb 1001 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(ha->exchoffld_buf_dma); mb 1002 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(ha->exchoffld_buf_dma)); mb 1003 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(ha->exchoffld_buf_dma)); mb 1004 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = MSW(ha->exchoffld_size); mb 1005 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = LSW(ha->exchoffld_size); mb 1049 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_FIRMWARE_VERSION; mb 1068 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_major_version = mcp->mb[1]; mb 1069 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_minor_version = mcp->mb[2]; mb 1070 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_subminor_version = mcp->mb[3]; mb 1071 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_attributes = mcp->mb[6]; mb 1075 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_memory_size = (mcp->mb[5] << 16) | mcp->mb[4]; mb 1078 drivers/scsi/qla2xxx/qla_mbx.c ha->mpi_version[0] = mcp->mb[10] & 0xff; mb 1079 drivers/scsi/qla2xxx/qla_mbx.c ha->mpi_version[1] = mcp->mb[11] >> 8; mb 1080 drivers/scsi/qla2xxx/qla_mbx.c ha->mpi_version[2] = mcp->mb[11] & 0xff; mb 1081 drivers/scsi/qla2xxx/qla_mbx.c ha->mpi_capabilities = (mcp->mb[12] << 16) | mcp->mb[13]; mb 1082 drivers/scsi/qla2xxx/qla_mbx.c ha->phy_version[0] = mcp->mb[8] & 0xff; mb 1083 drivers/scsi/qla2xxx/qla_mbx.c ha->phy_version[1] = mcp->mb[9] >> 8; mb 1084 drivers/scsi/qla2xxx/qla_mbx.c ha->phy_version[2] = mcp->mb[9] & 0xff; mb 1088 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_attributes_h = mcp->mb[15]; mb 1089 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_attributes_ext[0] = mcp->mb[16]; mb 1090 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_attributes_ext[1] = mcp->mb[17]; mb 1093 drivers/scsi/qla2xxx/qla_mbx.c __func__, mcp->mb[15], mcp->mb[6]); mb 1096 drivers/scsi/qla2xxx/qla_mbx.c __func__, mcp->mb[17], mcp->mb[16]); mb 1126 drivers/scsi/qla2xxx/qla_mbx.c ha->serdes_version[0] = mcp->mb[7] & 0xff; mb 1127 drivers/scsi/qla2xxx/qla_mbx.c ha->serdes_version[1] = mcp->mb[8] >> 8; mb 1128 drivers/scsi/qla2xxx/qla_mbx.c ha->serdes_version[2] = mcp->mb[8] & 0xff; mb 1129 drivers/scsi/qla2xxx/qla_mbx.c ha->mpi_version[0] = mcp->mb[10] & 0xff; mb 1130 drivers/scsi/qla2xxx/qla_mbx.c ha->mpi_version[1] = mcp->mb[11] >> 8; mb 1131 drivers/scsi/qla2xxx/qla_mbx.c ha->mpi_version[2] = mcp->mb[11] & 0xff; mb 1132 drivers/scsi/qla2xxx/qla_mbx.c ha->pep_version[0] = mcp->mb[13] & 0xff; mb 1133 drivers/scsi/qla2xxx/qla_mbx.c ha->pep_version[1] = mcp->mb[14] >> 8; mb 1134 drivers/scsi/qla2xxx/qla_mbx.c ha->pep_version[2] = mcp->mb[14] & 0xff; mb 1135 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_shared_ram_start = (mcp->mb[19] << 16) | mcp->mb[18]; mb 1136 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_shared_ram_end = (mcp->mb[21] << 16) | mcp->mb[20]; mb 1137 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_ddr_ram_start = (mcp->mb[23] << 16) | mcp->mb[22]; mb 1138 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_ddr_ram_end = (mcp->mb[25] << 16) | mcp->mb[24]; mb 1140 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[16] & BIT_10) { mb 1184 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_FIRMWARE_OPTION; mb 1195 drivers/scsi/qla2xxx/qla_mbx.c fwopts[0] = mcp->mb[0]; mb 1196 drivers/scsi/qla2xxx/qla_mbx.c fwopts[1] = mcp->mb[1]; mb 1197 drivers/scsi/qla2xxx/qla_mbx.c fwopts[2] = mcp->mb[2]; mb 1198 drivers/scsi/qla2xxx/qla_mbx.c fwopts[3] = mcp->mb[3]; mb 1232 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_FIRMWARE_OPTION; mb 1233 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fwopts[1]; mb 1234 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = fwopts[2]; mb 1235 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = fwopts[3]; mb 1240 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = fwopts[10]; mb 1243 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = fwopts[10]; mb 1244 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11] = fwopts[11]; mb 1245 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[12] = 0; /* Undocumented, but used */ mb 1252 drivers/scsi/qla2xxx/qla_mbx.c fwopts[0] = mcp->mb[0]; mb 1257 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x (%x/%x).\n", rval, mcp->mb[0], mcp->mb[1]); mb 1292 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_MAILBOX_REGISTER_TEST; mb 1293 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0xAAAA; mb 1294 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = 0x5555; mb 1295 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0xAA55; mb 1296 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = 0x55AA; mb 1297 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = 0xA5A5; mb 1298 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = 0x5A5A; mb 1299 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = 0x2525; mb 1307 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[1] != 0xAAAA || mcp->mb[2] != 0x5555 || mb 1308 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] != 0xAA55 || mcp->mb[4] != 0x55AA) mb 1310 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[5] != 0xA5A5 || mcp->mb[6] != 0x5A5A || mb 1311 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] != 0x2525) mb 1352 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_VERIFY_CHECKSUM; mb 1356 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = MSW(risc_addr); mb 1357 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(risc_addr); mb 1361 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(risc_addr); mb 1373 drivers/scsi/qla2xxx/qla_mbx.c (mcp->mb[2] << 16) | mcp->mb[1] : mcp->mb[1]); mb 1411 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_IOCB_COMMAND_A64; mb 1412 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0; mb 1413 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(phys_addr); mb 1414 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(phys_addr); mb 1415 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(phys_addr)); mb 1416 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(phys_addr)); mb 1495 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_ABORT_COMMAND; mb 1497 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id; mb 1499 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id << 8; mb 1500 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = (uint16_t)handle; mb 1501 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = (uint16_t)(handle >> 16); mb 1502 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = (uint16_t)cmd->device->lun; mb 1532 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_ABORT_TARGET; mb 1535 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id; mb 1536 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = 0; mb 1539 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id << 8; mb 1541 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = vha->hw->loop_reset_delay; mb 1542 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 1580 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LUN_RESET; mb 1583 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id; mb 1585 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id << 8; mb 1586 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = (u32)l; mb 1587 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0; mb 1588 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 1643 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_ADAPTER_LOOP_ID; mb 1644 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 1656 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] == MBS_COMMAND_ERROR) mb 1658 drivers/scsi/qla2xxx/qla_mbx.c else if (mcp->mb[0] == MBS_INVALID_COMMAND) mb 1662 drivers/scsi/qla2xxx/qla_mbx.c *id = mcp->mb[1]; mb 1663 drivers/scsi/qla2xxx/qla_mbx.c *al_pa = LSB(mcp->mb[2]); mb 1664 drivers/scsi/qla2xxx/qla_mbx.c *area = MSB(mcp->mb[2]); mb 1665 drivers/scsi/qla2xxx/qla_mbx.c *domain = LSB(mcp->mb[3]); mb 1666 drivers/scsi/qla2xxx/qla_mbx.c *top = mcp->mb[6]; mb 1667 drivers/scsi/qla2xxx/qla_mbx.c *sw_cap = mcp->mb[7]; mb 1677 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vlan_id = mcp->mb[9] & 0xfff; mb 1678 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_fcf_idx = mcp->mb[10]; mb 1679 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[5] = mcp->mb[11] >> 8; mb 1680 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[4] = mcp->mb[11] & 0xff; mb 1681 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[3] = mcp->mb[12] >> 8; mb 1682 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[2] = mcp->mb[12] & 0xff; mb 1683 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[1] = mcp->mb[13] >> 8; mb 1684 drivers/scsi/qla2xxx/qla_mbx.c vha->fcoe_vn_port_mac[0] = mcp->mb[13] & 0xff; mb 1688 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[7] & BIT_14) { mb 1689 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[0] = MSB(mcp->mb[16]); mb 1690 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[1] = LSB(mcp->mb[16]); mb 1691 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[2] = MSB(mcp->mb[17]); mb 1692 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[3] = LSB(mcp->mb[17]); mb 1693 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[4] = MSB(mcp->mb[18]); mb 1694 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[5] = LSB(mcp->mb[18]); mb 1695 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[6] = MSB(mcp->mb[19]); mb 1696 drivers/scsi/qla2xxx/qla_mbx.c vha->port_name[7] = LSB(mcp->mb[19]); mb 1706 drivers/scsi/qla2xxx/qla_mbx.c vha->bbcr = mcp->mb[15]; mb 1739 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_RETRY_COUNT; mb 1749 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 1752 drivers/scsi/qla2xxx/qla_mbx.c *r_a_tov = mcp->mb[3] / 2; mb 1753 drivers/scsi/qla2xxx/qla_mbx.c ratov = (mcp->mb[3]/2) / 10; /* mb[3] value is in 100ms */ mb 1754 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[1] * ratov > (*retry_cnt) * (*tov)) { mb 1756 drivers/scsi/qla2xxx/qla_mbx.c *retry_cnt = (uint8_t)mcp->mb[1]; mb 1761 drivers/scsi/qla2xxx/qla_mbx.c "Done %s mb3=%d ratov=%d.\n", __func__, mcp->mb[3], ratov); mb 1800 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_MID_INITIALIZE_FIRMWARE; mb 1802 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_INITIALIZE_FIRMWARE; mb 1804 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0; mb 1805 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(ha->init_cb_dma); mb 1806 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(ha->init_cb_dma); mb 1807 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(ha->init_cb_dma)); mb 1808 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(ha->init_cb_dma)); mb 1811 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = BIT_0; mb 1812 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = MSW(ha->ex_init_cb_dma); mb 1813 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11] = LSW(ha->ex_init_cb_dma); mb 1814 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[12] = MSW(MSD(ha->ex_init_cb_dma)); mb 1815 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[13] = LSW(MSD(ha->ex_init_cb_dma)); mb 1816 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[14] = sizeof(*ha->ex_init_cb); mb 1833 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2], mcp->mb[3]); mb 1846 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[2] == 6 || mcp->mb[3] == 2) mb 1897 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_PORT_DATABASE; mb 1899 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_ENHANCED_GET_PORT_DATABASE; mb 1900 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(pd_dma); mb 1901 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(pd_dma); mb 1902 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(pd_dma)); mb 1903 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(pd_dma)); mb 1904 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 1908 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id; mb 1909 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = opt; mb 1913 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id; mb 1914 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = opt; mb 1917 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id << 8 | opt; mb 2039 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0], mcp->mb[1]); mb 2075 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_FIRMWARE_STATE; mb 2086 drivers/scsi/qla2xxx/qla_mbx.c states[0] = mcp->mb[1]; mb 2088 drivers/scsi/qla2xxx/qla_mbx.c states[1] = mcp->mb[2]; mb 2089 drivers/scsi/qla2xxx/qla_mbx.c states[2] = mcp->mb[3]; /* SFP info */ mb 2090 drivers/scsi/qla2xxx/qla_mbx.c states[3] = mcp->mb[4]; mb 2091 drivers/scsi/qla2xxx/qla_mbx.c states[4] = mcp->mb[5]; mb 2092 drivers/scsi/qla2xxx/qla_mbx.c states[5] = mcp->mb[6]; /* DPORT status */ mb 2100 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[2] == 6 || mcp->mb[3] == 2) mb 2140 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_PORT_NAME; mb 2141 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 2144 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 2145 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = opt; mb 2148 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id << 8 | opt; mb 2162 drivers/scsi/qla2xxx/qla_mbx.c name[0] = MSB(mcp->mb[2]); mb 2163 drivers/scsi/qla2xxx/qla_mbx.c name[1] = LSB(mcp->mb[2]); mb 2164 drivers/scsi/qla2xxx/qla_mbx.c name[2] = MSB(mcp->mb[3]); mb 2165 drivers/scsi/qla2xxx/qla_mbx.c name[3] = LSB(mcp->mb[3]); mb 2166 drivers/scsi/qla2xxx/qla_mbx.c name[4] = MSB(mcp->mb[6]); mb 2167 drivers/scsi/qla2xxx/qla_mbx.c name[5] = LSB(mcp->mb[6]); mb 2168 drivers/scsi/qla2xxx/qla_mbx.c name[6] = MSB(mcp->mb[7]); mb 2169 drivers/scsi/qla2xxx/qla_mbx.c name[7] = LSB(mcp->mb[7]); mb 2207 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LINK_INITIALIZATION; mb 2208 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = BIT_4; mb 2210 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] |= BIT_6; mb 2212 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] |= BIT_5; mb 2213 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = 0; mb 2214 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0; mb 2258 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LIP_FULL_LOGIN; mb 2259 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = BIT_1; mb 2260 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = 0; mb 2263 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LIP_FULL_LOGIN; mb 2264 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = BIT_4; mb 2265 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = 0; mb 2266 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = vha->hw->loop_reset_delay; mb 2269 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LIP_RESET; mb 2272 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0x00ff; mb 2273 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = 0; mb 2276 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0xff00; mb 2278 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = vha->hw->loop_reset_delay; mb 2279 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0; mb 2331 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SEND_SNS_COMMAND; mb 2332 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = cmd_size; mb 2333 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(sns_phys_address); mb 2334 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(sns_phys_address); mb 2335 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(sns_phys_address)); mb 2336 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(sns_phys_address)); mb 2348 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 2360 drivers/scsi/qla2xxx/qla_mbx.c uint8_t area, uint8_t al_pa, uint16_t *mb, uint8_t opt) mb 2419 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = MBS_PORT_ID_USED; mb 2420 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = LSW(iop[1]); mb 2423 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = MBS_LOOP_ID_USED; mb 2439 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = MBS_COMMAND_ERROR; mb 2448 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = MBS_COMMAND_COMPLETE; mb 2449 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = 0; mb 2452 drivers/scsi/qla2xxx/qla_mbx.c mb[1] |= BIT_1; mb 2454 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = BIT_0; mb 2457 drivers/scsi/qla2xxx/qla_mbx.c mb[10] = 0; mb 2459 drivers/scsi/qla2xxx/qla_mbx.c mb[10] |= BIT_0; /* Class 2. */ mb 2461 drivers/scsi/qla2xxx/qla_mbx.c mb[10] |= BIT_1; /* Class 3. */ mb 2463 drivers/scsi/qla2xxx/qla_mbx.c mb[10] |= BIT_7; /* Confirmed Completion mb 2496 drivers/scsi/qla2xxx/qla_mbx.c uint8_t area, uint8_t al_pa, uint16_t *mb, uint8_t opt) mb 2506 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LOGIN_FABRIC_PORT; mb 2509 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 2510 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = opt; mb 2513 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = (loop_id << 8) | opt; mb 2515 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = domain; mb 2516 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = area << 8 | al_pa; mb 2524 drivers/scsi/qla2xxx/qla_mbx.c if (mb != NULL) { mb 2525 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = mcp->mb[0]; mb 2526 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = mcp->mb[1]; mb 2527 drivers/scsi/qla2xxx/qla_mbx.c mb[2] = mcp->mb[2]; mb 2528 drivers/scsi/qla2xxx/qla_mbx.c mb[6] = mcp->mb[6]; mb 2529 drivers/scsi/qla2xxx/qla_mbx.c mb[7] = mcp->mb[7]; mb 2531 drivers/scsi/qla2xxx/qla_mbx.c mb[10] = 0; mb 2541 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] == 0x4001 || mcp->mb[0] == 0x4002 || mb 2542 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] == 0x4003 || mcp->mb[0] == 0x4005 || mb 2543 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] == 0x4006) mb 2549 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); mb 2592 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LOGIN_LOOP_PORT; mb 2594 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id; mb 2596 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id << 8; mb 2597 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = opt; mb 2606 drivers/scsi/qla2xxx/qla_mbx.c mb_ret[0] = mcp->mb[0]; mb 2607 drivers/scsi/qla2xxx/qla_mbx.c mb_ret[1] = mcp->mb[1]; mb 2608 drivers/scsi/qla2xxx/qla_mbx.c mb_ret[6] = mcp->mb[6]; mb 2609 drivers/scsi/qla2xxx/qla_mbx.c mb_ret[7] = mcp->mb[7]; mb 2619 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] == 0x4005 || mcp->mb[0] == 0x4006) mb 2624 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[6], mcp->mb[7]); mb 2720 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LOGOUT_FABRIC_PORT; mb 2723 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 2724 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = 0; mb 2727 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id << 8; mb 2738 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[1]=%x.\n", rval, mcp->mb[1]); mb 2773 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_LIP_FULL_LOGIN; mb 2774 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = IS_FWI2_CAPABLE(vha->hw) ? BIT_4 : 0; mb 2775 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = 0; mb 2776 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0; mb 2821 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_ID_LIST; mb 2824 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(id_list_dma); mb 2825 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(id_list_dma); mb 2826 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(id_list_dma)); mb 2827 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(id_list_dma)); mb 2828 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = 0; mb 2829 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 2832 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = MSW(id_list_dma); mb 2833 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(id_list_dma); mb 2834 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(MSD(id_list_dma)); mb 2835 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = LSW(MSD(id_list_dma)); mb 2847 drivers/scsi/qla2xxx/qla_mbx.c *entries = mcp->mb[1]; mb 2879 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_RESOURCE_COUNTS; mb 2892 drivers/scsi/qla2xxx/qla_mbx.c "Failed mb[0]=%x.\n", mcp->mb[0]); mb 2896 drivers/scsi/qla2xxx/qla_mbx.c "mb11=%x mb12=%x.\n", __func__, mcp->mb[1], mcp->mb[2], mb 2897 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3], mcp->mb[6], mcp->mb[7], mcp->mb[10], mb 2898 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11], mcp->mb[12]); mb 2900 drivers/scsi/qla2xxx/qla_mbx.c ha->orig_fw_tgt_xcb_count = mcp->mb[1]; mb 2901 drivers/scsi/qla2xxx/qla_mbx.c ha->cur_fw_tgt_xcb_count = mcp->mb[2]; mb 2902 drivers/scsi/qla2xxx/qla_mbx.c ha->cur_fw_xcb_count = mcp->mb[3]; mb 2903 drivers/scsi/qla2xxx/qla_mbx.c ha->orig_fw_xcb_count = mcp->mb[6]; mb 2904 drivers/scsi/qla2xxx/qla_mbx.c ha->cur_fw_iocb_count = mcp->mb[7]; mb 2905 drivers/scsi/qla2xxx/qla_mbx.c ha->orig_fw_iocb_count = mcp->mb[10]; mb 2907 drivers/scsi/qla2xxx/qla_mbx.c ha->max_npiv_vports = mcp->mb[11]; mb 2910 drivers/scsi/qla2xxx/qla_mbx.c ha->fw_max_fcf_count = mcp->mb[12]; mb 2950 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_FC_AL_POSITION_MAP; mb 2951 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(pmap_dma); mb 2952 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(pmap_dma); mb 2953 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(pmap_dma)); mb 2954 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(pmap_dma)); mb 2965 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0], mcp->mb[1], (unsigned)pmap[0]); mb 3011 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_LINK_STATUS; mb 3012 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(LSD(stats_dma)); mb 3013 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(LSD(stats_dma)); mb 3014 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(stats_dma)); mb 3015 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(stats_dma)); mb 3019 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 3020 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = 0; mb 3021 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = 0; mb 3025 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 3026 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = 0; mb 3029 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id << 8; mb 3037 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] != MBS_COMMAND_COMPLETE) { mb 3039 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 3069 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[0] = MBC_GET_LINK_PRIV_STATS; mb 3070 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[2] = MSW(stats_dma); mb 3071 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[3] = LSW(stats_dma); mb 3072 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[6] = MSW(MSD(stats_dma)); mb 3073 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[7] = LSW(MSD(stats_dma)); mb 3074 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[8] = sizeof(struct link_statistics) / 4; mb 3075 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[9] = cpu_to_le16(vha->vp_idx); mb 3076 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[10] = cpu_to_le16(options); mb 3081 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] != MBS_COMMAND_COMPLETE) { mb 3083 drivers/scsi/qla2xxx/qla_mbx.c "Failed mb[0]=%x.\n", mcp->mb[0]); mb 3323 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GEN_SYSTEM_ERROR; mb 3354 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_WRITE_SERDES; mb 3355 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = addr; mb 3357 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = data & 0xff; mb 3359 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = data; mb 3361 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0; mb 3370 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 3393 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_READ_SERDES; mb 3394 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = addr; mb 3395 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = 0; mb 3403 drivers/scsi/qla2xxx/qla_mbx.c *data = mcp->mb[1] & 0xff; mb 3405 drivers/scsi/qla2xxx/qla_mbx.c *data = mcp->mb[1]; mb 3409 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 3431 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_GET_ETH_SERDES_REG; mb 3432 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = HCS_WRITE_SERDES; mb 3433 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(addr); mb 3434 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = MSW(addr); mb 3435 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = LSW(data); mb 3436 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(data); mb 3445 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 3467 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_GET_ETH_SERDES_REG; mb 3468 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = HCS_READ_SERDES; mb 3469 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(addr); mb 3470 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = MSW(addr); mb 3477 drivers/scsi/qla2xxx/qla_mbx.c *data = mcp->mb[2] << 16 | mcp->mb[1]; mb 3481 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 3510 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SERDES_PARAMS; mb 3511 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = BIT_0; mb 3512 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = sw_em_1g | BIT_15; mb 3513 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = sw_em_2g | BIT_15; mb 3514 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = sw_em_4g | BIT_15; mb 3524 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 3547 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_STOP_FIRMWARE; mb 3548 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0; mb 3557 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] == MBS_INVALID_COMMAND) mb 3584 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_TRACE_CONTROL; mb 3585 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = TC_EFT_ENABLE; mb 3586 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(eft_dma); mb 3587 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(eft_dma); mb 3588 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(MSD(eft_dma)); mb 3589 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = MSW(MSD(eft_dma)); mb 3590 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = buffers; mb 3591 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = TC_AEN_DISABLE; mb 3600 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 3625 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_TRACE_CONTROL; mb 3626 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = TC_EFT_DISABLE; mb 3635 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 3646 drivers/scsi/qla2xxx/qla_mbx.c uint16_t buffers, uint16_t *mb, uint32_t *dwords) mb 3663 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_TRACE_CONTROL; mb 3664 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = TC_FCE_ENABLE; mb 3665 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(fce_dma); mb 3666 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(fce_dma); mb 3667 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(MSD(fce_dma)); mb 3668 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = MSW(MSD(fce_dma)); mb 3669 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = buffers; mb 3670 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = TC_AEN_DISABLE; mb 3671 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = 0; mb 3672 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = TC_FCE_DEFAULT_RX_SIZE; mb 3673 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = TC_FCE_DEFAULT_TX_SIZE; mb 3683 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 3688 drivers/scsi/qla2xxx/qla_mbx.c if (mb) mb 3689 drivers/scsi/qla2xxx/qla_mbx.c memcpy(mb, mcp->mb, 8 * sizeof(*mb)); mb 3713 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_TRACE_CONTROL; mb 3714 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = TC_FCE_DISABLE; mb 3715 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = TC_FCE_DISABLE_TRACE; mb 3725 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 3731 drivers/scsi/qla2xxx/qla_mbx.c *wr = (uint64_t) mcp->mb[5] << 48 | mb 3732 drivers/scsi/qla2xxx/qla_mbx.c (uint64_t) mcp->mb[4] << 32 | mb 3733 drivers/scsi/qla2xxx/qla_mbx.c (uint64_t) mcp->mb[3] << 16 | mb 3734 drivers/scsi/qla2xxx/qla_mbx.c (uint64_t) mcp->mb[2]; mb 3736 drivers/scsi/qla2xxx/qla_mbx.c *rd = (uint64_t) mcp->mb[9] << 48 | mb 3737 drivers/scsi/qla2xxx/qla_mbx.c (uint64_t) mcp->mb[8] << 32 | mb 3738 drivers/scsi/qla2xxx/qla_mbx.c (uint64_t) mcp->mb[7] << 16 | mb 3739 drivers/scsi/qla2xxx/qla_mbx.c (uint64_t) mcp->mb[6]; mb 3747 drivers/scsi/qla2xxx/qla_mbx.c uint16_t *port_speed, uint16_t *mb) mb 3759 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_PORT_PARAMS; mb 3760 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 3761 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = mcp->mb[3] = 0; mb 3762 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 3770 drivers/scsi/qla2xxx/qla_mbx.c if (mb) { mb 3771 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = mcp->mb[0]; mb 3772 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = mcp->mb[1]; mb 3773 drivers/scsi/qla2xxx/qla_mbx.c mb[3] = mcp->mb[3]; mb 3782 drivers/scsi/qla2xxx/qla_mbx.c *port_speed = mcp->mb[3]; mb 3790 drivers/scsi/qla2xxx/qla_mbx.c uint16_t port_speed, uint16_t *mb) mb 3802 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_PORT_PARAMS; mb 3803 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 3804 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = BIT_0; mb 3805 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = port_speed & 0x3F; mb 3806 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 3814 drivers/scsi/qla2xxx/qla_mbx.c if (mb) { mb 3815 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = mcp->mb[0]; mb 3816 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = mcp->mb[1]; mb 3817 drivers/scsi/qla2xxx/qla_mbx.c mb[3] = mcp->mb[3]; mb 4164 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SEND_CHANGE_REQUEST; mb 4165 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = format; mb 4166 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vp_idx; mb 4174 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] != MBS_COMMAND_COMPLETE) { mb 4195 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DUMP_RISC_RAM_EXTENDED; mb 4196 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = MSW(addr); mb 4199 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DUMP_RISC_RAM; mb 4202 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(addr); mb 4203 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(req_dma); mb 4204 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(req_dma); mb 4205 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(req_dma)); mb 4206 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(req_dma)); mb 4209 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = MSW(size); mb 4210 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = LSW(size); mb 4213 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(size); mb 4224 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 4352 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_INITIALIZE_MULTIQ; mb 4353 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = req->options; mb 4354 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(LSD(req->dma)); mb 4355 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(LSD(req->dma)); mb 4356 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(req->dma)); mb 4357 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(req->dma)); mb 4358 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = req->length; mb 4360 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = req->rsp->id; mb 4361 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[12] = req->qos; mb 4362 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11] = req->vp_idx; mb 4363 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[13] = req->rid; mb 4365 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[15] = 0; mb 4367 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = req->id; mb 4369 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = 0; mb 4371 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = *req->out_ptr = 0; mb 4398 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 4425 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_INITIALIZE_MULTIQ; mb 4426 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = rsp->options; mb 4427 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(LSD(rsp->dma)); mb 4428 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(LSD(rsp->dma)); mb 4429 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(rsp->dma)); mb 4430 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(rsp->dma)); mb 4431 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = rsp->length; mb 4432 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[14] = rsp->msix->entry; mb 4433 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[13] = rsp->rid; mb 4435 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[15] = 0; mb 4437 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = rsp->id; mb 4439 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = *rsp->in_ptr = 0; mb 4441 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = 0; mb 4470 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 4480 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_idc_ack(scsi_qla_host_t *vha, uint16_t *mb) mb 4489 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_IDC_ACK; mb 4490 drivers/scsi/qla2xxx/qla_mbx.c memcpy(&mcp->mb[1], mb, QLA_IDC_ACK_REGS * sizeof(uint16_t)); mb 4499 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 4522 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_FLASH_ACCESS_CTRL; mb 4523 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = FAC_OPT_CMD_GET_SECTOR_SIZE; mb 4533 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 4537 drivers/scsi/qla2xxx/qla_mbx.c *sector_size = mcp->mb[1]; mb 4557 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_FLASH_ACCESS_CTRL; mb 4558 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = enable ? FAC_OPT_CMD_WRITE_ENABLE : mb 4569 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 4592 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_FLASH_ACCESS_CTRL; mb 4593 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = FAC_OPT_CMD_ERASE_SECTOR; mb 4594 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(start); mb 4595 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(start); mb 4596 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(finish); mb 4597 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = MSW(finish); mb 4607 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); mb 4631 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_FLASH_ACCESS_CTRL; mb 4632 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = (lock ? FAC_OPT_CMD_LOCK_SEMAPHORE : mb 4643 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); mb 4662 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_RESTART_MPI_FW; mb 4672 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 4701 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_RNID_PARAMS; mb 4702 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = RNID_TYPE_SET_VERSION << 8; mb 4705 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[i] = cpu_to_le16p(str); mb 4709 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[i] = 0; mb 4719 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x,%x.\n", rval, mcp->mb[0], mcp->mb[1]); mb 4762 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_RNID_PARAMS; mb 4763 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = RNID_TYPE_SET_VERSION << 8 | dwlen; mb 4764 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(LSD(str_dma)); mb 4765 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(LSD(str_dma)); mb 4766 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(str_dma)); mb 4767 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(str_dma)); mb 4776 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x,%x.\n", rval, mcp->mb[0], mcp->mb[1]); mb 4802 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_RNID_PARAMS; mb 4803 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = RNID_TYPE_PORT_LOGIN << 8; mb 4804 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(buf_dma); mb 4805 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(buf_dma); mb 4806 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(buf_dma)); mb 4807 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(buf_dma)); mb 4808 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = bufsiz/4; mb 4817 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x,%x.\n", rval, mcp->mb[0], mcp->mb[1]); mb 4842 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_RNID_PARAMS; mb 4843 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = RNID_TYPE_ASIC_TEMP << 8; mb 4849 drivers/scsi/qla2xxx/qla_mbx.c *temp = mcp->mb[1]; mb 4853 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x,%x.\n", rval, mcp->mb[0], mcp->mb[1]); mb 4880 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_READ_SFP; mb 4881 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = dev; mb 4882 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(sfp_dma); mb 4883 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(sfp_dma); mb 4884 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(sfp_dma)); mb 4885 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(sfp_dma)); mb 4886 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = len; mb 4887 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = off; mb 4888 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = opt; mb 4896 drivers/scsi/qla2xxx/qla_mbx.c *sfp = mcp->mb[1]; mb 4900 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 4901 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[0] == MBS_COMMAND_ERROR && mcp->mb[1] == 0x22) { mb 4934 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_WRITE_SFP; mb 4935 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = dev; mb 4936 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(sfp_dma); mb 4937 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(sfp_dma); mb 4938 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(sfp_dma)); mb 4939 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(sfp_dma)); mb 4940 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = len; mb 4941 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = off; mb 4942 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = opt; mb 4951 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 4974 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_XGMAC_STATS; mb 4975 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(stats_dma); mb 4976 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(stats_dma); mb 4977 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(stats_dma)); mb 4978 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(stats_dma)); mb 4979 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = size_in_bytes >> 2; mb 4989 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); mb 4995 drivers/scsi/qla2xxx/qla_mbx.c *actual_size = mcp->mb[2] << 2; mb 5015 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_DCBX_PARAMS; mb 5016 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0; mb 5017 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(tlv_dma); mb 5018 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(tlv_dma); mb 5019 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(tlv_dma)); mb 5020 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(tlv_dma)); mb 5021 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = size; mb 5031 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2]); mb 5053 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_READ_RAM_EXTENDED; mb 5054 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(risc_addr); mb 5055 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = MSW(risc_addr); mb 5063 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5067 drivers/scsi/qla2xxx/qla_mbx.c *data = mcp->mb[3] << 16 | mcp->mb[2]; mb 5084 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 5085 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DIAGNOSTIC_LOOP_BACK; mb 5086 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = mreq->options | BIT_6; // BIT_6 specifies 64 bit addressing mb 5089 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = LSW(mreq->transfer_size); mb 5090 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11] = MSW(mreq->transfer_size); mb 5093 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[14] = LSW(mreq->send_dma); mb 5094 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[15] = MSW(mreq->send_dma); mb 5095 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[20] = LSW(MSD(mreq->send_dma)); mb 5096 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[21] = MSW(MSD(mreq->send_dma)); mb 5099 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[16] = LSW(mreq->rcv_dma); mb 5100 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[17] = MSW(mreq->rcv_dma); mb 5101 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = LSW(MSD(mreq->rcv_dma)); mb 5102 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = MSW(MSD(mreq->rcv_dma)); mb 5105 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[18] = LSW(mreq->iteration_count); mb 5106 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[19] = MSW(mreq->iteration_count); mb 5123 drivers/scsi/qla2xxx/qla_mbx.c "mb[19]=%x.\n", rval, mcp->mb[0], mcp->mb[1], mcp->mb[2], mb 5124 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3], mcp->mb[18], mcp->mb[19]); mb 5131 drivers/scsi/qla2xxx/qla_mbx.c memcpy( mresp, mcp->mb, 64); mb 5147 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 5148 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DIAGNOSTIC_ECHO; mb 5150 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = mreq->options | BIT_15 | BIT_6; mb 5152 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = vha->fcoe_fcf_idx; mb 5154 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[16] = LSW(mreq->rcv_dma); mb 5155 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[17] = MSW(mreq->rcv_dma); mb 5156 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = LSW(MSD(mreq->rcv_dma)); mb 5157 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = MSW(MSD(mreq->rcv_dma)); mb 5159 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = LSW(mreq->transfer_size); mb 5161 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[14] = LSW(mreq->send_dma); mb 5162 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[15] = MSW(mreq->send_dma); mb 5163 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[20] = LSW(MSD(mreq->send_dma)); mb 5164 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[21] = MSW(MSD(mreq->send_dma)); mb 5187 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 5194 drivers/scsi/qla2xxx/qla_mbx.c memcpy(mresp, mcp->mb, 64); mb 5208 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_ISP84XX_RESET; mb 5209 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = enable_diagnostic; mb 5238 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_WRITE_RAM_WORD_EXTENDED; mb 5239 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(risc_addr); mb 5240 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(data); mb 5241 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(data); mb 5242 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = MSW(risc_addr); mb 5251 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 5261 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_write_mpi_register(scsi_qla_host_t *vha, uint16_t *mb) mb 5278 drivers/scsi/qla2xxx/qla_mbx.c WRT_REG_WORD(®->mailbox1, mb[0]); mb 5279 drivers/scsi/qla2xxx/qla_mbx.c WRT_REG_WORD(®->mailbox2, mb[1]); mb 5280 drivers/scsi/qla2xxx/qla_mbx.c WRT_REG_WORD(®->mailbox3, mb[2]); mb 5281 drivers/scsi/qla2xxx/qla_mbx.c WRT_REG_WORD(®->mailbox4, mb[3]); mb 5313 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mb[0]); mb 5356 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DATA_RATE; mb 5357 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = mode; mb 5358 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = val; mb 5369 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5371 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[1] != 0x7) mb 5373 drivers/scsi/qla2xxx/qla_mbx.c "Speed set:0x%x\n", mcp->mb[1]); mb 5396 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DATA_RATE; mb 5397 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = QLA_GET_DATA_RATE; mb 5407 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5411 drivers/scsi/qla2xxx/qla_mbx.c if (mcp->mb[1] != 0x7) mb 5412 drivers/scsi/qla2xxx/qla_mbx.c ha->link_data_rate = mcp->mb[1]; mb 5419 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_get_port_config(scsi_qla_host_t *vha, uint16_t *mb) mb 5432 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_PORT_CONFIG; mb 5442 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5445 drivers/scsi/qla2xxx/qla_mbx.c memcpy(mb, &mcp->mb[1], sizeof(uint16_t) * 4); mb 5454 drivers/scsi/qla2xxx/qla_mbx.c qla81xx_set_port_config(scsi_qla_host_t *vha, uint16_t *mb) mb 5463 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_PORT_CONFIG; mb 5465 drivers/scsi/qla2xxx/qla_mbx.c memcpy(&mcp->mb[1], mb, sizeof(uint16_t) * 4); mb 5474 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5485 drivers/scsi/qla2xxx/qla_mbx.c uint16_t *mb) mb 5498 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_PORT_PARAMS; mb 5499 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = loop_id; mb 5501 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = BIT_1; mb 5503 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = BIT_2; mb 5504 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = priority & 0xf; mb 5505 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = vha->vp_idx; mb 5511 drivers/scsi/qla2xxx/qla_mbx.c if (mb != NULL) { mb 5512 drivers/scsi/qla2xxx/qla_mbx.c mb[0] = mcp->mb[0]; mb 5513 drivers/scsi/qla2xxx/qla_mbx.c mb[1] = mcp->mb[1]; mb 5514 drivers/scsi/qla2xxx/qla_mbx.c mb[3] = mcp->mb[3]; mb 5515 drivers/scsi/qla2xxx/qla_mbx.c mb[4] = mcp->mb[4]; mb 5590 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_TOGGLE_INTERRUPT; mb 5591 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 1; mb 5601 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5625 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_TOGGLE_INTERRUPT; mb 5626 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = 0; mb 5636 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5656 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 5657 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = LSW(MBC_DIAGNOSTIC_MINIDUMP_TEMPLATE); mb 5658 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = MSW(MBC_DIAGNOSTIC_MINIDUMP_TEMPLATE); mb 5659 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(RQST_TMPLT_SIZE); mb 5660 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(RQST_TMPLT_SIZE); mb 5674 drivers/scsi/qla2xxx/qla_mbx.c (mcp->mb[1] << 16) | mcp->mb[0], mb 5675 drivers/scsi/qla2xxx/qla_mbx.c (mcp->mb[3] << 16) | mcp->mb[2]); mb 5679 drivers/scsi/qla2xxx/qla_mbx.c ha->md_template_size = ((mcp->mb[3] << 16) | mcp->mb[2]); mb 5708 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 5709 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = LSW(MBC_DIAGNOSTIC_MINIDUMP_TEMPLATE); mb 5710 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = MSW(MBC_DIAGNOSTIC_MINIDUMP_TEMPLATE); mb 5711 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(RQST_TMPLT); mb 5712 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(RQST_TMPLT); mb 5713 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(LSD(ha->md_tmplt_hdr_dma)); mb 5714 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = MSW(LSD(ha->md_tmplt_hdr_dma)); mb 5715 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = LSW(MSD(ha->md_tmplt_hdr_dma)); mb 5716 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = MSW(MSD(ha->md_tmplt_hdr_dma)); mb 5717 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = LSW(ha->md_template_size); mb 5718 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = MSW(ha->md_template_size); mb 5730 drivers/scsi/qla2xxx/qla_mbx.c ((mcp->mb[1] << 16) | mcp->mb[0]), mb 5731 drivers/scsi/qla2xxx/qla_mbx.c ((mcp->mb[3] << 16) | mcp->mb[2])); mb 5758 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 5760 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = LSW(MBC_DIAGNOSTIC_MINIDUMP_TEMPLATE); mb 5761 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = MSW(MBC_DIAGNOSTIC_MINIDUMP_TEMPLATE); mb 5762 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(RQST_TMPLT); mb 5763 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(RQST_TMPLT); mb 5764 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(LSD(ha->md_tmplt_hdr_dma + offset)); mb 5765 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = MSW(LSD(ha->md_tmplt_hdr_dma + offset)); mb 5766 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = LSW(MSD(ha->md_tmplt_hdr_dma + offset)); mb 5767 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = MSW(MSD(ha->md_tmplt_hdr_dma + offset)); mb 5768 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = LSW(size); mb 5769 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = MSW(size); mb 5770 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = offset & 0x0000FFFF; mb 5771 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[11] = offset & 0xFFFF0000; mb 5782 drivers/scsi/qla2xxx/qla_mbx.c ((mcp->mb[1] << 16) | mcp->mb[0]), mb 5783 drivers/scsi/qla2xxx/qla_mbx.c ((mcp->mb[3] << 16) | mcp->mb[2])); mb 5808 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_LED_CONFIG; mb 5809 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = led_cfg[0]; mb 5810 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = led_cfg[1]; mb 5812 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = led_cfg[2]; mb 5813 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = led_cfg[3]; mb 5814 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = led_cfg[4]; mb 5815 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = led_cfg[5]; mb 5828 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5852 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_LED_CONFIG; mb 5864 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5866 drivers/scsi/qla2xxx/qla_mbx.c led_cfg[0] = mcp->mb[1]; mb 5867 drivers/scsi/qla2xxx/qla_mbx.c led_cfg[1] = mcp->mb[2]; mb 5869 drivers/scsi/qla2xxx/qla_mbx.c led_cfg[2] = mcp->mb[3]; mb 5870 drivers/scsi/qla2xxx/qla_mbx.c led_cfg[3] = mcp->mb[4]; mb 5871 drivers/scsi/qla2xxx/qla_mbx.c led_cfg[4] = mcp->mb[5]; mb 5872 drivers/scsi/qla2xxx/qla_mbx.c led_cfg[5] = mcp->mb[6]; mb 5896 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_LED_CONFIG; mb 5898 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = 0xE; mb 5900 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = 0xD; mb 5910 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5933 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_WRITE_REMOTE_REG; mb 5934 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(reg); mb 5935 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(reg); mb 5936 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(data); mb 5937 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = MSW(data); mb 5947 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 5975 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_PORT_LOGOUT; mb 5976 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = fcport->loop_id; mb 5977 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = BIT_15; mb 5985 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 6008 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_READ_REMOTE_REG; mb 6009 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(reg); mb 6010 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(reg); mb 6020 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 6022 drivers/scsi/qla2xxx/qla_mbx.c *data = (mcp->mb[3] | (mcp->mb[4] << 16)); mb 6057 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_RESTART_NIC_FIRMWARE; mb 6067 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1]); mb 6091 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SET_ACCESS_CONTROL; mb 6092 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = options; mb 6095 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = LSW(start_addr); mb 6096 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(start_addr); mb 6097 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(end_addr); mb 6098 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = MSW(end_addr); mb 6111 drivers/scsi/qla2xxx/qla_mbx.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2], mcp->mb[3], mb 6112 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4]); mb 6116 drivers/scsi/qla2xxx/qla_mbx.c *sector_size = mcp->mb[1]; mb 6119 drivers/scsi/qla2xxx/qla_mbx.c "Driver-lock id=%x%x", mcp->mb[4], mcp->mb[3]); mb 6122 drivers/scsi/qla2xxx/qla_mbx.c "Flash-lock id=%x%x", mcp->mb[4], mcp->mb[3]); mb 6144 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DUMP_RISC_RAM_EXTENDED; mb 6145 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(addr); mb 6146 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(req_dma); mb 6147 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(req_dma); mb 6148 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = MSW(size); mb 6149 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = LSW(size); mb 6150 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(req_dma)); mb 6151 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(req_dma)); mb 6152 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = MSW(addr); mb 6155 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[10] = BIT_7 | 0x40; mb 6167 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 6201 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_DPORT_DIAGNOSTICS; mb 6202 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = options; mb 6203 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(LSD(dd_dma)); mb 6204 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(LSD(dd_dma)); mb 6205 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = MSW(MSD(dd_dma)); mb 6206 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = LSW(MSD(dd_dma)); mb 6207 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = size; mb 6255 drivers/scsi/qla2xxx/qla_mbx.c sp->name = mb_to_str(mcp->mb[0]); mb 6263 drivers/scsi/qla2xxx/qla_mbx.c memcpy(sp->u.iocb_cmd.u.mbx.out_mb, mcp->mb, SIZEOF_IOCB_MB_REG); mb 6279 drivers/scsi/qla2xxx/qla_mbx.c memcpy(mcp->mb, sp->u.iocb_cmd.u.mbx.in_mb, SIZEOF_IOCB_MB_REG); mb 6326 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[0] = MBC_GET_PORT_DATABASE; mb 6327 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[1] = cpu_to_le16(fcport->loop_id); mb 6328 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[2] = MSW(pd_dma); mb 6329 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[3] = LSW(pd_dma); mb 6330 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[6] = MSW(MSD(pd_dma)); mb 6331 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[7] = LSW(MSD(pd_dma)); mb 6332 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[9] = cpu_to_le16(vha->vp_idx); mb 6333 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[10] = cpu_to_le16((uint16_t)opt); mb 6438 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[0] = MBC_GET_ID_LIST; mb 6439 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[2] = MSW(id_list_dma); mb 6440 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[3] = LSW(id_list_dma); mb 6441 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[6] = MSW(MSD(id_list_dma)); mb 6442 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[7] = LSW(MSD(id_list_dma)); mb 6443 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[8] = 0; mb 6444 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[9] = cpu_to_le16(vha->vp_idx); mb 6451 drivers/scsi/qla2xxx/qla_mbx.c *entries = mc.mb[1]; mb 6468 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0 , sizeof(mcp->mb)); mb 6469 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_SET_ZIO_THRESHOLD; mb 6470 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = cpu_to_le16(1); mb 6471 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = cpu_to_le16(value); mb 6494 drivers/scsi/qla2xxx/qla_mbx.c memset(mcp->mb, 0, sizeof(mcp->mb)); mb 6495 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_GET_SET_ZIO_THRESHOLD; mb 6496 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = cpu_to_le16(0); mb 6504 drivers/scsi/qla2xxx/qla_mbx.c *value = mc.mb[2]; mb 6574 drivers/scsi/qla2xxx/qla_mbx.c mc.mb[0] = MBC_GET_RESOURCE_COUNTS; mb 6582 drivers/scsi/qla2xxx/qla_mbx.c memcpy(out_mb, mc.mb, out_mb_sz); mb 6584 drivers/scsi/qla2xxx/qla_mbx.c memcpy(out_mb, mc.mb, SIZEOF_IOCB_MB_REG); mb 6601 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_SECURE_FLASH_UPDATE; mb 6602 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = opts; mb 6603 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = region; mb 6604 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = MSW(len); mb 6605 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = LSW(len); mb 6606 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[5] = MSW(sfub_dma_addr); mb 6607 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = LSW(sfub_dma_addr); mb 6608 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[7] = MSW(MSD(sfub_dma_addr)); mb 6609 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[8] = LSW(MSD(sfub_dma_addr)); mb 6610 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = sfub_len; mb 6620 drivers/scsi/qla2xxx/qla_mbx.c __func__, vha->host_no, rval, mcp->mb[0], mcp->mb[1], mb 6621 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2]); mb 6637 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_WRITE_REMOTE_REG; mb 6638 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(addr); mb 6639 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(addr); mb 6640 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[3] = LSW(data); mb 6641 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[4] = MSW(data); mb 6650 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 6669 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[0] = MBC_READ_REMOTE_REG; mb 6670 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = LSW(addr); mb 6671 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = MSW(addr); mb 6678 drivers/scsi/qla2xxx/qla_mbx.c *data = (uint32_t)((((uint32_t)mcp->mb[4]) << 16) | mcp->mb[3]); mb 6682 drivers/scsi/qla2xxx/qla_mbx.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 259 drivers/scsi/qla2xxx/qla_mid.c qla2x00_alert_all_vps(struct rsp_que *rsp, uint16_t *mb) mb 275 drivers/scsi/qla2xxx/qla_mid.c switch (mb[0]) { mb 284 drivers/scsi/qla2xxx/qla_mid.c i, *mb, vha); mb 285 drivers/scsi/qla2xxx/qla_mid.c qla2x00_async_event(vha, rsp, mb); mb 289 drivers/scsi/qla2xxx/qla_mid.c if ((mb[3] & 0xff) == vha->vp_idx) { mb 292 drivers/scsi/qla2xxx/qla_mid.c i, *mb, vha); mb 293 drivers/scsi/qla2xxx/qla_mid.c qla2x00_async_event(vha, rsp, mb); mb 83 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[0] = MBS_LINK_DOWN_ERROR; mb 99 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[0]); mb 108 drivers/scsi/qla2xxx/qla_mr.c "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); mb 115 drivers/scsi/qla2xxx/qla_mr.c iptr = mcp->mb; mb 116 drivers/scsi/qla2xxx/qla_mr.c command = mcp->mb[0]; mb 133 drivers/scsi/qla2xxx/qla_mr.c (uint8_t *)mcp->mb, 16); mb 135 drivers/scsi/qla2xxx/qla_mr.c ((uint8_t *)mcp->mb + 0x10), 16); mb 137 drivers/scsi/qla2xxx/qla_mr.c ((uint8_t *)mcp->mb + 0x20), 8); mb 193 drivers/scsi/qla2xxx/qla_mr.c iptr2 = mcp->mb; mb 223 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[0] != MBC_GEN_SYSTEM_ERROR) { mb 237 drivers/scsi/qla2xxx/qla_mr.c "abort.\n", command, mcp->mb[0], mb 254 drivers/scsi/qla2xxx/qla_mr.c command, mcp->mb[0]); mb 277 drivers/scsi/qla2xxx/qla_mr.c rval, mcp->mb[0], mcp->mb[1], mcp->mb[2], mcp->mb[3], mb 309 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[0] = MBC_MR_DRV_SHUTDOWN; mb 355 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[0] = MBC_GET_FIRMWARE_STATE; mb 363 drivers/scsi/qla2xxx/qla_mr.c states[0] = mcp->mb[1]; mb 367 drivers/scsi/qla2xxx/qla_mr.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 403 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[0] = MBC_INITIALIZE_FIRMWARE; mb 405 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[1] = 0; mb 406 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[2] = MSD(ha->init_cb_dma); mb 407 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[3] = LSD(ha->init_cb_dma); mb 418 drivers/scsi/qla2xxx/qla_mr.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 440 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[0] = MBC_MAILBOX_REGISTER_TEST; mb 441 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[1] = 0xAAAA; mb 442 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[2] = 0x5555; mb 443 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[3] = 0xAA55; mb 444 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[4] = 0x55AA; mb 445 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[5] = 0xA5A5; mb 446 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[6] = 0x5A5A; mb 447 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[7] = 0x2525; mb 448 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[8] = 0xBBBB; mb 449 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[9] = 0x6666; mb 450 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[10] = 0xBB66; mb 451 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[11] = 0x66BB; mb 452 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[12] = 0xB6B6; mb 453 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[13] = 0x6B6B; mb 454 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[14] = 0x3636; mb 455 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[15] = 0xCCCC; mb 467 drivers/scsi/qla2xxx/qla_mr.c if (mcp->mb[17] != 0xAAAA || mcp->mb[18] != 0x5555 || mb 468 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[19] != 0xAA55 || mcp->mb[20] != 0x55AA) mb 470 drivers/scsi/qla2xxx/qla_mr.c if (mcp->mb[21] != 0xA5A5 || mcp->mb[22] != 0x5A5A || mb 471 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[23] != 0x2525 || mcp->mb[24] != 0xBBBB) mb 473 drivers/scsi/qla2xxx/qla_mr.c if (mcp->mb[25] != 0x6666 || mcp->mb[26] != 0xBB66 || mb 474 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[27] != 0x66BB || mcp->mb[28] != 0xB6B6) mb 476 drivers/scsi/qla2xxx/qla_mr.c if (mcp->mb[29] != 0x6B6B || mcp->mb[30] != 0x3636 || mb 477 drivers/scsi/qla2xxx/qla_mr.c mcp->mb[31] != 0xCCCC) mb 483 drivers/scsi/qla2xxx/qla_mr.c "Failed=%x mb[0]=%x.\n", rval, mcp->mb[0]); mb 2912 drivers/scsi/qla2xxx/qla_mr.c uint32_t mb[8]; mb 2943 drivers/scsi/qla2xxx/qla_mr.c mb[0] = RD_REG_WORD(®->mailbox16); mb 2944 drivers/scsi/qla2xxx/qla_mr.c qlafx00_mbx_completion(vha, mb[0]); mb 2039 drivers/scsi/qla2xxx/qla_nx.c uint16_t mb[8]; mb 2084 drivers/scsi/qla2xxx/qla_nx.c mb[0] = MSW(stat); mb 2085 drivers/scsi/qla2xxx/qla_nx.c mb[1] = RD_REG_WORD(®->mailbox_out[1]); mb 2086 drivers/scsi/qla2xxx/qla_nx.c mb[2] = RD_REG_WORD(®->mailbox_out[2]); mb 2087 drivers/scsi/qla2xxx/qla_nx.c mb[3] = RD_REG_WORD(®->mailbox_out[3]); mb 2088 drivers/scsi/qla2xxx/qla_nx.c qla2x00_async_event(vha, rsp, mb); mb 2123 drivers/scsi/qla2xxx/qla_nx.c uint16_t mb[8]; mb 2153 drivers/scsi/qla2xxx/qla_nx.c mb[0] = MSW(stat); mb 2154 drivers/scsi/qla2xxx/qla_nx.c mb[1] = RD_REG_WORD(®->mailbox_out[1]); mb 2155 drivers/scsi/qla2xxx/qla_nx.c mb[2] = RD_REG_WORD(®->mailbox_out[2]); mb 2156 drivers/scsi/qla2xxx/qla_nx.c mb[3] = RD_REG_WORD(®->mailbox_out[3]); mb 2157 drivers/scsi/qla2xxx/qla_nx.c qla2x00_async_event(vha, rsp, mb); mb 2219 drivers/scsi/qla2xxx/qla_nx.c uint16_t mb[8]; mb 2248 drivers/scsi/qla2xxx/qla_nx.c mb[0] = MSW(stat); mb 2249 drivers/scsi/qla2xxx/qla_nx.c mb[1] = RD_REG_WORD(®->mailbox_out[1]); mb 2250 drivers/scsi/qla2xxx/qla_nx.c mb[2] = RD_REG_WORD(®->mailbox_out[2]); mb 2251 drivers/scsi/qla2xxx/qla_nx.c mb[3] = RD_REG_WORD(®->mailbox_out[3]); mb 2252 drivers/scsi/qla2xxx/qla_nx.c qla2x00_async_event(vha, rsp, mb); mb 3898 drivers/scsi/qla2xxx/qla_nx2.c uint16_t mb[8]; mb 3963 drivers/scsi/qla2xxx/qla_nx2.c mb[0] = MSW(stat); mb 3964 drivers/scsi/qla2xxx/qla_nx2.c mb[1] = RD_REG_WORD(®->mailbox_out[1]); mb 3965 drivers/scsi/qla2xxx/qla_nx2.c mb[2] = RD_REG_WORD(®->mailbox_out[2]); mb 3966 drivers/scsi/qla2xxx/qla_nx2.c mb[3] = RD_REG_WORD(®->mailbox_out[3]); mb 3967 drivers/scsi/qla2xxx/qla_nx2.c qla2x00_async_event(vha, rsp, mb); mb 4915 drivers/scsi/qla2xxx/qla_os.c qla2x00_post_idc_ack_work(struct scsi_qla_host *vha, uint16_t *mb) mb 4923 drivers/scsi/qla2xxx/qla_os.c memcpy(e->u.idc_ack.mb, mb, QLA_IDC_ACK_REGS * sizeof(uint16_t)); mb 5229 drivers/scsi/qla2xxx/qla_os.c qla81xx_idc_ack(vha, e->u.idc_ack.mb); mb 59 drivers/scsi/ufs/cdns-pltfrm.c mb(); mb 246 drivers/scsi/ufs/ufs-qcom.c mb(); mb 301 drivers/scsi/ufs/ufs-qcom.c mb(); mb 398 drivers/scsi/ufs/ufs-qcom.c mb(); mb 461 drivers/scsi/ufs/ufs-qcom.c mb(); mb 471 drivers/scsi/ufs/ufs-qcom.c mb(); mb 1509 drivers/scsi/ufs/ufs-qcom.c mb(); mb 161 drivers/scsi/ufs/ufs-qcom.h mb(); mb 173 drivers/scsi/ufs/ufs-qcom.h mb(); mb 8364 drivers/scsi/ufs/ufshcd.c mb(); mb 228 drivers/scsi/wd33c93.c mb(); mb 238 drivers/scsi/wd33c93.c mb(); mb 242 drivers/scsi/wd33c93.c mb(); mb 256 drivers/scsi/wd33c93.c mb(); mb 258 drivers/scsi/wd33c93.c mb(); mb 265 drivers/scsi/wd33c93.c mb(); mb 269 drivers/scsi/wd33c93.c mb(); mb 276 drivers/scsi/wd33c93.c mb(); mb 278 drivers/scsi/wd33c93.c mb(); mb 128 drivers/slimbus/qcom-ctrl.c mb(); mb 288 drivers/slimbus/qcom-ctrl.c mb(); mb 232 drivers/soc/fsl/qe/qe_ic.c mb(); mb 784 drivers/spi/spi-bcm-qspi.c mb(); mb 861 drivers/spi/spi-bcm-qspi.c mb(); mb 154 drivers/staging/isdn/avm/c4.c mb(); mb 307 drivers/staging/isdn/avm/c4.c mb(); mb 331 drivers/staging/isdn/avm/c4.c mb(); mb 94 drivers/staging/speakup/spk_ttyio.c mb(); mb 306 drivers/staging/speakup/spk_ttyio.c mb(); mb 1266 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c mb(); mb 612 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c mb(); mb 732 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c mb(); mb 817 drivers/target/target_core_user.c struct tcmu_mailbox *mb = udev->mb_addr; mb 823 drivers/target/target_core_user.c tcmu_flush_dcache_range(mb, sizeof(*mb)); mb 825 drivers/target/target_core_user.c cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ mb 959 drivers/target/target_core_user.c struct tcmu_mailbox *mb; mb 998 drivers/target/target_core_user.c mb = udev->mb_addr; mb 999 drivers/target/target_core_user.c cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ mb 1023 drivers/target/target_core_user.c entry = (void *) mb + CMDR_OFF + cmd_head; mb 1031 drivers/target/target_core_user.c UPDATE_HEAD(mb->cmd_head, pad_size, udev->cmdr_size); mb 1032 drivers/target/target_core_user.c tcmu_flush_dcache_range(mb, sizeof(*mb)); mb 1034 drivers/target/target_core_user.c cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ mb 1038 drivers/target/target_core_user.c entry = (void *) mb + CMDR_OFF + cmd_head; mb 1085 drivers/target/target_core_user.c memcpy((void *) mb + cdb_off, se_cmd->t_task_cdb, scsi_command_size(se_cmd->t_task_cdb)); mb 1089 drivers/target/target_core_user.c UPDATE_HEAD(mb->cmd_head, command_size, udev->cmdr_size); mb 1090 drivers/target/target_core_user.c tcmu_flush_dcache_range(mb, sizeof(*mb)); mb 1219 drivers/target/target_core_user.c struct tcmu_mailbox *mb; mb 1228 drivers/target/target_core_user.c mb = udev->mb_addr; mb 1229 drivers/target/target_core_user.c tcmu_flush_dcache_range(mb, sizeof(*mb)); mb 1231 drivers/target/target_core_user.c while (udev->cmdr_last_cleaned != READ_ONCE(mb->cmd_tail)) { mb 1233 drivers/target/target_core_user.c struct tcmu_cmd_entry *entry = (void *) mb + CMDR_OFF + udev->cmdr_last_cleaned; mb 1262 drivers/target/target_core_user.c if (mb->cmd_tail == mb->cmd_head) { mb 1875 drivers/target/target_core_user.c struct tcmu_mailbox *mb; mb 1905 drivers/target/target_core_user.c mb = udev->mb_addr; mb 1906 drivers/target/target_core_user.c mb->version = TCMU_MAILBOX_VERSION; mb 1907 drivers/target/target_core_user.c mb->flags = TCMU_MAILBOX_FLAG_CAP_OOOC | TCMU_MAILBOX_FLAG_CAP_READ_LEN; mb 1908 drivers/target/target_core_user.c mb->cmdr_off = CMDR_OFF; mb 1909 drivers/target/target_core_user.c mb->cmdr_size = udev->cmdr_size; mb 2033 drivers/target/target_core_user.c struct tcmu_mailbox *mb; mb 2067 drivers/target/target_core_user.c mb = udev->mb_addr; mb 2068 drivers/target/target_core_user.c tcmu_flush_dcache_range(mb, sizeof(*mb)); mb 2070 drivers/target/target_core_user.c mb->cmd_tail, mb->cmd_head); mb 2073 drivers/target/target_core_user.c mb->cmd_tail = 0; mb 2074 drivers/target/target_core_user.c mb->cmd_head = 0; mb 2075 drivers/target/target_core_user.c tcmu_flush_dcache_range(mb, sizeof(*mb)); mb 200 drivers/tty/amiserial.c mb(); mb 202 drivers/tty/amiserial.c mb(); mb 221 drivers/tty/amiserial.c mb(); mb 224 drivers/tty/amiserial.c mb(); mb 262 drivers/tty/amiserial.c mb(); mb 264 drivers/tty/amiserial.c mb(); mb 341 drivers/tty/amiserial.c mb(); mb 344 drivers/tty/amiserial.c mb(); mb 354 drivers/tty/amiserial.c mb(); mb 359 drivers/tty/amiserial.c mb(); mb 373 drivers/tty/amiserial.c mb(); mb 426 drivers/tty/amiserial.c mb(); mb 429 drivers/tty/amiserial.c mb(); mb 442 drivers/tty/amiserial.c mb(); mb 444 drivers/tty/amiserial.c mb(); mb 546 drivers/tty/amiserial.c mb(); mb 559 drivers/tty/amiserial.c mb(); mb 625 drivers/tty/amiserial.c mb(); mb 629 drivers/tty/amiserial.c mb(); mb 773 drivers/tty/amiserial.c mb(); mb 823 drivers/tty/amiserial.c mb(); mb 826 drivers/tty/amiserial.c mb(); mb 868 drivers/tty/amiserial.c mb(); mb 871 drivers/tty/amiserial.c mb(); mb 928 drivers/tty/amiserial.c mb(); mb 931 drivers/tty/amiserial.c mb(); mb 1097 drivers/tty/amiserial.c mb(); mb 1169 drivers/tty/amiserial.c mb(); mb 1352 drivers/tty/amiserial.c mb(); mb 1355 drivers/tty/amiserial.c mb(); mb 1681 drivers/tty/amiserial.c mb(); mb 1685 drivers/tty/amiserial.c mb(); mb 88 drivers/tty/hvc/hvc_xen.c mb(); /* update queue values before going on */ mb 140 drivers/tty/hvc/hvc_xen.c mb(); /* get pointers before reading ring */ mb 146 drivers/tty/hvc/hvc_xen.c mb(); /* read ring before consuming */ mb 711 drivers/tty/hvc/hvsi.c mb(); mb 1091 drivers/tty/hvc/hvsi.c mb(); mb 273 drivers/tty/serial/men_z135_uart.c mb(); mb 756 drivers/tty/sysrq.c mb(); mb 767 drivers/tty/sysrq.c mb(); mb 698 drivers/usb/atm/speedtch.c mb(); mb 933 drivers/usb/atm/usbatm.c mb(); mb 2976 drivers/usb/core/hcd.c mb(); mb 2989 drivers/usb/core/hcd.c mb(); mb 494 drivers/usb/gadget/udc/aspeed-vhub/vhub.h mb(); mb 649 drivers/usb/gadget/udc/bcm63xx_udc.c mb(); mb 741 drivers/usb/gadget/udc/bcm63xx_udc.c mb(); mb 1557 drivers/usb/gadget/udc/bcm63xx_udc.c mb(); mb 826 drivers/usb/gadget/udc/fsl_udc_core.c mb(); mb 398 drivers/usb/gadget/udc/mv_udc_core.c mb(); mb 2363 drivers/usb/gadget/udc/net2272.c mb(); mb 2416 drivers/usb/gadget/udc/net2272.c mb(); mb 688 drivers/usb/gadget/udc/net2280.c mb(); mb 650 drivers/usb/host/pci-quirks.c mb(); mb 193 drivers/usb/host/uhci-hcd.c mb(); mb 350 drivers/usb/host/uhci-hcd.c mb(); mb 405 drivers/usb/host/uhci-hcd.c mb(); mb 438 drivers/usb/host/uhci-hcd.c mb(); mb 670 drivers/usb/host/uhci-hcd.c mb(); mb 527 drivers/usb/host/uhci-q.c mb(); mb 545 drivers/usb/host/uhci-q.c mb(); mb 1498 drivers/usb/host/uhci-q.c mb(); mb 384 drivers/usb/misc/legousbtower.c mb(); mb 466 drivers/usb/misc/legousbtower.c mb(); mb 186 drivers/usb/mon/mon_main.c mb(); mb 259 drivers/usb/mon/mon_main.c mb(); mb 264 drivers/usb/mon/mon_main.c mb(); mb 85 drivers/video/fbdev/bt431.h mb(); mb 100 drivers/video/fbdev/bt431.h mb(); mb 112 drivers/video/fbdev/bt431.h mb(); mb 137 drivers/video/fbdev/bt431.h mb(); mb 149 drivers/video/fbdev/bt431.h mb(); mb 29 drivers/video/fbdev/bt455.h mb(); mb 35 drivers/video/fbdev/bt455.h mb(); mb 44 drivers/video/fbdev/bt455.h mb(); mb 610 drivers/video/fbdev/controlfb.c mb(); mb 613 drivers/video/fbdev/controlfb.c mb(); mb 629 drivers/video/fbdev/controlfb.c mb(); mb 632 drivers/video/fbdev/controlfb.c mb(); mb 442 drivers/video/fbdev/fsl-diu-fb.c mb(); mb 86 drivers/video/fbdev/nvidia/nv_local.h #define _NV_FENCE() mb(); mb 93 drivers/video/fbdev/nvidia/nv_local.h mb(); \ mb 239 drivers/video/fbdev/nvidia/nv_setup.c mb(); mb 157 drivers/video/fbdev/pm2fb.c mb(); mb 164 drivers/video/fbdev/pm2fb.c mb(); mb 324 drivers/video/fbdev/pm2fb.c mb(); mb 327 drivers/video/fbdev/pm2fb.c mb(); mb 331 drivers/video/fbdev/pm2fb.c mb(); mb 776 drivers/video/fbdev/pm2fb.c mb(); mb 1036 drivers/video/fbdev/pm2fb.c mb(); mb 204 drivers/video/fbdev/pm3fb.c mb(); mb 1262 drivers/video/fbdev/pm3fb.c mb(); mb 1284 drivers/video/fbdev/pm3fb.c mb(); mb 107 drivers/video/fbdev/pmag-ba-fb.c mb(); mb 136 drivers/video/fbdev/pmag-ba-fb.c mb(); mb 111 drivers/video/fbdev/pmagb-b-fb.c mb(); mb 140 drivers/video/fbdev/pmagb-b-fb.c mb(); mb 196 drivers/video/fbdev/pmagb-b-fb.c mb(); mb 198 drivers/video/fbdev/pmagb-b-fb.c mb(); mb 209 drivers/video/fbdev/pmagb-b-fb.c mb(); mb 1427 drivers/video/fbdev/riva/fbdev.c mb(); mb 1430 drivers/video/fbdev/riva/fbdev.c mb(); mb 1460 drivers/video/fbdev/riva/fbdev.c mb(); mb 1463 drivers/video/fbdev/riva/fbdev.c mb(); mb 1472 drivers/video/fbdev/riva/fbdev.c mb(); mb 558 drivers/video/fbdev/riva/riva_hw.h mb();mb(); \ mb 188 drivers/video/fbdev/tdfxfb.c mb(); mb 203 drivers/video/fbdev/tdfxfb.c mb(); mb 239 drivers/video/fbdev/tdfxfb.c mb(); mb 277 drivers/video/fbdev/tgafb.c mb(); mb 283 drivers/video/fbdev/tgafb.c mb(); mb 393 drivers/video/fbdev/tgafb.c mb(); mb 822 drivers/video/fbdev/vermilion/vermilion.c mb(); mb 82 drivers/video/fbdev/xen-fbfront.c mb(); /* ensure ring space available */ mb 105 drivers/virt/vboxguest/vboxguest_utils.c mb(); mb 231 drivers/visorbus/visorchannel.c mb(); mb 325 drivers/visorbus/visorchannel.c mb(); mb 323 drivers/xen/grant-table.c mb(); /* Concurrent access by hypervisor. */ mb 336 drivers/xen/grant-table.c mb(); mb 3534 fs/dlm/lock.c char *mb; mb 3540 fs/dlm/lock.c mh = dlm_lowcomms_get_buffer(to_nodeid, mb_len, GFP_NOFS, &mb); mb 3544 fs/dlm/lock.c memset(mb, 0, mb_len); mb 3546 fs/dlm/lock.c ms = (struct dlm_message *) mb; mb 35 fs/dlm/rcom.c char *mb; mb 38 fs/dlm/rcom.c mh = dlm_lowcomms_get_buffer(to_nodeid, mb_len, GFP_NOFS, &mb); mb 44 fs/dlm/rcom.c memset(mb, 0, mb_len); mb 46 fs/dlm/rcom.c rc = (struct dlm_rcom *) mb; mb 459 fs/dlm/rcom.c char *mb; mb 462 fs/dlm/rcom.c mh = dlm_lowcomms_get_buffer(nodeid, mb_len, GFP_NOFS, &mb); mb 465 fs/dlm/rcom.c memset(mb, 0, mb_len); mb 467 fs/dlm/rcom.c rc = (struct dlm_rcom *) mb; mb 202 fs/ocfs2/journal.c mb(); mb 1490 fs/ocfs2/journal.c mb(); /* sync with ocfs2_recovery_thread_running */ mb 29 include/asm-generic/barrier.h #ifndef mb mb 34 include/asm-generic/barrier.h #define rmb() mb() mb 38 include/asm-generic/barrier.h #define wmb() mb() mb 54 include/asm-generic/barrier.h #define __smp_mb() mb() mb 20 include/linux/can/rx-offload.h u32 *timestamp, unsigned int mb); mb 363 include/linux/compiler.h #define prevent_tail_call_optimization() mb() mb 97 include/linux/cyclades.h #define cy_writeb(port,val) do { writeb((val), (port)); mb(); } while (0) mb 98 include/linux/cyclades.h #define cy_writew(port,val) do { writew((val), (port)); mb(); } while (0) mb 99 include/linux/cyclades.h #define cy_writel(port,val) do { writel((val), (port)); mb(); } while (0) mb 192 include/linux/fsl/bestcomm/bestcomm.h mb(); /* ensure the bd is really up-to-date */ mb 427 include/linux/mtd/map.h mb(); mb 30 include/linux/virtio_ring.h mb(); mb 56 include/linux/virtio_ring.h mb(); mb 197 lib/klist.c mb(); mb 156 mm/swap_slots.c mb(); mb 586 net/can/gw.c struct cgw_fdframe_mod mb; mb 589 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); mb 590 net/can/gw.c mb.modtype = gwj->mod.modtype.and; mb 591 net/can/gw.c if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) mb 596 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); mb 597 net/can/gw.c mb.modtype = gwj->mod.modtype.or; mb 598 net/can/gw.c if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) mb 603 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); mb 604 net/can/gw.c mb.modtype = gwj->mod.modtype.xor; mb 605 net/can/gw.c if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) mb 610 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); mb 611 net/can/gw.c mb.modtype = gwj->mod.modtype.set; mb 612 net/can/gw.c if (nla_put(skb, CGW_FDMOD_SET, sizeof(mb), &mb) < 0) mb 616 net/can/gw.c struct cgw_frame_mod mb; mb 619 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); mb 620 net/can/gw.c mb.modtype = gwj->mod.modtype.and; mb 621 net/can/gw.c if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) mb 626 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); mb 627 net/can/gw.c mb.modtype = gwj->mod.modtype.or; mb 628 net/can/gw.c if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) mb 633 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); mb 634 net/can/gw.c mb.modtype = gwj->mod.modtype.xor; mb 635 net/can/gw.c if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) mb 640 net/can/gw.c memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); mb 641 net/can/gw.c mb.modtype = gwj->mod.modtype.set; mb 642 net/can/gw.c if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) mb 757 net/can/gw.c struct cgw_fdframe_mod mb; mb 760 net/can/gw.c nla_memcpy(&mb, tb[CGW_FDMOD_AND], CGW_FDMODATTR_LEN); mb 762 net/can/gw.c canfdframecpy(&mod->modframe.and, &mb.cf); mb 763 net/can/gw.c mod->modtype.and = mb.modtype; mb 765 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 768 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 771 net/can/gw.c if (mb.modtype & CGW_MOD_FLAGS) mb 774 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 779 net/can/gw.c nla_memcpy(&mb, tb[CGW_FDMOD_OR], CGW_FDMODATTR_LEN); mb 781 net/can/gw.c canfdframecpy(&mod->modframe.or, &mb.cf); mb 782 net/can/gw.c mod->modtype.or = mb.modtype; mb 784 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 787 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 790 net/can/gw.c if (mb.modtype & CGW_MOD_FLAGS) mb 793 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 798 net/can/gw.c nla_memcpy(&mb, tb[CGW_FDMOD_XOR], CGW_FDMODATTR_LEN); mb 800 net/can/gw.c canfdframecpy(&mod->modframe.xor, &mb.cf); mb 801 net/can/gw.c mod->modtype.xor = mb.modtype; mb 803 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 806 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 809 net/can/gw.c if (mb.modtype & CGW_MOD_FLAGS) mb 812 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 817 net/can/gw.c nla_memcpy(&mb, tb[CGW_FDMOD_SET], CGW_FDMODATTR_LEN); mb 819 net/can/gw.c canfdframecpy(&mod->modframe.set, &mb.cf); mb 820 net/can/gw.c mod->modtype.set = mb.modtype; mb 822 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 825 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 828 net/can/gw.c if (mb.modtype & CGW_MOD_FLAGS) mb 831 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 835 net/can/gw.c struct cgw_frame_mod mb; mb 838 net/can/gw.c nla_memcpy(&mb, tb[CGW_MOD_AND], CGW_MODATTR_LEN); mb 840 net/can/gw.c canframecpy(&mod->modframe.and, &mb.cf); mb 841 net/can/gw.c mod->modtype.and = mb.modtype; mb 843 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 846 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 849 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 854 net/can/gw.c nla_memcpy(&mb, tb[CGW_MOD_OR], CGW_MODATTR_LEN); mb 856 net/can/gw.c canframecpy(&mod->modframe.or, &mb.cf); mb 857 net/can/gw.c mod->modtype.or = mb.modtype; mb 859 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 862 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 865 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 870 net/can/gw.c nla_memcpy(&mb, tb[CGW_MOD_XOR], CGW_MODATTR_LEN); mb 872 net/can/gw.c canframecpy(&mod->modframe.xor, &mb.cf); mb 873 net/can/gw.c mod->modtype.xor = mb.modtype; mb 875 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 878 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 881 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 886 net/can/gw.c nla_memcpy(&mb, tb[CGW_MOD_SET], CGW_MODATTR_LEN); mb 888 net/can/gw.c canframecpy(&mod->modframe.set, &mb.cf); mb 889 net/can/gw.c mod->modtype.set = mb.modtype; mb 891 net/can/gw.c if (mb.modtype & CGW_MOD_ID) mb 894 net/can/gw.c if (mb.modtype & CGW_MOD_LEN) mb 897 net/can/gw.c if (mb.modtype & CGW_MOD_DATA) mb 953 net/ipv6/ip6_fib.c mb(); /* paired with the cmpxchg() in rt6_make_pcpu_route() */ mb 61 net/mac80211/pm.c mb(); mb 2520 net/mac80211/util.c mb(); mb 1378 net/sched/sch_cake.c u32 mb = cake_heap_get_backlog(q, i); mb 1388 net/sched/sch_cake.c if (lb > mb) { mb 1390 net/sched/sch_cake.c mb = lb; mb 1397 net/sched/sch_cake.c if (rb > mb) { mb 1399 net/sched/sch_cake.c mb = rb; mb 838 net/tipc/socket.c struct msghdr *m, struct tipc_member *mb, mb 870 net/tipc/socket.c tipc_group_update_member(mb, blks); mb 896 net/tipc/socket.c struct tipc_member *mb = NULL; mb 910 net/tipc/socket.c &mb)); mb 914 net/tipc/socket.c if (unlikely(!mb)) mb 917 net/tipc/socket.c rc = tipc_send_group_msg(net, tsk, m, mb, node, port, dlen); mb 1987 net/vmw_vsock/af_vsock.c mb(); mb 1747 scripts/kconfig/qconf.cc QMessageBox mb("qconf", "Save configuration?", QMessageBox::Warning, mb 1749 scripts/kconfig/qconf.cc mb.setButtonText(QMessageBox::Yes, "&Save Changes"); mb 1750 scripts/kconfig/qconf.cc mb.setButtonText(QMessageBox::No, "&Discard Changes"); mb 1751 scripts/kconfig/qconf.cc mb.setButtonText(QMessageBox::Cancel, "Cancel Exit"); mb 1752 scripts/kconfig/qconf.cc switch (mb.exec()) { mb 516 security/tomoyo/common.c mb(); /* Avoid out-of-order execution. */ mb 17 sound/isa/gus/gus_io.c mb(); mb 36 sound/isa/gus/gus_io.c mb(); mb 38 sound/isa/gus/gus_io.c mb(); mb 40 sound/isa/gus/gus_io.c mb(); mb 42 sound/isa/gus/gus_io.c mb(); mb 50 sound/isa/gus/gus_io.c mb(); mb 52 sound/isa/gus/gus_io.c mb(); mb 59 sound/isa/gus/gus_io.c mb(); mb 67 sound/isa/gus/gus_io.c mb(); mb 69 sound/isa/gus/gus_io.c mb(); mb 76 sound/isa/gus/gus_io.c mb(); mb 277 sound/isa/gus/gus_io.c mb(); mb 279 sound/isa/gus/gus_io.c mb(); mb 281 sound/isa/gus/gus_io.c mb(); mb 283 sound/isa/gus/gus_io.c mb(); mb 292 sound/isa/gus/gus_io.c mb(); mb 294 sound/isa/gus/gus_io.c mb(); mb 296 sound/isa/gus/gus_io.c mb(); mb 298 sound/isa/gus/gus_io.c mb(); mb 310 sound/isa/gus/gus_io.c mb(); mb 312 sound/isa/gus/gus_io.c mb(); mb 314 sound/isa/gus/gus_io.c mb(); mb 316 sound/isa/gus/gus_io.c mb(); mb 334 sound/isa/gus/gus_io.c mb(); mb 336 sound/isa/gus/gus_io.c mb(); mb 338 sound/isa/gus/gus_io.c mb(); mb 340 sound/isa/gus/gus_io.c mb(); mb 342 sound/isa/gus/gus_io.c mb(); mb 358 sound/isa/gus/gus_io.c mb(); mb 360 sound/isa/gus/gus_io.c mb(); mb 362 sound/isa/gus/gus_io.c mb(); mb 364 sound/isa/gus/gus_io.c mb(); mb 366 sound/isa/gus/gus_io.c mb(); mb 387 sound/isa/gus/gus_io.c mb(); mb 389 sound/isa/gus/gus_io.c mb(); mb 391 sound/isa/gus/gus_io.c mb(); mb 393 sound/isa/gus/gus_io.c mb(); mb 182 sound/isa/wss/wss_lib.c mb(); mb 196 sound/isa/wss/wss_lib.c mb(); mb 211 sound/isa/wss/wss_lib.c mb(); mb 1207 sound/isa/wss/wss_lib.c mb(); mb 1262 sound/isa/wss/wss_lib.c mb(); mb 1307 sound/isa/wss/wss_lib.c mb(); mb 622 sound/ppc/snd_ps3.c mb(); mb 303 sound/sparc/cs4231.c mb(); mb 321 sound/sparc/cs4231.c mb(); mb 333 sound/sparc/cs4231.c mb(); mb 1039 sound/sparc/cs4231.c mb(); mb 1061 sound/sparc/cs4231.c mb(); mb 287 sound/usb/line6/driver.c struct midi_buffer *mb = &line6->line6midi->midibuf_in; mb 295 sound/usb/line6/driver.c line6_midibuf_write(mb, urb->transfer_buffer, urb->actual_length); mb 298 sound/usb/line6/driver.c line6_midibuf_ignore(mb, done); mb 305 sound/usb/line6/driver.c line6_midibuf_read(mb, line6->buffer_message, mb 42 sound/usb/line6/midi.c struct midi_buffer *mb = &line6midi->midibuf_out; mb 47 sound/usb/line6/midi.c req = min(line6_midibuf_bytes_free(mb), line6->max_packet_size); mb 53 sound/usb/line6/midi.c line6_midibuf_write(mb, chunk, done); mb 58 sound/usb/line6/midi.c done = line6_midibuf_read(mb, chunk, mb 20 sound/usb/line6/midibuf.h extern int line6_midibuf_bytes_used(struct midi_buffer *mb); mb 21 sound/usb/line6/midibuf.h extern int line6_midibuf_bytes_free(struct midi_buffer *mb); mb 22 sound/usb/line6/midibuf.h extern void line6_midibuf_destroy(struct midi_buffer *mb); mb 23 sound/usb/line6/midibuf.h extern int line6_midibuf_ignore(struct midi_buffer *mb, int length); mb 24 sound/usb/line6/midibuf.h extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split); mb 25 sound/usb/line6/midibuf.h extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data, mb 27 sound/usb/line6/midibuf.h extern void line6_midibuf_reset(struct midi_buffer *mb); mb 28 sound/usb/line6/midibuf.h extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data, mb 59 tools/arch/arm64/include/asm/barrier.h mb(); \ mb 92 tools/arch/arm64/include/asm/barrier.h mb(); \ mb 46 tools/arch/ia64/include/asm/barrier.h #define rmb() mb() mb 47 tools/arch/ia64/include/asm/barrier.h #define wmb() mb() mb 18 tools/arch/mips/include/asm/barrier.h #define wmb() mb() mb 19 tools/arch/mips/include/asm/barrier.h #define rmb() mb() mb 28 tools/arch/s390/include/asm/barrier.h #define rmb() mb() mb 29 tools/arch/s390/include/asm/barrier.h #define wmb() mb() mb 27 tools/arch/sh/include/asm/barrier.h #define rmb() mb() mb 28 tools/arch/sh/include/asm/barrier.h #define wmb() mb() mb 16 tools/arch/xtensa/include/asm/barrier.h #define wmb() mb() mb 27 tools/include/asm-generic/barrier.h #ifndef mb mb 32 tools/include/asm-generic/barrier.h #define rmb() mb() mb 36 tools/include/asm-generic/barrier.h #define wmb() mb() mb 47 tools/include/asm/barrier.h # define smp_mb() mb() mb 28 tools/perf/ui/browsers/map.c struct map_browser *mb = container_of(browser, struct map_browser, b); mb 34 tools/perf/ui/browsers/map.c mb->addrlen, sym->start, mb->addrlen, sym->end, mb 37 tools/perf/ui/browsers/map.c width = browser->width - ((mb->addrlen * 2) + 4); mb 107 tools/perf/ui/browsers/map.c struct map_browser mb = { mb 120 tools/perf/ui/browsers/map.c for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { mb 127 tools/perf/ui/browsers/map.c *idx = mb.b.nr_entries; mb 129 tools/perf/ui/browsers/map.c ++mb.b.nr_entries; mb 132 tools/perf/ui/browsers/map.c mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); mb 133 tools/perf/ui/browsers/map.c return map_browser__run(&mb); mb 425 tools/perf/util/auxtrace.h mb(); mb 207 tools/testing/selftests/net/tcp_mmap.c unsigned long mb = total >> 20; mb 218 tools/testing/selftests/net/tcp_mmap.c (double)total_usec/mb, mb 55 tools/testing/selftests/powerpc/mm/segv_errors.c mb(); mb 57 tools/testing/selftests/powerpc/mm/segv_errors.c mb(); mb 65 tools/testing/selftests/powerpc/mm/segv_errors.c mb(); mb 67 tools/testing/selftests/powerpc/mm/segv_errors.c mb(); mb 83 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_freeze_test.c mb(); mb 89 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_freeze_test.c mb(); mb 152 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 156 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 280 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 289 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 297 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 304 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 311 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 318 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mb(); mb 34 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c mb(); mb 40 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c mb(); mb 43 tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c mb();