/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 80 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 95 mcp->mb[0]); in qla2x00_mailbox_command() 104 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command() 116 iptr = mcp->mb; in qla2x00_mailbox_command() 117 command = mcp->mb[0]; in qla2x00_mailbox_command() 234 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 246 iptr2 = mcp->mb; in qla2x00_mailbox_command() 285 if (mcp->mb[0] != MBC_GEN_SYSTEM_ERROR) in qla2x00_mailbox_command() 305 mcp->mb[0] != MBC_GEN_SYSTEM_ERROR) { in qla2x00_mailbox_command() 327 "abort.\n", command, mcp->mb[0], in qla2x00_mailbox_command() [all …]
|
D | qla_isr.c | 40 uint16_t mb[4]; in qla2100_intr_handler() local 84 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler() 85 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler() 86 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler() 88 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler() 89 mb[1] = RD_MAILBOX_REG(ha, reg, 1); in qla2100_intr_handler() 90 mb[2] = RD_MAILBOX_REG(ha, reg, 2); in qla2100_intr_handler() 91 mb[3] = RD_MAILBOX_REG(ha, reg, 3); in qla2100_intr_handler() 92 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler() 97 mb[0]); in qla2100_intr_handler() [all …]
|
D | qla_mr.c | 82 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qlafx00_mailbox_command() 98 mcp->mb[0]); in qlafx00_mailbox_command() 107 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qlafx00_mailbox_command() 114 iptr = mcp->mb; in qlafx00_mailbox_command() 115 command = mcp->mb[0]; in qlafx00_mailbox_command() 132 (uint8_t *)mcp->mb, 16); in qlafx00_mailbox_command() 134 ((uint8_t *)mcp->mb + 0x10), 16); in qlafx00_mailbox_command() 136 ((uint8_t *)mcp->mb + 0x20), 8); in qlafx00_mailbox_command() 191 iptr2 = mcp->mb; in qlafx00_mailbox_command() 221 mcp->mb[0] != MBC_GEN_SYSTEM_ERROR) { in qlafx00_mailbox_command() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 60 MAILBOX_t *mb; in lpfc_dump_static_vport() local 63 mb = &pmb->u.mb; in lpfc_dump_static_vport() 67 mb->mbxCommand = MBX_DUMP_MEMORY; in lpfc_dump_static_vport() 68 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_static_vport() 69 mb->un.varDmp.entry_index = offset; in lpfc_dump_static_vport() 70 mb->un.varDmp.region_id = DMP_REGION_VPORT; in lpfc_dump_static_vport() 71 mb->mbxOwner = OWN_HOST; in lpfc_dump_static_vport() 75 mb->un.varDmp.cv = 1; in lpfc_dump_static_vport() 76 mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); in lpfc_dump_static_vport() 96 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport() [all …]
|
D | lpfc_hbadisc.c | 905 LPFC_MBOXQ_t *mb; in lpfc_linkdown() local 931 mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_linkdown() 932 if (mb) { in lpfc_linkdown() 933 lpfc_unreg_did(phba, 0xffff, LPFC_UNREG_ALL_DFLT_RPIS, mb); in lpfc_linkdown() 934 mb->vport = vport; in lpfc_linkdown() 935 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_linkdown() 936 if (lpfc_sli_issue_mbox(phba, mb, MBX_NOWAIT) in lpfc_linkdown() 938 mempool_free(mb, phba->mbox_mem_pool); in lpfc_linkdown() 945 mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_linkdown() 946 if (mb) { in lpfc_linkdown() [all …]
|
/drivers/power/ |
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 …]
|
/drivers/net/ethernet/apple/ |
D | macmace.c | 269 volatile struct mace *mb = mp->mace; in mace_reset() local 275 mb->biucc = SWRST; in mace_reset() 276 if (mb->biucc & SWRST) { in mace_reset() 287 mb->maccc = 0; /* turn off tx, rx */ in mace_reset() 288 mb->imr = 0xFF; /* disable all intrs for now */ in mace_reset() 289 i = mb->ir; in mace_reset() 291 mb->biucc = XMTSP_64; in mace_reset() 292 mb->utr = RTRD; in mace_reset() 293 mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; in mace_reset() 295 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 …]
|
/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 …]
|
D | aha1542.c | 132 struct mailbox mb[2 * AHA1542_MAILBOXES]; member 407 struct mailbox *mb; in aha1542_intr_handle() local 410 mb = HOSTDATA(shost)->mb; in aha1542_intr_handle() 458 if (mb[mbi].status != 0) in aha1542_intr_handle() 465 if (mb[mbi].status == 0) { in aha1542_intr_handle() 477 mbo = (scsi2int(mb[mbi].ccbptr) - (SCSI_BUF_PA(&ccb[0]))) / sizeof(struct ccb); in aha1542_intr_handle() 478 mbistatus = mb[mbi].status; in aha1542_intr_handle() 479 mb[mbi].status = 0; in aha1542_intr_handle() 487 ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); in aha1542_intr_handle() 568 struct mailbox *mb; in aha1542_queuecommand_lck() local [all …]
|
D | a3000.c | 101 mb(); /* make sure setup is completed */ in dma_setup() 103 mb(); /* make sure DMA has started before next IO */ in dma_setup() 123 mb(); /* make sure CNTR is updated before next IO */ in dma_stop() 128 mb(); /* don't allow prefetch */ in dma_stop() 131 mb(); /* no IO until FLUSH is done */ in dma_stop() 142 mb(); /* make sure DMA is stopped before next IO */ in dma_stop() 146 mb(); /* make sure CNTR is updated before next IO */ in dma_stop()
|
/drivers/staging/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_skip_message(struct midi_buffer *mb, 34 extern void line6_midibuf_status(struct midi_buffer *mb); 35 extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
|
/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 …]
|
D | smt.c | 34 #define m_fc(mb) ((mb)->sm_data[0]) argument 81 static void smt_add_frame_len(SMbuf *mb, int len); 469 void smt_received_pack(struct s_smc *smc, SMbuf *mb, int fs) in smt_received_pack() argument 477 switch (m_fc(mb)) { in smt_received_pack() 484 smt_free_mbuf(smc,mb) ; in smt_received_pack() 489 sm = smtod(mb,struct smt_header *) ; in smt_received_pack() 495 smt_free_mbuf(smc,mb) ; in smt_received_pack() 501 smt_free_mbuf(smc,mb) ; in smt_received_pack() 506 smt_swap_para(sm,(int) mb->sm_len,1) ; in smt_received_pack() 508 smt_type_name[m_fc(mb) & 0xf],sm) ; in smt_received_pack() [all …]
|
D | ess.c | 87 static void ess_send_frame(struct s_smc *smc, SMbuf *mb); 103 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, 117 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, in ess_raf_received_pack() argument 207 db->sm_len = mb->sm_len ; in ess_raf_received_pack() 208 db->sm_off = mb->sm_off ; in ess_raf_received_pack() 478 SMbuf *mb ; in ess_send_response() local 485 if (!(mb=smt_build_frame(smc,SMT_RAF,SMT_REPLY, in ess_send_response() 490 if (!(mb=smt_build_frame(smc,SMT_RAF,SMT_REPLY, in ess_send_response() 495 chg = smtod(mb,struct smt_sba_chg *) ; in ess_send_response() 536 ess_send_frame(smc,mb) ; in ess_send_response() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-mailbox.c | 119 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument 127 "\n", name, mb->request, mb->ack, mb->cmd, mb->error, in dump_mb() 128 u32arr2hex(mb->args, MAX_MB_ARGUMENTS, argstr)); in dump_mb() 247 struct cx18_mailbox *mb; in epu_dma_done() local 253 mb = &order->mb; in epu_dma_done() 254 handle = mb->args[0]; in epu_dma_done() 261 "stale" : "good", mb->request); in epu_dma_done() 265 mdl_ack_count = mb->args[2]; in epu_dma_done() 295 "seq no %d\n", mb->request); in epu_dma_done() 343 CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str); in epu_debug() [all …]
|
/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 …]
|
/drivers/net/can/ |
D | at91_can.c | 305 unsigned int mb, enum at91_mb_mode mode, int prio) in set_mb_mode_prio() argument 307 at91_write(priv, AT91_MMR(mb), (mode << 24) | (prio << 16)); in set_mb_mode_prio() 310 static inline void set_mb_mode(const struct at91_priv *priv, unsigned int mb, in set_mb_mode() argument 313 set_mb_mode_prio(priv, mb, mode, 0); in set_mb_mode() 480 unsigned int mb, prio; in at91_start_xmit() local 486 mb = get_tx_next_mb(priv); in at91_start_xmit() 489 if (unlikely(!(at91_read(priv, AT91_MSR(mb)) & AT91_MSR_MRDY))) { in at91_start_xmit() 500 set_mb_mode(priv, mb, AT91_MB_MODE_DISABLED); in at91_start_xmit() 501 at91_write(priv, AT91_MID(mb), reg_mid); in at91_start_xmit() 502 set_mb_mode_prio(priv, mb, AT91_MB_MODE_TX, prio); in at91_start_xmit() [all …]
|
/drivers/target/ |
D | target_core_user.c | 241 struct tcmu_mailbox *mb = udev->mb_addr; in is_ring_space_avail() local 246 tcmu_flush_dcache_range(mb, sizeof(*mb)); in is_ring_space_avail() 248 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in is_ring_space_avail() 281 struct tcmu_mailbox *mb; in tcmu_queue_cmd_ring() local 310 mb = udev->mb_addr; in tcmu_queue_cmd_ring() 311 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in tcmu_queue_cmd_ring() 336 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in tcmu_queue_cmd_ring() 343 entry = (void *) mb + CMDR_OFF + cmd_head; in tcmu_queue_cmd_ring() 348 UPDATE_HEAD(mb->cmd_head, pad_size, udev->cmdr_size); in tcmu_queue_cmd_ring() 350 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in tcmu_queue_cmd_ring() [all …]
|
/drivers/scsi/csiostor/ |
D | csio_mb.c | 60 hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_fw_retval() 80 struct fw_hello_cmd *cmdp = (struct fw_hello_cmd *)(mbp->mb); in csio_mb_hello() 112 struct fw_hello_cmd *rsp = (struct fw_hello_cmd *)(mbp->mb); in csio_mb_process_hello_rsp() 143 struct fw_bye_cmd *cmdp = (struct fw_bye_cmd *)(mbp->mb); in csio_mb_bye() 166 struct fw_reset_cmd *cmdp = (struct fw_reset_cmd *)(mbp->mb); in csio_mb_reset() 200 struct fw_params_cmd *cmdp = (struct fw_params_cmd *)(mbp->mb); in csio_mb_params() 244 struct fw_params_cmd *rsp = (struct fw_params_cmd *)(mbp->mb); in csio_mb_process_read_params_rsp() 266 struct fw_ldst_cmd *ldst_cmd = (struct fw_ldst_cmd *)(mbp->mb); in csio_mb_ldst() 305 (struct fw_caps_config_cmd *)(mbp->mb); in csio_mb_caps_config() 349 struct fw_port_cmd *cmdp = (struct fw_port_cmd *)(mbp->mb); in csio_mb_port() [all …]
|
/drivers/gpu/drm/ |
D | drm_cache.c | 62 mb(); in drm_cache_flush_clflush() 65 mb(); in drm_cache_flush_clflush() 116 mb(); in drm_clflush_sg() 119 mb(); in drm_clflush_sg() 139 mb(); in drm_clflush_virt_range() 143 mb(); in drm_clflush_virt_range()
|
/drivers/parport/ |
D | parport_amiga.c | 42 mb(); in amiga_write_data() 119 mb(); in amiga_data_forward() 126 mb(); in amiga_data_reverse() 139 mb(); in amiga_save_state() 144 mb(); in amiga_save_state() 149 mb(); in amiga_restore_state() 154 mb(); in amiga_restore_state() 202 mb(); in amiga_parallel_probe()
|
/drivers/net/wireless/brcm80211/brcmsmac/ |
D | types.h | 268 #define mboolset(mb, bit) ((mb) |= (bit)) argument 270 #define mboolclr(mb, bit) ((mb) &= ~(bit)) argument 272 #define mboolisset(mb, bit) (((mb) & (bit)) != 0) argument 273 #define mboolmaskset(mb, mask, val) ((mb) = (((mb) & ~(mask)) | (val))) argument
|
/drivers/tty/ |
D | amiserial.c | 200 mb(); in rs_stop() 202 mb(); in rs_stop() 221 mb(); in rs_start() 224 mb(); in rs_start() 262 mb(); in receive_chars() 264 mb(); in receive_chars() 341 mb(); in transmit_chars() 344 mb(); in transmit_chars() 354 mb(); in transmit_chars() 359 mb(); in transmit_chars() [all …]
|
/drivers/video/fbdev/ |
D | bt431.h | 82 mb(); in bt431_select_reg() 97 mb(); in bt431_read_reg_inc() 109 mb(); in bt431_write_reg_inc() 134 mb(); in bt431_read_cmap_inc() 146 mb(); in bt431_write_cmap_inc()
|