/drivers/net/ethernet/cavium/liquidio/ |
D | lio_vf_main.c | 264 struct lio *lio = GET_LIO(netdev); in print_link_info() local 266 if (!ifstate_check(lio, LIO_IFSTATE_RESETTING) && in print_link_info() 267 ifstate_check(lio, LIO_IFSTATE_REGISTERED)) { in print_link_info() 268 struct oct_link_info *linfo = &lio->linfo; in print_link_info() 271 netif_info(lio, link, lio->netdev, "%d Mbps %s Duplex UP\n", in print_link_info() 275 netif_info(lio, link, lio->netdev, "Link Down\n"); in print_link_info() 287 struct lio *lio = (struct lio *)wk->ctxptr; in octnet_link_status_change() local 294 dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu); in octnet_link_status_change() 304 struct lio *lio = GET_LIO(netdev); in setup_link_status_change_wq() local 305 struct octeon_device *oct = lio->oct_dev; in setup_link_status_change_wq() [all …]
|
D | lio_main.c | 468 static inline int check_txq_status(struct lio *lio) in check_txq_status() argument 470 int numqs = lio->netdev->real_num_tx_queues; in check_txq_status() 476 iq = lio->linfo.txpciq[q % in check_txq_status() 477 lio->oct_dev->num_iqs].s.q_no; in check_txq_status() 478 if (octnet_iq_is_full(lio->oct_dev, iq)) in check_txq_status() 480 if (__netif_subqueue_stopped(lio->netdev, q)) { in check_txq_status() 481 netif_wake_subqueue(lio->netdev, q); in check_txq_status() 482 INCR_INSTRQUEUE_PKT_COUNT(lio->oct_dev, iq, in check_txq_status() 497 struct lio *lio = GET_LIO(netdev); in print_link_info() local 499 if (!ifstate_check(lio, LIO_IFSTATE_RESETTING) && in print_link_info() [all …]
|
D | lio_core.c | 38 void lio_delete_glists(struct lio *lio) in lio_delete_glists() argument 43 kfree(lio->glist_lock); in lio_delete_glists() 44 lio->glist_lock = NULL; in lio_delete_glists() 46 if (!lio->glist) in lio_delete_glists() 49 for (i = 0; i < lio->oct_dev->num_iqs; i++) { in lio_delete_glists() 52 lio_list_delete_head(&lio->glist[i]); in lio_delete_glists() 56 if (lio->glists_virt_base && lio->glists_virt_base[i] && in lio_delete_glists() 57 lio->glists_dma_base && lio->glists_dma_base[i]) { in lio_delete_glists() 58 lio_dma_free(lio->oct_dev, in lio_delete_glists() 59 lio->glist_entry_size * lio->tx_qsize, in lio_delete_glists() [all …]
|
D | lio_ethtool.c | 218 struct lio *lio = GET_LIO(netdev); in lio_get_link_ksettings() local 219 struct octeon_device *oct = lio->oct_dev; in lio_get_link_ksettings() 222 linfo = &lio->linfo; in lio_get_link_ksettings() 283 liquidio_get_speed(lio); in lio_get_link_ksettings() 284 liquidio_get_fec(lio); in lio_get_link_ksettings() 320 if (oct->props[lio->ifidx].fec == 1) { in lio_get_link_ksettings() 398 struct lio *lio = GET_LIO(netdev); in lio_set_link_ksettings() local 402 oct = lio->oct_dev; in lio_set_link_ksettings() 404 linfo = &lio->linfo; in lio_set_link_ksettings() 427 liquidio_set_speed(lio, speed / 1000); in lio_set_link_ksettings() [all …]
|
D | octeon_network.h | 95 struct lio { struct 191 #define LIO_SIZE (sizeof(struct lio)) argument 192 #define GET_LIO(netdev) ((struct lio *)netdev_priv(netdev)) 236 void lio_delete_glists(struct lio *lio); 238 int lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_qs); 240 int liquidio_get_speed(struct lio *lio); 241 int liquidio_set_speed(struct lio *lio, int speed); 242 int liquidio_get_fec(struct lio *lio); 243 int liquidio_set_fec(struct lio *lio, int on_off); 504 static inline int ifstate_check(struct lio *lio, int state_flag) in ifstate_check() argument [all …]
|
D | octeon_main.h | 51 struct lio *lio; member
|
D | lio_vf_rep.c | 377 struct lio *parent_lio; in lio_vf_rep_pkt_xmit() 453 struct lio *lio = GET_LIO(parent_ndev); in lio_vf_get_port_parent_id() local 456 ether_addr_copy(ppid->id, (void *)&lio->linfo.hw_addr + 2); in lio_vf_get_port_parent_id()
|
/drivers/scsi/qla2xxx/ |
D | qla_init.c | 230 struct srb_iocb *lio = &sp->u.iocb_cmd; in qla2x00_async_iocb_timeout() local 250 lio->u.logio.data[0] = MBS_COMMAND_ERROR; in qla2x00_async_iocb_timeout() 251 lio->u.logio.data[1] = in qla2x00_async_iocb_timeout() 252 lio->u.logio.flags & SRB_LOGIN_RETRIED ? in qla2x00_async_iocb_timeout() 298 struct srb_iocb *lio = &sp->u.iocb_cmd; in qla2x00_async_login_sp_done() local 309 ea.data[0] = lio->u.logio.data[0]; in qla2x00_async_login_sp_done() 310 ea.data[1] = lio->u.logio.data[1]; in qla2x00_async_login_sp_done() 311 ea.iop[0] = lio->u.logio.iop[0]; in qla2x00_async_login_sp_done() 312 ea.iop[1] = lio->u.logio.iop[1]; in qla2x00_async_login_sp_done() 328 struct srb_iocb *lio; in qla2x00_async_login() local [all …]
|
D | qla_iocb.c | 2386 struct srb_iocb *lio = &sp->u.iocb_cmd; in qla24xx_prli_iocb() local 2390 if (lio->u.logio.flags & SRB_LOGIN_NVME_PRLI) { in qla24xx_prli_iocb() 2418 struct srb_iocb *lio = &sp->u.iocb_cmd; in qla24xx_login_iocb() local 2423 if (lio->u.logio.flags & SRB_LOGIN_PRLI_ONLY) { in qla24xx_login_iocb() 2427 if (lio->u.logio.flags & SRB_LOGIN_COND_PLOGI) in qla24xx_login_iocb() 2429 if (lio->u.logio.flags & SRB_LOGIN_SKIP_PRLI) in qla24xx_login_iocb() 2431 if (lio->u.logio.flags & SRB_LOGIN_FCSP) { in qla24xx_login_iocb() 2449 struct srb_iocb *lio = &sp->u.iocb_cmd; in qla2x00_login_iocb() local 2455 opts = lio->u.logio.flags & SRB_LOGIN_COND_PLOGI ? BIT_0 : 0; in qla2x00_login_iocb() 2456 opts |= lio->u.logio.flags & SRB_LOGIN_SKIP_PRLI ? BIT_1 : 0; in qla2x00_login_iocb() [all …]
|
D | qla_isr.c | 1917 struct srb_iocb *lio; in qla2x00_mbx_iocb_entry() local 1925 lio = &sp->u.iocb_cmd; in qla2x00_mbx_iocb_entry() 1928 data = lio->u.logio.data; in qla2x00_mbx_iocb_entry() 1931 data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ? in qla2x00_mbx_iocb_entry() 2331 struct srb_iocb *lio; in qla24xx_logio_entry() local 2340 lio = &sp->u.iocb_cmd; in qla24xx_logio_entry() 2343 data = lio->u.logio.data; in qla24xx_logio_entry() 2346 data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ? in qla24xx_logio_entry() 2371 lio->u.logio.iop[0] = in qla24xx_logio_entry() 2373 lio->u.logio.iop[1] = in qla24xx_logio_entry() [all …]
|
D | qla_mr.c | 1767 struct srb_iocb *lio = &sp->u.iocb_cmd; in qla2x00_fxdisc_iocb_timeout() local 1769 complete(&lio->u.fxiocb.fxiocb_comp); in qla2x00_fxdisc_iocb_timeout() 1774 struct srb_iocb *lio = &sp->u.iocb_cmd; in qla2x00_fxdisc_sp_done() local 1776 complete(&lio->u.fxiocb.fxiocb_comp); in qla2x00_fxdisc_sp_done()
|