Lines Matching refs:line_id

387 	u32 line_id;  in tegra_hte_line_xlate()  local
402 desc->attr.line_id = args->args[0]; in tegra_hte_line_xlate()
424 line_id = desc->attr.line_id - gpio_device_get_base(gs->gdev); in tegra_hte_line_xlate()
428 line_id = desc->attr.line_id; in tegra_hte_line_xlate()
432 line_id = desc->attr.line_id; in tegra_hte_line_xlate()
435 ret = tegra_hte_map_to_line_id(line_id, map, map_sz, xlated_id); in tegra_hte_line_xlate()
438 desc->attr.line_id); in tegra_hte_line_xlate()
446 desc->attr.line_id, *xlated_id); in tegra_hte_line_xlate()
457 static int tegra_hte_en_dis_common(struct hte_chip *chip, u32 line_id, bool en) in tegra_hte_en_dis_common() argument
469 if (line_id > chip->nlines) { in tegra_hte_en_dis_common()
472 line_id); in tegra_hte_en_dis_common()
476 slice = line_id >> sl_bit_shift; in tegra_hte_en_dis_common()
477 line_bit = line_id & (HTE_SLICE_SIZE - 1); in tegra_hte_en_dis_common()
498 line_id, slice, line_bit, reg); in tegra_hte_en_dis_common()
503 static int tegra_hte_enable(struct hte_chip *chip, u32 line_id) in tegra_hte_enable() argument
508 return tegra_hte_en_dis_common(chip, line_id, true); in tegra_hte_enable()
511 static int tegra_hte_disable(struct hte_chip *chip, u32 line_id) in tegra_hte_disable() argument
516 return tegra_hte_en_dis_common(chip, line_id, false); in tegra_hte_disable()
520 u32 line_id) in tegra_hte_request() argument
541 gs->line_data[line_id].data = attr->line_data; in tegra_hte_request()
542 gs->line_data[line_id].flags = attr->edge_flags; in tegra_hte_request()
545 return tegra_hte_en_dis_common(chip, line_id, true); in tegra_hte_request()
549 u32 line_id) in tegra_hte_release() argument
563 gs->line_data[line_id].flags); in tegra_hte_release()
567 gs->line_data[line_id].data = NULL; in tegra_hte_release()
568 gs->line_data[line_id].flags = 0; in tegra_hte_release()
571 return tegra_hte_en_dis_common(chip, line_id, false); in tegra_hte_release()
588 static int tegra_hte_get_level(struct tegra_hte_soc *gs, u32 line_id) in tegra_hte_get_level() argument
593 desc = gs->line_data[line_id].data; in tegra_hte_get_level()
603 u32 tsh, tsl, src, pv, cv, acv, slice, bit_index, line_id; in tegra_hte_read_fifo() local
623 line_id = bit_index + (slice << 5); in tegra_hte_read_fifo()
625 el.raw_level = tegra_hte_get_level(gs, line_id); in tegra_hte_read_fifo()
626 hte_push_ts_ns(gs->chip, line_id, &el); in tegra_hte_read_fifo()