| /drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
| A D | nv10.c | 32 if (line < 2) { in nv10_gpio_sense() 33 line = line * 16; in nv10_gpio_sense() 34 line = nvkm_rd32(device, 0x600818) >> line; in nv10_gpio_sense() 38 line = (line - 2) * 4; in nv10_gpio_sense() 39 line = nvkm_rd32(device, 0x60081c) >> line; in nv10_gpio_sense() 43 line = (line - 10) * 4; in nv10_gpio_sense() 44 line = nvkm_rd32(device, 0x600850) >> line; in nv10_gpio_sense() 58 line = line * 16; in nv10_gpio_drive() 64 line = (line - 2) * 4; in nv10_gpio_drive() 70 line = (line - 10) * 4; in nv10_gpio_drive() [all …]
|
| A D | nv50.c | 38 u8 line = (data & 0x0000001f); in nv50_gpio_reset() local 44 u32 reg = regs[line >> 4]; in nv50_gpio_reset() 45 u32 lsh = line & 0x0f; in nv50_gpio_reset() 51 nvkm_gpio_set(gpio, 0, func, line, defs); in nv50_gpio_reset() 58 nv50_gpio_location(int line, u32 *reg, u32 *shift) in nv50_gpio_location() argument 62 if (line >= 32) in nv50_gpio_location() 65 *reg = nv50_gpio_reg[line >> 3]; in nv50_gpio_location() 66 *shift = (line & 7) << 2; in nv50_gpio_location() 76 if (nv50_gpio_location(line, ®, &shift)) in nv50_gpio_drive() 84 nv50_gpio_sense(struct nvkm_gpio *gpio, int line) in nv50_gpio_sense() argument [all …]
|
| A D | base.c | 31 return gpio->func->drive(gpio, line, dir, out); in nvkm_gpio_drive() 35 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense() argument 37 return gpio->func->sense(gpio, line); in nvkm_gpio_sense() 56 if (line == 0xff && tag == 0xff) in nvkm_gpio_find() 59 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); in nvkm_gpio_find() 68 .line = device->quirk->tv_gpio, in nvkm_gpio_find() 85 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); in nvkm_gpio_set() 89 ret = nvkm_gpio_drive(gpio, idx, func.line, dir, out); in nvkm_gpio_set() 101 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); in nvkm_gpio_get() 103 ret = nvkm_gpio_sense(gpio, idx, func.line); in nvkm_gpio_get() [all …]
|
| /drivers/gpio/ |
| A D | gpio-thunderx.c | 49 unsigned int line; member 71 return 8 * line + GPIO_INTR; in intr_reg() 75 unsigned int line) in thunderx_gpio_is_gpio_nowarn() argument 87 unsigned int line) in thunderx_gpio_is_gpio() argument 123 int bank = line / 64; in thunderx_gpio_set() 124 int bank_bit = line % 64; in thunderx_gpio_set() 181 unsigned int line, in thunderx_gpio_set_config() argument 187 int bank = line / 64; in thunderx_gpio_set_config() 188 int bank_bit = line % 64; in thunderx_gpio_set_config() 263 int bank = line / 64; in thunderx_gpio_get() [all …]
|
| A D | gpio-aggregator.c | 160 line = kzalloc(sizeof(*line), GFP_KERNEL); in gpio_aggregator_line_alloc() 161 if (!line) in gpio_aggregator_line_alloc() 166 if (!line->key) { in gpio_aggregator_line_alloc() 167 kfree(line); in gpio_aggregator_line_alloc() 174 line->idx = idx; in gpio_aggregator_line_alloc() 178 return line; in gpio_aggregator_line_alloc() 225 kfree(line); in gpio_aggregator_free_lines() 440 u32 line; in gpiochip_fwd_delay_of_xlate() local 453 return line; in gpiochip_fwd_delay_of_xlate() 647 if (!line->key || line->idx != n) { in gpio_aggregator_activate() [all …]
|
| A D | gpio-realtek-otto.c | 127 unsigned int port_pin = line % 8; in realtek_gpio_line_imr_pos_swapped() 128 unsigned int port = line / 8; in realtek_gpio_line_imr_pos_swapped() 153 return 2 * line; in realtek_gpio_line_imr_pos() 172 u32 irq_type = ctrl->intr_type[line]; in realtek_gpio_update_line_imr() 173 u32 irq_mask = ctrl->intr_mask[line]; in realtek_gpio_update_line_imr() 212 ctrl->intr_mask[line] = 0; in realtek_gpio_irq_mask() 243 ctrl->intr_type[line] = type; in realtek_gpio_irq_set_type() 292 v |= BIT(line); in realtek_gpio_irq_set_affinity() 294 v &= ~BIT(line); in realtek_gpio_irq_set_affinity() 310 unsigned int line; in realtek_gpio_irq_init() local [all …]
|
| A D | gpiolib-cdev.c | 640 struct line *line; in process_hw_ts_thread() local 688 struct line *line; in process_hw_ts() local 759 struct line *line = p; in edge_irq_thread() local 805 struct line *line = p; in edge_irq_handler() local 812 line->timestamp_ns = line_event_timestamp(line); in edge_irq_handler() 823 static bool debounced_value(struct line *line) in debounced_value() argument 842 struct line *line = p; in debounce_irq_handler() local 853 struct line *line = container_of(work, struct line, work.work); in debounce_work_func() local 901 line->line_seqno = line->last_seqno - line->total_discard_seq; in debounce_work_func() 1002 free_irq_label(free_irq(line->irq, line)); in edge_detector_stop() [all …]
|
| A D | gpio-ts5500.c | 204 if (line.no_input) in ts5500_gpio_input() 207 if (line.no_output) in ts5500_gpio_input() 211 ts5500_clear_mask(line.control_mask, line.control_addr); in ts5500_gpio_input() 222 return !!(inb(line.value_addr) & line.value_mask); in ts5500_gpio_get() 236 ts5500_set_mask(line.control_mask, line.control_addr); in ts5500_gpio_output() 239 ts5500_set_mask(line.value_mask, line.value_addr); in ts5500_gpio_output() 241 ts5500_clear_mask(line.value_mask, line.value_addr); in ts5500_gpio_output() 255 ts5500_set_mask(line.value_mask, line.value_addr); in ts5500_gpio_set() 257 ts5500_clear_mask(line.value_mask, line.value_addr); in ts5500_gpio_set() 270 if (line.irq) in ts5500_gpio_to_irq() [all …]
|
| A D | gpio-sim.c | 726 if (!line->name || (line->offset >= bank->num_lines)) in gpio_sim_get_line_names_size() 741 if (!line->name || (line->offset >= bank->num_lines)) in gpio_sim_set_line_names() 744 line_names[line->offset] = line->name; in gpio_sim_set_line_names() 754 if (line->valid) in gpio_sim_get_reserved_ranges_size() 770 if (line->valid) in gpio_sim_set_reserved_ranges() 808 if (line->hog) in gpio_sim_add_hogs() 1030 item = line->hog ? &line->hog->item in gpio_sim_device_lockup_configfs() 1420 line->hog = hog; in gpio_sim_line_config_make_hog_item() 1434 kfree(line); in gpio_sim_line_config_group_release() 1471 line = kzalloc(sizeof(*line), GFP_KERNEL); in gpio_sim_bank_config_make_line_group() [all …]
|
| /drivers/zorro/ |
| A D | gen-devlist.c | 32 char line[1024], *c, *bra, manuf[8]; in main() local 45 while (fgets(line, sizeof(line)-1, stdin)) { in main() 47 if ((c = strchr(line, '\n'))) in main() 49 if (!line[0] || line[0] == '#') in main() 51 if (line[0] == '\t') { in main() 54 if (strlen(line) > 5 && line[5] == ' ') { in main() 55 c = line + 5; in main() 68 fprintf(devf, "\tPRODUCT(%s,%s,\"", manuf, line+1); in main() 76 } else if (strlen(line) > 4 && line[4] == ' ') { in main() 77 c = line + 4; in main() [all …]
|
| /drivers/media/platform/qcom/camss/ |
| A D | camss-vfe-gen1.c | 104 vfe_disable_output(line); in vfe_gen1_disable() 106 vfe_put_output(line); in vfe_gen1_disable() 122 struct vfe_line *line) in vfe_output_init_addrs() argument 292 output = &line->output; in vfe_get_output() 356 ret = vfe_get_output(line); in vfe_gen1_enable() 369 vfe_put_output(line); in vfe_gen1_enable() 386 struct vfe_line *line) in vfe_output_update_ping_addr() argument 405 struct vfe_line *line) in vfe_output_update_pong_addr() argument 545 struct vfe_line *line = &vfe->line[line_id]; in vfe_isr_reg_update() local 551 output = &line->output; in vfe_isr_reg_update() [all …]
|
| A D | camss-vfe.c | 445 struct vfe_line *line = &vfe->line[vfe->wm_output_map[wm]]; in vfe_buf_done() local 482 line); in vfe_buf_done() 575 output = &line->output; in vfe_queue_buffer_v2() 628 vfe_put_output(line); in vfe_enable_v2() 654 output = &line->output; in vfe_get_output_v2() 667 vfe->wm_output_map[line->id] = line->id; in vfe_get_output_v2() 835 vfe_put_output(line); in vfe_disable() 1163 output = &line->output; in vfe_flush_buffers() 1258 return &line->fmt[pad]; in __vfe_get_format() 1278 return &line->compose; in __vfe_get_compose() [all …]
|
| A D | camss-ispif.c | 808 u8 csid = line->csid_id; in ispif_set_stream() 809 u8 vfe = line->vfe_id; in ispif_set_stream() 886 return &line->fmt[pad]; in __ispif_get_format() 914 if (i >= line->nformats) in ispif_try_format() 1124 if (!ispif->line) in msm_ispif_subdev_init() 1129 ispif->line[i].id = i; in msm_ispif_subdev_init() 1267 struct vfe_line *line; in ispif_get_vfe_id() local 1272 vfe = to_vfe(line); in ispif_get_vfe_id() 1286 struct vfe_line *line; in ispif_get_vfe_line_id() local 1291 *id = line->id; in ispif_get_vfe_line_id() [all …]
|
| /drivers/gpu/drm/xe/ |
| A D | xe_gen_wa_oob.c | 41 err_msg, lineno, line); in print_parse_error() 46 while (isspace(*(line + linelen))) in strip() 49 line[linelen - 1] = '\0'; in strip() 51 return line + strspn(line, " \f\n\r\t\v"); in strip() 57 char line[MAX_LINE_LEN + 1]; in parse() local 61 while (fgets(line, sizeof(line), input)) { in parse() 65 if (line[0] == '\0' || line[0] == '#' || line[0] == '\n') { in parse() 70 linelen = strlen(line); in parse() 76 is_continuation = isspace(line[0]); in parse() 77 name = strip(line, linelen); in parse() [all …]
|
| /drivers/media/pci/ivtv/ |
| A D | ivtv-vbi.c | 176 int line = 0; in copy_vbi_data() local 207 line++; in copy_vbi_data() 238 int line = 0; in ivtv_convert_ivtv_vbi() local 279 itv->vbi.sliced_dec_data[line].line = l; in ivtv_convert_ivtv_vbi() 283 line++; in ivtv_convert_ivtv_vbi() 289 itv->vbi.sliced_dec_data[line].line = 0; in ivtv_convert_ivtv_vbi() 291 line++; in ivtv_convert_ivtv_vbi() 340 return line; in compress_sliced_buf() 355 itv->vbi.sliced_data[line].line = vbi.line; in compress_sliced_buf() 357 line++; in compress_sliced_buf() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| A D | nv50.c | 32 if (*line == 0x04) { in pwm_info() 34 *line = 4; in pwm_info() 37 if (*line == 0x09) { in pwm_info() 39 *line = 9; in pwm_info() 42 if (*line == 0x10) { in pwm_info() 44 *line = 0; in pwm_info() 59 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl() 61 nvkm_mask(device, ctrl, 0x00010001 << line, data << line); in nv50_fan_pwm_ctrl() 69 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_get() 73 if (nvkm_rd32(device, ctrl) & (1 << line)) { in nv50_fan_pwm_get() [all …]
|
| A D | gf119.c | 27 pwm_info(struct nvkm_therm *therm, int line) in pwm_info() argument 31 u32 gpio = nvkm_rd32(device, 0x00d610 + (line * 0x04)); in pwm_info() 49 nvkm_error(subdev, "GPIO %d unknown PWM: %08x\n", line, gpio); in pwm_info() 54 gf119_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in gf119_fan_pwm_ctrl() argument 58 int indx = pwm_info(therm, line); in gf119_fan_pwm_ctrl() 62 nvkm_mask(device, 0x00d610 + (line * 0x04), 0x000000c0, data); in gf119_fan_pwm_ctrl() 71 int indx = pwm_info(therm, line); in gf119_fan_pwm_get() 75 if (nvkm_rd32(device, 0x00d610 + (line * 0x04)) & 0x00000040) { in gf119_fan_pwm_get() 93 int indx = pwm_info(therm, line); in gf119_fan_pwm_set() 107 gf119_fan_pwm_clock(struct nvkm_therm *therm, int line) in gf119_fan_pwm_clock() argument [all …]
|
| A D | nv40.c | 106 nv40_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in nv40_fan_pwm_ctrl() argument 111 if (line == 2) nvkm_mask(device, 0x0010f0, 0x80000000, mask); in nv40_fan_pwm_ctrl() 112 else if (line == 9) nvkm_mask(device, 0x0015f4, 0x80000000, mask); in nv40_fan_pwm_ctrl() 114 nvkm_error(subdev, "unknown pwm ctrl for gpio %d\n", line); in nv40_fan_pwm_ctrl() 125 if (line == 2) { in nv40_fan_pwm_get() 133 if (line == 9) { in nv40_fan_pwm_get() 141 nvkm_error(subdev, "unknown pwm ctrl for gpio %d\n", line); in nv40_fan_pwm_get() 149 nv40_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in nv40_fan_pwm_set() argument 153 if (line == 2) { in nv40_fan_pwm_set() 156 if (line == 9) { in nv40_fan_pwm_set() [all …]
|
| /drivers/media/pci/cx18/ |
| A D | cx18-vbi.c | 27 int line = 0; in copy_vbi_data() local 55 l = sdata->line - 6; in copy_vbi_data() 65 line++; in copy_vbi_data() 68 if (line == 36) { in copy_vbi_data() 74 size = 4 + ((43 * line + 3) & ~3); in copy_vbi_data() 133 u32 line = 0; in compress_sliced_buf() local 152 return line; in compress_sliced_buf() 167 cx->vbi.sliced_data[line].line = vbi.line; in compress_sliced_buf() 169 line++; in compress_sliced_buf() 172 return line; in compress_sliced_buf() [all …]
|
| /drivers/tty/serial/ |
| A D | sb1250-duart.c | 48 #define SBD_CHANREGS(line) A_BCM1480_DUART_CHANREG((line), 0) argument 49 #define SBD_CTRLREGS(line) A_BCM1480_DUART_CTRLREG((line), 0) argument 50 #define SBD_INT(line) (K_BCM1480_INT_UART_0 + (line)) argument 54 #define R_DUART_IMRREG(line) R_BCM1480_DUART_IMRREG(line) argument 55 #define R_DUART_INCHREG(line) R_BCM1480_DUART_INCHREG(line) argument 56 #define R_DUART_ISRREG(line) R_BCM1480_DUART_ISRREG(line) argument 62 #define SBD_CHANREGS(line) A_DUART_CHANREG((line), 0) argument 64 #define SBD_INT(line) (K_INT_UART_0 + (line)) argument 774 int max_lines, line; in sbd_probe_duarts() local 793 for (chip = 0, line = 0; chip < DUART_MAX_CHIP && line < max_lines; in sbd_probe_duarts() [all …]
|
| /drivers/scsi/qedi/ |
| A D | qedi_dbg.c | 11 qedi_dbg_err(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_err() argument 24 func, line, qedi->host_no, &vaf); in qedi_dbg_err() 26 pr_err("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_err() 32 qedi_dbg_warn(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_warn() argument 48 func, line, qedi->host_no, &vaf); in qedi_dbg_warn() 50 pr_warn("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_warn() 73 dev_name(&qedi->pdev->dev), func, line, in qedi_dbg_notice() 76 pr_notice("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_notice() 83 qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_info() argument 99 func, line, qedi->host_no, &vaf); in qedi_dbg_info() [all …]
|
| /drivers/acpi/acpica/ |
| A D | uttrack.c | 38 u32 component, const char *module, u32 line); 100 ACPI_WARNING((module, line, in acpi_ut_allocate_and_track() 111 ACPI_WARNING((module, line, in acpi_ut_allocate_and_track() 119 component, module, line); in acpi_ut_allocate_and_track() 155 const char *module, u32 line) in acpi_ut_allocate_zeroed_and_track() argument 163 ACPI_WARNING((module, line, in acpi_ut_allocate_zeroed_and_track() 175 ACPI_ERROR((module, line, in acpi_ut_allocate_zeroed_and_track() 182 line); in acpi_ut_allocate_zeroed_and_track() 369 allocation->line = line; in acpi_ut_track_allocation() 438 ACPI_ERROR((module, line, in acpi_ut_remove_allocation() [all …]
|
| /drivers/s390/char/ |
| A D | con3270.c | 294 line->len = 0; in tty3270_blank_screen() 327 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_required_length() 425 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_add_attributes() 1274 cell = line->cells + line->len; in tty3270_put_character() 1277 line->len++; in tty3270_put_character() 1279 line->len++; in tty3270_put_character() 1339 tty3270_reset_cell(tp, &line->cells[line->len++]); in tty3270_insert_characters() 1344 line->cells[tp->cx + n + k] = line->cells[tp->cx + k]; in tty3270_insert_characters() 1370 line->cells[i] = line->cells[i + n]; in tty3270_delete_characters() 1544 cell = line->cells + line->len; in tty3270_goto_xy() [all …]
|
| /drivers/tty/serial/8250/ |
| A D | 8250_hp300.c | 30 int line; /* line (tty) number */ member 161 int line; in hpdca_init_one() local 182 if (line < 0) { in hpdca_init_one() 191 dio_set_drvdata(d, (void *)line); in hpdca_init_one() 207 int line; in hp300_8250_init() local 264 if (line < 0) { in hp300_8250_init() 272 port->line = line; in hp300_8250_init() 290 int line; in hpdca_remove_one() local 292 line = (int) dio_get_drvdata(d); in hpdca_remove_one() 297 serial8250_unregister_port(line); in hpdca_remove_one() [all …]
|
| /drivers/of/unittest-data/ |
| A D | overlay_gpio_03.dtso | 15 gpio-line-names = "line-A", "line-B", "line-C", "line-D"; 17 line-d { 21 line-name = "line-D-input";
|