/kernel/linux/linux-5.10/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 | 218 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 …]
|
/kernel/linux/linux-5.10/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])) { in qla2x00_mailbox_command() 174 mcp->mb[0]); in qla2x00_mailbox_command() 188 mcp->mb[0]); in qla2x00_mailbox_command() 203 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command() 223 iptr = mcp->mb; in qla2x00_mailbox_command() 224 command = mcp->mb[0]; in qla2x00_mailbox_command() 375 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 391 iptr2 = mcp->mb; in qla2x00_mailbox_command() 410 uint16_t mb[8]; in qla2x00_mailbox_command() local [all …]
|
D | qla_isr.c | 189 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 62 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/apple/ |
D | macmace.c | 264 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 …]
|
D | mace.c | 320 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 …]
|
/kernel/linux/linux-5.10/net/can/ |
D | gw.c | 586 struct cgw_fdframe_mod mb; in cgw_put_job() local 589 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job() 590 mb.modtype = gwj->mod.modtype.and; in cgw_put_job() 591 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job() 596 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job() 597 mb.modtype = gwj->mod.modtype.or; in cgw_put_job() 598 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job() 603 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job() 604 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job() 605 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job() [all …]
|
/kernel/linux/linux-5.10/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() 46 mb(); in iowrite8() 52 mb(); in iowrite16() 58 mb(); in iowrite32() 158 mb(); in readb() [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 …]
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | assembly.h | 17 #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 …]
|
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()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | qla1280.c | 1118 uint16_t mb[MAILBOX_REGISTER_COUNT]; in qla1280_set_target_parameters() local 1127 mb[0] = MBC_SET_TARGET_PARAMETERS; in qla1280_set_target_parameters() 1128 mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); in qla1280_set_target_parameters() 1129 mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; in qla1280_set_target_parameters() 1130 mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; in qla1280_set_target_parameters() 1131 mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; in qla1280_set_target_parameters() 1132 mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; in qla1280_set_target_parameters() 1133 mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; in qla1280_set_target_parameters() 1134 mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; in qla1280_set_target_parameters() 1135 mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; in qla1280_set_target_parameters() [all …]
|
/kernel/linux/linux-5.10/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,
|
/kernel/linux/linux-5.10/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() 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | atomic_lse.h | 30 #define ATOMIC_FETCH_OP(name, mb, op, asm_op, cl...) \ in ATOMIC_OP() argument 35 " " #asm_op #mb " %w[i], %w[i], %[v]" \ in ATOMIC_OP() 57 #define ATOMIC_OP_ADD_RETURN(name, mb, cl...) \ argument 64 " ldadd" #mb " %w[i], %w[tmp], %[v]\n" \ 90 #define ATOMIC_FETCH_OP_AND(name, mb, cl...) \ argument 96 " ldclr" #mb " %w[i], %w[i], %[v]" \ 121 #define ATOMIC_OP_SUB_RETURN(name, mb, cl...) \ argument 129 " ldadd" #mb " %w[i], %w[tmp], %[v]\n" \ 145 #define ATOMIC_FETCH_OP_SUB(name, mb, cl...) \ argument 151 " ldadd" #mb " %w[i], %w[i], %[v]" \ [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
D | io.h | 45 mb(); in __set_hae() 313 mb(); in ioread8() 315 mb(); in ioread8() 322 mb(); in ioread16() 324 mb(); in ioread16() 330 mb(); in iowrite8() 336 mb(); in iowrite16() 365 mb(); in ioread32() 367 mb(); in ioread32() 373 mb(); in iowrite32() [all …]
|
/kernel/liteos_a/testsuites/unittest/libc/io/full/ |
D | It_stdio_mbrlen_001.cpp | 43 mbstate_t mb; in Testcase() local 44 ret = memset_s(&mb, sizeof(mb), 0, sizeof(mb)); in Testcase() 46 len1 = mbrlen(str, 1, &mb); in Testcase() 49 len2 = mbrlen(str + 1, sz - 1, &mb); in Testcase() 52 len3 = mbrlen(str + 1, sz - 1, &mb); in Testcase()
|