Searched refs:rcb_common (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_dsaf_rcb.c | 202 void hns_rcb_common_init_commit_hw(struct rcb_common_cb *rcb_common) in hns_rcb_common_init_commit_hw() argument 205 dsaf_write_dev(rcb_common, RCB_COM_CFG_SYS_FSH_REG, 1); in hns_rcb_common_init_commit_hw() 288 static void hns_rcb_set_port_desc_cnt(struct rcb_common_cb *rcb_common, in hns_rcb_set_port_desc_cnt() argument 291 dsaf_write_dev(rcb_common, RCB_CFG_BD_NUM_REG + port_idx * 4, in hns_rcb_set_port_desc_cnt() 296 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout) in hns_rcb_set_port_timeout() argument 298 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_set_port_timeout() 299 dsaf_write_dev(rcb_common, RCB_CFG_OVERTIME_REG, in hns_rcb_set_port_timeout() 301 } else if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) { in hns_rcb_set_port_timeout() 303 dsaf_write_dev(rcb_common, in hns_rcb_set_port_timeout() 307 dsaf_write_dev(rcb_common, in hns_rcb_set_port_timeout() [all …]
|
| H A D | hns_dsaf_rcb.h | 85 struct rcb_common_cb *rcb_common; /* ring belongs to */ member 118 int hns_rcb_common_init_hw(struct rcb_common_cb *rcb_common); 119 int hns_rcb_get_cfg(struct rcb_common_cb *rcb_common); 123 void hns_rcb_common_init_commit_hw(struct rcb_common_cb *rcb_common); 136 struct rcb_common_cb *rcb_common, u32 port_idx); 138 struct rcb_common_cb *rcb_common, u32 port_idx); 140 struct rcb_common_cb *rcb_common, u32 port_idx); 142 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout); 144 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames); 146 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames); [all …]
|
| H A D | hns_ae_adapt.c | 43 return dsaf_dev->rcb_common[0]->max_q_per_vf; in hns_ae_get_q_num_per_vf() 49 return dsaf_dev->rcb_common[0]->max_vfn; in hns_ae_get_vf_num_per_port() 55 struct rcb_common_cb *rcb_comm = dsaf_dev->rcb_common[0]; in hns_ae_get_base_ring_pair() 522 *tx_usecs = hns_rcb_get_coalesce_usecs(ring_pair->rcb_common, in hns_ae_get_coalesce_usecs() 524 *rx_usecs = hns_rcb_get_coalesce_usecs(ring_pair->rcb_common, in hns_ae_get_coalesce_usecs() 538 ring_pair->rcb_common, ring_pair->port_id_in_comm); in hns_ae_get_max_coalesced_frames() 541 ring_pair->rcb_common, ring_pair->port_id_in_comm); in hns_ae_get_max_coalesced_frames() 542 *rx_frames = hns_rcb_get_rx_coalesced_frames(ring_pair->rcb_common, in hns_ae_get_max_coalesced_frames() 553 ring_pair->rcb_common, ring_pair->port_id_in_comm, timeout); in hns_ae_set_coalesce_usecs() 569 ring_pair->rcb_common, in hns_ae_set_coalesce_frames() [all …]
|
| H A D | hns_dsaf_ppe.c | 404 ret = hns_rcb_common_init_hw(dsaf_dev->rcb_common[ppe_common_index]); in hns_ppe_reset_common() 408 hns_rcb_common_init_commit_hw(dsaf_dev->rcb_common[ppe_common_index]); in hns_ppe_reset_common() 520 ret = hns_rcb_get_cfg(dsaf_dev->rcb_common[i]); in hns_ppe_init()
|
| H A D | hns_dsaf_mac.c | 220 if (vmid >= mac_cb->dsaf_dev->rcb_common[0]->max_vfn) { in hns_mac_get_inner_port_num() 226 q_num_per_vf = mac_cb->dsaf_dev->rcb_common[0]->max_q_per_vf; in hns_mac_get_inner_port_num() 227 vf_num_per_port = mac_cb->dsaf_dev->rcb_common[0]->max_vfn; in hns_mac_get_inner_port_num()
|
| H A D | hns_dsaf_main.h | 317 struct rcb_common_cb *rcb_common[DSAF_COMM_DEV_NUM]; member
|