/Linux-v4.19/drivers/mailbox/ |
D | rockchip-mailbox.c | 46 struct rockchip_mbox *mb; member 62 struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); in rockchip_mbox_send_data() local 64 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() 69 if (msg->rx_size > mb->buf_size) { in rockchip_mbox_send_data() 70 dev_err(mb->mbox.dev, "Transmit size over buf size(%d)\n", in rockchip_mbox_send_data() 71 mb->buf_size); in rockchip_mbox_send_data() 75 dev_dbg(mb->mbox.dev, "Chan[%d]: A2B message, cmd 0x%08x\n", in rockchip_mbox_send_data() 78 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data() 80 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data() 81 writel_relaxed(msg->rx_size, mb->mbox_base + in rockchip_mbox_send_data() [all …]
|
/Linux-v4.19/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 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() 216 iptr = mcp->mb; in qla2x00_mailbox_command() 217 command = mcp->mb[0]; in qla2x00_mailbox_command() 368 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 380 iptr2 = mcp->mb; in qla2x00_mailbox_command() 399 uint16_t mb[8]; in qla2x00_mailbox_command() local [all …]
|
D | qla_isr.c | 44 uint16_t mb[4]; in qla2100_intr_handler() local 88 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler() 89 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler() 90 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler() 92 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler() 93 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2100_intr_handler() 94 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2100_intr_handler() 95 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2100_intr_handler() 96 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler() 101 mb[0]); in qla2100_intr_handler() [all …]
|
/Linux-v4.19/drivers/power/supply/ |
D | ipaq_micro_battery.c | 54 struct micro_battery *mb = container_of(work, in micro_battery_work() local 64 ipaq_micro_tx_msg_sync(mb->micro, &msg_battery); in micro_battery_work() 78 mb->ac = msg_battery.rx_data[0]; in micro_battery_work() 79 mb->chemistry = msg_battery.rx_data[1]; in micro_battery_work() 80 mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + in micro_battery_work() 82 mb->flag = msg_battery.rx_data[4]; in micro_battery_work() 88 ipaq_micro_tx_msg_sync(mb->micro, &msg_sensor); in micro_battery_work() 89 mb->temperature = msg_sensor.rx_data[1] << 8 | msg_sensor.rx_data[0]; in micro_battery_work() 91 queue_delayed_work(mb->wq, &mb->update, msecs_to_jiffies(BATT_PERIOD)); in micro_battery_work() 96 struct micro_battery *mb = dev_get_drvdata(b->dev.parent); in get_capacity() local [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/net/ethernet/apple/ |
D | macmace.c | 268 volatile struct mace *mb = mp->mace; in mace_reset() local 274 mb->biucc = SWRST; in mace_reset() 275 if (mb->biucc & SWRST) { in mace_reset() 286 mb->maccc = 0; /* turn off tx, rx */ in mace_reset() 287 mb->imr = 0xFF; /* disable all intrs for now */ in mace_reset() 288 i = mb->ir; in mace_reset() 290 mb->biucc = XMTSP_64; in mace_reset() 291 mb->utr = RTRD; in mace_reset() 292 mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; in mace_reset() 294 mb->xmtfc = AUTO_PAD_XMIT; /* auto-pad short frames */ in mace_reset() [all …]
|
D | mace.c | 319 volatile struct mace __iomem *mb = mp->mace; in mace_reset() local 325 out_8(&mb->biucc, SWRST); in mace_reset() 326 if (in_8(&mb->biucc) & SWRST) { in mace_reset() 337 out_8(&mb->imr, 0xff); /* disable all intrs for now */ in mace_reset() 338 i = in_8(&mb->ir); in mace_reset() 339 out_8(&mb->maccc, 0); /* turn off tx, rx */ in mace_reset() 341 out_8(&mb->biucc, XMTSP_64); in mace_reset() 342 out_8(&mb->utr, RTRD); in mace_reset() 343 out_8(&mb->fifocc, RCVFW_32 | XMTFW_16 | XMTFWU | RCVFWU | XMTBRST); in mace_reset() 344 out_8(&mb->xmtfc, AUTO_PAD_XMIT); /* auto-pad short frames */ in mace_reset() [all …]
|
/Linux-v4.19/arch/alpha/kernel/ |
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_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_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 | 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-v4.19/arch/parisc/include/asm/ |
D | barrier.h | 12 #define mb() do { synchronize_caches(); } while (0) macro 13 #define rmb() mb() 14 #define wmb() mb() 15 #define dma_rmb() mb() 16 #define dma_wmb() mb() 18 #define mb() barrier() macro 25 #define __smp_mb() mb() 26 #define __smp_rmb() mb() 27 #define __smp_wmb() mb()
|
D | assembly.h | 30 #define LDREGM ldd,mb 287 fldd,mb -8(\regs), %fr30 288 fldd,mb -8(\regs), %fr29 289 fldd,mb -8(\regs), %fr28 290 fldd,mb -8(\regs), %fr27 291 fldd,mb -8(\regs), %fr26 292 fldd,mb -8(\regs), %fr25 293 fldd,mb -8(\regs), %fr24 294 fldd,mb -8(\regs), %fr23 295 fldd,mb -8(\regs), %fr22 [all …]
|
/Linux-v4.19/sound/usb/line6/ |
D | midibuf.h | 24 extern int line6_midibuf_bytes_used(struct midi_buffer *mb); 25 extern int line6_midibuf_bytes_free(struct midi_buffer *mb); 26 extern void line6_midibuf_destroy(struct midi_buffer *mb); 27 extern int line6_midibuf_ignore(struct midi_buffer *mb, int length); 28 extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split); 29 extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data, 31 extern void line6_midibuf_reset(struct midi_buffer *mb); 32 extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
|
/Linux-v4.19/drivers/scsi/ |
D | qla1280.c | 1146 uint16_t mb[MAILBOX_REGISTER_COUNT]; in qla1280_set_target_parameters() local 1155 mb[0] = MBC_SET_TARGET_PARAMETERS; in qla1280_set_target_parameters() 1156 mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); in qla1280_set_target_parameters() 1157 mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; in qla1280_set_target_parameters() 1158 mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; in qla1280_set_target_parameters() 1159 mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; in qla1280_set_target_parameters() 1160 mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; in qla1280_set_target_parameters() 1161 mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; in qla1280_set_target_parameters() 1162 mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; in qla1280_set_target_parameters() 1163 mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; in qla1280_set_target_parameters() [all …]
|
/Linux-v4.19/drivers/media/pci/cx18/ |
D | cx18-mailbox.c | 114 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument 122 name, mb->request, mb->ack, mb->cmd, mb->error, in dump_mb() 123 u32arr2hex(mb->args, MAX_MB_ARGUMENTS, argstr)); in dump_mb() 242 struct cx18_mailbox *mb; in epu_dma_done() local 248 mb = &order->mb; in epu_dma_done() 249 handle = mb->args[0]; in epu_dma_done() 256 "stale" : "good", mb->request); in epu_dma_done() 260 mdl_ack_count = mb->args[2]; in epu_dma_done() 289 mb->request); in epu_dma_done() 337 CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str); in epu_debug() [all …]
|
/Linux-v4.19/drivers/net/fddi/skfp/ |
D | hwmtm.c | 78 static void queue_llc_rx(struct s_smc *smc, SMbuf *mb); 79 static void smt_to_llc(struct s_smc *smc, SMbuf *mb); 82 static void queue_txd_mb(struct s_smc *smc, SMbuf *mb); 141 void smt_free_mbuf(struct s_smc *smc, SMbuf *mb); 281 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init() 424 SMbuf *mb ; in init_fddi_driver() local 434 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver() 437 mb->sm_use_count = 1 ; in init_fddi_driver() 438 smt_free_mbuf(smc,mb) ; in init_fddi_driver() 439 mb++ ; in init_fddi_driver() [all …]
|
/Linux-v4.19/sound/isa/gus/ |
D | gus_io.c | 32 mb(); in snd_gf1_delay() 51 mb(); in __snd_gf1_ctrl_stop() 53 mb(); in __snd_gf1_ctrl_stop() 55 mb(); in __snd_gf1_ctrl_stop() 57 mb(); in __snd_gf1_ctrl_stop() 65 mb(); in __snd_gf1_write8() 67 mb(); in __snd_gf1_write8() 74 mb(); in __snd_gf1_look8() 82 mb(); in __snd_gf1_write16() 84 mb(); in __snd_gf1_write16() [all …]
|
/Linux-v4.19/drivers/media/pci/ivtv/ |
D | ivtv-mailbox.c | 145 static int try_mailbox(struct ivtv *itv, struct ivtv_mailbox_data *mbdata, int mb) in try_mailbox() argument 147 u32 flags = readl(&mbdata->mbox[mb].flags); in try_mailbox() 151 if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { in try_mailbox() 152 write_sync(IVTV_MBOX_DRIVER_BUSY, &mbdata->mbox[mb].flags); in try_mailbox() 163 int i, mb; in get_mailbox() local 174 for (mb = 1; mb <= max_mbox; mb++) in get_mailbox() 175 if (try_mailbox(itv, mbdata, mb)) in get_mailbox() 176 return mb; in get_mailbox() 219 int flags, mb, i; in ivtv_api_call() local 260 mb = i % (mbdata->max_mbox + 1); in ivtv_api_call() [all …]
|
/Linux-v4.19/tools/memory-model/ |
D | linux-kernel.def | 17 smp_store_mb(X,V) { __store{once}(X,V); __fence{mb}; } 20 smp_mb() { __fence{mb}; } 28 xchg(X,V) __xchg{mb}(X,V) 32 cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W) 60 atomic_add_return(V,X) __atomic_op_return{mb}(X,+,V) 64 atomic_fetch_add(V,X) __atomic_fetch_op{mb}(X,+,V) 69 atomic_inc_return(X) __atomic_op_return{mb}(X,+,1) 73 atomic_fetch_inc(X) __atomic_fetch_op{mb}(X,+,1) 78 atomic_sub_return(V,X) __atomic_op_return{mb}(X,-,V) 82 atomic_fetch_sub(V,X) __atomic_fetch_op{mb}(X,-,V) [all …]
|
/Linux-v4.19/tools/perf/ui/browsers/ |
D | map.c | 26 struct map_browser *mb = container_of(browser, struct map_browser, b); in map_browser__write() local 32 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write() 35 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write() 105 struct map_browser mb = { in map__browse() local 118 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse() 125 *idx = mb.b.nr_entries; in map__browse() 127 ++mb.b.nr_entries; in map__browse() 130 mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); in map__browse() 131 return map_browser__run(&mb); in map__browse()
|
/Linux-v4.19/arch/ia64/include/asm/ |
D | barrier.h | 39 #define mb() ia64_mf() macro 40 #define rmb() mb() 41 #define wmb() mb() 43 #define dma_rmb() mb() 44 #define dma_wmb() mb() 46 # define __smp_mb() mb()
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | atomic_lse.h | 49 #define ATOMIC_FETCH_OP(name, mb, op, asm_op, cl...) \ in ATOMIC_OP() argument 59 " " #asm_op #mb " %w[i], %w[i], %[v]") \ in ATOMIC_OP() 81 #define ATOMIC_OP_ADD_RETURN(name, mb, cl...) \ argument 92 " ldadd" #mb " %w[i], w30, %[v]\n" \ 125 #define ATOMIC_FETCH_OP_AND(name, mb, cl...) \ argument 137 " ldclr" #mb " %w[i], %w[i], %[v]") \ 169 #define ATOMIC_OP_SUB_RETURN(name, mb, cl...) \ argument 181 " ldadd" #mb " %w[i], w30, %[v]\n" \ 197 #define ATOMIC_FETCH_OP_SUB(name, mb, cl...) \ argument 209 " ldadd" #mb " %w[i], %w[i], %[v]") \ [all …]
|
/Linux-v4.19/net/can/ |
D | gw.c | 484 struct cgw_frame_mod mb; in cgw_put_job() local 522 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job() 523 mb.modtype = gwj->mod.modtype.and; in cgw_put_job() 524 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job() 529 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job() 530 mb.modtype = gwj->mod.modtype.or; in cgw_put_job() 531 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job() 536 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job() 537 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job() 538 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job() [all …]
|
/Linux-v4.19/arch/arm/mach-qcom/ |
D | platsmp.c | 86 mb(); in scss_release_secondary() 129 mb(); in kpssv1_release_secondary() 137 mb(); in kpssv1_release_secondary() 142 mb(); in kpssv1_release_secondary() 147 mb(); in kpssv1_release_secondary() 152 mb(); in kpssv1_release_secondary() 157 mb(); in kpssv1_release_secondary() 216 mb(); in kpssv2_release_secondary() 223 mb(); in kpssv2_release_secondary() 233 mb(); in kpssv2_release_secondary() [all …]
|