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);
1110 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)
1192 int ctx_blk_size = cp->ethdev->ctx_blk_size;
1200 if (blks > cp->ethdev->ctx_tbl_len)
1240 struct cnic_eth_dev *ethdev = cp->ethdev;
1241 u32 start_cid = ethdev->starting_cid;
1251 cp->fcoe_init_cid = ethdev->fcoe_init_cid;
1312 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)
1315 cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk;
1413 ret = cp->ethdev->drv_submit_kwqes_16(dev->netdev, kwq, 1);
1657 struct cnic_eth_dev *ethdev = cp->ethdev;
1658 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk;
1659 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk;
3176 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX))
3837 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)
4280 cp->ethdev->drv_ctl(dev->netdev, &info);
4418 struct cnic_eth_dev *ethdev = cp->ethdev;
4420 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4423 free_irq(ethdev->irq_arr[0].vector, dev);
4430 struct cnic_eth_dev *ethdev = cp->ethdev;
4433 err = request_irq(ethdev->irq_arr[0].vector, cnic_irq, 0, "cnic", dev);
4443 struct cnic_eth_dev *ethdev = cp->ethdev;
4445 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4502 struct cnic_eth_dev *ethdev = cp->ethdev;
4504 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX))
4514 struct cnic_eth_dev *ethdev = cp->ethdev;
4516 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX))
4522 synchronize_irq(ethdev->irq_arr[0].vector);
4528 struct cnic_eth_dev *ethdev = cp->ethdev;
4540 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4595 struct cnic_eth_dev *ethdev = cp->ethdev;
4608 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4707 struct cnic_eth_dev *ethdev = cp->ethdev;
4791 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
4835 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ;
4843 struct cnic_eth_dev *ethdev = cp->ethdev;
4844 u32 start_offset = ethdev->ctx_tbl_offset;
4864 struct cnic_eth_dev *ethdev = cp->ethdev;
4868 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)
4921 u32 cli = cp->ethdev->iscsi_l2_client_id;
4989 u32 cli = cp->ethdev->iscsi_l2_client_id;
5088 struct cnic_eth_dev *ethdev = cp->ethdev;
5092 dev->stats_addr = ethdev->addr_drv_info_to_mcp;
5111 cp->bnx2x_igu_sb_id = ethdev->irq_arr[0].status_blk_num2;
5155 ethdev->drv_state |= CNIC_DRV_STATE_HANDLES_IRQ;
5173 u32 cli = cp->ethdev->iscsi_l2_client_id;
5174 u32 cid = cp->ethdev->iscsi_l2_cid;
5243 u32 cli = cp->ethdev->iscsi_l2_client_id;
5244 u32 cid = cp->ethdev->iscsi_l2_cid;
5279 struct cnic_eth_dev *ethdev = cp->ethdev;
5282 if (!ethdev)
5285 if (ethdev->drv_state & CNIC_DRV_STATE_REGD)
5288 err = ethdev->drv_register_cnic(dev->netdev, cp->cnic_ops, dev);
5295 dev->max_iscsi_conn = ethdev->max_iscsi_conn;
5296 if (ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)
5305 struct cnic_eth_dev *ethdev = cp->ethdev;
5307 if (!ethdev)
5310 ethdev->drv_unregister_cnic(dev->netdev);
5316 struct cnic_eth_dev *ethdev = cp->ethdev;
5322 dev->regview = ethdev->io_base;
5325 cp->status_blk.gen = ethdev->irq_arr[0].status_blk;
5326 cp->status_blk_num = ethdev->irq_arr[0].status_blk_num;
5349 if (ethdev->drv_state & CNIC_DRV_STATE_HANDLES_IRQ)
5421 cp->ethdev->drv_state &= ~CNIC_DRV_STATE_HANDLES_IRQ;
5460 ret = cp->ethdev->drv_get_fc_npiv_tbl(dev->netdev, npiv_tbl);
5503 struct cnic_eth_dev *ethdev = NULL;
5506 ethdev = (bp->cnic_probe)(dev);
5508 if (!ethdev)
5511 pdev = ethdev->pdev;
5533 cp->ethdev = ethdev;
5535 cp->chip_id = ethdev->chip_id;
5537 cdev->max_iscsi_conn = ethdev->max_iscsi_conn;
5563 struct cnic_eth_dev *ethdev = NULL;
5566 ethdev = bp->cnic_probe(dev);
5568 if (!ethdev)
5571 pdev = ethdev->pdev;
5586 cp->ethdev = ethdev;
5588 cp->chip_id = ethdev->chip_id;
5590 cdev->stats_addr = ethdev->addr_drv_info_to_mcp;
5592 if (!(ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI))
5593 cdev->max_iscsi_conn = ethdev->max_iscsi_conn;
5595 cdev->max_fcoe_conn = ethdev->max_fcoe_conn;
5596 cdev->max_fcoe_exchanges = ethdev->max_fcoe_exchanges;
5602 memcpy(cdev->mac_addr, ethdev->iscsi_mac, ETH_ALEN);