nctrl 177 drivers/mtd/nand/raw/fsl_ifc_nand.c struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; nctrl 209 drivers/mtd/nand/raw/fsl_ifc_nand.c nctrl->max_bitflips = 0; nctrl 211 drivers/mtd/nand/raw/fsl_ifc_nand.c if (nctrl->eccread) { nctrl 213 drivers/mtd/nand/raw/fsl_ifc_nand.c int bufnum = nctrl->page & priv->bufnum_mask; nctrl 241 drivers/mtd/nand/raw/fsl_ifc_nand.c nctrl->max_bitflips = max_t(unsigned int, nctrl 242 drivers/mtd/nand/raw/fsl_ifc_nand.c nctrl->max_bitflips, nctrl 246 drivers/mtd/nand/raw/fsl_ifc_nand.c nctrl->eccread = 0; nctrl 673 drivers/mtd/nand/raw/fsl_ifc_nand.c struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; nctrl 689 drivers/mtd/nand/raw/fsl_ifc_nand.c return nctrl->max_bitflips; nctrl 160 drivers/net/ethernet/cavium/liquidio/lio_core.c struct octnic_ctrl_pkt nctrl; nctrl 163 drivers/net/ethernet/cavium/liquidio/lio_core.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 165 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl.ncmd.u64 = 0; nctrl 166 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl.ncmd.s.cmd = cmd; nctrl 167 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl.ncmd.s.param1 = param1; nctrl 168 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 169 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl.netpndev = (u64)netdev; nctrl 170 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 172 drivers/net/ethernet/cavium/liquidio/lio_core.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 251 drivers/net/ethernet/cavium/liquidio/lio_core.c struct octnic_ctrl_pkt *nctrl = (struct octnic_ctrl_pkt *)nctrl_ptr; nctrl 252 drivers/net/ethernet/cavium/liquidio/lio_core.c struct net_device *netdev = (struct net_device *)nctrl->netpndev; nctrl 257 drivers/net/ethernet/cavium/liquidio/lio_core.c if (nctrl->sc_status) nctrl 260 drivers/net/ethernet/cavium/liquidio/lio_core.c switch (nctrl->ncmd.s.cmd) { nctrl 267 drivers/net/ethernet/cavium/liquidio/lio_core.c mac = ((u8 *)&nctrl->udd[0]) + 2; nctrl 268 drivers/net/ethernet/cavium/liquidio/lio_core.c if (nctrl->ncmd.s.param1) { nctrl 270 drivers/net/ethernet/cavium/liquidio/lio_core.c int vfidx = nctrl->ncmd.s.param1 - 1; nctrl 271 drivers/net/ethernet/cavium/liquidio/lio_core.c bool mac_is_admin_assigned = nctrl->ncmd.s.param2; nctrl 314 drivers/net/ethernet/cavium/liquidio/lio_core.c if (nctrl->ncmd.s.param1) nctrl 324 drivers/net/ethernet/cavium/liquidio/lio_core.c netdev->name, nctrl->ncmd.s.param1); nctrl 329 drivers/net/ethernet/cavium/liquidio/lio_core.c netdev->name, nctrl->ncmd.s.param1); nctrl 342 drivers/net/ethernet/cavium/liquidio/lio_core.c if (nctrl->ncmd.s.param1 == OCTNET_CMD_RXCSUM_ENABLE) { nctrl 345 drivers/net/ethernet/cavium/liquidio/lio_core.c } else if (nctrl->ncmd.s.param1 == nctrl 356 drivers/net/ethernet/cavium/liquidio/lio_core.c if (nctrl->ncmd.s.param1 == OCTNET_CMD_TXCSUM_ENABLE) { nctrl 359 drivers/net/ethernet/cavium/liquidio/lio_core.c } else if (nctrl->ncmd.s.param1 == nctrl 370 drivers/net/ethernet/cavium/liquidio/lio_core.c if (nctrl->ncmd.s.more == OCTNET_CMD_VXLAN_PORT_ADD) { nctrl 373 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl->ncmd.s.param1); nctrl 374 drivers/net/ethernet/cavium/liquidio/lio_core.c } else if (nctrl->ncmd.s.more == nctrl 378 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl->ncmd.s.param1); nctrl 388 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl->ncmd.s.param1); nctrl 393 drivers/net/ethernet/cavium/liquidio/lio_core.c nctrl->ncmd.s.cmd); nctrl 473 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c struct octnic_ctrl_pkt nctrl; nctrl 476 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 478 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.u64 = 0; nctrl 479 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.cmd = OCTNET_CMD_QUEUE_COUNT_CTL; nctrl 480 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param1 = num_queues; nctrl 481 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param2 = num_queues; nctrl 482 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 483 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.netpndev = (u64)netdev; nctrl 484 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 486 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 708 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c struct octnic_ctrl_pkt nctrl; nctrl 711 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 713 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.u64 = 0; nctrl 714 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.cmd = OCTNET_CMD_GPIO_ACCESS; nctrl 715 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param1 = addr; nctrl 716 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param2 = val; nctrl 717 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 718 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.netpndev = (u64)netdev; nctrl 719 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 721 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 735 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c struct octnic_ctrl_pkt nctrl; nctrl 738 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 740 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.u64 = 0; nctrl 741 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.cmd = OCTNET_CMD_ID_ACTIVE; nctrl 742 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param1 = val; nctrl 743 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 744 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.netpndev = (u64)netdev; nctrl 745 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 747 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1369 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c struct octnic_ctrl_pkt nctrl; nctrl 1387 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1389 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.u64 = 0; nctrl 1390 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.cmd = OCTNET_CMD_SET_FLOW_CTL; nctrl 1391 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1392 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.netpndev = (u64)netdev; nctrl 1393 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1397 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param1 = 1; nctrl 1400 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param1 = 0; nctrl 1405 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param2 = 1; nctrl 1408 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c nctrl.ncmd.s.param2 = 0; nctrl 1411 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1974 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 1980 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1983 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.u64 = 0; nctrl 1984 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_SET_MULTI_LIST; nctrl 1985 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = get_new_flags(netdev); nctrl 1986 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param2 = mc_count; nctrl 1987 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.more = mc_count; nctrl 1988 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1989 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.netpndev = (u64)netdev; nctrl 1990 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1993 drivers/net/ethernet/cavium/liquidio/lio_main.c mc = &nctrl.udd[0]; nctrl 1999 drivers/net/ethernet/cavium/liquidio/lio_main.c if (++mc > &nctrl.udd[mc_count]) nctrl 2007 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 2024 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2029 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2031 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.u64 = 0; nctrl 2032 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; nctrl 2033 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = 0; nctrl 2034 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.more = 1; nctrl 2035 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2036 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.netpndev = (u64)netdev; nctrl 2038 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.udd[0] = 0; nctrl 2040 drivers/net/ethernet/cavium/liquidio/lio_main.c memcpy((u8 *)&nctrl.udd[0] + 2, addr->sa_data, ETH_ALEN); nctrl 2042 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 2048 drivers/net/ethernet/cavium/liquidio/lio_main.c if (nctrl.sc_status) { nctrl 2051 drivers/net/ethernet/cavium/liquidio/lio_main.c __func__, nctrl.sc_status); nctrl 2584 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2587 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2589 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.u64 = 0; nctrl 2590 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; nctrl 2591 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = vid; nctrl 2592 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2593 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.netpndev = (u64)netdev; nctrl 2594 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 2596 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 2613 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2616 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2618 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.u64 = 0; nctrl 2619 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; nctrl 2620 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = vid; nctrl 2621 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2622 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.netpndev = (u64)netdev; nctrl 2623 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 2625 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 2647 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2650 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2652 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.u64 = 0; nctrl 2653 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = command; nctrl 2654 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = rx_cmd; nctrl 2655 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2656 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.netpndev = (u64)netdev; nctrl 2657 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 2659 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 2683 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2686 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2688 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.u64 = 0; nctrl 2689 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = command; nctrl 2690 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.more = vxlan_cmd_bit; nctrl 2691 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = vxlan_port; nctrl 2692 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2693 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.netpndev = (u64)netdev; nctrl 2694 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 2696 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 2824 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2833 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2835 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.u64 = 0; nctrl 2836 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; nctrl 2838 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = vfidx + 1; nctrl 2839 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.more = 1; nctrl 2840 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2841 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.netpndev = (u64)netdev; nctrl 2843 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param2 = true; nctrl 2844 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 2847 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.udd[0] = 0; nctrl 2849 drivers/net/ethernet/cavium/liquidio/lio_main.c ether_addr_copy((u8 *)&nctrl.udd[0] + 2, mac); nctrl 2851 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; nctrl 2853 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); nctrl 2881 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2904 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2905 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmdgroup = OCTNET_CMD_GROUP1; nctrl 2906 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_SPOOFCHK; nctrl 2907 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = nctrl 2911 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param2 = enable; nctrl 2912 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.more = 0; nctrl 2913 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2914 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = NULL; nctrl 2916 drivers/net/ethernet/cavium/liquidio/lio_main.c retval = octnet_send_nic_ctrl_pkt(oct, &nctrl); nctrl 2937 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 2958 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 2961 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; nctrl 2963 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; nctrl 2965 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = vlantci; nctrl 2966 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param2 = nctrl 2968 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.more = 0; nctrl 2969 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 2970 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = NULL; nctrl 2972 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); nctrl 3107 drivers/net/ethernet/cavium/liquidio/lio_main.c struct octnic_ctrl_pkt nctrl; nctrl 3116 drivers/net/ethernet/cavium/liquidio/lio_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 3117 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_LINKSTATE; nctrl 3118 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param1 = nctrl 3120 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.param2 = linkstate; nctrl 3121 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.ncmd.s.more = 0; nctrl 3122 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 3123 drivers/net/ethernet/cavium/liquidio/lio_main.c nctrl.cb_fn = NULL; nctrl 3125 drivers/net/ethernet/cavium/liquidio/lio_main.c ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); nctrl 1032 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct octnic_ctrl_pkt nctrl; nctrl 1046 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1047 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_SET_UC_LIST; nctrl 1048 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.more = lio->netdev_uc_count; nctrl 1049 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param1 = oct->vf_num; nctrl 1050 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1051 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.netpndev = (u64)netdev; nctrl 1052 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1055 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c mac = &nctrl.udd[0]; nctrl 1061 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1073 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct octnic_ctrl_pkt nctrl; nctrl 1078 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1081 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.u64 = 0; nctrl 1082 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_SET_MULTI_LIST; nctrl 1083 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param1 = get_new_flags(netdev); nctrl 1084 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param2 = mc_count; nctrl 1085 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.more = mc_count; nctrl 1086 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.netpndev = (u64)netdev; nctrl 1087 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1090 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c mc = &nctrl.udd[0]; nctrl 1095 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if (++mc > &nctrl.udd[mc_count]) nctrl 1099 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1105 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1123 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct octnic_ctrl_pkt nctrl; nctrl 1135 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1137 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.u64 = 0; nctrl 1138 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; nctrl 1139 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param1 = 0; nctrl 1140 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.more = 1; nctrl 1141 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1142 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.netpndev = (u64)netdev; nctrl 1144 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.udd[0] = 0; nctrl 1146 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ether_addr_copy((u8 *)&nctrl.udd[0] + 2, addr->sa_data); nctrl 1148 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1154 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if (nctrl.sc_status == nctrl 1650 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct octnic_ctrl_pkt nctrl; nctrl 1653 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1655 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.u64 = 0; nctrl 1656 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; nctrl 1657 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param1 = vid; nctrl 1658 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1659 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.netpndev = (u64)netdev; nctrl 1660 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1662 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1678 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct octnic_ctrl_pkt nctrl; nctrl 1681 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1683 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.u64 = 0; nctrl 1684 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; nctrl 1685 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param1 = vid; nctrl 1686 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1687 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.netpndev = (u64)netdev; nctrl 1688 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1690 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1712 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct octnic_ctrl_pkt nctrl; nctrl 1715 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1717 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.u64 = 0; nctrl 1718 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.cmd = command; nctrl 1719 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param1 = rx_cmd; nctrl 1720 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1721 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.netpndev = (u64)netdev; nctrl 1722 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1724 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 1747 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct octnic_ctrl_pkt nctrl; nctrl 1750 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); nctrl 1752 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.u64 = 0; nctrl 1753 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.cmd = command; nctrl 1754 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.more = vxlan_cmd_bit; nctrl 1755 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.ncmd.s.param1 = vxlan_port; nctrl 1756 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; nctrl 1757 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.netpndev = (u64)netdev; nctrl 1758 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; nctrl 1760 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); nctrl 96 drivers/net/ethernet/cavium/liquidio/octeon_nic.c struct octnic_ctrl_pkt *nctrl) nctrl 103 drivers/net/ethernet/cavium/liquidio/octeon_nic.c uddsize = (u32)(nctrl->ncmd.s.more * 8); nctrl 116 drivers/net/ethernet/cavium/liquidio/octeon_nic.c memcpy(data, &nctrl->ncmd, OCTNET_CMD_SIZE); nctrl 122 drivers/net/ethernet/cavium/liquidio/octeon_nic.c memcpy(data + OCTNET_CMD_SIZE, nctrl->udd, uddsize); nctrl 125 drivers/net/ethernet/cavium/liquidio/octeon_nic.c sc->iq_no = (u32)nctrl->iq_no; nctrl 138 drivers/net/ethernet/cavium/liquidio/octeon_nic.c struct octnic_ctrl_pkt *nctrl) nctrl 148 drivers/net/ethernet/cavium/liquidio/octeon_nic.c (nctrl->ncmd.s.cmd != OCTNET_CMD_RX_CTL)) { nctrl 152 drivers/net/ethernet/cavium/liquidio/octeon_nic.c __func__, nctrl->ncmd.s.cmd); nctrl 156 drivers/net/ethernet/cavium/liquidio/octeon_nic.c sc = octnic_alloc_ctrl_pkt_sc(oct, nctrl); nctrl 168 drivers/net/ethernet/cavium/liquidio/octeon_nic.c __func__, oct->pf_num, nctrl->ncmd.s.cmd, retval); nctrl 175 drivers/net/ethernet/cavium/liquidio/octeon_nic.c if (nctrl->ncmd.s.cmdgroup == 0) { nctrl 176 drivers/net/ethernet/cavium/liquidio/octeon_nic.c switch (nctrl->ncmd.s.cmd) { nctrl 190 drivers/net/ethernet/cavium/liquidio/octeon_nic.c nctrl->sc_status = sc->sc_status; nctrl 191 drivers/net/ethernet/cavium/liquidio/octeon_nic.c retval = nctrl->sc_status; nctrl 192 drivers/net/ethernet/cavium/liquidio/octeon_nic.c if (nctrl->cb_fn) nctrl 193 drivers/net/ethernet/cavium/liquidio/octeon_nic.c nctrl->cb_fn(nctrl); nctrl 64 drivers/net/ethernet/cavium/liquidio/octeon_nic.h #define MAX_UDD_SIZE(nctrl) (sizeof((nctrl)->udd)) nctrl 286 drivers/net/ethernet/cavium/liquidio/octeon_nic.h struct octnic_ctrl_pkt *nctrl); nctrl 2063 drivers/nvme/host/fc.c nvme_fc_nvme_ctrl_freed(struct nvme_ctrl *nctrl) nctrl 2065 drivers/nvme/host/fc.c struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); nctrl 2067 drivers/nvme/host/fc.c WARN_ON(nctrl != &ctrl->ctrl); nctrl 2420 drivers/nvme/host/fc.c struct nvme_ctrl *nctrl = data; nctrl 2421 drivers/nvme/host/fc.c struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); nctrl 2851 drivers/nvme/host/fc.c nvme_fc_delete_ctrl(struct nvme_ctrl *nctrl) nctrl 2853 drivers/nvme/host/fc.c struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); nctrl 719 drivers/nvme/host/rdma.c static struct blk_mq_tag_set *nvme_rdma_alloc_tagset(struct nvme_ctrl *nctrl, nctrl 722 drivers/nvme/host/rdma.c struct nvme_rdma_ctrl *ctrl = to_rdma_ctrl(nctrl); nctrl 732 drivers/nvme/host/rdma.c set->numa_node = nctrl->numa_node; nctrl 743 drivers/nvme/host/rdma.c set->queue_depth = nctrl->sqsize + 1; nctrl 745 drivers/nvme/host/rdma.c set->numa_node = nctrl->numa_node; nctrl 750 drivers/nvme/host/rdma.c set->nr_hw_queues = nctrl->queue_count - 1; nctrl 752 drivers/nvme/host/rdma.c set->nr_maps = nctrl->opts->nr_poll_queues ? HCTX_MAX_TYPES : 2; nctrl 947 drivers/nvme/host/rdma.c static void nvme_rdma_free_ctrl(struct nvme_ctrl *nctrl) nctrl 949 drivers/nvme/host/rdma.c struct nvme_rdma_ctrl *ctrl = to_rdma_ctrl(nctrl); nctrl 958 drivers/nvme/host/rdma.c nvmf_free_options(nctrl->opts); nctrl 1136 drivers/nvme/host/tcp.c static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) nctrl 1138 drivers/nvme/host/tcp.c struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); nctrl 1249 drivers/nvme/host/tcp.c static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, nctrl 1252 drivers/nvme/host/tcp.c struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); nctrl 1264 drivers/nvme/host/tcp.c queue->cmnd_capsule_len = nctrl->ioccsz * 16; nctrl 1272 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1282 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1292 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1305 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1311 drivers/nvme/host/tcp.c if (nctrl->opts->tos >= 0) { nctrl 1312 drivers/nvme/host/tcp.c opt = nctrl->opts->tos; nctrl 1316 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1335 drivers/nvme/host/tcp.c if (nctrl->opts->mask & NVMF_OPT_HOST_TRADDR) { nctrl 1339 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1346 drivers/nvme/host/tcp.c queue->hdr_digest = nctrl->opts->hdr_digest; nctrl 1347 drivers/nvme/host/tcp.c queue->data_digest = nctrl->opts->data_digest; nctrl 1351 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1365 drivers/nvme/host/tcp.c dev_dbg(nctrl->device, "connecting queue %d\n", nctrl 1371 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1431 drivers/nvme/host/tcp.c static void nvme_tcp_stop_queue(struct nvme_ctrl *nctrl, int qid) nctrl 1433 drivers/nvme/host/tcp.c struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); nctrl 1442 drivers/nvme/host/tcp.c static int nvme_tcp_start_queue(struct nvme_ctrl *nctrl, int idx) nctrl 1444 drivers/nvme/host/tcp.c struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); nctrl 1448 drivers/nvme/host/tcp.c ret = nvmf_connect_io_queue(nctrl, idx, false); nctrl 1450 drivers/nvme/host/tcp.c ret = nvmf_connect_admin_queue(nctrl); nctrl 1457 drivers/nvme/host/tcp.c dev_err(nctrl->device, nctrl 1463 drivers/nvme/host/tcp.c static struct blk_mq_tag_set *nvme_tcp_alloc_tagset(struct nvme_ctrl *nctrl, nctrl 1466 drivers/nvme/host/tcp.c struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); nctrl 1485 drivers/nvme/host/tcp.c set->queue_depth = nctrl->sqsize + 1; nctrl 1491 drivers/nvme/host/tcp.c set->nr_hw_queues = nctrl->queue_count - 1; nctrl 1493 drivers/nvme/host/tcp.c set->nr_maps = nctrl->opts->nr_poll_queues ? HCTX_MAX_TYPES : 2; nctrl 1597 drivers/nvme/host/tcp.c static void nvme_tcp_set_io_queues(struct nvme_ctrl *nctrl, nctrl 1600 drivers/nvme/host/tcp.c struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); nctrl 1601 drivers/nvme/host/tcp.c struct nvmf_ctrl_options *opts = nctrl->opts; nctrl 1969 drivers/nvme/host/tcp.c static void nvme_tcp_free_ctrl(struct nvme_ctrl *nctrl) nctrl 1971 drivers/nvme/host/tcp.c struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); nctrl 1980 drivers/nvme/host/tcp.c nvmf_free_options(nctrl->opts); nctrl 262 drivers/nvme/target/loop.c static void nvme_loop_free_ctrl(struct nvme_ctrl *nctrl) nctrl 264 drivers/nvme/target/loop.c struct nvme_loop_ctrl *ctrl = to_loop_ctrl(nctrl); nctrl 273 drivers/nvme/target/loop.c if (nctrl->tagset) { nctrl 278 drivers/nvme/target/loop.c nvmf_free_options(nctrl->opts); nctrl 432 drivers/nvme/target/loop.c static void nvme_loop_delete_ctrl(struct nvmet_ctrl *nctrl) nctrl 438 drivers/nvme/target/loop.c if (ctrl->ctrl.cntlid == nctrl->cntlid)