Lines Matching refs:pkg

43     struct sdio_pkg *pkg;  member
126 struct rt_mmcsd_cmd *cmd = sdio->pkg->cmd; in rthw_sdio_wait_completed()
138 if (sdio->pkg == RT_NULL) in rthw_sdio_wait_completed()
210 static void rthw_sdio_transfer_by_dma(struct rthw_sdio *sdio, struct sdio_pkg *pkg) in rthw_sdio_transfer_by_dma() argument
217 if ((RT_NULL == pkg) || (RT_NULL == sdio)) in rthw_sdio_transfer_by_dma()
223 data = pkg->cmd->data; in rthw_sdio_transfer_by_dma()
230 buff = pkg->buff; in rthw_sdio_transfer_by_dma()
257 static void rthw_sdio_send_command(struct rthw_sdio *sdio, struct sdio_pkg *pkg) in rthw_sdio_send_command() argument
259 struct rt_mmcsd_cmd *cmd = pkg->cmd; in rthw_sdio_send_command()
265 sdio->pkg = pkg; in rthw_sdio_send_command()
311 rthw_sdio_transfer_by_dma(sdio, pkg); in rthw_sdio_send_command()
348 sdio->pkg = RT_NULL; in rthw_sdio_send_command()
359 struct sdio_pkg pkg; in rthw_sdio_request() local
367 rt_memset(&pkg, 0, sizeof(pkg)); in rthw_sdio_request()
369 pkg.cmd = req->cmd; in rthw_sdio_request()
377 pkg.buff = data->buf; in rthw_sdio_request()
380 pkg.buff = cache_buf; in rthw_sdio_request()
388 rthw_sdio_send_command(sdio, &pkg); in rthw_sdio_request()
398 rt_memset(&pkg, 0, sizeof(pkg)); in rthw_sdio_request()
399 pkg.cmd = req->stop; in rthw_sdio_request()
400 rthw_sdio_send_command(sdio, &pkg); in rthw_sdio_request()
558 if (sdio->pkg != RT_NULL) in rthw_sdio_irq_process()
560 if (!sdio->pkg->cmd->data) in rthw_sdio_irq_process()
564 else if ((sdio->pkg->cmd->data->flags & DATA_DIR_WRITE)) in rthw_sdio_irq_process()
575 if (resp_type(sdio->pkg->cmd) == RESP_NONE) in rthw_sdio_irq_process()