Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 738) sorted by relevance

12345678910>>...30

/drivers/scsi/
Dscript_asm.pl192 @code = (); # Array of 32 bit words for SIOP
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);
290 $code[$address] |= 0x00_01_00_00;
309 $code[$address] |= 0x00_08_00_00;
319 $code[$address] |= 0x00_02_00_00;
325 $code[$address] |= $p | 0x00_02_00_00;
354 $code[$address] |= 0x00_04_00_00;
[all …]
/drivers/media/platform/soc_camera/
Dsoc_mediabus.c20 .code = MEDIA_BUS_FMT_YUYV8_2X8,
30 .code = MEDIA_BUS_FMT_YVYU8_2X8,
40 .code = MEDIA_BUS_FMT_UYVY8_2X8,
50 .code = MEDIA_BUS_FMT_VYUY8_2X8,
60 .code = MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE,
70 .code = MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE,
80 .code = MEDIA_BUS_FMT_RGB565_2X8_LE,
90 .code = MEDIA_BUS_FMT_RGB565_2X8_BE,
100 .code = MEDIA_BUS_FMT_RGB666_1X18,
109 .code = MEDIA_BUS_FMT_RGB888_1X24,
[all …]
/drivers/media/firewire/
Dfiredtv-rc.c173 void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) in fdtv_handle_rc() argument
178 if (code >= 0x0300 && code <= 0x031f) in fdtv_handle_rc()
179 code = keycode[code - 0x0300]; in fdtv_handle_rc()
180 else if (code >= 0x0340 && code <= 0x0354) in fdtv_handle_rc()
181 code = keycode[code - 0x0320]; in fdtv_handle_rc()
182 else if (code >= 0x4501 && code <= 0x451f) in fdtv_handle_rc()
183 code = oldtable[code - 0x4501]; in fdtv_handle_rc()
184 else if (code >= 0x4540 && code <= 0x4542) in fdtv_handle_rc()
185 code = oldtable[code - 0x4521]; in fdtv_handle_rc()
188 "from remote control\n", code); in fdtv_handle_rc()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfweh.c41 enum brcmf_fweh_event_code code; member
53 enum brcmf_fweh_event_code code; member
72 static const char *brcmf_fweh_event_name(enum brcmf_fweh_event_code code) in brcmf_fweh_event_name() argument
76 if (fweh_event_names[i].code == code) in brcmf_fweh_event_name()
82 static const char *brcmf_fweh_event_name(enum brcmf_fweh_event_code code) in brcmf_fweh_event_name() argument
106 enum brcmf_fweh_event_code code, in brcmf_fweh_call_event_handler() argument
117 if (fweh->evt_handler[code]) in brcmf_fweh_call_event_handler()
118 err = fweh->evt_handler[code](ifp, emsg, data); in brcmf_fweh_call_event_handler()
120 brcmf_err("unhandled event %d ignored\n", code); in brcmf_fweh_call_event_handler()
237 brcmf_fweh_event_name(event->code), event->code, in brcmf_fweh_event_worker()
[all …]
/drivers/thermal/qcom/
Dtsens-8996.c27 u32 code; in get_temp_8996() local
32 ret = regmap_read(tmdev->map, sensor_addr, &code); in get_temp_8996()
35 last_temp = code & LAST_TEMP_MASK; in get_temp_8996()
36 if (code & STATUS_VALID_BIT) in get_temp_8996()
40 ret = regmap_read(tmdev->map, sensor_addr, &code); in get_temp_8996()
43 if (code & STATUS_VALID_BIT) { in get_temp_8996()
44 last_temp = code & LAST_TEMP_MASK; in get_temp_8996()
47 last_temp2 = code & LAST_TEMP_MASK; in get_temp_8996()
51 ret = regmap_read(tmdev->map, sensor_addr, &code); in get_temp_8996()
54 if (code & STATUS_VALID_BIT) { in get_temp_8996()
[all …]
/drivers/media/usb/go7007/
Dgo7007-fw.c373 static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space) in gen_mjpeghdr_to_package() argument
398 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mjpeghdr_to_package()
407 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mjpeghdr_to_package()
408 code[off + 31] = __cpu_to_le16(addr++); in gen_mjpeghdr_to_package()
411 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mjpeghdr_to_package()
412 code[off + 31] = 0; in gen_mjpeghdr_to_package()
416 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mjpeghdr_to_package()
640 __le16 *code, int space, int *framelen) in gen_mpeg1hdr_to_package() argument
687 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg1hdr_to_package()
696 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg1hdr_to_package()
[all …]
/drivers/usb/serial/
Dio_ionsp.h450 #define IOSP_GET_STATUS_LEN(code) ((code) < 8 ? 2 : ((code) < 0x0A ? 3 : 4)) argument
452 #define IOSP_STATUS_IS_2BYTE(code) ((code) < 0x08) argument
453 #define IOSP_STATUS_IS_3BYTE(code) (((code) >= 0x08) && ((code) <= 0x0B)) argument
454 #define IOSP_STATUS_IS_4BYTE(code) (((code) >= 0x0C) && ((code) <= 0x0D)) argument
/drivers/gpu/drm/nouveau/nvkm/engine/
Dfalcon.c105 vfree(falcon->code.data); in nvkm_falcon_fini()
106 falcon->code.data = NULL; in nvkm_falcon_fini()
146 falcon->code.limit = (caps & 0x000001ff) << 8; in nvkm_falcon_oneinit()
151 nvkm_debug(subdev, "code limit: %d\n", falcon->code.limit); in nvkm_falcon_oneinit()
189 if (!falcon->code.data) { in nvkm_falcon_init()
195 falcon->code.data = vmemdup(fw->data, fw->size); in nvkm_falcon_init()
196 falcon->code.size = fw->size; in nvkm_falcon_init()
208 if (!falcon->code.data) { in nvkm_falcon_init()
233 falcon->code.data = vmemdup(fw->data, fw->size); in nvkm_falcon_init()
234 falcon->code.size = fw->size; in nvkm_falcon_init()
[all …]
/drivers/iio/amplifiers/
Dad8366.c60 unsigned code; in ad8366_read_raw() local
65 code = st->ch[chan->channel]; in ad8366_read_raw()
68 code = code * 253 + 4500; in ad8366_read_raw()
69 *val = code / 1000; in ad8366_read_raw()
70 *val2 = (code % 1000) * 1000; in ad8366_read_raw()
89 unsigned code; in ad8366_write_raw() local
96 code = (((u8)val * 1000) + ((u32)val2 / 1000)); in ad8366_write_raw()
98 if (code > 20500 || code < 4500) in ad8366_write_raw()
101 code = (code - 4500) / 253; in ad8366_write_raw()
106 st->ch[chan->channel] = code; in ad8366_write_raw()
/drivers/staging/media/omap4iss/
Diss_resizer.c159 if ((informat->code == MEDIA_BUS_FMT_UYVY8_1X16) && in resizer_set_outaddr()
160 (outformat->code == MEDIA_BUS_FMT_YUYV8_1_5X8)) { in resizer_set_outaddr()
245 if ((informat->code == MEDIA_BUS_FMT_UYVY8_1X16) && in resizer_configure()
246 (outformat->code == MEDIA_BUS_FMT_YUYV8_1_5X8)) { in resizer_configure()
453 if (fmt->code == resizer_fmts[i]) in resizer_try_format()
459 fmt->code = MEDIA_BUS_FMT_UYVY8_1X16; in resizer_try_format()
467 pixelcode = fmt->code; in resizer_try_format()
473 (fmt->code == MEDIA_BUS_FMT_UYVY8_1X16)) in resizer_try_format()
474 fmt->code = pixelcode; in resizer_try_format()
500 struct v4l2_subdev_mbus_code_enum *code) in resizer_enum_mbus_code() argument
[all …]
Diss_ipipe.c214 if (fmt->code == ipipe_fmts[i]) in ipipe_try_format()
220 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; in ipipe_try_format()
232 fmt->code = MEDIA_BUS_FMT_UYVY8_1X16; in ipipe_try_format()
251 struct v4l2_subdev_mbus_code_enum *code) in ipipe_enum_mbus_code() argument
253 switch (code->pad) { in ipipe_enum_mbus_code()
255 if (code->index >= ARRAY_SIZE(ipipe_fmts)) in ipipe_enum_mbus_code()
258 code->code = ipipe_fmts[code->index]; in ipipe_enum_mbus_code()
263 if (code->index != 0) in ipipe_enum_mbus_code()
266 code->code = MEDIA_BUS_FMT_UYVY8_1X16; in ipipe_enum_mbus_code()
286 format.code = fse->code; in ipipe_enum_frame_size()
[all …]
Diss_ipipeif.c142 switch (format->code) { in ipipeif_configure()
186 info = omap4iss_video_format_info(format->code); in ipipeif_configure()
396 if (fmt->code == ipipeif_fmts[i]) in ipipeif_try_format()
402 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; in ipipeif_try_format()
450 struct v4l2_subdev_mbus_code_enum *code) in ipipeif_enum_mbus_code() argument
455 switch (code->pad) { in ipipeif_enum_mbus_code()
457 if (code->index >= ARRAY_SIZE(ipipeif_fmts)) in ipipeif_enum_mbus_code()
460 code->code = ipipeif_fmts[code->index]; in ipipeif_enum_mbus_code()
466 if (code->index != 0) in ipipeif_enum_mbus_code()
470 code->which); in ipipeif_enum_mbus_code()
[all …]
/drivers/media/platform/xilinx/
Dxilinx-vip.c56 const struct xvip_video_format *xvip_get_format_by_code(unsigned int code) in xvip_get_format_by_code() argument
63 if (format->code == code) in xvip_get_format_by_code()
253 struct v4l2_subdev_mbus_code_enum *code) in xvip_enum_mbus_code() argument
260 if (code->which == V4L2_SUBDEV_FORMAT_ACTIVE) in xvip_enum_mbus_code()
263 if (code->index) in xvip_enum_mbus_code()
266 format = v4l2_subdev_get_try_format(subdev, cfg, code->pad); in xvip_enum_mbus_code()
268 code->code = format->code; in xvip_enum_mbus_code()
303 if (fse->index || fse->code != format->code) in xvip_enum_frame_size()
/drivers/char/
Dsnsc_event.c64 scdrv_parse_event(char *event, int *src, int *code, int *esp_code, char *desc) in scdrv_parse_event() argument
73 *code = get_unaligned_be32(event); in scdrv_parse_event()
117 scdrv_event_severity(int code) in scdrv_event_severity() argument
119 int ev_class = (code & EV_CLASS_MASK); in scdrv_event_severity()
120 int ev_severity = (code & EV_SEVERITY_MASK); in scdrv_event_severity()
188 int code, esp_code, src, class; in scdrv_dispatch_event() local
192 if (scdrv_parse_event(event, &src, &code, &esp_code, desc) < 0) { in scdrv_dispatch_event()
198 severity = scdrv_event_severity(code); in scdrv_dispatch_event()
200 class = (code & EV_CLASS_MASK); in scdrv_dispatch_event()
202 if (class == EV_CLASS_PWRD_NOTIFY || code == ENV_PWRDN_PEND) { in scdrv_dispatch_event()
[all …]
/drivers/media/i2c/soc_camera/
Dimx074.c74 u32 code; member
94 static const struct imx074_datafmt *imx074_find_datafmt(u32 code) in imx074_find_datafmt() argument
99 if (imx074_colour_fmts[i].code == code) in imx074_find_datafmt()
161 const struct imx074_datafmt *fmt = imx074_find_datafmt(mf->code); in imx074_set_fmt()
168 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code); in imx074_set_fmt()
174 mf->code = imx074_colour_fmts[0].code; in imx074_set_fmt()
183 priv->fmt = imx074_find_datafmt(mf->code); in imx074_set_fmt()
203 mf->code = fmt->code; in imx074_get_fmt()
236 struct v4l2_subdev_mbus_code_enum *code) in imx074_enum_mbus_code() argument
238 if (code->pad || in imx074_enum_mbus_code()
[all …]
/drivers/hid/
Dhid-input.c85 return (usage->type == EV_KEY && usage->code == keycode); in match_keycode()
153 usage->code : KEY_RESERVED; in hidinput_getkeycode()
174 usage->code : KEY_RESERVED; in hidinput_setkeycode()
175 usage->code = ke->keycode; in hidinput_setkeycode()
178 set_bit(usage->code, dev->keybit); in hidinput_setkeycode()
180 usage->code, usage->hid); in hidinput_setkeycode()
211 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) in hidinput_calc_abs_res() argument
228 switch (code) { in hidinput_calc_abs_res()
500 int max = 0, code; in hidinput_configure_usage() local
543 code = ((usage->hid - 1) & HID_USAGE); in hidinput_configure_usage()
[all …]
/drivers/input/
Dsparse-keymap.c66 unsigned int code) in sparse_keymap_entry_from_scancode() argument
71 if (code == key->code) in sparse_keymap_entry_from_scancode()
127 ke->len = sizeof(key->code); in sparse_keymap_getkeycode()
128 memcpy(ke->scancode, &key->code, sizeof(key->code)); in sparse_keymap_getkeycode()
207 __set_bit(entry->sw.code, dev->swbit); in sparse_keymap_setup()
278 input_event(dev, EV_MSC, MSC_SCAN, ke->code); in sparse_keymap_report_entry()
292 input_report_switch(dev, ke->sw.code, value); in sparse_keymap_report_entry()
311 bool sparse_keymap_report_event(struct input_dev *dev, unsigned int code, in sparse_keymap_report_event() argument
315 sparse_keymap_entry_from_scancode(dev, code); in sparse_keymap_report_event()
325 unknown_ke.code = code; in sparse_keymap_report_event()
/drivers/media/platform/vsp1/
Dvsp1_hsit.c42 struct v4l2_subdev_mbus_code_enum *code) in hsit_enum_mbus_code() argument
46 if (code->index > 0) in hsit_enum_mbus_code()
49 if ((code->pad == HSIT_PAD_SINK && !hsit->inverse) | in hsit_enum_mbus_code()
50 (code->pad == HSIT_PAD_SOURCE && hsit->inverse)) in hsit_enum_mbus_code()
51 code->code = MEDIA_BUS_FMT_ARGB8888_1X32; in hsit_enum_mbus_code()
53 code->code = MEDIA_BUS_FMT_AHSV8888_1X32; in hsit_enum_mbus_code()
94 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 in hsit_set_format()
109 format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 in hsit_set_format()
Dvsp1_rwpf.c36 struct v4l2_subdev_mbus_code_enum *code) in vsp1_rwpf_enum_mbus_code() argument
43 if (code->index >= ARRAY_SIZE(codes)) in vsp1_rwpf_enum_mbus_code()
46 code->code = codes[code->index]; in vsp1_rwpf_enum_mbus_code()
80 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format()
81 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in vsp1_rwpf_set_format()
82 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in vsp1_rwpf_set_format()
90 format->code = fmt->format.code; in vsp1_rwpf_set_format()
95 format->code = fmt->format.code; in vsp1_rwpf_set_format()
209 if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) { in vsp1_rwpf_set_selection()
/drivers/s390/cio/
Dchsc.c108 ssd_area->request.code = 0x0004; in chsc_get_ssd_info()
119 ret = chsc_error_from_response(ssd_area->response.code); in chsc_get_ssd_info()
123 ssd_area->response.code); in chsc_get_ssd_info()
163 ssqd->request.code = 0x0024; in chsc_ssqd()
171 return chsc_error_from_response(ssqd->response.code); in chsc_ssqd()
189 scssc->request.code = 0x0021; in chsc_sadc()
207 return chsc_error_from_response(scssc->response.code); in chsc_sadc()
646 sei->request.code = 0x000e; in chsc_process_event_information()
653 if (sei->response.code != 0x0001) { in chsc_process_event_information()
655 sei->response.code, sei->ntsm); in chsc_process_event_information()
[all …]
/drivers/media/i2c/
Dmt9m111.c186 u32 code; member
222 u32 code) in mt9m111_find_datafmt() argument
226 if (mt9m111_colour_fmts[i].code == code) in mt9m111_find_datafmt()
335 int width, int height, u32 code) in mt9m111_setup_geometry() argument
349 if (code != MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE) { in mt9m111_setup_geometry()
360 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry()
401 if (mt9m111->fmt->code == MEDIA_BUS_FMT_SBGGR8_1X8 || in mt9m111_set_selection()
402 mt9m111->fmt->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE) { in mt9m111_set_selection()
421 ret = mt9m111_setup_geometry(mt9m111, &rect, width, height, mt9m111->fmt->code); in mt9m111_set_selection()
469 mf->code = mt9m111->fmt->code; in mt9m111_get_fmt()
[all …]
/drivers/input/keyboard/
Datkbd.c315 static bool atkbd_need_xlate(unsigned long xl_bit, unsigned char code) in atkbd_need_xlate() argument
319 if (code == ATKBD_RET_EMUL0 || code == ATKBD_RET_EMUL1) in atkbd_need_xlate()
323 if (code == xl_table[i]) in atkbd_need_xlate()
334 static void atkbd_calculate_xl_bit(struct atkbd *atkbd, unsigned char code) in atkbd_calculate_xl_bit() argument
339 if (!((code ^ xl_table[i]) & 0x7f)) { in atkbd_calculate_xl_bit()
340 if (code & 0x80) in atkbd_calculate_xl_bit()
353 static unsigned int atkbd_compat_scancode(struct atkbd *atkbd, unsigned int code) in atkbd_compat_scancode() argument
357 code |= 0x100; in atkbd_compat_scancode()
359 code = (code & 0x7f) | ((code & 0x80) << 1); in atkbd_compat_scancode()
361 code |= 0x80; in atkbd_compat_scancode()
[all …]
Dpxa27x_keypad.c158 unsigned short code; in pxa27x_keypad_direct_key_parse_dt() local
203 code = be16_to_cpup(prop + i); in pxa27x_keypad_direct_key_parse_dt()
204 keypad->keycodes[MAX_MATRIX_KEY_NUM + i] = code; in pxa27x_keypad_direct_key_parse_dt()
205 __set_bit(code, input_dev->keybit); in pxa27x_keypad_direct_key_parse_dt()
216 unsigned int code, proplen; in pxa27x_keypad_rotary_parse_dt() local
224 relkey_ret = of_property_read_u32(np, relkeyname, &code); in pxa27x_keypad_rotary_parse_dt()
230 relcode = code & 0xffff; in pxa27x_keypad_rotary_parse_dt()
231 pdata->rotary0_rel_code = (code & 0xffff); in pxa27x_keypad_rotary_parse_dt()
234 relcode = code >> 16; in pxa27x_keypad_rotary_parse_dt()
248 code = be32_to_cpup(prop); in pxa27x_keypad_rotary_parse_dt()
[all …]
Dmaple_keyb.c99 int code, keycode; in dc_scan_kbd() local
103 code = i + 224; in dc_scan_kbd()
104 keycode = kbd->keycode[code]; in dc_scan_kbd()
105 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
111 code = kbd->old[i]; in dc_scan_kbd()
112 if (code > 3 && ptr == NULL) { in dc_scan_kbd()
113 keycode = kbd->keycode[code]; in dc_scan_kbd()
115 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
120 code); in dc_scan_kbd()
123 code = kbd->new[i]; in dc_scan_kbd()
[all …]
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_offload.c143 void **code, dma_addr_t *dma_addr, u16 max_instr) in nfp_net_bpf_offload_prepare() argument
168 *code = dma_zalloc_coherent(&nn->pdev->dev, code_sz, dma_addr, in nfp_net_bpf_offload_prepare()
170 if (!*code) in nfp_net_bpf_offload_prepare()
173 ret = nfp_bpf_jit(cls_bpf->prog, *code, act, start_off, done_off, in nfp_net_bpf_offload_prepare()
181 dma_free_coherent(&nn->pdev->dev, code_sz, *code, *dma_addr); in nfp_net_bpf_offload_prepare()
187 void *code, dma_addr_t dma_addr, in nfp_net_bpf_load_and_start() argument
214 dma_free_coherent(&nn->pdev->dev, code_sz, code, dma_addr); in nfp_net_bpf_load_and_start()
243 void *code; in nfp_net_bpf_offload() local
260 err = nfp_net_bpf_offload_prepare(nn, cls_bpf, &res, &code, in nfp_net_bpf_offload()
266 nfp_net_bpf_load_and_start(nn, cls_bpf->gen_flags, code, in nfp_net_bpf_offload()
[all …]

12345678910>>...30