| /linux-6.15/drivers/media/platform/xilinx/ |
| H A D | xilinx-vip.c | 55 const struct xvip_video_format *xvip_get_format_by_code(unsigned int code) in xvip_get_format_by_code() argument 62 if (format->code == code) in xvip_get_format_by_code() 250 struct v4l2_subdev_mbus_code_enum *code) in xvip_enum_mbus_code() argument 257 if (code->which == V4L2_SUBDEV_FORMAT_ACTIVE) in xvip_enum_mbus_code() 260 if (code->index) in xvip_enum_mbus_code() 263 format = v4l2_subdev_state_get_format(sd_state, code->pad); in xvip_enum_mbus_code() 265 code->code = format->code; in xvip_enum_mbus_code() 300 if (fse->index || fse->code != format->code) in xvip_enum_frame_size()
|
| /linux-6.15/drivers/media/platform/renesas/ |
| H A D | rcar-csi2.c | 275 u8 code; member 615 u32 code; member 642 .code = MEDIA_BUS_FMT_Y8_1X8, 646 .code = MEDIA_BUS_FMT_Y10_1X10, 705 if (rcar_csi2_formats[i].code == code) in rcsi2_code_to_fmt() 1378 { .data = 0x00, .code = 0x00 }, in rcsi2_d_phy_setting_v4m() 1379 { .data = 0x00, .code = 0x1e }, in rcsi2_d_phy_setting_v4m() 1410 { .data = 0x00, .code = 0x00 }, in rcsi2_set_osc_freq() 1413 { .data = 0x01, .code = 0xe4 }, in rcsi2_set_osc_freq() 1432 { .data = 0x00, .code = 0x00 }, in rcsi2_init_common_v4m() [all …]
|
| /linux-6.15/drivers/iio/amplifiers/ |
| H A D | ad8366.c | 120 int code, gain = 0; in ad8366_read_raw() local 125 code = st->ch[chan->channel]; in ad8366_read_raw() 129 gain = code * 253 + 4500; in ad8366_read_raw() 132 gain = 15000 - code * 1000; in ad8366_read_raw() 138 gain = -1 * code * 500; in ad8366_read_raw() 141 gain = -1 * code * 250; in ad8366_read_raw() 167 int code = 0, gain; in ad8366_write_raw() local 181 code = (gain - 4500) / 253; in ad8366_write_raw() 184 code = (15000 - gain) / 1000; in ad8366_write_raw() 190 code = (abs(gain) / 500) & 0x3F; in ad8366_write_raw() [all …]
|
| /linux-6.15/arch/arm/boot/dts/allwinner/ |
| H A D | sun4i-a10-inet9f-rev03.dts | 68 linux,code = <ABS_X>; 76 linux,code = <ABS_X>; 84 linux,code = <ABS_Y>; 92 linux,code = <ABS_Y>; 100 linux,code = <ABS_Z>; 108 linux,code = <ABS_Z>; 116 linux,code = <ABS_RZ>; 164 linux,code = <BTN_X>; 170 linux,code = <BTN_Y>; 176 linux,code = <BTN_A>; [all …]
|
| /linux-6.15/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_hsit.c | 38 struct v4l2_subdev_mbus_code_enum *code) in hsit_enum_mbus_code() argument 42 if (code->index > 0) in hsit_enum_mbus_code() 45 if ((code->pad == HSIT_PAD_SINK && !hsit->inverse) | in hsit_enum_mbus_code() 46 (code->pad == HSIT_PAD_SOURCE && hsit->inverse)) in hsit_enum_mbus_code() 47 code->code = MEDIA_BUS_FMT_ARGB8888_1X32; in hsit_enum_mbus_code() 49 code->code = MEDIA_BUS_FMT_AHSV8888_1X32; in hsit_enum_mbus_code() 92 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 in hsit_set_format() 106 format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 in hsit_set_format()
|
| H A D | vsp1_rwpf.c | 25 struct v4l2_subdev_mbus_code_enum *code) in vsp1_rwpf_enum_mbus_code() argument 33 if (code->index >= ARRAY_SIZE(codes)) in vsp1_rwpf_enum_mbus_code() 36 code->code = codes[code->index]; in vsp1_rwpf_enum_mbus_code() 71 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format() 72 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 && in vsp1_rwpf_set_format() 73 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in vsp1_rwpf_set_format() 74 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in vsp1_rwpf_set_format() 83 format->code = fmt->format.code; in vsp1_rwpf_set_format() 88 format->code = fmt->format.code; in vsp1_rwpf_set_format() 205 if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) { in vsp1_rwpf_set_selection()
|
| /linux-6.15/include/linux/ |
| H A D | input.h | 34 __u16 code; member 188 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value); 437 static inline void input_report_key(struct input_dev *dev, unsigned int code, int value) in input_report_key() argument 439 input_event(dev, EV_KEY, code, !!value); in input_report_key() 442 static inline void input_report_rel(struct input_dev *dev, unsigned int code, int value) in input_report_rel() argument 444 input_event(dev, EV_REL, code, value); in input_report_rel() 447 static inline void input_report_abs(struct input_dev *dev, unsigned int code, int value) in input_report_abs() argument 449 input_event(dev, EV_ABS, code, value); in input_report_abs() 454 input_event(dev, EV_FF_STATUS, code, value); in input_report_ff_status() 459 input_event(dev, EV_SW, code, !!value); in input_report_switch() [all …]
|
| /linux-6.15/tools/usb/usbip/src/ |
| H A D | usbip_network.c | 136 op_common->code = usbip_net_pack_uint16_t(pack, op_common->code); in usbip_net_pack_op_common() 140 int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status) in usbip_net_send_op_common() argument 148 op_common.code = code; in usbip_net_send_op_common() 162 int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status) in usbip_net_recv_op_common() argument 183 switch (*code) { in usbip_net_recv_op_common() 187 if (op_common.code != *code) { in usbip_net_recv_op_common() 188 dbg("unexpected pdu %#0x for %#0x", op_common.code, in usbip_net_recv_op_common() 189 *code); in usbip_net_recv_op_common() 203 *code = op_common.code; in usbip_net_recv_op_common()
|
| /linux-6.15/drivers/input/ |
| H A D | sparse-keymap.c | 62 unsigned int code) in sparse_keymap_entry_from_scancode() argument 67 if (code == key->code) in sparse_keymap_entry_from_scancode() 123 ke->len = sizeof(key->code); in sparse_keymap_getkeycode() 124 memcpy(ke->scancode, &key->code, sizeof(key->code)); in sparse_keymap_getkeycode() 201 __set_bit(entry->sw.code, dev->swbit); in sparse_keymap_setup() 238 input_event(dev, EV_MSC, MSC_SCAN, ke->code); in sparse_keymap_report_entry() 252 input_report_switch(dev, ke->sw.code, value); in sparse_keymap_report_entry() 272 bool sparse_keymap_report_event(struct input_dev *dev, unsigned int code, in sparse_keymap_report_event() argument 276 sparse_keymap_entry_from_scancode(dev, code); in sparse_keymap_report_event() 286 unknown_ke.code = code; in sparse_keymap_report_event()
|
| /linux-6.15/arch/sparc/mm/ |
| H A D | fault_32.c | 72 (void *)regs->u_regs[UREG_FP], code); in show_signal_msg() 83 show_signal_msg(regs, sig, code, in __do_fault_siginfo() 86 force_sig_fault(sig, code, (void __user *) addr); in __do_fault_siginfo() 109 __do_fault_siginfo(code, sig, regs, addr); in do_fault_siginfo() 119 int code; in do_sparc_fault() local 135 code = SEGV_MAPERR; in do_sparc_fault() 159 code = SEGV_ACCERR; in do_sparc_fault() 225 do_fault_siginfo(code, SIGSEGV, regs, text_fault); in do_sparc_fault() 311 int code; in force_user_fault() local 313 code = SEGV_MAPERR; in force_user_fault() [all …]
|
| /linux-6.15/drivers/media/i2c/adv748x/ |
| H A D | adv748x-csi2.c | 78 .code = MEDIA_BUS_FMT_UYVY8_1X16, in adv748x_csi2_init_state() 179 struct v4l2_subdev_mbus_code_enum *code) in adv748x_csi2_enum_mbus_code() argument 192 if (code->pad == ADV748X_CSI2_SOURCE) { in adv748x_csi2_enum_mbus_code() 195 if (code->index) in adv748x_csi2_enum_mbus_code() 199 code->code = fmt->code; in adv748x_csi2_enum_mbus_code() 204 if (code->index >= num_fmts) in adv748x_csi2_enum_mbus_code() 207 code->code = codes[code->index]; in adv748x_csi2_enum_mbus_code() 212 static bool adv748x_csi2_is_fmt_supported(struct adv748x_csi2 *tx, u32 code) in adv748x_csi2_is_fmt_supported() argument 221 if (codes[i] == code) in adv748x_csi2_is_fmt_supported() 242 if (!adv748x_csi2_is_fmt_supported(tx, sdformat->format.code)) in adv748x_csi2_set_format() [all …]
|
| /linux-6.15/drivers/media/platform/qcom/camss/ |
| H A D | camss-csid.c | 525 if (code == formats[i].code) in csid_get_fmt_entry() 828 if (fmt->code == csid->res->formats->formats[i].code) in csid_try_format() 848 u32 code = fmt->code; in csid_try_format() local 852 fmt->code = csid->res->hw_ops->src_pad_code(csid, fmt->code, 0, code); in csid_try_format() 893 code->code = csid->res->formats->formats[code->index].code; in csid_enum_mbus_code() 903 code->code = csid->res->hw_ops->src_pad_code(csid, sink_fmt->code, in csid_enum_mbus_code() 905 if (!code->code) in csid_enum_mbus_code() 911 code->code = csid->res->formats->formats[code->index].code; in csid_enum_mbus_code() 935 format.code = fse->code; in csid_enum_frame_size() 942 if (format.code != fse->code) in csid_enum_frame_size() [all …]
|
| H A D | camss-csiphy.c | 125 unsigned int nformats, u32 code) in csiphy_get_bpp() argument 130 if (code == formats[i].code) in csiphy_get_bpp() 382 if (fmt->code == csiphy->res->formats->formats[i].code) in csiphy_try_format() 426 code->code = csiphy->res->formats->formats[code->index].code; in csiphy_enum_mbus_code() 428 if (code->index > 0) in csiphy_enum_mbus_code() 433 code->which); in csiphy_enum_mbus_code() 435 code->code = format->code; in csiphy_enum_mbus_code() 458 format.code = fse->code; in csiphy_enum_frame_size() 465 if (format.code != fse->code) in csiphy_enum_frame_size() 468 format.code = fse->code; in csiphy_enum_frame_size() [all …]
|
| /linux-6.15/drivers/media/platform/nxp/ |
| H A D | imx-mipi-csis.c | 349 u32 code; member 397 .code = MEDIA_BUS_FMT_Y8_1X8, 422 .code = MEDIA_BUS_FMT_Y10_1X10, 447 .code = MEDIA_BUS_FMT_Y12_1X12, 507 if (code == mipi_csis_formats[i].code) in find_csis_format() 1029 if (code->index > 0) in mipi_csis_enum_mbus_code() 1033 code->code = fmt->code; in mipi_csis_enum_mbus_code() 1043 code->code = mipi_csis_formats[code->index].code; in mipi_csis_enum_mbus_code() 1101 fmt->code = csis_fmt->code; in mipi_csis_set_fmt() 1117 fmt->code = csis_fmt->output; in mipi_csis_set_fmt() [all …]
|
| /linux-6.15/Documentation/process/ |
| H A D | 1.Intro.rst | 11 encounter there. There are a great many reasons why kernel code should be 53 The Linux kernel, at over 8 million lines of code and well over 1000 117 The importance of getting code into the mainline 146 code working. 150 to also fix any code that breaks as the result of that change. So code 162 especially true for code which has been developed in a closed 163 environment; such code benefits strongly from review by outside 164 developers. Out-of-tree code is lower-quality code. 187 All of the reasoning above applies to any out-of-tree kernel code, 216 closed-source code. Since this code is not available at all, it cannot [all …]
|
| /linux-6.15/Documentation/core-api/ |
| H A D | entry.rst | 18 Non-instrumentable code - noinstr 22 for entry code before RCU starts watching and exit code after RCU stops 27 Such code must be marked with the 'noinstr' attribute, placing that code into a 31 instrumentable ranges of code: 33 .. code-block:: c 61 Syscall-entry code starts in assembly code and calls out into low-level C code 66 .. code-block:: c 146 .. code-block:: c 195 the entry code is shared between the two. 231 .. code-block:: c [all …]
|
| /linux-6.15/arch/parisc/kernel/ |
| H A D | traps.c | 435 switch(code){ in parisc_terminate() 455 msg, code, trap_name(code), offset); in parisc_terminate() 517 printk(KERN_CRIT "Interruption # %d\n", code); in handle_interruption() 520 switch(code) { in handle_interruption() 529 regs, code, 0); in handle_interruption() 559 default_trap(code, regs); in handle_interruption() 659 if (code == 17 && handle_nadtlb_fault(regs)) in handle_interruption() 734 if (code == 27 && !user_mode(regs) && in handle_interruption() 740 (code == 7)? in handle_interruption() 770 code, fault_space, in handle_interruption() [all …]
|
| /linux-6.15/arch/csky/abiv2/ |
| H A D | fpu.c | 94 int sig, code; in fpu_fpe() local 100 code = FPE_FLTUNK; in fpu_fpe() 104 code = ILL_ILLOPC; in fpu_fpe() 107 code = ILL_ILLOPN; in fpu_fpe() 111 code = FPE_FLTINV; in fpu_fpe() 113 code = FPE_FLTDIV; in fpu_fpe() 115 code = FPE_FLTUND; in fpu_fpe() 117 code = FPE_FLTOVF; in fpu_fpe() 119 code = FPE_FLTRES; in fpu_fpe() 122 force_sig_fault(sig, code, (void __user *)regs->pc); in fpu_fpe()
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-devices-soc | 31 code. The format is "jep106:XXYY" where XX is identity code and 32 YY is continuation code. 34 This manufacturer’s identification code is defined by one 41 The specified mechanism is that an identity code of 0x7F 42 represents the "continuation code" and implies the presence 43 of an additional identity code field, and this mechanism 45 by the manufacturer's identity code. 48 which is code 0x3B on the fifth 'page'. This is shortened 49 as JEP106 identity code of 0x3B and a continuation code of 51 identity code. [all …]
|
| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | admin-state.c | 160 const struct admin_state_code *code = vdo_get_admin_state_code(state); in get_next_state() local 162 if (code->operating) in get_next_state() 166 return (code == VDO_ADMIN_STATE_NORMAL_OPERATION ? VDO_ADMIN_STATE_SAVED : NULL); in get_next_state() 169 return (code == VDO_ADMIN_STATE_NORMAL_OPERATION in get_next_state() 181 return (((code == VDO_ADMIN_STATE_SUSPENDED) || in get_next_state() 182 (code == VDO_ADMIN_STATE_SAVED)) ? code : NULL); in get_next_state() 295 "%s is not a %s", code->name, what); in check_code() 326 const struct admin_state_code *code = vdo_get_admin_state_code(state); in vdo_start_draining() local 331 if (code->quiescent) { in vdo_start_draining() 336 if (!code->normal) { in vdo_start_draining() [all …]
|
| /linux-6.15/drivers/net/fjes/ |
| H A D | fjes_trace.h | 55 __field(int, code) 63 __entry->code = res_buf->info.code; 72 __entry->length, __entry->code, 129 __field(int, code) 134 __entry->code = res_buf->share_buffer.code; 173 __field(int, code) 178 __entry->code = res_buf->unshare_buffer.code; 219 __field(int, code) 223 __entry->code = res_buf->start_trace.code; 245 __field(int, code) [all …]
|
| /linux-6.15/arch/arm64/crypto/ |
| H A D | sha512-armv8.pl | 195 $code.=<<___; 224 $code.=<<___; 252 $code.=<<___; 355 $code.=<<___; 378 $code.=<<___; 402 $code.=<<___; 413 $code.=<<___; 639 $code.=<<___; 692 $code.=<<___; 709 $code.=<<___; [all …]
|
| /linux-6.15/drivers/s390/cio/ |
| H A D | chsc.c | 129 ssd_area->request.code = 0x0004; in chsc_get_ssd_info() 144 ssd_area->response.code); in chsc_get_ssd_info() 184 ssqd->request.code = 0x0024; in chsc_ssqd() 211 scssc->request.code = 0x0021; in chsc_sadc() 692 sei->request.code = 0x000e; in chsc_process_event_information() 895 secm_area->request.code = 0x0016; in __chsc_do_secm() 1173 sda_area->request.code = 0x0031; in __chsc_enable_facility() 1328 rr->request.code = 0x0033; in chsc_sstpc() 1353 rr->request.code = 0x0038; in chsc_sstpi() 1374 rr->request.code = 0x003e; in chsc_stzi() [all …]
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | irq.c | 296 u16 code; member 302 static inline int ext_hash(u16 code) in ext_hash() argument 306 return (code + (code >> 9)) & (ARRAY_SIZE(ext_int_hash) - 1); in ext_hash() 309 int register_external_irq(u16 code, ext_int_handler_t handler) in register_external_irq() argument 318 p->code = code; in register_external_irq() 320 index = ext_hash(code); in register_external_irq() 333 int index = ext_hash(code); in unregister_external_irq() 337 if (p->code == code && p->handler == handler) { in unregister_external_irq() 355 if (ext_code.code != EXT_IRQ_CLK_COMP) in do_ext_interrupt() 358 index = ext_hash(ext_code.code); in do_ext_interrupt() [all …]
|
| /linux-6.15/drivers/media/platform/cadence/ |
| H A D | cdns-csi2rx.c | 70 u32 code; member 109 { .code = MEDIA_BUS_FMT_YUYV8_1X16, .bpp = 16, }, 113 { .code = MEDIA_BUS_FMT_SBGGR8_1X8, .bpp = 8, }, 114 { .code = MEDIA_BUS_FMT_SGBRG8_1X8, .bpp = 8, }, 115 { .code = MEDIA_BUS_FMT_SGRBG8_1X8, .bpp = 8, }, 116 { .code = MEDIA_BUS_FMT_SRGGB8_1X8, .bpp = 8, }, 117 { .code = MEDIA_BUS_FMT_Y8_1X8, .bpp = 8, }, 132 if (formats[i].code == code) in csi2rx_get_fmt_by_code() 407 code_enum->code = formats[code_enum->index].code; in csi2rx_enum_mbus_code() 424 format->format.code = formats[0].code; in csi2rx_set_fmt() [all …]
|