clt                75 drivers/macintosh/therm_adt746x.c 	struct i2c_client	*clt;
clt               102 drivers/macintosh/therm_adt746x.c 	rc = i2c_master_send(th->clt, (const char *)tmp, 2);
clt               117 drivers/macintosh/therm_adt746x.c 	rc = i2c_master_send(th->clt, &reg_addr, 1);
clt               122 drivers/macintosh/therm_adt746x.c 	rc = i2c_master_recv(th->clt, (char *)&data, 1);
clt               417 drivers/macintosh/therm_adt746x.c 	struct device_node *np = th->clt->dev.of_node;
clt               505 drivers/macintosh/therm_adt746x.c 	th->clt = client;
clt               145 fs/erofs/zdata.c 	struct z_erofs_collector clt;
clt               158 fs/erofs/zdata.c 	.inode = __i, .clt = COLLECTOR_INIT(), \
clt               164 fs/erofs/zdata.c static void preload_compressed_pages(struct z_erofs_collector *clt,
clt               169 fs/erofs/zdata.c 	const struct z_erofs_pcluster *pcl = clt->pcl;
clt               171 fs/erofs/zdata.c 	struct page **pages = clt->compressedpages;
clt               175 fs/erofs/zdata.c 	if (clt->mode < COLLECT_PRIMARY_FOLLOWED)
clt               194 fs/erofs/zdata.c 				clt->compressedpages = pages;
clt               207 fs/erofs/zdata.c 		clt->mode = COLLECT_PRIMARY_FOLLOWED_NOINPLACE;
clt               276 fs/erofs/zdata.c static inline bool z_erofs_try_inplace_io(struct z_erofs_collector *clt,
clt               279 fs/erofs/zdata.c 	struct z_erofs_pcluster *const pcl = clt->pcl;
clt               282 fs/erofs/zdata.c 	while (clt->compressedpages < pcl->compressed_pages + clusterpages) {
clt               283 fs/erofs/zdata.c 		if (!cmpxchg(clt->compressedpages++, NULL, page))
clt               290 fs/erofs/zdata.c static int z_erofs_attach_page(struct z_erofs_collector *clt,
clt               298 fs/erofs/zdata.c 	if (clt->mode >= COLLECT_PRIMARY &&
clt               300 fs/erofs/zdata.c 	    z_erofs_try_inplace_io(clt, page))
clt               303 fs/erofs/zdata.c 	ret = z_erofs_pagevec_enqueue(&clt->vector,
clt               305 fs/erofs/zdata.c 	clt->cl->vcnt += (unsigned int)ret;
clt               340 fs/erofs/zdata.c static struct z_erofs_collection *cllookup(struct z_erofs_collector *clt,
clt               355 fs/erofs/zdata.c 	if (clt->owned_head == &pcl->next || pcl == clt->tailpcl) {
clt               389 fs/erofs/zdata.c 	if (clt->owned_head == Z_EROFS_PCLUSTER_TAIL)
clt               390 fs/erofs/zdata.c 		clt->tailpcl = pcl;
clt               391 fs/erofs/zdata.c 	clt->mode = try_to_claim_pcluster(pcl, &clt->owned_head);
clt               393 fs/erofs/zdata.c 	if (clt->owned_head == Z_EROFS_PCLUSTER_TAIL)
clt               394 fs/erofs/zdata.c 		clt->tailpcl = NULL;
clt               395 fs/erofs/zdata.c 	clt->pcl = pcl;
clt               396 fs/erofs/zdata.c 	clt->cl = cl;
clt               400 fs/erofs/zdata.c static struct z_erofs_collection *clregister(struct z_erofs_collector *clt,
clt               429 fs/erofs/zdata.c 	pcl->next = clt->owned_head;
clt               430 fs/erofs/zdata.c 	clt->mode = COLLECT_PRIMARY_FOLLOWED;
clt               448 fs/erofs/zdata.c 	if (clt->owned_head == Z_EROFS_PCLUSTER_TAIL)
clt               449 fs/erofs/zdata.c 		clt->tailpcl = pcl;
clt               450 fs/erofs/zdata.c 	clt->owned_head = &pcl->next;
clt               451 fs/erofs/zdata.c 	clt->pcl = pcl;
clt               452 fs/erofs/zdata.c 	clt->cl = cl;
clt               456 fs/erofs/zdata.c static int z_erofs_collector_begin(struct z_erofs_collector *clt,
clt               462 fs/erofs/zdata.c 	DBG_BUGON(clt->cl);
clt               465 fs/erofs/zdata.c 	DBG_BUGON(clt->owned_head == Z_EROFS_PCLUSTER_NIL);
clt               466 fs/erofs/zdata.c 	DBG_BUGON(clt->owned_head == Z_EROFS_PCLUSTER_TAIL_CLOSED);
clt               474 fs/erofs/zdata.c 	cl = cllookup(clt, inode, map);
clt               476 fs/erofs/zdata.c 		cl = clregister(clt, inode, map);
clt               485 fs/erofs/zdata.c 	z_erofs_pagevec_ctor_init(&clt->vector, Z_EROFS_NR_INLINE_PAGEVECS,
clt               488 fs/erofs/zdata.c 	clt->compressedpages = clt->pcl->compressed_pages;
clt               489 fs/erofs/zdata.c 	if (clt->mode <= COLLECT_PRIMARY) /* cannot do in-place I/O */
clt               490 fs/erofs/zdata.c 		clt->compressedpages += Z_EROFS_CLUSTER_MAX_PAGES;
clt               525 fs/erofs/zdata.c static bool z_erofs_collector_end(struct z_erofs_collector *clt)
clt               527 fs/erofs/zdata.c 	struct z_erofs_collection *cl = clt->cl;
clt               532 fs/erofs/zdata.c 	z_erofs_pagevec_ctor_exit(&clt->vector, false);
clt               539 fs/erofs/zdata.c 	if (clt->mode < COLLECT_PRIMARY_FOLLOWED_NOINPLACE)
clt               542 fs/erofs/zdata.c 	clt->cl = NULL;
clt               576 fs/erofs/zdata.c 	struct z_erofs_collector *const clt = &fe->clt;
clt               597 fs/erofs/zdata.c 		if (!clt->cl)
clt               605 fs/erofs/zdata.c 	if (z_erofs_collector_end(clt))
clt               618 fs/erofs/zdata.c 	err = z_erofs_collector_begin(clt, inode, map);
clt               628 fs/erofs/zdata.c 	preload_compressed_pages(clt, MNGD_MAPPING(sbi),
clt               638 fs/erofs/zdata.c 	tight &= (clt->mode >= COLLECT_PRIMARY_HOOKED &&
clt               639 fs/erofs/zdata.c 		  clt->mode != COLLECT_PRIMARY_FOLLOWED_NOINPLACE);
clt               654 fs/erofs/zdata.c 		tight &= (clt->mode >= COLLECT_PRIMARY_FOLLOWED);
clt               657 fs/erofs/zdata.c 	err = z_erofs_attach_page(clt, page, page_type);
clt               663 fs/erofs/zdata.c 		err = z_erofs_attach_page(clt, newpage,
clt               679 fs/erofs/zdata.c 	clt->cl->nr_pages = max_t(pgoff_t, clt->cl->nr_pages, index + 1);
clt              1308 fs/erofs/zdata.c 				     struct z_erofs_collector *clt,
clt              1314 fs/erofs/zdata.c 	if (!z_erofs_vle_submit_all(sb, clt->owned_head,
clt              1345 fs/erofs/zdata.c 	(void)z_erofs_collector_end(&f.clt);
clt              1348 fs/erofs/zdata.c 	z_erofs_submit_and_unzip(inode->i_sb, &f.clt, &pagepool, true);
clt              1423 fs/erofs/zdata.c 	(void)z_erofs_collector_end(&f.clt);
clt              1425 fs/erofs/zdata.c 	z_erofs_submit_and_unzip(inode->i_sb, &f.clt, &pagepool, sync);