Lines Matching refs:pkg
34 typedef rt_err_t (*sdio_txconfig)(struct swm_sdio_pkg *pkg, rt_uint32_t *buff, int size);
35 typedef rt_err_t (*sdio_rxconfig)(struct swm_sdio_pkg *pkg, rt_uint32_t *buff, int size);
57 struct swm_sdio_pkg *pkg; member
71 struct rt_mmcsd_cmd *cmd = sdio->pkg->cmd;
83 if (sdio->pkg == RT_NULL)
173 static void swm_sdio_transfer(struct swm_sdio_device *sdio, struct swm_sdio_pkg *pkg) in swm_sdio_transfer() argument
179 if ((RT_NULL == pkg) || (RT_NULL == sdio)) in swm_sdio_transfer()
185 data = pkg->cmd->data; in swm_sdio_transfer()
192 buff = pkg->buff; in swm_sdio_transfer()
203 sdio->sdio_des.txconfig(pkg, (rt_uint32_t *)buff, size); in swm_sdio_transfer()
207 sdio->sdio_des.rxconfig(pkg, (rt_uint32_t *)buff, size); in swm_sdio_transfer()
217 static void swm_sdio_send_command(struct swm_sdio_device *sdio, struct swm_sdio_pkg *pkg) in swm_sdio_send_command() argument
219 struct rt_mmcsd_cmd *cmd = pkg->cmd; in swm_sdio_send_command()
225 sdio->pkg = pkg; in swm_sdio_send_command()
282 swm_sdio_transfer(sdio, pkg); in swm_sdio_send_command()
289 sdio->pkg = RT_NULL; in swm_sdio_send_command()
300 struct swm_sdio_pkg pkg; in swm_sdio_request() local
308 rt_memset(&pkg, 0, sizeof(pkg)); in swm_sdio_request()
310 pkg.cmd = req->cmd; in swm_sdio_request()
318 pkg.buff = data->buf; in swm_sdio_request()
321 pkg.buff = cache_buf; in swm_sdio_request()
329 swm_sdio_send_command(sdio, &pkg); in swm_sdio_request()
339 rt_memset(&pkg, 0, sizeof(pkg)); in swm_sdio_request()
340 pkg.cmd = req->stop; in swm_sdio_request()
341 swm_sdio_send_command(sdio, &pkg); in swm_sdio_request()
570 static rt_err_t swm_sdio_rxconfig(struct swm_sdio_pkg *pkg, rt_uint32_t *buff, int size) in swm_sdio_rxconfig() argument
572 struct rt_mmcsd_cmd *cmd = pkg->cmd; in swm_sdio_rxconfig()
589 static rt_err_t swm_sdio_txconfig(struct swm_sdio_pkg *pkg, rt_uint32_t *buff, int size) in swm_sdio_txconfig() argument
591 struct rt_mmcsd_cmd *cmd = pkg->cmd; in swm_sdio_txconfig()
630 if (sdio->pkg != RT_NULL) in swm_sdio_irq_process()
632 if (!sdio->pkg->cmd->data) in swm_sdio_irq_process()