Home
last modified time | relevance | path

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

/drivers/net/ethernet/cavium/liquidio/
Docteon_nic.c104 struct octnic_ctrl_pkt *nctrl; in octnet_link_ctrl_callback() local
106 nctrl = (struct octnic_ctrl_pkt *)sc->ctxptr; in octnet_link_ctrl_callback()
114 if (!status && nctrl->cb_fn) in octnet_link_ctrl_callback()
115 nctrl->cb_fn(nctrl); in octnet_link_ctrl_callback()
122 struct octnic_ctrl_pkt *nctrl, in octnic_alloc_ctrl_pkt_sc() argument
130 uddsize = (u32)(nctrl->ncmd.s.more * 8); in octnic_alloc_ctrl_pkt_sc()
133 rdatasize = (nctrl->wait_time) ? 16 : 0; in octnic_alloc_ctrl_pkt_sc()
142 memcpy(sc->ctxptr, nctrl, sizeof(struct octnic_ctrl_pkt)); in octnic_alloc_ctrl_pkt_sc()
146 memcpy(data, &nctrl->ncmd, OCTNET_CMD_SIZE); in octnic_alloc_ctrl_pkt_sc()
152 memcpy(data + OCTNET_CMD_SIZE, nctrl->udd, uddsize); in octnic_alloc_ctrl_pkt_sc()
[all …]
Dlio_main.c1161 struct octnic_ctrl_pkt nctrl; in send_rx_ctrl_cmd() local
1164 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in send_rx_ctrl_cmd()
1166 nctrl.ncmd.s.cmd = OCTNET_CMD_RX_CTL; in send_rx_ctrl_cmd()
1167 nctrl.ncmd.s.param1 = lio->linfo.ifidx; in send_rx_ctrl_cmd()
1168 nctrl.ncmd.s.param2 = start_stop; in send_rx_ctrl_cmd()
1169 nctrl.netpndev = (u64)lio->netdev; in send_rx_ctrl_cmd()
1173 if (octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl, nparams) < 0) in send_rx_ctrl_cmd()
2134 struct octnic_ctrl_pkt *nctrl = (struct octnic_ctrl_pkt *)nctrl_ptr; in liquidio_link_ctrl_cmd_completion() local
2135 struct net_device *netdev = (struct net_device *)nctrl->netpndev; in liquidio_link_ctrl_cmd_completion()
2139 switch (nctrl->ncmd.s.cmd) { in liquidio_link_ctrl_cmd_completion()
[all …]
Dlio_ethtool.c224 struct octnic_ctrl_pkt nctrl; in octnet_gpio_access() local
228 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in octnet_gpio_access()
230 nctrl.ncmd.u64 = 0; in octnet_gpio_access()
231 nctrl.ncmd.s.cmd = OCTNET_CMD_GPIO_ACCESS; in octnet_gpio_access()
232 nctrl.ncmd.s.param1 = lio->linfo.ifidx; in octnet_gpio_access()
233 nctrl.ncmd.s.param2 = addr; in octnet_gpio_access()
234 nctrl.ncmd.s.param3 = val; in octnet_gpio_access()
235 nctrl.wait_time = 100; in octnet_gpio_access()
236 nctrl.netpndev = (u64)netdev; in octnet_gpio_access()
237 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in octnet_gpio_access()
[all …]
Docteon_nic.h67 #define MAX_UDD_SIZE(nctrl) (sizeof(nctrl->udd)) argument
224 struct octnic_ctrl_pkt *nctrl,
/drivers/mtd/nand/
Dfsl_ifc_nand.c298 struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; in fsl_ifc_run_command() local
330 nctrl->max_bitflips = 0; in fsl_ifc_run_command()
332 if (nctrl->eccread) { in fsl_ifc_run_command()
334 int bufnum = nctrl->page & priv->bufnum_mask; in fsl_ifc_run_command()
360 nctrl->max_bitflips = max_t(unsigned int, in fsl_ifc_run_command()
361 nctrl->max_bitflips, in fsl_ifc_run_command()
365 nctrl->eccread = 0; in fsl_ifc_run_command()
760 struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; in fsl_ifc_read_page() local
772 return nctrl->max_bitflips; in fsl_ifc_read_page()