Lines Matching refs:nctrl
471 struct octnic_ctrl_pkt nctrl; in lio_send_queue_count_update() local
474 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in lio_send_queue_count_update()
476 nctrl.ncmd.u64 = 0; in lio_send_queue_count_update()
477 nctrl.ncmd.s.cmd = OCTNET_CMD_QUEUE_COUNT_CTL; in lio_send_queue_count_update()
478 nctrl.ncmd.s.param1 = num_queues; in lio_send_queue_count_update()
479 nctrl.ncmd.s.param2 = num_queues; in lio_send_queue_count_update()
480 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_send_queue_count_update()
481 nctrl.netpndev = (u64)netdev; in lio_send_queue_count_update()
482 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in lio_send_queue_count_update()
484 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in lio_send_queue_count_update()
706 struct octnic_ctrl_pkt nctrl; in octnet_gpio_access() local
709 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in octnet_gpio_access()
711 nctrl.ncmd.u64 = 0; in octnet_gpio_access()
712 nctrl.ncmd.s.cmd = OCTNET_CMD_GPIO_ACCESS; in octnet_gpio_access()
713 nctrl.ncmd.s.param1 = addr; in octnet_gpio_access()
714 nctrl.ncmd.s.param2 = val; in octnet_gpio_access()
715 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_gpio_access()
716 nctrl.netpndev = (u64)netdev; in octnet_gpio_access()
717 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in octnet_gpio_access()
719 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in octnet_gpio_access()
733 struct octnic_ctrl_pkt nctrl; in octnet_id_active() local
736 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in octnet_id_active()
738 nctrl.ncmd.u64 = 0; in octnet_id_active()
739 nctrl.ncmd.s.cmd = OCTNET_CMD_ID_ACTIVE; in octnet_id_active()
740 nctrl.ncmd.s.param1 = val; in octnet_id_active()
741 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_id_active()
742 nctrl.netpndev = (u64)netdev; in octnet_id_active()
743 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in octnet_id_active()
745 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in octnet_id_active()
1367 struct octnic_ctrl_pkt nctrl; in lio_set_pauseparam() local
1385 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in lio_set_pauseparam()
1387 nctrl.ncmd.u64 = 0; in lio_set_pauseparam()
1388 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_FLOW_CTL; in lio_set_pauseparam()
1389 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_set_pauseparam()
1390 nctrl.netpndev = (u64)netdev; in lio_set_pauseparam()
1391 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in lio_set_pauseparam()
1395 nctrl.ncmd.s.param1 = 1; in lio_set_pauseparam()
1398 nctrl.ncmd.s.param1 = 0; in lio_set_pauseparam()
1403 nctrl.ncmd.s.param2 = 1; in lio_set_pauseparam()
1406 nctrl.ncmd.s.param2 = 0; in lio_set_pauseparam()
1409 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in lio_set_pauseparam()