Home
last modified time | relevance | path

Searched full:mb (Results 1 – 25 of 2629) sorted by relevance

12345678910>>...106

/openbmc/u-boot/lib/
H A Dmembuff.c14 void membuff_purge(struct membuff *mb) in membuff_purge() argument
16 /* set mb->head and mb->tail so the buffers look empty */ in membuff_purge()
17 mb->head = mb->start; in membuff_purge()
18 mb->tail = mb->start; in membuff_purge()
21 static int membuff_putrawflex(struct membuff *mb, int maxlen, bool update, in membuff_putrawflex() argument
26 /* always write to 'mb->head' */ in membuff_putrawflex()
28 *data = &mb->start; in membuff_putrawflex()
29 *offsetp = mb->head - mb->start; in membuff_putrawflex()
32 if (!mb->start) in membuff_putrawflex()
39 if (mb->head >= mb->tail) { in membuff_putrawflex()
[all …]
/openbmc/linux/drivers/mailbox/
H A Drockchip-mailbox.c38 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 …]
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dqla_mbx.c95 * 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()
383 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command()
[all …]
H A Dqla_isr.c349 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 …]
/openbmc/linux/drivers/power/supply/
H A Dipaq_micro_battery.c51 struct micro_battery *mb = container_of(work, in micro_battery_work() local
61 ipaq_micro_tx_msg_sync(mb->micro, &msg_battery); in micro_battery_work()
75 mb->ac = msg_battery.rx_data[0]; in micro_battery_work()
76 mb->chemistry = msg_battery.rx_data[1]; in micro_battery_work()
77 mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + in micro_battery_work()
79 mb->flag = msg_battery.rx_data[4]; in micro_battery_work()
85 ipaq_micro_tx_msg_sync(mb->micro, &msg_sensor); in micro_battery_work()
86 mb->temperature = msg_sensor.rx_data[1] << 8 | msg_sensor.rx_data[0]; in micro_battery_work()
88 queue_delayed_work(mb->wq, &mb->update, msecs_to_jiffies(BATT_PERIOD)); in micro_battery_work()
93 struct micro_battery *mb = dev_get_drvdata(b->dev.parent); in get_capacity() local
[all …]
/openbmc/u-boot/include/
H A Dmembuff.h44 * @mb: membuff to purge
46 void membuff_purge(struct membuff *mb);
61 * @mb: membuff to adjust
67 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data);
78 * @mb: membuff to adjust
85 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data);
90 * @mb: membuff to adjust
94 bool membuff_putbyte(struct membuff *mb, int ch);
97 * @mb: membuff to adjust
101 int membuff_getbyte(struct membuff *mb);
[all …]
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_mbox.c136 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 …]
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvif/
H A Dpush.h130 #define PUSH_2(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument
131 PUSH_ASSERT((mB) - (mA) == (1?PUSH_##o##_INC), "mthd1"); \
133 PUSH_##f(X, (p), X##mB, 0, o, (dB), ds, ""); \
135 #define PUSH_3(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument
136 PUSH_ASSERT((mB) - (mA) == (0?PUSH_##o##_INC), "mthd2"); \
138 PUSH_##f(X, (p), X##mB, 0, o, (dB), ds, ""); \
140 #define PUSH_4(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument
141 PUSH_ASSERT((mB) - (mA) == (0?PUSH_##o##_INC), "mthd3"); \
143 PUSH_##f(X, (p), X##mB, 0, o, (dB), ds, ""); \
145 #define PUSH_5(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench/
H A Dupdate-results-script.patch51 if [ X$MB = X ]
53 - MB=`../bin/$OS/memsize 4096`
54 + MB=`memsize 4096`
56 TOTAL_MEM=$MB
57 MB=`echo \( $MB \* 7 \) / 10 | bc 2>/dev/null`
59 # Certain machines tend to barf when you try and bcopy 8MB.
61 echo "Checking to see if you have $MB MB; please wait for a moment..."
62 -MB=`../bin/$OS/memsize $MB`
63 -MB=`../bin/$OS/memsize $MB`
64 -MB=`../bin/$OS/memsize $MB`
[all …]
/openbmc/u-boot/arch/mips/mach-bmips/
H A DKconfig134 Broadcom BCM968380GERG reference board with BCM68380 SoC with 512 MB
135 of RAM and 128 MB of flash (nand).
145 Comtrend AR-5315u boards have a BCM6318 SoC with 64 MB of RAM and 16
146 MB of flash (SPI).
156 Comtrend AR-5387un boards have a BCM6328 SoC with 64 MB of RAM and 16
157 MB of flash (SPI).
167 Comtrend CT-5361 boards have a BCM6348 SoC with 16 MB of RAM and 4 MB
178 Comtrend VR-3032u boards have a BCM63268 SoC with 64 MB of RAM and
179 128 MB of flash (NAND).
189 Comtrend WAP-5813n boards have a BCM6369 SoC with 64 MB of RAM and
[all …]
/openbmc/u-boot/test/fs/
H A Dfs-test.sh41 # $SMALL_FILE is the name of the 1MB file in the file system image
42 SMALL_FILE="1MB.file"
54 # Full Path of the 1 MB file that shall be created in the fs image.
233 # 1MB is 0x0010 0000
253 # Test Case 4a - Read full 1MB of small file
256 # Test Case 4b - Read full 1MB of small file
260 # Test Case 5a - First 1MB of big file
263 # Test Case 5b - First 1MB of big file
268 # Test Case 6a - Last 1MB of big file
271 # Test Case 6b - Last 1MB of big file
[all …]
/openbmc/linux/drivers/net/ethernet/apple/
H A Dmacmace.c266 volatile struct mace *mb = mp->mace; in mace_reset() local
272 mb->biucc = SWRST; in mace_reset()
273 if (mb->biucc & SWRST) { in mace_reset()
284 mb->maccc = 0; /* turn off tx, rx */ in mace_reset()
285 mb->imr = 0xFF; /* disable all intrs for now */ in mace_reset()
286 i = mb->ir; in mace_reset()
288 mb->biucc = XMTSP_64; in mace_reset()
289 mb->utr = RTRD; in mace_reset()
290 mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; in mace_reset()
292 mb->xmtfc = AUTO_PAD_XMIT; /* auto-pad short frames */ in mace_reset()
[all …]
/openbmc/linux/net/can/
H A Dgw.c654 struct cgw_fdframe_mod mb; in cgw_put_job() local
657 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
658 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
659 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
664 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
665 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
666 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
671 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
672 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
673 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
[all …]
/openbmc/linux/Documentation/driver-api/cxl/
H A Dmemory-devices.rst61 "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 …]
/openbmc/linux/tools/testing/selftests/mm/
H A Dcharge_reserved_hugetlb.sh85 mb=$(($kb / 1024))
86 echo $mb
89 MB=$(get_machine_hugepage_size)
99 echo "$cgroup_limit" >$cgroup_path/$name/hugetlb.${MB}MB.$fault_limit_file
103 $cgroup_path/$name/hugetlb.${MB}MB.$reservation_limit_file
115 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
128 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
141 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file"
167 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file
168 local reserved_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file
[all …]
/openbmc/u-boot/board/freescale/t102xrdb/
H A DREADME87 - NOR: 128MB 16-bit NOR Flash
96 - On-board 64MB SPI flash
115 - NOR: 128MB S29GL01GS110TFIV10 Spansion NOR Flash
116 - NAND: 512MB S34MS04G200BFI000 Spansion NAND Flash
117 - eSPI: 64MB S25FL512SAGMFI010 Spansion SPI flash.
131 0xF_FE00_0000 0xF_FEFF_FFFF CCSRBAR 16MB
135 0xF_F600_0000 0xF_F7FF_FFFF Queue manager software portal 32MB
136 0xF_F400_0000 0xF_F5FF_FFFF Buffer manager software portal 32MB
137 0xF_E800_0000 0xF_EFFF_FFFF IFC - NOR Flash 128MB
138 0xF_0000_0000 0xF_003F_FFFF DCSR 4MB
[all …]
/openbmc/qemu/hw/misc/
H A Dbcm2835_mbox.c47 static void mbox_update_status(BCM2835Mbox *mb) in mbox_update_status() argument
49 mb->status &= ~(ARM_MS_EMPTY | ARM_MS_FULL); in mbox_update_status()
50 if (mb->count == 0) { in mbox_update_status()
51 mb->status |= ARM_MS_EMPTY; in mbox_update_status()
52 } else if (mb->count == MBOX_SIZE) { in mbox_update_status()
53 mb->status |= ARM_MS_FULL; in mbox_update_status()
57 static void mbox_reset(BCM2835Mbox *mb) in mbox_reset() argument
61 mb->count = 0; in mbox_reset()
62 mb->config = 0; in mbox_reset()
64 mb->reg[n] = MBOX_INVALID_DATA; in mbox_reset()
[all …]
/openbmc/u-boot/board/overo/
H A Dspl.c28 case REVISION_0: /* Micron 1286MB/256MB, 1/2 banks of 128MB */ in get_board_mem_timings()
34 case REVISION_1: /* Micron 256MB/512MB, 1/2 banks of 256MB */ in get_board_mem_timings()
41 case REVISION_2: /* Hynix 256MB/512MB, 1/2 banks of 256MB */ in get_board_mem_timings()
47 case REVISION_3: /* Micron 512MB/1024MB, 1/2 banks of 512MB */ in get_board_mem_timings()
/openbmc/linux/arch/parisc/include/asm/
H A Dassembly.h62 #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 …]
/openbmc/u-boot/test/py/tests/test_fs/
H A Dtest_basic.py46 # 1MB is 0x0010 0000
80 Test Case 4 - load a small file, 1MB
84 # Test Case 4a - Read full 1MB of small file
91 # Test Case 4b - Read full 1MB of small file
99 Test Case 5 - load, reading first 1MB of 3GB file
102 with u_boot_console.log.section('Test Case 5 - load (first 1MB)'):
103 # Test Case 5a - First 1MB of big file
110 # Test Case 5b - First 1MB of big file
118 Test Case 6 - load, reading last 1MB of 3GB file
121 with u_boot_console.log.section('Test Case 6 - load (last 1MB)'):
[all …]
/openbmc/u-boot/doc/
H A DREADME.b4860qds172 0xF_FFDF_1000 0xF_FFFF_FFFF Free 2 MB
174 0xF_FF81_0000 0xF_FFDE_FFFF Free 5 MB
176 0xF_FF00_0000 0xF_FF7F_FFFF Free 8 MB
177 0xF_FE00_0000 0xF_FEFF_FFFF CCSRBAR 16 MB
178 0xF_F801_0000 0xF_FDFF_FFFF Free 95 MB
180 0xF_F600_0000 0xF_F7FF_FFFF QMAN s/w portal 32 MB
181 0xF_F400_0000 0xF_F5FF_FFFF BMAN s/w portal 32 MB
182 0xF_F000_0000 0xF_F3FF_FFFF Free 64 MB
183 0xF_E800_0000 0xF_EFFF_FFFF IFC NOR Flash 128 MB
184 0xF_E000_0000 0xF_E7FF_FFFF Promjet 128 MB
[all …]
/openbmc/u-boot/arch/x86/cpu/ivybridge/
H A Dsdram.c242 * 00000000 0000MB-1992MB 1992MB RAM (writeback) in sdram_find()
243 * 7c800000 1992MB-2000MB 8MB TSEG (SMRR) in sdram_find()
244 * 7d000000 2000MB-2002MB 2MB GFX GTT (uncached) in sdram_find()
245 * 7d200000 2002MB-2034MB 32MB GFX UMA (uncached) in sdram_find()
246 * 7f200000 2034MB TOLUD in sdram_find()
247 * 7f800000 2040MB MEBASE in sdram_find()
248 * 7f800000 2040MB-2048MB 8MB ME UMA (uncached) in sdram_find()
249 * 80000000 2048MB TOM in sdram_find()
250 * 100000000 4096MB-4102MB 6MB RAM (writeback) in sdram_find()
254 * 00000000 0000MB-2768MB 2768MB RAM (writeback) in sdram_find()
[all …]
/openbmc/linux/drivers/media/pci/cx18/
H A Dcx18-mailbox.c105 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument
113 name, mb->request, mb->ack, mb->cmd, mb->error, in dump_mb()
114 u32arr2hex(mb->args, MAX_MB_ARGUMENTS, argstr)); in dump_mb()
234 struct cx18_mailbox *mb; in epu_dma_done() local
240 mb = &order->mb; in epu_dma_done()
241 handle = mb->args[0]; in epu_dma_done()
248 "stale" : "good", mb->request); in epu_dma_done()
252 mdl_ack_count = mb->args[2]; in epu_dma_done()
281 mb->request); in epu_dma_done()
329 CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str); in epu_debug()
[all …]
/openbmc/linux/tools/perf/Documentation/
H A Dperf-iostat.txt18 - 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)
/openbmc/u-boot/board/freescale/ls1046ardb/
H A DREADME29 - One 512 MB NAND flash with ECC support
34 - DSPI: 64 MB high-speed flash Memory for boot code and storage (up to 108MHz)
44 0x00_0000_0000 - 0x00_000F_FFFF Secure Boot ROM 1MB
45 0x00_0100_0000 - 0x00_0FFF_FFFF CCSRBAR 240MB
48 0x00_2000_0000 - 0x00_20FF_FFFF DCSR 16MB
61 0x00_4000_0000 - 0x00_400F_FFFF RCW + PBI 1MB
62 0x00_4010_0000 - 0x00_402F_FFFF U-Boot 2MB
63 0x00_4030_0000 - 0x00_403F_FFFF U-Boot Env 1MB
64 0x00_4040_0000 - 0x00_405F_FFFF PPA 2MB
66 + bootscript 3MB
[all …]

12345678910>>...106