• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/cfe/cfe/arch/mips/cpu/sb1250/src/

Lines Matching defs:ctx

163     void	   (*sbdma_upcall)(void *ifctx,int chan,void *ctx,
245 static void sbeth_tx_callback(void *ifctx,int chan,void *ctx,
247 static void sbeth_rx_callback(void *ifctx,int chan,void *ctx,
626 void (*procfunc)(void *ifctx,int chan,void *ctx,
697 * SBDMA_ADDBUFFER(d,ptr,length,ctx)
707 * ctx - arbitrary data to be passed back when descriptor completes
715 static int sbdma_addbuffer(sbethdma_t *d,uint8_t *ptr,int length,void *ctx)
769 d->sbdma_ctxtable[dsc-d->sbdma_dscrtable] = ctx;
875 * SBETH_TX_CALLBACK(ifctx,chan,ctx,status,pktsize)
884 * ctx - packet context (sbeth_pkt structure)
892 static void sbeth_tx_callback(void *ifctx,int chan,void *ctx,
896 sbeth_pkt_t *pkt = ctx;
904 * SBETH_RX_CALLBACK(ifctx,chan,ctx,status,pktsize)
915 * ctx - packet context (sbeth_pkt structure)
922 static void sbeth_rx_callback(void *ifctx,int chan,void *ctx,
926 sbeth_pkt_t *pkt = ctx;
1917 static int sb1250_ether_open(cfe_devctx_t *ctx);
1918 static int sb1250_ether_read(cfe_devctx_t *ctx,iocb_buffer_t *buffer);
1919 static int sb1250_ether_inpstat(cfe_devctx_t *ctx,iocb_inpstat_t *inpstat);
1920 static int sb1250_ether_write(cfe_devctx_t *ctx,iocb_buffer_t *buffer);
1921 static int sb1250_ether_ioctl(cfe_devctx_t *ctx,iocb_buffer_t *buffer);
1922 static int sb1250_ether_close(cfe_devctx_t *ctx);
1923 static void sb1250_ether_poll(cfe_devctx_t *ctx,int64_t ticks);
1996 * SB1250_ETHER_READENV(ctx)
2003 * ctx - device context
2009 static void sb1250_ether_readenv(cfe_devctx_t *ctx)
2011 sbeth_t *softc = ctx->dev_softc;
2020 xsprintf(envbuf,"%s_HWADDR",cfe_device_name(ctx));
2045 * SB1250_ETHER_OPEN(ctx)
2051 * ctx - device context (includes ptr to our softc)
2057 static int sb1250_ether_open(cfe_devctx_t *ctx)
2059 sbeth_t *softc = ctx->dev_softc;
2061 softc->sbe_devctx = ctx;
2077 sb1250_ether_readenv(ctx);
2089 * SB1250_ETHER_READ(ctx,buffer)
2095 * ctx - device context (includes ptr to our softc)
2102 static int sb1250_ether_read(cfe_devctx_t *ctx,iocb_buffer_t *buffer)
2104 sbeth_t *softc = ctx->dev_softc;
2135 * SB1250_ETHER_INPSTAT(ctx,inpstat)
2140 * ctx - device context (includes ptr to our softc)
2146 static int sb1250_ether_inpstat(cfe_devctx_t *ctx,iocb_inpstat_t *inpstat)
2148 sbeth_t *softc = ctx->dev_softc;
2160 * SB1250_ETHER_WRITE(ctx,buffer)
2165 * ctx - device context (includes ptr to our softc)
2171 static int sb1250_ether_write(cfe_devctx_t *ctx,iocb_buffer_t *buffer)
2173 sbeth_t *softc = ctx->dev_softc;
2491 * SB1250_ETHER_IOCTL(ctx,buffer)
2496 * ctx - device context (includes ptr to our softc)
2502 static int sb1250_ether_ioctl(cfe_devctx_t *ctx,iocb_buffer_t *buffer)
2504 sbeth_t *softc = ctx->dev_softc;
2563 * SB1250_ETHER_CLOSE(ctx)
2568 * ctx - device context (includes ptr to our softc)
2573 static int sb1250_ether_close(cfe_devctx_t *ctx)
2575 sbeth_t *softc = ctx->dev_softc;
2587 * SB1250_ETHER_POLL(ctx,ticks)
2592 * ctx - device context (includes ptr to our softc)
2599 static void sb1250_ether_poll(cfe_devctx_t *ctx,int64_t ticks)
2601 sbeth_t *softc = ctx->dev_softc;