/linux-6.6.21/drivers/mailbox/ |
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 …]
|
D | tegra-hsp.c | 234 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-6.6.21/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 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() 399 iptr2 = mcp->mb; in qla2x00_mailbox_command() [all …]
|
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-6.6.21/drivers/power/supply/ |
D | ipaq_micro_battery.c | 51 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-6.6.21/drivers/scsi/lpfc/ |
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-6.6.21/drivers/net/ethernet/apple/ |
D | macmace.c | 266 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 …]
|
D | mace.c | 321 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-6.6.21/net/can/ |
D | gw.c | 654 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-6.6.21/arch/alpha/kernel/ |
D | core_t2.c | 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() 246 mb(); in conf_write() 248 mb(); in conf_write() [all …]
|
D | core_apecs.c | 140 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 …]
|
D | core_cia.c | 118 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 …]
|
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 …]
|
D | core_mcpcia.c | 104 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-6.6.21/drivers/scsi/ |
D | qla1280.c | 1108 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-6.6.21/drivers/media/pci/cx18/ |
D | cx18-mailbox.c | 105 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 …]
|
/linux-6.6.21/drivers/net/fddi/skfp/ |
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-6.6.21/sound/usb/line6/ |
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-6.6.21/sound/isa/gus/ |
D | gus_io.c | 17 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-6.6.21/arch/parisc/include/asm/ |
D | assembly.h | 62 #define LDREGM ldd,mb 312 fldd,mb -8(\regs), %fr30 313 fldd,mb -8(\regs), %fr29 314 fldd,mb -8(\regs), %fr28 315 fldd,mb -8(\regs), %fr27 316 fldd,mb -8(\regs), %fr26 317 fldd,mb -8(\regs), %fr25 318 fldd,mb -8(\regs), %fr24 319 fldd,mb -8(\regs), %fr23 320 fldd,mb -8(\regs), %fr22 [all …]
|
D | barrier.h | 16 #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-6.6.21/drivers/media/pci/ivtv/ |
D | ivtv-mailbox.c | 131 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-6.6.21/arch/alpha/include/asm/ |
D | io.h | 41 mb(); in __set_hae() 338 mb(); in ioread8() 340 mb(); in ioread8() 347 mb(); in ioread16() 349 mb(); in ioread16() 355 mb(); in iowrite8() 361 mb(); in iowrite16() 395 mb(); in ioread32() 397 mb(); in ioread32() 404 mb(); in ioread64() [all …]
|
/linux-6.6.21/tools/memory-model/ |
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_add_return(V,X) __atomic_op_return{mb}(X,+,V) 75 atomic_fetch_add(V,X) __atomic_fetch_op{mb}(X,+,V) 80 atomic_inc_return(X) __atomic_op_return{mb}(X,+,1) 84 atomic_fetch_inc(X) __atomic_fetch_op{mb}(X,+,1) 89 atomic_sub_return(V,X) __atomic_op_return{mb}(X,-,V) 93 atomic_fetch_sub(V,X) __atomic_fetch_op{mb}(X,-,V) [all …]
|
/linux-6.6.21/tools/perf/ui/browsers/ |
D | map.c | 28 struct map_browser *mb = container_of(browser, struct map_browser, b); in map_browser__write() local 34 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write() 37 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write() 107 struct map_browser mb = { in map__browse() local 120 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse() 127 *idx = mb.b.nr_entries; in map__browse() 129 ++mb.b.nr_entries; in map__browse() 132 mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); in map__browse() 133 return map_browser__run(&mb); in map__browse()
|