/drivers/scsi/cxlflash/ |
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() 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() 84 struct llun_info *lli, *temp; in lookup_local() local 86 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) in lookup_local() [all …]
|
D | vlun.c | 372 static int init_vlun(struct llun_info *lli) in init_vlun() argument 375 struct glun_info *gli = lli->parent; in init_vlun() 382 blka->ba_lun.lun_id = lli->lun_index; in init_vlun() 393 pr_debug("%s: returning rc=%d lli=%p\n", __func__, rc, lli); in init_vlun() 512 struct llun_info *lli = sdev->hostdata; in grow_lxt() local 513 struct glun_info *gli = lli->parent; in grow_lxt() 576 (lli->lun_index << LXT_LUNIDX_SHIFT) | in grow_lxt() 578 lli->port_sel)); in grow_lxt() 625 struct llun_info *lli = sdev->hostdata; in shrink_lxt() local 626 struct glun_info *gli = lli->parent; in shrink_lxt() [all …]
|
D | superpipe.c | 150 struct llun_info *lli = arg; in get_context() local 156 lli = NULL; in get_context() 206 if (lli) { in get_context() 208 if (lun_access->lli == lli) in get_context() 303 static int read_cap16(struct scsi_device *sdev, struct llun_info *lli) in read_cap16() argument 307 struct glun_info *gli = lli->parent; in read_cap16() 416 struct llun_info *lli) in get_rhte() argument 431 if (unlikely(ctxi->rht_lun[rhndl] != lli)) { in get_rhte() 457 struct llun_info *lli) in rhte_checkout() argument 471 ctxi->rht_lun[i] = lli; in rhte_checkout() [all …]
|
/drivers/staging/lustre/lustre/llite/ |
D | llite_close.c | 51 struct ll_inode_info *lli = ll_i2info(club->cob_inode); in vvp_write_pending() local 53 spin_lock(&lli->lli_lock); in vvp_write_pending() 54 lli->lli_flags |= LLIF_SOM_DIRTY; in vvp_write_pending() 58 spin_unlock(&lli->lli_lock); in vvp_write_pending() 64 struct ll_inode_info *lli = ll_i2info(club->cob_inode); in vvp_write_complete() local 67 spin_lock(&lli->lli_lock); in vvp_write_complete() 72 spin_unlock(&lli->lli_lock); in vvp_write_complete() 82 struct ll_inode_info *lli = ll_i2info(inode); in ll_queue_done_writing() local 85 spin_lock(&lli->lli_lock); in ll_queue_done_writing() 86 lli->lli_flags |= flags; in ll_queue_done_writing() [all …]
|
D | xattr_cache.c | 58 static void ll_xattr_cache_init(struct ll_inode_info *lli) in ll_xattr_cache_init() argument 61 LASSERT(lli != NULL); in ll_xattr_cache_init() 63 INIT_LIST_HEAD(&lli->lli_xattrs); in ll_xattr_cache_init() 64 lli->lli_flags |= LLIF_XATTR_CACHE; in ll_xattr_cache_init() 219 static int ll_xattr_cache_valid(struct ll_inode_info *lli) in ll_xattr_cache_valid() argument 221 return !!(lli->lli_flags & LLIF_XATTR_CACHE); in ll_xattr_cache_valid() 231 static int ll_xattr_cache_destroy_locked(struct ll_inode_info *lli) in ll_xattr_cache_destroy_locked() argument 234 if (!ll_xattr_cache_valid(lli)) in ll_xattr_cache_destroy_locked() 237 while (ll_xattr_cache_del(&lli->lli_xattrs, NULL) == 0) in ll_xattr_cache_destroy_locked() 239 lli->lli_flags &= ~LLIF_XATTR_CACHE; in ll_xattr_cache_destroy_locked() [all …]
|
D | remote_perm.c | 118 static int do_check_remote_perm(struct ll_inode_info *lli, int mask) in do_check_remote_perm() argument 124 if (!lli->lli_remote_perms) in do_check_remote_perm() 127 head = lli->lli_remote_perms + in do_check_remote_perm() 130 spin_lock(&lli->lli_lock); in do_check_remote_perm() 155 spin_unlock(&lli->lli_lock); in do_check_remote_perm() 161 struct ll_inode_info *lli = ll_i2info(inode); in ll_update_remote_perm() local 182 if (!lli->lli_remote_perms) { in ll_update_remote_perm() 190 spin_lock(&lli->lli_lock); in ll_update_remote_perm() 192 if (!lli->lli_remote_perms) in ll_update_remote_perm() 193 lli->lli_remote_perms = perm_hash; in ll_update_remote_perm() [all …]
|
D | llite_lib.c | 787 void ll_lli_init(struct ll_inode_info *lli) in ll_lli_init() argument 789 lli->lli_inode_magic = LLI_INODE_MAGIC; in ll_lli_init() 790 lli->lli_flags = 0; in ll_lli_init() 791 lli->lli_ioepoch = 0; in ll_lli_init() 792 lli->lli_maxbytes = MAX_LFS_FILESIZE; in ll_lli_init() 793 spin_lock_init(&lli->lli_lock); in ll_lli_init() 794 lli->lli_posix_acl = NULL; in ll_lli_init() 795 lli->lli_remote_perms = NULL; in ll_lli_init() 796 mutex_init(&lli->lli_rmtperm_mutex); in ll_lli_init() 798 fid_zero(&lli->lli_pfid); in ll_lli_init() [all …]
|
D | vvp_object.c | 61 struct ll_inode_info *lli; in vvp_object_print() local 68 lli = ll_i2info(inode); in vvp_object_print() 72 lli->lli_clob, PFID(&lli->lli_fid)); in vvp_object_print() 125 struct ll_inode_info *lli = ll_i2info(conf->coc_inode); in vvp_conf_set() local 129 PFID(&lli->lli_fid)); in vvp_conf_set() 131 ll_layout_version_set(lli, LL_LAYOUT_GEN_NONE); in vvp_conf_set() 152 PFID(&lli->lli_fid), lli->lli_layout_gen, in vvp_conf_set() 155 lli->lli_has_smd = lsm_has_objects(conf->u.coc_md->lsm); in vvp_conf_set() 156 ll_layout_version_set(lli, conf->u.coc_md->lsm->lsm_layout_gen); in vvp_conf_set() 159 PFID(&lli->lli_fid), lli->lli_layout_gen); in vvp_conf_set() [all …]
|
D | statahead.c | 199 struct ll_inode_info *lli; in ll_sa_entry_alloc() local 247 lli = ll_i2info(sai->sai_inode); in ll_sa_entry_alloc() 248 spin_lock(&lli->lli_sa_lock); in ll_sa_entry_alloc() 252 spin_unlock(&lli->lli_sa_lock); in ll_sa_entry_alloc() 347 struct ll_inode_info *lli = ll_i2info(sai->sai_inode); in do_sa_entry_fini() local 354 spin_lock(&lli->lli_sa_lock); in do_sa_entry_fini() 359 spin_unlock(&lli->lli_sa_lock); in do_sa_entry_fini() 416 struct ll_inode_info *lli = ll_i2info(sai->sai_inode); in ll_sa_entry_to_stated() local 421 spin_lock(&lli->lli_sa_lock); in ll_sa_entry_to_stated() 426 spin_unlock(&lli->lli_sa_lock); in ll_sa_entry_to_stated() [all …]
|
D | file.c | 184 struct ll_inode_info *lli = ll_i2info(inode); in ll_close_inode_openhandle() local 186 spin_lock(&lli->lli_lock); in ll_close_inode_openhandle() 187 lli->lli_flags &= ~LLIF_DATA_MODIFIED; in ll_close_inode_openhandle() 188 spin_unlock(&lli->lli_lock); in ll_close_inode_openhandle() 224 struct ll_inode_info *lli = ll_i2info(inode); in ll_md_real_close() local 231 och_p = &lli->lli_mds_write_och; in ll_md_real_close() 232 och_usecount = &lli->lli_open_fd_write_count; in ll_md_real_close() 234 och_p = &lli->lli_mds_exec_och; in ll_md_real_close() 235 och_usecount = &lli->lli_open_fd_exec_count; in ll_md_real_close() 238 och_p = &lli->lli_mds_read_och; in ll_md_real_close() [all …]
|
D | symlink.c | 48 struct ll_inode_info *lli = ll_i2info(inode); in ll_readlink_internal() local 56 if (lli->lli_symlink_name) { in ll_readlink_internal() 59 *symname = lli->lli_symlink_name; in ll_readlink_internal() 109 lli->lli_symlink_name = kzalloc(symlen, GFP_NOFS); in ll_readlink_internal() 111 if (lli->lli_symlink_name) { in ll_readlink_internal() 112 memcpy(lli->lli_symlink_name, *symname, symlen); in ll_readlink_internal() 113 *symname = lli->lli_symlink_name; in ll_readlink_internal()
|
D | llite_internal.h | 264 static inline __u32 ll_layout_version_get(struct ll_inode_info *lli) in ll_layout_version_get() argument 268 spin_lock(&lli->lli_layout_lock); in ll_layout_version_get() 269 gen = lli->lli_layout_gen; in ll_layout_version_get() 270 spin_unlock(&lli->lli_layout_lock); in ll_layout_version_get() 275 static inline void ll_layout_version_set(struct ll_inode_info *lli, __u32 gen) in ll_layout_version_set() argument 277 spin_lock(&lli->lli_layout_lock); in ll_layout_version_set() 278 lli->lli_layout_gen = gen; in ll_layout_version_set() 279 spin_unlock(&lli->lli_layout_lock); in ll_layout_version_set() 637 static inline struct inode *ll_info2i(struct ll_inode_info *lli) in ll_info2i() argument 639 return &lli->lli_vfs_inode; in ll_info2i() [all …]
|
D | super25.c | 53 struct ll_inode_info *lli; in ll_alloc_inode() local 56 lli = kmem_cache_alloc(ll_inode_cachep, GFP_NOFS | __GFP_ZERO); in ll_alloc_inode() 57 if (lli == NULL) in ll_alloc_inode() 60 inode_init_once(&lli->lli_vfs_inode); in ll_alloc_inode() 61 return &lli->lli_vfs_inode; in ll_alloc_inode()
|
D | llite_mmap.c | 179 struct ll_inode_info *lli; in ll_page_mkwrite0() local 206 lli = ll_i2info(inode); in ll_page_mkwrite0() 207 down_read(&lli->lli_trunc_sem); in ll_page_mkwrite0() 211 up_read(&lli->lli_trunc_sem); in ll_page_mkwrite0() 217 struct ll_inode_info *lli = ll_i2info(inode); in ll_page_mkwrite0() local 245 spin_lock(&lli->lli_lock); in ll_page_mkwrite0() 246 lli->lli_flags |= LLIF_DATA_MODIFIED; in ll_page_mkwrite0() 247 spin_unlock(&lli->lli_lock); in ll_page_mkwrite0()
|
/drivers/dma/ |
D | coh901318_lli.c | 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 = 0x00000000U; 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->phy_this = phy; in coh901318_lli_alloc() 90 lli->link_addr = 0x00000000; in coh901318_lli_alloc() [all …]
|
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_t addr, u32 size, in d40_phy_buf_to_lli() argument [all …]
|
D | at_hdmac_regs.h | 190 struct at_lli lli; member 385 static void atc_dump_lli(struct at_dma_chan *atchan, struct at_lli *lli) in atc_dump_lli() argument 389 &lli->saddr, &lli->daddr, in atc_dump_lli() 390 lli->ctrla, lli->ctrlb, &lli->dscr); in atc_dump_lli() 453 u32 ctrlb = desc->lli.ctrlb; in set_desc_eol() 458 desc->lli.ctrlb = ctrlb; in set_desc_eol() 459 desc->lli.dscr = 0; in set_desc_eol()
|
D | coh901318.c | 1273 struct coh901318_lli *lli; member 1315 struct coh901318_lli *lli) in coh901318_list_print() argument 1317 struct coh901318_lli *l = lli; in coh901318_list_print() 1482 struct coh901318_lli *lli) in coh901318_prep_linked_list() argument 1491 writel(lli->src_addr, in coh901318_prep_linked_list() 1495 writel(lli->dst_addr, virtbase + in coh901318_prep_linked_list() 1499 writel(lli->link_addr, virtbase + COH901318_CX_LNK_ADDR + in coh901318_prep_linked_list() 1502 writel(lli->control, virtbase + COH901318_CX_CTRL + in coh901318_prep_linked_list() 1595 struct coh901318_lli *lli = in_lli; in coh901318_get_bytes_in_lli() local 1598 while (lli) { in coh901318_get_bytes_in_lli() [all …]
|
D | at_hdmac.c | 210 (*prev)->lli.dscr = desc->txd.phys; in atc_desc_chain() 332 if (desc_first->lli.dscr) { in atc_get_bytes_left() 416 if (desc_first->lli.dscr == dscr) in atc_get_bytes_left() 421 if (desc->lli.dscr == dscr) in atc_get_bytes_left() 583 atc_dump_lli(atchan, &bad_desc->lli); in atc_handle_error() 585 atc_dump_lli(atchan, &child->lli); in atc_handle_error() 786 desc->lli.saddr = xt->src_start; in atc_prep_dma_interleaved() 787 desc->lli.daddr = xt->dst_start; in atc_prep_dma_interleaved() 788 desc->lli.ctrla = ctrla | xfer_count; in atc_prep_dma_interleaved() 789 desc->lli.ctrlb = ctrlb; in atc_prep_dma_interleaved() [all …]
|
D | coh901318.h | 81 struct coh901318_lli **lli); 96 struct coh901318_lli *lli, 114 struct coh901318_lli *lli, 135 struct coh901318_lli *lli,
|
D | sun6i-dma.c | 279 static inline int sun6i_dma_cfg_lli(struct sun6i_dma_lli *lli, in sun6i_dma_cfg_lli() argument 305 lli->cfg = DMA_CHAN_CFG_SRC_BURST(src_burst) | in sun6i_dma_cfg_lli() 310 lli->src = src; in sun6i_dma_cfg_lli() 311 lli->dst = dst; in sun6i_dma_cfg_lli() 312 lli->len = len; in sun6i_dma_cfg_lli() 313 lli->para = NORMAL_WAIT; in sun6i_dma_cfg_lli() 319 struct sun6i_dma_lli *lli) in sun6i_dma_dump_lli() argument 321 phys_addr_t p_lli = virt_to_phys(lli); in sun6i_dma_dump_lli() 327 &p_lli, lli, in sun6i_dma_dump_lli() 328 lli->cfg, lli->src, lli->dst, in sun6i_dma_dump_lli() [all …]
|
D | idma64.c | 227 dma_pool_free(idma64c->pool, hw->lli, hw->llp); in idma64_desc_free() 246 struct idma64_lli *lli = hw->lli; in idma64_hw_desc_fill() local 268 lli->sar = sar; in idma64_hw_desc_fill() 269 lli->dar = dar; in idma64_hw_desc_fill() 271 lli->ctlhi = ctlhi; in idma64_hw_desc_fill() 272 lli->ctllo = ctllo | in idma64_hw_desc_fill() 278 lli->llp = llp; in idma64_hw_desc_fill() 287 struct idma64_lli *lli = hw->lli; in idma64_desc_fill() local 299 lli->ctllo |= IDMA64C_CTLL_INT_EN; in idma64_desc_fill() 320 hw->lli = dma_pool_alloc(idma64c->pool, GFP_NOWAIT, &hw->llp); in idma64_prep_slave_sg() [all …]
|
/drivers/dma/dw/ |
D | core.c | 200 ctllo = desc->lli.ctllo | DWC_CTLL_INT_EN; in dwc_do_single_block() 202 channel_writel(dwc, SAR, desc->lli.sar); in dwc_do_single_block() 203 channel_writel(dwc, DAR, desc->lli.dar); in dwc_do_single_block() 205 channel_writel(dwc, CTL_HI, desc->lli.ctlhi); in dwc_do_single_block() 423 if (desc->lli.llp == llp) { in dwc_scan_descriptors() 432 if (child->lli.llp == llp) { in dwc_scan_descriptors() 460 static inline void dwc_dump_lli(struct dw_dma_chan *dwc, struct dw_lli *lli) in dwc_dump_lli() argument 463 lli->sar, lli->dar, lli->llp, lli->ctlhi, lli->ctllo); in dwc_dump_lli() 499 dwc_dump_lli(dwc, &bad_desc->lli); in dwc_handle_error() 501 dwc_dump_lli(dwc, &child->lli); in dwc_handle_error() [all …]
|
/drivers/isdn/hisax/ |
D | callc.c | 260 chanp->b_st->lli.l4l3(chanp->b_st, DL_ESTABLISH | REQUEST, NULL); in lli_init_bchan_out() 277 chanp->d_st->lli.l4l3(chanp->d_st, CC_SETUP | REQUEST, chanp); in lli_prep_dialout() 295 chanp->d_st->lli.l4l3(chanp->d_st, CC_RESUME | REQUEST, chanp); in lli_resume() 362 chanp->d_st->lli.l4l3(chanp->d_st, CC_ALERTING | REQUEST, chanp->proc); in lli_deliver_call() 368 chanp->d_st->lli.l4l3(chanp->d_st, CC_PROCEED_SEND | REQUEST, chanp->proc); in lli_deliver_call() 371 chanp->d_st->lli.l4l3(chanp->d_st, CC_REDIR | REQUEST, chanp->proc); in lli_deliver_call() 378 chanp->d_st->lli.l4l3(chanp->d_st, CC_MORE_INFO | REQUEST, chanp->proc); in lli_deliver_call() 382 chanp->d_st->lli.l4l3(chanp->d_st, CC_IGNORE | REQUEST, chanp->proc); in lli_deliver_call() 388 chanp->d_st->lli.l4l3(chanp->d_st, CC_IGNORE | REQUEST, chanp->proc); in lli_deliver_call() 399 chanp->d_st->lli.l4l3(chanp->d_st, CC_SETUP | RESPONSE, chanp->proc); in lli_send_dconnect() [all …]
|
/drivers/staging/lustre/lustre/lclient/ |
D | glimpse.c | 90 struct cl_inode_info *lli = cl_i2info(inode); in cl_glimpse_lock() local 97 if (!(lli->lli_flags & LLIF_MDS_SIZE_LOCK)) { in cl_glimpse_lock() 99 if (lli->lli_has_smd) { in cl_glimpse_lock() 169 struct cl_inode_info *lli = cl_i2info(inode); in cl_io_get() local 170 struct cl_object *clob = lli->lli_clob; in cl_io_get()
|