Lines Matching refs:ethdev

191 	struct cnic_eth_dev *ethdev = cp->ethdev;  in cnic_ctx_wr()  local
199 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_wr()
205 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_tbl_wr() local
212 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_tbl_wr()
218 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ring_ctl() local
229 ethdev->drv_ctl(dev->netdev, &info); in cnic_ring_ctl()
235 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_wr_ind() local
242 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_wr_ind()
248 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_rd_ind() local
254 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_rd_ind()
261 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ulp_ctl() local
275 ethdev->drv_ctl(dev->netdev, &info); in cnic_ulp_ctl()
286 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_spq_completion() local
291 ethdev->drv_ctl(dev->netdev, &info); in cnic_spq_completion()
1101 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_uio()
1183 int ctx_blk_size = cp->ethdev->ctx_blk_size; in cnic_alloc_bnx2x_context()
1191 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context()
1231 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_alloc_bnx2x_resc() local
1232 u32 start_cid = ethdev->starting_cid; in cnic_alloc_bnx2x_resc()
1242 cp->fcoe_init_cid = ethdev->fcoe_init_cid; in cnic_alloc_bnx2x_resc()
1303 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_alloc_bnx2x_resc()
1306 cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk; in cnic_alloc_bnx2x_resc()
1404 ret = cp->ethdev->drv_submit_kwqes_16(dev->netdev, kwq, 1); in cnic_submit_kwqe_16()
1648 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_get_bnx2x_ctx() local
1649 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; in cnic_get_bnx2x_ctx()
1650 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; in cnic_get_bnx2x_ctx()
3170 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_service_bnx2x()
3831 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_cm_connect()
4271 cp->ethdev->drv_ctl(dev->netdev, &info); in cnic_delete_task()
4409 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_free_irq() local
4411 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_free_irq()
4414 free_irq(ethdev->irq_arr[0].vector, dev); in cnic_free_irq()
4421 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_request_irq() local
4424 err = request_irq(ethdev->irq_arr[0].vector, cnic_irq, 0, "cnic", dev); in cnic_request_irq()
4434 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_irq() local
4436 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_irq()
4494 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_enable_bnx2_int() local
4496 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_enable_bnx2_int()
4506 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_disable_bnx2_int_sync() local
4508 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_disable_bnx2_int_sync()
4514 synchronize_irq(ethdev->irq_arr[0].vector); in cnic_disable_bnx2_int_sync()
4520 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_tx_ring() local
4532 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_tx_ring()
4587 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_rx_ring() local
4600 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_rx_ring()
4699 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2_hw() local
4783 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_start_bnx2_hw()
4827 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2_hw()
4835 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_setup_bnx2x_context() local
4836 u32 start_offset = ethdev->ctx_tbl_offset; in cnic_setup_bnx2x_context()
4856 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2x_irq() local
4861 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_bnx2x_irq()
4914 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_tx_ring()
4982 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_rx_ring()
5081 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2x_hw() local
5085 dev->stats_addr = ethdev->addr_drv_info_to_mcp; in cnic_start_bnx2x_hw()
5105 cp->bnx2x_igu_sb_id = ethdev->irq_arr[0].status_blk_num2; in cnic_start_bnx2x_hw()
5149 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2x_hw()
5167 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_rings()
5168 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_init_rings()
5235 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_shutdown_rings()
5236 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_shutdown_rings()
5271 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_register_netdev() local
5274 if (!ethdev) in cnic_register_netdev()
5277 if (ethdev->drv_state & CNIC_DRV_STATE_REGD) in cnic_register_netdev()
5280 err = ethdev->drv_register_cnic(dev->netdev, cp->cnic_ops, dev); in cnic_register_netdev()
5287 dev->max_iscsi_conn = ethdev->max_iscsi_conn; in cnic_register_netdev()
5288 if (ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_register_netdev()
5297 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_unregister_netdev() local
5299 if (!ethdev) in cnic_unregister_netdev()
5302 ethdev->drv_unregister_cnic(dev->netdev); in cnic_unregister_netdev()
5308 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_hw() local
5314 dev->regview = ethdev->io_base; in cnic_start_hw()
5317 cp->status_blk.gen = ethdev->irq_arr[0].status_blk; in cnic_start_hw()
5318 cp->status_blk_num = ethdev->irq_arr[0].status_blk_num; in cnic_start_hw()
5410 cp->ethdev->drv_state &= ~CNIC_DRV_STATE_HANDLES_IRQ; in cnic_stop_hw()
5473 struct cnic_eth_dev *ethdev = NULL; in init_bnx2_cnic() local
5476 ethdev = (bp->cnic_probe)(dev); in init_bnx2_cnic()
5478 if (!ethdev) in init_bnx2_cnic()
5481 pdev = ethdev->pdev; in init_bnx2_cnic()
5503 cp->ethdev = ethdev; in init_bnx2_cnic()
5505 cp->chip_id = ethdev->chip_id; in init_bnx2_cnic()
5507 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2_cnic()
5533 struct cnic_eth_dev *ethdev = NULL; in init_bnx2x_cnic() local
5536 ethdev = bp->cnic_probe(dev); in init_bnx2x_cnic()
5538 if (!ethdev) in init_bnx2x_cnic()
5541 pdev = ethdev->pdev; in init_bnx2x_cnic()
5556 cp->ethdev = ethdev; in init_bnx2x_cnic()
5558 cp->chip_id = ethdev->chip_id; in init_bnx2x_cnic()
5560 cdev->stats_addr = ethdev->addr_drv_info_to_mcp; in init_bnx2x_cnic()
5562 if (!(ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)) in init_bnx2x_cnic()
5563 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2x_cnic()
5565 cdev->max_fcoe_conn = ethdev->max_fcoe_conn; in init_bnx2x_cnic()
5566 cdev->max_fcoe_exchanges = ethdev->max_fcoe_exchanges; in init_bnx2x_cnic()
5572 memcpy(cdev->mac_addr, ethdev->iscsi_mac, ETH_ALEN); in init_bnx2x_cnic()