Searched refs:code (Results 276 - 300 of 1522) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/input/keyboard/
H A Datkbd.c38 MODULE_PARM_DESC(set, "Select keyboard code set (2 = default, 3 = PS/2 native)");
349 static bool atkbd_need_xlate(unsigned long xl_bit, unsigned char code) argument
353 if (code == ATKBD_RET_EMUL0 || code == ATKBD_RET_EMUL1)
357 if (code == xl_table[i])
368 static void atkbd_calculate_xl_bit(struct atkbd *atkbd, unsigned char code) argument
373 if (!((code ^ xl_table[i]) & 0x7f)) {
374 if (code & 0x80)
387 static unsigned int atkbd_compat_scancode(struct atkbd *atkbd, unsigned int code) argument
391 code |
447 unsigned int code = data; local
687 atkbd_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) argument
1077 atkbd_oqo_01plus_scancode_fixup(struct atkbd *atkbd, unsigned int code) argument
[all...]
H A Dtca8418_keypad.c164 u8 reg, state, code; local
174 /* Assume that key code 0 signifies empty FIFO */
179 code = reg & KEY_EVENT_CODE;
181 row = code / TCA8418_MAX_COLS;
182 col = code % TCA8418_MAX_COLS;
187 code = MATRIX_SCAN_CODE(row, col, keypad_data->row_shift);
188 input_event(input, EV_MSC, MSC_SCAN, code);
189 input_report_key(input, keymap[code], state);
/linux-master/arch/x86/events/
H A Dperf_event.h56 u64 code; member in struct:event_constraint
66 return ((ecode & c->cmask) - c->code) <= (u64)c->size;
354 .code = (c), \
404 * Constraint on the Event code.
416 * Constraint on the Event code + UMask + fixed-mask
446 * Constraint on the Event code + UMask
487 #define INTEL_ALL_EVENT_CONSTRAINT(code, n) \
488 EVENT_CONSTRAINT(code, n, X86_ALL_EVENT_FLAGS)
490 /* Check flags and event code, and set the HSW store flag */
491 #define INTEL_FLAGS_EVENT_CONSTRAINT_DATALA_ST(code,
[all...]
/linux-master/drivers/media/pci/bt8xx/
H A Dbttv-input.c55 dprintk("irq gpio=0x%x code=%d | %s%s%s\n",
90 dprintk("gpio=0x%x code=%d | %s\n",
101 dprintk("(cnt) gpio=0x%x code=%d | %s\n",
151 /* decode raw bit pattern to RC5 code */
152 static u32 bttv_rc5_decode(unsigned int code) argument
154 unsigned int org_code = code;
160 pair = code & 0x3;
161 code >>= 2;
172 dprintk("rc5_decode(%x) bad code\n",
177 dprintk("code
[all...]
/linux-master/drivers/nfc/s3fwrn5/
H A Dfirmware.c54 struct sk_buff **msg, u8 type, u8 code, const void *data, u16 len)
61 hdr.code = code;
97 if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
134 if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
154 if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
174 if (hdr->code != S3FWRN5_FW_RET_SUCCESS)
205 if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
226 if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
260 if (hdr->code !
53 s3fwrn5_fw_prep_msg(struct s3fwrn5_fw_info *fw_info, struct sk_buff **msg, u8 type, u8 code, const void *data, u16 len) argument
[all...]
/linux-master/drivers/media/i2c/
H A Dadv7175.c292 struct v4l2_subdev_mbus_code_enum *code)
294 if (code->pad || code->index >= ARRAY_SIZE(adv7175_codes))
297 code->code = adv7175_codes[code->index];
312 mf->code = MEDIA_BUS_FMT_UYVY8_1X16;
314 mf->code = MEDIA_BUS_FMT_UYVY8_2X8;
335 switch (mf->code) {
346 "illegal v4l2_mbus_framefmt code
290 adv7175_enum_mbus_code(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_mbus_code_enum *code) argument
[all...]
H A Dov9640.c371 static void ov9640_alter_regs(u32 code, argument
374 switch (code) {
396 u32 code, struct ov9640_reg_alt *alts)
440 if (code == MEDIA_BUS_FMT_UYVY8_2X8) {
510 ov9640_alter_regs(mf->code, &alts);
518 return ov9640_write_regs(client, mf->width, mf->code, &alts);
534 switch (mf->code) {
540 mf->code = MEDIA_BUS_FMT_UYVY8_2X8;
555 struct v4l2_subdev_mbus_code_enum *code)
557 if (code
395 ov9640_write_regs(struct i2c_client *client, u32 width, u32 code, struct ov9640_reg_alt *alts) argument
553 ov9640_enum_mbus_code(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_mbus_code_enum *code) argument
[all...]
/linux-master/net/netfilter/
H A Dnf_tables_core.c5 * Development of this code funded by Astaro AG (http://www.astaro.com/)
94 regs->verdict.code = NFT_BREAK;
108 regs->verdict.code = NFT_BREAK;
118 switch (regs->verdict.code & NF_VERDICT_MASK) {
277 regs.verdict.code = NFT_CONTINUE;
290 if (regs.verdict.code != NFT_CONTINUE)
294 switch (regs.verdict.code) {
296 regs.verdict.code = NFT_CONTINUE;
309 switch (regs.verdict.code & NF_VERDICT_MASK) {
313 return regs.verdict.code;
[all...]
H A Dnft_tproxy.c35 regs->verdict.code = NFT_BREAK;
41 regs->verdict.code = NFT_BREAK;
80 regs->verdict.code = NFT_BREAK;
102 regs->verdict.code = NFT_BREAK;
109 regs->verdict.code = NFT_BREAK;
153 regs->verdict.code = NFT_BREAK;
182 regs->verdict.code = NFT_BREAK;
/linux-master/drivers/thermal/
H A Drockchip_thermal.c253 * struct tsadc_table - code to temperature conversion table
254 * @code: the value of adc channel
257 * code to temperature mapping of the temperature sensor is a piece wise linear
258 * curve.Any temperature, code faling between to 2 give temperatures can be
263 u32 code; member in struct:tsadc_table
560 /* Return mask code data when the temp is over table range */
566 return table->id[mid].code;
575 * The conversion code granularity provided by the table. Let's
580 num = abs(table->id[mid + 1].code - table->id[mid].code);
600 rk_tsadcv2_code_to_temp(const struct chip_tsadc_table *table, u32 code, int *temp) argument
[all...]
/linux-master/sound/pci/echoaudio/
H A Dechoaudio_dsp.c179 /* Load ASIC code - done after the DSP is loaded */
185 u8 *code; local
193 code = (u8 *)fw->data;
205 if (write_dsp(chip, code[i]) < 0)
226 program that is used to load the real DSP code. */
231 u16 *code; local
256 /* The DSP code is an array of 16 bit words. The array is divided up
268 code = (u16 *)fw->data;
271 of the first section, so the first real section of code is pointed
273 index = code[
335 load_dsp(struct echoaudio *chip, u16 *code) argument
[all...]
/linux-master/drivers/mtd/nand/raw/
H A Dvf610_nfc.c364 u32 col = 0, row = 0, cmd1 = 0, cmd2 = 0, code = 0; local
379 code |= COMMAND_CMD_BYTE1;
396 code |= COMMAND_NADDR_BYTES(naddrs);
413 code |= COMMAND_WRITE_DATA;
420 code |= COMMAND_CMD_BYTE2;
426 code |= COMMAND_RB_HANDSHAKE;
436 code |= COMMAND_READ_DATA;
442 cmd2 |= code << CMD_CODE_SHIFT;
537 static void vf610_nfc_fill_row(struct nand_chip *chip, int page, u32 *code, argument
541 *code |
555 u32 row = 0, cmd1 = 0, cmd2 = 0, code = 0; local
603 u32 row = 0, cmd1 = 0, cmd2 = 0, code = 0; local
[all...]
/linux-master/arch/arc/net/
H A Dbpf_jit_core.c93 * epilogue_offset: Used by early "return"s in the code to jump here.
137 * 1. Use the standard bpf_jit_dump() which is meant only for JITed code.
259 call = (insn[i].code == (BPF_JMP | BPF_CALL)) ? true : false;
344 if ((BPF_CLASS(insn->code) == BPF_JMP32) &&
345 (BPF_OP(insn->code) == BPF_JA))
377 return BPF_SRC(insn->code) == BPF_K;
490 const u8 class = BPF_CLASS(insn->code);
491 const u8 op = BPF_OP(insn->code);
572 * 1. Compute ARC's internal condition code from BPF's
588 const bool j32 = (BPF_CLASS(insn->code)
739 const u8 code = insn->code; local
[all...]
/linux-master/drivers/media/platform/ti/j721e-csi2rx/
H A Dj721e-csi2rx.c56 u32 fourcc; /* Four character code. */
57 u32 code; /* Mbus code. */ member in struct:ti_csi2rx_fmt
115 .code = MEDIA_BUS_FMT_YUYV8_1X16,
121 .code = MEDIA_BUS_FMT_UYVY8_1X16,
127 .code = MEDIA_BUS_FMT_YVYU8_1X16,
133 .code = MEDIA_BUS_FMT_VYUY8_1X16,
139 .code = MEDIA_BUS_FMT_SBGGR8_1X8,
145 .code = MEDIA_BUS_FMT_SGBRG8_1X8,
151 .code
230 find_format_by_code(u32 code) argument
[all...]
/linux-master/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c114 u32 code)
118 mf->code = code;
822 u32 code; local
827 code = S5C73M3_ISP_FMT;
831 code = S5C73M3_JPEG_FMT;
835 if (fmt->format.code == S5C73M3_JPEG_FMT)
836 code = S5C73M3_JPEG_FMT;
838 code = S5C73M3_ISP_FMT;
848 s5c73m3_fill_mbus_fmt(&fmt->format, *fs, code);
112 s5c73m3_fill_mbus_fmt(struct v4l2_mbus_framefmt *mf, const struct s5c73m3_frame_size *fs, u32 code) argument
856 u32 code; local
1003 u32 code; local
1038 u32 code; local
1199 s5c73m3_enum_mbus_code(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_mbus_code_enum *code) argument
1215 s5c73m3_oif_enum_mbus_code(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_mbus_code_enum *code) argument
[all...]
/linux-master/arch/x86/boot/compressed/
H A Dmem_encrypt.S79 /* Check return code */
102 /* Check if error-code == SVM_EXIT_CPUID */
109 testl %eax, %eax # Check return code
116 testl %eax, %eax # Check return code
123 testl %eax, %eax # Check return code
130 testl %eax, %eax # Check return code
159 /* Remove error code */
194 andl $0x0000ffff, %edx # Target code segment offset [15:0]
195 orl $(__KERNEL32_CS << 16), %edx # Target code segment selector
202 andl $0xffff0000, %edx # Target code segmen
[all...]
/linux-master/drivers/platform/x86/dell/
H A Ddell-wmi-base.c83 /* Key code is followed by brightness level */
90 /* Radio devices state change, key code is followed by other values */
95 /* Key code is followed by: next, active and attached devices */
98 /* Key code is followed by keyboard illumination level */
160 * "button with a picture of a battery" which has event code 0xe045.
161 * Later Mario Limonciello from Dell told us that event code 0xe045 is
389 static int dell_wmi_process_key(struct wmi_device *wdev, int type, int code, u16 *buffer, int remaining) argument
397 (type << 16) | code);
399 pr_info("Unknown key with type 0x%04x and code 0x%04x pressed\n",
400 type, code);
[all...]
/linux-master/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-isp.c57 * fimc_isp_find_format - lookup color format by fourcc or media bus code
59 * @mbus_code: media bus code to match, ignored if null
110 struct v4l2_subdev_mbus_code_enum *code)
114 fmt = fimc_isp_find_format(NULL, NULL, code->index);
117 code->code = fmt->mbus_code;
146 mf->code = MEDIA_BUS_FMT_YUV10_1X30;
153 fmt->pad, mf->code, mf->width, mf->height);
172 mf->code = MEDIA_BUS_FMT_SGRBG10_1X10;
185 mf->code
108 fimc_is_subdev_enum_mbus_code(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_mbus_code_enum *code) argument
[all...]
/linux-master/sound/firewire/fireface/
H A Dff-protocol-latter.c175 unsigned int code; local
183 code = 0x04;
185 code = 0x02;
187 code = 0x00;
192 code |= 0x08;
194 code |= 0x10;
196 reg = cpu_to_le32(code);
452 case 0xf1: /* MIDI time code quarter frame. */
512 // Transfer end code at next time.
/linux-master/drivers/staging/media/tegra-video/
H A Dcsi.c67 struct v4l2_subdev_mbus_code_enum *code)
72 if (code->index >= ARRAY_SIZE(tegra_csi_tpg_fmts))
75 code->code = tegra_csi_tpg_fmts[code->index].code;
94 static int csi_get_frmrate_table_index(struct tegra_csi *csi, u32 code, argument
102 if (frmrate[i].code == code &&
113 u32 code, u3
65 csi_enum_bus_code(struct v4l2_subdev *subdev, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_mbus_code_enum *code) argument
112 csi_chan_update_blank_intervals(struct tegra_csi_channel *csi_chan, u32 code, u32 width, u32 height) argument
[all...]
/linux-master/arch/parisc/net/
H A Dbpf_jit_comp64.c7 * The code is based on the BPF JIT compiler for RV64 by Bj��rn T��pel.
410 u8 code = insn->code; local
412 switch (code) {
422 if (code & (BPF_ALU | BPF_X) || code & (BPF_ALU64 | BPF_X) ||
423 code & (BPF_JMP | BPF_X) || code & (BPF_JMP32 | BPF_X) ||
424 code & BPF_LDX || code
600 u8 rd = -1, rs = -1, code = insn->code; local
[all...]
/linux-master/arch/powerpc/lib/
H A Dcode-patching.c20 #include <asm/code-patching.h>
303 /* order context switch after arbitrary prior code */
397 static int __patch_instructions(u32 *patch_addr, u32 *code, size_t len, bool repeat_instr) argument
404 ppc_inst_t instr = ppc_inst_read(code);
416 err = copy_to_kernel_nofault(patch_addr, code, len);
428 static int __do_patch_instructions_mm(u32 *addr, u32 *code, size_t len, bool repeat_instr) argument
451 /* order context switch after arbitrary prior code */
456 err = __patch_instructions(patch_addr, code, len, repeat_instr);
477 static int __do_patch_instructions(u32 *addr, u32 *code, size_t len, bool repeat_instr) argument
494 err = __patch_instructions(patch_addr, code, le
508 patch_instructions(u32 *addr, u32 *code, size_t len, bool repeat_instr) argument
[all...]
/linux-master/tools/bpf/bpftool/
H A Dcfg.c141 if (cur->code != (BPF_JMP | BPF_CALL))
160 static bool is_jmp_insn(__u8 code) argument
162 return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32;
178 if (is_jmp_insn(cur->code)) {
179 __u8 opcode = BPF_OP(cur->code);
304 if (!is_jmp_insn(insn->code) ||
305 BPF_OP(insn->code) == BPF_EXIT) {
310 } else if (BPF_OP(insn->code) == BPF_JA) {
/linux-master/drivers/power/supply/
H A Dda9150-fg.c88 static u32 da9150_fg_read_attr(struct da9150_fg *fg, u8 code, u8 size) argument
96 /* Set QIF code (READ mode) */
97 read_addr = (code & DA9150_QIF_CODE_MASK) | DA9150_QIF_READ;
106 static void da9150_fg_write_attr(struct da9150_fg *fg, u8 code, u8 size, argument
114 /* Set QIF code (WRITE mode) */
115 write_addr = (code & DA9150_QIF_CODE_MASK) | DA9150_QIF_WRITE;
163 static u32 da9150_fg_read_attr_sync(struct da9150_fg *fg, u8 code, u8 size) argument
168 val = da9150_fg_read_attr(fg, code, size);
175 static void da9150_fg_write_attr_sync(struct da9150_fg *fg, u8 code, u8 size, argument
201 /* Write value for QIF code */
[all...]
/linux-master/drivers/gpu/ipu-v3/
H A Dipu-vdi.c120 void ipu_vdi_setup(struct ipu_vdi *vdi, u32 code, int xres, int yres) argument
134 if (code == MEDIA_BUS_FMT_UYVY8_2X8 ||
135 code == MEDIA_BUS_FMT_UYVY8_1X16 ||
136 code == MEDIA_BUS_FMT_YUYV8_2X8 ||
137 code == MEDIA_BUS_FMT_YUYV8_1X16)

Completed in 415 milliseconds

<<11121314151617181920>>