Home
last modified time | relevance | path

Searched refs:mb (Results 1 – 25 of 572) sorted by relevance

12345678910>>...23

/Linux-v6.1/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.c234 struct tegra_hsp_mailbox *mb = &hsp->mailboxes[bit]; in tegra_hsp_shared_irq() local
236 if (mb->producer) { in tegra_hsp_shared_irq()
246 hsp->mask &= ~BIT(HSP_INT_EMPTY_SHIFT + mb->index); in tegra_hsp_shared_irq()
252 mbox_chan_txdone(mb->channel.chan, 0); in tegra_hsp_shared_irq()
260 struct tegra_hsp_mailbox *mb = &hsp->mailboxes[bit]; in tegra_hsp_shared_irq() local
262 if (!mb->producer) in tegra_hsp_shared_irq()
263 mb->ops->recv(&mb->channel); in tegra_hsp_shared_irq()
455 struct tegra_hsp_mailbox *mb = chan->con_priv; in tegra_hsp_mailbox_send_data() local
456 struct tegra_hsp *hsp = mb->channel.hsp; in tegra_hsp_mailbox_send_data()
459 if (WARN_ON(!mb->producer)) in tegra_hsp_mailbox_send_data()
[all …]
/Linux-v6.1/drivers/scsi/qla2xxx/
Dqla_mbx.c161 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()
387 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command()
403 iptr2 = mcp->mb; in qla2x00_mailbox_command()
[all …]
Dqla_isr.c333 uint16_t mb[8]; in qla2100_intr_handler() local
377 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler()
378 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler()
379 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler()
381 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler()
382 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2100_intr_handler()
383 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2100_intr_handler()
384 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2100_intr_handler()
385 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler()
390 mb[0]); in qla2100_intr_handler()
[all …]
/Linux-v6.1/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-v6.1/drivers/scsi/lpfc/
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 …]
/Linux-v6.1/drivers/net/ethernet/apple/
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 …]
Dmace.c321 volatile struct mace __iomem *mb = mp->mace; in mace_reset() local
327 out_8(&mb->biucc, SWRST); in mace_reset()
328 if (in_8(&mb->biucc) & SWRST) { in mace_reset()
339 out_8(&mb->imr, 0xff); /* disable all intrs for now */ in mace_reset()
340 i = in_8(&mb->ir); in mace_reset()
341 out_8(&mb->maccc, 0); /* turn off tx, rx */ in mace_reset()
343 out_8(&mb->biucc, XMTSP_64); in mace_reset()
344 out_8(&mb->utr, RTRD); in mace_reset()
345 out_8(&mb->fifocc, RCVFW_32 | XMTFW_16 | XMTFWU | RCVFWU | XMTBRST); in mace_reset()
346 out_8(&mb->xmtfc, AUTO_PAD_XMIT); /* auto-pad short frames */ in mace_reset()
[all …]
/Linux-v6.1/net/can/
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 …]
/Linux-v6.1/arch/alpha/kernel/
Dcore_t2.c194 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()
246 mb(); in conf_write()
248 mb(); in conf_write()
[all …]
Dcore_apecs.c140 mb(); in conf_read()
146 mb(); in conf_read()
154 mb(); 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()
225 mb(); in conf_write()
231 mb(); in conf_write()
[all …]
Dcore_cia.c118 mb(); in conf_read()
125 mb(); in conf_read()
129 mb(); in conf_read()
133 mb(); in conf_read()
137 mb(); in conf_read()
138 mb(); /* magic */ in conf_read()
142 mb(); in conf_read()
145 mb(); in conf_read()
150 mb(); in conf_read()
172 mb(); in conf_write()
[all …]
Dio.c20 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 …]
Dcore_mcpcia.c104 mb(); in conf_read()
108 mb(); in conf_read()
113 mb(); in conf_read()
117 mb(); in conf_read()
118 mb(); /* magic */ in conf_read()
123 mb(); in conf_read()
126 mb(); in conf_read()
148 *(vuip)MCPCIA_CAP_ERR(mid) = stat0; mb(); in conf_write()
155 mb(); in conf_write()
159 mb(); in conf_write()
[all …]
/Linux-v6.1/drivers/scsi/
Dqla1280.c1108 uint16_t mb[MAILBOX_REGISTER_COUNT]; in qla1280_set_target_parameters() local
1117 mb[0] = MBC_SET_TARGET_PARAMETERS; in qla1280_set_target_parameters()
1118 mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); in qla1280_set_target_parameters()
1119 mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; in qla1280_set_target_parameters()
1120 mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; in qla1280_set_target_parameters()
1121 mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; in qla1280_set_target_parameters()
1122 mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; in qla1280_set_target_parameters()
1123 mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; in qla1280_set_target_parameters()
1124 mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; in qla1280_set_target_parameters()
1125 mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; in qla1280_set_target_parameters()
[all …]
/Linux-v6.1/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-v6.1/drivers/net/fddi/skfp/
Dhwmtm.c70 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-v6.1/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-v6.1/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-v6.1/arch/parisc/include/asm/
Dassembly.h62 #define LDREGM ldd,mb
316 fldd,mb -8(\regs), %fr30
317 fldd,mb -8(\regs), %fr29
318 fldd,mb -8(\regs), %fr28
319 fldd,mb -8(\regs), %fr27
320 fldd,mb -8(\regs), %fr26
321 fldd,mb -8(\regs), %fr25
322 fldd,mb -8(\regs), %fr24
323 fldd,mb -8(\regs), %fr23
324 fldd,mb -8(\regs), %fr22
[all …]
Dbarrier.h16 #define mb() do { synchronize_caches(); } while (0) macro
17 #define rmb() mb()
18 #define wmb() mb()
19 #define dma_rmb() mb()
20 #define dma_wmb() mb()
22 #define mb() barrier() macro
29 #define __smp_mb() mb()
30 #define __smp_rmb() mb()
31 #define __smp_wmb() mb()
/Linux-v6.1/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
246 mb = i % (mbdata->max_mbox + 1); in ivtv_api_call()
[all …]
/Linux-v6.1/arch/alpha/include/asm/
Dio.h45 mb(); in __set_hae()
342 mb(); in ioread8()
344 mb(); in ioread8()
351 mb(); in ioread16()
353 mb(); in ioread16()
359 mb(); in iowrite8()
365 mb(); in iowrite16()
399 mb(); in ioread32()
401 mb(); in ioread32()
408 mb(); in ioread64()
[all …]
/Linux-v6.1/drivers/net/dsa/realtek/
Drtl8365mb.c840 struct rtl8365mb *mb = priv->chip_data; in rtl8365mb_get_port_extint() local
845 &mb->chip_info->extints[i]; in rtl8365mb_get_port_extint()
863 struct rtl8365mb *mb; in rtl8365mb_get_tag_protocol() local
865 mb = priv->chip_data; in rtl8365mb_get_tag_protocol()
866 cpu = &mb->cpu; in rtl8365mb_get_tag_protocol()
1090 struct rtl8365mb *mb; in rtl8365mb_phylink_mac_link_down() local
1093 mb = priv->chip_data; in rtl8365mb_phylink_mac_link_down()
1094 p = &mb->ports[port]; in rtl8365mb_phylink_mac_link_down()
1118 struct rtl8365mb *mb; in rtl8365mb_phylink_mac_link_up() local
1121 mb = priv->chip_data; in rtl8365mb_phylink_mac_link_up()
[all …]
/Linux-v6.1/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 …]

12345678910>>...23