Searched refs:code (Results 1 - 25 of 450) sorted by relevance

1234567891011>>

/drivers/media/dvb/firewire/
H A Dfiredtv-rc.c25 /* code from device: 0x4501...0x451f */
59 /* code from device: 0x4540...0x4542 */
69 /* code from device: 0x0300...0x031f */
104 /* code from device: 0x0340...0x0354 */
173 void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) argument
178 if (code >= 0x0300 && code <= 0x031f)
179 code = keycode[code - 0x0300];
180 else if (code >
[all...]
/drivers/media/video/
H A Dsoc_mediabus.c20 .code = V4L2_MBUS_FMT_YUYV8_2X8,
29 .code = V4L2_MBUS_FMT_YVYU8_2X8,
38 .code = V4L2_MBUS_FMT_UYVY8_2X8,
47 .code = V4L2_MBUS_FMT_VYUY8_2X8,
56 .code = V4L2_MBUS_FMT_RGB555_2X8_PADHI_LE,
65 .code = V4L2_MBUS_FMT_RGB555_2X8_PADHI_BE,
74 .code = V4L2_MBUS_FMT_RGB565_2X8_LE,
83 .code = V4L2_MBUS_FMT_RGB565_2X8_BE,
92 .code = V4L2_MBUS_FMT_SBGGR8_1X8,
101 .code
364 soc_mbus_find_fmtdesc( enum v4l2_mbus_pixelcode code, const struct soc_mbus_lookup *lookup, int n) argument
379 soc_mbus_get_fmtdesc( enum v4l2_mbus_pixelcode code) argument
[all...]
H A Dimx074.c73 enum v4l2_mbus_pixelcode code; member in struct:imx074_datafmt
91 /* Find a data format by a pixel code in an array */
92 static const struct imx074_datafmt *imx074_find_datafmt(enum v4l2_mbus_pixelcode code) argument
97 if (imx074_colour_fmts[i].code == code)
157 const struct imx074_datafmt *fmt = imx074_find_datafmt(mf->code);
159 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code);
162 mf->code = imx074_colour_fmts[0].code;
179 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code);
236 imx074_enum_fmt(struct v4l2_subdev *sd, unsigned int index, enum v4l2_mbus_pixelcode *code) argument
[all...]
H A Dmt9m111.c184 enum v4l2_mbus_pixelcode code; member in struct:mt9m111_datafmt
207 int model; /* V4L2_IDENT_MT9M111 or V4L2_IDENT_MT9M112 code
220 /* Find a data format by a pixel code */
222 enum v4l2_mbus_pixelcode code)
226 if (mt9m111_colour_fmts[i].code == code)
335 int width, int height, enum v4l2_mbus_pixelcode code)
349 if (code != V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE) {
360 __func__, code, rect->width, rect->height, rect->left, rect->top,
397 if (mt9m111->fmt->code
221 mt9m111_find_datafmt(struct mt9m111 *mt9m111, enum v4l2_mbus_pixelcode code) argument
334 mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, int width, int height, enum v4l2_mbus_pixelcode code) argument
465 mt9m111_set_pixfmt(struct mt9m111 *mt9m111, enum v4l2_mbus_pixelcode code) argument
882 mt9m111_enum_fmt(struct v4l2_subdev *sd, unsigned int index, enum v4l2_mbus_pixelcode *code) argument
[all...]
/drivers/usb/serial/
H A Dio_ionsp.h56 specific to the cmd or status code. This may include a length
169 #define IOSP_EXT_CMD 0x09 // P1 = Command code (defined below)
358 // 0C-0D 4-byte status. P1 = extended status code and P2,P3 = params
406 #define IOSP_EXT_STATUS 0x09 // P1 is status/response code, param in P2.
437 #define IOSP_EXT4_STATUS 0x0C // Extended status code in P1,
450 #define IOSP_GET_STATUS_LEN(code) ((code) < 8 ? 2 : ((code) < 0x0A ? 3 : 4))
452 #define IOSP_STATUS_IS_2BYTE(code) ((code) <
[all...]
/drivers/scsi/
H A Dscript_asm.pl192 @code = (); # Array of 32 bit words for SIOP
211 # &patch ($address, $offset, $length, $value) patches $code[$address]
222 printf STDERR "Old code : %08x\n", $code[$address];
227 $code[$address] = ($code[$address] & ~$mask) |
228 (($code[$address] & $mask) + ($value << ($offset * 8)) &
231 printf STDERR "New code : %08x\n", $code[$address] if ($debug);
239 # Side effects are that the bytes are combined into the @code arra
[all...]
/drivers/char/
H A Dsnsc_event.c64 scdrv_parse_event(char *event, int *src, int *code, int *esp_code, char *desc) argument
70 event += 4; /* move on to event code */
72 /* record the system controller's event code */
73 *code = get_unaligned_be32(event);
82 /* parse out the ESP code */
117 scdrv_event_severity(int code) argument
119 int ev_class = (code & EV_CLASS_MASK);
120 int ev_severity = (code & EV_SEVERITY_MASK);
188 int code, esp_code, src, class; local
192 if (scdrv_parse_event(event, &src, &code,
[all...]
/drivers/staging/usbip/userspace/src/
H A Dusbip_network.c110 int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status) argument
118 op_common.code = code;
132 int usbip_net_recv_op_common(int sockfd, uint16_t *code) argument
153 switch (*code) {
157 if (op_common.code != *code) {
158 dbg("unexpected pdu %#0x for %#0x", op_common.code,
159 *code);
169 *code
[all...]
/drivers/input/misc/
H A Dgpio_output.c23 unsigned int code, int value)
33 if (dev == oi->keymap[i].dev && code == oi->keymap[i].code)
57 "index %d >= %d for key code %d\n",
59 oi->keymap[i].code);
64 oi->keymap[i].code);
20 gpio_event_output_event( struct gpio_event_input_devs *input_devs, struct gpio_event_info *info, void **data, unsigned int dev, unsigned int type, unsigned int code, int value) argument
H A Dgpio_axis.c74 ai->type, ai->code, state, old_pos, pos);
85 ai->code, old_pos, pos);
90 ai->type, ai->code, change);
92 ai->code, change);
96 ai->type, ai->code, pos);
98 ai->type, ai->code, pos);
144 ai->type, ai->code);
150 ai->type, ai->code);
152 input_set_abs_params(input_devs->dev[ai->dev], ai->code,
/drivers/input/
H A Dsparse-keymap.c60 * @code: Scan code
66 unsigned int code)
71 if (code == key->code)
81 * @keycode: Key code
127 ke->len = sizeof(key->code);
128 memcpy(ke->scancode, &key->code, sizeof(key->code));
207 __set_bit(entry->sw.code, de
65 sparse_keymap_entry_from_scancode(struct input_dev *dev, unsigned int code) argument
311 sparse_keymap_report_event(struct input_dev *dev, unsigned int code, unsigned int value, bool autorelease) argument
[all...]
H A Dinput-compat.c30 event->code = compat_event.code;
50 compat_event.code = event->code;
H A Dinput.c50 static inline int is_event_supported(unsigned int code, argument
53 return code <= max && test_bit(code, bm);
78 unsigned int type, unsigned int code, int value)
87 handle->handler->event(handle, type, code, value);
100 handler->event(handle, type, code, value);
102 } else if (handler->filter(handle, type, code, value))
145 static void input_start_autorepeat(struct input_dev *dev, int code) argument
150 dev->repeat_key = code;
167 unsigned int code, in
77 input_pass_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) argument
166 input_handle_abs_event(struct input_dev *dev, unsigned int code, int *pval) argument
216 input_handle_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) argument
347 input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) argument
373 input_inject_event(struct input_handle *handle, unsigned int type, unsigned int code, int value) argument
592 int code; local
1698 input_set_capability(struct input_dev *dev, unsigned int type, unsigned int code) argument
[all...]
/drivers/mtd/tests/
H A Dmtd_nandecctest.c24 unsigned char code[3]; local
37 __nand_calculate_ecc(data, size, code);
39 __nand_correct_data(error_data, code, error_code, size);
/drivers/parisc/
H A Dpower.c12 * 1. Redistributions of source code must retain the above copyright
59 /* assembly code to access special registers */
61 #define DIAG_CODE(code) (0x14000000 + ((code)<<5))
63 #define MFCPU_X(rDiagReg, t_ch, t_th, code) \
64 (DIAG_CODE(code) + ((rDiagReg)<<21) + ((t_ch)<<16) + ((t_th)<<0) )
169 static void powerfail_interrupt(int code, void *x)
/drivers/input/keyboard/
H A Dmaple_keyb.c99 int code, keycode; local
103 code = i + 224;
104 keycode = kbd->keycode[code];
105 input_event(dev, EV_MSC, MSC_SCAN, code);
111 code = kbd->old[i];
112 if (code > 3 && ptr == NULL) {
113 keycode = kbd->keycode[code];
115 input_event(dev, EV_MSC, MSC_SCAN, code);
120 code);
123 code
[all...]
/drivers/hid/
H A Dhid-input.c85 return (usage->type == EV_KEY && usage->code == keycode);
153 usage->code : KEY_RESERVED;
174 usage->code : KEY_RESERVED;
175 usage->code = ke->keycode;
178 set_bit(usage->code, dev->keybit);
179 dbg_hid("Assigned keycode %d to HID usage code %x\n",
180 usage->code, usage->hid);
199 * @code: axis code
211 static __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) argument
443 int max = 0, code; local
1029 hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field) argument
[all...]
/drivers/staging/nvec/
H A Dnvec_kbd.c53 int code, state; local
66 code = msg[1] & 0x7f;
69 if (code_tabs[_size][code] == KEY_CAPSLOCK && state)
72 input_report_key(keys_dev.input, code_tabs[_size][code],
83 unsigned int code, int value)
94 if (code != LED_CAPSL)
82 nvec_kbd_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) argument
/drivers/net/wireless/rtl818x/rtl8187/
H A Dleds.h54 void rtl8187_leds_init(struct ieee80211_hw *dev, u16 code);
/drivers/platform/x86/
H A Dasus-wmi.h58 /* Returns new code, value, and autorelease values in arguments.
59 * Return ASUS_WMI_KEY_IGNORE in code if event should be ignored. */
60 void (*key_filter) (struct asus_wmi_driver *driver, int *code,
/drivers/isdn/sc/
H A Dmessage.c61 "cnt:%d (type,class,code):(%d,%d,%d) "
71 rspmsg->code,
87 unsigned int code,
121 sndmsg.code = code;
153 "cnt:%d (type,class,code):(%d,%d,%d) "
162 sndmsg.code,
172 unsigned char code,
188 retval = sendmessage(card, procid, type, class, code, link,
210 (sc_adapter[card]->async_msg.code
83 sendmessage(int card, unsigned int procid, unsigned int type, unsigned int class, unsigned int code, unsigned int link, unsigned int data_len, unsigned int *data) argument
168 send_and_receive(int card, unsigned int procid, unsigned char type, unsigned char class, unsigned char code, unsigned char link, unsigned char data_len, unsigned char *data, RspMessage *mesgdata, int timeout) argument
[all...]
/drivers/staging/media/go7007/
H A Dgo7007-fw.c19 * This file contains code to generate a firmware image for the GO7007SB
39 /* Constants used in the source firmware image to describe code segments */
376 static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space) argument
404 code[off + 1] = __cpu_to_le16(0x8000 | mem);
413 code[off] = __cpu_to_le16(0x4000 | chunk);
414 code[off + 31] = __cpu_to_le16(addr++);
417 code[off] = __cpu_to_le16(0x1000 | 28);
418 code[off + 31] = 0;
422 memcpy(&code[off + 2], buf + i, chunk * 2);
646 __le16 *code, in
645 gen_mpeg1hdr_to_package(struct go7007 *go, __le16 *code, int space, int *framelen) argument
832 gen_mpeg4hdr_to_package(struct go7007 *go, __le16 *code, int space, int *framelen) argument
936 brctrl_to_package(struct go7007 *go, __le16 *code, int space, int *framelen) argument
1093 config_package(struct go7007 *go, __le16 *code, int space) argument
1215 seqhead_to_package(struct go7007 *go, __le16 *code, int space, int (*sequence_header_func)(struct go7007 *go, unsigned char *buf, int ext)) argument
1294 avsync_to_package(struct go7007 *go, __le16 *code, int space) argument
1325 final_package(struct go7007 *go, __le16 *code, int space) argument
1388 audio_to_package(struct go7007 *go, __le16 *code, int space) argument
1438 modet_to_package(struct go7007 *go, __le16 *code, int space) argument
1507 do_special(struct go7007 *go, u16 type, __le16 *code, int space, int *framelen) argument
1557 __le16 *code, *src; local
[all...]
/drivers/staging/wlags49_h2/
H A Ddhf.h49 * . Redistributions of source code must retain the above copyright notice, this
50 * list of conditions and the following Disclaimer as comments in the code as
122 hcf_32 code; /* Code to plug */ member in struct:__anon5621
223 EXTERN_C hcf_16 *find_record_in_pda(hcf_16 *pdap, hcf_16 code);
/drivers/target/tcm_fc/
H A Dtfc_cmd.c287 * status is SAM_STAT_GOOD (zero) iff code is valid.
292 u32 status, enum fcp_resp_rsp_codes code)
302 pr_debug("FCP error response: did %x oxid %x status %x code %x\n",
303 ntoh24(fh->fh_s_id), ntohs(fh->fh_ox_id), status, code);
317 info->rsp_code = code;
334 enum fcp_resp_rsp_codes code)
337 cmd->req_frame, SAM_STAT_GOOD, code);
346 enum fcp_resp_rsp_codes code)
348 ft_send_resp_code(cmd, code);
404 enum fcp_resp_rsp_codes code; local
290 ft_send_resp_status(struct fc_lport *lport, const struct fc_frame *rx_fp, u32 status, enum fcp_resp_rsp_codes code) argument
333 ft_send_resp_code(struct ft_cmd *cmd, enum fcp_resp_rsp_codes code) argument
345 ft_send_resp_code_and_free(struct ft_cmd *cmd, enum fcp_resp_rsp_codes code) argument
[all...]
/drivers/media/video/omap3isp/
H A Dispcsi2.c107 * Output should be CSI2 frame format code
163 switch (fmt->code) {
178 fmt->code);
579 if (csi2->formats[CSI2_PAD_SINK].code !=
580 csi2->formats[CSI2_PAD_SOURCE].code)
854 if (fmt->code == csi2_input_fmts[i])
860 fmt->code = V4L2_MBUS_FMT_SGRBG10_1X10;
870 pixelcode = fmt->code;
878 info = omap3isp_video_format_info(fmt->code);
880 fmt->code
896 csi2_enum_mbus_code(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh, struct v4l2_subdev_mbus_code_enum *code) argument
[all...]

Completed in 580 milliseconds

1234567891011>>