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 | 316 dsaf_write_dev(rcb_common, in hns_rcb_set_port_timeout() 320 dsaf_write_dev(rcb_common, in hns_rcb_set_port_timeout() 384 hns_rcb_set_port_desc_cnt(rcb_common, i, rcb_common->desc_num); in hns_rcb_common_init_hw() 461 rcb_common = ring_pair_cb->rcb_common; in hns_rcb_ring_get_cfg() 490 return ring_idx / (rcb_common->max_q_per_vf * rcb_common->max_vfn); in hns_rcb_get_port_in_comm() 523 ring_pair_cb->rcb_common = rcb_common; in hns_rcb_get_cfg() 783 rcb_common = in hns_rcb_common_get_cfg() 787 if (!rcb_common) { in hns_rcb_common_get_cfg() 801 rcb_common->io_base = hns_rcb_common_get_vaddr(rcb_common); in hns_rcb_common_get_cfg() 802 rcb_common->phy_base = hns_rcb_common_get_paddr(rcb_common); in hns_rcb_common_get_cfg() [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); 120 int hns_rcb_get_cfg(struct rcb_common_cb *rcb_common); 124 void hns_rcb_common_init_commit_hw(struct rcb_common_cb *rcb_common); 137 struct rcb_common_cb *rcb_common, u32 port_idx); 139 struct rcb_common_cb *rcb_common, u32 port_idx); 141 struct rcb_common_cb *rcb_common, u32 port_idx); 143 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout); 145 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames); 147 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() 523 *tx_usecs = hns_rcb_get_coalesce_usecs(ring_pair->rcb_common, in hns_ae_get_coalesce_usecs() 525 *rx_usecs = hns_rcb_get_coalesce_usecs(ring_pair->rcb_common, in hns_ae_get_coalesce_usecs() 539 ring_pair->rcb_common, ring_pair->port_id_in_comm); in hns_ae_get_max_coalesced_frames() 542 ring_pair->rcb_common, ring_pair->port_id_in_comm); in hns_ae_get_max_coalesced_frames() 570 ring_pair->rcb_common, in hns_ae_set_coalesce_frames() 576 ring_pair->rcb_common, in hns_ae_set_coalesce_frames() 582 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() 521 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 | 343 struct rcb_common_cb *rcb_common[DSAF_COMM_DEV_NUM]; member
|