Searched refs:rcb_common (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_rcb.c | 170 void hns_rcb_common_init_commit_hw(struct rcb_common_cb *rcb_common) in hns_rcb_common_init_commit_hw() argument 173 dsaf_write_dev(rcb_common, RCB_COM_CFG_SYS_FSH_REG, 1); in hns_rcb_common_init_commit_hw() 185 struct rcb_common_cb *rcb_common = ring_pair->rcb_common; in hns_rcb_ring_init() local 186 u32 bd_size_type = rcb_common->dsaf_dev->buf_size_type; in hns_rcb_ring_init() 232 static void hns_rcb_set_port_desc_cnt(struct rcb_common_cb *rcb_common, in hns_rcb_set_port_desc_cnt() argument 238 dsaf_write_dev(rcb_common, RCB_CFG_BD_NUM_REG + port_idx * 4, in hns_rcb_set_port_desc_cnt() 248 static int hns_rcb_set_port_coalesced_frames(struct rcb_common_cb *rcb_common, in hns_rcb_set_port_coalesced_frames() argument 254 if (coalesced_frames >= rcb_common->desc_num || in hns_rcb_set_port_coalesced_frames() 258 dsaf_write_dev(rcb_common, RCB_CFG_PKTLINE_REG + port_idx * 4, in hns_rcb_set_port_coalesced_frames() 269 static u32 hns_rcb_get_port_coalesced_frames(struct rcb_common_cb *rcb_common, in hns_rcb_get_port_coalesced_frames() argument [all …]
|
D | hns_dsaf_rcb.h | 71 struct rcb_common_cb *rcb_common; /* ring belongs to */ member 106 int hns_rcb_common_init_hw(struct rcb_common_cb *rcb_common); 108 void hns_rcb_get_cfg(struct rcb_common_cb *rcb_common); 109 void hns_rcb_common_init_commit_hw(struct rcb_common_cb *rcb_common); 130 void hns_rcb_get_common_regs(struct rcb_common_cb *rcb_common, void *data);
|
D | hns_ae_adapt.c | 80 return dsaf_dev->rcb_common[common_idx]->max_q_per_vf; in hns_ae_get_q_num_per_vf() 88 return dsaf_dev->rcb_common[common_idx]->max_vfn; in hns_ae_get_vf_num_per_port() 95 struct rcb_common_cb *rcb_comm = dsaf_dev->rcb_common[common_idx]; in hns_ae_get_base_ring_pair() 702 hns_rcb_get_common_regs(vf_cb->dsaf_dev->rcb_common[rcb_com_idx], p); in hns_ae_get_regs()
|
D | hns_dsaf_ppe.c | 344 ret = hns_rcb_common_init_hw(dsaf_dev->rcb_common[ppe_common_index]); in hns_ppe_reset_common() 351 hns_rcb_common_init_commit_hw(dsaf_dev->rcb_common[ppe_common_index]); in hns_ppe_reset_common() 475 hns_rcb_get_cfg(dsaf_dev->rcb_common[i]); in hns_ppe_init()
|
D | hns_dsaf_main.h | 296 struct rcb_common_cb *rcb_common[DSAF_COMM_DEV_NUM]; member
|
D | hns_dsaf_mac.c | 197 if (vmid >= mac_cb->dsaf_dev->rcb_common[comm_idx]->max_vfn) { in hns_mac_get_inner_port_num()
|