/Linux-v5.10/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_nic.c | 96 struct octnic_ctrl_pkt *nctrl) in octnic_alloc_ctrl_pkt_sc() argument 103 uddsize = (u32)(nctrl->ncmd.s.more * 8); in octnic_alloc_ctrl_pkt_sc() 116 memcpy(data, &nctrl->ncmd, OCTNET_CMD_SIZE); in octnic_alloc_ctrl_pkt_sc() 122 memcpy(data + OCTNET_CMD_SIZE, nctrl->udd, uddsize); in octnic_alloc_ctrl_pkt_sc() 125 sc->iq_no = (u32)nctrl->iq_no; in octnic_alloc_ctrl_pkt_sc() 138 struct octnic_ctrl_pkt *nctrl) in octnet_send_nic_ctrl_pkt() argument 148 (nctrl->ncmd.s.cmd != OCTNET_CMD_RX_CTL)) { in octnet_send_nic_ctrl_pkt() 152 __func__, nctrl->ncmd.s.cmd); in octnet_send_nic_ctrl_pkt() 156 sc = octnic_alloc_ctrl_pkt_sc(oct, nctrl); in octnet_send_nic_ctrl_pkt() 168 __func__, oct->pf_num, nctrl->ncmd.s.cmd, retval); in octnet_send_nic_ctrl_pkt() [all …]
|
D | lio_vf_main.c | 1029 struct octnic_ctrl_pkt nctrl; in liquidio_set_uc_list() local 1043 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_uc_list() 1044 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_UC_LIST; in liquidio_set_uc_list() 1045 nctrl.ncmd.s.more = lio->netdev_uc_count; in liquidio_set_uc_list() 1046 nctrl.ncmd.s.param1 = oct->vf_num; in liquidio_set_uc_list() 1047 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_uc_list() 1048 nctrl.netpndev = (u64)netdev; in liquidio_set_uc_list() 1049 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_uc_list() 1052 mac = &nctrl.udd[0]; in liquidio_set_uc_list() 1058 octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_uc_list() [all …]
|
D | lio_main.c | 1936 struct octnic_ctrl_pkt nctrl; in liquidio_set_mcast_list() local 1942 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mcast_list() 1945 nctrl.ncmd.u64 = 0; in liquidio_set_mcast_list() 1946 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_MULTI_LIST; in liquidio_set_mcast_list() 1947 nctrl.ncmd.s.param1 = get_new_flags(netdev); in liquidio_set_mcast_list() 1948 nctrl.ncmd.s.param2 = mc_count; in liquidio_set_mcast_list() 1949 nctrl.ncmd.s.more = mc_count; in liquidio_set_mcast_list() 1950 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list() 1951 nctrl.netpndev = (u64)netdev; in liquidio_set_mcast_list() 1952 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_mcast_list() [all …]
|
D | lio_core.c | 162 struct octnic_ctrl_pkt nctrl; in liquidio_set_feature() local 165 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_feature() 167 nctrl.ncmd.u64 = 0; in liquidio_set_feature() 168 nctrl.ncmd.s.cmd = cmd; in liquidio_set_feature() 169 nctrl.ncmd.s.param1 = param1; in liquidio_set_feature() 170 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature() 171 nctrl.netpndev = (u64)netdev; in liquidio_set_feature() 172 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_feature() 174 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_feature() 253 struct octnic_ctrl_pkt *nctrl = (struct octnic_ctrl_pkt *)nctrl_ptr; in liquidio_link_ctrl_cmd_completion() local [all …]
|
D | lio_ethtool.c | 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() [all …]
|
D | octeon_nic.h | 64 #define MAX_UDD_SIZE(nctrl) (sizeof((nctrl)->udd)) argument 286 struct octnic_ctrl_pkt *nctrl);
|
/Linux-v5.10/drivers/nvme/host/ |
D | tcp.c | 1199 static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_free_queue() argument 1201 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_free_queue() 1366 static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, in nvme_tcp_alloc_queue() argument 1369 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_alloc_queue() 1381 queue->cmnd_capsule_len = nctrl->ioccsz * 16; in nvme_tcp_alloc_queue() 1389 dev_err(nctrl->device, in nvme_tcp_alloc_queue() 1411 if (nctrl->opts->tos >= 0) in nvme_tcp_alloc_queue() 1412 ip_sock_set_tos(queue->sock->sk, nctrl->opts->tos); in nvme_tcp_alloc_queue() 1426 if (nctrl->opts->mask & NVMF_OPT_HOST_TRADDR) { in nvme_tcp_alloc_queue() 1430 dev_err(nctrl->device, in nvme_tcp_alloc_queue() [all …]
|
D | rdma.c | 782 static struct blk_mq_tag_set *nvme_rdma_alloc_tagset(struct nvme_ctrl *nctrl, in nvme_rdma_alloc_tagset() argument 785 struct nvme_rdma_ctrl *ctrl = to_rdma_ctrl(nctrl); in nvme_rdma_alloc_tagset() 795 set->numa_node = nctrl->numa_node; in nvme_rdma_alloc_tagset() 806 set->queue_depth = nctrl->sqsize + 1; in nvme_rdma_alloc_tagset() 808 set->numa_node = nctrl->numa_node; in nvme_rdma_alloc_tagset() 812 if (nctrl->max_integrity_segments) in nvme_rdma_alloc_tagset() 816 set->nr_hw_queues = nctrl->queue_count - 1; in nvme_rdma_alloc_tagset() 818 set->nr_maps = nctrl->opts->nr_poll_queues ? HCTX_MAX_TYPES : 2; in nvme_rdma_alloc_tagset() 1044 static void nvme_rdma_free_ctrl(struct nvme_ctrl *nctrl) in nvme_rdma_free_ctrl() argument 1046 struct nvme_rdma_ctrl *ctrl = to_rdma_ctrl(nctrl); in nvme_rdma_free_ctrl() [all …]
|
D | fc.c | 2407 nvme_fc_nvme_ctrl_freed(struct nvme_ctrl *nctrl) in nvme_fc_nvme_ctrl_freed() argument 2409 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); in nvme_fc_nvme_ctrl_freed() 2411 WARN_ON(nctrl != &ctrl->ctrl); in nvme_fc_nvme_ctrl_freed() 2432 struct nvme_ctrl *nctrl = data; in nvme_fc_terminate_exchange() local 2433 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); in nvme_fc_terminate_exchange() 3232 nvme_fc_delete_ctrl(struct nvme_ctrl *nctrl) in nvme_fc_delete_ctrl() argument 3234 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); in nvme_fc_delete_ctrl()
|
/Linux-v5.10/drivers/mtd/nand/raw/ |
D | fsl_ifc_nand.c | 177 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()
|
/Linux-v5.10/drivers/nvme/target/ |
D | loop.c | 261 static void nvme_loop_free_ctrl(struct nvme_ctrl *nctrl) in nvme_loop_free_ctrl() argument 263 struct nvme_loop_ctrl *ctrl = to_loop_ctrl(nctrl); in nvme_loop_free_ctrl() 272 if (nctrl->tagset) { in nvme_loop_free_ctrl() 277 nvmf_free_options(nctrl->opts); in nvme_loop_free_ctrl() 431 static void nvme_loop_delete_ctrl(struct nvmet_ctrl *nctrl) in nvme_loop_delete_ctrl() argument 437 if (ctrl->ctrl.cntlid == nctrl->cntlid) in nvme_loop_delete_ctrl()
|