Home
last modified time | relevance | path

Searched refs:num_lines (Results 1 – 24 of 24) sorted by relevance

/linux/tools/gpio/
H A Dgpio-hammer.c25 int hammer_device(const char *device_name, unsigned int *lines, int num_lines, in hammer_device() argument
39 ret = gpiotools_request_line(device_name, lines, num_lines, in hammer_device()
48 for (i = 0; i < num_lines; i++) in hammer_device()
56 for (i = 0; i < num_lines; i++) { in hammer_device()
58 if (i != (num_lines - 1)) in hammer_device()
62 for (i = 0; i < num_lines; i++) { in hammer_device()
64 if (i != (num_lines - 1)) in hammer_device()
73 for (i = 0; i < num_lines; i++) in hammer_device()
91 for (i = 0; i < num_lines; i++) { in hammer_device()
94 if (i != (num_lines - 1)) in hammer_device()
[all …]
H A Dgpio-event-mon.c30 unsigned int num_lines, in monitor_device() argument
51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device()
61 for (i = 0; i < num_lines; i++) in monitor_device()
71 if (num_lines == 1) { in monitor_device()
77 for (i = 1; i < num_lines - 1; i++) in monitor_device()
82 for (i = 1; i < num_lines - 1; i++) in monitor_device()
171 unsigned int num_lines = 0; in main() local
188 if (num_lines >= GPIO_V2_LINES_MAX) { in main()
192 lines[num_lines] = strtoul(optarg, NULL, 10); in main()
193 num_lines++; in main()
[all …]
H A Dgpio-utils.c58 unsigned int num_lines, in gpiotools_request_line() argument
81 for (i = 0; i < num_lines; i++) in gpiotools_request_line()
86 req.num_lines = num_lines; in gpiotools_request_line()
206 unsigned int num_lines, unsigned int *values) in gpiotools_gets() argument
216 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_gets()
222 for (i = 0; i < num_lines; i++) in gpiotools_gets()
226 for (i = 0; i < num_lines; i++) in gpiotools_gets()
264 unsigned int num_lines, unsigned int *values) in gpiotools_sets() argument
273 for (i = 0; i < num_lines; i++) { in gpiotools_sets()
278 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_sets()
H A Dgpio-utils.h29 unsigned int num_lines,
38 unsigned int num_lines, unsigned int *values);
42 unsigned int num_lines, unsigned int *values);
/linux/drivers/gpio/
H A Dgpio-sim.c359 unsigned int num_lines = chip->gc.ngpio; in gpio_sim_setup_sysfs() local
366 num_lines + 1, GFP_KERNEL); in gpio_sim_setup_sysfs()
370 for (i = 0; i < num_lines; i++) { in gpio_sim_setup_sysfs()
426 u32 num_lines; in gpio_sim_add_bank() local
429 ret = fwnode_property_read_u32(swnode, "ngpios", &num_lines); in gpio_sim_add_bank()
433 if (num_lines > GPIO_SIM_NGPIO_MAX) in gpio_sim_add_bank()
448 chip->request_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
452 chip->direction_map = devm_bitmap_alloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
457 bitmap_fill(chip->direction_map, num_lines); in gpio_sim_add_bank()
459 chip->value_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
[all …]
H A Dgpiolib-cdev.c548 u32 num_lines; member
555 struct line lines[] __counted_by(num_lines);
796 le.seqno = (lr->num_lines == 1) ? le.line_seqno : line->req_seqno; in process_hw_ts_thread()
829 if (lr->num_lines != 1) in process_hw_ts()
893 if (lr->num_lines != 1) in edge_irq_thread()
913 le.seqno = (lr->num_lines == 1) ? le.line_seqno : line->req_seqno; in edge_irq_thread()
932 if (lr->num_lines != 1) in edge_irq_handler()
1021 le.seqno = (lr->num_lines == 1) ? in debounce_work_func()
1028 le.seqno = (lr->num_lines == 1) ? in debounce_work_func()
1325 unsigned int num_lines) in gpio_v2_line_config_validate() argument
[all …]
/linux/arch/arc/mm/
H A Dcache.c192 int num_lines; in __cache_line_loop_v3() local
213 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v3()
232 while (num_lines-- > 0) { in __cache_line_loop_v3()
252 int num_lines; in __cache_line_loop_v4() local
272 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v4()
290 while (num_lines-- > 0) { in __cache_line_loop_v4()
624 int num_lines; in slc_op_line() local
643 num_lines = DIV_ROUND_UP(sz, l2_line_sz); in slc_op_line()
645 while (num_lines-- > 0) { in slc_op_line()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/
H A Ddcn314_fpu.c286 unsigned int num_lines = 0; in micro_sec_to_vert_lines() local
291 num_lines = dml_ceil(1000.0 * num_us / lines_time_in_ns, 1.0); in micro_sec_to_vert_lines()
293 return num_lines; in micro_sec_to_vert_lines()
323 unsigned int num_lines = 0; in dcn314_populate_dml_pipes_from_context_fpu() local
331 num_lines = micro_sec_to_vert_lines(dcn3_14_ip.VBlankNomDefaultUS, timing); in dcn314_populate_dml_pipes_from_context_fpu()
341 pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, num_lines); in dcn314_populate_dml_pipes_from_context_fpu()
/linux/lib/kunit/
H A Dstring-stream-test.c169 int num_lines, i; in string_stream_line_add_test() local
186 num_lines = i; in string_stream_line_add_test()
197 for (i = 0; i < num_lines; ++i) { in string_stream_line_add_test()
225 int num_lines, i; in string_stream_variable_length_line_test() local
242 num_lines = i; in string_stream_variable_length_line_test()
254 for (i = 0; i < num_lines; ++i) { in string_stream_variable_length_line_test()
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-csid-4-1.c62 u32 num_lines, num_bytes_per_line; in csid_configure_stream() local
69 num_lines = input_format->height; in csid_configure_stream()
79 (num_lines & 0x1fff); in csid_configure_stream()
H A Dcamss-csid-4-7.c63 u32 num_bytes_per_line, num_lines; in csid_configure_stream() local
70 num_lines = input_format->height; in csid_configure_stream()
80 (num_lines & 0x1fff); in csid_configure_stream()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn351/
H A Ddcn351_fpu.c448 unsigned int num_lines = 0; in micro_sec_to_vert_lines() local
453 num_lines = dml_ceil(1000.0 * num_us / lines_time_in_ns, 1.0); in micro_sec_to_vert_lines()
455 return num_lines; in micro_sec_to_vert_lines()
485 unsigned int num_lines = 0; in dcn351_populate_dml_pipes_from_context_fpu() local
494 num_lines = micro_sec_to_vert_lines(dcn3_51_ip.VBlankNomDefaultUS, timing); in dcn351_populate_dml_pipes_from_context_fpu()
507 pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, num_lines); in dcn351_populate_dml_pipes_from_context_fpu()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn35/
H A Ddcn35_fpu.c414 unsigned int num_lines = 0; in micro_sec_to_vert_lines() local
419 num_lines = dml_ceil(1000.0 * num_us / lines_time_in_ns, 1.0); in micro_sec_to_vert_lines()
421 return num_lines; in micro_sec_to_vert_lines()
451 unsigned int num_lines = 0; in dcn35_populate_dml_pipes_from_context_fpu() local
460 num_lines = micro_sec_to_vert_lines(dcn3_5_ip.VBlankNomDefaultUS, timing); in dcn35_populate_dml_pipes_from_context_fpu()
473 pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, num_lines); in dcn35_populate_dml_pipes_from_context_fpu()
/linux/tools/testing/nvdimm/test/
H A Dndtest.h28 u32 num_lines; member
/linux/sound/soc/qcom/qdsp6/
H A Dq6afe-dai.c971 int id, i, num_lines; in of_q6afe_parse_dai_data() local
989 num_lines = 0; in of_q6afe_parse_dai_data()
991 num_lines = ret; in of_q6afe_parse_dai_data()
995 for (i = 0; i < num_lines; i++) in of_q6afe_parse_dai_data()
/linux/tools/testing/selftests/gpio/
H A Dgpio-sim.sh81 echo $NUM_LINES > $CONFIGFS_DIR/$CHIP/$BANK/num_lines || \
279 echo 8 > $CONFIGFS_DIR/chip/bank/num_lines 2> /dev/null && \
H A Dgpio-mockup-cdev.c28 req.num_lines = 1; in request_line_v2()
/linux/Documentation/admin-guide/gpio/
H A Dgpio-sim.rst42 **Attribute:** ``/config/gpio-sim/gpio-device/gpio-bankX/num_lines``
46 device name of the bank device. The ``'num_lines'`` attribute allows to specify
/linux/include/uapi/linux/
H A Dgpio.h199 __u32 num_lines; member
/linux/drivers/gpu/drm/
H A Ddrm_modes.c197 unsigned int num_lines; member
217 .num_lines = _lines, \
352 params->num_lines, in fill_analog_mode()
487 porches = params->num_lines - vactive - vslen; in fill_analog_mode()
498 if (params->num_lines != vtotal) { in fill_analog_mode()
500 vtotal, params->num_lines); in fill_analog_mode()
509 if (mode->vtotal != params->num_lines) in fill_analog_mode()
/linux/sound/soc/qcom/
H A Dlpass-cpu.c1013 int num_lines, i; in of_lpass_cpu_parse_sd_lines() local
1015 num_lines = of_property_read_variable_u32_array(node, name, lines, 0, in of_lpass_cpu_parse_sd_lines()
1017 if (num_lines < 0) in of_lpass_cpu_parse_sd_lines()
1020 for (i = 0; i < num_lines; i++) in of_lpass_cpu_parse_sd_lines()
/linux/drivers/acpi/nfit/
H A Dnfit.h295 u32 num_lines; member
/linux/arch/powerpc/include/asm/
H A Dopal.h132 int64_t opal_write_oppanel(oppanel_line_t *lines, uint64_t num_lines);
187 uint64_t num_lines);
/linux/drivers/gpu/drm/tidss/
H A Dtidss_dispc.c989 u32 hw_videoport, int num_lines) in dispc_set_num_datalines() argument
993 switch (num_lines) { in dispc_set_num_datalines()