| /f-stack/dpdk/drivers/net/cxgbe/base/ |
| H A D | common.h | 331 static inline int is_pf4(struct adapter *adap) in is_pf4() argument 333 return adap->pf == 4; in is_pf4() 341 return adap->params.hash_filter; in is_hashfilter() 357 int t4vf_fw_reset(struct adapter *adap); 360 int t4_fl_pkt_align(struct adapter *adap); 362 int t4vf_get_vfres(struct adapter *adap); 374 int t4vf_get_dev_params(struct adapter *adap); 425 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec() 431 return (us * adap->params.vpd.cclk) / 1000; in us_to_core_ticks() 517 int t4vf_port_init(struct adapter *adap); [all …]
|
| H A D | t4_hw.c | 356 t4_os_atomic_add_tail(&entry, &adap->mbox_list, &adap->mbox_lock); in t4_wr_mbox_meat_timeout() 1935 dev_err(adap, in t4_get_regs() 2167 ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); in t4_fw_tp_pio_rw() 5250 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in t4_init_tp_params() 5261 dev_info(adap, in t4_init_tp_params() 5280 adap->params.tp.filter_mask = adap->params.tp.vlan_pri_map; in t4_init_tp_params() 5303 adap->params.tp.protocol_shift = t4_filter_field_shift(adap, in t4_init_tp_params() 5305 adap->params.tp.ethertype_shift = t4_filter_field_shift(adap, in t4_init_tp_params() 5307 adap->params.tp.macmatch_shift = t4_filter_field_shift(adap, in t4_init_tp_params() 5309 adap->params.tp.tos_shift = t4_filter_field_shift(adap, F_TOS); in t4_init_tp_params() [all …]
|
| H A D | adapter.h | 407 return adap->port[idx]; in adap2pinfo() 438 #define CXGBE_PCI_REG_ADDR(adap, reg) \ argument 441 #define CXGBE_READ_REG(adap, reg) \ argument 442 cxgbe_read_addr(CXGBE_PCI_REG_ADDR((adap), (reg))) 444 #define CXGBE_READ_REG64(adap, reg) \ argument 452 #define CXGBE_WRITE_REG(adap, reg, value) \ argument 465 #define CXGBE_WRITE_REG64(adap, reg, value) \ argument 807 void t4_free_sge_resources(struct adapter *adap); 809 void t4_sge_tx_monitor_stop(struct adapter *adap); 813 int t4_sge_init(struct adapter *adap); [all …]
|
| H A D | t4vf_hw.c | 43 static void get_mbox_rpl(struct adapter *adap, __be64 *rpl, int nflit, in get_mbox_rpl() argument 47 *rpl++ = cpu_to_be64(t4_read_reg64(adap, mbox_addr)); in get_mbox_rpl()
|
| /f-stack/dpdk/drivers/net/cxgbe/ |
| H A D | cxgbe_main.c | 342 err = t4_set_params(adap, adap->mbox, adap->pf, 0, 1, in cxgb4_set_rspq_intr_params() 1006 return t4_set_params(adap, adap->mbox, adap->pf, 0, nparams, in configure_filter_mode_mask() 1293 ret = t4_fw_hello(adap, adap->mbox, adap->mbox, MASTER_MAY, &state); in adap_init0() 1404 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 4, params, val); in adap_init0() 1444 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 1454 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 1460 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, in adap_init0() 1474 (void)t4_set_params(adap, adap->mbox, adap->pf, 0, 1, params, val); in adap_init0() 1486 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 1533 t4_load_mtus(adap, adap->params.mtus, adap->params.a_wnd, in adap_init0() [all …]
|
| H A D | sge.c | 1767 return t4_iq_start_stop(adap, adap->mbox, true, adap->pf, 0, in t4_sge_eth_rxq_start() 1776 return t4_iq_start_stop(adap, adap->mbox, false, adap->pf, 0, in t4_sge_eth_rxq_stop() 1897 ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); in t4_sge_alloc_rxq() 1975 ret = t4_set_params(adap, adap->mbox, adap->pf, 0, 1, in t4_sge_alloc_rxq() 1985 t4_iq_free(adap, adap->mbox, adap->pf, 0, FW_IQ_TYPE_FL_INT_CAP, in t4_sge_alloc_rxq() 2090 ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); in t4_sge_alloc_eth_txq() 2154 ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); in t4_sge_alloc_ctrl_txq() 2179 t4_iq_free(adap, adap->mbox, adap->pf, 0, FW_IQ_TYPE_FL_INT_CAP, in free_rspq_fl() 2239 t4_eth_eq_free(adap, adap->mbox, adap->pf, 0, txq->q.cntxt_id); in t4_sge_eth_txq_release() 2302 t4_ctrl_eq_free(adap, adap->mbox, adap->pf, 0, in t4_free_sge_resources() [all …]
|
| H A D | mps_tcam.c | 64 struct adapter *adap = pi->adapter; in cxgbe_mpstcam_alloc() local 65 struct mpstcam_table *mpstcam = adap->mpstcam; in cxgbe_mpstcam_alloc() 69 if (!adap->mpstcam) { in cxgbe_mpstcam_alloc() 85 dev_err(adap, "mps-tcam table is full\n"); in cxgbe_mpstcam_alloc() 112 struct adapter *adap = pi->adapter; in cxgbe_mpstcam_modify() local 134 idx = t4_change_mac(adap, adap->mbox, pi->viid, idx, addr, true, true); in cxgbe_mpstcam_modify() 178 struct adapter *adap = pi->adapter; in cxgbe_mpstcam_remove() local 179 struct mpstcam_table *t = adap->mpstcam; in cxgbe_mpstcam_remove() 213 u16 size = adap->params.arch.mps_tcam_size; in t4_init_mpstcam() 240 if (adap->mpstcam) in t4_cleanup_mpstcam() [all …]
|
| H A D | cxgbe_flow.c | 115 if (!is_hashfilter(adap)) in cxgbe_fill_filter_region() 537 if (fidx >= adap->tids.nftids) { in cxgbe_validate_fidxondel() 565 fidx, adap->tids.nftids); in cxgbe_validate_fidxonadd() 1192 t4_os_lock(&adap->flow_lock); in cxgbe_flow_create() 1252 t4_os_lock(&adap->flow_lock); in cxgbe_flow_destroy() 1312 t4_os_lock(&adap->flow_lock); in cxgbe_flow_query() 1366 t4_os_lock(&adap->flow_lock); in cxgbe_flow_validate() 1406 t4_os_lock(&adap->flow_lock); in cxgbe_flow_flush() 1407 if (adap->tids.ftid_tab) { in cxgbe_flow_flush() 1423 if (is_hashfilter(adap) && adap->tids.tid_tab) { in cxgbe_flow_flush() [all …]
|
| H A D | clip_tbl.c | 14 struct adapter *adap = ethdev2adap(dev); in clip6_get_mbox() local 25 return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false); in clip6_get_mbox() 33 struct adapter *adap = ethdev2adap(dev); in clip6_release_mbox() local 44 return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false); in clip6_release_mbox() 61 dev_debug(adap, "CLIP FW DEL CMD failed: %d", ret); in cxgbe_clip_release() 105 struct adapter *adap = ethdev2adap(dev); in t4_clip_alloc() local 106 struct clip_tbl *ctbl = adap->clipt; in t4_clip_alloc() 124 dev_debug(adap, in t4_clip_alloc() 189 void t4_cleanup_clip_tbl(struct adapter *adap) in t4_cleanup_clip_tbl() argument 191 if (adap->clipt) in t4_cleanup_clip_tbl() [all …]
|
| H A D | smt.c | 9 void cxgbe_do_smt_write_rpl(struct adapter *adap, in cxgbe_do_smt_write_rpl() argument 13 struct smt_data *s = adap->smt; in cxgbe_do_smt_write_rpl() 18 dev_err(adap, in cxgbe_do_smt_write_rpl() 30 struct adapter *adap = ethdev2adap(dev); in write_smt_entry() local 32 struct smt_data *s = adap->smt; in write_smt_entry() 38 ctrlq = &adap->sge.ctrlq[port_id]; in write_smt_entry() 150 struct adapter *adap = ethdev2adap(dev); in t4_smt_alloc_switching() local 151 struct smt_data *s = adap->smt; in t4_smt_alloc_switching() 232 void t4_cleanup_smt(struct adapter *adap) in t4_cleanup_smt() argument 234 if (adap->smt) in t4_cleanup_smt() [all …]
|
| H A D | l2t.c | 28 struct l2t_data *d = adap->l2t; in cxgbe_do_l2t_write_rpl() 33 dev_err(adap, in cxgbe_do_l2t_write_rpl() 56 struct adapter *adap = ethdev2adap(dev); in write_l2e() local 57 struct l2t_data *d = adap->l2t; in write_l2e() 64 ctrlq = &adap->sge.ctrlq[port_id]; in write_l2e() 78 V_TID_QID(adap->sge.fw_evtq.abs_id))); in write_l2e() 145 struct adapter *adap = ethdev2adap(dev); in t4_l2t_alloc_switching() local 146 struct l2t_data *d = adap->l2t; in t4_l2t_alloc_switching() 225 void t4_cleanup_l2t(struct adapter *adap) in t4_cleanup_l2t() argument 227 if (adap->l2t) in t4_cleanup_l2t() [all …]
|
| H A D | cxgbe.h | 85 bool cxgbe_force_linkup(struct adapter *adap); 90 int cxgbe_up(struct adapter *adap); 104 int cxgbe_init_rss(struct adapter *adap); 107 void cxgbe_print_port_info(struct adapter *adap); 108 void cxgbe_print_adapter_info(struct adapter *adap); 109 void cxgbe_process_devargs(struct adapter *adap);
|
| H A D | cxgbe_filter.c | 29 adap->params.hash_filter = 0; in cxgbe_init_hash_filter() 35 adap->params.hash_filter = 0; in cxgbe_init_hash_filter() 41 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, in cxgbe_init_hash_filter() 45 adap->tids.ntids = val; in cxgbe_init_hash_filter() 46 adap->tids.natids = min(adap->tids.ntids / 2, MAX_ATIDS); in cxgbe_init_hash_filter() 53 adap->tids.nftids = n_user_filters; in cxgbe_init_hash_filter() 54 adap->params.hash_filter = 1; in cxgbe_init_hash_filter() 277 struct tid_info *t = &adap->tids; in cxgbe_alloc_ftid() 1198 set_tcb_field(adap, tid, in cxgbe_hash_filter_rpl() 1249 if (adap->tids.ftid_tab) { in cxgbe_filter_rpl() [all …]
|
| H A D | cxgbe_filter.h | 257 u8 cxgbe_filter_slots(struct adapter *adap, u8 family); 259 void cxgbe_filter_rpl(struct adapter *adap, const struct cpl_set_tcb_rpl *rpl); 266 int cxgbe_alloc_ftid(struct adapter *adap, u8 nentries); 267 int cxgbe_init_hash_filter(struct adapter *adap); 268 void cxgbe_hash_filter_rpl(struct adapter *adap, 270 void cxgbe_hash_del_filter_rpl(struct adapter *adap, 272 int cxgbe_validate_filter(struct adapter *adap,
|
| H A D | smt.h | 38 void t4_cleanup_smt(struct adapter *adap); 39 void cxgbe_do_smt_write_rpl(struct adapter *adap,
|
| H A D | mps_tcam.h | 46 struct mpstcam_table *t4_init_mpstcam(struct adapter *adap); 47 void t4_cleanup_mpstcam(struct adapter *adap);
|
| H A D | cxgbe_ethdev.c | 561 struct adapter *adap = pi->adapter; in cxgbe_dev_tx_queue_release() local 566 t4_sge_eth_txq_release(adap, txq); in cxgbe_dev_tx_queue_release() 573 struct adapter *adap = pi->adapter; in cxgbe_dev_rx_queue_start() local 581 ret = t4_sge_eth_rxq_start(adap, rxq); in cxgbe_dev_rx_queue_start() 591 struct adapter *adap = pi->adapter; in cxgbe_dev_rx_queue_stop() local 599 ret = t4_sge_eth_rxq_stop(adap, rxq); in cxgbe_dev_rx_queue_stop() 636 dev_err(adap, "%s: max pkt len must be > %d and <= %d\n", in cxgbe_dev_rx_queue_setup() 698 struct adapter *adap = pi->adapter; in cxgbe_dev_rx_queue_release() local 703 t4_sge_eth_rxq_release(adap, rxq); in cxgbe_dev_rx_queue_release() 1040 vaddr = t4_seeprom_read(adap, vaddr, v); in eeprom_rd_phys() [all …]
|
| H A D | clip_tbl.h | 28 void t4_cleanup_clip_tbl(struct adapter *adap);
|
| H A D | l2t.h | 52 void t4_cleanup_l2t(struct adapter *adap);
|
| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-twsi.c | 81 struct i2c_adapter adap; in __cvmx_twsix_get_adapter() member 97 i2c = container_of(adapter, struct octeon_i2c, adap); in __cvmx_twsix_get_adapter() 98 return &i2c[twsi_id].adap; in __cvmx_twsix_get_adapter()
|