/drivers/scsi/ |
D | script_asm.pl | 179 @code = (); # Array of 32 bit words for SIOP 209 printf STDERR "Old code : %08x\n", $code[$address]; 214 $code[$address] = ($code[$address] & ~$mask) | 215 (($code[$address] & $mask) + ($value << ($offset * 8)) & 218 printf STDERR "New code : %08x\n", $code[$address] if ($debug); 277 $code[$address] |= 0x00_01_00_00; 296 $code[$address] |= 0x00_08_00_00; 306 $code[$address] |= 0x00_02_00_00; 312 $code[$address] |= $p | 0x00_02_00_00; 341 $code[$address] |= 0x00_04_00_00; [all …]
|
/drivers/media/firewire/ |
D | firedtv-rc.c | 169 void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) in fdtv_handle_rc() argument 174 if (code >= 0x0300 && code <= 0x031f) in fdtv_handle_rc() 175 code = keycode[code - 0x0300]; in fdtv_handle_rc() 176 else if (code >= 0x0340 && code <= 0x0354) in fdtv_handle_rc() 177 code = keycode[code - 0x0320]; in fdtv_handle_rc() 178 else if (code >= 0x4501 && code <= 0x451f) in fdtv_handle_rc() 179 code = oldtable[code - 0x4501]; in fdtv_handle_rc() 180 else if (code >= 0x4540 && code <= 0x4542) in fdtv_handle_rc() 181 code = oldtable[code - 0x4521]; in fdtv_handle_rc() 185 code); in fdtv_handle_rc() [all …]
|
/drivers/media/test-drivers/vimc/ |
D | vimc-common.c | 22 .code = { 31 .code = { 46 .code = { MEDIA_BUS_FMT_ARGB8888_1X32 }, 54 .code = { MEDIA_BUS_FMT_SBGGR8_1X8 }, 60 .code = { MEDIA_BUS_FMT_SGBRG8_1X8 }, 66 .code = { MEDIA_BUS_FMT_SGRBG8_1X8 }, 72 .code = { MEDIA_BUS_FMT_SRGGB8_1X8 }, 78 .code = { MEDIA_BUS_FMT_SBGGR10_1X10 }, 84 .code = { MEDIA_BUS_FMT_SGBRG10_1X10 }, 90 .code = { MEDIA_BUS_FMT_SGRBG10_1X10 }, [all …]
|
D | vimc-debayer.c | 25 u32 code; member 49 .code = MEDIA_BUS_FMT_SRGGB8_1X8, 69 .code = MEDIA_BUS_FMT_SBGGR8_1X8, 74 .code = MEDIA_BUS_FMT_SGBRG8_1X8, 79 .code = MEDIA_BUS_FMT_SGRBG8_1X8, 84 .code = MEDIA_BUS_FMT_SRGGB8_1X8, 89 .code = MEDIA_BUS_FMT_SBGGR10_1X10, 94 .code = MEDIA_BUS_FMT_SGBRG10_1X10, 99 .code = MEDIA_BUS_FMT_SGRBG10_1X10, 104 .code = MEDIA_BUS_FMT_SRGGB10_1X10, [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fweh.c | 31 enum brcmf_fweh_event_code code; member 43 enum brcmf_fweh_event_code code; member 62 const char *brcmf_fweh_event_name(enum brcmf_fweh_event_code code) in brcmf_fweh_event_name() argument 66 if (fweh_event_names[i].code == code) in brcmf_fweh_event_name() 72 const char *brcmf_fweh_event_name(enum brcmf_fweh_event_code code) in brcmf_fweh_event_name() argument 97 enum brcmf_fweh_event_code code, in brcmf_fweh_call_event_handler() argument 108 if (fweh->evt_handler[code]) in brcmf_fweh_call_event_handler() 109 err = fweh->evt_handler[code](ifp, emsg, data); in brcmf_fweh_call_event_handler() 111 bphy_err(drvr, "unhandled event %d ignored\n", code); in brcmf_fweh_call_event_handler() 228 brcmf_fweh_event_name(event->code), event->code, in brcmf_fweh_event_worker() [all …]
|
/drivers/media/platform/qcom/camss/ |
D | camss-csid.c | 66 u32 code) in csid_get_fmt_entry() argument 71 if (code == formats[i].code) in csid_get_fmt_entry() 92 csid->fmt[MSM_CSIPHY_PAD_SINK].code); in csid_set_clock_rates() 285 if (fmt->code == csid->formats[i].code) in csid_try_format() 290 fmt->code = MEDIA_BUS_FMT_UYVY8_2X8; in csid_try_format() 304 u32 code = fmt->code; in csid_try_format() local 308 fmt->code = csid->ops->src_pad_code(csid, fmt->code, 0, code); in csid_try_format() 314 if (csid->formats[i].code == fmt->code) in csid_try_format() 319 fmt->code = MEDIA_BUS_FMT_UYVY8_2X8; in csid_try_format() 341 struct v4l2_subdev_mbus_code_enum *code) in csid_enum_mbus_code() argument [all …]
|
D | camss-csiphy.c | 28 u32 code; member 109 unsigned int nformats, u32 code) in csiphy_get_bpp() argument 114 if (code == formats[i].code) in csiphy_get_bpp() 134 csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); in csiphy_set_clock_rates() 266 csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); in csiphy_stream_on() 373 if (fmt->code == csiphy->formats[i].code) in csiphy_try_format() 378 fmt->code = MEDIA_BUS_FMT_UYVY8_2X8; in csiphy_try_format() 408 struct v4l2_subdev_mbus_code_enum *code) in csiphy_enum_mbus_code() argument 413 if (code->pad == MSM_CSIPHY_PAD_SINK) { in csiphy_enum_mbus_code() 414 if (code->index >= csiphy->nformats) in csiphy_enum_mbus_code() [all …]
|
/drivers/staging/media/imx/ |
D | imx8mq-mipi-csi2.c | 140 u32 code; member 147 .code = MEDIA_BUS_FMT_SBGGR8_1X8, 150 .code = MEDIA_BUS_FMT_SGBRG8_1X8, 153 .code = MEDIA_BUS_FMT_SGRBG8_1X8, 156 .code = MEDIA_BUS_FMT_SRGGB8_1X8, 159 .code = MEDIA_BUS_FMT_Y8_1X8, 162 .code = MEDIA_BUS_FMT_SBGGR10_1X10, 165 .code = MEDIA_BUS_FMT_SGBRG10_1X10, 168 .code = MEDIA_BUS_FMT_SGRBG10_1X10, 171 .code = MEDIA_BUS_FMT_SRGGB10_1X10, [all …]
|
D | imx-ic-prp.c | 99 struct v4l2_subdev_mbus_code_enum *code) in prp_enum_mbus_code() argument 107 switch (code->pad) { in prp_enum_mbus_code() 109 ret = imx_media_enum_ipu_formats(&code->code, code->index, in prp_enum_mbus_code() 114 if (code->index != 0) { in prp_enum_mbus_code() 119 code->which); in prp_enum_mbus_code() 120 code->code = infmt->code; in prp_enum_mbus_code() 163 u32 code; in prp_set_fmt() local 183 cc = imx_media_find_ipu_format(sdformat->format.code, in prp_set_fmt() 186 imx_media_enum_ipu_formats(&code, 0, in prp_set_fmt() 188 cc = imx_media_find_ipu_format(code, in prp_set_fmt() [all …]
|
/drivers/media/usb/go7007/ |
D | go7007-fw.c | 365 static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space) in gen_mjpeghdr_to_package() argument 390 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mjpeghdr_to_package() 399 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mjpeghdr_to_package() 400 code[off + 31] = __cpu_to_le16(addr++); in gen_mjpeghdr_to_package() 403 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mjpeghdr_to_package() 404 code[off + 31] = 0; in gen_mjpeghdr_to_package() 408 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mjpeghdr_to_package() 632 __le16 *code, int space, int *framelen) in gen_mpeg1hdr_to_package() argument 679 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg1hdr_to_package() 688 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg1hdr_to_package() [all …]
|
/drivers/usb/serial/ |
D | io_ionsp.h | 446 #define IOSP_GET_STATUS_LEN(code) ((code) < 8 ? 2 : ((code) < 0x0A ? 3 : 4)) argument 448 #define IOSP_STATUS_IS_2BYTE(code) ((code) < 0x08) argument 449 #define IOSP_STATUS_IS_3BYTE(code) (((code) >= 0x08) && ((code) <= 0x0B)) argument 450 #define IOSP_STATUS_IS_4BYTE(code) (((code) >= 0x0C) && ((code) <= 0x0D)) argument
|
/drivers/gpu/drm/nouveau/nvkm/engine/ |
D | falcon.c | 106 vfree(falcon->code.data); in nvkm_falcon_fini() 107 falcon->code.data = NULL; in nvkm_falcon_fini() 149 falcon->code.limit = (caps & 0x000001ff) << 8; in nvkm_falcon_oneinit() 154 nvkm_debug(subdev, "code limit: %d\n", falcon->code.limit); in nvkm_falcon_oneinit() 192 if (!falcon->code.data) { in nvkm_falcon_init() 198 falcon->code.data = vmemdup(fw->data, fw->size); in nvkm_falcon_init() 199 falcon->code.size = fw->size; in nvkm_falcon_init() 211 if (!falcon->code.data) { in nvkm_falcon_init() 236 falcon->code.data = vmemdup(fw->data, fw->size); in nvkm_falcon_init() 237 falcon->code.size = fw->size; in nvkm_falcon_init() [all …]
|
/drivers/staging/media/omap4iss/ |
D | iss_resizer.c | 155 if ((informat->code == MEDIA_BUS_FMT_UYVY8_1X16) && in resizer_set_outaddr() 156 (outformat->code == MEDIA_BUS_FMT_YUYV8_1_5X8)) { in resizer_set_outaddr() 241 if ((informat->code == MEDIA_BUS_FMT_UYVY8_1X16) && in resizer_configure() 242 (outformat->code == MEDIA_BUS_FMT_YUYV8_1_5X8)) { in resizer_configure() 450 if (fmt->code == resizer_fmts[i]) in resizer_try_format() 456 fmt->code = MEDIA_BUS_FMT_UYVY8_1X16; in resizer_try_format() 464 pixelcode = fmt->code; in resizer_try_format() 471 (fmt->code == MEDIA_BUS_FMT_UYVY8_1X16)) in resizer_try_format() 472 fmt->code = pixelcode; in resizer_try_format() 498 struct v4l2_subdev_mbus_code_enum *code) in resizer_enum_mbus_code() argument [all …]
|
D | iss_ipipe.c | 211 if (fmt->code == ipipe_fmts[i]) in ipipe_try_format() 217 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; in ipipe_try_format() 230 fmt->code = MEDIA_BUS_FMT_UYVY8_1X16; in ipipe_try_format() 249 struct v4l2_subdev_mbus_code_enum *code) in ipipe_enum_mbus_code() argument 251 switch (code->pad) { in ipipe_enum_mbus_code() 253 if (code->index >= ARRAY_SIZE(ipipe_fmts)) in ipipe_enum_mbus_code() 256 code->code = ipipe_fmts[code->index]; in ipipe_enum_mbus_code() 261 if (code->index != 0) in ipipe_enum_mbus_code() 264 code->code = MEDIA_BUS_FMT_UYVY8_1X16; in ipipe_enum_mbus_code() 284 format.code = fse->code; in ipipe_enum_frame_size() [all …]
|
D | iss_ipipeif.c | 138 switch (format->code) { in ipipeif_configure() 182 info = omap4iss_video_format_info(format->code); in ipipeif_configure() 393 if (fmt->code == ipipeif_fmts[i]) in ipipeif_try_format() 399 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; in ipipeif_try_format() 449 struct v4l2_subdev_mbus_code_enum *code) in ipipeif_enum_mbus_code() argument 454 switch (code->pad) { in ipipeif_enum_mbus_code() 456 if (code->index >= ARRAY_SIZE(ipipeif_fmts)) in ipipeif_enum_mbus_code() 459 code->code = ipipeif_fmts[code->index]; in ipipeif_enum_mbus_code() 465 if (code->index != 0) in ipipeif_enum_mbus_code() 470 code->which); in ipipeif_enum_mbus_code() [all …]
|
/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.h | 353 return BPF_CLASS(meta->insn.code); in mbpf_class() 358 return BPF_SRC(meta->insn.code); in mbpf_src() 363 return BPF_OP(meta->insn.code); in mbpf_op() 368 return BPF_MODE(meta->insn.code); in mbpf_mode() 378 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_LDX | BPF_MEM); in is_mbpf_load() 398 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_STX | BPF_MEM); in is_mbpf_store() 413 u8 code = meta->insn.code; in is_mbpf_classic_load() local 415 return BPF_CLASS(code) == BPF_LD && in is_mbpf_classic_load() 416 (BPF_MODE(code) == BPF_ABS || BPF_MODE(code) == BPF_IND); in is_mbpf_classic_load() 421 u8 code = meta->insn.code; in is_mbpf_classic_store() local [all …]
|
/drivers/hid/ |
D | hid-input.c | 73 return (usage->type == EV_KEY && usage->code == keycode); in match_keycode() 141 usage->code : KEY_RESERVED; in hidinput_getkeycode() 162 usage->code : KEY_RESERVED; in hidinput_setkeycode() 164 usage->code = ke->keycode; in hidinput_setkeycode() 167 set_bit(usage->code, dev->keybit); in hidinput_setkeycode() 169 usage->code, usage->hid); in hidinput_setkeycode() 200 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) in hidinput_calc_abs_res() argument 217 switch (code) { in hidinput_calc_abs_res() 594 int max = 0, code; in hidinput_configure_usage() local 637 code = ((usage->hid - 1) & HID_USAGE); in hidinput_configure_usage() [all …]
|
/drivers/media/platform/xilinx/ |
D | xilinx-vip.c | 53 const struct xvip_video_format *xvip_get_format_by_code(unsigned int code) in xvip_get_format_by_code() argument 60 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_get_try_format(subdev, 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()
|
/drivers/media/platform/rcar-vin/ |
D | rcar-csi2.c | 131 u16 code; member 312 u32 code; member 318 { .code = MEDIA_BUS_FMT_RGB888_1X24, .datatype = 0x24, .bpp = 24 }, 319 { .code = MEDIA_BUS_FMT_UYVY8_1X16, .datatype = 0x1e, .bpp = 16 }, 320 { .code = MEDIA_BUS_FMT_YUYV8_1X16, .datatype = 0x1e, .bpp = 16 }, 321 { .code = MEDIA_BUS_FMT_UYVY8_2X8, .datatype = 0x1e, .bpp = 16 }, 322 { .code = MEDIA_BUS_FMT_YUYV10_2X10, .datatype = 0x1e, .bpp = 20 }, 323 { .code = MEDIA_BUS_FMT_Y10_1X10, .datatype = 0x2b, .bpp = 10 }, 324 { .code = MEDIA_BUS_FMT_SBGGR8_1X8, .datatype = 0x2a, .bpp = 8 }, 325 { .code = MEDIA_BUS_FMT_SGBRG8_1X8, .datatype = 0x2a, .bpp = 8 }, [all …]
|
/drivers/input/ |
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() 202 __set_bit(entry->sw.code, dev->swbit); in sparse_keymap_setup() 239 input_event(dev, EV_MSC, MSC_SCAN, ke->code); in sparse_keymap_report_entry() 253 input_report_switch(dev, ke->sw.code, value); in sparse_keymap_report_entry() 273 bool sparse_keymap_report_event(struct input_dev *dev, unsigned int code, in sparse_keymap_report_event() argument 277 sparse_keymap_entry_from_scancode(dev, code); in sparse_keymap_report_event() 287 unknown_ke.code = code; in sparse_keymap_report_event()
|
/drivers/s390/cio/ |
D | chsc.c | 116 ssd_area->request.code = 0x0004; in chsc_get_ssd_info() 127 ret = chsc_error_from_response(ssd_area->response.code); in chsc_get_ssd_info() 131 ssd_area->response.code); in chsc_get_ssd_info() 171 ssqd->request.code = 0x0024; in chsc_ssqd() 179 return chsc_error_from_response(ssqd->response.code); in chsc_ssqd() 198 scssc->request.code = 0x0021; in chsc_sadc() 216 return chsc_error_from_response(scssc->response.code); in chsc_sadc() 678 sei->request.code = 0x000e; in chsc_process_event_information() 685 if (sei->response.code != 0x0001) { in chsc_process_event_information() 687 sei->response.code, sei->ntsm); in chsc_process_event_information() [all …]
|
/drivers/media/platform/vsp1/ |
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() 93 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 in hsit_set_format() 108 format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 in hsit_set_format()
|
D | vsp1_rwpf.c | 32 struct v4l2_subdev_mbus_code_enum *code) in vsp1_rwpf_enum_mbus_code() argument 40 if (code->index >= ARRAY_SIZE(codes)) in vsp1_rwpf_enum_mbus_code() 43 code->code = codes[code->index]; in vsp1_rwpf_enum_mbus_code() 79 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format() 80 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_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() 91 format->code = fmt->format.code; in vsp1_rwpf_set_format() 96 format->code = fmt->format.code; in vsp1_rwpf_set_format() 218 if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) { in vsp1_rwpf_set_selection()
|
/drivers/net/fjes/ |
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; 138 __entry->length, __entry->code, __entry->timeout) 173 __field(int, code) 178 __entry->code = res_buf->unshare_buffer.code; 182 __entry->length, __entry->code, __entry->timeout) 219 __field(int, code) [all …]
|
/drivers/staging/media/atomisp/pci/ |
D | atomisp_csi2.c | 49 struct v4l2_subdev_mbus_code_enum *code) in csi2_enum_mbus_code() argument 54 while (ic->code) { in csi2_enum_mbus_code() 55 if (i == code->index) { in csi2_enum_mbus_code() 56 code->code = ic->code; in csi2_enum_mbus_code() 101 ic = atomisp_find_in_fmt_conv(ffmt->code); in atomisp_csi2_set_ffmt() 103 actual_ffmt->code = ic->code; in atomisp_csi2_set_ffmt() 105 actual_ffmt->code = atomisp_in_fmt_conv[0].code; in atomisp_csi2_set_ffmt() 252 csi2->formats[CSI2_PAD_SINK].code = in mipi_csi2_init_entities() 253 csi2->formats[CSI2_PAD_SOURCE].code = in mipi_csi2_init_entities() 254 atomisp_in_fmt_conv[0].code; in mipi_csi2_init_entities()
|