Home
last modified time | relevance | path

Searched refs:qp_ctxt_hdr (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_qp.c72 void hinic_qp_prepare_header(struct hinic_qp_ctxt_header *qp_ctxt_hdr, in hinic_qp_prepare_header() argument
79 qp_ctxt_hdr->num_queues = num_queues; in hinic_qp_prepare_header()
80 qp_ctxt_hdr->queue_type = ctxt_type; in hinic_qp_prepare_header()
83 qp_ctxt_hdr->addr_offset = SQ_CTXT_OFFSET(max_sqs, max_rqs, 0); in hinic_qp_prepare_header()
85 qp_ctxt_hdr->addr_offset = RQ_CTXT_OFFSET(max_sqs, max_rqs, 0); in hinic_qp_prepare_header()
87 qp_ctxt_hdr->addr_offset = SIZE_16BYTES(qp_ctxt_hdr->addr_offset); in hinic_qp_prepare_header()
89 hinic_cpu_to_be32(qp_ctxt_hdr, sizeof(*qp_ctxt_hdr)); in hinic_qp_prepare_header()
H A Dhinic_hw_qp.h128 void hinic_qp_prepare_header(struct hinic_qp_ctxt_header *qp_ctxt_hdr,
/linux/drivers/net/ethernet/huawei/hinic3/
H A Dhinic3_nic_io.c497 static void hinic3_qp_prepare_cmdq_header(struct hinic3_qp_ctxt_hdr *qp_ctxt_hdr, in hinic3_qp_prepare_cmdq_header() argument
501 qp_ctxt_hdr->queue_type = cpu_to_le16(ctxt_type); in hinic3_qp_prepare_cmdq_header()
502 qp_ctxt_hdr->num_queues = cpu_to_le16(num_queues); in hinic3_qp_prepare_cmdq_header()
503 qp_ctxt_hdr->start_qid = cpu_to_le16(q_id); in hinic3_qp_prepare_cmdq_header()
504 qp_ctxt_hdr->rsvd = 0; in hinic3_qp_prepare_cmdq_header()