Lines Matching refs:etr_table

435 static void tmc_etr_sg_table_dump(struct etr_sg_table *etr_table)  in tmc_etr_sg_table_dump()  argument
440 struct tmc_sg_table *sg_table = etr_table->sg_table; in tmc_etr_sg_table_dump()
443 etr_table->hwaddr, true); in tmc_etr_sg_table_dump()
475 static inline void tmc_etr_sg_table_dump(struct etr_sg_table *etr_table) {} in tmc_etr_sg_table_dump() argument
485 static void tmc_etr_sg_table_populate(struct etr_sg_table *etr_table) in tmc_etr_sg_table_populate() argument
495 struct tmc_sg_table *sg_table = etr_table->sg_table; in tmc_etr_sg_table_populate()
567 struct etr_sg_table *etr_table; in tmc_init_etr_sg_table() local
569 etr_table = kzalloc(sizeof(*etr_table), GFP_KERNEL); in tmc_init_etr_sg_table()
570 if (!etr_table) in tmc_init_etr_sg_table()
577 kfree(etr_table); in tmc_init_etr_sg_table()
581 etr_table->sg_table = sg_table; in tmc_init_etr_sg_table()
583 etr_table->hwaddr = sg_table->table_daddr; in tmc_init_etr_sg_table()
584 tmc_etr_sg_table_populate(etr_table); in tmc_init_etr_sg_table()
587 tmc_etr_sg_table_dump(etr_table); in tmc_init_etr_sg_table()
589 return etr_table; in tmc_init_etr_sg_table()
697 struct etr_sg_table *etr_table; in tmc_etr_alloc_sg_buf() local
700 etr_table = tmc_init_etr_sg_table(dev, node, in tmc_etr_alloc_sg_buf()
702 if (IS_ERR(etr_table)) in tmc_etr_alloc_sg_buf()
704 etr_buf->hwaddr = etr_table->hwaddr; in tmc_etr_alloc_sg_buf()
706 etr_buf->private = etr_table; in tmc_etr_alloc_sg_buf()
712 struct etr_sg_table *etr_table = etr_buf->private; in tmc_etr_free_sg_buf() local
714 if (etr_table) { in tmc_etr_free_sg_buf()
715 tmc_free_sg_table(etr_table->sg_table); in tmc_etr_free_sg_buf()
716 kfree(etr_table); in tmc_etr_free_sg_buf()
723 struct etr_sg_table *etr_table = etr_buf->private; in tmc_etr_get_data_sg_buf() local
725 return tmc_sg_table_get_data(etr_table->sg_table, offset, len, bufpp); in tmc_etr_get_data_sg_buf()
731 struct etr_sg_table *etr_table = etr_buf->private; in tmc_etr_sync_sg_buf() local
732 struct tmc_sg_table *table = etr_table->sg_table; in tmc_etr_sync_sg_buf()