Lines Matching refs:dsaf_dev
303 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_set_port_timeout()
306 } else if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) { in hns_rcb_set_port_timeout()
328 if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) in hns_rcb_common_get_port_num()
378 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_common_init_hw()
387 if (!AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver) && in hns_rcb_common_init_hw()
388 !HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) in hns_rcb_common_init_hw()
398 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_common_init_hw()
446 is_ver1 = AE_IS_VER1(ring_pair_cb->rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_ring_get_cfg()
462 desc_num = rcb_common->dsaf_dev->desc_num; in hns_rcb_ring_get_cfg()
497 bool is_ver1 = AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_get_base_irq_idx()
499 if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) in hns_rcb_get_base_irq_idx()
518 to_platform_device(rcb_common->dsaf_dev->dev); in hns_rcb_get_cfg()
519 bool is_ver1 = AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_get_cfg()
524 ring_pair_cb->dev = rcb_common->dsaf_dev->dev; in hns_rcb_get_cfg()
587 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) in hns_rcb_get_coalesce_usecs()
612 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_set_coalesce_usecs()
613 if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) { in hns_rcb_set_coalesce_usecs()
614 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_coalesce_usecs()
620 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_coalesce_usecs()
648 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_tx_coalesced_frames()
679 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_rx_coalesced_frames()
724 static int hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev) in hns_rcb_get_ring_num() argument
726 switch (dsaf_dev->dsaf_mode) { in hns_rcb_get_ring_num()
753 dev_warn(dsaf_dev->dev, in hns_rcb_get_ring_num()
755 dsaf_dev->dsaf_mode); in hns_rcb_get_ring_num()
762 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_vaddr() local
764 return dsaf_dev->ppe_base + RCB_COMMON_REG_OFFSET; in hns_rcb_common_get_vaddr()
769 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_paddr() local
771 return dsaf_dev->ppe_paddr + RCB_COMMON_REG_OFFSET; in hns_rcb_common_get_paddr()
774 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_get_cfg() argument
778 enum dsaf_mode dsaf_mode = dsaf_dev->dsaf_mode; in hns_rcb_common_get_cfg()
781 int ring_num = hns_rcb_get_ring_num(dsaf_dev); in hns_rcb_common_get_cfg()
784 devm_kzalloc(dsaf_dev->dev, in hns_rcb_common_get_cfg()
788 dev_err(dsaf_dev->dev, "rcb common devm_kzalloc fail!\n"); in hns_rcb_common_get_cfg()
793 rcb_common->dsaf_dev = dsaf_dev; in hns_rcb_common_get_cfg()
795 rcb_common->desc_num = dsaf_dev->desc_num; in hns_rcb_common_get_cfg()
804 dsaf_dev->rcb_common[comm_index] = rcb_common; in hns_rcb_common_get_cfg()
808 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_free_cfg() argument
811 dsaf_dev->rcb_common[comm_index] = NULL; in hns_rcb_common_free_cfg()
818 struct dsaf_device *dsaf_dev = ring->rcb_common->dsaf_dev; in hns_rcb_update_stats() local
820 = dsaf_dev->ppe_common[ring->rcb_common->comm_index]; in hns_rcb_update_stats()
969 bool is_ver1 = AE_IS_VER1(rcb_com->dsaf_dev->dsaf_ver); in hns_rcb_get_common_regs()
970 bool is_dbg = HNS_DSAF_IS_DEBUG(rcb_com->dsaf_dev); in hns_rcb_get_common_regs()