| /drivers/comedi/drivers/ni_routing/tools/ |
| A D | convert_csv_to_c.py | 19 lines = [ 45 lines.append('\t\t[B({})] = {{'.format(D0_sig)) 53 lines.append('\t\t},') 54 lines.append('\t},') 56 lines = '\n'.join(lines) 58 return N, lines 60 return lines 91 lines = [ '{I0}.device = "{name}",\n' 106 lines.append('{I2}}}\n{I1}}},'.format(**indents)) 111 lines.append('{I0}}},'.format(**indents)) [all …]
|
| /drivers/media/pci/cx18/ |
| A D | cx18-vbi.c | 25 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument 48 for (i = 0; i < lines; i++) { in copy_vbi_data() 98 u32 lines = cx->vbi.count * 2; in compress_raw_buf() local 106 for (i = 0; i < lines; i++) { in compress_raw_buf() 114 if (i == lines - 1) { in compress_raw_buf() 125 return lines * (line_size - 4); in compress_raw_buf() 190 int lines; in _cx18_process_vbi_data() local 223 if (lines == 0) { in _cx18_process_vbi_data() 227 lines = 1; in _cx18_process_vbi_data() 229 buf->bytesused = size = lines * sizeof(cx->vbi.sliced_data[0]); in _cx18_process_vbi_data() [all …]
|
| /drivers/staging/greybus/ |
| A D | gpio.c | 38 struct gb_gpio_line *lines; member 80 ggc->lines[which].active = true; in gb_gpio_activate_operation() 101 ggc->lines[which].active = false; in gb_gpio_deactivate_operation() 142 ggc->lines[which].direction = 1; in gb_gpio_direction_in_operation() 157 ggc->lines[which].direction = 0; in gb_gpio_direction_out_operation() 184 ggc->lines[which].value = value ? 1 : 0; in gb_gpio_get_value_operation() 453 return ggc->lines[which].value; in gb_gpio_get() 488 ggc->lines = kcalloc(ggc->line_max + 1, sizeof(*ggc->lines), in gb_gpio_controller_setup() 490 if (!ggc->lines) in gb_gpio_controller_setup() 583 kfree(ggc->lines); in gb_gpio_probe() [all …]
|
| /drivers/video/console/ |
| A D | mdacon.c | 495 enum con_scroll dir, unsigned int lines) in mdacon_scroll() argument 499 if (!lines) in mdacon_scroll() 502 if (lines > c->vc_rows) /* maximum realistic size */ in mdacon_scroll() 503 lines = c->vc_rows; in mdacon_scroll() 508 scr_memmovew(mda_addr(0, t), mda_addr(0, t + lines), in mdacon_scroll() 509 (b-t-lines)*mda_num_columns*2); in mdacon_scroll() 510 scr_memsetw(mda_addr(0, b - lines), eattr, in mdacon_scroll() 511 lines*mda_num_columns*2); in mdacon_scroll() 515 scr_memmovew(mda_addr(0, t + lines), mda_addr(0, t), in mdacon_scroll() 516 (b-t-lines)*mda_num_columns*2); in mdacon_scroll() [all …]
|
| A D | newport_con.c | 580 enum con_scroll dir, unsigned int lines) in newport_scroll() argument 590 topscan = (topscan + (lines << 4)) & 0x3ff; in newport_scroll() 591 newport_clear_lines(vc->vc_rows - lines, in newport_scroll() 595 topscan = (topscan + (-lines << 4)) & 0x3ff; in newport_scroll() 596 newport_clear_lines(0, lines - 1, in newport_scroll() 603 count = (b - t - lines) * vc->vc_cols; in newport_scroll() 608 vc->vc_size_row * (t + lines)); in newport_scroll() 624 vc->vc_size_row * (b - lines)); in newport_scroll() 626 y = b - lines; in newport_scroll() 627 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll() [all …]
|
| /drivers/gpio/ |
| A D | gpio-mockup.c | 55 struct gpio_mockup_line_status *lines; member 89 return chip->lines[offset].value; in __gpio_mockup_get() 122 chip->lines[offset].value = !!value; in __gpio_mockup_set() 191 chip->lines[offset].pull = value; in gpio_mockup_apply_pull() 240 direction = chip->lines[offset].dir; in gpio_mockup_get_direction() 257 chip->lines[offset].requested = true; in gpio_mockup_request() 268 chip->lines[offset].requested = false; in gpio_mockup_free() 463 chip->lines = devm_kcalloc(dev, gc->ngpio, in gpio_mockup_probe() 464 sizeof(*chip->lines), GFP_KERNEL); in gpio_mockup_probe() 465 if (!chip->lines) in gpio_mockup_probe() [all …]
|
| A D | gpio-virtio.c | 48 struct virtio_gpio_line *lines; member 61 struct virtio_gpio_line *line = &vgpio->lines[gpio]; in _virtio_gpio_req() 129 struct virtio_gpio_line *line = &vgpio->lines[gpio]; in virtio_gpio_req() 552 vgpio->lines = devm_kcalloc(dev, ngpio, sizeof(*vgpio->lines), GFP_KERNEL); in virtio_gpio_probe() 553 if (!vgpio->lines) in virtio_gpio_probe() 557 mutex_init(&vgpio->lines[i].lock); in virtio_gpio_probe() 558 init_completion(&vgpio->lines[i].completion); in virtio_gpio_probe()
|
| A D | gpiolib-cdev.c | 311 if ((handlereq.lines == 0) || (handlereq.lines > GPIOHANDLES_MAX)) in linehandle_create() 336 lh->num_descs = handlereq.lines; in linehandle_create() 1298 descs = &lr->lines[i].desc; in linereq_get_values() 1329 if (lr->lines[i].sw_debounced) in linereq_get_values() 1374 descs = &lr->lines[i].desc; in linereq_set_values() 1419 line = &lr->lines[i]; in linereq_set_config() 1420 desc = lr->lines[i].desc; in linereq_set_config() 1564 if (lr->lines[i].desc) { in linereq_free() 1645 lr->lines[i].req = lr; in linereq_create() 1685 lr->lines[i].desc = desc; in linereq_create() [all …]
|
| /drivers/media/i2c/ |
| A D | ak881x.c | 31 unsigned int lines; member 105 &mf->height, 0, ak881x->lines, 1, 0); in ak881x_fill_fmt() 139 sel->r.height = ak881x->lines; in ak881x_get_selection() 154 ak881x->lines = 480; in ak881x_s_std_output() 157 ak881x->lines = 480; in ak881x_s_std_output() 160 ak881x->lines = 480; in ak881x_s_std_output() 163 ak881x->lines = 480; in ak881x_s_std_output() 166 ak881x->lines = 576; in ak881x_s_std_output() 291 ak881x->lines = 480; in ak881x_probe()
|
| /drivers/media/pci/ivtv/ |
| A D | ivtv-vbi.c | 190 for (i = 0; i < lines; i++) { in copy_vbi_data() 302 u32 lines = itv->vbi.count; in compress_raw_buf() local 309 for (i = 0; i < lines; i++) { in compress_raw_buf() 319 return lines * (line_size - 4); in compress_raw_buf() 330 unsigned lines = 0; in compress_sliced_buf() local 352 lines |= 1 << vbi.line; in compress_sliced_buf() 393 int lines; in ivtv_process_vbi_data() local 403 lines = compress_sliced_buf(itv, lines, p + size / 2 - 32, size / 2 + 32, in ivtv_process_vbi_data() 406 if (lines == 0) { in ivtv_process_vbi_data() 410 lines = 1; in ivtv_process_vbi_data() [all …]
|
| /drivers/media/pci/cx25821/ |
| A D | cx25821-core.c | 421 unsigned int i, lines; in cx25821_sram_channel_setup() local 436 if (lines > 4) in cx25821_sram_channel_setup() 437 lines = 4; in cx25821_sram_channel_setup() 439 BUG_ON(lines < 2); in cx25821_sram_channel_setup() 489 unsigned int i, lines; in cx25821_sram_channel_setup_audio() local 504 if (lines > 3) in cx25821_sram_channel_setup_audio() 507 BUG_ON(lines < 2); in cx25821_sram_channel_setup_audio() 1072 lines); in cx25821_risc_buffer() 1084 lines, true); in cx25821_risc_buffer() 1175 instructions = 1 + (bpl * lines) / PAGE_SIZE + lines; in cx25821_risc_databuffer_audio() [all …]
|
| /drivers/media/pci/cx23885/ |
| A D | cx23885-vbi.c | 119 unsigned lines = VBI_PAL_LINE_COUNT; in queue_setup() local 122 lines = VBI_NTSC_LINE_COUNT; in queue_setup() 124 sizes[0] = lines * VBI_LINE_LENGTH * 2; in queue_setup() 135 unsigned lines = VBI_PAL_LINE_COUNT; in buffer_prepare() local 138 lines = VBI_NTSC_LINE_COUNT; in buffer_prepare() 140 if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2) in buffer_prepare() 142 vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2); in buffer_prepare() 146 0, VBI_LINE_LENGTH * lines, in buffer_prepare() 148 lines); in buffer_prepare()
|
| A D | cx23885-core.c | 458 unsigned int i, lines; in cx23885_sram_channel_setup() local 476 lines = ch->fifo_size / bpl; in cx23885_sram_channel_setup() 477 if (lines > 6) in cx23885_sram_channel_setup() 478 lines = 6; in cx23885_sram_channel_setup() 479 BUG_ON(lines < 2); in cx23885_sram_channel_setup() 486 for (i = 0; i < lines; i++) { in cx23885_sram_channel_setup() 521 lines); in cx23885_sram_channel_setup() 1218 / PAGE_SIZE + lines); in cx23885_risc_buffer() 1255 instructions = 1 + (bpl * lines) / PAGE_SIZE + lines; in cx23885_risc_databuffer() 1267 bpl, 0, lines, lpi, lpi == 0); in cx23885_risc_databuffer() [all …]
|
| /drivers/media/pci/tw68/ |
| A D | tw68-risc.c | 36 unsigned int lines, bool jump) in tw68_risc_field() argument 55 for (line = 0; line < lines; line++) { in tw68_risc_field() 135 unsigned int lines) in tw68_risc_buffer() argument 151 instructions = fields * (1 + (((bpl + padding) * lines) / in tw68_risc_buffer() 152 PAGE_SIZE) + lines) + 4; in tw68_risc_buffer() 163 bpl, padding, lines, true); in tw68_risc_buffer() 166 bpl, padding, lines, top_offset == UNSET); in tw68_risc_buffer()
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_psr_regs.h | 170 #define EDP_PSR2_IO_BUFFER_WAKE(lines) REG_FIELD_PREP(EDP_PSR2_IO_BUFFER_WAKE_MASK, \ argument 171 EDP_PSR2_IO_BUFFER_WAKE_MAX_LINES - (lines)) 174 #define TGL_EDP_PSR2_IO_BUFFER_WAKE(lines) REG_FIELD_PREP(TGL_EDP_PSR2_IO_BUFFER_WAKE_MASK, \ argument 175 (lines) - TGL_EDP_PSR2_IO_BUFFER_WAKE_MIN_LINES) 178 #define LNL_EDP_PSR2_IO_BUFFER_WAKE(lines) REG_FIELD_PREP(LNL_EDP_PSR2_IO_BUFFER_WAKE_MASK, \ argument 179 (lines) - LNL_EDP_PSR2_IO_BUFFER_WAKE_MIN_LINES) 182 #define EDP_PSR2_FAST_WAKE(lines) REG_FIELD_PREP(EDP_PSR2_FAST_WAKE_MASK, \ argument 183 EDP_PSR2_FAST_WAKE_MAX_LINES - (lines)) 186 #define TGL_EDP_PSR2_FAST_WAKE(lines) REG_FIELD_PREP(TGL_EDP_PSR2_FAST_WAKE_MASK, \ argument 187 (lines) - TGL_EDP_PSR2_FAST_WAKE_MIN_LINES) [all …]
|
| A D | skl_watermark.c | 1559 wm->wm[level].lines = wm->wm[level - 1].lines; in skl_crtc_allocate_plane_ddb() 1912 lines = 0; in skl_compute_plane_wm() 1927 result->lines = lines; in skl_compute_plane_wm() 2393 l1->lines == l2->lines && in skl_wm_level_equals() 3880 sw_wm_level->lines, in intel_wm_state_verify() 3883 hw_wm_level->lines); in intel_wm_state_verify() 3895 sw_wm_level->lines, in intel_wm_state_verify() 3898 hw_wm_level->lines); in intel_wm_state_verify() 3911 sw_wm_level->lines, in intel_wm_state_verify() 3914 hw_wm_level->lines); in intel_wm_state_verify() [all …]
|
| /drivers/media/pci/cx88/ |
| A D | cx88-core.c | 89 for (line = 0; line < lines; line++) { in cx88_risc_field() 151 PAGE_SIZE + lines); in cx88_risc_buffer() 167 bpl, padding, lines, 0, in cx88_risc_buffer() 190 instructions = 1 + (bpl * lines) / PAGE_SIZE + lines; in cx88_risc_databuffer() 202 lines, lpi, !lpi); in cx88_risc_databuffer() 346 unsigned int i, lines; in cx88_sram_channel_setup() local 351 lines = ch->fifo_size / bpl; in cx88_sram_channel_setup() 352 if (lines > 6) in cx88_sram_channel_setup() 353 lines = 6; in cx88_sram_channel_setup() 354 WARN_ON(lines < 2); in cx88_sram_channel_setup() [all …]
|
| A D | cx88-vbi.c | 135 unsigned int lines; in buffer_prepare() local 139 lines = VBI_LINE_NTSC_COUNT; in buffer_prepare() 141 lines = VBI_LINE_PAL_COUNT; in buffer_prepare() 142 size = lines * VBI_LINE_LENGTH * 2; in buffer_prepare() 148 0, VBI_LINE_LENGTH * lines, in buffer_prepare() 150 lines); in buffer_prepare()
|
| /drivers/misc/sgi-gru/ |
| A D | grukservices.c | 130 char lines; member 581 .present = MQS_NOOP, .lines = 1}; in send_noop_message() 636 void *mesg, int lines) in send_message_queue_full() argument 705 void *mesg, int lines) in send_message_put_nacked() argument 711 if (lines == 2) { in send_message_put_nacked() 753 void *mesg, int lines) in send_message_failure() argument 811 mhdr->lines = clines; in gru_send_message_gpa() 841 int lines = mhdr->lines; in gru_free_message() local 843 if (lines == 2) in gru_free_message() 848 next = pnext + GRU_CACHE_LINE_BYTES * lines; in gru_free_message() [all …]
|
| /drivers/staging/media/ipu7/ |
| A D | ipu7-cpd.c | 226 char *lines[ONLINE_METADATA_LINES]; in ipu7_cpd_validate_cpd_file() local 235 lines[l] = strsep((char **)&info, "\n"); in ipu7_cpd_validate_cpd_file() 236 if (!lines[l]) in ipu7_cpd_validate_cpd_file() 244 dev_info(dev, "Name: %s\n", lines[1]); in ipu7_cpd_validate_cpd_file() 245 dev_info(dev, "Version: %s\n", lines[2]); in ipu7_cpd_validate_cpd_file() 246 dev_info(dev, "Timestamp: %s\n", lines[3]); in ipu7_cpd_validate_cpd_file() 247 dev_info(dev, "Commit: %s\n", lines[4]); in ipu7_cpd_validate_cpd_file()
|
| /drivers/staging/gpib/common/ |
| A D | iblib.c | 68 int lines; in check_for_command_acceptors() local 77 lines = board->interface->line_status(board); in check_for_command_acceptors() 78 if (lines < 0) in check_for_command_acceptors() 79 return lines; in check_for_command_acceptors() 81 if ((lines & VALID_NRFD) && (lines & VALID_NDAC)) { in check_for_command_acceptors() 82 if ((lines & BUS_NRFD) == 0 && (lines & BUS_NDAC) == 0) in check_for_command_acceptors() 276 int iblines(const struct gpib_board *board, short *lines) in iblines() argument 280 *lines = 0; in iblines() 286 *lines = retval; in iblines()
|
| /drivers/net/ppp/ |
| A D | Kconfig | 12 serial) lines. Ask your access provider if they support it, because 23 asynchronous lines, such as regular analog phone lines, and 24 synchronous PPP which can be used over digital ISDN lines for 25 example. If you want to use PPP over phone lines or other 26 asynchronous serial lines, you need to say Y (or M) here and also to 28 synchronous lines, you should say Y (or M) here and to "Support 103 to combine several (logical or physical) lines into one logical PPP 206 are often used for high-speed leased lines like T1/E1.
|
| /drivers/s390/char/ |
| A D | con3270.c | 902 for (lines = 0; lines < allocated; lines++) { in tty3270_alloc_screen() 910 while (lines--) in tty3270_alloc_screen() 919 char **lines; in tty3270_alloc_recall() local 923 if (!lines) in tty3270_alloc_recall() 927 if (!lines[i]) in tty3270_alloc_recall() 932 return lines; in tty3270_alloc_recall() 935 kfree(lines[i]); in tty3270_alloc_recall() 936 kfree(lines); in tty3270_alloc_recall() 946 kfree(lines); in tty3270_free_recall() 954 int lines; in tty3270_free_screen() local [all …]
|
| /drivers/hte/ |
| A D | Kconfig | 8 timestamp certain device lines/signals in realtime. It comes with a 25 lines for timestamping in realtime. 32 framework to timestamp GPIO and LIC IRQ lines.
|
| /drivers/staging/media/atomisp/pci/css_2401_system/ |
| A D | ibuf_ctrl_global.h | 33 u32 lines; /* lines in the buffer */ member 57 u32 lines; member
|