Home
last modified time | relevance | path

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

/linux-6.6.21/tools/gpio/
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 …]
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 …]
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()
Dgpio-utils.h29 unsigned int num_lines,
38 unsigned int num_lines, unsigned int *values);
42 unsigned int num_lines, unsigned int *values);
/linux-6.6.21/drivers/char/
Dpowernv-op-panel.c34 static u32 num_lines, oppanel_size; variable
63 rc = opal_write_oppanel_async(token, oppanel_lines, num_lines); in __op_panel_update_display()
156 rc = of_property_read_u32(np, "#lines", &num_lines); in oppanel_probe()
161 oppanel_size = line_len * num_lines; in oppanel_probe()
164 oppanel_size, num_lines, line_len); in oppanel_probe()
170 oppanel_lines = kcalloc(num_lines, sizeof(oppanel_line_t), GFP_KERNEL); in oppanel_probe()
177 for (i = 0; i < num_lines; i++) { in oppanel_probe()
/linux-6.6.21/drivers/gpio/
Dgpio-sim.c306 unsigned int num_lines = chip->gc.ngpio; in gpio_sim_setup_sysfs() local
313 num_lines + 1, GFP_KERNEL); in gpio_sim_setup_sysfs()
317 for (i = 0; i < num_lines; i++) { in gpio_sim_setup_sysfs()
369 u32 num_lines; in gpio_sim_add_bank() local
372 ret = fwnode_property_read_u32(swnode, "ngpios", &num_lines); in gpio_sim_add_bank()
376 if (num_lines > GPIO_SIM_NGPIO_MAX) in gpio_sim_add_bank()
391 chip->direction_map = devm_bitmap_alloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
396 bitmap_fill(chip->direction_map, num_lines); in gpio_sim_add_bank()
398 chip->value_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
402 chip->pull_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
[all …]
Dgpiolib-cdev.c568 u32 num_lines; member
700 le.seqno = (lr->num_lines == 1) ? le.line_seqno : line->req_seqno; in process_hw_ts_thread()
733 if (lr->num_lines != 1) in process_hw_ts()
797 if (lr->num_lines != 1) in edge_irq_thread()
817 le.seqno = (lr->num_lines == 1) ? le.line_seqno : line->req_seqno; in edge_irq_thread()
836 if (lr->num_lines != 1) in edge_irq_handler()
925 le.seqno = (lr->num_lines == 1) ? in debounce_work_func()
932 le.seqno = (lr->num_lines == 1) ? in debounce_work_func()
1202 unsigned int num_lines) in gpio_v2_line_config_validate() argument
1214 for (i = 0; i < num_lines; i++) { in gpio_v2_line_config_validate()
[all …]
/linux-6.6.21/arch/arc/mm/
Dcache.c193 int num_lines; in __cache_line_loop_v3() local
214 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v3()
233 while (num_lines-- > 0) { in __cache_line_loop_v3()
253 int num_lines; in __cache_line_loop_v4() local
273 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v4()
291 while (num_lines-- > 0) { in __cache_line_loop_v4()
625 int num_lines; in slc_op_line() local
644 num_lines = DIV_ROUND_UP(sz, l2_line_sz); in slc_op_line()
646 while (num_lines-- > 0) { in slc_op_line()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn314/
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-6.6.21/drivers/media/platform/qcom/camss/
Dcamss-csid-4-1.c184 u32 num_lines, num_bytes_per_line; in csid_configure_stream() local
190 num_lines = input_format->height; in csid_configure_stream()
200 (num_lines & 0x1fff); in csid_configure_stream()
Dcamss-csid-4-7.c213 u32 num_bytes_per_line, num_lines; in csid_configure_stream() local
219 num_lines = input_format->height; in csid_configure_stream()
229 (num_lines & 0x1fff); in csid_configure_stream()
/linux-6.6.21/tools/testing/nvdimm/test/
Dndtest.h59 u32 num_lines; member
/linux-6.6.21/tools/testing/selftests/gpio/
Dgpio-sim.sh81 echo $NUM_LINES > $CONFIGFS_DIR/$CHIP/$BANK/num_lines || \
279 echo 8 > $CONFIGFS_DIR/chip/bank/num_lines 2> /dev/null && \
Dgpio-mockup-cdev.c28 req.num_lines = 1; in request_line_v2()
/linux-6.6.21/sound/soc/qcom/qdsp6/
Dq6afe-dai.c966 int id, i, num_lines; in of_q6afe_parse_dai_data() local
984 num_lines = 0; in of_q6afe_parse_dai_data()
986 num_lines = ret; in of_q6afe_parse_dai_data()
990 for (i = 0; i < num_lines; i++) in of_q6afe_parse_dai_data()
/linux-6.6.21/Documentation/admin-guide/gpio/
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-6.6.21/include/uapi/linux/
Dgpio.h200 __u32 num_lines; member
/linux-6.6.21/drivers/gpu/drm/
Ddrm_modes.c197 unsigned int num_lines; member
217 .num_lines = _lines, \
352 params->num_lines, in fill_analog_mode()
486 porches = params->num_lines - vactive - vslen; in fill_analog_mode()
497 if (params->num_lines != vtotal) { in fill_analog_mode()
499 vtotal, params->num_lines); in fill_analog_mode()
508 if (mode->vtotal != params->num_lines) in fill_analog_mode()
/linux-6.6.21/sound/soc/qcom/
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-6.6.21/drivers/acpi/nfit/
Dnfit.h295 u32 num_lines; member
/linux-6.6.21/arch/powerpc/include/asm/
Dopal.h132 int64_t opal_write_oppanel(oppanel_line_t *lines, uint64_t num_lines);
187 uint64_t num_lines);
/linux-6.6.21/drivers/gpu/drm/tidss/
Dtidss_dispc.c933 u32 hw_videoport, int num_lines) in dispc_set_num_datalines() argument
937 switch (num_lines) { in dispc_set_num_datalines()