| /linux/drivers/mailbox/ |
| H A D | rockchip-mailbox.c | 38 struct rockchip_mbox *mb; member 54 struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); in rockchip_mbox_send_data() local 56 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() 61 if (msg->rx_size > mb->buf_size) { in rockchip_mbox_send_data() 62 dev_err(mb->mbox.dev, "Transmit size over buf size(%d)\n", in rockchip_mbox_send_data() 63 mb->buf_size); in rockchip_mbox_send_data() 67 dev_dbg(mb->mbox.dev, "Chan[%d]: A2B message, cmd 0x%08x\n", in rockchip_mbox_send_data() 70 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data() 72 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data() 73 writel_relaxed(msg->rx_size, mb->mbox_base + in rockchip_mbox_send_data() [all …]
|
| H A D | ast2700-mailbox.c | 42 static inline bool ast2700_mbox_tx_done(struct ast2700_mbox *mb, int idx) in ast2700_mbox_tx_done() argument 44 return !(readl(mb->tx_regs + IPCR_STATUS) & BIT(idx)); in ast2700_mbox_tx_done() 49 struct ast2700_mbox *mb = p; in ast2700_mbox_irq() local 51 int num_words = mb->msg_size / sizeof(u32); in ast2700_mbox_irq() 57 status = readl(mb->rx_regs + IPCR_ENABLE) & in ast2700_mbox_irq() 58 readl(mb->rx_regs + IPCR_STATUS); in ast2700_mbox_irq() 63 for (n = 0; n < mb->mbox.num_chans; ++n) { in ast2700_mbox_irq() 64 struct mbox_chan *chan = &mb->mbox.chans[n]; in ast2700_mbox_irq() 69 data_reg = mb->rx_regs + IPCR_DATA + mb->msg_size * n; in ast2700_mbox_irq() 78 writel(RX_IRQ(n), mb->rx_regs + IPCR_STATUS); in ast2700_mbox_irq() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_mbx.c | 95 * mb[MAX_MAILBOX_REGISTER_COUNT] = returned mailbox data. 161 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 171 !is_rom_cmd(mcp->mb[0])) || ha->flags.eeh_busy) { in qla2x00_mailbox_command() 174 mcp->mb[0]); in qla2x00_mailbox_command() 188 mcp->mb[0]); in qla2x00_mailbox_command() 198 ha->flags.purge_mbox, ha->flags.eeh_busy, mcp->mb[0]); in qla2x00_mailbox_command() 208 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command() 228 iptr = mcp->mb; in qla2x00_mailbox_command() 229 command = mcp->mb[0]; in qla2x00_mailbox_command() 385 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() [all …]
|
| H A D | qla_isr.c | 349 uint16_t mb[8]; in qla2100_intr_handler() local 393 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler() 394 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler() 395 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler() 397 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler() 398 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2100_intr_handler() 399 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2100_intr_handler() 400 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2100_intr_handler() 401 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler() 406 mb[0]); in qla2100_intr_handler() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_mbox.c | 136 MAILBOX_t *mb; in lpfc_dump_static_vport() local 140 mb = &pmb->u.mb; in lpfc_dump_static_vport() 144 mb->mbxCommand = MBX_DUMP_MEMORY; in lpfc_dump_static_vport() 145 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_static_vport() 146 mb->un.varDmp.entry_index = offset; in lpfc_dump_static_vport() 147 mb->un.varDmp.region_id = DMP_REGION_VPORT; in lpfc_dump_static_vport() 148 mb->mbxOwner = OWN_HOST; in lpfc_dump_static_vport() 152 mb->un.varDmp.cv = 1; in lpfc_dump_static_vport() 153 mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); in lpfc_dump_static_vport() 166 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport() [all …]
|
| /linux/net/can/ |
| H A D | gw.c | 669 struct cgw_fdframe_mod mb; in cgw_put_job() local 672 memcpy(&mb.cf, &mod->modframe.and, sizeof(mb.cf)); in cgw_put_job() 673 mb.modtype = mod->modtype.and; in cgw_put_job() 674 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job() 679 memcpy(&mb.cf, &mod->modframe.or, sizeof(mb.cf)); in cgw_put_job() 680 mb.modtype = mod->modtype.or; in cgw_put_job() 681 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job() 686 memcpy(&mb.cf, &mod->modframe.xor, sizeof(mb.cf)); in cgw_put_job() 687 mb.modtype = mod->modtype.xor; in cgw_put_job() 688 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job() [all …]
|
| /linux/Documentation/driver-api/cxl/ |
| H A D | theory-of-operation.rst | 61 "pmem_size":"256.00 MiB (268.44 MB)", 62 "ram_size":"256.00 MiB (268.44 MB)", 73 "pmem_size":"256.00 MiB (268.44 MB)", 74 "ram_size":"256.00 MiB (268.44 MB)", 91 "pmem_size":"256.00 MiB (268.44 MB)", 92 "ram_size":"256.00 MiB (268.44 MB)", 103 "pmem_size":"256.00 MiB (268.44 MB)", 104 "ram_size":"256.00 MiB (268.44 MB)", 127 "pmem_size":"256.00 MiB (268.44 MB)", 128 "ram_size":"256.00 MiB (268.44 MB)", [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | charge_reserved_hugetlb.sh | 87 mb=$(($kb / 1024)) 88 echo $mb 91 MB=$(get_machine_hugepage_size) 101 echo "$cgroup_limit" >$cgroup_path/$name/hugetlb.${MB}MB.$fault_limit_file 105 $cgroup_path/$name/hugetlb.${MB}MB.$reservation_limit_file 117 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 130 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 143 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file" 169 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file 170 local reserved_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file [all …]
|
| /linux/arch/parisc/include/asm/ |
| H A D | assembly.h | 62 #define LDREGM ldd,mb 314 fldd,mb -8(\regs), %fr30 315 fldd,mb -8(\regs), %fr29 316 fldd,mb -8(\regs), %fr28 317 fldd,mb -8(\regs), %fr27 318 fldd,mb -8(\regs), %fr26 319 fldd,mb -8(\regs), %fr25 320 fldd,mb -8(\regs), %fr24 321 fldd,mb -8(\regs), %fr23 322 fldd,mb -8(\regs), %fr22 [all …]
|
| /linux/drivers/net/ethernet/apple/ |
| H A D | mace.c | 319 volatile struct mace __iomem *mb = mp->mace; in mace_reset() local 325 out_8(&mb->biucc, SWRST); in mace_reset() 326 if (in_8(&mb->biucc) & SWRST) { in mace_reset() 337 out_8(&mb->imr, 0xff); /* disable all intrs for now */ in mace_reset() 338 i = in_8(&mb->ir); in mace_reset() 339 out_8(&mb->maccc, 0); /* turn off tx, rx */ in mace_reset() 341 out_8(&mb->biucc, XMTSP_64); in mace_reset() 342 out_8(&mb->utr, RTRD); in mace_reset() 343 out_8(&mb->fifocc, RCVFW_32 | XMTFW_16 | XMTFWU | RCVFWU | XMTBRST); in mace_reset() 344 out_8(&mb->xmtfc, AUTO_PAD_XMIT); /* auto-pad short frames */ in mace_reset() [all …]
|
| /linux/tools/perf/pmu-events/arch/arm64/fujitsu/monaka/ |
| H A D | tlb.json | 47 … "BriefDescription": "This event counts operations that cause a TLB access to the L1I in 2MB page." 52 …"BriefDescription": "This event counts operations that cause a TLB access to the L1I in 32MB page." 57 …BriefDescription": "This event counts operations that cause a TLB access to the L1I in 512MB page." 82 … "BriefDescription": "This event counts operations that cause a TLB access to the L1D in 2MB page." 87 …"BriefDescription": "This event counts operations that cause a TLB access to the L1D in 32MB page." 92 …BriefDescription": "This event counts operations that cause a TLB access to the L1D in 512MB page." 117 … "BriefDescription": "This event counts operations that cause a TLB refill of the L1I in 2MB page." 122 …"BriefDescription": "This event counts operations that cause a TLB refill of the L1I in 32MB page." 127 …BriefDescription": "This event counts operations that cause a TLB refill of the L1I in 512MB page." 152 … "BriefDescription": "This event counts operations that cause a TLB refill of the L1D in 2MB page." [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-iostat.txt | 18 - Inbound Read - I/O devices below root port read from the host memory, in MB 20 - Inbound Write - I/O devices below root port write to the host memory, in MB 22 - Outbound Read - CPU reads from I/O devices below root port, in MB 24 - Outbound Write - CPU writes to I/O devices below root port, in MB 61 … port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB) 80 … port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)
|
| /linux/tools/memory-model/ |
| H A D | linux-kernel.def | 17 smp_store_mb(X,V) { __store{ONCE}(X,V); __fence{MB}; } 20 smp_mb() { __fence{MB}; } 31 xchg(X,V) __xchg{MB}(X,V) 35 cmpxchg(X,V,W) __cmpxchg{MB}(X,V,W) 75 atomic_add_return(V,X) __atomic_op_return{MB}(X,+,V) 79 atomic_fetch_add(V,X) __atomic_fetch_op{MB}(X,+,V) 84 atomic_fetch_and(V,X) __atomic_fetch_op{MB}(X,&,V) 89 atomic_fetch_or(V,X) __atomic_fetch_op{MB}(X,|,V) 94 atomic_fetch_xor(V,X) __atomic_fetch_op{MB}(X,^,V) 99 atomic_inc_return(X) __atomic_op_return{MB}( [all...] |
| /linux/fs/btrfs/tests/ |
| H A D | free-space-tests.c | 430 * Extent entry covering free space range [128Mb - 256Kb, 128Mb - 128Kb[ in test_steal_space_from_bitmap_to_extent() 438 /* Bitmap entry covering free space range [128Mb + 512Kb, 256Mb[ */ in test_steal_space_from_bitmap_to_extent() 454 * [128Mb - 256Kb, 128Mb - 128Kb[ in test_steal_space_from_bitmap_to_extent() 455 * [128Mb + 512Kb, 128Mb + 768Kb[ in test_steal_space_from_bitmap_to_extent() 476 * Confirm that the bitmap range [128Mb + 768Kb, 256Mb[ isn't marked in test_steal_space_from_bitmap_to_extent() 486 * Confirm that the region [128Mb + 256Kb, 128Mb + 512Kb[, which is in test_steal_space_from_bitmap_to_extent() 495 * Confirm that the region [128Mb, 128Mb + 256Kb[, which is covered in test_steal_space_from_bitmap_to_extent() 504 * Now lets mark the region [128Mb, 128Mb + 512Kb[ as free too. But, in test_steal_space_from_bitmap_to_extent() 548 * Now mark the region [128Mb - 128Kb, 128Mb[ as free too. This will in test_steal_space_from_bitmap_to_extent() 550 * the free space [128Mb - 256Kb, 128Mb - 128Kb[. in test_steal_space_from_bitmap_to_extent() [all …]
|
| /linux/Documentation/arch/xtensa/ |
| H A D | mmu.rst | 62 5. The parent-bus-address value is rounded down to the nearest 256MB boundary 64 6. The IO area covers the entire 256MB segment of parent-bus-address; the 83 | VMALLOC area | VMALLOC_START 0xc0000000 128MB - 64KB 96 | | (4MB * DCACHE_N_COLORS) 104 | Cached KSEG | XCHAL_KSEG_CACHED_VADDR 0xd0000000 128MB 106 | Uncached KSEG | XCHAL_KSEG_BYPASS_VADDR 0xd8000000 128MB 108 | Cached KIO | XCHAL_KIO_CACHED_VADDR 0xe0000000 256MB 110 | Uncached KIO | XCHAL_KIO_BYPASS_VADDR 0xf0000000 256MB 114 256MB cached + 256MB uncached layout:: 126 | VMALLOC area | VMALLOC_START 0xa0000000 128MB - 64KB [all …]
|
| /linux/arch/arc/plat-axs10x/ |
| H A D | axs10x.c | 44 * | snps,dw-apb-intc (MB)| in axs10x_enable_gpio_intc_wire() 55 * DT hardware topology - connect MB intc directly to cpu intc in axs10x_enable_gpio_intc_wire() 94 char mb[32]; in axs10x_early_init() local 104 scnprintf(mb, 32, "MainBoard v%d", mb_rev); in axs10x_early_init() 105 axs10x_print_board_ver(CREG_MB_VER, mb); in axs10x_early_init() 121 * Each AXI master has a 4GB memory map specified as 16 apertures of 256MB, each 122 * of which maps to a corresponding 256MB aperture in Target slave memory map. 127 * Access from cpu to MB controllers such as GMAC is setup using AXI Tunnel: 131 * MB AXI Tunnel Master, which also has a mem map setup 133 * In the reverse direction, MB AXI Masters (e.g. GMAC) mem map is setup [all …]
|
| /linux/Documentation/arch/x86/x86_64/ |
| H A D | mm.rst | 20 from TB to GB and then MB/KB. 77 …ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physic… 78 ffffffff80000000 |-2048 MB | | | 79 ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space 80 ffffffffff000000 | -16 MB | | | 81 …FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable s… 82 ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI 83 ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole 147 …ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physic… 148 ffffffff80000000 |-2048 MB | | | [all …]
|
| /linux/sound/usb/line6/ |
| H A D | midibuf.h | 23 extern int line6_midibuf_bytes_used(struct midi_buffer *mb); 24 extern int line6_midibuf_bytes_free(struct midi_buffer *mb); 25 extern void line6_midibuf_destroy(struct midi_buffer *mb); 26 extern int line6_midibuf_ignore(struct midi_buffer *mb, int length); 27 extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split); 28 extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data, 30 extern void line6_midibuf_reset(struct midi_buffer *mb); 31 extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | hwmtm.c | 70 static void queue_llc_rx(struct s_smc *smc, SMbuf *mb); 71 static void smt_to_llc(struct s_smc *smc, SMbuf *mb); 74 static void queue_txd_mb(struct s_smc *smc, SMbuf *mb); 133 void smt_free_mbuf(struct s_smc *smc, SMbuf *mb); 273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init() 416 SMbuf *mb ; in init_fddi_driver() local 426 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver() 429 mb->sm_use_count = 1 ; in init_fddi_driver() 430 smt_free_mbuf(smc,mb) ; in init_fddi_driver() 431 mb++ ; in init_fddi_driver() [all …]
|
| /linux/drivers/accel/habanalabs/include/gaudi2/ |
| H A D | gaudi2.h | 16 #define CFG_BAR_SIZE 0x10000000ull /* 256MB */ 21 #define CFG_SIZE 0x8000000ull /* 96MB CFG + 32MB DBG*/ 22 #define CFG_REGION_SIZE 0xC000000ull /* 192MB */ 24 #define STM_FLASH_BASE_ADDR 0x1000007FF4000000ull /* Not 256MB aligned */ 25 #define STM_FLASH_ALIGNED_OFF 0x4000000ull /* 256 MB alignment */ 26 #define STM_FLASH_SIZE 0x2000000ull /* 32MB */ 29 #define SPI_FLASH_SIZE 0x1000000ull /* 16MB */ 38 #define BAR0_RSRVD_SIZE 0x1000000ull /* 16MB */ 41 #define SRAM_SIZE 0x3000000ull /* 48MB */
|
| /linux/arch/alpha/kernel/ |
| H A D | io.c | 20 mb(); in ioread8() 22 mb(); in ioread8() 29 mb(); in ioread16() 31 mb(); in ioread16() 38 mb(); in ioread32() 40 mb(); in ioread32() 47 mb(); in ioread64() 49 mb(); in ioread64() 55 mb(); in iowrite8() 61 mb(); in iowrite16() [all …]
|
| H A D | core_t2.c | 40 * floppy to DMA only via the scatter/gather window set up for 8MB 62 * NOTE: Herein lie back-to-back mb instructions. They are magic. 194 mb(); in conf_read() 196 mb(); in conf_read() 202 mb(); in conf_read() 206 mb(); in conf_read() 207 mb(); /* magic */ in conf_read() 219 mb(); in conf_read() 223 mb(); in conf_read() 228 mb(); in conf_read() [all …]
|
| /linux/arch/alpha/include/asm/ |
| H A D | io.h | 37 mb(); in __set_hae() 337 mb(); in ioread8() 339 mb(); in ioread8() 346 mb(); in ioread16() 348 mb(); in ioread16() 354 mb(); in iowrite8() 360 mb(); in iowrite16() 394 mb(); in ioread32() 396 mb(); in ioread32() 403 mb(); in ioread64() [all …]
|
| /linux/arch/microblaze/kernel/ |
| H A D | head.S | 184 bgei r11, GT16 /* size is greater than 16MB */ 186 bgei r11, GT8 /* size is greater than 8MB */ 188 bgei r11, GT4 /* size is greater than 4MB */ 189 /* size is less than 4MB */ 191 bgei r11, GT2 /* size is greater than 2MB */ 192 addik r9, r0, 0x0100000 /* TLB0 must be 1MB */ 194 bgei r11, GT1 /* size is greater than 1MB */ 198 ori r9, r0, 0x400000 /* TLB0 is 4MB */ 200 GT16: /* TLB0 is 16MB */ 201 addik r9, r0, 0x1000000 /* means TLB0 is 16MB */ [all …]
|
| /linux/tools/perf/tests/shell/common/ |
| H A D | patterns.sh | 167 export RE_LINE_RECORD2="^\[\s+perf\s+record:\s+Captured and wrote $RE_NUMBER\s*MB\s+(?:[\w\+\.-]*(?… 170 # [ perf record: Captured and wrote 0.405 MB perf.data (109 samples) ] 171 # [ perf record: Captured and wrote 0.405 MB perf.data (~109 samples) ] 172 # [ perf record: Captured and wrote 0.405 MB /some/temp/dir/perf.data (109 samples) ] 173 # [ perf record: Captured and wrote 0.405 MB ./perf.data (109 samples) ] 174 # [ perf record: Captured and wrote 0.405 MB ./perf.data.3 (109 samples) ] 177 export RE_LINE_RECORD2_TOLERANT="^\[\s+perf\s+record:\s+Captured and wrote $RE_NUMBER\s*MB\s+(?:[\w… 180 # [ perf record: Captured and wrote 0.405 MB perf.data (109 samples) ] 181 # [ perf record: Captured and wrote 0.405 MB perf.data (~109 samples) ] 182 # [ perf record: Captured and wrote 0.405 MB /some/temp/dir/perf.data (109 samples) ] [all …]
|