/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-debayer.c | 25 u32 code; member 50 .code = MEDIA_BUS_FMT_SRGGB8_1X8, 70 .code = MEDIA_BUS_FMT_SBGGR8_1X8, 75 .code = MEDIA_BUS_FMT_SGBRG8_1X8, 80 .code = MEDIA_BUS_FMT_SGRBG8_1X8, 85 .code = MEDIA_BUS_FMT_SRGGB8_1X8, 90 .code = MEDIA_BUS_FMT_SBGGR10_1X10, 95 .code = MEDIA_BUS_FMT_SGBRG10_1X10, 100 .code = MEDIA_BUS_FMT_SGRBG10_1X10, 105 .code = MEDIA_BUS_FMT_SRGGB10_1X10, [all …]
|
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 …]
|
/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/nxp/ |
D | imx8mq-mipi-csi2.c | 136 u32 code; member 143 .code = MEDIA_BUS_FMT_SBGGR8_1X8, 146 .code = MEDIA_BUS_FMT_SGBRG8_1X8, 149 .code = MEDIA_BUS_FMT_SGRBG8_1X8, 152 .code = MEDIA_BUS_FMT_SRGGB8_1X8, 155 .code = MEDIA_BUS_FMT_Y8_1X8, 158 .code = MEDIA_BUS_FMT_SBGGR10_1X10, 161 .code = MEDIA_BUS_FMT_SGBRG10_1X10, 164 .code = MEDIA_BUS_FMT_SGRBG10_1X10, 167 .code = MEDIA_BUS_FMT_SRGGB10_1X10, [all …]
|
D | imx-mipi-csis.c | 344 u32 code; member 353 .code = MEDIA_BUS_FMT_UYVY8_1X16, 360 .code = MEDIA_BUS_FMT_RGB565_1X16, 365 .code = MEDIA_BUS_FMT_BGR888_1X24, 372 .code = MEDIA_BUS_FMT_SBGGR8_1X8, 377 .code = MEDIA_BUS_FMT_SGBRG8_1X8, 382 .code = MEDIA_BUS_FMT_SGRBG8_1X8, 387 .code = MEDIA_BUS_FMT_SRGGB8_1X8, 392 .code = MEDIA_BUS_FMT_Y8_1X8, 397 .code = MEDIA_BUS_FMT_SBGGR10_1X10, [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/media/platform/qcom/camss/ |
D | camss-csid.c | 70 u32 code) in csid_get_fmt_entry() argument 75 if (code == formats[i].code) in csid_get_fmt_entry() 96 csid->fmt[MSM_CSIPHY_PAD_SINK].code); in csid_set_clock_rates() 305 if (fmt->code == csid->formats[i].code) in csid_try_format() 310 fmt->code = MEDIA_BUS_FMT_UYVY8_2X8; in csid_try_format() 324 u32 code = fmt->code; in csid_try_format() local 328 fmt->code = csid->ops->src_pad_code(csid, fmt->code, 0, code); in csid_try_format() 334 if (csid->formats[i].code == fmt->code) in csid_try_format() 339 fmt->code = MEDIA_BUS_FMT_UYVY8_2X8; in csid_try_format() 361 struct v4l2_subdev_mbus_code_enum *code) in csid_enum_mbus_code() argument [all …]
|
D | camss-csiphy.c | 28 u32 code; member 110 unsigned int nformats, u32 code) in csiphy_get_bpp() argument 115 if (code == formats[i].code) in csiphy_get_bpp() 135 csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); in csiphy_set_clock_rates() 248 csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); in csiphy_stream_on() 355 if (fmt->code == csiphy->formats[i].code) in csiphy_try_format() 360 fmt->code = MEDIA_BUS_FMT_UYVY8_2X8; in csiphy_try_format() 390 struct v4l2_subdev_mbus_code_enum *code) in csiphy_enum_mbus_code() argument 395 if (code->pad == MSM_CSIPHY_PAD_SINK) { in csiphy_enum_mbus_code() 396 if (code->index >= csiphy->nformats) in csiphy_enum_mbus_code() [all …]
|
/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/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/media/platform/renesas/rzg2l-cru/ |
D | rzg2l-ip.c | 11 u32 code; member 17 { .code = MEDIA_BUS_FMT_UYVY8_1X16, .datatype = 0x1e, .bpp = 16 }, 25 static const struct rzg2l_cru_ip_format *rzg2l_cru_ip_code_to_fmt(unsigned int code) in rzg2l_cru_ip_code_to_fmt() argument 30 if (rzg2l_cru_ip_formats[i].code == code) in rzg2l_cru_ip_code_to_fmt() 119 if (!rzg2l_cru_ip_code_to_fmt(fmt->format.code)) in rzg2l_cru_ip_set_format() 120 sink_format->code = rzg2l_cru_ip_formats[0].code; in rzg2l_cru_ip_set_format() 122 sink_format->code = fmt->format.code; in rzg2l_cru_ip_set_format() 144 struct v4l2_subdev_mbus_code_enum *code) in rzg2l_cru_ip_enum_mbus_code() argument 146 if (code->index >= ARRAY_SIZE(rzg2l_cru_ip_formats)) in rzg2l_cru_ip_enum_mbus_code() 149 code->code = rzg2l_cru_ip_formats[code->index].code; in rzg2l_cru_ip_enum_mbus_code() [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 …]
|
/drivers/soc/tegra/cbb/ |
D | tegra234-cbb.c | 325 cbb->fabric->errors[type].code); in tegra234_cbb_print_error() 342 cbb->fabric->errors[type].code); in tegra234_cbb_print_error() 394 cbb->fabric->errors[cbb->type].code); in print_errlog_err() 440 if (!strcmp(cbb->fabric->errors[cbb->type].code, "TIMEOUT_ERR")) { in print_errlog_err() 675 .code = "SLAVE_ERR", 678 .code = "DECODE_ERR", 681 .code = "FIREWALL_ERR", 684 .code = "TIMEOUT_ERR", 687 .code = "PWRDOWN_ERR", 690 .code = "UNSUPPORTED_ERR", [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/staging/media/atomisp/pci/ |
D | atomisp_csi2.c | 47 struct v4l2_subdev_mbus_code_enum *code) in csi2_enum_mbus_code() argument 52 while (ic->code) { in csi2_enum_mbus_code() 53 if (i == code->index) { in csi2_enum_mbus_code() 54 code->code = ic->code; in csi2_enum_mbus_code() 99 ic = atomisp_find_in_fmt_conv(ffmt->code); in atomisp_csi2_set_ffmt() 101 actual_ffmt->code = ic->code; in atomisp_csi2_set_ffmt() 103 actual_ffmt->code = atomisp_in_fmt_conv[0].code; in atomisp_csi2_set_ffmt() 211 csi2->formats[CSI2_PAD_SINK].code = atomisp_in_fmt_conv[0].code; in mipi_csi2_init_entities() 212 csi2->formats[CSI2_PAD_SOURCE].code = atomisp_in_fmt_conv[0].code; in mipi_csi2_init_entities()
|
/drivers/iio/amplifiers/ |
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() 135 gain = 20000 - 31500 + code * 500; 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() [all …]
|
/drivers/media/platform/xilinx/ |
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_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/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/staging/media/imx/ |
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/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/media/platform/renesas/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()
|