Lines Matching refs:nctrl
472 struct octnic_ctrl_pkt nctrl; in lio_send_queue_count_update() local
475 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in lio_send_queue_count_update()
477 nctrl.ncmd.u64 = 0; in lio_send_queue_count_update()
478 nctrl.ncmd.s.cmd = OCTNET_CMD_QUEUE_COUNT_CTL; in lio_send_queue_count_update()
479 nctrl.ncmd.s.param1 = num_queues; in lio_send_queue_count_update()
480 nctrl.ncmd.s.param2 = num_queues; in lio_send_queue_count_update()
481 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_send_queue_count_update()
482 nctrl.netpndev = (u64)netdev; in lio_send_queue_count_update()
483 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in lio_send_queue_count_update()
485 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in lio_send_queue_count_update()
707 struct octnic_ctrl_pkt nctrl; in octnet_gpio_access() local
710 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in octnet_gpio_access()
712 nctrl.ncmd.u64 = 0; in octnet_gpio_access()
713 nctrl.ncmd.s.cmd = OCTNET_CMD_GPIO_ACCESS; in octnet_gpio_access()
714 nctrl.ncmd.s.param1 = addr; in octnet_gpio_access()
715 nctrl.ncmd.s.param2 = val; in octnet_gpio_access()
716 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_gpio_access()
717 nctrl.netpndev = (u64)netdev; in octnet_gpio_access()
718 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in octnet_gpio_access()
720 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in octnet_gpio_access()
734 struct octnic_ctrl_pkt nctrl; in octnet_id_active() local
737 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in octnet_id_active()
739 nctrl.ncmd.u64 = 0; in octnet_id_active()
740 nctrl.ncmd.s.cmd = OCTNET_CMD_ID_ACTIVE; in octnet_id_active()
741 nctrl.ncmd.s.param1 = val; in octnet_id_active()
742 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_id_active()
743 nctrl.netpndev = (u64)netdev; in octnet_id_active()
744 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in octnet_id_active()
746 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in octnet_id_active()
1373 struct octnic_ctrl_pkt nctrl; in lio_set_pauseparam() local
1391 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in lio_set_pauseparam()
1393 nctrl.ncmd.u64 = 0; in lio_set_pauseparam()
1394 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_FLOW_CTL; in lio_set_pauseparam()
1395 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_set_pauseparam()
1396 nctrl.netpndev = (u64)netdev; in lio_set_pauseparam()
1397 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in lio_set_pauseparam()
1401 nctrl.ncmd.s.param1 = 1; in lio_set_pauseparam()
1404 nctrl.ncmd.s.param1 = 0; in lio_set_pauseparam()
1409 nctrl.ncmd.s.param2 = 1; in lio_set_pauseparam()
1412 nctrl.ncmd.s.param2 = 0; in lio_set_pauseparam()
1415 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in lio_set_pauseparam()