Lines Matching refs:ethdev
189 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_wr() local
197 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_wr()
203 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_tbl_wr() local
210 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_tbl_wr()
216 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ring_ctl() local
227 ethdev->drv_ctl(dev->netdev, &info); in cnic_ring_ctl()
233 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_wr_ind() local
240 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_wr_ind()
246 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_rd_ind() local
252 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_rd_ind()
259 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ulp_ctl() local
273 ethdev->drv_ctl(dev->netdev, &info); in cnic_ulp_ctl()
284 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_spq_completion() local
289 ethdev->drv_ctl(dev->netdev, &info); in cnic_spq_completion()
1106 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_uio()
1187 int ctx_blk_size = cp->ethdev->ctx_blk_size; in cnic_alloc_bnx2x_context()
1195 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context()
1234 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_alloc_bnx2x_resc() local
1235 u32 start_cid = ethdev->starting_cid; in cnic_alloc_bnx2x_resc()
1245 cp->fcoe_init_cid = ethdev->fcoe_init_cid; in cnic_alloc_bnx2x_resc()
1306 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_alloc_bnx2x_resc()
1309 cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk; in cnic_alloc_bnx2x_resc()
1406 ret = cp->ethdev->drv_submit_kwqes_16(dev->netdev, kwq, 1); in cnic_submit_kwqe_16()
1626 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_get_bnx2x_ctx() local
1627 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; in cnic_get_bnx2x_ctx()
1628 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; in cnic_get_bnx2x_ctx()
3141 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_FCOE) { in cnic_service_bnx2x_bh()
3166 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_service_bnx2x()
3825 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_cm_connect()
4263 cp->ethdev->drv_ctl(dev->netdev, &info); in cnic_delete_task()
4401 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_free_irq() local
4403 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_free_irq()
4406 free_irq(ethdev->irq_arr[0].vector, dev); in cnic_free_irq()
4413 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_request_irq() local
4416 err = request_irq(ethdev->irq_arr[0].vector, cnic_irq, 0, "cnic", dev); in cnic_request_irq()
4426 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_irq() local
4428 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_irq()
4486 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_enable_bnx2_int() local
4488 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_enable_bnx2_int()
4498 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_disable_bnx2_int_sync() local
4500 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_disable_bnx2_int_sync()
4506 synchronize_irq(ethdev->irq_arr[0].vector); in cnic_disable_bnx2_int_sync()
4512 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_tx_ring() local
4524 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_tx_ring()
4579 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_rx_ring() local
4592 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_rx_ring()
4691 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2_hw() local
4775 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_start_bnx2_hw()
4819 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2_hw()
4827 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_setup_bnx2x_context() local
4828 u32 start_offset = ethdev->ctx_tbl_offset; in cnic_setup_bnx2x_context()
4848 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2x_irq() local
4853 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_bnx2x_irq()
4905 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_tx_ring()
4972 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_rx_ring()
5071 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2x_hw() local
5075 dev->stats_addr = ethdev->addr_drv_info_to_mcp; in cnic_start_bnx2x_hw()
5097 cp->bnx2x_igu_sb_id = ethdev->irq_arr[0].status_blk_num2; in cnic_start_bnx2x_hw()
5141 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2x_hw()
5159 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_rings()
5160 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_init_rings()
5225 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_shutdown_rings()
5226 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_shutdown_rings()
5261 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_register_netdev() local
5264 if (!ethdev) in cnic_register_netdev()
5267 if (ethdev->drv_state & CNIC_DRV_STATE_REGD) in cnic_register_netdev()
5270 err = ethdev->drv_register_cnic(dev->netdev, cp->cnic_ops, dev); in cnic_register_netdev()
5280 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_unregister_netdev() local
5282 if (!ethdev) in cnic_unregister_netdev()
5285 ethdev->drv_unregister_cnic(dev->netdev); in cnic_unregister_netdev()
5291 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_hw() local
5297 dev->regview = ethdev->io_base; in cnic_start_hw()
5300 cp->status_blk.gen = ethdev->irq_arr[0].status_blk; in cnic_start_hw()
5301 cp->status_blk_num = ethdev->irq_arr[0].status_blk_num; in cnic_start_hw()
5393 cp->ethdev->drv_state &= ~CNIC_DRV_STATE_HANDLES_IRQ; in cnic_stop_hw()
5456 struct cnic_eth_dev *ethdev = NULL; in init_bnx2_cnic() local
5459 ethdev = (bp->cnic_probe)(dev); in init_bnx2_cnic()
5461 if (!ethdev) in init_bnx2_cnic()
5464 pdev = ethdev->pdev; in init_bnx2_cnic()
5486 cp->ethdev = ethdev; in init_bnx2_cnic()
5488 cp->chip_id = ethdev->chip_id; in init_bnx2_cnic()
5490 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2_cnic()
5516 struct cnic_eth_dev *ethdev = NULL; in init_bnx2x_cnic() local
5519 ethdev = bp->cnic_probe(dev); in init_bnx2x_cnic()
5521 if (!ethdev) in init_bnx2x_cnic()
5524 pdev = ethdev->pdev; in init_bnx2x_cnic()
5539 cp->ethdev = ethdev; in init_bnx2x_cnic()
5541 cp->chip_id = ethdev->chip_id; in init_bnx2x_cnic()
5543 cdev->stats_addr = ethdev->addr_drv_info_to_mcp; in init_bnx2x_cnic()
5545 if (!(ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)) in init_bnx2x_cnic()
5546 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2x_cnic()
5548 cdev->max_fcoe_conn = ethdev->max_fcoe_conn; in init_bnx2x_cnic()
5549 cdev->max_fcoe_exchanges = ethdev->max_fcoe_exchanges; in init_bnx2x_cnic()
5555 memcpy(cdev->mac_addr, ethdev->iscsi_mac, 6); in init_bnx2x_cnic()