Lines Matching refs:mpt_dev
86 MPT_ADAPTER *mpt_dev; member
381 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_open() local
385 if (mpt_dev->active) in mpt_lan_open()
467 mf = mpt_get_msg_frame(LanCtx, priv->mpt_dev); in mpt_lan_reset()
485 mpt_put_msg_frame(LanCtx, priv->mpt_dev, mf); in mpt_lan_reset()
495 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_close() local
519 dma_unmap_single(&mpt_dev->pcidev->dev, in mpt_lan_close()
531 dma_unmap_single(&mpt_dev->pcidev->dev, in mpt_lan_close()
555 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_tx_timeout() local
557 if (mpt_dev->active) { in mpt_lan_tx_timeout()
569 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_send_turbo() local
585 dma_unmap_single(&mpt_dev->pcidev->dev, priv->SendCtl[ctx].dma, in mpt_lan_send_turbo()
602 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_send_reply() local
651 dma_unmap_single(&mpt_dev->pcidev->dev, in mpt_lan_send_reply()
676 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_sdu_send() local
700 mf = mpt_get_msg_frame(LanCtx, mpt_dev); in mpt_lan_sdu_send()
724 dma = dma_map_single(&mpt_dev->pcidev->dev, skb->data, skb->len, in mpt_lan_sdu_send()
782 mpt_put_msg_frame (LanCtx, mpt_dev, mf); in mpt_lan_sdu_send()
851 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_receive_post_turbo() local
872 dma_sync_single_for_cpu(&mpt_dev->pcidev->dev, in mpt_lan_receive_post_turbo()
879 dma_sync_single_for_device(&mpt_dev->pcidev->dev, in mpt_lan_receive_post_turbo()
890 dma_unmap_single(&mpt_dev->pcidev->dev, priv->RcvCtl[ctx].dma, in mpt_lan_receive_post_turbo()
910 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_receive_post_free() local
935 dma_unmap_single(&mpt_dev->pcidev->dev, priv->RcvCtl[ctx].dma, in mpt_lan_receive_post_free()
965 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_receive_post_reply() local
1036 dma_sync_single_for_cpu(&mpt_dev->pcidev->dev, in mpt_lan_receive_post_reply()
1042 dma_sync_single_for_device(&mpt_dev->pcidev->dev, in mpt_lan_receive_post_reply()
1064 dma_sync_single_for_cpu(&mpt_dev->pcidev->dev, in mpt_lan_receive_post_reply()
1071 dma_sync_single_for_device(&mpt_dev->pcidev->dev, in mpt_lan_receive_post_reply()
1085 dma_unmap_single(&mpt_dev->pcidev->dev, priv->RcvCtl[ctx].dma, in mpt_lan_receive_post_reply()
1144 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_post_receive_buckets() local
1163 max = (mpt_dev->req_sz - MPT_LAN_RECEIVE_POST_REQUEST_SIZE) / in mpt_lan_post_receive_buckets()
1167 mf = mpt_get_msg_frame(LanCtx, mpt_dev); in mpt_lan_post_receive_buckets()
1178 mpt_dev->RequestNB[i] = 0; in mpt_lan_post_receive_buckets()
1207 dma_unmap_single(&mpt_dev->pcidev->dev, in mpt_lan_post_receive_buckets()
1226 dma = dma_map_single(&mpt_dev->pcidev->dev, in mpt_lan_post_receive_buckets()
1260 mpt_free_msg_frame(mpt_dev, mf); in mpt_lan_post_receive_buckets()
1274 mpt_put_msg_frame(LanCtx, mpt_dev, mf); in mpt_lan_post_receive_buckets()
1306 mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum) in mpt_register_lan_device() argument
1321 priv->mpt_dev = mpt_dev; in mpt_register_lan_device()
1335 if (mpt_dev->pfacts[0].MaxLanBuckets < max_buckets_out) in mpt_register_lan_device()
1336 priv->max_buckets_out = mpt_dev->pfacts[0].MaxLanBuckets; in mpt_register_lan_device()
1340 mpt_dev->pfacts[0].MaxLanBuckets, in mpt_register_lan_device()
1349 a = (u8 *) &mpt_dev->lan_cnfg_page1.HardwareAddressLow; in mpt_register_lan_device()