/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_vcap_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 79 struct vcap_output_print *out) in sparx5_vcap_is0_port_keys() argument 84 out->prf(out->dst, " port[%02d] (%s): ", port->portno, in sparx5_vcap_is0_port_keys() 85 netdev_name(port->ndev)); in sparx5_vcap_is0_port_keys() 86 for (lookup = 0; lookup < admin->lookups; ++lookup) { in sparx5_vcap_is0_port_keys() 87 out->prf(out->dst, "\n Lookup %d: ", lookup); in sparx5_vcap_is0_port_keys() 91 ANA_CL_ADV_CL_CFG(port->portno, lookup)); in sparx5_vcap_is0_port_keys() 92 out->prf(out->dst, "\n state: "); in sparx5_vcap_is0_port_keys() 94 out->prf(out->dst, "on"); in sparx5_vcap_is0_port_keys() 96 out->prf(out->dst, "off"); in sparx5_vcap_is0_port_keys() [all …]
|
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_vcap_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 struct vcap_output_print *out) in lan966x_vcap_is1_port_keys() argument 12 struct lan966x *lan966x = port->lan966x; in lan966x_vcap_is1_port_keys() 15 out->prf(out->dst, " port[%d] (%s): ", port->chip_port, in lan966x_vcap_is1_port_keys() 16 netdev_name(port->dev)); in lan966x_vcap_is1_port_keys() 18 val = lan_rd(lan966x, ANA_VCAP_CFG(port->chip_port)); in lan966x_vcap_is1_port_keys() 19 out->prf(out->dst, "\n state: "); in lan966x_vcap_is1_port_keys() 21 out->prf(out->dst, "on"); in lan966x_vcap_is1_port_keys() 23 out->prf(out->dst, "off"); in lan966x_vcap_is1_port_keys() 25 for (int l = 0; l < admin->lookups; ++l) { in lan966x_vcap_is1_port_keys() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/ |
D | dml2_translation_helper.c | 1 /* SPDX-License-Identifier: MIT */ 20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 34 …id dml2_init_ip_params(struct dml2_context *dml2, const struct dc *in_dc, struct ip_params_st *out) in dml2_init_ip_params() argument 36 switch (dml2->v20.dml_core_ctx.project) { in dml2_init_ip_params() 41 out->vblank_nom_default_us = 600; in dml2_init_ip_params() 42 out->rob_buffer_size_kbytes = 128; in dml2_init_ip_params() 43 out->config_return_buffer_size_in_kbytes = 1280; in dml2_init_ip_params() 44 out->config_return_buffer_segment_size_in_kbytes = 64; in dml2_init_ip_params() 45 out->compressed_buffer_segment_size_in_kbytes = 64; in dml2_init_ip_params() 46 out->meta_fifo_size_in_kentries = 22; in dml2_init_ip_params() [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | printbuf.c | 1 // SPDX-License-Identifier: LGPL-2.1+ 15 return pos - buf->last_newline; in __printbuf_linelen() 20 return __printbuf_linelen(buf, buf->pos); in printbuf_linelen() 28 return buf->cur_tabstop < buf->nr_tabstops in cur_tabstop() 29 ? buf->_tabstops[buf->cur_tabstop] in cur_tabstop() 33 int bch2_printbuf_make_room(struct printbuf *out, unsigned extra) in bch2_printbuf_make_room() argument 38 if (out->pos + extra <= out->size) in bch2_printbuf_make_room() 41 if (!out->heap_allocated) { in bch2_printbuf_make_room() 42 out->overflow = true; in bch2_printbuf_make_room() 46 unsigned new_size = roundup_pow_of_two(out->size + extra); in bch2_printbuf_make_room() [all …]
|
D | printbuf.h | 1 /* SPDX-License-Identifier: LGPL-2.1+ */ 25 * everything to the kernel log buffer, and then those pretty-printers can be 33 * will be done with GFP_NOWAIT if printbuf->atomic is nonzero. 40 * memory allocation failure we usually don't want to bail out and unwind - we 41 * want to print what we've got, on a best-effort basis. But code that does want 42 * to return -ENOMEM may check printbuf.allocation_failure. 46 * To aid is writing multi-line pretty printers spread across multiple 52 * To use tabstops, set printbuf->tabstops[]; they are in units of spaces, from 56 * next tabstop - right justifying it. 61 * Output units: printbuf->units exists to tell pretty-printers how to output [all …]
|
D | util.c | 1 // SPDX-License-Identifier: GPL-2.0 46 return -EINVAL; in parse_u64() 50 return -ERANGE; in parse_u64() 52 if (v > U64_MAX - (*cp - '0')) in parse_u64() 53 return -ERANGE; in parse_u64() 54 v += *cp - '0'; in parse_u64() 59 return cp - start; in parse_u64() 66 while (p--) { in bch2_pow() 68 return -ERANGE; in bch2_pow() 110 return cp - start; in parse_unit_suffix() [all …]
|
D | super-io.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "sb-clean.h" 15 #include "sb-counters.h" 16 #include "sb-downgrade.h" 17 #include "sb-errors.h" 18 #include "sb-members.h" 19 #include "super-io.h" 24 #include <linux/backing-dev.h> 44 void bch2_version_to_text(struct printbuf *out, unsigned v) in bch2_version_to_text() argument 54 prt_printf(out, "%u.%u: %s", BCH_VERSION_MAJOR(v), BCH_VERSION_MINOR(v), str); in bch2_version_to_text() [all …]
|
/linux-6.12.1/drivers/usb/host/ |
D | uhci-debug.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * UHCI-specific debugging code. Invaluable when something 10 * (C) Copyright 1999-2001 Johannes Erdfelt 18 #include "uhci-hcd.h" 46 char *out = buf; in uhci_show_td() local 51 out += sprintf(out, "%*s[%p] link (%08x) ", space, "", td, in uhci_show_td() 52 hc32_to_cpu(uhci, td->link)); in uhci_show_td() 53 out += sprintf(out, "e%d %s%s%s%s%s%s%s%s%s%sLength=%x ", in uhci_show_td() 66 if (out - buf > len) in uhci_show_td() 75 spid = "OUT"; in uhci_show_td() [all …]
|
/linux-6.12.1/fs/ocfs2/dlm/ |
D | dlmdebug.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 spin_lock(&res->spinlock); in dlm_print_one_lock_resource() 37 spin_unlock(&res->spinlock); in dlm_print_one_lock_resource() 43 assert_spin_locked(&res->spinlock); in dlm_print_lockres_refmap() 48 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit); in dlm_print_lockres_refmap() 54 printk("], inflight=%u\n", res->inflight_locks); in dlm_print_lockres_refmap() 59 spin_lock(&lock->spinlock); in __dlm_print_lock() 64 lock->ml.type, lock->ml.convert_type, lock->ml.node, in __dlm_print_lock() 65 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_print_lock() 66 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in __dlm_print_lock() [all …]
|
/linux-6.12.1/drivers/net/ethernet/microchip/vcap/ |
D | vcap_api_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 23 struct vcap_output_print *out, in vcap_debugfs_show_rule_keyfield() argument 32 out->prf(out->dst, " %s: W%d: ", vcap_keyfield_name(vctrl, key), in vcap_debugfs_show_rule_keyfield() 37 out->prf(out->dst, "%d/%d", data->u1.value, data->u1.mask); in vcap_debugfs_show_rule_keyfield() 40 value = (u8 *)(&data->u32.value); in vcap_debugfs_show_rule_keyfield() 41 mask = (u8 *)(&data->u32.mask); in vcap_debugfs_show_rule_keyfield() 44 out->prf(out->dst, "%pI4h/%pI4h", &data->u32.value, in vcap_debugfs_show_rule_keyfield() 45 &data->u32.mask); in vcap_debugfs_show_rule_keyfield() 51 u32 fmsk = (1 << keyfield[key].width) - 1; in vcap_debugfs_show_rule_keyfield() 55 out->prf(out->dst, "%u/%u", data->u32.value & fmsk, in vcap_debugfs_show_rule_keyfield() [all …]
|
/linux-6.12.1/sound/soc/meson/ |
D | axg-frddr.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 17 #include <sound/soc-dai.h> 19 #include "axg-fifo.h" 41 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_frddr_dai_prepare() 43 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_frddr_dai_prepare() 45 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_frddr_dai_prepare() 61 depth = min(period, fifo->depth); in axg_frddr_dai_hw_params() 62 val = (depth / AXG_FIFO_BURST) - 1; in axg_frddr_dai_hw_params() 63 regmap_update_bits(fifo->map, FIFO_CTRL1, CTRL1_FRDDR_DEPTH, in axg_frddr_dai_hw_params() 76 ret = clk_prepare_enable(fifo->pclk); in axg_frddr_dai_startup() [all …]
|
/linux-6.12.1/tools/perf/util/ |
D | data-convert-json.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include "data-convert.h" 31 #include <traceevent/event-parse.h> 36 FILE *out; member 41 // Outputs a JSON-encoded string surrounded by quotes with characters escaped. 42 static void output_json_string(FILE *out, const char *s) in output_json_string() argument 44 fputc('"', out); in output_json_string() 49 case '"': fputs("\\\"", out); break; in output_json_string() 50 case '\\': fputs("\\\\", out); break; in output_json_string() 51 case '\b': fputs("\\b", out); break; in output_json_string() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | test_core_reloc_type_based.c | 1 // SPDX-License-Identifier: GPL-2.0 14 char out[256]; member 112 struct core_reloc_type_based_output *out = (void *)&data.out; in test_core_type_based() local 114 out->struct_exists = bpf_core_type_exists(struct a_struct); in test_core_type_based() 115 out->complex_struct_exists = bpf_core_type_exists(struct a_complex_struct); in test_core_type_based() 116 out->union_exists = bpf_core_type_exists(union a_union); in test_core_type_based() 117 out->enum_exists = bpf_core_type_exists(enum an_enum); in test_core_type_based() 118 out->typedef_named_struct_exists = bpf_core_type_exists(named_struct_typedef); in test_core_type_based() 119 out->typedef_anon_struct_exists = bpf_core_type_exists(anon_struct_typedef); in test_core_type_based() 120 out->typedef_struct_ptr_exists = bpf_core_type_exists(struct_ptr_typedef); in test_core_type_based() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/ |
D | dml2_pmo_factory.c | 1 // SPDX-License-Identifier: MIT 25 bool dml2_pmo_create(enum dml2_project_id project_id, struct dml2_pmo_instance *out) in dml2_pmo_create() argument 29 if (out == 0) in dml2_pmo_create() 32 memset(out, 0, sizeof(struct dml2_pmo_instance)); in dml2_pmo_create() 36 out->initialize = pmo_dcn4_fams2_initialize; in dml2_pmo_create() 37 out->optimize_dcc_mcache = pmo_dcn4_fams2_optimize_dcc_mcache; in dml2_pmo_create() 41 out->initialize = pmo_dcn3_initialize; in dml2_pmo_create() 43 out->optimize_dcc_mcache = pmo_dcn3_optimize_dcc_mcache; in dml2_pmo_create() 45 out->init_for_vmin = pmo_dcn3_init_for_vmin; in dml2_pmo_create() 46 out->test_for_vmin = pmo_dcn3_test_for_vmin; in dml2_pmo_create() [all …]
|
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/encoder/ |
D | venc_vpu_if.c | 1 // SPDX-License-Identifier: GPL-2.0 15 vpu->inst_addr = msg->vpu_inst_addr; in handle_enc_init_msg() 16 vpu->vsi = mtk_vcodec_fw_map_dm_addr(vpu->ctx->dev->fw_handler, in handle_enc_init_msg() 17 msg->vpu_inst_addr); in handle_enc_init_msg() 20 if (mtk_vcodec_fw_get_type(vpu->ctx->dev->fw_handler) == VPU) in handle_enc_init_msg() 24 mtk_venc_debug(vpu->ctx, "firmware version: 0x%x\n", msg->venc_abi_version); in handle_enc_init_msg() 25 switch (msg->venc_abi_version) { in handle_enc_init_msg() 29 mtk_venc_err(vpu->ctx, "unhandled firmware version 0x%x\n", in handle_enc_init_msg() 30 msg->venc_abi_version); in handle_enc_init_msg() 31 vpu->failure = 1; in handle_enc_init_msg() [all …]
|
/linux-6.12.1/tools/perf/tests/shell/ |
D | test_task_analyzer.sh | 2 # perf script task-analyzer tests 3 # SPDX-License-Identifier: GPL-2.0 5 tmpdir=$(mktemp -d /tmp/perf-script-task-analyzer-XXXXX) 10 if [ -e "$perfdir/scripts/python/Perf-Trace-Util" ]; then 18 rm -f perf.data 19 rm -f perf.data.old 20 rm -f csv 21 rm -f csvsummary 22 rm -rf "$tmpdir" 23 trap - exit term int [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | port.c | 2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 43 int err = -ENOMEM; in mlx5_access_reg() 44 u32 *out = NULL; in mlx5_access_reg() local 49 out = kvzalloc(outlen, GFP_KERNEL); in mlx5_access_reg() 50 if (!in || !out) in mlx5_access_reg() 51 goto out; in mlx5_access_reg() 61 err = mlx5_cmd_do(dev, in, inlen, out, outlen); in mlx5_access_reg() [all …]
|
/linux-6.12.1/drivers/pinctrl/ |
D | pinctrl-k210.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <linux/pinctrl/pinconf-generic.h> 21 #include <dt-bindings/pinctrl/k210-fpioa.h> 25 #include "pinctrl-utils.h" 50 #define K210_PC_DO_OE BIT(14) /* set Data Out to Output Enable sig */ 81 * @pins: 48 32-bits IO pin registers 132 * no pins 48-55). 178 K210_PC_DEFAULT(OUT), 206 K210_FUNC(JTAG_TDO, OUT), 215 K210_FUNC(SPI0_SS0, OUT), [all …]
|
/linux-6.12.1/fs/udf/ |
D | udfend.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 struct kernel_lb_addr out; in lelb_to_cpu() local 12 out.logicalBlockNum = le32_to_cpu(in.logicalBlockNum); in lelb_to_cpu() 13 out.partitionReferenceNum = le16_to_cpu(in.partitionReferenceNum); in lelb_to_cpu() 15 return out; in lelb_to_cpu() 20 struct lb_addr out; in cpu_to_lelb() local 22 out.logicalBlockNum = cpu_to_le32(in.logicalBlockNum); in cpu_to_lelb() 23 out.partitionReferenceNum = cpu_to_le16(in.partitionReferenceNum); in cpu_to_lelb() 25 return out; in cpu_to_lelb() 30 struct short_ad out; in lesa_to_cpu() local [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
D | mlx5hws_cmd.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 38 u32 out[MLX5_ST_SZ_DW(general_obj_out_cmd_hdr)]; in hws_cmd_general_obj_destroy() local 44 return mlx5_cmd_exec(mdev, in, sizeof(in), out, sizeof(out)); in hws_cmd_general_obj_destroy() 51 u32 out[MLX5_ST_SZ_DW(create_flow_table_out)] = {0}; in mlx5hws_cmd_flow_table_create() local 57 MLX5_SET(create_flow_table_in, in, table_type, ft_attr->type); in mlx5hws_cmd_flow_table_create() 60 MLX5_SET(flow_table_context, ft_ctx, level, ft_attr->level); in mlx5hws_cmd_flow_table_create() 61 MLX5_SET(flow_table_context, ft_ctx, rtc_valid, ft_attr->rtc_valid); in mlx5hws_cmd_flow_table_create() 62 MLX5_SET(flow_table_context, ft_ctx, reformat_en, ft_attr->reformat_en); in mlx5hws_cmd_flow_table_create() 63 MLX5_SET(flow_table_context, ft_ctx, decap_en, ft_attr->decap_en); in mlx5hws_cmd_flow_table_create() 65 ret = mlx5_cmd_exec_inout(mdev, create_flow_table, in, out); in mlx5hws_cmd_flow_table_create() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/modules/hdcp/ |
D | hdcp2_execution.c | 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 35 is_ready = HDCP_2_2_DP_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus_dp) ? 1 : 0; in check_receiver_id_list_ready() 37 is_ready = (HDCP_2_2_HDMI_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus[1]) && in check_receiver_id_list_ready() 38 (HDCP_2_2_HDMI_RXSTATUS_MSG_SZ_HI(hdcp->auth.msg.hdcp2.rxstatus[1]) << 8 | in check_receiver_id_list_ready() 39 hdcp->auth.msg.hdcp2.rxstatus[0])) ? 1 : 0; in check_receiver_id_list_ready() 49 status = (hdcp->auth.msg.hdcp2.rxcaps_dp[0] == HDCP_2_2_RX_CAPS_VERSION_VAL) && in check_hdcp2_capable() 50 HDCP_2_2_DP_HDCP_CAPABLE(hdcp->auth.msg.hdcp2.rxcaps_dp[2]) ? in check_hdcp2_capable() 54 status = (hdcp->auth.msg.hdcp2.hdcp2version_hdmi & HDCP_2_2_HDMI_SUPPORT_MASK) ? in check_hdcp2_capable() 66 ret = HDCP_2_2_DP_RXSTATUS_REAUTH_REQ(hdcp->auth.msg.hdcp2.rxstatus_dp) ? in check_reauthentication_request() 70 ret = HDCP_2_2_HDMI_RXSTATUS_REAUTH_REQ(hdcp->auth.msg.hdcp2.rxstatus[1]) ? in check_reauthentication_request() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/st/ |
D | stih407-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "st-pincfg.h" 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 /* 0-5: PIO_SBC */ 18 /* 10-19: PIO_FRONT0 */ 31 /* 30-35: PIO_REAR */ 38 /* 40-42: PIO_FLASH */ 45 pin-controller-sbc@961f080 { 46 #address-cells = <1>; 47 #size-cells = <1>; [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/ |
D | dml21_utils.c | 1 // SPDX-License-Identifier: MIT 18 …if (ctx->v21.dml_to_dc_pipe_mapping.dml_pipe_idx_to_stream_id_valid[i] && ctx->v21.dml_to_dc_pipe_… in dml21_helper_find_dml_pipe_idx_by_stream_id() 22 return -1; in dml21_helper_find_dml_pipe_idx_by_stream_id() 29 …if (ctx->v21.dml_to_dc_pipe_mapping.dml_pipe_idx_to_plane_id_valid[i] && ctx->v21.dml_to_dc_pipe_m… in dml21_find_dml_pipe_idx_by_plane_id() 33 return -1; in dml21_find_dml_pipe_idx_by_plane_id() 43 for (i = 0; i < state->stream_count; i++) { in dml21_get_plane_id() 44 for (j = 0; j < state->stream_status[i].plane_count; j++) { in dml21_get_plane_id() 45 if (state->stream_status[i].plane_states[j] == plane) { in dml21_get_plane_id() 65 …if (dml_ctx->v21.mode_programming.programming->plane_programming[i].plane_descriptor->stream_index… in find_valid_pipe_idx_for_stream_index() 75 struct pipe_ctx *opp_head = dml_ctx->config.callbacks.get_opp_head(pipe); in find_pipe_regs_idx() [all …]
|
/linux-6.12.1/drivers/md/bcache/ |
D | features.c | 1 // SPDX-License-Identifier: GPL-2.0 30 for (f = &feature_list[0]; f->compat != 0; f++) { \ 31 if (f->compat != BCH_FEATURE_ ## type) \ 33 if (BCH_HAS_ ## type ## _FEATURE(&c->cache->sb, f->mask)) { \ 35 out += snprintf(out, buf + size - out, \ 38 out += snprintf(out, buf + size - out, \ 42 out += snprintf(out, buf + size - out, " "); \ 45 out += snprintf(out, buf + size - out, "%s", f->string);\ 47 if (BCH_HAS_ ## type ## _FEATURE(&c->cache->sb, f->mask)) \ 48 out += snprintf(out, buf + size - out, "]"); \ [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | tailcalls.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * in a single program for a single tail call slot with nop->jmp, jmp->nop 13 * and jmp->jmp rewrites. Also checks for nop->nop. 36 goto out; in test_tailcall_1() 40 goto out; in test_tailcall_1() 44 goto out; in test_tailcall_1() 48 goto out; in test_tailcall_1() 55 goto out; in test_tailcall_1() 59 goto out; in test_tailcall_1() 63 goto out; in test_tailcall_1() [all …]
|