Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.c450 bool irq_idx, is_ver1; in hns_rcb_ring_get_cfg() local
453 is_ver1 = AE_IS_VER1(ring_pair_cb->rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_ring_get_cfg()
464 mdnum_ppkt = is_ver1 ? HNS_RCB_RING_MAX_TXBD_PER_PKT : in hns_rcb_ring_get_cfg()
504 bool is_ver1 = AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_get_base_irq_idx() local
507 return SERVICE_RING_IRQ_IDX(is_ver1); in hns_rcb_get_base_irq_idx()
526 bool is_ver1 = AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_get_cfg() local
538 is_ver1 ? platform_get_irq(pdev, base_irq_idx + i * 2) : in hns_rcb_get_cfg()
541 is_ver1 ? platform_get_irq(pdev, base_irq_idx + i * 2 + 1) : in hns_rcb_get_cfg()
1002 bool is_ver1 = AE_IS_VER1(rcb_com->dsaf_dev->dsaf_ver); in hns_rcb_get_common_regs() local
1059 reg_tmp = is_ver1 ? RCB_CFG_OVERTIME_REG : RCB_PORT_CFG_OVERTIME_REG; in hns_rcb_get_common_regs()
[all …]
Dhns_dsaf_main.c1167 bool is_ver1 = AE_IS_VER1(dsaf_dev->dsaf_ver); in hns_dsaf_comm_init() local
1195 hns_dsaf_set_pfc_pause(dsaf_dev, i, is_ver1, is_ver1); in hns_dsaf_comm_init()
2137 bool is_ver1 = AE_IS_VER1(dsaf_dev->dsaf_ver); in hns_dsaf_update_stats() local
2150 reg_tmp = is_ver1 ? DSAF_INODE_FINAL_IN_PAUSE_NUM_0_REG : in hns_dsaf_update_stats()
2174 if ((node_num < DSAF_SERVICE_NW_NUM) && !is_ver1) { in hns_dsaf_update_stats()
2200 bool is_ver1 = AE_IS_VER1(ddev->dsaf_ver); in hns_dsaf_get_regs() local
2265 reg_tmp = is_ver1 ? DSAF_INODE_FINAL_IN_PAUSE_NUM_0_REG : in hns_dsaf_get_regs()
2514 if (!is_ver1) in hns_dsaf_get_regs()
2527 bool is_ver1 = AE_IS_VER1(dsaf_dev->dsaf_ver); in hns_dsaf_get_node_stats_strings() local
2555 if (node < DSAF_SERVICE_NW_NUM && !is_ver1) { in hns_dsaf_get_node_stats_strings()
[all …]
Dhns_dsaf_mac.c466 bool is_ver1 = AE_IS_VER1(mac_cb->dsaf_dev->dsaf_ver); in hns_mac_reset() local
481 drv->mac_pausefrm_cfg(drv, !is_ver1, !is_ver1); in hns_mac_reset()
612 bool is_ver1 = AE_IS_VER1(mac_cb->dsaf_dev->dsaf_ver); in hns_mac_set_pauseparam() local
615 if (is_ver1 && (tx_en || rx_en)) { in hns_mac_set_pauseparam()
Dhns_dsaf_misc.c514 bool is_ver1 = AE_IS_VER1(mac_cb->dsaf_dev->dsaf_ver); in hns_mac_get_phy_if() local
518 if (is_ver1) { in hns_mac_get_phy_if()
Dhns_enet.c2098 bool is_ver1 = AE_IS_VER1(priv->enet_ver); in hns_nic_init_ring_data() local
2117 rd->fini_process = is_ver1 ? hns_nic_tx_fini_pro : in hns_nic_init_ring_data()
2130 rd->fini_process = is_ver1 ? hns_nic_rx_fini_pro : in hns_nic_init_ring_data()
/Linux-v4.19/include/scsi/
Dosd_protocol.h465 static inline int osd_data_out_integrity_info_sizeof(bool is_ver1) in osd_data_out_integrity_info_sizeof() argument
468 (is_ver1 * (OSDv2_CRYPTO_KEYID_SIZE - OSDv1_CRYPTO_KEYID_SIZE)); in osd_data_out_integrity_info_sizeof()
481 static inline int osd_data_in_integrity_info_sizeof(bool is_ver1) in osd_data_in_integrity_info_sizeof() argument
484 (is_ver1 * (OSDv2_CRYPTO_KEYID_SIZE - OSDv1_CRYPTO_KEYID_SIZE)); in osd_data_in_integrity_info_sizeof()