Home
last modified time | relevance | path

Searched refs:CNIC_PAGE_SIZE (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c672 tgt->sq_mem_size = (tgt->sq_mem_size + (CNIC_PAGE_SIZE - 1)) & in bnx2fc_alloc_session_resc()
685 tgt->cq_mem_size = (tgt->cq_mem_size + (CNIC_PAGE_SIZE - 1)) & in bnx2fc_alloc_session_resc()
698 tgt->rq_mem_size = (tgt->rq_mem_size + (CNIC_PAGE_SIZE - 1)) & in bnx2fc_alloc_session_resc()
709 tgt->rq_pbl_size = (tgt->rq_mem_size / CNIC_PAGE_SIZE) * sizeof(void *); in bnx2fc_alloc_session_resc()
710 tgt->rq_pbl_size = (tgt->rq_pbl_size + (CNIC_PAGE_SIZE - 1)) & in bnx2fc_alloc_session_resc()
721 num_pages = tgt->rq_mem_size / CNIC_PAGE_SIZE; in bnx2fc_alloc_session_resc()
730 page += CNIC_PAGE_SIZE; in bnx2fc_alloc_session_resc()
735 tgt->xferq_mem_size = (tgt->xferq_mem_size + (CNIC_PAGE_SIZE - 1)) & in bnx2fc_alloc_session_resc()
749 tgt->confq_mem_size = (tgt->confq_mem_size + (CNIC_PAGE_SIZE - 1)) & in bnx2fc_alloc_session_resc()
762 (tgt->confq_mem_size / CNIC_PAGE_SIZE) * sizeof(void *); in bnx2fc_alloc_session_resc()
[all …]
Dbnx2fc_io.c568 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_free_mp_resc()
574 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_free_mp_resc()
600 mp_req->req_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
609 mp_req->resp_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
617 memset(mp_req->req_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
618 memset(mp_req->resp_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
643 mp_req_bd->buf_len = CNIC_PAGE_SIZE; in bnx2fc_init_mp_req()
655 mp_resp_bd->buf_len = CNIC_PAGE_SIZE; in bnx2fc_init_mp_req()
/Linux-v5.4/drivers/scsi/bnx2i/
Dbnx2i_hwi.c66 num_elements_per_pg = CNIC_PAGE_SIZE / BNX2I_SQ_WQE_SIZE; in bnx2i_adjust_qp_size()
74 num_elements_per_pg = CNIC_PAGE_SIZE / BNX2I_CQE_SIZE; in bnx2i_adjust_qp_size()
82 num_elements_per_pg = CNIC_PAGE_SIZE / BNX2I_RQ_WQE_SIZE; in bnx2i_adjust_qp_size()
948 num_pages = ep->qp.sq_mem_size / CNIC_PAGE_SIZE; in setup_qp_page_tables()
962 page += CNIC_PAGE_SIZE; in setup_qp_page_tables()
970 page += CNIC_PAGE_SIZE; in setup_qp_page_tables()
976 num_pages = ep->qp.rq_mem_size / CNIC_PAGE_SIZE; in setup_qp_page_tables()
990 page += CNIC_PAGE_SIZE; in setup_qp_page_tables()
998 page += CNIC_PAGE_SIZE; in setup_qp_page_tables()
1004 num_pages = ep->qp.cq_mem_size / CNIC_PAGE_SIZE; in setup_qp_page_tables()
[all …]
Dbnx2i_iscsi.c530 hba->mp_bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_setup_mp_bdt()
539 CNIC_PAGE_SIZE, in bnx2i_setup_mp_bdt()
543 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_setup_mp_bdt()
554 mp_bdt->buffer_length = CNIC_PAGE_SIZE; in bnx2i_setup_mp_bdt()
571 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_free_mp_bdt()
576 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_free_mp_bdt()
940 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_conn_free_login_resources()
947 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_conn_free_login_resources()
1004 dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_conn_alloc_login_resources()
1010 dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_conn_alloc_login_resources()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dcnic_if.h34 #define CNIC_PAGE_SIZE (1 << (CNIC_PAGE_BITS)) macro
35 #define CNIC_PAGE_ALIGN(addr) ALIGN(addr, CNIC_PAGE_SIZE)
36 #define CNIC_PAGE_MASK (~((CNIC_PAGE_SIZE) - 1))
Dcnic.c741 dma_free_coherent(&dev->pcidev->dev, CNIC_PAGE_SIZE, in cnic_free_dma()
800 CNIC_PAGE_SIZE, in cnic_alloc_dma()
809 dma->pgtbl_size = ((pages * 8) + CNIC_PAGE_SIZE - 1) & in cnic_alloc_dma()
810 ~(CNIC_PAGE_SIZE - 1); in cnic_alloc_dma()
915 cp->ctx_blk_size = CNIC_PAGE_SIZE; in cnic_alloc_context()
916 cp->cids_per_blk = CNIC_PAGE_SIZE / 128; in cnic_alloc_context()
948 CNIC_PAGE_SIZE, in cnic_alloc_context()
1028 udev->l2_ring_size = pages * CNIC_PAGE_SIZE; in __cnic_alloc_uio_rings()
1277 CNIC_PAGE_SIZE; in cnic_alloc_bnx2x_resc()
1283 n = CNIC_PAGE_SIZE / CNIC_KWQ16_DATA_SIZE; in cnic_alloc_bnx2x_resc()
[all …]