Home
last modified time | relevance | path

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

12345678910>>...80

/Linux-v5.10/drivers/mailbox/
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 …]
Dtegra-hsp.c218 struct tegra_hsp_mailbox *mb = &hsp->mailboxes[bit]; in tegra_hsp_shared_irq() local
220 if (mb->producer) { in tegra_hsp_shared_irq()
230 hsp->mask &= ~BIT(HSP_INT_EMPTY_SHIFT + mb->index); in tegra_hsp_shared_irq()
236 mbox_chan_txdone(mb->channel.chan, 0); in tegra_hsp_shared_irq()
244 struct tegra_hsp_mailbox *mb = &hsp->mailboxes[bit]; in tegra_hsp_shared_irq() local
246 if (!mb->producer) { in tegra_hsp_shared_irq()
247 value = tegra_hsp_channel_readl(&mb->channel, in tegra_hsp_shared_irq()
251 mbox_chan_received_data(mb->channel.chan, msg); in tegra_hsp_shared_irq()
262 tegra_hsp_channel_writel(&mb->channel, 0x0, in tegra_hsp_shared_irq()
375 struct tegra_hsp_mailbox *mb = chan->con_priv; in tegra_hsp_mailbox_send_data() local
[all …]
/Linux-v5.10/drivers/scsi/qla2xxx/
Dqla_mbx.c89 * mb[MAX_MAILBOX_REGISTER_COUNT] = returned mailbox data.
155 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command()
165 !is_rom_cmd(mcp->mb[0])) { in qla2x00_mailbox_command()
168 mcp->mb[0]); in qla2x00_mailbox_command()
182 mcp->mb[0]); in qla2x00_mailbox_command()
197 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command()
217 iptr = mcp->mb; in qla2x00_mailbox_command()
218 command = mcp->mb[0]; in qla2x00_mailbox_command()
367 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command()
383 iptr2 = mcp->mb; in qla2x00_mailbox_command()
[all …]
Dqla_isr.c189 uint16_t mb[8]; in qla2100_intr_handler() local
233 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler()
234 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler()
235 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler()
237 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler()
238 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2100_intr_handler()
239 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2100_intr_handler()
240 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2100_intr_handler()
241 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler()
246 mb[0]); in qla2100_intr_handler()
[all …]
/Linux-v5.10/drivers/power/supply/
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 …]
/Linux-v5.10/drivers/scsi/lpfc/
Dlpfc_mbox.c62 MAILBOX_t *mb; in lpfc_dump_static_vport() local
65 mb = &pmb->u.mb; in lpfc_dump_static_vport()
69 mb->mbxCommand = MBX_DUMP_MEMORY; in lpfc_dump_static_vport()
70 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_static_vport()
71 mb->un.varDmp.entry_index = offset; in lpfc_dump_static_vport()
72 mb->un.varDmp.region_id = DMP_REGION_VPORT; in lpfc_dump_static_vport()
73 mb->mbxOwner = OWN_HOST; in lpfc_dump_static_vport()
77 mb->un.varDmp.cv = 1; in lpfc_dump_static_vport()
78 mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); in lpfc_dump_static_vport()
98 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport()
[all …]
/Linux-v5.10/drivers/gpu/drm/nouveau/include/nvif/
Dpush.h130 #define PUSH_2(X,f,ds,n,c,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,c,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,c,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,c,o,p,s,mB,dB,mA,dA,a...) do { \ argument
[all …]
/Linux-v5.10/drivers/net/ethernet/apple/
Dmacmace.c264 volatile struct mace *mb = mp->mace; in mace_reset() local
270 mb->biucc = SWRST; in mace_reset()
271 if (mb->biucc & SWRST) { in mace_reset()
282 mb->maccc = 0; /* turn off tx, rx */ in mace_reset()
283 mb->imr = 0xFF; /* disable all intrs for now */ in mace_reset()
284 i = mb->ir; in mace_reset()
286 mb->biucc = XMTSP_64; in mace_reset()
287 mb->utr = RTRD; in mace_reset()
288 mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; in mace_reset()
290 mb->xmtfc = AUTO_PAD_XMIT; /* auto-pad short frames */ in mace_reset()
[all …]
Dmace.c320 volatile struct mace __iomem *mb = mp->mace; in mace_reset() local
326 out_8(&mb->biucc, SWRST); in mace_reset()
327 if (in_8(&mb->biucc) & SWRST) { in mace_reset()
338 out_8(&mb->imr, 0xff); /* disable all intrs for now */ in mace_reset()
339 i = in_8(&mb->ir); in mace_reset()
340 out_8(&mb->maccc, 0); /* turn off tx, rx */ in mace_reset()
342 out_8(&mb->biucc, XMTSP_64); in mace_reset()
343 out_8(&mb->utr, RTRD); in mace_reset()
344 out_8(&mb->fifocc, RCVFW_32 | XMTFW_16 | XMTFWU | RCVFWU | XMTBRST); in mace_reset()
345 out_8(&mb->xmtfc, AUTO_PAD_XMIT); /* auto-pad short frames */ in mace_reset()
[all …]
/Linux-v5.10/net/can/
Dgw.c585 struct cgw_fdframe_mod mb; in cgw_put_job() local
588 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
589 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
590 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
595 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
596 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
597 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
602 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
603 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
604 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
[all …]
/Linux-v5.10/arch/parisc/include/asm/
Dassembly.h17 #define LDREGM ldd,mb
267 fldd,mb -8(\regs), %fr30
268 fldd,mb -8(\regs), %fr29
269 fldd,mb -8(\regs), %fr28
270 fldd,mb -8(\regs), %fr27
271 fldd,mb -8(\regs), %fr26
272 fldd,mb -8(\regs), %fr25
273 fldd,mb -8(\regs), %fr24
274 fldd,mb -8(\regs), %fr23
275 fldd,mb -8(\regs), %fr22
[all …]
/Linux-v5.10/tools/testing/selftests/vm/
Dcharge_reserved_hugetlb.sh78 mb=$(($kb / 1024))
79 echo $mb
82 MB=$(get_machine_hugepage_size)
92 echo "$cgroup_limit" >$cgroup_path/$name/hugetlb.${MB}MB.$fault_limit_file
96 $cgroup_path/$name/hugetlb.${MB}MB.$reservation_limit_file
108 local path="/dev/cgroup/memory/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
121 local path="/dev/cgroup/memory/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
134 local path="/dev/cgroup/memory/$cgroup/hugetlb.${MB}MB.$fault_usage_file"
160 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file
161 local reserved_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file
[all …]
Dhugetlb_reparenting_test.sh35 mb=$(($kb / 1024))
36 echo $mb
39 MB=$(get_machine_hugepage_size)
70 echo actual a = $((${actual_a%% *} / 1024 / 1024)) MB
71 echo expected a = $((${expected_a%% *} / 1024 / 1024)) MB
79 actual_a_hugetlb="$(cat "$CGROUP_ROOT"/a/hugetlb.${MB}MB.$usage_file)"
82 echo actual a hugetlb = $((${actual_a_hugetlb%% *} / 1024 / 1024)) MB
83 echo expected a hugetlb = $((${expected_a_hugetlb%% *} / 1024 / 1024)) MB
98 echo actual b = $((${actual_b%% *} / 1024 / 1024)) MB
99 echo expected b = $((${expected_b%% *} / 1024 / 1024)) MB
[all …]
/Linux-v5.10/fs/btrfs/tests/
Dfree-space-tests.c431 * Extent entry covering free space range [128Mb - 256Kb, 128Mb - 128Kb[ in test_steal_space_from_bitmap_to_extent()
439 /* Bitmap entry covering free space range [128Mb + 512Kb, 256Mb[ */ in test_steal_space_from_bitmap_to_extent()
455 * [128Mb - 256Kb, 128Mb - 128Kb[ in test_steal_space_from_bitmap_to_extent()
456 * [128Mb + 512Kb, 128Mb + 768Kb[ in test_steal_space_from_bitmap_to_extent()
477 * Confirm that the bitmap range [128Mb + 768Kb, 256Mb[ isn't marked in test_steal_space_from_bitmap_to_extent()
487 * Confirm that the region [128Mb + 256Kb, 128Mb + 512Kb[, which is in test_steal_space_from_bitmap_to_extent()
496 * Confirm that the region [128Mb, 128Mb + 256Kb[, which is covered in test_steal_space_from_bitmap_to_extent()
505 * Now lets mark the region [128Mb, 128Mb + 512Kb[ as free too. But, in test_steal_space_from_bitmap_to_extent()
549 * Now mark the region [128Mb - 128Kb, 128Mb[ as free too. This will in test_steal_space_from_bitmap_to_extent()
551 * the free space [128Mb - 256Kb, 128Mb - 128Kb[. in test_steal_space_from_bitmap_to_extent()
[all …]
/Linux-v5.10/drivers/media/pci/cx18/
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()
233 struct cx18_mailbox *mb; in epu_dma_done() local
239 mb = &order->mb; in epu_dma_done()
240 handle = mb->args[0]; in epu_dma_done()
247 "stale" : "good", mb->request); in epu_dma_done()
251 mdl_ack_count = mb->args[2]; in epu_dma_done()
280 mb->request); in epu_dma_done()
328 CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str); in epu_debug()
[all …]
/Linux-v5.10/tools/memory-model/
Dlinux-kernel.def17 smp_store_mb(X,V) { __store{once}(X,V); __fence{mb}; }
20 smp_mb() { __fence{mb}; }
30 xchg(X,V) __xchg{mb}(X,V)
34 cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W)
68 atomic_add_return(V,X) __atomic_op_return{mb}(X,+,V)
72 atomic_fetch_add(V,X) __atomic_fetch_op{mb}(X,+,V)
77 atomic_inc_return(X) __atomic_op_return{mb}(X,+,1)
81 atomic_fetch_inc(X) __atomic_fetch_op{mb}(X,+,1)
86 atomic_sub_return(V,X) __atomic_op_return{mb}(X,-,V)
90 atomic_fetch_sub(V,X) __atomic_fetch_op{mb}(X,-,V)
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/pci/
Dv3-v360epc-pci.txt11 second the configuration area register space, 16MB
18 each be exactly 256MB (0x10000000) in size.
22 be aligned to a 1MB boundary, and may be 1MB, 2MB, 4MB, 8MB, 16MB, 32MB,
23 64MB, 128MB, 256MB, 512MB, 1GB or 2GB in size. The memory should be marked
50 0x20000000 0 0x20000000 /* 512 MB @ LB 20000000 1:1 */
/Linux-v5.10/drivers/media/pci/ivtv/
Divtv-mailbox.c131 static int try_mailbox(struct ivtv *itv, struct ivtv_mailbox_data *mbdata, int mb) in try_mailbox() argument
133 u32 flags = readl(&mbdata->mbox[mb].flags); in try_mailbox()
137 if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { in try_mailbox()
138 write_sync(IVTV_MBOX_DRIVER_BUSY, &mbdata->mbox[mb].flags); in try_mailbox()
149 int i, mb; in get_mailbox() local
160 for (mb = 1; mb <= max_mbox; mb++) in get_mailbox()
161 if (try_mailbox(itv, mbdata, mb)) in get_mailbox()
162 return mb; in get_mailbox()
205 int flags, mb, i; in ivtv_api_call() local
215 IVTV_ERR("Invalid MB call: cmd = 0x%02x, args = %d\n", cmd, args); in ivtv_api_call()
[all …]
/Linux-v5.10/sound/usb/line6/
Dmidibuf.h20 extern int line6_midibuf_bytes_used(struct midi_buffer *mb);
21 extern int line6_midibuf_bytes_free(struct midi_buffer *mb);
22 extern void line6_midibuf_destroy(struct midi_buffer *mb);
23 extern int line6_midibuf_ignore(struct midi_buffer *mb, int length);
24 extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split);
25 extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data,
27 extern void line6_midibuf_reset(struct midi_buffer *mb);
28 extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
/Linux-v5.10/Documentation/xtensa/
Dmmu.rst62 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-v5.10/Documentation/x86/x86_64/
Dmm.rst20 from TB to GB and then MB/KB.
65 …ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physic…
66 ffffffff80000000 |-2048 MB | | |
67 ffffffffa0000000 |-1536 MB | fffffffffeffffff | 1520 MB | module mapping space
68 ffffffffff000000 | -16 MB | | |
69 …FIXADDR_START | ~-11 MB | ffffffffff5fffff | ~0.5 MB | kernel-internal fixmap range, variable s…
70 ffffffffff600000 | -10 MB | ffffffffff600fff | 4 kB | legacy vsyscall ABI
71 ffffffffffe00000 | -2 MB | ffffffffffffffff | 2 MB | ... unused hole
124 …ffffffff80000000 | -2 GB | ffffffff9fffffff | 512 MB | kernel text mapping, mapped to physic…
125 ffffffff80000000 |-2048 MB | | |
[all …]
/Linux-v5.10/arch/x86/kernel/
Dearly-quirks.c242 #define MB(x) (KB (KB (x))) macro
252 return MB(1); in i830_tseg_size()
267 case I845_TSEG_SIZE_1M: return MB(1); in i845_tseg_size()
281 return MB(1); in i85x_tseg_size()
286 return read_pci_config_byte(0, 0, 0, I830_DRB3) * MB(32); in i830_mem_size()
291 return read_pci_config_byte(0, 0, 1, I85X_DRB3) * MB(32); in i85x_mem_size()
363 case I830_GMCH_GMS_STOLEN_1024: return MB(1); in i830_stolen_size()
364 case I830_GMCH_GMS_STOLEN_8192: return MB(8); in i830_stolen_size()
383 case I855_GMCH_GMS_STOLEN_1M: return MB(1); in gen3_stolen_size()
384 case I855_GMCH_GMS_STOLEN_4M: return MB(4); in gen3_stolen_size()
[all …]
/Linux-v5.10/sound/isa/gus/
Dgus_io.c17 mb(); in snd_gf1_delay()
36 mb(); in __snd_gf1_ctrl_stop()
38 mb(); in __snd_gf1_ctrl_stop()
40 mb(); in __snd_gf1_ctrl_stop()
42 mb(); in __snd_gf1_ctrl_stop()
50 mb(); in __snd_gf1_write8()
52 mb(); in __snd_gf1_write8()
59 mb(); in __snd_gf1_look8()
67 mb(); in __snd_gf1_write16()
69 mb(); in __snd_gf1_write16()
[all …]
/Linux-v5.10/arch/alpha/kernel/
Dcore_apecs.c31 * NOTE: Herein lie back-to-back mb instructions. They are magic.
140 mb(); in conf_read()
146 mb(); in conf_read()
154 mb(); in conf_read()
159 asm volatile("ldl %0,%1; mb; mb" : "=r"(value) : "m"(*(vuip)addr) in conf_read()
165 mb(); in conf_read()
168 mb(); in conf_read()
192 mb(); in conf_read()
201 mb(); in conf_read()
220 mb(); in conf_write()
[all …]
/Linux-v5.10/arch/arc/plat-axs10x/
Daxs10x.c45 * | snps,dw-apb-intc (MB)| in axs10x_enable_gpio_intc_wire()
56 * DT hardware topology - connect MB intc directly to cpu intc in axs10x_enable_gpio_intc_wire()
95 char mb[32]; in axs10x_early_init() local
105 scnprintf(mb, 32, "MainBoard v%d", mb_rev); in axs10x_early_init()
106 axs10x_print_board_ver(CREG_MB_VER, mb); in axs10x_early_init()
122 * Each AXI master has a 4GB memory map specified as 16 apertures of 256MB, each
123 * of which maps to a corresponding 256MB aperture in Target slave memory map.
128 * Access from cpu to MB controllers such as GMAC is setup using AXI Tunnel:
132 * MB AXI Tunnel Master, which also has a mem map setup
134 * In the reverse direction, MB AXI Masters (e.g. GMAC) mem map is setup
[all …]

12345678910>>...80