/linux-6.6.21/drivers/iio/ |
D | industrialio-gts-helper.c | 139 int iio_gts_total_gain_to_scale(struct iio_gts *gts, int total_gain, in iio_gts_total_gain_to_scale() argument 144 tmp = gts->max_scale; in iio_gts_total_gain_to_scale() 158 static void iio_gts_purge_avail_scale_table(struct iio_gts *gts) in iio_gts_purge_avail_scale_table() argument 162 if (gts->per_time_avail_scale_tables) { in iio_gts_purge_avail_scale_table() 163 for (i = 0; i < gts->num_itime; i++) in iio_gts_purge_avail_scale_table() 164 kfree(gts->per_time_avail_scale_tables[i]); in iio_gts_purge_avail_scale_table() 166 kfree(gts->per_time_avail_scale_tables); in iio_gts_purge_avail_scale_table() 167 gts->per_time_avail_scale_tables = NULL; in iio_gts_purge_avail_scale_table() 170 kfree(gts->avail_all_scales_table); in iio_gts_purge_avail_scale_table() 171 gts->avail_all_scales_table = NULL; in iio_gts_purge_avail_scale_table() [all …]
|
D | Makefile | 12 obj-$(CONFIG_IIO_GTS_HELPER) += industrialio-gts-helper.o
|
/linux-6.6.21/drivers/misc/sgi-gru/ |
D | grumain.c | 187 struct gru_thread_state *gts) in reserve_gru_resources() argument 190 gts->ts_cbr_map = in reserve_gru_resources() 191 gru_reserve_cb_resources(gru, gts->ts_cbr_au_count, in reserve_gru_resources() 192 gts->ts_cbr_idx); in reserve_gru_resources() 193 gts->ts_dsr_map = in reserve_gru_resources() 194 gru_reserve_ds_resources(gru, gts->ts_dsr_au_count, NULL); in reserve_gru_resources() 198 struct gru_thread_state *gts) in free_gru_resources() argument 201 gru->gs_cbr_map |= gts->ts_cbr_map; in free_gru_resources() 202 gru->gs_dsr_map |= gts->ts_dsr_map; in free_gru_resources() 225 struct gru_thread_state *gts) in gru_load_mm_tracker() argument [all …]
|
D | grufault.c | 70 struct gru_thread_state *gts = NULL; in gru_find_lock_gts() local 75 gts = gru_find_thread_state(vma, TSID(vaddr, vma)); in gru_find_lock_gts() 76 if (gts) in gru_find_lock_gts() 77 mutex_lock(>s->ts_ctxlock); in gru_find_lock_gts() 80 return gts; in gru_find_lock_gts() 87 struct gru_thread_state *gts = ERR_PTR(-EINVAL); in gru_alloc_locked_gts() local 94 gts = gru_alloc_thread_state(vma, TSID(vaddr, vma)); in gru_alloc_locked_gts() 95 if (IS_ERR(gts)) in gru_alloc_locked_gts() 97 mutex_lock(>s->ts_ctxlock); in gru_alloc_locked_gts() 99 return gts; in gru_alloc_locked_gts() [all …]
|
D | grutables.h | 386 #define UGRUADDR(gts) ((gts)->ts_vma->vm_start + \ argument 387 (gts)->ts_tsid * GRU_GSEG_PAGESIZE) 494 #define thread_cbr_number(gts, n) ((gts)->ts_cbr_idx[(n) / GRU_CBR_AU_SIZE] \ argument 519 #define for_each_gts_on_gru(gts, gru, ctxnum) \ argument 521 if (((gts) = (gru)->gs_gts[ctxnum])) 588 static inline int is_kernel_context(struct gru_thread_state *gts) in is_kernel_context() argument 590 return !gts->ts_mm; in is_kernel_context() 616 extern struct gru_state *gru_assign_gru_context(struct gru_thread_state *gts); 617 extern void gru_load_context(struct gru_thread_state *gts); 618 extern void gru_steal_context(struct gru_thread_state *gts); [all …]
|
D | grukdump.c | 114 struct gru_thread_state *gts; in gru_dump_context() local 140 gts = gru->gs_gts[ctxnum]; in gru_dump_context() 141 if (gts && gts->ts_vma) { in gru_dump_context() 142 hdr.pid = gts->ts_tgid_owner; in gru_dump_context() 143 hdr.vaddr = gts->ts_vma->vm_start; in gru_dump_context()
|
D | grufile.c | 64 struct gru_thread_state *gts; in gru_vma_close() local 75 gts = in gru_vma_close() 77 list_del(>s->ts_next); in gru_vma_close() 78 mutex_lock(>s->ts_ctxlock); in gru_vma_close() 79 if (gts->ts_gru) in gru_vma_close() 80 gru_unload_context(gts, 0); in gru_vma_close() 81 mutex_unlock(>s->ts_ctxlock); in gru_vma_close() 82 gts_drop(gts); in gru_vma_close()
|
/linux-6.6.21/include/linux/iio/ |
D | iio-gts-helper.h | 86 iio_gts_find_itime_by_time(struct iio_gts *gts, int time) in iio_gts_find_itime_by_time() argument 90 if (!gts->num_itime) in iio_gts_find_itime_by_time() 93 for (i = 0; i < gts->num_itime; i++) in iio_gts_find_itime_by_time() 94 if (gts->itime_table[i].time_us == time) in iio_gts_find_itime_by_time() 95 return >s->itime_table[i]; in iio_gts_find_itime_by_time() 101 iio_gts_find_itime_by_sel(struct iio_gts *gts, int sel) in iio_gts_find_itime_by_sel() argument 105 for (i = 0; i < gts->num_itime; i++) in iio_gts_find_itime_by_sel() 106 if (gts->itime_table[i].sel == sel) in iio_gts_find_itime_by_sel() 107 return >s->itime_table[i]; in iio_gts_find_itime_by_sel() 115 struct iio_gts *gts); [all …]
|
/linux-6.6.21/drivers/iio/light/ |
D | rohm-bu27008.c | 369 struct iio_gts gts; member 760 static int bu27008_get_gain(struct bu27008_data *data, struct iio_gts *gts, int *gain) in bu27008_get_gain() argument 768 ret = iio_gts_find_gain_by_sel(gts, sel); in bu27008_get_gain() 783 ret = iio_gts_find_sel_by_gain(&data->gts, gain); in bu27008_set_gain() 822 return iio_gts_find_int_time_by_sel(&data->gts, sel); in bu27008_get_int_time_us() 828 struct iio_gts *gts; in _bu27008_get_scale() local 832 gts = &data->gts_ir; in _bu27008_get_scale() 834 gts = &data->gts; in _bu27008_get_scale() 836 ret = bu27008_get_gain(data, gts, &gain); in _bu27008_get_scale() 844 return iio_gts_get_scale(gts, gain, ret, val, val2); in _bu27008_get_scale() [all …]
|
D | rohm-bu27034.c | 216 struct iio_gts gts; member 329 ret = iio_gts_find_gain_by_sel(&data->gts, sel); in bu27034_get_gain() 350 return iio_gts_find_int_time_by_sel(&data->gts, in bu27034_get_int_time() 367 return iio_gts_get_scale(&data->gts, gain, ret, val, val2); in _bu27034_get_scale() 451 ret = iio_gts_find_sel_by_gain(&data->gts, gain); in bu27034_set_gain() 463 ret = iio_gts_find_sel_by_int_time(&data->gts, time); in bu27034_set_int_time() 491 if (!iio_gts_valid_time(&data->gts, time_us)) { in bu27034_try_set_int_time() 509 ret = iio_gts_find_new_gain_by_old_gain_time(&data->gts, in bu27034_try_set_int_time() 531 ret = iio_find_closest_gain_low(&data->gts, in bu27034_try_set_int_time() 542 ret = iio_gts_get_min_gain(&data->gts); in bu27034_try_set_int_time() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/cxgb4/ |
D | t4.h | 681 void __iomem *gts; member 709 writel(val | INGRESSQID_V(cq->cqid), cq->gts); in write_gts()
|
D | cq.c | 160 cq->gts = rdev->lldi.gts_reg; in create_cq()
|