Home
last modified time | relevance | path

Searched refs:nctrl (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_nic.c98 struct octnic_ctrl_pkt *nctrl) in octnic_alloc_ctrl_pkt_sc() argument
105 uddsize = (u32)(nctrl->ncmd.s.more * 8); in octnic_alloc_ctrl_pkt_sc()
118 memcpy(data, &nctrl->ncmd, OCTNET_CMD_SIZE); in octnic_alloc_ctrl_pkt_sc()
124 memcpy(data + OCTNET_CMD_SIZE, nctrl->udd, uddsize); in octnic_alloc_ctrl_pkt_sc()
127 sc->iq_no = (u32)nctrl->iq_no; in octnic_alloc_ctrl_pkt_sc()
140 struct octnic_ctrl_pkt *nctrl) in octnet_send_nic_ctrl_pkt() argument
150 (nctrl->ncmd.s.cmd != OCTNET_CMD_RX_CTL)) { in octnet_send_nic_ctrl_pkt()
154 __func__, nctrl->ncmd.s.cmd); in octnet_send_nic_ctrl_pkt()
158 sc = octnic_alloc_ctrl_pkt_sc(oct, nctrl); in octnet_send_nic_ctrl_pkt()
170 __func__, oct->pf_num, nctrl->ncmd.s.cmd, retval); in octnet_send_nic_ctrl_pkt()
[all …]
H A Dlio_vf_main.c1036 struct octnic_ctrl_pkt nctrl; in liquidio_set_uc_list() local
1050 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_uc_list()
1051 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_UC_LIST; in liquidio_set_uc_list()
1052 nctrl.ncmd.s.more = lio->netdev_uc_count; in liquidio_set_uc_list()
1053 nctrl.ncmd.s.param1 = oct->vf_num; in liquidio_set_uc_list()
1054 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_uc_list()
1055 nctrl.netpndev = (u64)netdev; in liquidio_set_uc_list()
1056 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_uc_list()
1059 mac = &nctrl.udd[0]; in liquidio_set_uc_list()
1065 octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_uc_list()
[all …]
H A Dlio_main.c1954 struct octnic_ctrl_pkt nctrl; in liquidio_set_mcast_list() local
1960 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mcast_list()
1963 nctrl.ncmd.u64 = 0; in liquidio_set_mcast_list()
1964 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_MULTI_LIST; in liquidio_set_mcast_list()
1965 nctrl.ncmd.s.param1 = get_new_flags(netdev); in liquidio_set_mcast_list()
1966 nctrl.ncmd.s.param2 = mc_count; in liquidio_set_mcast_list()
1967 nctrl.ncmd.s.more = mc_count; in liquidio_set_mcast_list()
1968 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
1969 nctrl.netpndev = (u64)netdev; in liquidio_set_mcast_list()
1970 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_mcast_list()
[all …]
H A Dlio_core.c167 struct octnic_ctrl_pkt nctrl; in liquidio_set_feature() local
170 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_feature()
172 nctrl.ncmd.u64 = 0; in liquidio_set_feature()
173 nctrl.ncmd.s.cmd = cmd; in liquidio_set_feature()
174 nctrl.ncmd.s.param1 = param1; in liquidio_set_feature()
175 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature()
176 nctrl.netpndev = (u64)netdev; in liquidio_set_feature()
177 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_feature()
179 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_feature()
259 struct octnic_ctrl_pkt *nctrl = (struct octnic_ctrl_pkt *)nctrl_ptr; in liquidio_link_ctrl_cmd_completion() local
[all …]
H A Dlio_ethtool.c472 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()
[all …]
H A Docteon_nic.h64 #define MAX_UDD_SIZE(nctrl) (sizeof((nctrl)->udd)) argument
286 struct octnic_ctrl_pkt *nctrl);
/openbmc/linux/drivers/nvme/host/
H A Dtcp.c1321 static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_free_queue() argument
1324 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_free_queue()
1510 static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_alloc_queue() argument
1512 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_alloc_queue()
1524 queue->cmnd_capsule_len = nctrl->ioccsz * 16; in nvme_tcp_alloc_queue()
1532 dev_err(nctrl->device, in nvme_tcp_alloc_queue()
1556 if (nctrl->opts->tos >= 0) in nvme_tcp_alloc_queue()
1557 ip_sock_set_tos(queue->sock->sk, nctrl->opts->tos); in nvme_tcp_alloc_queue()
1572 if (nctrl->opts->mask & NVMF_OPT_HOST_TRADDR) { in nvme_tcp_alloc_queue()
1576 dev_err(nctrl->device, in nvme_tcp_alloc_queue()
[all …]
H A Dfc.c2431 nvme_fc_nvme_ctrl_freed(struct nvme_ctrl *nctrl) in nvme_fc_nvme_ctrl_freed() argument
2433 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); in nvme_fc_nvme_ctrl_freed()
2435 WARN_ON(nctrl != &ctrl->ctrl); in nvme_fc_nvme_ctrl_freed()
2455 struct nvme_ctrl *nctrl = data; in nvme_fc_terminate_exchange() local
2456 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); in nvme_fc_terminate_exchange()
3280 nvme_fc_delete_ctrl(struct nvme_ctrl *nctrl) in nvme_fc_delete_ctrl() argument
3282 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); in nvme_fc_delete_ctrl()
H A Drdma.c960 static void nvme_rdma_stop_ctrl(struct nvme_ctrl *nctrl) in nvme_rdma_stop_ctrl() argument
962 struct nvme_rdma_ctrl *ctrl = to_rdma_ctrl(nctrl); in nvme_rdma_stop_ctrl()
968 static void nvme_rdma_free_ctrl(struct nvme_ctrl *nctrl) in nvme_rdma_free_ctrl() argument
970 struct nvme_rdma_ctrl *ctrl = to_rdma_ctrl(nctrl); in nvme_rdma_free_ctrl()
979 nvmf_free_options(nctrl->opts); in nvme_rdma_free_ctrl()
/openbmc/linux/drivers/nvme/target/
H A Dloop.c279 static void nvme_loop_free_ctrl(struct nvme_ctrl *nctrl) in nvme_loop_free_ctrl() argument
281 struct nvme_loop_ctrl *ctrl = to_loop_ctrl(nctrl); in nvme_loop_free_ctrl()
290 if (nctrl->tagset) in nvme_loop_free_ctrl()
291 nvme_remove_io_tag_set(nctrl); in nvme_loop_free_ctrl()
293 nvmf_free_options(nctrl->opts); in nvme_loop_free_ctrl()
428 static void nvme_loop_delete_ctrl(struct nvmet_ctrl *nctrl) in nvme_loop_delete_ctrl() argument
434 if (ctrl->ctrl.cntlid == nctrl->cntlid) in nvme_loop_delete_ctrl()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dfsl_ifc_nand.c177 struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; in fsl_ifc_run_command() local
209 nctrl->max_bitflips = 0; in fsl_ifc_run_command()
211 if (nctrl->eccread) { in fsl_ifc_run_command()
213 int bufnum = nctrl->page & priv->bufnum_mask; in fsl_ifc_run_command()
241 nctrl->max_bitflips = max_t(unsigned int, in fsl_ifc_run_command()
242 nctrl->max_bitflips, in fsl_ifc_run_command()
246 nctrl->eccread = 0; in fsl_ifc_run_command()
673 struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; in fsl_ifc_read_page() local
689 return nctrl->max_bitflips; in fsl_ifc_read_page()