• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/cfe/cfe/dev/

Lines Matching defs:ctx

95 static int flashdrv_open(cfe_devctx_t *ctx);
96 static int flashdrv_read(cfe_devctx_t *ctx,iocb_buffer_t *buffer);
97 static int flashdrv_inpstat(cfe_devctx_t *ctx,iocb_inpstat_t *inpstat);
98 static int flashdrv_write(cfe_devctx_t *ctx,iocb_buffer_t *buffer);
99 static int flashdrv_ioctl(cfe_devctx_t *ctx,iocb_buffer_t *buffer);
100 static int flashdrv_close(cfe_devctx_t *ctx);
1106 * flashdrv_open(ctx)
1111 * ctx - device context
1117 static int flashdrv_open(cfe_devctx_t *ctx)
1119 flashpart_t *part = ctx->dev_softc;
1136 printf("%s: allocating %d instructions\n",cfe_device_name(ctx),ttlsect);
1147 * flashdrv_read(ctx,buffer)
1153 * ctx - device context
1160 static int flashdrv_read(cfe_devctx_t *ctx,iocb_buffer_t *buffer)
1162 flashpart_t *part = ctx->dev_softc;
1189 * flashdrv_inpstat(ctx,inpstat)
1194 * ctx - device context
1201 static int flashdrv_inpstat(cfe_devctx_t *ctx,iocb_inpstat_t *inpstat)
1209 * flashdrv_write(ctx,buffer)
1215 * ctx - device context
1222 static int flashdrv_write2(cfe_devctx_t *ctx,iocb_buffer_t *buffer,int reboot)
1224 flashpart_t *part = ctx->dev_softc;
1333 static int flashdrv_write(cfe_devctx_t *ctx,iocb_buffer_t *buffer)
1335 return flashdrv_write2(ctx,buffer,0);
1340 * flashdrv_ioctl(ctx,buffer)
1347 * ctx - device context
1353 static int flashdrv_ioctl(cfe_devctx_t *ctx,iocb_buffer_t *buffer)
1355 flashpart_t *part = ctx->dev_softc;
1405 flashdrv_write2(ctx,buffer,1);
1432 return (*(softc->fd_probe.flash_ioctl_hook))(ctx,buffer);
1442 * flashdrv_close(ctx)
1447 * ctx - device context
1452 static int flashdrv_close(cfe_devctx_t *ctx)
1454 flashpart_t *part = ctx->dev_softc;