Lines Matching refs:ethdev
191 struct cnic_eth_dev *ethdev = cp->ethdev;
200 ethdev->drv_ctl(dev->netdev, &info);
206 struct cnic_eth_dev *ethdev = cp->ethdev;
214 ethdev->drv_ctl(dev->netdev, &info);
220 struct cnic_eth_dev *ethdev = cp->ethdev;
232 ethdev->drv_ctl(dev->netdev, &info);
238 struct cnic_eth_dev *ethdev = cp->ethdev;
246 ethdev->drv_ctl(dev->netdev, &info);
252 struct cnic_eth_dev *ethdev = cp->ethdev;
259 ethdev->drv_ctl(dev->netdev, &info);
266 struct cnic_eth_dev *ethdev = cp->ethdev;
282 ethdev->drv_ctl(dev->netdev, &info);
293 struct cnic_eth_dev *ethdev = cp->ethdev;
299 ethdev->drv_ctl(dev->netdev, &info);
1112 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)
1194 int ctx_blk_size = cp->ethdev->ctx_blk_size;
1202 if (blks > cp->ethdev->ctx_tbl_len)
1242 struct cnic_eth_dev *ethdev = cp->ethdev;
1243 u32 start_cid = ethdev->starting_cid;
1253 cp->fcoe_init_cid = ethdev->fcoe_init_cid;
1314 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)
1317 cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk;
1415 ret = cp->ethdev->drv_submit_kwqes_16(dev->netdev, kwq, 1);
1659 struct cnic_eth_dev *ethdev = cp->ethdev;
1660 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk;
1661 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk;
3178 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX))
3839 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)
4283 cp->ethdev->drv_ctl(dev->netdev, &info);
4421 struct cnic_eth_dev *ethdev = cp->ethdev;
4423 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4426 free_irq(ethdev->irq_arr[0].vector, dev);
4433 struct cnic_eth_dev *ethdev = cp->ethdev;
4436 err = request_irq(ethdev->irq_arr[0].vector, cnic_irq, 0, "cnic", dev);
4446 struct cnic_eth_dev *ethdev = cp->ethdev;
4448 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4505 struct cnic_eth_dev *ethdev = cp->ethdev;
4507 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX))
4517 struct cnic_eth_dev *ethdev = cp->ethdev;
4519 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX))
4525 synchronize_irq(ethdev->irq_arr[0].vector);
4531 struct cnic_eth_dev *ethdev = cp->ethdev;
4543 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4598 struct cnic_eth_dev *ethdev = cp->ethdev;
4611 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4710 struct cnic_eth_dev *ethdev = cp->ethdev;
4794 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4838 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ;
4846 struct cnic_eth_dev *ethdev = cp->ethdev;
4847 u32 start_offset = ethdev->ctx_tbl_offset;
4867 struct cnic_eth_dev *ethdev = cp->ethdev;
4871 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)
4924 u32 cli = cp->ethdev->iscsi_l2_client_id;
4992 u32 cli = cp->ethdev->iscsi_l2_client_id;
5091 struct cnic_eth_dev *ethdev = cp->ethdev;
5095 dev->stats_addr = ethdev->addr_drv_info_to_mcp;
5114 cp->bnx2x_igu_sb_id = ethdev->irq_arr[0].status_blk_num2;
5158 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ;
5176 u32 cli = cp->ethdev->iscsi_l2_client_id;
5177 u32 cid = cp->ethdev->iscsi_l2_cid;
5246 u32 cli = cp->ethdev->iscsi_l2_client_id;
5247 u32 cid = cp->ethdev->iscsi_l2_cid;
5282 struct cnic_eth_dev *ethdev = cp->ethdev;
5285 if (!ethdev)
5288 if (ethdev->drv_state & CNIC_DRV_STATE_REGD)
5291 err = ethdev->drv_register_cnic(dev->netdev, cp->cnic_ops, dev);
5298 dev->max_iscsi_conn = ethdev->max_iscsi_conn;
5299 if (ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)
5308 struct cnic_eth_dev *ethdev = cp->ethdev;
5310 if (!ethdev)
5313 ethdev->drv_unregister_cnic(dev->netdev);
5319 struct cnic_eth_dev *ethdev = cp->ethdev;
5325 dev->regview = ethdev->io_base;
5328 cp->status_blk.gen = ethdev->irq_arr[0].status_blk;
5329 cp->status_blk_num = ethdev->irq_arr[0].status_blk_num;
5352 if (ethdev->drv_state & CNIC_DRV_STATE_HANDLES_IRQ)
5424 cp->ethdev->drv_state &= ~CNIC_DRV_STATE_HANDLES_IRQ;
5463 ret = cp->ethdev->drv_get_fc_npiv_tbl(dev->netdev, npiv_tbl);
5506 struct cnic_eth_dev *ethdev = NULL;
5509 ethdev = (bp->cnic_probe)(dev);
5511 if (!ethdev)
5514 pdev = ethdev->pdev;
5536 cp->ethdev = ethdev;
5538 cp->chip_id = ethdev->chip_id;
5540 cdev->max_iscsi_conn = ethdev->max_iscsi_conn;
5566 struct cnic_eth_dev *ethdev = NULL;
5569 ethdev = bp->cnic_probe(dev);
5571 if (!ethdev)
5574 pdev = ethdev->pdev;
5589 cp->ethdev = ethdev;
5591 cp->chip_id = ethdev->chip_id;
5593 cdev->stats_addr = ethdev->addr_drv_info_to_mcp;
5595 if (!(ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI))
5596 cdev->max_iscsi_conn = ethdev->max_iscsi_conn;
5598 cdev->max_fcoe_conn = ethdev->max_fcoe_conn;
5599 cdev->max_fcoe_exchanges = ethdev->max_fcoe_exchanges;
5605 memcpy(cdev->mac_addr, ethdev->iscsi_mac, ETH_ALEN);