Lines Matching refs:ethdev

191 	struct cnic_eth_dev *ethdev = cp->ethdev;  in cnic_ctx_wr()  local
200 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_wr()
206 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_tbl_wr() local
214 ethdev->drv_ctl(dev->netdev, &info); in cnic_ctx_tbl_wr()
220 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ring_ctl() local
232 ethdev->drv_ctl(dev->netdev, &info); in cnic_ring_ctl()
238 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_wr_ind() local
246 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_wr_ind()
252 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_rd_ind() local
259 ethdev->drv_ctl(dev->netdev, &info); in cnic_reg_rd_ind()
266 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ulp_ctl() local
282 ethdev->drv_ctl(dev->netdev, &info); in cnic_ulp_ctl()
293 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_spq_completion() local
299 ethdev->drv_ctl(dev->netdev, &info); in cnic_spq_completion()
1110 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_uio()
1192 int ctx_blk_size = cp->ethdev->ctx_blk_size; in cnic_alloc_bnx2x_context()
1200 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context()
1240 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_alloc_bnx2x_resc() local
1241 u32 start_cid = ethdev->starting_cid; in cnic_alloc_bnx2x_resc()
1251 cp->fcoe_init_cid = ethdev->fcoe_init_cid; in cnic_alloc_bnx2x_resc()
1312 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_alloc_bnx2x_resc()
1315 cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk; in cnic_alloc_bnx2x_resc()
1413 ret = cp->ethdev->drv_submit_kwqes_16(dev->netdev, kwq, 1); in cnic_submit_kwqe_16()
1657 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_get_bnx2x_ctx() local
1658 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; in cnic_get_bnx2x_ctx()
1659 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; in cnic_get_bnx2x_ctx()
3176 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_service_bnx2x()
3837 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_cm_connect()
4280 cp->ethdev->drv_ctl(dev->netdev, &info); in cnic_delete_task()
4418 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_free_irq() local
4420 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_free_irq()
4423 free_irq(ethdev->irq_arr[0].vector, dev); in cnic_free_irq()
4430 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_request_irq() local
4433 err = request_irq(ethdev->irq_arr[0].vector, cnic_irq, 0, "cnic", dev); in cnic_request_irq()
4443 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_irq() local
4445 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_irq()
4502 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_enable_bnx2_int() local
4504 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_enable_bnx2_int()
4514 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_disable_bnx2_int_sync() local
4516 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_disable_bnx2_int_sync()
4522 synchronize_irq(ethdev->irq_arr[0].vector); in cnic_disable_bnx2_int_sync()
4528 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_tx_ring() local
4540 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_tx_ring()
4595 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2_rx_ring() local
4608 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_rx_ring()
4707 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2_hw() local
4791 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_start_bnx2_hw()
4835 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2_hw()
4843 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_setup_bnx2x_context() local
4844 u32 start_offset = ethdev->ctx_tbl_offset; in cnic_setup_bnx2x_context()
4864 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_init_bnx2x_irq() local
4868 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_bnx2x_irq()
4921 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_tx_ring()
4989 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_bnx2x_rx_ring()
5088 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_bnx2x_hw() local
5092 dev->stats_addr = ethdev->addr_drv_info_to_mcp; in cnic_start_bnx2x_hw()
5111 cp->bnx2x_igu_sb_id = ethdev->irq_arr[0].status_blk_num2; in cnic_start_bnx2x_hw()
5155 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ; in cnic_start_bnx2x_hw()
5173 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_init_rings()
5174 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_init_rings()
5243 u32 cli = cp->ethdev->iscsi_l2_client_id; in cnic_shutdown_rings()
5244 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_shutdown_rings()
5279 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_register_netdev() local
5282 if (!ethdev) in cnic_register_netdev()
5285 if (ethdev->drv_state & CNIC_DRV_STATE_REGD) in cnic_register_netdev()
5288 err = ethdev->drv_register_cnic(dev->netdev, cp->cnic_ops, dev); in cnic_register_netdev()
5295 dev->max_iscsi_conn = ethdev->max_iscsi_conn; in cnic_register_netdev()
5296 if (ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_register_netdev()
5305 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_unregister_netdev() local
5307 if (!ethdev) in cnic_unregister_netdev()
5310 ethdev->drv_unregister_cnic(dev->netdev); in cnic_unregister_netdev()
5316 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_start_hw() local
5322 dev->regview = ethdev->io_base; in cnic_start_hw()
5325 cp->status_blk.gen = ethdev->irq_arr[0].status_blk; in cnic_start_hw()
5326 cp->status_blk_num = ethdev->irq_arr[0].status_blk_num; in cnic_start_hw()
5349 if (ethdev->drv_state & CNIC_DRV_STATE_HANDLES_IRQ) in cnic_start_hw()
5421 cp->ethdev->drv_state &= ~CNIC_DRV_STATE_HANDLES_IRQ; in cnic_stop_hw()
5460 ret = cp->ethdev->drv_get_fc_npiv_tbl(dev->netdev, npiv_tbl); in cnic_get_fc_npiv_tbl()
5503 struct cnic_eth_dev *ethdev = NULL; in init_bnx2_cnic() local
5506 ethdev = (bp->cnic_probe)(dev); in init_bnx2_cnic()
5508 if (!ethdev) in init_bnx2_cnic()
5511 pdev = ethdev->pdev; in init_bnx2_cnic()
5533 cp->ethdev = ethdev; in init_bnx2_cnic()
5535 cp->chip_id = ethdev->chip_id; in init_bnx2_cnic()
5537 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2_cnic()
5563 struct cnic_eth_dev *ethdev = NULL; in init_bnx2x_cnic() local
5566 ethdev = bp->cnic_probe(dev); in init_bnx2x_cnic()
5568 if (!ethdev) in init_bnx2x_cnic()
5571 pdev = ethdev->pdev; in init_bnx2x_cnic()
5586 cp->ethdev = ethdev; in init_bnx2x_cnic()
5588 cp->chip_id = ethdev->chip_id; in init_bnx2x_cnic()
5590 cdev->stats_addr = ethdev->addr_drv_info_to_mcp; in init_bnx2x_cnic()
5592 if (!(ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)) in init_bnx2x_cnic()
5593 cdev->max_iscsi_conn = ethdev->max_iscsi_conn; in init_bnx2x_cnic()
5595 cdev->max_fcoe_conn = ethdev->max_fcoe_conn; in init_bnx2x_cnic()
5596 cdev->max_fcoe_exchanges = ethdev->max_fcoe_exchanges; in init_bnx2x_cnic()
5602 memcpy(cdev->mac_addr, ethdev->iscsi_mac, ETH_ALEN); in init_bnx2x_cnic()