| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_mbx.c | 80 return 1; in is_rom_cmd() 95 * mb[MAX_MAILBOX_REGISTER_COUNT] = returned mailbox data. 99 * 1 : QLA_FUNCTION_FAILED (error encountered) 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() 218 ha->flags.mbox_busy = 1; in qla2x00_mailbox_command() [all …]
|
| H A D | qla_isr.c | 108 rsp_els->entry_count = 1; in qla24xx_process_abts() 137 abts_rsp->entry_count = 1; in qla24xx_process_abts() 143 abts_rsp->d_id[1] = abts->s_id[1]; in qla24xx_process_abts() 147 abts_rsp->s_id[1] = abts->d_id[1]; in qla24xx_process_abts() 154 abts_rsp->f_ctl[1] = fctl >> 8 & 0xff; in qla24xx_process_abts() 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() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_mbox.c | 89 * @locked: value that indicates if the hbalock is held (1) or not (0). 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() [all …]
|
| /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 …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | charge_reserved_hugetlb.sh | 21 if [[ "$1" == "-cgroup-v2" ]]; then 22 cgroup2=1 30 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 34 do_umount=1 42 do_umount=1 73 local expected="$1" 80 exit 1 87 mb=$(($kb / 1024)) 88 echo $mb 91 MB=$(get_machine_hugepage_size) [all …]
|
| /linux/Documentation/driver-api/cxl/ |
| H A D | theory-of-operation.rst | 50 "host":"cxl_host_bridge.1", 54 "host":"cxl_switch_uport.1", 61 "pmem_size":"256.00 MiB (268.44 MB)", 62 "ram_size":"256.00 MiB (268.44 MB)", 64 "numa_node":1, 65 "host":"cxl_mem.1" 73 "pmem_size":"256.00 MiB (268.44 MB)", 74 "ram_size":"256.00 MiB (268.44 MB)", 76 "numa_node":1, 91 "pmem_size":"256.00 MiB (268.44 MB)", [all …]
|
| /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) 71 atomic_inc(X) { __atomic_op{NORETURN}(X,+,1); } 72 atomic_dec(X) { __atomic_op{NORETURN}(X,-,1); } 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}( [all...] |
| /linux/fs/btrfs/tests/ |
| H A D | free-space-tests.c | 41 return -1; in test_extents() 71 return -1; in test_extents() 76 return -1; in test_extents() 81 return -1; in test_extents() 97 ret = test_add_free_space_entry(cache, 0, SZ_4M, 1); in test_bitmaps() 111 return -1; in test_bitmaps() 114 ret = test_add_free_space_entry(cache, 0, SZ_4M, 1); in test_bitmaps() 134 SZ_4M, 1); in test_bitmaps() 149 return -1; in test_bitmaps() 171 ret = test_add_free_space_entry(cache, SZ_4M, SZ_1M, 1); in test_bitmaps_and_extents() [all …]
|
| /linux/drivers/net/ethernet/apple/ |
| H A D | mace.c | 29 static int port_aaui = -1; 33 #define MAX_TX_ACTIVE 1 34 #define NCMDS_TX 1 /* dma commands per element in tx ring */ 36 #define TX_TIMEOUT HZ /* 1 second */ 168 rev = addr[0] == 0 && addr[1] == 0xA0; in mace_probe() 180 mp->tx_dma = ioremap(macio_resource_start(mdev, 1), 0x1000); in mace_probe() 186 mp->tx_dma_intr = macio_irq(mdev, 1); in mace_probe() 196 mp->tx_cmds = (volatile struct dbdma_cmd *) DBDMA_ALIGN(mp + 1); in mace_probe() 197 mp->rx_cmds = mp->tx_cmds + NCMDS_TX * N_TX_RING + 1; in mace_probe() 210 mp->port_aaui = 1; in mace_probe() [all …]
|
| /linux/Documentation/devicetree/bindings/pci/ |
| H A D | v3,v360epc-pci.yaml | 30 maxItems: 1 35 The inbound ranges must be aligned to a 1MB boundary, and may be 1MB, 2MB, 36 4MB, 8MB, 16MB, 32MB, 64MB, 128MB, 256MB, 512MB, 1GB or 2GB in size. The 41 maxItems: 1 46 256MB (0x10000000) in size. The prefetchable memory window must be 64 #interrupt-cells = <1>; 73 … <0x02000000 0 0x40000000 0x40000000 0 0x10000000>, /* 256 MiB @ LB 40000000 1:1 */ 74 … <0x42000000 0 0x50000000 0x50000000 0 0x10000000>; /* 256 MiB @ LB 50000000 1:1 */ 75 …dma-ranges = <0x02000000 0 0x20000000 0x20000000 0 0x20000000>, /* EBI: 512 MB @ LB 20000000 1:1 */ 76 … <0x02000000 0 0x80000000 0x80000000 0 0x40000000>; /* CM alias: 1GB @ LB 80000000 */ [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-iostat.txt | 1 perf-iostat(1) 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 40 1. List all PCIe root ports (example for 2-S platform): 54 $ perf iostat -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct 61 … port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB) 62 0000:00 1 0 2 3 73 $ perf iostat 0000:17,0:3a -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct [all …]
|
| /linux/arch/parisc/include/asm/ |
| H A D | assembly.h | 52 #define SR_TEMP1 1 62 #define LDREGM ldd,mb 125 ldil L%\value, 1 126 ldo R%\value(1), 1 127 addib,UV,n -1,1,. 128 addib,NUV,n -1,1,.+8 314 fldd,mb -8(\regs), %fr30 315 fldd,mb -8(\regs), %fr29 316 fldd,mb -8(\regs), %fr28 317 fldd,mb -8(\regs), %fr27 [all …]
|
| /linux/arch/alpha/kernel/ |
| H A D | core_t2.c | 40 * floppy to DMA only via the scatter/gather window set up for 8MB 41 * ISA DMA, since the maximum ISA DMA address is 2GB-1. 44 * have less than 1GB of memory, floppy usage/performance will not 47 #define T2_DIRECTMAP_2G 1 62 * NOTE: Herein lie back-to-back mb instructions. They are magic. 107 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 108 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 117 * Type 1: 119 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 120 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 [all …]
|
| H A D | core_mcpcia.c | 27 * NOTE: Herein lie back-to-back mb instructions. They are magic. 53 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 54 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 63 * Type 1: 65 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 66 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 68 * | | | | | | | | | | |B|B|B|B|B|B|B|B|D|D|D|D|D|F|F|F|R|R|R|R|R|R|0|1| 104 mb(); in conf_read() 108 mb(); in conf_read() 110 mcheck_expected(cpu) = 1; in conf_read() [all …]
|
| 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 …]
|
| /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." 62 … "BriefDescription": "This event counts operations that cause a TLB access to the L1I in 1GB 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." 97 … "BriefDescription": "This event counts operations that cause a TLB access to the L1D in 1GB 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." [all …]
|
| /linux/net/can/ |
| H A D | gw.c | 10 * 1. Redistributions of source code must retain the above copyright 69 #define CGW_MIN_HOPS 1 71 #define CGW_DEFAULT_HOPS 1 297 * relative to received dlc -1 .. -8 : in cgw_chk_csum_parms() 299 * -1 => index = 7 (data[7]) in cgw_chk_csum_parms() 390 crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]]; in cgw_csum_crc8_rel() 417 crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]]; in cgw_csum_crc8_pos() 444 crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]]; in cgw_csum_crc8_neg() 522 cgw_hops(nskb) = cgw_hops(skb) + 1; in can_can_gw_rcv() 525 if (gwj->limit_hops && cgw_hops(nskb) == 1) in can_can_gw_rcv() [all …]
|
| /linux/arch/microblaze/kernel/ |
| H A D | head.S | 53 .word 1 86 /* Save 1 as word and load byte - 0 - BIG, 1 - LITTLE */ 117 ori r3, r0, COMMAND_LINE_SIZE - 1 /* number of loops */ 123 addik r11, r11, 1 /* increment counting */ 125 addik r3, r3, -1 /* decrement loop */ 147 * kernel initialization. This maps the first 16 MBytes of memory 1:1 151 addik r3, r0, MICROBLAZE_TLB_SIZE -1 /* Invalidate all TLB entries */ 157 addik r3, r3, -1 184 bgei r11, GT16 /* size is greater than 16MB */ 186 bgei r11, GT8 /* size is greater than 8MB */ [all …]
|
| /linux/arch/arm/mach-footbridge/include/mach/ |
| H A D | hardware.h | 13 * 0xff800000 0x40000000 1MB X-Bus 14 * 0xff000000 0x7c000000 1MB PCI I/O space 15 * 0xfe000000 0x42000000 1MB CSR 16 * 0xfd000000 0x78000000 1MB Outbound write flush (not supported) 17 * 0xfc000000 0x79000000 1MB PCI IACK/special space 18 * 0xfb000000 0x7a000000 16MB PCI Config type 1 19 * 0xfa000000 0x7b000000 16MB PCI Config type 0 20 * 0xf9000000 0x50000000 1MB Cache flush 21 * 0xf0000000 0x80000000 16MB ISA memory 49 #define XBUS_SWITCH_J17_13 ((*XBUS_SWITCH) & (1 << 4)) [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() 67 iowrite32(~(1 << MB_TO_GPIO_IRQ), (void __iomem *) GPIO_INTMASK); in axs10x_enable_gpio_intc_wire() 70 iowrite32(1 << MB_TO_GPIO_IRQ, (void __iomem *) GPIO_INTEN); in axs10x_enable_gpio_intc_wire() 94 char mb[32]; in axs10x_early_init() local 97 if (ioread32((void __iomem *) CREG_MB_CONFIG) & (1 << 28)) in axs10x_early_init() 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. [all …]
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_memcontrol.c | 52 return -1; in alloc_pagecache() 76 return -1; in is_swap_enabled() 81 return cnt > 1; in is_swap_enabled() 173 size_t size = MB(50); in alloc_anon_50M_check() 176 int ret = -1; in alloc_anon_50M_check() 181 return -1; in alloc_anon_50M_check() 209 size_t size = MB(50); in alloc_pagecache_50M_check() 210 int ret = -1; in alloc_pagecache_50M_check() 216 return -1; in alloc_pagecache_50M_check() 250 int peak_fd = -1, peak_fd2 = -1, peak_fd3 = -1, peak_fd4 = -1; in test_memcg_current_peak() [all …]
|
| /linux/tools/perf/tests/shell/common/ |
| H A D | patterns.sh | 18 export RE_DATE_YYYYMMDD="[0-9]{4}-(?:(?:01|03|05|07|08|10|12)-(?:[0-2][0-9]|3[0-1])|02-[0-2][0-9]|(… 28 export RE_TIME="(?:[0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]" 55 export RE_ADDRESS_NOT_NULL="0x[0-9A-Fa-f]*[1-9A-Fa-f]+[0-9A-Fa-f]*" 164 # [ perf record: Woken up 1 times to write data ] 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) ] [all …]
|
| /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); 181 #define EXT_VIRT_MEM ((RXD_TXD_COUNT+1)*sizeof(struct s_smt_fp_txd) +\ 183 #define EXT_VIRT_MEM_2 ((RXD_TXD_COUNT+1)*sizeof(struct s_smt_fp_txd)) 185 #define EXT_VIRT_MEM ((RXD_TXD_COUNT+1)*sizeof(struct s_smt_fp_txd)) 226 if (call_count == 1) { in mac_drv_check_space() 265 (RXD_TXD_COUNT+1)*sizeof(struct s_smt_fp_txd)))) { in mac_drv_init() 266 return 1; /* no space the hwm modul can't work */ in mac_drv_init() [all …]
|
| /linux/Documentation/arch/xtensa/ |
| H A D | mmu.rst | 46 00..1F -> 00 -> 00 -> 00 54 1. Only top level simple-bus nodes are considered 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 87 | remap area 1 | 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 [all …]
|
| /linux/drivers/net/dsa/realtek/ |
| H A D | rtl8365mb.c | 7 * The RTL8365MB-VC is a 4+1 port 10/100/1000M switch controller. It includes 4 23 * | interface 1 GMAC 1 | 35 * The driver uses DSA to integrate the 4 user and 1 extension ports into the 111 #define RTL8365MB_PHYREGMAX (RTL8365MB_NUM_PHYREGS - 1) 133 #define RTL8365MB_INTR_POLARITY_LOW 1 175 #define RTL8365MB_INDIRECT_ACCESS_CTRL_RW_WRITE 1 177 #define RTL8365MB_INDIRECT_ACCESS_CTRL_CMD_VALUE 1 197 #define RTL8365MB_EXT_PORT_MODE_RGMII 1 211 /* External interface mode configuration registers 0~1 */ 834 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_get_port_extint() local 857 struct rtl8365mb *mb; rtl8365mb_get_tag_protocol() local 1088 struct rtl8365mb *mb; rtl8365mb_phylink_mac_link_down() local 1118 struct rtl8365mb *mb; rtl8365mb_phylink_mac_link_up() local 1274 struct rtl8365mb *mb; rtl8365mb_get_ethtool_stats() local 1322 struct rtl8365mb *mb; rtl8365mb_get_phy_stats() local 1357 struct rtl8365mb *mb; rtl8365mb_get_mac_stats() local 1423 struct rtl8365mb *mb; rtl8365mb_get_ctrl_stats() local 1453 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_stats_update() local 1530 struct rtl8365mb *mb; rtl8365mb_get_stats64() local 1542 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_stats_setup() local 1569 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_stats_teardown() local 1697 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_irq_setup() local 1816 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_irq_teardown() local 1838 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_cpu_config() local 1870 struct rtl8365mb *mb; rtl8365mb_change_tag_protocol() local 1898 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_switch_init() local 1947 struct rtl8365mb *mb; rtl8365mb_setup() local 2073 struct rtl8365mb *mb = priv->chip_data; rtl8365mb_detect() local [all...] |