/kernel/linux/linux-5.10/drivers/scsi/cxlflash/ |
H A D | lunmgt.c | 35 struct llun_info *lli = NULL; in create_local() local 37 lli = kzalloc(sizeof(*lli), GFP_KERNEL); in create_local() 38 if (unlikely(!lli)) { in create_local() 39 dev_err(dev, "%s: could not allocate lli\n", __func__); in create_local() 43 lli->sdev = sdev; in create_local() 44 lli->host_no = sdev->host->host_no; in create_local() 45 lli->in_table = false; in create_local() 47 memcpy(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_local() 49 return lli; in create_local() 86 struct llun_info *lli, *temp; lookup_local() local 136 struct llun_info *lli = NULL; find_and_create_lun() local 180 struct llun_info *lli, *temp; cxlflash_term_local_luns() local 232 struct llun_info *lli = NULL; cxlflash_manage_lun() local [all...] |
H A D | vlun.c | 368 static int init_vlun(struct llun_info *lli) in init_vlun() argument 371 struct glun_info *gli = lli->parent; in init_vlun() 378 blka->ba_lun.lun_id = lli->lun_index; in init_vlun() 389 pr_debug("%s: returning rc=%d lli=%p\n", __func__, rc, lli); in init_vlun() 510 struct llun_info *lli = sdev->hostdata; in grow_lxt() local 511 struct glun_info *gli = lli->parent; in grow_lxt() 575 (lli->lun_index << LXT_LUNIDX_SHIFT) | in grow_lxt() 577 lli->port_sel)); in grow_lxt() 628 struct llun_info *lli in shrink_lxt() local 735 struct llun_info *lli = sdev->hostdata; _cxlflash_vlun_resize() local 834 struct llun_info *lli, *temp; cxlflash_restore_luntable() local 885 init_luntable(struct cxlflash_cfg *cfg, struct llun_info *lli) init_luntable() argument 977 struct llun_info *lli = sdev->hostdata; cxlflash_disk_virtual_open() local 1195 struct llun_info *lli = sdev->hostdata; cxlflash_disk_clone() local [all...] |
H A D | superpipe.c | 162 struct llun_info *lli = arg; in get_context() local 168 lli = NULL; in get_context() 218 if (lli) { in get_context() 220 if (lun_access->lli == lli) in get_context() 308 * @lli: LUN destined for capacity request. 330 static int read_cap16(struct scsi_device *sdev, struct llun_info *lli) in read_cap16() argument 334 struct glun_info *gli = lli->parent; in read_cap16() 431 * @lli: LUN associated with request. 436 struct llun_info *lli) in get_rhte() 435 get_rhte(struct ctx_info *ctxi, res_hndl_t rhndl, struct llun_info *lli) get_rhte() argument 479 rhte_checkout(struct ctx_info *ctxi, struct llun_info *lli) rhte_checkout() argument 635 struct llun_info *lli = sdev->hostdata; _cxlflash_disk_release() local 783 struct llun_info **lli = NULL; create_context() local 895 struct llun_info *lli = sdev->hostdata; _cxlflash_disk_detach() local 1322 struct llun_info *lli = sdev->hostdata; cxlflash_disk_attach() local 1655 struct llun_info *lli = sdev->hostdata; cxlflash_afu_recover() local 1776 struct llun_info *lli = sdev->hostdata; process_sense() local 1842 struct llun_info *lli = sdev->hostdata; cxlflash_disk_verify() local 1965 struct llun_info *lli = sdev->hostdata; cxlflash_disk_direct_open() local 2052 struct llun_info *lli = sdev->hostdata; ioctl_common() local [all...] |
H A D | superpipe.h | 69 struct llun_info *lli; member 140 struct llun_info *lli); 143 struct llun_info *lli);
|
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/ |
H A D | lunmgt.c | 35 struct llun_info *lli = NULL; in create_local() local 37 lli = kzalloc(sizeof(*lli), GFP_KERNEL); in create_local() 38 if (unlikely(!lli)) { in create_local() 39 dev_err(dev, "%s: could not allocate lli\n", __func__); in create_local() 43 lli->sdev = sdev; in create_local() 44 lli->host_no = sdev->host->host_no; in create_local() 45 lli->in_table = false; in create_local() 47 memcpy(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_local() 49 return lli; in create_local() 86 struct llun_info *lli, *temp; lookup_local() local 136 struct llun_info *lli = NULL; find_and_create_lun() local 180 struct llun_info *lli, *temp; cxlflash_term_local_luns() local 232 struct llun_info *lli = NULL; cxlflash_manage_lun() local [all...] |
H A D | vlun.c | 364 * @lli: LUN information structure that owns the block allocator. 368 static int init_vlun(struct llun_info *lli) in init_vlun() argument 371 struct glun_info *gli = lli->parent; in init_vlun() 378 blka->ba_lun.lun_id = lli->lun_index; in init_vlun() 389 pr_debug("%s: returning rc=%d lli=%p\n", __func__, rc, lli); in init_vlun() 510 struct llun_info *lli = sdev->hostdata; in grow_lxt() local 511 struct glun_info *gli = lli->parent; in grow_lxt() 575 (lli->lun_index << LXT_LUNIDX_SHIFT) | in grow_lxt() 577 lli in grow_lxt() 628 struct llun_info *lli = sdev->hostdata; shrink_lxt() local 735 struct llun_info *lli = sdev->hostdata; _cxlflash_vlun_resize() local 834 struct llun_info *lli, *temp; cxlflash_restore_luntable() local 885 init_luntable(struct cxlflash_cfg *cfg, struct llun_info *lli) init_luntable() argument 977 struct llun_info *lli = sdev->hostdata; cxlflash_disk_virtual_open() local 1195 struct llun_info *lli = sdev->hostdata; cxlflash_disk_clone() local [all...] |
H A D | superpipe.c | 162 struct llun_info *lli = arg; in get_context() local 168 lli = NULL; in get_context() 218 if (lli) { in get_context() 220 if (lun_access->lli == lli) in get_context() 308 * @lli: LUN destined for capacity request. 330 static int read_cap16(struct scsi_device *sdev, struct llun_info *lli) in read_cap16() argument 334 struct glun_info *gli = lli->parent; in read_cap16() 432 * @lli: LUN associated with request. 437 struct llun_info *lli) in get_rhte() 436 get_rhte(struct ctx_info *ctxi, res_hndl_t rhndl, struct llun_info *lli) get_rhte() argument 480 rhte_checkout(struct ctx_info *ctxi, struct llun_info *lli) rhte_checkout() argument 636 struct llun_info *lli = sdev->hostdata; _cxlflash_disk_release() local 784 struct llun_info **lli = NULL; create_context() local 896 struct llun_info *lli = sdev->hostdata; _cxlflash_disk_detach() local 1323 struct llun_info *lli = sdev->hostdata; cxlflash_disk_attach() local 1656 struct llun_info *lli = sdev->hostdata; cxlflash_afu_recover() local 1777 struct llun_info *lli = sdev->hostdata; process_sense() local 1843 struct llun_info *lli = sdev->hostdata; cxlflash_disk_verify() local 1966 struct llun_info *lli = sdev->hostdata; cxlflash_disk_direct_open() local 2053 struct llun_info *lli = sdev->hostdata; ioctl_common() local [all...] |
/kernel/linux/linux-5.10/drivers/dma/ |
H A D | coh901318_lli.c | 6 * Support functions for handling lli for dma 59 struct coh901318_lli *lli; in coh901318_lli_alloc() local 75 lli = head; in coh901318_lli_alloc() 76 lli->phy_this = phy; in coh901318_lli_alloc() 77 lli->link_addr = 0x00000000; in coh901318_lli_alloc() 78 lli->virt_link_addr = NULL; in coh901318_lli_alloc() 81 lli_prev = lli; in coh901318_lli_alloc() 83 lli = dma_pool_alloc(pool->dmapool, GFP_NOWAIT, &phy); in coh901318_lli_alloc() 85 if (lli == NULL) in coh901318_lli_alloc() 89 lli in coh901318_lli_alloc() 112 coh901318_lli_free(struct coh901318_pool *pool, struct coh901318_lli **lli) coh901318_lli_free() argument 142 coh901318_lli_fill_memcpy(struct coh901318_pool *pool, struct coh901318_lli *lli, dma_addr_t source, unsigned int size, dma_addr_t destination, u32 ctrl_chained, u32 ctrl_eom) coh901318_lli_fill_memcpy() argument 175 coh901318_lli_fill_single(struct coh901318_pool *pool, struct coh901318_lli *lli, dma_addr_t buf, unsigned int size, dma_addr_t dev_addr, u32 ctrl_chained, u32 ctrl_eom, enum dma_transfer_direction dir) coh901318_lli_fill_single() argument 231 coh901318_lli_fill_sg(struct coh901318_pool *pool, struct coh901318_lli *lli, struct scatterlist *sgl, unsigned int nents, dma_addr_t dev_addr, u32 ctrl_chained, u32 ctrl, u32 ctrl_last, enum dma_transfer_direction dir, u32 ctrl_irq_mask) coh901318_lli_fill_sg() argument [all...] |
H A D | ste_dma40_ll.c | 132 static int d40_phy_fill_lli(struct d40_phy_lli *lli, in d40_phy_fill_lli() argument 160 lli->reg_elt = (data_size / data_width) << D40_SREG_ELEM_PHY_ECNT_POS; in d40_phy_fill_lli() 167 lli->reg_elt |= data_width << D40_SREG_ELEM_PHY_EIDX_POS; in d40_phy_fill_lli() 170 lli->reg_ptr = data; in d40_phy_fill_lli() 171 lli->reg_cfg = reg_cfg; in d40_phy_fill_lli() 175 lli->reg_lnk = BIT(D40_SREG_LNK_PHY_TCP_POS); in d40_phy_fill_lli() 177 lli->reg_lnk = next_lli; in d40_phy_fill_lli() 181 lli->reg_cfg |= BIT(D40_SREG_CFG_TIM_POS); in d40_phy_fill_lli() 183 lli->reg_cfg &= ~BIT(D40_SREG_CFG_TIM_POS); in d40_phy_fill_lli() 212 d40_phy_buf_to_lli(struct d40_phy_lli *lli, dma_addr_ argument 278 struct d40_phy_lli *lli = lli_sg; d40_phy_sg_to_lli() local 361 d40_log_fill_lli(struct d40_log_lli *lli, dma_addr_t data, u32 data_size, u32 reg_cfg, u32 data_width, unsigned int flags) d40_log_fill_lli() argument 396 struct d40_log_lli *lli = lli_sg; d40_log_buf_to_lli() local 427 struct d40_log_lli *lli = lli_sg; d40_log_sg_to_lli() local [all...] |
H A D | owl-dma.c | 173 * @lli_list: link list of lli nodes 336 static u32 llc_hw_flen(struct owl_dma_lli *lli) in llc_hw_flen() argument 338 return lli->hw[OWL_DMADESC_FLEN] & GENMASK(19, 0); in llc_hw_flen() 342 struct owl_dma_lli *lli) in owl_dma_free_lli() 344 list_del(&lli->node); in owl_dma_free_lli() 345 dma_pool_free(od->lli_pool, lli, lli->phys); in owl_dma_free_lli() 350 struct owl_dma_lli *lli; in owl_dma_alloc_lli() local 353 lli = dma_pool_alloc(od->lli_pool, GFP_NOWAIT, &phys); in owl_dma_alloc_lli() 354 if (!lli) in owl_dma_alloc_lli() 341 owl_dma_free_lli(struct owl_dma *od, struct owl_dma_lli *lli) owl_dma_free_lli() argument 380 owl_dma_cfg_lli(struct owl_dma_vchan *vchan, struct owl_dma_lli *lli, dma_addr_t src, dma_addr_t dst, u32 len, enum dma_transfer_direction dir, struct dma_slave_config *sconfig, bool is_cyclic) owl_dma_cfg_lli() argument 540 struct owl_dma_lli *lli; owl_dma_start_next_txd() local 677 struct owl_dma_lli *lli, *_lli; owl_dma_free_txd() local 774 struct owl_dma_lli *lli; owl_dma_getbytes_chan() local 808 struct owl_dma_lli *lli; owl_dma_tx_status() local 873 struct owl_dma_lli *lli, *prev = NULL; owl_dma_prep_memcpy() local 925 struct owl_dma_lli *lli, *prev = NULL; owl_dma_prep_slave_sg() local 990 struct owl_dma_lli *lli, *prev = NULL, *first = NULL; owl_prep_dma_cyclic() local [all...] |
H A D | at_hdmac_regs.h | 173 u32 dscr; /* chain to next lli */ 178 * @at_lli: hardware lli structure 186 struct at_lli lli; member 379 static void atc_dump_lli(struct at_dma_chan *atchan, struct at_lli *lli) in atc_dump_lli() argument 383 &lli->saddr, &lli->daddr, in atc_dump_lli() 384 lli->ctrla, lli->ctrlb, &lli->dscr); in atc_dump_lli() 447 u32 ctrlb = desc->lli in set_desc_eol() [all...] |
H A D | coh901318.h | 31 * @link_addr: physical address to next lli 32 * @virt_link_addr: virtual address of next lli (only used by pool_free) 33 * @phy_this: physical address of current lli (only used by pool_free) 46 * coh901318_pool_create() - Creates an dma pool for lli:s 49 * @lli_nbr: number of lli:s in the pool 50 * @algin: address alignemtn of lli:s 78 * @lli: reference to lli pointer to be freed 81 struct coh901318_lli **lli); 84 * coh901318_lli_fill_memcpy() - Prepares the lli [all...] |
H A D | coh901318.c | 175 * @ctrl_lli_last: DMA control register for the last lli in the list 176 * @ctrl_lli: DMA control register for an lli 177 * @ctrl_lli_chained: DMA control register for a chained lli 1273 struct coh901318_lli *lli; member 1317 struct coh901318_lli *lli) in coh901318_list_print() 1319 struct coh901318_lli *l = lli; in coh901318_list_print() 1323 dev_vdbg(COHC_2_DEV(cohc), "i %d, lli %p, ctrl 0x%x, src %pad" in coh901318_list_print() 1486 struct coh901318_lli *lli) in coh901318_prep_linked_list() 1495 writel(lli->src_addr, in coh901318_prep_linked_list() 1499 writel(lli in coh901318_prep_linked_list() 1316 coh901318_list_print(struct coh901318_chan *cohc, struct coh901318_lli *lli) coh901318_list_print() argument 1485 coh901318_prep_linked_list(struct coh901318_chan *cohc, struct coh901318_lli *lli) coh901318_prep_linked_list() argument 1585 struct coh901318_lli *lli = in_lli; coh901318_get_bytes_in_lli() local 1627 struct coh901318_lli *lli; coh901318_get_bytes_left() local 2217 struct coh901318_lli *lli; coh901318_prep_memcpy() local 2273 struct coh901318_lli *lli; coh901318_prep_slave_sg() local [all...] |
H A D | idma64.c | 214 dma_pool_free(idma64c->pool, hw->lli, hw->llp); in idma64_desc_free() 233 struct idma64_lli *lli = hw->lli; in idma64_hw_desc_fill() local 255 lli->sar = sar; in idma64_hw_desc_fill() 256 lli->dar = dar; in idma64_hw_desc_fill() 258 lli->ctlhi = ctlhi; in idma64_hw_desc_fill() 259 lli->ctllo = ctllo | in idma64_hw_desc_fill() 265 lli->llp = llp; in idma64_hw_desc_fill() 274 struct idma64_lli *lli = hw->lli; in idma64_desc_fill() local [all...] |
H A D | at_hdmac.c | 193 /* inform the HW lli about chaining */ in atc_desc_chain() 194 (*prev)->lli.dscr = desc->txd.phys; in atc_desc_chain() 319 if (desc_first->lli.dscr) { in atc_get_bytes_left() 403 if (desc_first->lli.dscr == dscr) in atc_get_bytes_left() 408 if (desc->lli.dscr == dscr) in atc_get_bytes_left() 544 atc_dump_lli(atchan, &bad_desc->lli); in atc_handle_error() 546 atc_dump_lli(atchan, &child->lli); in atc_handle_error() 733 desc->lli.saddr = xt->src_start; in atc_prep_dma_interleaved() 734 desc->lli.daddr = xt->dst_start; in atc_prep_dma_interleaved() 735 desc->lli in atc_prep_dma_interleaved() [all...] |
H A D | sun6i-dma.c | 344 struct sun6i_dma_lli *lli; in sun6i_get_chan_size() local 354 for (lli = txd->v_lli; lli; lli = lli->v_lli_next) { in sun6i_get_chan_size() 355 if (lli->p_lli_next == pos) { in sun6i_get_chan_size() 356 for (lli = lli->v_lli_next; lli; lli in sun6i_get_chan_size() 387 sun6i_dma_dump_lli(struct sun6i_vchan *vchan, struct sun6i_dma_lli *lli) sun6i_dma_dump_lli() argument 933 struct sun6i_dma_lli *lli; sun6i_dma_tx_status() local [all...] |
/kernel/linux/linux-6.6/drivers/dma/ |
H A D | ste_dma40_ll.c | 133 static int d40_phy_fill_lli(struct d40_phy_lli *lli, in d40_phy_fill_lli() argument 161 lli->reg_elt = (data_size / data_width) << D40_SREG_ELEM_PHY_ECNT_POS; in d40_phy_fill_lli() 168 lli->reg_elt |= data_width << D40_SREG_ELEM_PHY_EIDX_POS; in d40_phy_fill_lli() 171 lli->reg_ptr = data; in d40_phy_fill_lli() 172 lli->reg_cfg = reg_cfg; in d40_phy_fill_lli() 176 lli->reg_lnk = BIT(D40_SREG_LNK_PHY_TCP_POS); in d40_phy_fill_lli() 178 lli->reg_lnk = next_lli; in d40_phy_fill_lli() 182 lli->reg_cfg |= BIT(D40_SREG_CFG_TIM_POS); in d40_phy_fill_lli() 184 lli->reg_cfg &= ~BIT(D40_SREG_CFG_TIM_POS); in d40_phy_fill_lli() 213 d40_phy_buf_to_lli(struct d40_phy_lli *lli, dma_addr_ argument 279 struct d40_phy_lli *lli = lli_sg; d40_phy_sg_to_lli() local 362 d40_log_fill_lli(struct d40_log_lli *lli, dma_addr_t data, u32 data_size, u32 reg_cfg, u32 data_width, unsigned int flags) d40_log_fill_lli() argument 397 struct d40_log_lli *lli = lli_sg; d40_log_buf_to_lli() local 428 struct d40_log_lli *lli = lli_sg; d40_log_sg_to_lli() local [all...] |
H A D | owl-dma.c | 174 * @lli_list: link list of lli nodes 337 static u32 llc_hw_flen(struct owl_dma_lli *lli) in llc_hw_flen() argument 339 return lli->hw[OWL_DMADESC_FLEN] & GENMASK(19, 0); in llc_hw_flen() 343 struct owl_dma_lli *lli) in owl_dma_free_lli() 345 list_del(&lli->node); in owl_dma_free_lli() 346 dma_pool_free(od->lli_pool, lli, lli->phys); in owl_dma_free_lli() 351 struct owl_dma_lli *lli; in owl_dma_alloc_lli() local 354 lli = dma_pool_alloc(od->lli_pool, GFP_NOWAIT, &phys); in owl_dma_alloc_lli() 355 if (!lli) in owl_dma_alloc_lli() 342 owl_dma_free_lli(struct owl_dma *od, struct owl_dma_lli *lli) owl_dma_free_lli() argument 381 owl_dma_cfg_lli(struct owl_dma_vchan *vchan, struct owl_dma_lli *lli, dma_addr_t src, dma_addr_t dst, u32 len, enum dma_transfer_direction dir, struct dma_slave_config *sconfig, bool is_cyclic) owl_dma_cfg_lli() argument 541 struct owl_dma_lli *lli; owl_dma_start_next_txd() local 678 struct owl_dma_lli *lli, *_lli; owl_dma_free_txd() local 775 struct owl_dma_lli *lli; owl_dma_getbytes_chan() local 809 struct owl_dma_lli *lli; owl_dma_tx_status() local 874 struct owl_dma_lli *lli, *prev = NULL; owl_dma_prep_memcpy() local 926 struct owl_dma_lli *lli, *prev = NULL; owl_dma_prep_slave_sg() local 991 struct owl_dma_lli *lli, *prev = NULL, *first = NULL; owl_prep_dma_cyclic() local [all...] |
H A D | at_hdmac.c | 205 u32 dscr; /* chain to next lli */ 211 * @lli: linked list item that is passed to the DMA controller 216 struct at_lli *lli; member 336 * @lli_pool: hw lli table 405 static void atc_dump_lli(struct at_dma_chan *atchan, struct at_lli *lli) in atc_dump_lli() argument 409 &lli->saddr, &lli->daddr, in atc_dump_lli() 410 lli->ctrla, lli->ctrlb, &lli in atc_dump_lli() 866 struct at_lli *lli; atc_prep_dma_interleaved() local 1007 struct at_lli *lli; atc_prep_dma_memcpy() local 1045 struct at_lli *lli; atdma_create_memset_lli() local 1289 struct at_lli *lli; atc_prep_slave_sg() local 1338 struct at_lli *lli; atc_prep_slave_sg() local 1425 struct at_lli *lli; atc_dma_cyclic_fill_desc() local [all...] |
H A D | idma64.c | 218 dma_pool_free(idma64c->pool, hw->lli, hw->llp); in idma64_desc_free() 237 struct idma64_lli *lli = hw->lli; in idma64_hw_desc_fill() local 259 lli->sar = sar; in idma64_hw_desc_fill() 260 lli->dar = dar; in idma64_hw_desc_fill() 262 lli->ctlhi = ctlhi; in idma64_hw_desc_fill() 263 lli->ctllo = ctllo | in idma64_hw_desc_fill() 269 lli->llp = llp; in idma64_hw_desc_fill() 278 struct idma64_lli *lli = hw->lli; in idma64_desc_fill() local [all...] |
/kernel/linux/linux-6.6/drivers/dma/dw-edma/ |
H A D | dw-hdma-v0-core.c | 161 struct dw_hdma_v0_lli *lli = chunk->ll_region.vaddr.mem + ofs; in dw_hdma_v0_write_ll_data() local 163 lli->control = control; in dw_hdma_v0_write_ll_data() 164 lli->transfer_size = size; in dw_hdma_v0_write_ll_data() 165 lli->sar.reg = sar; in dw_hdma_v0_write_ll_data() 166 lli->dar.reg = dar; in dw_hdma_v0_write_ll_data() 168 struct dw_hdma_v0_lli __iomem *lli = chunk->ll_region.vaddr.io + ofs; in dw_hdma_v0_write_ll_data() local 170 writel(control, &lli->control); in dw_hdma_v0_write_ll_data() 171 writel(size, &lli->transfer_size); in dw_hdma_v0_write_ll_data() 172 writeq(sar, &lli->sar.reg); in dw_hdma_v0_write_ll_data() 173 writeq(dar, &lli in dw_hdma_v0_write_ll_data() [all...] |
H A D | dw-edma-v0-core.c | 285 struct dw_edma_v0_lli *lli = chunk->ll_region.vaddr.mem + ofs; in dw_edma_v0_write_ll_data() local 287 lli->control = control; in dw_edma_v0_write_ll_data() 288 lli->transfer_size = size; in dw_edma_v0_write_ll_data() 289 lli->sar.reg = sar; in dw_edma_v0_write_ll_data() 290 lli->dar.reg = dar; in dw_edma_v0_write_ll_data() 292 struct dw_edma_v0_lli __iomem *lli = chunk->ll_region.vaddr.io + ofs; in dw_edma_v0_write_ll_data() local 294 writel(control, &lli->control); in dw_edma_v0_write_ll_data() 295 writel(size, &lli->transfer_size); in dw_edma_v0_write_ll_data() 296 writeq(sar, &lli->sar.reg); in dw_edma_v0_write_ll_data() 297 writeq(dar, &lli in dw_edma_v0_write_ll_data() [all...] |
/kernel/linux/linux-6.6/drivers/dma/dw-axi-dmac/ |
H A D | dw-axi-dmac-platform.c | 266 struct axi_dma_lli *lli; in axi_desc_get() local 269 lli = dma_pool_zalloc(chan->desc_pool, GFP_NOWAIT, &phys); in axi_desc_get() 270 if (unlikely(!lli)) { in axi_desc_get() 279 return lli; in axi_desc_get() 291 dma_pool_free(chan->desc_pool, hw_desc->lli, hw_desc->llp); in axi_desc_put() 344 desc->lli->llp = cpu_to_le64(adr); in write_desc_llp() 562 val = le32_to_cpu(desc->lli->ctl_hi); in set_desc_last() 564 desc->lli->ctl_hi = cpu_to_le32(val); in set_desc_last() 569 desc->lli->sar = cpu_to_le64(adr); in write_desc_sar() 574 desc->lli in write_desc_dar() [all...] |
/kernel/linux/linux-5.10/drivers/dma/dw-edma/ |
H A D | dw-edma-v0-core.c | 195 struct dw_edma_v0_lli __iomem *lli; in dw_edma_v0_core_write_chunk() local 200 lli = chunk->ll_region.vaddr; in dw_edma_v0_core_write_chunk() 212 SET_LL(&lli[i].control, control); in dw_edma_v0_core_write_chunk() 214 SET_LL(&lli[i].transfer_size, child->sz); in dw_edma_v0_core_write_chunk() 216 SET_LL(&lli[i].sar_low, lower_32_bits(child->sar)); in dw_edma_v0_core_write_chunk() 217 SET_LL(&lli[i].sar_high, upper_32_bits(child->sar)); in dw_edma_v0_core_write_chunk() 219 SET_LL(&lli[i].dar_low, lower_32_bits(child->dar)); in dw_edma_v0_core_write_chunk() 220 SET_LL(&lli[i].dar_high, upper_32_bits(child->dar)); in dw_edma_v0_core_write_chunk() 224 llp = (void __iomem *)&lli[i]; in dw_edma_v0_core_write_chunk()
|
/kernel/linux/linux-5.10/drivers/dma/dw-axi-dmac/ |
H A D | dw-axi-dmac-platform.c | 263 desc->lli.llp = cpu_to_le64(adr); in write_desc_llp() 385 val = le32_to_cpu(desc->lli.ctl_hi); in set_desc_last() 387 desc->lli.ctl_hi = cpu_to_le32(val); in set_desc_last() 392 desc->lli.sar = cpu_to_le64(adr); in write_desc_sar() 397 desc->lli.dar = cpu_to_le64(adr); in write_desc_dar() 405 val = le32_to_cpu(desc->lli.ctl_lo); in set_desc_src_master() 407 desc->lli.ctl_lo = cpu_to_le32(val); in set_desc_src_master() 415 val = le32_to_cpu(desc->lli.ctl_lo); in set_desc_dest_master() 421 desc->lli.ctl_lo = cpu_to_le32(val); in set_desc_dest_master() 466 desc->lli in dma_chan_prep_dma_memcpy() [all...] |