| /linux-6.15/Documentation/filesystems/bcachefs/ |
| H A D | CodingStyle.rst | 14 The code that you are afraid to touch is the code most in need of refactoring. 20 Good code is readable code, where the structure is simple and leaves nowhere 23 Assertions are one of our most important tools for writing reliable code. If in 55 can still incorporate that kind of thinking into our code and document the 58 code statically typed. 63 Good code is code where you can poke around and see what it's doing - 121 Spend time doing support and helpdesk stuff. Don't just write code - code isn't 132 idea until you start writing code. 163 reading lots of code and looking for common patterns and issues. Don't be 181 even better as a code comment. [all …]
|
| /linux-6.15/drivers/regulator/ |
| H A D | rt6245-regulator.c | 148 unsigned int code, bit_count; in rt6245_reg_write() local 150 code = func_base[reg]; in rt6245_reg_write() 151 code += val; in rt6245_reg_write() 154 bit_count = hweight8(code & RT6245_CODE_MASK); in rt6245_reg_write() 156 code |= RT6245_CHKSUM_MASK; in rt6245_reg_write() 158 code &= ~RT6245_CHKSUM_MASK; in rt6245_reg_write() 160 return i2c_smbus_write_byte(i2c, code); in rt6245_reg_write()
|
| /linux-6.15/drivers/media/i2c/ |
| H A D | rj54n1cb0c.c | 114 u32 code; member 120 u32 code, const struct rj54n1_datafmt *fmt, in rj54n1_find_datafmt() argument 125 if (fmt[i].code == code) in rj54n1_find_datafmt() 492 struct v4l2_subdev_mbus_code_enum *code) in rj54n1_enum_mbus_code() argument 494 if (code->pad || code->index >= ARRAY_SIZE(rj54n1_colour_fmts)) in rj54n1_enum_mbus_code() 497 code->code = rj54n1_colour_fmts[code->index].code; in rj54n1_enum_mbus_code() 616 mf->code = rj54n1->fmt->code; in rj54n1_get_fmt() 989 mf->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_LE; in rj54n1_set_fmt() 996 __func__, mf->code, mf->width, mf->height); in rj54n1_set_fmt() 1002 mf->code = fmt->code; in rj54n1_set_fmt() [all …]
|
| H A D | gc2145.c | 549 unsigned int code; member 560 .code = MEDIA_BUS_FMT_UYVY8_1X16, 566 .code = MEDIA_BUS_FMT_VYUY8_1X16, 572 .code = MEDIA_BUS_FMT_YUYV8_1X16, 578 .code = MEDIA_BUS_FMT_YVYU8_1X16, 666 if (supported_formats[i].code == code) in gc2145_get_format_code() 681 fmt->code = code; in gc2145_update_pad_format() 748 code->code = supported_formats[code->index].code; in gc2145_enum_mbus_code() 758 u32 code; in gc2145_enum_frame_size() local 764 code = gc2145_format->code; in gc2145_enum_frame_size() [all …]
|
| /linux-6.15/Documentation/livepatch/ |
| H A D | reliable-stacktrace.rst | 36 return code is zero to indicate that the trace is reliable. 84 * Dynamically generated code (e.g. eBPF) or foreign code (e.g. EFI runtime 98 4.2 Identifying unwindable code 113 * Foreign code (e.g. EFI runtime services). 118 other code. 120 Kernel code including modules and eBPF can be distinguished from foreign code 128 any code in these sections. 183 .. code-block:: none 239 .. code-block:: none 266 .. code-block:: none [all …]
|
| /linux-6.15/arch/arm/boot/dts/broadcom/ |
| H A D | bcm4708-buffalo-wzr-1750dhp.dts | 3 * Broadcom BCM470X / BCM5301X ARM platform code. 105 linux,code = <KEY_RESTART>; 111 linux,code = <KEY_WPS_BUTTON>; 118 linux,code = <KEY_SETUP>; 125 linux,code = <BTN_0>; 131 linux,code = <KEY_EJECTCD>;
|
| /linux-6.15/drivers/staging/nvec/ |
| H A D | nvec_kbd.c | 56 int code, state; in nvec_keys_notifier() local 69 code = msg[1] & 0x7f; in nvec_keys_notifier() 72 if (code_tabs[_size][code] == KEY_CAPSLOCK && state) in nvec_keys_notifier() 75 input_report_key(keys_dev.input, code_tabs[_size][code], in nvec_keys_notifier() 86 unsigned int code, int value) in nvec_kbd_event() argument 97 if (code != LED_CAPSL) in nvec_kbd_event()
|
| /linux-6.15/arch/mips/boot/dts/ingenic/ |
| H A D | rs90.dts | 58 linux,code = <KEY_UP>; 64 linux,code = <KEY_DOWN>; 70 linux,code = <KEY_LEFT>; 76 linux,code = <KEY_RIGHT>; 82 linux,code = <KEY_LEFTCTRL>; 88 linux,code = <KEY_LEFTALT>; 94 linux,code = <KEY_BACKSPACE>; 101 linux,code = <KEY_ENTER>; 115 linux,code = <KEY_TAB>; 121 linux,code = <KEY_ESC>;
|
| /linux-6.15/Documentation/bpf/ |
| H A D | map_cpumap.rst | 35 .. code-block:: c 42 The lower two bits of ``flags`` are used as the return code if the map lookup 55 .. code-block:: c 63 .. code-block:: c 80 .. code-block:: c 89 .. code-block:: c 102 The following code snippet shows how to declare a ``BPF_MAP_TYPE_CPUMAP`` called 105 .. code-block:: c 159 The following code snippet shows how to dynamically set the max_entries for a 162 .. code-block:: c
|
| /linux-6.15/arch/arm64/boot/dts/apple/ |
| H A D | t7000-n102.dts | 25 linux,code = <KEY_HOMEPAGE>; 32 linux,code = <KEY_POWER>; 39 linux,code = <KEY_VOLUMEDOWN>; 45 linux,code = <KEY_VOLUMEUP>;
|
| H A D | t8010-n112.dts | 24 linux,code = <KEY_HOMEPAGE>; 31 linux,code = <KEY_POWER>; 38 linux,code = <KEY_VOLUMEDOWN>; 44 linux,code = <KEY_VOLUMEUP>;
|
| /linux-6.15/tools/testing/selftests/filesystems/eventfd/ |
| H A D | eventfd_test.c | 19 int code; member 23 static int error_set(struct error *err, int code, const char *fmt, ...) in error_set() argument 28 if (code == 0 || !err || err->code != 0) in error_set() 29 return code; in error_set() 31 err->code = code; in error_set() 37 return code; in error_set()
|
| /linux-6.15/drivers/media/platform/microchip/ |
| H A D | microchip-isc-scaler.c | 69 fmt = isc_find_format_by_code(isc, req_fmt->format.code, &i); in isc_scaler_set_fmt() 74 req_fmt->format.code = fmt->mbus_code; in isc_scaler_set_fmt() 109 struct v4l2_subdev_mbus_code_enum *code) in isc_scaler_enum_mbus_code() argument 118 if (code->index < isc->formats_list_size) { in isc_scaler_enum_mbus_code() 119 code->code = isc->formats_list[code->index].mbus_code; in isc_scaler_enum_mbus_code() 208 isc->scaler_format[ISC_SCALER_PAD_SOURCE].code = in isc_scaler_init()
|
| /linux-6.15/arch/arm/lib/ |
| H A D | io-readsw-armv4.S | 82 #define _BE_ONLY_(code...) code argument 83 #define _LE_ONLY_(code...) argument 87 #define _BE_ONLY_(code...) argument 88 #define _LE_ONLY_(code...) code argument
|
| /linux-6.15/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_uds.c | 115 struct v4l2_subdev_mbus_code_enum *code) in uds_enum_mbus_code() argument 122 return vsp1_subdev_enum_mbus_code(subdev, sd_state, code, codes, in uds_enum_mbus_code() 143 if (fse->index || fse->code != format->code) { in uds_enum_frame_size() 176 if (fmt->code != MEDIA_BUS_FMT_ARGB8888_1X32 && in uds_try_format() 177 fmt->code != MEDIA_BUS_FMT_AYUV8_1X32) in uds_try_format() 178 fmt->code = MEDIA_BUS_FMT_AYUV8_1X32; in uds_try_format() 187 fmt->code = format->code; in uds_try_format()
|
| /linux-6.15/arch/sh/math-emu/ |
| H A D | math.c | 426 id_fnmx(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, u16 code) in id_fnmx() argument 428 int n = (code >> 8) & 0xf, m = (code >> 4) & 0xf, x = code & 0xf; in id_fnmx() 433 id_sys(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, u16 code) in id_sys() argument 435 int n = ((code >> 8) & 0xf); in id_sys() 436 unsigned long *reg = (code & 0x0010) ? &FPUL : &FPSCR; in id_sys() 438 switch (code & 0xf0ff) { in id_sys() 464 static int fpu_emulate(u16 code, struct sh_fpu_soft_struct *fregs, struct pt_regs *regs) in fpu_emulate() argument 466 if ((code & 0xf000) == 0xf000) in fpu_emulate() 467 return id_fnmx(fregs, regs, code); in fpu_emulate() 469 return id_sys(fregs, regs, code); in fpu_emulate()
|
| /linux-6.15/kernel/trace/ |
| H A D | trace_eprobe.c | 357 struct fetch_insn *code; in get_eprobe_size() local 366 code = arg->code; in get_eprobe_size() 368 switch (code->op) { in get_eprobe_size() 370 val = get_event_field(code, rec); in get_eprobe_size() 373 code++; in get_eprobe_size() 379 code++; in get_eprobe_size() 400 switch (code->op) { in process_fetch_insn() 402 val = get_event_field(code, rec); in process_fetch_insn() 405 code++; in process_fetch_insn() 408 ret = process_common_fetch_insn(code, &val); in process_fetch_insn() [all …]
|
| /linux-6.15/drivers/parisc/ |
| H A D | power.c | 36 #define DIAG_CODE(code) (0x14000000 + ((code)<<5)) argument 38 #define MFCPU_X(rDiagReg, t_ch, t_th, code) \ argument 39 (DIAG_CODE(code) + ((rDiagReg)<<21) + ((t_ch)<<16) + ((t_th)<<0) ) 142 static void powerfail_interrupt(int code, void *x)
|
| /linux-6.15/drivers/platform/x86/ |
| H A D | lenovo-ymc.c | 67 int code; in lenovo_ymc_notify() local 88 code = obj->integer.value; in lenovo_ymc_notify() 90 if (!sparse_keymap_report_event(priv->input_dev, code, 1, true)) in lenovo_ymc_notify() 91 dev_warn(&wdev->dev, "Unknown key %d pressed\n", code); in lenovo_ymc_notify() 95 ideapad_laptop_call_notifier(IDEAPAD_LAPTOP_YMC_EVENT, &code); in lenovo_ymc_notify()
|
| /linux-6.15/arch/arm/mach-s3c/ |
| H A D | Kconfig.s3c64xx | 62 Common setup code for i2c bus 0. 70 Common setup code for i2c bus 1. 75 Common setup code for S3C64XX with an 24bpp RGB display helper. 80 Common setup code for S3C64XX KEYPAD GPIO configurations 85 Common setup code for S3C64XX SDHCI GPIO configurations 90 Common setup code for SPI GPIO configurations 95 Common setup code for USB PHY controller
|
| /linux-6.15/tools/lib/subcmd/ |
| H A D | run-command.c | 175 int status, code; in wait_or_whine() local 198 code = WEXITSTATUS(status); in wait_or_whine() 199 switch (code) { in wait_or_whine() 207 result = -code; in wait_or_whine() 264 int code = start_command(cmd); in run_command() local 265 if (code) in run_command() 266 return code; in run_command()
|
| /linux-6.15/rust/kernel/ |
| H A D | error.rs | 19 pub mod code { module 114 code::EINVAL in from_errno() 200 code::ENOMEM in from() 206 code::EINVAL in from() 212 code::EINVAL in from() 218 code::ENOMEM in from() 224 code::EINVAL in from()
|
| /linux-6.15/Documentation/userspace-api/media/dvb/ |
| H A D | dvb-frontend-parameters.rst | 30 .. code-block:: c 61 .. code-block:: c 77 .. code-block:: c 94 .. code-block:: c 109 .. code-block:: c 113 fe_code_rate_t code_rate_HP; /* high priority stream code rate */ 114 fe_code_rate_t code_rate_LP; /* low priority stream code rate */
|
| /linux-6.15/Documentation/arch/arm/ |
| H A D | mem_alignment.rst | 6 kernel code lately. Therefore the alignment fixup is now unconditionally 20 trap to SIGBUS any code performing unaligned access (good for debugging bad 21 code), or even fixup the access by software like for kernel code. The later 23 floating point emulation that works about the same way). Fix your code 39 fault code. 60 operation for user space code.
|
| /linux-6.15/drivers/media/platform/raspberrypi/rp1-cfe/ |
| H A D | csi2.c | 415 cfe_fmt = find_format_by_code(format->format.code); in csi2_pad_set_fmt() 418 format->format.code = cfe_fmt->code; in csi2_pad_set_fmt() 444 u32 code; in csi2_pad_set_fmt() local 457 sink_code = sink_fmt->code; in csi2_pad_set_fmt() 458 code = format->format.code; in csi2_pad_set_fmt() 466 if (code == sink_code || in csi2_pad_set_fmt() 467 code == cfe_find_16bit_code(sink_code) || in csi2_pad_set_fmt() 468 code == cfe_find_compressed_code(sink_code)) in csi2_pad_set_fmt() 469 source_fmt->code = code; in csi2_pad_set_fmt() 471 format->format.code = source_fmt->code; in csi2_pad_set_fmt()
|