Lines Matching refs:port_idx
298 u32 port_idx, u32 desc_cnt) in hns_rcb_set_port_desc_cnt() argument
300 dsaf_write_dev(rcb_common, RCB_CFG_BD_NUM_REG + port_idx * 4, in hns_rcb_set_port_desc_cnt()
305 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout) in hns_rcb_set_port_timeout() argument
313 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
317 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
321 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
325 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
560 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_rx_coalesced_frames() argument
562 return dsaf_read_dev(rcb_common, RCB_CFG_PKTLINE_REG + port_idx * 4); in hns_rcb_get_rx_coalesced_frames()
573 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_tx_coalesced_frames() argument
577 reg = RCB_CFG_PKTLINE_REG + (port_idx + HNS_RCB_TX_PKTLINE_OFFSET) * 4; in hns_rcb_get_tx_coalesced_frames()
589 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_coalesce_usecs() argument
596 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4); in hns_rcb_get_coalesce_usecs()
609 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout) in hns_rcb_set_coalesce_usecs() argument
611 u32 old_timeout = hns_rcb_get_coalesce_usecs(rcb_common, port_idx); in hns_rcb_set_coalesce_usecs()
628 hns_rcb_set_port_timeout(rcb_common, port_idx, timeout); in hns_rcb_set_coalesce_usecs()
642 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames) in hns_rcb_set_tx_coalesced_frames() argument
645 hns_rcb_get_tx_coalesced_frames(rcb_common, port_idx); in hns_rcb_set_tx_coalesced_frames()
657 reg = RCB_CFG_PKTLINE_REG + (port_idx + HNS_RCB_TX_PKTLINE_OFFSET) * 4; in hns_rcb_set_tx_coalesced_frames()
672 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames) in hns_rcb_set_rx_coalesced_frames() argument
675 hns_rcb_get_rx_coalesced_frames(rcb_common, port_idx); in hns_rcb_set_rx_coalesced_frames()
688 dsaf_write_dev(rcb_common, RCB_CFG_PKTLINE_REG + port_idx * 4, in hns_rcb_set_rx_coalesced_frames()