Lines Matching refs:ethdev

192 	struct cnic_eth_dev *ethdev = cp->ethdev;  in cnic_ctx_wr()  local
201 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_wr()
207 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_tbl_wr() local
215 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_tbl_wr()
221 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ring_ctl() local
233 ethdev->drv_ctl(dev->netdev, &info); in cnic_ring_ctl()
239 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_wr_ind() local
247 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_wr_ind()
253 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_rd_ind() local
260 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_rd_ind()
267 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ulp_ctl() local
283 ethdev->drv_ctl(dev->netdev, &info); in cnic_ulp_ctl()
294 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_spq_completion() local
300 ethdev->drv_ctl(dev->netdev, &info); in cnic_spq_completion()
1112 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_uio()
1200 int ctx_blk_size = cp->ethdev->ctx_blk_size; in cnic_alloc_bnx2x_context()
1208 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context()
1248 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_alloc_bnx2x_resc() local
1249 u32 start_cid = ethdev->starting_cid; in cnic_alloc_bnx2x_resc()
1259 cp->fcoe_init_cid = ethdev->fcoe_init_cid; in cnic_alloc_bnx2x_resc()
1320 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_alloc_bnx2x_resc()
1323 cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk; in cnic_alloc_bnx2x_resc()
1324 cp->status_blk_map = cp->ethdev->irq_arr[1].status_blk_map; in cnic_alloc_bnx2x_resc()
1422 ret = cp->ethdev->drv_submit_kwqes_16(dev->netdev, kwq, 1); in cnic_submit_kwqe_16()
1666 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_get_bnx2x_ctx() local
1667 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; in cnic_get_bnx2x_ctx()
1668 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; in cnic_get_bnx2x_ctx()
3185 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_service_bnx2x()
3847 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_cm_connect()
4290 cp->ethdev->drv_ctl(dev->netdev, &info); in cnic_delete_task()
4428 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_free_irq() local
4430 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_free_irq()
4433 free_irq(ethdev->irq_arr[0].vector, dev); in cnic_free_irq()
4440 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_request_irq() local
4443 err = request_irq(ethdev->irq_arr[0].vector, cnic_irq, 0, "cnic", dev); in cnic_request_irq()
4453 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_irq() local
4455 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_irq()
4512 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_enable_bnx2_int() local
4514 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_enable_bnx2_int()
4524 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_disable_bnx2_int_sync() local
4526 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_disable_bnx2_int_sync()
4532 synchronize_irq(ethdev->irq_arr[0].vector); in cnic_disable_bnx2_int_sync()
4538 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_tx_ring() local
4550 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_tx_ring()
4605 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_rx_ring() local
4618 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_rx_ring()
4717 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2_hw() local
4801 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_start_bnx2_hw()
4845 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2_hw()
4853 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_setup_bnx2x_context() local
4854 u32 start_offset = ethdev->ctx_tbl_offset; in cnic_setup_bnx2x_context()
4874 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2x_irq() local
4878 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_bnx2x_irq()
4931 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_tx_ring()
4999 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_rx_ring()
5098 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2x_hw() local
5102 dev->stats_addr = ethdev->addr_drv_info_to_mcp; in cnic_start_bnx2x_hw()
5121 cp->bnx2x_igu_sb_id = ethdev->irq_arr[0].status_blk_num2; in cnic_start_bnx2x_hw()
5165 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2x_hw()
5183 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_rings()
5184 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_init_rings()
5253 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_shutdown_rings()
5254 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_shutdown_rings()
5289 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_register_netdev() local
5292 if (!ethdev) in cnic_register_netdev()
5295 if (ethdev->drv_state & CNIC_DRV_STATE_REGD) in cnic_register_netdev()
5298 err = ethdev->drv_register_cnic(dev->netdev, cp->cnic_ops, dev); in cnic_register_netdev()
5305 dev->max_iscsi_conn = ethdev->max_iscsi_conn; in cnic_register_netdev()
5306 if (ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_register_netdev()
5315 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_unregister_netdev() local
5317 if (!ethdev) in cnic_unregister_netdev()
5320 ethdev->drv_unregister_cnic(dev->netdev); in cnic_unregister_netdev()
5326 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_hw() local
5332 dev->regview = ethdev->io_base; in cnic_start_hw()
5335 cp->status_blk.gen = ethdev->irq_arr[0].status_blk; in cnic_start_hw()
5336 cp->status_blk_map = ethdev->irq_arr[0].status_blk_map; in cnic_start_hw()
5337 cp->status_blk_num = ethdev->irq_arr[0].status_blk_num; in cnic_start_hw()
5360 if (ethdev->drv_state & CNIC_DRV_STATE_HANDLES_IRQ) in cnic_start_hw()
5432 cp->ethdev->drv_state &= ~CNIC_DRV_STATE_HANDLES_IRQ; in cnic_stop_hw()
5471 ret = cp->ethdev->drv_get_fc_npiv_tbl(dev->netdev, npiv_tbl); in cnic_get_fc_npiv_tbl()
5514 struct cnic_eth_dev *ethdev = NULL; in init_bnx2_cnic() local
5517 ethdev = (bp->cnic_probe)(dev); in init_bnx2_cnic()
5519 if (!ethdev) in init_bnx2_cnic()
5522 pdev = ethdev->pdev; in init_bnx2_cnic()
5544 cp->ethdev = ethdev; in init_bnx2_cnic()
5546 cp->chip_id = ethdev->chip_id; in init_bnx2_cnic()
5548 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2_cnic()
5574 struct cnic_eth_dev *ethdev = NULL; in init_bnx2x_cnic() local
5577 ethdev = bp->cnic_probe(dev); in init_bnx2x_cnic()
5579 if (!ethdev) in init_bnx2x_cnic()
5582 pdev = ethdev->pdev; in init_bnx2x_cnic()
5597 cp->ethdev = ethdev; in init_bnx2x_cnic()
5599 cp->chip_id = ethdev->chip_id; in init_bnx2x_cnic()
5601 cdev->stats_addr = ethdev->addr_drv_info_to_mcp; in init_bnx2x_cnic()
5603 if (!(ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)) in init_bnx2x_cnic()
5604 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2x_cnic()
5606 cdev->max_fcoe_conn = ethdev->max_fcoe_conn; in init_bnx2x_cnic()
5607 cdev->max_fcoe_exchanges = ethdev->max_fcoe_exchanges; in init_bnx2x_cnic()
5613 memcpy(cdev->mac_addr, ethdev->iscsi_mac, ETH_ALEN); in init_bnx2x_cnic()