arch/alpha/boot/misc.c
30
__attribute__ ((format (printf, 1, 2)));
arch/alpha/include/asm/console.h
23
__attribute__ ((format (printf, 1, 2)));
arch/arc/kernel/jump_label.c
11
#define arc_jl_fatal(format...) \
arch/arc/kernel/jump_label.c
13
pr_err(JUMPLABEL_ERR format); \
arch/arm/kernel/cacheinfo.c
37
u32 format = FIELD_GET(CTR_FORMAT_MASK, ctr);
arch/arm/kernel/cacheinfo.c
39
if (format == CTR_FORMAT_ARMV7) {
arch/arm/kernel/cacheinfo.c
43
} else if (WARN_ON_ONCE(format != CTR_FORMAT_ARMV6)) {
arch/arm/kernel/cacheinfo.c
86
u32 ctr, format;
arch/arm/kernel/cacheinfo.c
94
format = FIELD_GET(CTR_FORMAT_MASK, ctr);
arch/arm/kernel/cacheinfo.c
95
if (format != CTR_FORMAT_ARMV7)
arch/m68k/fpsp040/fpsp.h
215
.set EXC_VEC,10 | exception frame vector (format+vector#)
arch/m68k/include/asm/elf.h
102
pr_reg[19] = (regs->format << 12) | regs->vector; \
arch/m68k/include/asm/processor.h
143
#define setframeformat(_regs) do { (_regs)->format = 0x4; } while(0)
arch/m68k/include/uapi/asm/ptrace.h
43
unsigned format : 4; /* frame format specifier */
arch/m68k/include/uapi/asm/ptrace.h
50
unsigned format : 4; /* frame format specifier */
arch/m68k/kernel/process.c
82
regs->format, regs->vector, regs->pc, regs->sr,
arch/m68k/kernel/signal.c
1014
tregs->format = 0;
arch/m68k/kernel/signal.c
103
regs->stkadj = frame_extra_sizes(regs->format);
arch/m68k/kernel/signal.c
106
tregs->format = FORMAT;
arch/m68k/kernel/signal.c
205
regs->format = 0x4;
arch/m68k/kernel/signal.c
659
regs->format = formatvec >> 12;
arch/m68k/kernel/signal.c
671
if (new->ptregs.format == 7) // bus error frame
arch/m68k/kernel/signal.c
826
sc->sc_formatvec = tregs->format << 12 | tregs->vector;
arch/m68k/kernel/signal.c
857
err |= __put_user((tregs->format << 12) | tregs->vector, &uc->uc_formatvec);
arch/m68k/kernel/signal.c
868
if (CPU_IS_020_OR_030 && tregs->format == 0xb) {
arch/m68k/kernel/signal.c
881
int fsize = frame_extra_sizes(tregs->format);
arch/m68k/kernel/signal.c
887
tregs->format);
arch/m68k/kernel/signal.c
934
tregs->format = 0;
arch/m68k/kernel/signal.c
954
int fsize = frame_extra_sizes(tregs->format);
arch/m68k/kernel/signal.c
959
regs->format);
arch/m68k/kernel/traps.c
1104
switch (fp->ptregs.format) {
arch/m68k/kernel/traps.c
381
fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2
arch/m68k/kernel/traps.c
383
fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr);
arch/m68k/kernel/traps.c
479
if (fp->ptregs.format == 0xA)
arch/m68k/kernel/traps.c
512
fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2
arch/m68k/kernel/traps.c
514
fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr);
arch/m68k/kernel/traps.c
625
if (fp->ptregs.format == 10)
arch/m68k/kernel/traps.c
759
pr_debug("*** Bus Error *** Format is %x\n", fp->ptregs.format);
arch/m68k/kernel/traps.c
783
switch (fp->ptregs.format) {
arch/m68k/kernel/traps.c
860
pr_info("Frame format=%X ", regs->format);
arch/m68k/kernel/traps.c
861
switch (regs->format) {
arch/m68k/kernel/traps.c
975
fp->ptregs.format);
arch/m68k/kernel/traps.c
978
vector, fp->ptregs.format);
arch/m68k/kernel/traps.c
986
(fp->ptregs.format) == 0xA ?
arch/m68k/kernel/traps.c
990
(fp->ptregs.format) == 0xA ?
arch/m68k/math-emu/fp_decode.h
102
| decode destination format for fmove reg,ea
arch/m68k/math-emu/fp_decode.h
97
| either source fp register or data format
arch/mips/cavium-octeon/executive/cvmx-interrupt-decodes.c
44
#define PRINT_ERROR(format, ...)
arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c
39
#define PRINT_ERROR(format, ...)
arch/mips/include/asm/octeon/cvmx-led-defs.h
141
uint64_t format:4;
arch/mips/include/asm/octeon/cvmx-led-defs.h
143
uint64_t format:4;
arch/mips/n64/init.c
85
.format = "r5g5b5a1"
arch/parisc/kernel/drivers.c
596
#define pa_dev_attr_id(field, format) pa_dev_attr(field, id.field, format)
arch/powerpc/boot/stdio.h
11
extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
arch/powerpc/boot/stdio.h
16
__attribute__((format(printf, 2, 3)));
arch/powerpc/include/asm/secvar.h
21
ssize_t (*format)(char *buf, size_t bufsize);
arch/powerpc/include/asm/udbg.h
23
__attribute__ ((format (printf, 1, 2)));
arch/powerpc/include/asm/xmon.h
26
extern __printf(1, 2) void xmon_printf(const char *format, ...);
arch/powerpc/kernel/prom_init.c
499
static void __init prom_printf(const char *format, ...)
arch/powerpc/kernel/prom_init.c
507
va_start(args, format);
arch/powerpc/kernel/prom_init.c
508
for (p = format; *p != 0; p = q) {
arch/powerpc/kernel/secvar-sysfs.c
104
static struct kobj_attribute format_attr = __ATTR_RO(format);
arch/powerpc/kernel/secvar-sysfs.c
26
ssize_t len = secvar_ops->format(tmp, sizeof(tmp));
arch/powerpc/platforms/powermac/bootx_init.c
45
static void __init bootx_printf(const char *format, ...)
arch/powerpc/platforms/powermac/bootx_init.c
51
va_start(args, format);
arch/powerpc/platforms/powermac/bootx_init.c
52
for (p = format; *p != 0; p = q) {
arch/powerpc/platforms/powermac/bootx_init.c
87
static void __init bootx_printf(const char *format, ...) {}
arch/powerpc/platforms/powernv/opal-secvar.c
105
const char *format;
arch/powerpc/platforms/powernv/opal-secvar.c
113
rc = of_property_read_string(node, "format", &format);
arch/powerpc/platforms/powernv/opal-secvar.c
117
rc = snprintf(buf, bufsize, "%s", format);
arch/powerpc/platforms/powernv/opal-secvar.c
150
.format = opal_secvar_format,
arch/powerpc/platforms/pseries/cmm.c
331
#define CMM_SHOW(name, format, args...) \
arch/powerpc/platforms/pseries/cmm.c
336
return sprintf(buf, format, ##args); \
arch/powerpc/platforms/pseries/plpks-secvar.c
199
.format = plpks_secvar_format,
arch/powerpc/platforms/pseries/plpks-secvar.c
207
.format = plpks_secvar_format,
arch/powerpc/xmon/nonstdio.c
167
void xmon_printf(const char *format, ...)
arch/powerpc/xmon/nonstdio.c
173
va_start(args, format);
arch/powerpc/xmon/nonstdio.c
174
n = vsnprintf(xmon_outbuf, sizeof(xmon_outbuf), format, args);
arch/powerpc/xmon/ppc.h
432
const char *format;
arch/powerpc/xmon/xmon.c
2613
#define DUMP(paca, name, format) \
arch/powerpc/xmon/xmon.c
2614
printf(" %-*s = "format"\t(0x%lx)\n", 25, #name, 18, paca->name, \
arch/s390/include/asm/bug.h
101
__WARN_trap(__WARN_bug_entry(__flags, format), ## arg); \
arch/s390/include/asm/bug.h
109
#define WARN_ONCE(cond, format, arg...) \
arch/s390/include/asm/bug.h
115
format, ## arg); \
arch/s390/include/asm/bug.h
15
#define __BUG_ENTRY_VERBOSE(format, file, line) \
arch/s390/include/asm/bug.h
16
" .long " format " - . # bug_entry::format\n" \
arch/s390/include/asm/bug.h
20
#define __BUG_ENTRY_VERBOSE(format, file, line)
arch/s390/include/asm/bug.h
29
#define __BUG_ENTRY(format, file, line, flags, size) \
arch/s390/include/asm/bug.h
32
__BUG_ENTRY_VERBOSE(format, file, line) \
arch/s390/include/asm/bug.h
63
#define __WARN_bug_entry(flags, format) \
arch/s390/include/asm/bug.h
72
: [frmt] "i" (format), \
arch/s390/include/asm/bug.h
97
#define __WARN_print_arg(flags, format, arg...) \
arch/s390/include/asm/debug.h
238
__attribute__ ((format(printf, 3, 4)));
arch/s390/include/asm/debug.h
366
__attribute__ ((format(printf, 3, 4)));
arch/s390/include/asm/fcx.h
129
u32 format:8;
arch/s390/include/asm/fcx.h
206
u32 format:8;
arch/s390/include/asm/fcx.h
264
u32 format:8;
arch/s390/include/asm/fcx.h
39
u32 format:2;
arch/s390/include/asm/pci.h
70
u32 format : 8;
arch/s390/include/asm/sysinfo.h
84
char format;
arch/s390/include/uapi/asm/dasd.h
127
unsigned char format:3;
arch/s390/include/uapi/asm/dasd.h
48
unsigned int format; /* format info like formatted/cdl/ldl/... */
arch/s390/kernel/diag/diag324.c
51
u64 format : 16;
arch/s390/kernel/dis.c
447
for (ops = formats[insn->format], i = 0;
arch/s390/kernel/dis.c
61
unsigned char format;
arch/s390/kernel/sysinfo.c
165
if (info->format == 1)
arch/s390/kernel/sysinfo.c
175
if (info->format == 1)
arch/s390/pci/pci_debug.c
114
switch (zdev->fmb->format) {
arch/s390/tools/gen_opcode_table.c
110
.format = (char *[]) {
arch/s390/tools/gen_opcode_table.c
132
static struct insn_type *insn_format_to_type(char *format)
arch/s390/tools/gen_opcode_table.c
138
strcpy(tmp, format);
arch/s390/tools/gen_opcode_table.c
142
ptr = insn_type_table[i].format;
arch/s390/tools/gen_opcode_table.c
158
rc = scanf("%s %s %s", insn.opcode, insn.name, insn.format);
arch/s390/tools/gen_opcode_table.c
163
insn.type = insn_format_to_type(insn.format);
arch/s390/tools/gen_opcode_table.c
177
return strcmp(((struct insn *)a)->format, ((struct insn *)b)->format);
arch/s390/tools/gen_opcode_table.c
182
char *format;
arch/s390/tools/gen_opcode_table.c
186
format = "";
arch/s390/tools/gen_opcode_table.c
19
char **format;
arch/s390/tools/gen_opcode_table.c
190
if (!strcmp(format, desc->insn[i].format))
arch/s390/tools/gen_opcode_table.c
193
format = desc->insn[i].format;
arch/s390/tools/gen_opcode_table.c
194
printf("\tINSTR_%s,\n", format);
arch/s390/tools/gen_opcode_table.c
251
printf("\t[%4d] = { .opfrag = 0x%s, .format = INSTR_%s, ", nr, opcode, insn->format);
arch/s390/tools/gen_opcode_table.c
27
char format[STRING_SIZE_MAX];
arch/s390/tools/gen_opcode_table.c
39
char *format;
arch/s390/tools/gen_opcode_table.c
70
.format = (char *[]) {
arch/s390/tools/gen_opcode_table.c
85
.format = (char *[]) {
arch/s390/tools/gen_opcode_table.c
95
.format = (char *[]) {
arch/sparc/vdso/vdso2c.c
83
__attribute__((format(printf, 1, 2))) __attribute__((noreturn))
arch/sparc/vdso/vdso2c.c
84
static void fail(const char *format, ...)
arch/sparc/vdso/vdso2c.c
88
va_start(ap, format);
arch/sparc/vdso/vdso2c.c
90
vfprintf(stderr, format, ap);
arch/um/include/shared/os.h
268
__attribute__ ((format (printf, 1, 2)));
arch/um/include/shared/os.h
270
__attribute__ ((format (printf, 1, 2)));
arch/um/include/shared/user.h
28
__attribute__ ((format (printf, 1, 2)));
arch/um/include/shared/user.h
44
__attribute__ ((format (printf, 1, 2)));
arch/um/os-Linux/user_syms.c
35
extern int __sprintf_chk(char *str, int flag, size_t len, const char *format);
arch/x86/boot/startup/sev-shared.c
18
#define WARN(condition, format...) (!!(condition))
arch/x86/events/intel/ds.c
2618
return header->cont || !(header->format & GENMASK_ULL(63, 16));
arch/x86/events/intel/ds.c
3340
int format = x86_pmu.intel_cap.pebs_format;
arch/x86/events/intel/ds.c
3342
if (format < 4)
arch/x86/events/intel/ds.c
3350
switch (format) {
arch/x86/events/intel/ds.c
3413
pr_cont("PEBS fmt%d%c%s, ", format, pebs_type, pebs_qual);
arch/x86/events/intel/ds.c
3431
pr_cont("no PEBS fmt%d%c, ", format, pebs_type);
arch/x86/hyperv/hv_apic.c
138
ipi_arg->vp_set.format = HV_GENERIC_SET_SPARSE_4K;
arch/x86/hyperv/hv_apic.c
151
ipi_arg->vp_set.format = HV_GENERIC_SET_ALL;
arch/x86/hyperv/irqdomain.c
46
intr_desc->target.vp_set.format = HV_GENERIC_SET_SPARSE_4K;
arch/x86/hyperv/mmu.c
199
flush->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
arch/x86/include/asm/bug.h
158
#define __WARN_bug_entry(flags, format) ({ \
arch/x86/include/asm/bug.h
165
: [fmt] "i" (format), \
arch/x86/include/asm/bug.h
172
#define __WARN_print_arg(flags, format, arg...) \
arch/x86/include/asm/bug.h
175
static_call_mod(WARN_trap)(__WARN_bug_entry(__flags, format), ## arg); \
arch/x86/include/asm/bug.h
182
#define WARN_ONCE(cond, format, arg...) ({ \
arch/x86/include/asm/bug.h
186
format, ## arg); \
arch/x86/include/asm/bug.h
55
#define __BUG_ENTRY_FORMAT(format) \
arch/x86/include/asm/bug.h
56
"\t.long " format " - .\t# bug_entry::format\n"
arch/x86/include/asm/bug.h
58
#define __BUG_ENTRY_FORMAT(format)
arch/x86/include/asm/bug.h
65
#define __BUG_ENTRY(format, file, line, flags) \
arch/x86/include/asm/bug.h
67
__BUG_ENTRY_FORMAT(format) \
arch/x86/include/asm/bug.h
71
#define _BUG_FLAGS_ASM(format, file, line, flags, size, extra) \
arch/x86/include/asm/bug.h
75
__BUG_ENTRY(format, file, line, flags) \
arch/x86/include/asm/perf_event.h
536
u64 format;
arch/x86/include/uapi/asm/kvm.h
540
__u16 format;
arch/x86/kvm/hyperv.c
2094
flush_ex.hv_vp_set.format,
arch/x86/kvm/hyperv.c
2099
all_cpus = flush_ex.hv_vp_set.format !=
arch/x86/kvm/hyperv.c
2262
send_ipi_ex.vp_set.format = hc->outgpa;
arch/x86/kvm/hyperv.c
2267
send_ipi_ex.vp_set.format,
arch/x86/kvm/hyperv.c
2272
all_cpus = send_ipi_ex.vp_set.format == HV_GENERIC_SET_ALL;
arch/x86/kvm/svm/nested.c
1752
.format = KVM_STATE_NESTED_FORMAT_SVM,
arch/x86/kvm/svm/nested.c
1827
if (kvm_state->format != KVM_STATE_NESTED_FORMAT_SVM)
arch/x86/kvm/trace.h
1682
TP_PROTO(u64 valid_bank_mask, u64 format, u64 address_space, u64 flags, bool guest_mode),
arch/x86/kvm/trace.h
1683
TP_ARGS(valid_bank_mask, format, address_space, flags, guest_mode),
arch/x86/kvm/trace.h
1687
__field(u64, format)
arch/x86/kvm/trace.h
1695
__entry->format = format;
arch/x86/kvm/trace.h
1703
__entry->valid_bank_mask, __entry->format,
arch/x86/kvm/trace.h
1730
TP_PROTO(u32 vector, u64 format, u64 valid_bank_mask),
arch/x86/kvm/trace.h
1731
TP_ARGS(vector, format, valid_bank_mask),
arch/x86/kvm/trace.h
1735
__field(u64, format)
arch/x86/kvm/trace.h
1741
__entry->format = format;
arch/x86/kvm/trace.h
1746
__entry->vector, __entry->format,
arch/x86/kvm/vmx/nested.c
6735
.format = KVM_STATE_NESTED_FORMAT_VMX,
arch/x86/kvm/vmx/nested.c
6891
if (kvm_state->format != KVM_STATE_NESTED_FORMAT_VMX)
arch/x86/tools/relocs.c
557
const char *format;
arch/x86/tools/relocs.c
560
format = "%5d %016"PRIx64" %5"PRId64" %10s %10s %12s %s\n";
arch/x86/tools/relocs.c
562
format = "%5d %08"PRIx32" %5"PRId32" %10s %10s %12s %s\n";
arch/x86/tools/relocs.c
587
printf(format,
arch/x86/tools/relocs.c
601
const char *format;
arch/x86/tools/relocs.c
604
format = "%016"PRIx64" %016"PRIx64" %10s %016"PRIx64" %s\n";
arch/x86/tools/relocs.c
606
format = "%08"PRIx32" %08"PRIx32" %10s %08"PRIx32" %s\n";
arch/x86/tools/relocs.c
668
printf(format,
arch/x86/tools/vdso2c.c
87
__attribute__((format(printf, 1, 2))) __attribute__((noreturn))
arch/x86/tools/vdso2c.c
88
static void fail(const char *format, ...)
arch/x86/tools/vdso2c.c
91
va_start(ap, format);
arch/x86/tools/vdso2c.c
93
vfprintf(stderr, format, ap);
block/blk-integrity.c
322
static DEVICE_ATTR_RO(format);
block/partitions/ibm.c
393
if (info->format == DASD_FORMAT_LDL) {
certs/extract-cert.c
141
format();
drivers/accel/habanalabs/common/decoder.c
22
const char *format = "abnormal interrupt source:%s%s%s%s%s%s\n";
drivers/accel/habanalabs/common/decoder.c
42
dev_err(hdev->dev, format, intr_source[0], intr_source[1],
drivers/accel/habanalabs/common/habanalabs.h
4103
const char *format, ...);
drivers/accel/habanalabs/common/state_dump.c
106
const char *format, ...)
drivers/accel/habanalabs/common/state_dump.c
115
va_start(args, format);
drivers/accel/habanalabs/common/state_dump.c
116
length = vsnprintf(*buf + *offset, *size - *offset, format, args);
drivers/accel/habanalabs/common/state_dump.c
124
va_start(args, format);
drivers/accel/habanalabs/common/state_dump.c
125
length = vsnprintf(*buf + *offset, *size - *offset, format,
drivers/accel/ivpu/ivpu_fw_log.c
57
log->header_size, log->format, log->alignment);
drivers/accel/ivpu/vpu_boot_api.h
458
u32 format;
drivers/acpi/acpica/acutils.h
711
u16 node_flags, const char *format, ...);
drivers/acpi/acpica/acutils.h
718
u16 node_flags, const char *format, ...);
drivers/acpi/acpica/acutils.h
725
u16 node_flags, const char *format, ...);
drivers/acpi/acpica/utdebug.c
138
u32 component_id, const char *format, ...)
drivers/acpi/acpica/utdebug.c
200
va_start(args, format);
drivers/acpi/acpica/utdebug.c
201
acpi_os_vprintf(format, args);
drivers/acpi/acpica/utdebug.c
230
u32 component_id, const char *format, ...)
drivers/acpi/acpica/utdebug.c
240
va_start(args, format);
drivers/acpi/acpica/utdebug.c
241
acpi_os_vprintf(format, args);
drivers/acpi/acpica/uterror.c
127
u16 node_flags, const char *format, ...)
drivers/acpi/acpica/uterror.c
141
va_start(arg_list, format);
drivers/acpi/acpica/uterror.c
142
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/uterror.c
42
u16 node_flags, const char *format, ...)
drivers/acpi/acpica/uterror.c
56
va_start(arg_list, format);
drivers/acpi/acpica/uterror.c
57
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/uterror.c
84
char *pathname, u16 node_flags, const char *format, ...)
drivers/acpi/acpica/uterror.c
98
va_start(arg_list, format);
drivers/acpi/acpica/uterror.c
99
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/utprint.c
318
int vsnprintf(char *string, acpi_size size, const char *format, va_list args)
drivers/acpi/acpica/utprint.c
339
for (; *format; ++format) {
drivers/acpi/acpica/utprint.c
340
if (*format != '%') {
drivers/acpi/acpica/utprint.c
341
pos = acpi_ut_bound_string_output(pos, end, *format);
drivers/acpi/acpica/utprint.c
351
++format;
drivers/acpi/acpica/utprint.c
352
if (*format == '#') {
drivers/acpi/acpica/utprint.c
354
} else if (*format == '0') {
drivers/acpi/acpica/utprint.c
356
} else if (*format == '+') {
drivers/acpi/acpica/utprint.c
358
} else if (*format == ' ') {
drivers/acpi/acpica/utprint.c
360
} else if (*format == '-') {
drivers/acpi/acpica/utprint.c
371
if (isdigit((int)*format)) {
drivers/acpi/acpica/utprint.c
372
format = acpi_ut_scan_number(format, &number);
drivers/acpi/acpica/utprint.c
374
} else if (*format == '*') {
drivers/acpi/acpica/utprint.c
375
++format;
drivers/acpi/acpica/utprint.c
386
if (*format == '.') {
drivers/acpi/acpica/utprint.c
387
++format;
drivers/acpi/acpica/utprint.c
388
if (isdigit((int)*format)) {
drivers/acpi/acpica/utprint.c
389
format = acpi_ut_scan_number(format, &number);
drivers/acpi/acpica/utprint.c
391
} else if (*format == '*') {
drivers/acpi/acpica/utprint.c
392
++format;
drivers/acpi/acpica/utprint.c
404
if (*format == 'h' || *format == 'l' || *format == 'L') {
drivers/acpi/acpica/utprint.c
405
qualifier = *format;
drivers/acpi/acpica/utprint.c
406
++format;
drivers/acpi/acpica/utprint.c
408
if (qualifier == 'l' && *format == 'l') {
drivers/acpi/acpica/utprint.c
410
++format;
drivers/acpi/acpica/utprint.c
414
switch (*format) {
drivers/acpi/acpica/utprint.c
507
if (*format) {
drivers/acpi/acpica/utprint.c
510
*format);
drivers/acpi/acpica/utprint.c
512
--format;
drivers/acpi/acpica/utprint.c
568
int snprintf(char *string, acpi_size size, const char *format, ...)
drivers/acpi/acpica/utprint.c
573
va_start(args, format);
drivers/acpi/acpica/utprint.c
574
length = vsnprintf(string, size, format, args);
drivers/acpi/acpica/utprint.c
593
int sprintf(char *string, const char *format, ...)
drivers/acpi/acpica/utprint.c
598
va_start(args, format);
drivers/acpi/acpica/utprint.c
599
length = vsnprintf(string, ACPI_UINT32_MAX, format, args);
drivers/acpi/acpica/utprint.c
619
int vprintf(const char *format, va_list args)
drivers/acpi/acpica/utprint.c
626
sizeof(acpi_gbl_print_buffer), format, args);
drivers/acpi/acpica/utprint.c
646
int printf(const char *format, ...)
drivers/acpi/acpica/utprint.c
651
va_start(args, format);
drivers/acpi/acpica/utprint.c
652
length = vprintf(format, args);
drivers/acpi/acpica/utprint.c
672
int vfprintf(FILE * file, const char *format, va_list args)
drivers/acpi/acpica/utprint.c
679
sizeof(acpi_gbl_print_buffer), format, args);
drivers/acpi/acpica/utprint.c
700
int fprintf(FILE * file, const char *format, ...)
drivers/acpi/acpica/utprint.c
705
va_start(args, format);
drivers/acpi/acpica/utprint.c
706
length = vfprintf(file, format, args);
drivers/acpi/acpica/utxferror.c
109
acpi_warning(const char *module_name, u32 line_number, const char *format, ...)
drivers/acpi/acpica/utxferror.c
116
va_start(arg_list, format);
drivers/acpi/acpica/utxferror.c
117
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/utxferror.c
138
void ACPI_INTERNAL_VAR_XFACE acpi_info(const char *format, ...)
drivers/acpi/acpica/utxferror.c
145
va_start(arg_list, format);
drivers/acpi/acpica/utxferror.c
146
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/utxferror.c
171
u32 line_number, const char *format, ...)
drivers/acpi/acpica/utxferror.c
178
va_start(arg_list, format);
drivers/acpi/acpica/utxferror.c
179
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/utxferror.c
206
acpi_status status, const char *format, ...)
drivers/acpi/acpica/utxferror.c
222
va_start(arg_list, format);
drivers/acpi/acpica/utxferror.c
223
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/utxferror.c
248
u32 line_number, const char *format, ...)
drivers/acpi/acpica/utxferror.c
255
va_start(arg_list, format);
drivers/acpi/acpica/utxferror.c
256
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/utxferror.c
35
acpi_error(const char *module_name, u32 line_number, const char *format, ...)
drivers/acpi/acpica/utxferror.c
42
va_start(arg_list, format);
drivers/acpi/acpica/utxferror.c
43
acpi_os_vprintf(format, arg_list);
drivers/acpi/acpica/utxferror.c
69
u32 line_number, acpi_status status, const char *format, ...)
drivers/acpi/acpica/utxferror.c
85
va_start(arg_list, format);
drivers/acpi/acpica/utxferror.c
86
acpi_os_vprintf(format, arg_list);
drivers/acpi/cppc_acpi.c
402
struct acpi_buffer format = {sizeof("NNNNN"), "NNNNN"};
drivers/acpi/cppc_acpi.c
426
&format, &state);
drivers/acpi/dptf/dptf_pch_fivr.c
21
struct acpi_buffer format = { sizeof("NN"), "NN" };
drivers/acpi/dptf/dptf_pch_fivr.c
34
status = acpi_extract_package(obj, &format, &resp);
drivers/acpi/fan_core.c
240
struct acpi_buffer format = { sizeof("NNNN"), "NNNN" };
drivers/acpi/fan_core.c
257
status = acpi_extract_package(obj, &format, &fif);
drivers/acpi/fan_core.c
316
struct acpi_buffer format = { sizeof("NNNNN"), "NNNNN" };
drivers/acpi/fan_core.c
320
&format, &fps);
drivers/acpi/nfit/core.c
1483
static DEVICE_ATTR_RO(format);
drivers/acpi/nhlt.c
147
wav = &fmt->format;
drivers/acpi/nhlt.c
259
max_ch = max(fmt->format.channel_count, max_ch);
drivers/acpi/processor_perflib.c
320
struct acpi_buffer format = { sizeof("NNNNNN"), "NNNNNN" };
drivers/acpi/processor_perflib.c
360
&format, &state);
drivers/acpi/processor_perflib.c
534
struct acpi_buffer format = {sizeof("NNNNN"), "NNNNN"};
drivers/acpi/processor_perflib.c
559
status = acpi_extract_package(&(psd->package.elements[0]), &format, &state);
drivers/acpi/processor_throttling.c
490
struct acpi_buffer format = { sizeof("NNNNN"), "NNNNN" };
drivers/acpi/processor_throttling.c
533
&format, &state);
drivers/acpi/processor_throttling.c
564
struct acpi_buffer format = { sizeof("NNNNN"), "NNNNN" };
drivers/acpi/processor_throttling.c
600
&format, &state);
drivers/acpi/utils.c
33
struct acpi_buffer *format, struct acpi_buffer *buffer)
drivers/acpi/utils.c
50
if (!format || !format->pointer || (format->length < 1)) {
drivers/acpi/utils.c
60
format_count = (format->length / sizeof(char)) - 1;
drivers/acpi/utils.c
67
format_string = format->pointer;
drivers/android/binder.c
142
static __printf(2, 3) void binder_debug(int mask, const char *format, ...)
drivers/android/binder.c
148
va_start(args, format);
drivers/android/binder.c
150
vaf.fmt = format;
drivers/android/binder.c
159
static __printf(1, 2) void binder_user_error(const char *format, ...)
drivers/android/binder.c
165
va_start(args, format);
drivers/android/binder.c
167
vaf.fmt = format;
drivers/ata/libata-transport.c
610
#define ata_link_show_linkspeed(field, format) \
drivers/ata/libata-transport.c
618
sata_spd_string(format(link->field))); \
drivers/ata/libata-transport.c
621
#define ata_link_linkspeed_attr(field, format) \
drivers/ata/libata-transport.c
622
ata_link_show_linkspeed(field, format) \
drivers/ata/pata_cs5530.c
50
int format;
drivers/ata/pata_cs5530.c
54
format = (tuning & 0x80000000UL) ? 1 : 0;
drivers/ata/pata_cs5530.c
60
iowrite32(cs5530_pio_timings[format][adev->pio_mode - XFER_PIO_0], base);
drivers/ata/pata_macio.c
41
#define dev_dbgdma(dev, format, arg...) \
drivers/ata/pata_macio.c
42
dev_printk(KERN_DEBUG , dev , format , ## arg)
drivers/ata/pata_macio.c
44
#define dev_dbgdma(dev, format, arg...) \
drivers/ata/pata_macio.c
45
({ if (0) dev_printk(KERN_DEBUG, dev, format, ##arg); 0; })
drivers/ata/pata_sc1200.c
124
u32 format;
drivers/ata/pata_sc1200.c
127
format = udma_timing[clock][mode - XFER_UDMA_0];
drivers/ata/pata_sc1200.c
129
format = mwdma_timing[clock][mode - XFER_MW_DMA_0];
drivers/ata/pata_sc1200.c
136
timings |= format;
drivers/ata/pata_sc1200.c
139
pci_write_config_dword(pdev, reg + 12, format);
drivers/ata/pata_sc1200.c
86
u32 format;
drivers/ata/pata_sc1200.c
90
pci_read_config_dword(pdev, reg + 4, &format);
drivers/ata/pata_sc1200.c
91
format >>= 31;
drivers/ata/pata_sc1200.c
92
format += sc1200_clock();
drivers/ata/pata_sc1200.c
94
pio_timings[format][mode]);
drivers/atm/eni.c
60
#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
drivers/atm/eni.c
62
#define DPRINTK(format,args...)
drivers/atm/fore200e.c
68
#define DPRINTK(level, format, args...) do { if (CONFIG_ATM_FORE200E_DEBUG >= (level)) \
drivers/atm/fore200e.c
69
printk(FORE200E format, ##args); } while (0)
drivers/atm/fore200e.c
71
#define DPRINTK(level, format, args...) do {} while (0)
drivers/atm/idt77105.c
28
#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
drivers/atm/idt77105.c
30
#define DPRINTK(format,args...)
drivers/atm/lanai.c
164
#define DPRINTK(format, args...) \
drivers/atm/lanai.c
165
printk(KERN_DEBUG DEV_LABEL ": " format, ##args)
drivers/atm/lanai.c
166
#define APRINTK(truth, format, args...) \
drivers/atm/lanai.c
169
printk(KERN_ERR DEV_LABEL ": " format, ##args); \
drivers/atm/lanai.c
174
#define DPRINTK(format, args...)
drivers/atm/lanai.c
175
#define APRINTK(truth, format, args...)
drivers/atm/lanai.c
180
#define RWDEBUG(format, args...) \
drivers/atm/lanai.c
181
printk(KERN_DEBUG DEV_LABEL ": " format, ##args)
drivers/atm/lanai.c
183
#define RWDEBUG(format, args...)
drivers/atm/suni.c
33
#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
drivers/atm/suni.c
35
#define DPRINTK(format,args...)
drivers/base/regmap/internal.h
71
struct regmap_format format; /* Buffer format */
drivers/base/regmap/regcache-maple.c
195
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regcache.c
660
if (map->format.format_val) {
drivers/base/regmap/regcache.c
661
map->format.format_val(base + (map->cache_word_size * idx),
drivers/base/regmap/regcache.c
697
if (map->format.parse_val)
drivers/base/regmap/regcache.c
698
return map->format.parse_val(regcache_get_val_addr(map, base,
drivers/base/regmap/regcache.c
808
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap-debugfs.c
187
map->debugfs_val_len = 2 * map->format.val_bytes;
drivers/base/regmap/regmap-debugfs.c
263
buf_pos += 2 * map->format.val_bytes;
drivers/base/regmap/regmap-irq.c
382
for_each_set_bit(b, &mreg, map->format.val_bytes * 8) {
drivers/base/regmap/regmap-irq.c
383
if (i * map->format.val_bytes * 8 + b >
drivers/base/regmap/regmap-irq.c
412
switch (map->format.val_bytes) {
drivers/base/regmap/regmap-irq.c
799
map->format.val_bytes,
drivers/base/regmap/regmap.c
1005
map->format.format_val = regmap_format_24_be;
drivers/base/regmap/regmap.c
1006
map->format.parse_val = regmap_parse_24_be;
drivers/base/regmap/regmap.c
1015
map->format.format_val = regmap_format_32_be;
drivers/base/regmap/regmap.c
1016
map->format.parse_val = regmap_parse_32_be;
drivers/base/regmap/regmap.c
1017
map->format.parse_inplace = regmap_parse_32_be_inplace;
drivers/base/regmap/regmap.c
1020
map->format.format_val = regmap_format_32_le;
drivers/base/regmap/regmap.c
1021
map->format.parse_val = regmap_parse_32_le;
drivers/base/regmap/regmap.c
1022
map->format.parse_inplace = regmap_parse_32_le_inplace;
drivers/base/regmap/regmap.c
1025
map->format.format_val = regmap_format_32_native;
drivers/base/regmap/regmap.c
1026
map->format.parse_val = regmap_parse_32_native;
drivers/base/regmap/regmap.c
1034
if (map->format.format_write) {
drivers/base/regmap/regmap.c
1041
if (!map->format.format_write &&
drivers/base/regmap/regmap.c
1042
!(map->format.format_reg && map->format.format_val))
drivers/base/regmap/regmap.c
1045
map->work_buf = kzalloc(map->format.buf_size, GFP_KERNEL);
drivers/base/regmap/regmap.c
1051
if (map->format.format_write) {
drivers/base/regmap/regmap.c
1054
} else if (map->format.format_val) {
drivers/base/regmap/regmap.c
1144
kzalloc(map->format.buf_size, GFP_KERNEL);
drivers/base/regmap/regmap.c
135
if (map->format.format_write)
drivers/base/regmap/regmap.c
149
if (!map->format.format_write && !regmap_readable(map, reg))
drivers/base/regmap/regmap.c
1632
if (map->format.reg_shift > 0)
drivers/base/regmap/regmap.c
1633
reg >>= map->format.reg_shift;
drivers/base/regmap/regmap.c
1634
else if (map->format.reg_shift < 0)
drivers/base/regmap/regmap.c
1635
reg <<= -(map->format.reg_shift);
drivers/base/regmap/regmap.c
1645
void *work_val = map->work_buf + map->format.reg_bytes +
drivers/base/regmap/regmap.c
1646
map->format.pad_bytes;
drivers/base/regmap/regmap.c
1656
for (i = 0; i < val_len / map->format.val_bytes; i++) {
drivers/base/regmap/regmap.c
1665
if (!map->cache_bypass && map->format.parse_val) {
drivers/base/regmap/regmap.c
1667
int val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap.c
1672
ival = map->format.parse_val(val + i);
drivers/base/regmap/regmap.c
1690
int val_num = val_len / map->format.val_bytes;
drivers/base/regmap/regmap.c
1697
win_residue, val_len / map->format.val_bytes);
drivers/base/regmap/regmap.c
1700
map->format.val_bytes, noinc);
drivers/base/regmap/regmap.c
1706
val += win_residue * map->format.val_bytes;
drivers/base/regmap/regmap.c
1707
val_len -= win_residue * map->format.val_bytes;
drivers/base/regmap/regmap.c
1720
map->format.format_reg(map->work_buf, reg, map->reg_shift);
drivers/base/regmap/regmap.c
1721
regmap_set_work_buf_flag_mask(map, map->format.reg_bytes,
drivers/base/regmap/regmap.c
1729
if (val != work_val && val_len == map->format.val_bytes) {
drivers/base/regmap/regmap.c
1730
memcpy(work_val, val, map->format.val_bytes);
drivers/base/regmap/regmap.c
1752
async->work_buf = kzalloc(map->format.buf_size,
drivers/base/regmap/regmap.c
1763
memcpy(async->work_buf, map->work_buf, map->format.pad_bytes +
drivers/base/regmap/regmap.c
1764
map->format.reg_bytes + map->format.val_bytes);
drivers/base/regmap/regmap.c
1773
map->format.reg_bytes +
drivers/base/regmap/regmap.c
1774
map->format.pad_bytes,
drivers/base/regmap/regmap.c
1779
map->format.reg_bytes +
drivers/base/regmap/regmap.c
1780
map->format.pad_bytes +
drivers/base/regmap/regmap.c
1795
trace_regmap_hw_write_start(map, reg, val_len / map->format.val_bytes);
drivers/base/regmap/regmap.c
1803
map->format.reg_bytes +
drivers/base/regmap/regmap.c
1804
map->format.pad_bytes +
drivers/base/regmap/regmap.c
1808
map->format.reg_bytes +
drivers/base/regmap/regmap.c
1809
map->format.pad_bytes,
drivers/base/regmap/regmap.c
1816
len = map->format.reg_bytes + map->format.pad_bytes + val_len;
drivers/base/regmap/regmap.c
1821
memcpy(buf, map->work_buf, map->format.reg_bytes);
drivers/base/regmap/regmap.c
1822
memcpy(buf + map->format.reg_bytes + map->format.pad_bytes,
drivers/base/regmap/regmap.c
1827
} else if (ret != 0 && !map->cache_bypass && map->format.parse_val) {
drivers/base/regmap/regmap.c
1835
trace_regmap_hw_write_done(map, reg, val_len / map->format.val_bytes);
drivers/base/regmap/regmap.c
1847
return map->write && map->format.format_val && map->format.format_reg;
drivers/base/regmap/regmap.c
1880
WARN_ON(!map->format.format_write);
drivers/base/regmap/regmap.c
1890
map->format.format_write(map, reg, val);
drivers/base/regmap/regmap.c
1894
ret = map->write(map->bus_context, map->work_buf, map->format.buf_size);
drivers/base/regmap/regmap.c
1924
WARN_ON(!map->format.format_val);
drivers/base/regmap/regmap.c
1926
map->format.format_val(map->work_buf + map->format.reg_bytes
drivers/base/regmap/regmap.c
1927
+ map->format.pad_bytes, val, 0);
drivers/base/regmap/regmap.c
1930
map->format.reg_bytes +
drivers/base/regmap/regmap.c
1931
map->format.pad_bytes,
drivers/base/regmap/regmap.c
1932
map->format.val_bytes,
drivers/base/regmap/regmap.c
2032
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap.c
2090
if (val_len % map->format.val_bytes)
drivers/base/regmap/regmap.c
2106
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap.c
2210
if (val_len % map->format.val_bytes)
drivers/base/regmap/regmap.c
2353
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap.c
2362
if (!map->write || !map->format.parse_inplace) {
drivers/base/regmap/regmap.c
2398
map->format.parse_inplace(wval + i);
drivers/base/regmap/regmap.c
2427
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap.c
2428
size_t reg_bytes = map->format.reg_bytes;
drivers/base/regmap/regmap.c
2429
size_t pad_bytes = map->format.pad_bytes;
drivers/base/regmap/regmap.c
2449
map->format.format_reg(u8, reg, map->reg_shift);
drivers/base/regmap/regmap.c
2451
map->format.format_val(u8, val, 0);
drivers/base/regmap/regmap.c
2581
if (!map->format.parse_inplace)
drivers/base/regmap/regmap.c
2738
if (val_len % map->format.val_bytes)
drivers/base/regmap/regmap.c
2769
noinc ? 1 : val_len / map->format.val_bytes);
drivers/base/regmap/regmap.c
2775
map->format.format_reg(map->work_buf, reg, map->reg_shift);
drivers/base/regmap/regmap.c
2776
regmap_set_work_buf_flag_mask(map, map->format.reg_bytes,
drivers/base/regmap/regmap.c
2778
trace_regmap_hw_read_start(map, reg, val_len / map->format.val_bytes);
drivers/base/regmap/regmap.c
2781
map->format.reg_bytes + map->format.pad_bytes,
drivers/base/regmap/regmap.c
2784
trace_regmap_hw_read_done(map, reg, val_len / map->format.val_bytes);
drivers/base/regmap/regmap.c
2812
void *work_val = map->work_buf + map->format.reg_bytes +
drivers/base/regmap/regmap.c
2813
map->format.pad_bytes;
drivers/base/regmap/regmap.c
2815
if (!map->format.parse_val)
drivers/base/regmap/regmap.c
2818
ret = _regmap_raw_read(map, reg, work_val, map->format.val_bytes, false);
drivers/base/regmap/regmap.c
2820
*val = map->format.parse_val(work_val);
drivers/base/regmap/regmap.c
2935
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap.c
2940
if (val_len % map->format.val_bytes)
drivers/base/regmap/regmap.c
2999
map->format.format_val(val + (i * val_bytes), v, 0);
drivers/base/regmap/regmap.c
3040
if (val_len % map->format.val_bytes)
drivers/base/regmap/regmap.c
3172
switch (map->format.val_bytes) {
drivers/base/regmap/regmap.c
3207
size_t val_bytes = map->format.val_bytes;
drivers/base/regmap/regmap.c
3215
if (map->read && map->format.parse_inplace && (vol || map->cache_type == REGCACHE_NONE)) {
drivers/base/regmap/regmap.c
3221
map->format.parse_inplace(val + i);
drivers/base/regmap/regmap.c
3485
if (map->format.format_write)
drivers/base/regmap/regmap.c
3488
return map->format.val_bytes;
drivers/base/regmap/regmap.c
3536
if (!map->format.parse_val)
drivers/base/regmap/regmap.c
3539
*val = map->format.parse_val(buf);
drivers/base/regmap/regmap.c
776
map->format.pad_bytes = config->pad_bits / 8;
drivers/base/regmap/regmap.c
777
map->format.reg_shift = config->reg_shift;
drivers/base/regmap/regmap.c
778
map->format.reg_bytes = BITS_TO_BYTES(config->reg_bits);
drivers/base/regmap/regmap.c
779
map->format.val_bytes = BITS_TO_BYTES(config->val_bits);
drivers/base/regmap/regmap.c
780
map->format.buf_size = BITS_TO_BYTES(config->reg_bits + config->val_bits + config->pad_bits);
drivers/base/regmap/regmap.c
873
map->format.format_write = regmap_format_2_6_write;
drivers/base/regmap/regmap.c
883
map->format.format_write = regmap_format_4_12_write;
drivers/base/regmap/regmap.c
893
map->format.format_write = regmap_format_7_9_write;
drivers/base/regmap/regmap.c
896
map->format.format_write = regmap_format_7_17_write;
drivers/base/regmap/regmap.c
906
map->format.format_write = regmap_format_10_14_write;
drivers/base/regmap/regmap.c
916
map->format.format_write = regmap_format_12_20_write;
drivers/base/regmap/regmap.c
924
map->format.format_reg = regmap_format_8;
drivers/base/regmap/regmap.c
930
map->format.format_reg = regmap_format_16_be;
drivers/base/regmap/regmap.c
933
map->format.format_reg = regmap_format_16_le;
drivers/base/regmap/regmap.c
936
map->format.format_reg = regmap_format_16_native;
drivers/base/regmap/regmap.c
946
map->format.format_reg = regmap_format_24_be;
drivers/base/regmap/regmap.c
956
map->format.format_reg = regmap_format_32_be;
drivers/base/regmap/regmap.c
959
map->format.format_reg = regmap_format_32_le;
drivers/base/regmap/regmap.c
962
map->format.format_reg = regmap_format_32_native;
drivers/base/regmap/regmap.c
974
map->format.parse_inplace = regmap_parse_inplace_noop;
drivers/base/regmap/regmap.c
978
map->format.format_val = regmap_format_8;
drivers/base/regmap/regmap.c
979
map->format.parse_val = regmap_parse_8;
drivers/base/regmap/regmap.c
980
map->format.parse_inplace = regmap_parse_inplace_noop;
drivers/base/regmap/regmap.c
985
map->format.format_val = regmap_format_16_be;
drivers/base/regmap/regmap.c
986
map->format.parse_val = regmap_parse_16_be;
drivers/base/regmap/regmap.c
987
map->format.parse_inplace = regmap_parse_16_be_inplace;
drivers/base/regmap/regmap.c
990
map->format.format_val = regmap_format_16_le;
drivers/base/regmap/regmap.c
991
map->format.parse_val = regmap_parse_16_le;
drivers/base/regmap/regmap.c
992
map->format.parse_inplace = regmap_parse_16_le_inplace;
drivers/base/regmap/regmap.c
995
map->format.format_val = regmap_format_16_native;
drivers/base/regmap/regmap.c
996
map->format.parse_val = regmap_parse_16_native;
drivers/block/floppy.c
152
#define DPRINT(format, args...) \
drivers/block/floppy.c
153
pr_info("floppy%d: " format, current_drive, ##args)
drivers/block/mtip32xx/mtip32xx.h
110
#define dbg_printk(format, arg...) \
drivers/block/mtip32xx/mtip32xx.h
111
printk(pr_fmt(format), ##arg);
drivers/block/mtip32xx/mtip32xx.h
113
#define dbg_printk(format, arg...)
drivers/block/xen-blkback/xenbus.c
377
#define VBD_SHOW_ALLRING(name, format) \
drivers/block/xen-blkback/xenbus.c
398
return sprintf(buf, format, result); \
drivers/block/xen-blkback/xenbus.c
426
#define VBD_SHOW(name, format, args...) \
drivers/block/xen-blkback/xenbus.c
434
return sprintf(buf, format, ##args); \
drivers/bluetooth/btintel.c
2210
const char *format;
drivers/bluetooth/btintel.c
2226
format = "intel/ibt-%04x-%04x-iml.%s";
drivers/bluetooth/btintel.c
2227
snprintf(fw_name, len, format, cnvi, cnvr, suffix);
drivers/bluetooth/btintel.c
2235
format = "intel/ibt-%04x-%04x-%s.%s";
drivers/bluetooth/btintel.c
2236
snprintf(fw_name, len, format, cnvi, cnvr,
drivers/bluetooth/btintel.c
2247
format = "intel/ibt-%04x-%04x.%s";
drivers/bluetooth/btintel.c
2248
snprintf(fw_name, len, format, cnvi, cnvr, suffix);
drivers/bluetooth/btintel.c
2255
const char *format;
drivers/bluetooth/btintel.c
2264
format = "intel/ibt-%04x-%04x-iml.%s";
drivers/bluetooth/btintel.c
2265
snprintf(fw_name, len, format, cnvi, cnvr, suffix);
drivers/cdrom/cdrom.c
2066
int lba, int nblocks, int format, int blksize)
drivers/cdrom/cdrom.c
2073
cgc->cmd[1] = format << 2;
drivers/cdrom/cdrom.c
2929
int blocksize = 0, format = 0, lba;
drivers/cdrom/cdrom.c
2938
format = 2;
drivers/cdrom/cdrom.c
2958
ret = cdrom_read_block(cdi, cgc, lba, 1, format, blocksize);
drivers/char/tpm/eventlog/acpi.c
114
format = EFI_TCG2_EVENT_LOG_FORMAT_TCG_2;
drivers/char/tpm/eventlog/acpi.c
135
format = EFI_TCG2_EVENT_LOG_FORMAT_TCG_1_2;
drivers/char/tpm/eventlog/acpi.c
175
return format;
drivers/char/tpm/eventlog/acpi.c
81
int format;
drivers/char/xillybus/xillybus_core.c
434
int channelnum, bufnum, bufsize, format, is_writebuf;
drivers/char/xillybus/xillybus_core.c
512
format = (chandesc[1] >> 4) & 0x03;
drivers/char/xillybus/xillybus_core.c
531
channel->log2_element_size = ((format > 2) ?
drivers/char/xillybus/xillybus_core.c
532
2 : format);
drivers/clk/clk-lmk04832.c
1227
if (clkout->format == LMK04832_VAL_CLKOUT_FMT_POWERDOWN)
drivers/clk/clk-lmk04832.c
1253
clkout->format << 4 * (clkout->id % 2));
drivers/clk/clk-lmk04832.c
1475
&lmk->clkout[reg].format);
drivers/clk/clk-lmk04832.c
1477
if (lmk->clkout[reg].format >= 0x0a && reg % 2 == 0
drivers/clk/clk-lmk04832.c
227
u32 format;
drivers/clk/clk-rpmi.c
174
u8 format;
drivers/clk/clk-rpmi.c
196
format = le32_to_cpu(resp->flags) & RPMI_CLK_TYPE_MASK;
drivers/clk/clk-rpmi.c
197
if (format >= RPMI_CLK_TYPE_MAX_IDX)
drivers/clk/clk-rpmi.c
200
rpmi_clk->type = format;
drivers/crypto/bcm/util.h
61
static inline void flow_log(const char *format, ...)
drivers/crypto/bcm/util.h
69
static inline void packet_log(const char *format, ...)
drivers/crypto/intel/qat/qat_common/adf_transport.c
354
const char *section, const char *format,
drivers/crypto/intel/qat/qat_common/adf_transport.c
360
snprintf(key_buf, ADF_CFG_MAX_KEY_LEN_IN_BYTES, format, key);
drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c
152
dpaa2_qdma_populate_fd(u32 format, struct dpaa2_qdma_comp *dpaa2_comp)
drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c
170
dpaa2_fd_set_frc(fd, format | QDMA_SER_CTX);
drivers/dma/ste_dma40.c
647
#define d40_err(dev, format, arg...) \
drivers/dma/ste_dma40.c
648
dev_err(dev, "[%s] " format, __func__, ## arg)
drivers/dma/ste_dma40.c
650
#define chan_err(d40c, format, arg...) \
drivers/dma/ste_dma40.c
651
d40_err(chan2dev(d40c), format, ## arg)
drivers/edac/ecs.c
42
#define EDAC_ECS_ATTR_SHOW(attrib, cb, type, format) \
drivers/edac/ecs.c
57
return sysfs_emit(buf, format, data); \
drivers/edac/mem_repair.c
60
#define MR_ATTR_SHOW(attrib, cb, type, format) \
drivers/edac/mem_repair.c
76
return sysfs_emit(buf, format, data); \
drivers/edac/scrub.c
38
#define EDAC_SCRUB_ATTR_SHOW(attrib, cb, type, format) \
drivers/edac/scrub.c
52
return sysfs_emit(buf, format, data); \
drivers/firmware/efi/libstub/gop.c
215
(cmdline.res.format < 0 || cmdline.res.format == pf) &&
drivers/firmware/efi/libstub/gop.c
33
int format;
drivers/firmware/efi/libstub/gop.c
85
cmdline.res.format = pf;
drivers/firmware/google/framebuffer-coreboot.c
37
.format = NULL,
drivers/firmware/google/framebuffer-coreboot.c
64
pdata.format = formats[i].name;
drivers/firmware/google/framebuffer-coreboot.c
66
if (!pdata.format)
drivers/firmware/sysfb_simplefb.c
53
mode->format = f->name;
drivers/firmware/turris-mox-rwtm.c
115
#define MOX_ATTR_RO(name, format) \
drivers/firmware/turris-mox-rwtm.c
123
return sysfs_emit(buf, format, rwtm->name); \
drivers/fwctl/mlx5/main.c
11
#define mlx5ctl_err(mcdev, format, ...) \
drivers/fwctl/mlx5/main.c
12
dev_err(&mcdev->fwctl.dev, format, ##__VA_ARGS__)
drivers/fwctl/mlx5/main.c
14
#define mlx5ctl_dbg(mcdev, format, ...) \
drivers/fwctl/mlx5/main.c
15
dev_dbg(&mcdev->fwctl.dev, "PID %u: " format, current->pid, \
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
77
#define DIA_LOG(level, format, ...) \
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
79
dev_dbg(board->gpib_dev, format, ## __VA_ARGS__); } \
drivers/gpib/tnt4882/mite.h
19
#define MDPRINTK(format, args...) pr_debug(format, ## args)
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
1482
ATOM_INIT_REG_INDEX_FORMAT *format = ®_block->asRegIndexBuf[0];
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
1488
if (format->ucPreRegDataLength & ACCESS_PLACEHOLDER)
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
1491
(u16)(le16_to_cpu(format->usRegIndex));
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
1493
(u8)(format->ucPreRegDataLength);
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
1495
format = (ATOM_INIT_REG_INDEX_FORMAT *)
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
1496
((u8 *)format + sizeof(ATOM_INIT_REG_INDEX_FORMAT));
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1007
const struct drm_format_info *format,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1012
((plane && plane < format->num_planes) ? format->hsub : 1);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1014
((plane && plane < format->num_planes) ? format->vsub : 1);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1015
unsigned int cpp = plane < format->num_planes ? format->cpp[plane] : 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1059
const struct drm_format_info *format_info = drm_format_info(rfb->base.format->format);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1248
for (i = 1; i < rfb->base.format->num_planes; ++i) {
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1288
for (i = 0; i < rfb->base.format->num_planes; ++i) {
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1893
DRM_DEBUG_KMS("Framebuffer %dx%d %p4cc\n", fb->width, fb->height, &fb->format->format);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1902
sb->format = drm_format_info(fb->format->format);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1903
if (!sb->format)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
1914
if (fb->format->cpp[0] != 4) {
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
582
{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
584
{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
586
{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
589
{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
592
{ .format = DRM_FORMAT_BGRA8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
595
{ .format = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
597
{ .format = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
599
{ .format = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
602
{ .format = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
605
{ .format = DRM_FORMAT_RGB565, .depth = 16, .num_planes = 2,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
610
{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
612
{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
614
{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
617
{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
620
{ .format = DRM_FORMAT_BGRA8888, .depth = 32, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
623
{ .format = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
625
{ .format = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
627
{ .format = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
630
{ .format = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
633
{ .format = DRM_FORMAT_RGB565, .depth = 16, .num_planes = 3,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
639
int num_formats, u32 format)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
644
if (formats[i].format == format)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
652
amdgpu_lookup_format_info(u32 format, uint64_t modifier)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
664
format);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
668
format);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
818
if (!has_xor && afb->base.format->cpp[0] != 4)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
925
dcc_block_bits -= ilog2(afb->base.format->cpp[0]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
929
format_info = amdgpu_lookup_format_info(afb->base.format->format,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
934
afb->base.format = format_info;
drivers/gpu/drm/amd/amdgpu/amdgpu_display.h
50
amdgpu_lookup_format_info(u32 format, uint64_t modifier);
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
2482
const struct drm_format_info *format;
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
2486
format = drm_format_info(DRM_FORMAT_C8);
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
2488
format = NULL;
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
2490
drm_client_setup(adev_to_drm(adev), format);
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
1387
if (sad->format == eld_reg_to_type[i][1]) {
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
1398
if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM)
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
1887
switch (target_fb->format->format) {
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
1971
&target_fb->format->format);
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
2046
fb_pitch_pixels = target_fb->pitches[0] / target_fb->format->cpp[0];
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
248
fb->pitches[0] / fb->format->cpp[0]);
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
1364
if (sad->format == eld_reg_to_type[i][1]) {
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
1375
if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM)
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
1922
switch (target_fb->format->format) {
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
1998
&target_fb->format->format);
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
2061
fb_pitch_pixels = target_fb->pitches[0] / target_fb->format->cpp[0];
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
212
fb->pitches[0] / fb->format->cpp[0]);
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
1358
if (sad->format == eld_reg_to_type[i][1]) {
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
1369
if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM)
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
1834
switch (target_fb->format->format) {
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
1910
&target_fb->format->format);
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
196
fb->pitches[0] / fb->format->cpp[0]);
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
1973
fb_pitch_pixels = target_fb->pitches[0] / target_fb->format->cpp[0];
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
288
q_properties->format = KFD_QUEUE_FORMAT_AQL;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
290
q_properties->format = KFD_QUEUE_FORMAT_PM4;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
308
pr_debug("Queue Format: %d\n", q_properties->format);
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
236
queue_input.is_aql_queue = (q->properties.format == KFD_QUEUE_FORMAT_AQL);
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
3532
return q_props->format == KFD_QUEUE_FORMAT_PM4
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
3630
*queue_format = q->properties.format;
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
134
if (q->format == KFD_QUEUE_FORMAT_AQL)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
165
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
201
if (q->format == KFD_QUEUE_FORMAT_AQL)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
127
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
157
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
213
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
167
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
197
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
252
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
142
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
172
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
227
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
198
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
228
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
305
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
484
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
517
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
561
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
227
if (q->format == KFD_QUEUE_FORMAT_AQL)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
260
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
320
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
737
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
786
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
882
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
127
if (q->format == KFD_QUEUE_FORMAT_AQL)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
163
uint32_t wptr_shift = (p->format == KFD_QUEUE_FORMAT_AQL ? 4 : 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
225
if (q->format == KFD_QUEUE_FORMAT_AQL) {
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
1283
uint32_t format;
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
506
enum kfd_queue_format format;
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
825
q_data->format = q->properties.format;
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
976
qp->format = q_data->format;
drivers/gpu/drm/amd/amdkfd/kfd_queue.c
247
properties->format == KFD_QUEUE_FORMAT_AQL &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11835
if (old_other_state->fb->format != new_other_state->fb->format)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11873
pitch = fb->pitches[0] / fb->format->cpp[0];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
12344
old_plane_state->fb->format != plane_state->fb->format) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
12390
if (amdgpu_dm_plane_is_video_format(plane_state->fb->format->format)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6071
const enum surface_pixel_format format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6083
if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6132
switch (fb->format->format) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6134
plane_info->format =
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6138
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_RGB565;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6142
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ARGB8888;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6146
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6150
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6154
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ABGR8888;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6157
plane_info->format = SURFACE_PIXEL_FORMAT_VIDEO_420_YCbCr;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6160
plane_info->format = SURFACE_PIXEL_FORMAT_VIDEO_420_YCrCb;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6163
plane_info->format = SURFACE_PIXEL_FORMAT_VIDEO_420_10bpc_YCrCb;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6167
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616F;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6171
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6175
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6179
plane_info->format = SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6184
&fb->format->format);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6212
ret = fill_plane_color_attributes(plane_state, plane_info->format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6217
ret = amdgpu_dm_plane_fill_plane_buffer_attributes(adev, afb, plane_info->format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6261
dc_plane_state->format = plane_info.format;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6263
dc_plane_state->format = plane_info.format;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8049
dc_plane_state->format = SURFACE_PIXEL_FORMAT_GRPH_ARGB8888;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9848
attributes.pitch = afb->base.pitches[0] / afb->base.format->cpp[0];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1349
switch (dc_plane_state->format) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
155
edid_caps->audio_modes[i].format_code = sad->format;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1008
adev, afb, plane_state->format, plane_state->rotation,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1055
switch (fb->format->format) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1173
(state->fb && state->fb->format->format == DRM_FORMAT_NV12 &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
123
uint32_t format = plane_state->fb->format->format;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
127
if (format == alpha_formats[i]) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1403
attributes.pitch = afb->base.pitches[0] / afb->base.format->cpp[0];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1535
uint32_t format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1539
const struct drm_format_info *info = drm_format_info(format);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1958
bool amdgpu_dm_plane_is_video_format(uint32_t format)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1963
if (format == video_formats[i])
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
264
const enum surface_pixel_format format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
282
format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
288
input.format = format;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
313
const enum surface_pixel_format format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
355
ret = amdgpu_dm_plane_validate_dcc(adev, format, rotation, tiling_info, dcc, address, plane_size);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
364
const enum surface_pixel_format format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
395
ret = amdgpu_dm_plane_validate_dcc(adev, format, rotation, tiling_info, dcc, address, plane_size);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
841
const enum surface_pixel_format format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
860
if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
868
fb->pitches[0] / fb->format->cpp[0];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
873
} else if (format < SURFACE_PIXEL_FORMAT_INVALID) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
882
fb->pitches[0] / fb->format->cpp[0];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
891
fb->pitches[1] / fb->format->cpp[1];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
905
ret = amdgpu_dm_plane_fill_gfx12_plane_attributes_from_modifiers(adev, afb, format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
912
ret = amdgpu_dm_plane_fill_gfx9_plane_attributes_from_modifiers(adev, afb, format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h
47
const enum surface_pixel_format format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h
67
bool amdgpu_dm_plane_is_video_format(uint32_t format);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
264
__entry->fb_format = state->fb ? state->fb->format->format : 0;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
265
__entry->fb_planes = state->fb ? state->fb->format->num_planes : 0;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
418
__field(int, format)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
450
__entry->format = plane_state->format;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
484
__entry->format,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c
63
if (fb->format->format == amdgpu_dm_wb_formats[i])
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c
69
&fb->format->format);
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
100
static bool setup_custom_float(const struct custom_float_format *format,
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
115
(1 << (format->mantissa_bits + 1)) - 1;
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
118
(1 << (format->exponenta_bits + 1)) - 1;
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
132
while (i < format->mantissa_bits) {
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
141
while (j < format->exponenta_bits) {
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
150
if (negative && format->sign)
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
159
const struct custom_float_format *format,
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
166
return build_custom_float(value, format, &negative, &mantissa, &exponenta) &&
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
167
setup_custom_float(format,
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
30
const struct custom_float_format *format,
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
35
uint32_t exp_offset = (1 << (format->exponenta_bits - 1)) - 1;
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
38
dc_fixpt_from_fraction((1LL << (format->mantissa_bits + 1)) - 1,
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
39
1LL << format->mantissa_bits);
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
51
*negative = format->sign;
drivers/gpu/drm/amd/display/dc/basics/custom_float.c
93
mantiss = dc_fixpt_shl(mantiss, format->mantissa_bits);
drivers/gpu/drm/amd/display/dc/basics/dc_common.c
85
if (plane_state->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/basics/dc_common.c
86
&& plane_state->format != SURFACE_PIXEL_FORMAT_INVALID
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2848
switch (pipe[i].plane_state->format) {
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2951
switch (pipe[i].plane_state->format) {
drivers/gpu/drm/amd/display/dc/core/dc.c
2701
if (u->plane_info->format != u->surface->format) {
drivers/gpu/drm/amd/display/dc/core/dc.c
2733
if (resource_pixel_format_to_bpp(u->plane_info->format) !=
drivers/gpu/drm/amd/display/dc/core/dc.c
2734
resource_pixel_format_to_bpp(u->surface->format)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
2888
if (u->blend_tf || (u->gamma && dce_use_lut(u->plane_info ? u->plane_info->format : u->surface->format))) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3124
surface->format =
drivers/gpu/drm/amd/display/dc/core/dc.c
3125
srf_update->plane_info->format;
drivers/gpu/drm/amd/display/dc/core/dc.c
5884
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/core/dc.c
5887
if (dc->hwss.does_plane_fit_in_mall && dc->hwss.does_plane_fit_in_mall(dc, pitch, height, format, cursor_attr))
drivers/gpu/drm/amd/display/dc/core/dc.c
6639
state->hubp[i].surface_pixel_format = pipe_ctx->plane_state->format;
drivers/gpu/drm/amd/display/dc/core/dc_debug.c
89
update->plane_info->format,
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
1957
plane_state->format,
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2027
enum surface_pixel_format format = params->program_surface_config_params.format;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2037
format,
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
345
switch (pipe_ctx->plane_res.scl_data.format) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
3879
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
3890
seq_state->steps[*seq_state->num_steps].params.program_surface_config_params.format = format;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
402
switch (top_pipe_ctx->plane_res.scl_data.format) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1215
if (pipe_ctx->plane_res.scl_data.format == PIXEL_FORMAT_420BPP8
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1216
|| pipe_ctx->plane_res.scl_data.format == PIXEL_FORMAT_420BPP10) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1306
int vpc_div = (data->format == PIXEL_FORMAT_420BPP8
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1307
|| data->format == PIXEL_FORMAT_420BPP10) ? 2 : 1;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1516
pipe_ctx->plane_res.scl_data.format = convert_pixel_format_to_dalsurface(
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1517
pipe_ctx->plane_state->format);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4506
enum dc_timing_3d_format format;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4660
format = stream->timing.timing_3d_format;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4662
if (format != TIMING_3D_FORMAT_NONE) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5209
unsigned int resource_pixel_format_to_bpp(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5211
switch (format) {
drivers/gpu/drm/amd/display/dc/dc.h
1497
enum surface_pixel_format format;
drivers/gpu/drm/amd/display/dc/dc.h
1550
enum surface_pixel_format format;
drivers/gpu/drm/amd/display/dc/dc.h
2739
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dc.h
389
enum surface_pixel_format format;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
98
populate_splformat_from_format(&spl_in->basic_in.format, pipe_ctx->plane_res.scl_data.format);
drivers/gpu/drm/amd/display/dc/dc_types.h
1358
enum dc_cm2_gpu_mem_format format;
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
135
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
140
enum mi_bits_per_pixel mi_bpp = get_mi_bpp(format);
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
557
enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
563
if (format == SURFACE_PIXEL_FORMAT_GRPH_ABGR8888 ||
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
566
format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010 ||
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
567
format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS ||
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
568
format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616 ||
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
569
format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F) {
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
579
switch (format) {
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
652
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
665
if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
666
program_grph_pixel_format(dce_mi, format);
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
672
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
685
if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
686
program_grph_pixel_format(dce_mi, format);
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
88
enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
90
if (format >= SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616)
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
92
else if (format >= SURFACE_PIXEL_FORMAT_GRPH_ARGB8888)
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
94
else if (format >= SURFACE_PIXEL_FORMAT_GRPH_ARGB1555)
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
135
if (data->format <= PIXEL_FORMAT_GRPH_END)
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
362
enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
364
if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) {
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
373
switch (format) {
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
446
switch (format) {
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
527
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
537
if (format >= SURFACE_PIXEL_FORMAT_INVALID)
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
539
else if (format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
565
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
570
const unsigned int *pte = get_dvmm_hw_setting(tiling_info, format, false);
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
571
const unsigned int *pte_chroma = get_dvmm_hw_setting(tiling_info, format, true);
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
638
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
648
program_tiling(mem_input110, tiling_info, format);
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
650
program_pixel_format(mem_input110, format);
drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.c
189
} else if (data->format != PIXEL_FORMAT_420BPP8) {
drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.c
64
if (scl_data->format == PIXEL_FORMAT_420BPP8) {
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1004
pipe->plane_state->format, &bpe) ? dcn_bw_yes : dcn_bw_no;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1008
pipe->plane_state->format);
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
226
static enum dcn_bw_defs tl_pixel_format_to_bw_defs(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
228
switch (format) {
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
334
dcc_support_pixel_format(pipe->plane_state->format, &bpe) ? 1 : 0;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
365
switch (pipe->plane_state->format) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1636
if (pln->format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1637
|| pln->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1690
switch (pln->format) {
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
272
static bool is_dual_plane(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
274
return format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN || format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA;
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
397
if (is_dual_plane(pipe->plane_state->format)
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
400
} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3499
if (context->stream_status[0].plane_states[i]->format == SURFACE_PIXEL_FORMAT_VIDEO_420_YCbCr ||
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3500
context->stream_status[0].plane_states[i]->format == SURFACE_PIXEL_FORMAT_VIDEO_420_YCrCb) {
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
401
static bool is_dual_plane(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
403
return format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN ||
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
404
format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA;
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
534
if (is_dual_plane(pipe->plane_state->format)
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
538
} else if (!is_dual_plane(pipe->plane_state->format) &&
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
434
static bool is_dual_plane(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
436
return format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN ||
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
437
format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA;
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
567
if (is_dual_plane(pipe->plane_state->format)
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
571
} else if (!is_dual_plane(pipe->plane_state->format) &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
507
switch (plane_state->format) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
291
phantom_plane->format = main_plane->format;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
307
phantom_plane->format = main_plane->format;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
27
#define _LOG_SCALAR(field, format) do { \
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
28
DML_LOG_INTERNAL(#field" = "format(field)); \
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
31
#define _LOG_ARRAY(field, size, format) do { \
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
34
DML_LOG_INTERNAL(format(field[_i])); \
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
40
#define _LOG_2D_ARRAY(field, size0, size1, format) do { \
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
45
DML_LOG_INTERNAL(format(field[_i][_j])); \
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
57
#define _LOG_3D_ARRAY(field, size0, size1, size2, format) do { \
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/dml2_debug.h
64
DML_LOG_INTERNAL(format(field[_i][_j][_k])); \
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
56
bytes_per_pixel = pipe->plane_state->format >= SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616 ? 8 : 4;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
768
phantom_plane->format = curr_pipe->plane_state->format;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
949
switch (in->format) {
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.c
130
if (scl_data->format == PIXEL_FORMAT_FP16 &&
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.c
281
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.c
298
dpp1_setup_format_flags(format, &fmt);
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.c
328
switch (format) {
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.h
1500
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
105
static bool dpp1_dscl_is_video_format(enum pixel_format format)
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
107
if (format >= PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
108
&& format <= PIXEL_FORMAT_VIDEO_END)
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
114
static bool dpp1_dscl_is_420_format(enum pixel_format format)
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
116
if (format == PIXEL_FORMAT_420BPP8 ||
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
117
format == PIXEL_FORMAT_420BPP10)
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
132
if (data->format == PIXEL_FORMAT_FP16)
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
143
if (!dpp1_dscl_is_420_format(data->format)) {
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
144
if (dpp1_dscl_is_video_format(data->format))
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
469
if (scl_data->format == PIXEL_FORMAT_420BPP8
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
470
|| scl_data->format == PIXEL_FORMAT_420BPP10)
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
489
if (scl_data->format == PIXEL_FORMAT_420BPP8
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
490
|| scl_data->format == PIXEL_FORMAT_420BPP10) {
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
620
bool ycbcr = scl_data->format >= PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c
621
&& scl_data->format <= PIXEL_FORMAT_VIDEO_END;
drivers/gpu/drm/amd/display/dc/dpp/dcn20/dcn20_dpp.c
129
switch (format) {
drivers/gpu/drm/amd/display/dc/dpp/dcn20/dcn20_dpp.c
99
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn201/dcn201_dpp.c
199
scl_data->format == PIXEL_FORMAT_FP16)
drivers/gpu/drm/amd/display/dc/dpp/dcn201/dcn201_dpp.c
46
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn201/dcn201_dpp.c
76
switch (format) {
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c
222
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c
254
switch (format) {
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c
496
if ((scl_data->format == PIXEL_FORMAT_420BPP8) || (scl_data->format == PIXEL_FORMAT_420BPP10))
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.h
606
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.c
57
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.c
88
switch (format) {
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.h
708
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
100
&& format <= PIXEL_FORMAT_VIDEO_END)
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
106
static bool dpp401_dscl_is_420_format(enum pixel_format format)
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
1062
bool ycbcr = scl_data->format >= PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
1063
&& scl_data->format <= PIXEL_FORMAT_VIDEO_END;
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
108
if (format == PIXEL_FORMAT_420BPP8 ||
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
109
format == PIXEL_FORMAT_420BPP10)
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
124
if (data->format == PIXEL_FORMAT_FP16)
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
135
if (!dpp401_dscl_is_420_format(data->format)) {
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
136
if (dpp401_dscl_is_video_format(data->format))
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
475
if (scl_data->format == PIXEL_FORMAT_420BPP8
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
476
|| scl_data->format == PIXEL_FORMAT_420BPP10)
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
495
if (scl_data->format == PIXEL_FORMAT_420BPP8
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
496
|| scl_data->format == PIXEL_FORMAT_420BPP10) {
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
97
static bool dpp401_dscl_is_video_format(enum pixel_format format)
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
99
if (format >= PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
752
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
756
switch (format) {
drivers/gpu/drm/amd/display/dc/hubbub/dcn10/dcn10_hubbub.c
843
if (!hubbub1->base.funcs->dcc_support_pixel_format(input->format, &bpe))
drivers/gpu/drm/amd/display/dc/hubbub/dcn20/dcn20_hubbub.c
139
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn20/dcn20_hubbub.c
143
switch (format) {
drivers/gpu/drm/amd/display/dc/hubbub/dcn20/dcn20_hubbub.c
233
if (!hubbub->funcs->dcc_support_pixel_format(input->format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn20/dcn20_hubbub.h
115
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn30/dcn30_hubbub.c
292
if (!hubbub->funcs->dcc_support_pixel_format(input->format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
819
if (!hubbub->funcs->dcc_support_pixel_format(input->format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
1005
hubbub401_det_request_size(TO_DCN20_HUBBUB(hubbub)->detile_buf_size, input->format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
651
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
655
switch (format) {
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
726
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
764
switch (format) {
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
852
switch (input->format) {
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
924
if (!hubbub->funcs->dcc_support_pixel_format_plane0_plane1(input->format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
936
hubbub401_det_request_size(TO_DCN20_HUBBUB(hubbub)->detile_buf_size, input->format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.h
170
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.h
181
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
1147
enum dc_cursor_color_format format)
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
1151
if (format == CURSOR_MODE_MONO)
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
165
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
175
if (format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN && format < SURFACE_PIXEL_FORMAT_SUBSAMPLE_END) {
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
198
if (format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
238
enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
245
if (format == SURFACE_PIXEL_FORMAT_GRPH_ABGR8888
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
246
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
247
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
248
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
249
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F) {
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
260
switch (format) {
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
558
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
567
hubp1_program_tiling(hubp, tiling_info, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
568
hubp1_program_size(hubp, format, plane_size, dcc);
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
570
hubp1_program_pixel_format(hubp, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.h
862
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.h
881
enum surface_pixel_format format);
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.h
885
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
330
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
341
use_pitch_c = format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
342
&& format < SURFACE_PIXEL_FORMAT_SUBSAMPLE_END;
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
344
|| (format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
368
use_pitch_c = format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN;
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
370
|| (format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
439
enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
446
if (format == SURFACE_PIXEL_FORMAT_GRPH_ABGR8888
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
447
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
448
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
449
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
450
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F) {
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
461
switch (format) {
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
552
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
563
hubp2_program_tiling(hubp2, tiling_info, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
564
hubp2_program_size(hubp, format, plane_size, dcc);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
566
hubp2_program_pixel_format(hubp, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.h
373
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.h
384
enum surface_pixel_format format);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.h
388
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn201/dcn201_hubp.c
44
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn201/dcn201_hubp.c
53
hubp1_program_tiling(hubp, tiling_info, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn201/dcn201_hubp.c
54
hubp1_program_size(hubp, format, plane_size, dcc);
drivers/gpu/drm/amd/display/dc/hubp/dcn201/dcn201_hubp.c
55
hubp1_program_pixel_format(hubp, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn30/dcn30_hubp.c
413
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn30/dcn30_hubp.c
424
hubp3_program_tiling(hubp2, tiling_info, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn30/dcn30_hubp.c
425
hubp2_program_size(hubp, format, plane_size, dcc);
drivers/gpu/drm/amd/display/dc/hubp/dcn30/dcn30_hubp.c
427
hubp2_program_pixel_format(hubp, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn30/dcn30_hubp.h
267
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
174
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
185
hubp3_program_tiling(hubp2, tiling_info, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
186
hubp2_program_size(hubp, format, plane_size, dcc);
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
188
hubp35_program_pixel_format(hubp, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
59
enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
67
if (format == SURFACE_PIXEL_FORMAT_GRPH_ABGR8888
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
68
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
69
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
70
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
71
|| format == SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F) {
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
83
switch (format) {
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.h
63
enum surface_pixel_format format);
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.h
67
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
123
void hubp401_program_3dlut_fl_format(struct hubp *hubp, enum hubp_3dlut_fl_format format)
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
127
REG_UPDATE(_3DLUT_FL_CONFIG, HUBP0_3DLUT_FL_FORMAT, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
144
HUBP0_3DLUT_FL_FORMAT, cfg->format);
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
597
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
608
use_pitch_c = format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
609
&& format < SURFACE_PIXEL_FORMAT_SUBSAMPLE_END;
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
611
|| (format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA);
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
631
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
642
hubp401_program_tiling(hubp2, tiling_info, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
643
hubp401_program_size(hubp, format, plane_size, dcc);
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
645
hubp2_program_pixel_format(hubp, format);
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.h
286
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.h
292
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.h
350
void hubp401_program_3dlut_fl_format(struct hubp *hubp, enum hubp_3dlut_fl_format format);
drivers/gpu/drm/amd/display/dc/hwss/dce/dce_hwseq.c
210
bool dce_use_lut(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/hwss/dce/dce_hwseq.c
212
switch (format) {
drivers/gpu/drm/amd/display/dc/hwss/dce/dce_hwseq.h
1302
bool dce_use_lut(enum surface_pixel_format format);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2553
default_adjust.surface_pixel_format = pipe_ctx->plane_res.scl_data.format;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
260
switch (plane_state->format) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2957
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2969
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
301
dce_use_lut(plane_state->format))
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
151
default_adjust.surface_pixel_format = pipe_ctx->plane_res.scl_data.format;
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
202
switch (pipe_ctx->plane_res.scl_data.format) {
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
318
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
330
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2046
&& dce_use_lut(plane_state->format))
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2864
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3125
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1733
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1833
plane_state->format,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2958
if (pipe_ctx->plane_state->format
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
1109
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
1114
(format >= SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616 ? 8 : 4);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
971
plane->format <= SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F &&
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
972
plane->format >= SURFACE_PIXEL_FORMAT_GRPH_ARGB8888 &&
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
976
plane->plane_size.surface_size.height, plane->format,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h
78
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3739
plane_state->format, &plane_state->tiling_info, size,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3814
if (pipe_ctx->plane_state->format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
424
enum hubp_3dlut_fl_format format = 0;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
546
switch (mcm_luts.lut3d_data.gpu_mem_params.format_params.format) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
548
format = hubp_3dlut_fl_format_unorm_12msb_bitslice;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
551
format = hubp_3dlut_fl_format_unorm_12lsb_bitslice;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
554
format = hubp_3dlut_fl_format_float_fp1_5_10;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
558
hubp->funcs->hubp_program_3dlut_fl_format(hubp, format);
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1201
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
163
enum surface_pixel_format format;
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1943
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/custom_float.h
36
const struct custom_float_format *format,
drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h
192
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h
196
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h
313
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h
106
enum hubp_3dlut_fl_format format;
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h
198
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h
212
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h
297
enum hubp_3dlut_fl_format format);
drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h
88
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/mcif_wb.h
65
enum dwb_scaler_mode format;
drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h
152
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h
166
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/hw/transform.h
163
enum pixel_format format;
drivers/gpu/drm/amd/display/dc/inc/hw/transform.h
238
enum surface_pixel_format format,
drivers/gpu/drm/amd/display/dc/inc/resource.h
601
unsigned int resource_pixel_format_to_bpp(enum surface_pixel_format format);
drivers/gpu/drm/amd/display/dc/mmhubbub/dcn20/dcn20_mmhubbub.c
292
dump_info->format = out_format;
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
917
if (context->stream_status[i].plane_states[0]->format
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
965
if (plane_state->format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1070
if (plane->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) {
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
941
if (pipe_ctx->plane_state->format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
1009
if (context->stream_status[i].plane_states[0]->format
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1179
if (plane_state->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1211
if (plane->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) {
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1247
enum surface_pixel_format surf_pix_format = plane_state->format;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
2235
enum surface_pixel_format surf_pix_format = plane_state->format;
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
1642
static bool is_dual_plane(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
1644
return format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN || format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA;
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
1736
if (is_dual_plane(pipe->plane_state->format)
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
1739
} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120) {
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1643
static bool is_dual_plane(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1645
return format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN || format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA;
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1822
if (is_dual_plane(pipe->plane_state->format)
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1827
} else if (!is_dual_plane(pipe->plane_state->format)
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
1636
static bool is_dual_plane(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
1638
return format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN || format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA;
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
1706
if (is_dual_plane(pipe->plane_state->format)
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
1711
} else if (!is_dual_plane(pipe->plane_state->format)) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1703
phantom_plane->format = curr_pipe->plane_state->format;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
34
static bool is_dual_plane(enum surface_pixel_format format)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
36
return format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN || format == SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
405
if (!is_dual_plane(pipe->plane_state->format)) {
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1013
if (spl_is_video_format(spl_in->basic_in.format)) {
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1046
if (spl_is_yuv420(spl_in->basic_in.format))
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1108
if (spl_is_video_format(spl_in->basic_in.format)) {
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1182
static void spl_set_black_color_data(enum spl_pixel_format format,
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1185
bool ycbcr = spl_is_video_format(format);
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1268
spl_set_black_color_data(spl_in->basic_in.format, scl_black_color);
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
13
static bool spl_is_yuv420(enum spl_pixel_format format)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1327
enum spl_pixel_format format, enum system_setup setup,
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
15
if ((format >= SPL_PIXEL_FORMAT_420BPP8) &&
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
16
(format <= SPL_PIXEL_FORMAT_420BPP10))
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1634
if ((setup == HDR_L) && (spl_is_rgb8(format))) {
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1659
if (spl_is_subsampled_format(format)) { /* TODO: 0 = RGB, 1 = YUV */
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1692
enum linear_light_scaling lls_pref, enum spl_pixel_format format,
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1902
spl_in->basic_in.format, setup, spl_in->sdr_white_level_nits);
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
1913
spl_in->lls_pref, spl_in->basic_in.format, data, isharp_scale_ratio, setup,
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
22
static bool spl_is_rgb8(enum spl_pixel_format format)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
24
if (format == SPL_PIXEL_FORMAT_ARGB8888)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
30
static bool spl_is_video_format(enum spl_pixel_format format)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
32
if (format >= SPL_PIXEL_FORMAT_VIDEO_BEGIN
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
33
&& format <= SPL_PIXEL_FORMAT_VIDEO_END)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
39
static bool spl_is_subsampled_format(enum spl_pixel_format format)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
41
if (format >= SPL_PIXEL_FORMAT_SUBSAMPLED_BEGIN
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
42
&& format <= SPL_PIXEL_FORMAT_SUBSAMPLED_END)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
468
if (spl_is_yuv420(spl_in->basic_in.format)) {
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
615
int vpc_div = spl_is_subsampled_format(spl_in->basic_in.format) ? 2 : 1;
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
643
if (spl_is_subsampled_format(spl_in->basic_in.format)) {
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
764
enum spl_pixel_format pixel_format = spl_in->basic_in.format;
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
794
static void spl_choose_lls_policy(enum spl_pixel_format format,
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
797
if (spl_is_subsampled_format(format))
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
828
spl_choose_lls_policy(spl_in->basic_in.format,
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
841
if (spl_is_video_format(spl_in->basic_in.format) && spl_in->is_fullscreen)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
872
if (!spl_is_video_format(spl_in->basic_in.format) &&
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
875
else if ((spl_is_video_format(spl_in->basic_in.format) && !fullscreen) &&
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
980
bool is_subsampled = spl_is_subsampled_format(spl_in->basic_in.format);
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_types.h
440
enum spl_pixel_format format; // Pixel Format
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
111
while (i < format->mantissa_bits) {
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
120
while (j < format->exponenta_bits) {
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
129
if (negative && format->sign)
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
139
const struct spl_custom_float_format *format,
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
14
uint32_t exp_offset = (1 << (format->exponenta_bits - 1)) - 1;
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
146
return spl_build_custom_float(value, format, &negative, &mantissa, &exponenta) &&
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
147
spl_setup_custom_float(format,
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
17
SPL_NAMESPACE(spl_fixpt_from_fraction((1LL << (format->mantissa_bits + 1)) - 1,
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
18
1LL << format->mantissa_bits));
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
30
*negative = format->sign;
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
72
mantiss = spl_fixpt_shl(mantiss, format->mantissa_bits);
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
79
static bool spl_setup_custom_float(const struct spl_custom_float_format *format,
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
9
const struct spl_custom_float_format *format,
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
94
(1 << (format->mantissa_bits + 1)) - 1;
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
97
(1 << (format->exponenta_bits + 1)) - 1;
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.h
26
const struct spl_custom_float_format *format,
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
513
enum dc_timing_3d_format format;
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
516
format = stream->timing.timing_3d_format;
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
518
format = TIMING_3D_FORMAT_NONE;
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
523
&& format == TIMING_3D_FORMAT_NONE)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
526
if ((format == TIMING_3D_FORMAT_NONE) && !hdmi_vic_mode)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
533
if (format != TIMING_3D_FORMAT_NONE)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
539
switch (format) {
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
108
ATOM_INIT_REG_INDEX_FORMAT *format = ®_block->asRegIndexBuf[0];
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
116
while ((!(format->ucPreRegDataLength & ACCESS_PLACEHOLDER)) &&
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
119
(uint16_t)(le16_to_cpu(format->usRegIndex));
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
121
format->ucPreRegDataLength;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
124
format = (ATOM_INIT_REG_INDEX_FORMAT *)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
125
((uint8_t *)format + sizeof(ATOM_INIT_REG_INDEX_FORMAT));
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
192
const struct drm_format_info *info = fb->format;
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
247
if (fb->format->is_yuv) {
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
366
fourcc = fb->format->format;
drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c
42
switch (info->format) {
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
117
const struct drm_format_info *info = fb->format;
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
149
if (fb->format->num_planes == 3) {
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
203
for (i = 0; i < kfb->base.format->num_planes; i++)
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
214
const struct drm_format_info *info = fb->format;
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
215
u32 block_w = drm_format_info_block_width(fb->format, 0);
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
216
u32 block_h = drm_format_info_block_height(fb->format, 0);
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
22
for (i = 0; i < fb->format->num_planes; i++)
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
226
src_x, src_y, src_w, src_h, info->format);
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
233
src_x, src_y, src_w, src_h, info->format);
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
247
if (plane >= fb->format->num_planes) {
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
256
block_w = drm_format_info_block_width(fb->format, plane);
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
257
block_sz = fb->format->char_per_block[plane];
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
258
plane_x = x / (plane ? fb->format->hsub : 1);
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
259
plane_y = y / (plane ? fb->format->vsub : 1);
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
274
u32 fourcc = fb->format->format;
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
45
const struct drm_format_info *info = fb->format;
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
323
if (kfb->base.format->hsub > 1)
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
378
for (i = 0; i < fb->format->num_planes; i++)
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
422
for (i = 0; i < kfb->base.format->num_planes; i++)
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
852
if (!fb->format->has_alpha)
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
859
dflow->is_yuv = fb->format->is_yuv;
drivers/gpu/drm/arm/display/komeda/komeda_plane.c
177
u32 format, u64 modifier)
drivers/gpu/drm/arm/display/komeda/komeda_plane.c
184
format, modifier, 0);
drivers/gpu/drm/arm/hdlcd_crtc.c
101
if (supported_formats[i].fourcc == fb->format->format)
drivers/gpu/drm/arm/hdlcd_crtc.c
102
format = &supported_formats[i].pixel;
drivers/gpu/drm/arm/hdlcd_crtc.c
105
if (WARN_ON(!format))
drivers/gpu/drm/arm/hdlcd_crtc.c
109
btpp = (format->bits_per_pixel + 7) / 8;
drivers/gpu/drm/arm/hdlcd_crtc.c
122
hdlcd_write(hdlcd, HDLCD_REG_RED_SELECT, format->red.offset |
drivers/gpu/drm/arm/hdlcd_crtc.c
126
((format->red.length & 0xf) << 8));
drivers/gpu/drm/arm/hdlcd_crtc.c
127
hdlcd_write(hdlcd, HDLCD_REG_GREEN_SELECT, format->green.offset |
drivers/gpu/drm/arm/hdlcd_crtc.c
128
((format->green.length & 0xf) << 8));
drivers/gpu/drm/arm/hdlcd_crtc.c
129
hdlcd_write(hdlcd, HDLCD_REG_BLUE_SELECT, format->blue.offset |
drivers/gpu/drm/arm/hdlcd_crtc.c
130
((format->blue.length & 0xf) << 8));
drivers/gpu/drm/arm/hdlcd_crtc.c
97
const struct pixel_format *format = NULL;
drivers/gpu/drm/arm/malidp_drv.c
332
bpp = malidp_format_get_bpp(info->format);
drivers/gpu/drm/arm/malidp_drv.h
69
u8 format;
drivers/gpu/drm/arm/malidp_drv.h
92
bool malidp_hw_format_is_linear_only(u32 format);
drivers/gpu/drm/arm/malidp_drv.h
93
bool malidp_hw_format_is_afbc_only(u32 format);
drivers/gpu/drm/arm/malidp_drv.h
96
u32 format, u64 modifier);
drivers/gpu/drm/arm/malidp_hw.c
1092
u8 layer_id, u32 format, bool has_modifier)
drivers/gpu/drm/arm/malidp_hw.c
1098
(map->pixel_formats[i].format == format)) {
drivers/gpu/drm/arm/malidp_hw.c
1104
if (format == DRM_FORMAT_YUYV &&
drivers/gpu/drm/arm/malidp_hw.c
1116
bool malidp_hw_format_is_linear_only(u32 format)
drivers/gpu/drm/arm/malidp_hw.c
1118
switch (format) {
drivers/gpu/drm/arm/malidp_hw.c
1145
bool malidp_hw_format_is_afbc_only(u32 format)
drivers/gpu/drm/arm/malidp_hw.c
1147
switch (format) {
drivers/gpu/drm/arm/malidp_hw.h
327
u8 layer_id, u32 format, bool has_modifier);
drivers/gpu/drm/arm/malidp_hw.h
42
u32 format; /* DRM fourcc */
drivers/gpu/drm/arm/malidp_mw.c
155
mw_state->format =
drivers/gpu/drm/arm/malidp_mw.c
157
fb->format->format, !!fb->modifier);
drivers/gpu/drm/arm/malidp_mw.c
158
if (mw_state->format == MALIDP_INVALID_FORMAT_ID) {
drivers/gpu/drm/arm/malidp_mw.c
160
&fb->format->format);
drivers/gpu/drm/arm/malidp_mw.c
164
n_planes = fb->format->num_planes;
drivers/gpu/drm/arm/malidp_mw.c
180
if (fb->format->is_yuv)
drivers/gpu/drm/arm/malidp_mw.c
203
formats[n++] = map->pixel_formats[i].format;
drivers/gpu/drm/arm/malidp_mw.c
261
mw_state->format);
drivers/gpu/drm/arm/malidp_mw.c
266
fb->width, fb->height, mw_state->format,
drivers/gpu/drm/arm/malidp_mw.c
31
u8 format;
drivers/gpu/drm/arm/malidp_planes.c
104
state->format = m_state->format;
drivers/gpu/drm/arm/malidp_planes.c
134
drm_printf(p, "\tformat_id=%u\n", ms->format);
drivers/gpu/drm/arm/malidp_planes.c
142
u32 format, u64 modifier)
drivers/gpu/drm/arm/malidp_planes.c
158
return !malidp_hw_format_is_afbc_only(format);
drivers/gpu/drm/arm/malidp_planes.c
195
info = drm_format_info(format);
drivers/gpu/drm/arm/malidp_planes.c
202
if (malidp_hw_format_is_linear_only(format) == true) {
drivers/gpu/drm/arm/malidp_planes.c
204
format);
drivers/gpu/drm/arm/malidp_planes.c
228
if (!(format == DRM_FORMAT_YUV420_10BIT &&
drivers/gpu/drm/arm/malidp_planes.c
247
u32 format, u64 modifier)
drivers/gpu/drm/arm/malidp_planes.c
249
return malidp_format_mod_supported(plane->dev, format, modifier);
drivers/gpu/drm/arm/malidp_planes.c
364
static bool malidp_partial_prefetch_supported(u32 format, u64 modifier,
drivers/gpu/drm/arm/malidp_planes.c
377
switch (format) {
drivers/gpu/drm/arm/malidp_planes.c
445
if (malidp_partial_prefetch_supported(ms->base.fb->format->format,
drivers/gpu/drm/arm/malidp_planes.c
510
ms->format = malidp_hw_get_format_id(&mp->hwdev->hw->map,
drivers/gpu/drm/arm/malidp_planes.c
511
mp->layer->id, fb->format->format,
drivers/gpu/drm/arm/malidp_planes.c
513
if (ms->format == MALIDP_INVALID_FORMAT_ID)
drivers/gpu/drm/arm/malidp_planes.c
516
ms->n_planes = fb->format->num_planes;
drivers/gpu/drm/arm/malidp_planes.c
520
if (((fb->pitches[i] * drm_format_info_block_height(fb->format, i))
drivers/gpu/drm/arm/malidp_planes.c
528
block_w = drm_format_info_block_width(fb->format, 0);
drivers/gpu/drm/arm/malidp_planes.c
529
block_h = drm_format_info_block_height(fb->format, 0);
drivers/gpu/drm/arm/malidp_planes.c
569
if ((fb->format->format == DRM_FORMAT_RGB888 ||
drivers/gpu/drm/arm/malidp_planes.c
570
fb->format->format == DRM_FORMAT_BGR888) && !(fb->modifier))
drivers/gpu/drm/arm/malidp_planes.c
586
fb->format->format,
drivers/gpu/drm/arm/malidp_planes.c
597
fb->format->has_alpha)
drivers/gpu/drm/arm/malidp_planes.c
624
unsigned int block_h = drm_format_info_block_height(mp->base.state->fb->format, i);
drivers/gpu/drm/arm/malidp_planes.c
815
val = (val & ~LAYER_FORMAT_MASK) | ms->format;
drivers/gpu/drm/arm/malidp_planes.c
872
} else if (new_state->fb->format->has_alpha) {
drivers/gpu/drm/arm/malidp_planes.c
969
formats[n++] = map->pixel_formats[j].format;
drivers/gpu/drm/armada/armada_fb.c
27
uint8_t format, config;
drivers/gpu/drm/armada/armada_fb.c
33
format = CFG_##fmt; \
drivers/gpu/drm/armada/armada_fb.c
66
dfb->fmt = format;
drivers/gpu/drm/armada/armada_fbdev.c
105
dfb->fb.width, dfb->fb.height, dfb->fb.format->cpp[0] * 8,
drivers/gpu/drm/armada/armada_overlay.c
116
const struct drm_format_info *format;
drivers/gpu/drm/armada/armada_overlay.c
150
format = new_state->fb->format;
drivers/gpu/drm/armada/armada_overlay.c
152
if (format->num_planes == 1 && src_x & (format->hsub - 1))
drivers/gpu/drm/armada/armada_plane.c
42
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/armada/armada_plane.c
43
unsigned int num_planes = format->num_planes;
drivers/gpu/drm/armada/armada_plane.c
50
fb->pitches[0], x, y, format->cpp[0] * 8);
drivers/gpu/drm/armada/armada_plane.c
56
x * format->cpp[0];
drivers/gpu/drm/armada/armada_plane.c
59
y /= format->vsub;
drivers/gpu/drm/armada/armada_plane.c
60
x /= format->hsub;
drivers/gpu/drm/armada/armada_plane.c
64
x * format->cpp[i];
drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c
30
const u32 format = crtc->primary->state->fb->format->format;
drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c
36
switch (format) {
drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c
48
dev_err(drm->dev, "Unhandled pixel format %08x\n", format);
drivers/gpu/drm/ast/ast_cursor.c
199
switch (fb->format->format) {
drivers/gpu/drm/ast/ast_drv.h
370
const struct drm_format_info *format;
drivers/gpu/drm/ast/ast_mode.c
103
switch (format->format) {
drivers/gpu/drm/ast/ast_mode.c
116
&format->format);
drivers/gpu/drm/ast/ast_mode.c
122
const struct drm_format_info *format,
drivers/gpu/drm/ast/ast_mode.c
127
switch (format->format) {
drivers/gpu/drm/ast/ast_mode.c
140
&format->format);
drivers/gpu/drm/ast/ast_mode.c
146
const struct drm_format_info *format,
drivers/gpu/drm/ast/ast_mode.c
151
switch (format->cpp[0]) {
drivers/gpu/drm/ast/ast_mode.c
172
ast_set_index_reg(ast, AST_IO_VGACRI, 0x92, format->cpp[0] * 8);
drivers/gpu/drm/ast/ast_mode.c
382
const struct drm_format_info *format)
drivers/gpu/drm/ast/ast_mode.c
386
switch (format->cpp[0] * 8) {
drivers/gpu/drm/ast/ast_mode.c
522
new_ast_crtc_state->format = new_plane_state->fb->format;
drivers/gpu/drm/ast/ast_mode.c
534
iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, clip));
drivers/gpu/drm/ast/ast_mode.c
559
if (!old_fb || (fb->format != old_fb->format) || crtc_state->mode_changed) {
drivers/gpu/drm/ast/ast_mode.c
562
ast_set_color_reg(ast, fb->format);
drivers/gpu/drm/ast/ast_mode.c
563
ast_set_vbios_color_reg(ast, fb->format, ast_crtc_state->vmode);
drivers/gpu/drm/ast/ast_mode.c
617
sb->format = plane->state->fb->format;
drivers/gpu/drm/ast/ast_mode.c
720
const struct drm_format_info *format;
drivers/gpu/drm/ast/ast_mode.c
735
format = ast_state->format;
drivers/gpu/drm/ast/ast_mode.c
736
if (drm_WARN_ON_ONCE(dev, !format))
drivers/gpu/drm/ast/ast_mode.c
743
if (old_ast_crtc_state->format != format)
drivers/gpu/drm/ast/ast_mode.c
761
switch (format->format) {
drivers/gpu/drm/ast/ast_mode.c
826
ast_crtc_state->format,
drivers/gpu/drm/ast/ast_mode.c
829
ast_crtc_fill_gamma(ast, ast_crtc_state->format);
drivers/gpu/drm/ast/ast_mode.c
906
new_ast_state->format = ast_state->format;
drivers/gpu/drm/ast/ast_mode.c
99
const struct drm_format_info *format)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
127
static int atmel_hlcdc_format_to_plane_mode(u32 format, u32 *mode)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
129
switch (format) {
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
376
switch (state->base.fb->format->format) {
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
435
const struct drm_format_info *format = state->base.fb->format;
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
441
if (format->format == DRM_FORMAT_RGB888)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
453
if (format->has_alpha)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
472
const struct drm_format_info *format = state->base.fb->format;
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
488
if (format->has_alpha)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
507
ret = atmel_hlcdc_format_to_plane_mode(state->base.fb->format->format,
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
512
if ((state->base.fb->format->format == DRM_FORMAT_YUV422 ||
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
513
state->base.fb->format->format == DRM_FORMAT_NV61) &&
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
679
ovl_s->fb->format->has_alpha ||
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
755
hstate->nplanes = fb->format->num_planes;
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
761
int xdiv = i ? fb->format->hsub : 1;
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
762
int ydiv = i ? fb->format->vsub : 1;
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
764
hstate->bpp[i] = fb->format->cpp[i];
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
824
hstate->base.fb->format->has_alpha))
drivers/gpu/drm/bridge/adv7511/adv7533.c
104
u8 bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/bridge/adv7511/adv7533.c
151
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/analogix/anx7625.c
2077
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
489
bpp = mipi_dsi_pixel_format_to_bpp(output->dev->format);
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
534
mipi_dsi_pixel_format_to_bpp(output->dev->format),
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
586
bpp = mipi_dsi_pixel_format_to_bpp(output->dev->format);
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
839
switch (output->dev->format) {
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
909
input_fmts[0] = drm_mipi_dsi_get_input_bus_fmt(output->dev->format);
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
926
bitspp = mipi_dsi_pixel_format_to_bpp(output->dev->format);
drivers/gpu/drm/bridge/chipone-icn6211.c
528
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/fsl-ldb.c
143
switch (bridge_state->output_bus_cfg.format) {
drivers/gpu/drm/bridge/fsl-ldb.c
165
bridge_state->output_bus_cfg.format);
drivers/gpu/drm/bridge/imx/imx-ldb-helper.c
40
ldb_ch->in_bus_format = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/bridge/imx/imx-ldb-helper.c
41
ldb_ch->out_bus_format = bridge_state->output_bus_cfg.format;
drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c
84
p2d->in_bus_format = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c
85
p2d->out_bus_format = bridge_state->output_bus_cfg.format;
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
102
u32 format;
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
470
u32 lanes, u32 format)
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
476
bpp = mipi_dsi_pixel_format_to_bpp(format);
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
478
dev_dbg(dev, "failed to get bpp for pixel format %d\n", format);
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
519
unsigned long mode_flags, u32 lanes, u32 format)
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
527
format);
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
544
unsigned long mode_flags, u32 lanes, u32 format)
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
557
ret = imx93_dsi_validate_phy(dsi, mode, mode_flags, lanes, format);
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
627
switch (dsi->format) {
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
676
unsigned long mode_flags, u32 lanes, u32 format,
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
685
format);
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
821
dsi->format = device->format;
drivers/gpu/drm/bridge/lontium-lt8912b.c
492
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/lontium-lt9211.c
224
u8 format;
drivers/gpu/drm/bridge/lontium-lt9211.c
251
format = buf[2] & 0xf;
drivers/gpu/drm/bridge/lontium-lt9211.c
253
if (format == 0x3) { /* YUV422 16bit */
drivers/gpu/drm/bridge/lontium-lt9211.c
255
} else if (format == 0xa) { /* RGB888 24bit */
drivers/gpu/drm/bridge/lontium-lt9211.c
259
format);
drivers/gpu/drm/bridge/lontium-lt9211.c
278
width, height, format, byteclk);
drivers/gpu/drm/bridge/lontium-lt9211.c
485
switch (bridge_state->output_bus_cfg.format) {
drivers/gpu/drm/bridge/lontium-lt9211.c
508
bridge_state->output_bus_cfg.format);
drivers/gpu/drm/bridge/lontium-lt9211.c
708
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/lontium-lt9611.c
730
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/lontium-lt9611uxc.c
268
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/nwl-dsi.c
107
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/bridge/nwl-dsi.c
169
static int nwl_dsi_get_dpi_pixel_format(enum mipi_dsi_pixel_format format)
drivers/gpu/drm/bridge/nwl-dsi.c
171
switch (format) {
drivers/gpu/drm/bridge/nwl-dsi.c
190
u32 bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/bridge/nwl-dsi.c
282
color_format = nwl_dsi_get_dpi_pixel_format(dsi->format);
drivers/gpu/drm/bridge/nwl-dsi.c
285
dsi->format);
drivers/gpu/drm/bridge/nwl-dsi.c
288
DRM_DEV_DEBUG_DRIVER(dsi->dev, "pixel fmt = %d\n", dsi->format);
drivers/gpu/drm/bridge/nwl-dsi.c
353
device->format, device->mode_flags);
drivers/gpu/drm/bridge/nwl-dsi.c
359
dsi->format = device->format;
drivers/gpu/drm/bridge/nwl-dsi.c
789
mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes,
drivers/gpu/drm/bridge/nwl-dsi.c
807
int bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/bridge/parade-ps8640.c
598
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/samsung-dsim.c
1097
switch (dsi->format) {
drivers/gpu/drm/bridge/samsung-dsim.c
1958
mipi_dsi_pixel_format_to_bpp(device->format),
drivers/gpu/drm/bridge/samsung-dsim.c
1985
dsi->format = device->format;
drivers/gpu/drm/bridge/samsung-dsim.c
878
int bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/bridge/ssd2825.c
324
priv->pd_lines = mipi_dsi_pixel_format_to_bpp(dev->format);
drivers/gpu/drm/bridge/ssd2825.c
515
switch (dsi_dev->format) {
drivers/gpu/drm/bridge/synopsys/dw-dp.c
1546
fmt = dw_dp_get_output_format(bridge_state->output_bus_cfg.format);
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
466
switch (runtime->format) {
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
2895
bridge_state->output_bus_cfg.format;
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
2898
bridge_state->input_bus_cfg.format;
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
2901
bridge_state->input_bus_cfg.format,
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
2902
bridge_state->output_bus_cfg.format);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
1070
dsi->format);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
1292
dsi->slave->format = dsi->format;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
256
u32 format;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
333
dsi->format = device->format;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
699
switch (dsi->format) {
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
788
bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
990
lanes, dsi->format, &dsi->lane_mbps);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
204
u32 format;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
417
switch (dsi2->format) {
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
528
dsi2->format = device->format;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
792
lanes, dsi2->format, &dsi2->lane_mbps);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
868
dsi2->format);
drivers/gpu/drm/bridge/tc358762.c
280
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/tc358764.c
360
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/tc358767.c
2304
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/tc358768.c
436
if (dev->format != MIPI_DSI_FMT_RGB888) {
drivers/gpu/drm/bridge/tc358768.c
458
priv->dsi_bpp = mipi_dsi_pixel_format_to_bpp(dev->format);
drivers/gpu/drm/bridge/tc358768.c
747
switch (dsi_dev->format) {
drivers/gpu/drm/bridge/tc358768.c
772
dsi_dev->format);
drivers/gpu/drm/bridge/tc358775.c
630
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/ti-dlpc3433.c
335
dlpc->dsi->format = MIPI_DSI_FMT_RGB565;
drivers/gpu/drm/bridge/ti-sn65dsi83.c
355
mipi_dsi_pixel_format_to_bpp(ctx->dsi->format) /
drivers/gpu/drm/bridge/ti-sn65dsi83.c
362
unsigned int dsi_div = mipi_dsi_pixel_format_to_bpp(ctx->dsi->format);
drivers/gpu/drm/bridge/ti-sn65dsi83.c
550
switch (bridge_state->output_bus_cfg.format) {
drivers/gpu/drm/bridge/ti-sn65dsi83.c
573
bridge_state->output_bus_cfg.format);
drivers/gpu/drm/bridge/ti-sn65dsi83.c
968
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/ti-sn65dsi86.c
301
mipi_dsi_pixel_format_to_bpp(pdata->dsi->format);
drivers/gpu/drm/bridge/ti-sn65dsi86.c
731
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/bridge/ti-sn65dsi86.c
847
mipi_dsi_pixel_format_to_bpp(pdata->dsi->format);
drivers/gpu/drm/bridge/waveshare-dsi.c
68
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/clients/drm_client_internal.h
10
int drm_fbdev_client_setup(struct drm_device *dev, const struct drm_format_info *format);
drivers/gpu/drm/clients/drm_client_internal.h
13
const struct drm_format_info *format)
drivers/gpu/drm/clients/drm_client_setup.c
35
void drm_client_setup(struct drm_device *dev, const struct drm_format_info *format)
drivers/gpu/drm/clients/drm_client_setup.c
46
ret = drm_fbdev_client_setup(dev, format);
drivers/gpu/drm/clients/drm_fbdev_client.c
126
int drm_fbdev_client_setup(struct drm_device *dev, const struct drm_format_info *format)
drivers/gpu/drm/clients/drm_fbdev_client.c
133
if (format) {
drivers/gpu/drm/clients/drm_fbdev_client.c
134
unsigned int bpp = drm_format_info_bpp(format, 0);
drivers/gpu/drm/clients/drm_fbdev_client.c
138
color_mode = format->depth; // could also be 15
drivers/gpu/drm/clients/drm_log.c
114
u32 px_width = fb->format->cpp[0];
drivers/gpu/drm/clients/drm_log.c
197
u32 format;
drivers/gpu/drm/clients/drm_log.c
203
format = drm_log_find_usable_format(crtc->primary);
drivers/gpu/drm/clients/drm_log.c
204
if (format == DRM_FORMAT_INVALID)
drivers/gpu/drm/clients/drm_log.c
207
scanout->buffer = drm_client_buffer_create_dumb(client, width, height, format);
drivers/gpu/drm/clients/drm_log.c
210
width, height, &format);
drivers/gpu/drm/clients/drm_log.c
218
scanout->front_color = drm_draw_color_from_xrgb8888(0xffffff, format);
drivers/gpu/drm/clients/drm_log.c
219
scanout->prefix_color = drm_draw_color_from_xrgb8888(0x4e9a06, format);
drivers/gpu/drm/clients/drm_log.c
48
u32 format;
drivers/gpu/drm/display/drm_hdmi_state_helper.c
382
unsigned int format, unsigned int bpc)
drivers/gpu/drm/display/drm_hdmi_state_helper.c
403
(format != HDMI_COLORSPACE_RGB || bpc != 8)) {
drivers/gpu/drm/display/drm_hdmi_state_helper.c
408
if (!(connector->hdmi.supported_formats & BIT(format))) {
drivers/gpu/drm/display/drm_hdmi_state_helper.c
410
drm_hdmi_connector_get_output_format_name(format));
drivers/gpu/drm/display/drm_hdmi_state_helper.c
414
if (drm_mode_is_420_only(info, mode) && format != HDMI_COLORSPACE_YUV420) {
drivers/gpu/drm/display/drm_hdmi_state_helper.c
419
switch (format) {
drivers/gpu/drm/drm_atomic.c
738
if (!drm_plane_has_format(plane, fb->format->format, fb->modifier)) {
drivers/gpu/drm/drm_atomic.c
742
&fb->format->format, fb->modifier);
drivers/gpu/drm/drm_atomic_helper.c
863
if (fb->format->format == formats[i])
drivers/gpu/drm/drm_atomic_helper.c
866
drm_dbg_kms(connector->dev, "Invalid pixel format %p4cc\n", &fb->format->format);
drivers/gpu/drm/drm_bridge.c
1070
cur_state->input_bus_cfg.format = MEDIA_BUS_FMT_FIXED;
drivers/gpu/drm/drm_bridge.c
1071
cur_state->output_bus_cfg.format = out_bus_fmt;
drivers/gpu/drm/drm_bridge.c
1096
cur_state->input_bus_cfg.format = in_bus_fmts[0];
drivers/gpu/drm/drm_bridge.c
1097
cur_state->output_bus_cfg.format = out_bus_fmt;
drivers/gpu/drm/drm_bridge.c
1111
cur_state->input_bus_cfg.format = in_bus_fmts[i];
drivers/gpu/drm/drm_bridge.c
1112
cur_state->output_bus_cfg.format = out_bus_fmt;
drivers/gpu/drm/drm_client.c
209
u32 format, u32 handle, u32 pitch)
drivers/gpu/drm/drm_client.c
214
.pixel_format = format,
drivers/gpu/drm/drm_client.c
395
drm_client_buffer_create_dumb(struct drm_client_dev *client, u32 width, u32 height, u32 format)
drivers/gpu/drm/drm_client.c
397
const struct drm_format_info *info = drm_format_info(format);
drivers/gpu/drm/drm_client.c
410
buffer = drm_client_buffer_create(client, width, height, format,
drivers/gpu/drm/drm_crtc.c
811
if (!drm_plane_has_format(plane, fb->format->format, fb->modifier)) {
drivers/gpu/drm/drm_crtc.c
813
&fb->format->format, fb->modifier);
drivers/gpu/drm/drm_crtc_helper.c
647
} else if (set->fb->format != set->crtc->primary->fb->format) {
drivers/gpu/drm/drm_draw.c
25
bool drm_draw_can_convert_from_xrgb8888(u32 format)
drivers/gpu/drm/drm_draw.c
27
switch (format) {
drivers/gpu/drm/drm_draw.c
56
u32 drm_draw_color_from_xrgb8888(u32 color, u32 format)
drivers/gpu/drm/drm_draw.c
58
switch (format) {
drivers/gpu/drm/drm_draw.c
83
WARN_ONCE(1, "Can't convert to %p4cc\n", &format);
drivers/gpu/drm/drm_draw_internal.h
27
bool drm_draw_can_convert_from_xrgb8888(u32 format);
drivers/gpu/drm/drm_draw_internal.h
29
u32 drm_draw_color_from_xrgb8888(u32 color, u32 format);
drivers/gpu/drm/drm_edid.c
5650
sad[0] = cta_sad->format << 3 | cta_sad->channels;
drivers/gpu/drm/drm_edid.c
5660
cta_sad->format = (sad[0] & 0x78) >> 3;
drivers/gpu/drm/drm_fb_dma_helper.c
127
const struct drm_format_info *finfo = state->fb->format;
drivers/gpu/drm/drm_fb_dma_helper.c
191
sb->format = fb->format;
drivers/gpu/drm/drm_fb_dma_helper.c
80
u32 block_w = drm_format_info_block_width(fb->format, plane);
drivers/gpu/drm/drm_fb_dma_helper.c
81
u32 block_h = drm_format_info_block_height(fb->format, plane);
drivers/gpu/drm/drm_fb_dma_helper.c
82
u32 block_size = fb->format->char_per_block[plane];
drivers/gpu/drm/drm_fb_dma_helper.c
95
h_div = fb->format->hsub;
drivers/gpu/drm/drm_fb_dma_helper.c
96
v_div = fb->format->vsub;
drivers/gpu/drm/drm_fb_helper.c
1033
var->bits_per_pixel = drm_format_info_bpp(fb->format, 0);
drivers/gpu/drm/drm_fb_helper.c
1058
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/drm_fb_helper.c
1070
switch (format->format) {
drivers/gpu/drm/drm_fb_helper.c
1078
if ((drm_format_info_block_width(format, 0) > 1) ||
drivers/gpu/drm/drm_fb_helper.c
1079
(drm_format_info_block_height(format, 0) > 1))
drivers/gpu/drm/drm_fb_helper.c
1088
bpp = drm_format_info_bpp(format, 0);
drivers/gpu/drm/drm_fb_helper.c
1128
drm_fb_helper_fill_pixel_fmt(var, format);
drivers/gpu/drm/drm_fb_helper.c
1283
uint32_t format;
drivers/gpu/drm/drm_fb_helper.c
1286
format = drm_driver_color_mode_format(dev, color_mode);
drivers/gpu/drm/drm_fb_helper.c
1287
if (!format) {
drivers/gpu/drm/drm_fb_helper.c
1293
if (formats[i] == format)
drivers/gpu/drm/drm_fb_helper.c
1294
return format;
drivers/gpu/drm/drm_fb_helper.c
1296
drm_warn(dev, "format %p4cc not supported\n", &format);
drivers/gpu/drm/drm_fb_helper.c
1499
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/drm_fb_helper.c
1501
switch (format->format) {
drivers/gpu/drm/drm_fb_helper.c
1509
WARN_ON((drm_format_info_block_width(format, 0) > 1) ||
drivers/gpu/drm/drm_fb_helper.c
1510
(drm_format_info_block_height(format, 0) > 1));
drivers/gpu/drm/drm_fb_helper.c
1520
drm_fb_helper_fill_pixel_fmt(&info->var, format);
drivers/gpu/drm/drm_fb_helper.c
1546
fb->format->is_color_indexed);
drivers/gpu/drm/drm_fb_helper.c
964
const struct drm_format_info *format)
drivers/gpu/drm/drm_fb_helper.c
966
u8 depth = format->depth;
drivers/gpu/drm/drm_fb_helper.c
968
if (format->is_color_indexed) {
drivers/gpu/drm/drm_fbdev_dma.c
119
switch (drm_format_info_bpp(fb->format, 0)) {
drivers/gpu/drm/drm_fbdev_dma.c
133
offset += clip->x1 * fb->format->cpp[0];
drivers/gpu/drm/drm_fbdev_dma.c
134
len *= fb->format->cpp[0];
drivers/gpu/drm/drm_fbdev_dma.c
275
u32 format;
drivers/gpu/drm/drm_fbdev_dma.c
283
format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp,
drivers/gpu/drm/drm_fbdev_dma.c
286
sizes->surface_height, format);
drivers/gpu/drm/drm_fbdev_shmem.c
142
u32 format;
drivers/gpu/drm/drm_fbdev_shmem.c
150
format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp, sizes->surface_depth);
drivers/gpu/drm/drm_fbdev_shmem.c
152
sizes->surface_height, format);
drivers/gpu/drm/drm_fbdev_ttm.c
181
u32 format;
drivers/gpu/drm/drm_fbdev_ttm.c
188
format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp,
drivers/gpu/drm/drm_fbdev_ttm.c
191
sizes->surface_height, format);
drivers/gpu/drm/drm_fbdev_ttm.c
77
switch (drm_format_info_bpp(fb->format, 0)) {
drivers/gpu/drm/drm_fbdev_ttm.c
91
offset += clip->x1 * fb->format->cpp[0];
drivers/gpu/drm/drm_fbdev_ttm.c
92
len *= fb->format->cpp[0];
drivers/gpu/drm/drm_format_helper.c
1244
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/drm_format_helper.c
1253
if (drm_WARN_ON(dev, fb->format->format != DRM_FORMAT_XRGB8888))
drivers/gpu/drm/drm_format_helper.c
131
unsigned int drm_fb_clip_offset(unsigned int pitch, const struct drm_format_info *format,
drivers/gpu/drm/drm_format_helper.c
1332
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/drm_format_helper.c
134
return clip_offset(clip, pitch, format->cpp[0]);
drivers/gpu/drm/drm_format_helper.c
1341
if (drm_WARN_ON(dev, fb->format->format != DRM_FORMAT_XRGB8888))
drivers/gpu/drm/drm_format_helper.c
147
size_t sbuf_len = linepixels * fb->format->cpp[0];
drivers/gpu/drm/drm_format_helper.c
165
vaddr += clip_offset(clip, fb->pitches[0], fb->format->cpp[0]);
drivers/gpu/drm/drm_format_helper.c
191
size_t sbuf_len = linepixels * fb->format->cpp[0];
drivers/gpu/drm/drm_format_helper.c
208
vaddr += clip_offset(clip, fb->pitches[0], fb->format->cpp[0]);
drivers/gpu/drm/drm_format_helper.c
422
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/drm_format_helper.c
428
for (i = 0; i < format->num_planes; ++i) {
drivers/gpu/drm/drm_format_helper.c
429
unsigned int bpp_i = drm_format_info_bpp(format, i);
drivers/gpu/drm/drm_format_helper.c
497
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/drm_format_helper.c
498
u8 cpp = DIV_ROUND_UP(drm_format_info_bpp(format, 0), 8);
drivers/gpu/drm/drm_format_helper.c
510
&format->format);
drivers/gpu/drm/drm_fourcc.c
175
const struct drm_format_info *__drm_format_info(u32 format)
drivers/gpu/drm/drm_fourcc.c
178
{ .format = DRM_FORMAT_C1, .depth = 1, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
180
{ .format = DRM_FORMAT_C2, .depth = 2, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
182
{ .format = DRM_FORMAT_C4, .depth = 4, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
184
{ .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1, .is_color_indexed = true },
drivers/gpu/drm/drm_fourcc.c
185
{ .format = DRM_FORMAT_D1, .depth = 1, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
187
{ .format = DRM_FORMAT_D2, .depth = 2, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
189
{ .format = DRM_FORMAT_D4, .depth = 4, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
191
{ .format = DRM_FORMAT_D8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
192
{ .format = DRM_FORMAT_R1, .depth = 1, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
194
{ .format = DRM_FORMAT_R2, .depth = 2, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
196
{ .format = DRM_FORMAT_R4, .depth = 4, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
198
{ .format = DRM_FORMAT_R8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
199
{ .format = DRM_FORMAT_R10, .depth = 10, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
200
{ .format = DRM_FORMAT_R12, .depth = 12, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
201
{ .format = DRM_FORMAT_RGB332, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
202
{ .format = DRM_FORMAT_BGR233, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
203
{ .format = DRM_FORMAT_XRGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
204
{ .format = DRM_FORMAT_XBGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
205
{ .format = DRM_FORMAT_RGBX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
206
{ .format = DRM_FORMAT_BGRX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
207
{ .format = DRM_FORMAT_ARGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
208
{ .format = DRM_FORMAT_ABGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
209
{ .format = DRM_FORMAT_RGBA4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
210
{ .format = DRM_FORMAT_BGRA4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
211
{ .format = DRM_FORMAT_XRGB1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
212
{ .format = DRM_FORMAT_XBGR1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
213
{ .format = DRM_FORMAT_RGBX5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
214
{ .format = DRM_FORMAT_BGRX5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
215
{ .format = DRM_FORMAT_ARGB1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
216
{ .format = DRM_FORMAT_ABGR1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
217
{ .format = DRM_FORMAT_RGBA5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
218
{ .format = DRM_FORMAT_BGRA5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
219
{ .format = DRM_FORMAT_RGB565, .depth = 16, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
220
{ .format = DRM_FORMAT_BGR565, .depth = 16, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
222
{ .format = DRM_FORMAT_XRGB1555 | DRM_FORMAT_BIG_ENDIAN, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
223
{ .format = DRM_FORMAT_RGB565 | DRM_FORMAT_BIG_ENDIAN, .depth = 16, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
225
{ .format = DRM_FORMAT_RGB888, .depth = 24, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
226
{ .format = DRM_FORMAT_BGR888, .depth = 24, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
227
{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
228
{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
229
{ .format = DRM_FORMAT_RGBX8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
230
{ .format = DRM_FORMAT_BGRX8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
231
{ .format = DRM_FORMAT_RGB565_A8, .depth = 24, .num_planes = 2, .cpp = { 2, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
232
{ .format = DRM_FORMAT_BGR565_A8, .depth = 24, .num_planes = 2, .cpp = { 2, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
233
{ .format = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
234
{ .format = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
235
{ .format = DRM_FORMAT_RGBX1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
236
{ .format = DRM_FORMAT_BGRX1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
237
{ .format = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
238
{ .format = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
239
{ .format = DRM_FORMAT_RGBA1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
240
{ .format = DRM_FORMAT_BGRA1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
241
{ .format = DRM_FORMAT_RGB161616, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
245
{ .format = DRM_FORMAT_BGR161616, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
249
{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
250
{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
251
{ .format = DRM_FORMAT_RGBA8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
252
{ .format = DRM_FORMAT_BGRA8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
253
{ .format = DRM_FORMAT_XRGB16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
254
{ .format = DRM_FORMAT_XBGR16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
255
{ .format = DRM_FORMAT_ARGB16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
256
{ .format = DRM_FORMAT_ABGR16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
257
{ .format = DRM_FORMAT_AXBXGXRX106106106106, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
258
{ .format = DRM_FORMAT_XRGB16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
259
{ .format = DRM_FORMAT_XBGR16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1 },
drivers/gpu/drm/drm_fourcc.c
260
{ .format = DRM_FORMAT_ARGB16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
261
{ .format = DRM_FORMAT_ABGR16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
262
{ .format = DRM_FORMAT_RGB888_A8, .depth = 32, .num_planes = 2, .cpp = { 3, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
263
{ .format = DRM_FORMAT_BGR888_A8, .depth = 32, .num_planes = 2, .cpp = { 3, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
264
{ .format = DRM_FORMAT_XRGB8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
265
{ .format = DRM_FORMAT_XBGR8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
266
{ .format = DRM_FORMAT_RGBX8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
267
{ .format = DRM_FORMAT_BGRX8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },
drivers/gpu/drm/drm_fourcc.c
268
{ .format = DRM_FORMAT_YUV410, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub = 4, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
269
{ .format = DRM_FORMAT_YVU410, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub = 4, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
270
{ .format = DRM_FORMAT_YUV411, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
271
{ .format = DRM_FORMAT_YVU411, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
272
{ .format = DRM_FORMAT_YUV420, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 2, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
273
{ .format = DRM_FORMAT_YVU420, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 2, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
274
{ .format = DRM_FORMAT_YUV422, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
275
{ .format = DRM_FORMAT_YVU422, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
276
{ .format = DRM_FORMAT_YUV444, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
277
{ .format = DRM_FORMAT_YVU444, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
278
{ .format = DRM_FORMAT_NV12, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 2, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
279
{ .format = DRM_FORMAT_NV21, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 2, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
280
{ .format = DRM_FORMAT_NV16, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
281
{ .format = DRM_FORMAT_NV61, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
282
{ .format = DRM_FORMAT_NV24, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
283
{ .format = DRM_FORMAT_NV42, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
284
{ .format = DRM_FORMAT_YUYV, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
285
{ .format = DRM_FORMAT_YVYU, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
286
{ .format = DRM_FORMAT_UYVY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
287
{ .format = DRM_FORMAT_VYUY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
288
{ .format = DRM_FORMAT_XYUV8888, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
289
{ .format = DRM_FORMAT_VUY888, .depth = 0, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
290
{ .format = DRM_FORMAT_AYUV, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
291
{ .format = DRM_FORMAT_Y210, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
292
{ .format = DRM_FORMAT_Y212, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
293
{ .format = DRM_FORMAT_Y216, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 2, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
294
{ .format = DRM_FORMAT_Y410, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
295
{ .format = DRM_FORMAT_Y412, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
296
{ .format = DRM_FORMAT_Y416, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
297
{ .format = DRM_FORMAT_XVYU2101010, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
298
{ .format = DRM_FORMAT_XVYU12_16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
299
{ .format = DRM_FORMAT_XVYU16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true },
drivers/gpu/drm/drm_fourcc.c
300
{ .format = DRM_FORMAT_Y0L0, .depth = 0, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
303
{ .format = DRM_FORMAT_X0L0, .depth = 0, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
306
{ .format = DRM_FORMAT_Y0L2, .depth = 0, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
309
{ .format = DRM_FORMAT_X0L2, .depth = 0, .num_planes = 1,
drivers/gpu/drm/drm_fourcc.c
312
{ .format = DRM_FORMAT_P010, .depth = 0, .num_planes = 2,
drivers/gpu/drm/drm_fourcc.c
315
{ .format = DRM_FORMAT_P012, .depth = 0, .num_planes = 2,
drivers/gpu/drm/drm_fourcc.c
318
{ .format = DRM_FORMAT_P016, .depth = 0, .num_planes = 2,
drivers/gpu/drm/drm_fourcc.c
321
{ .format = DRM_FORMAT_P210, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
325
{ .format = DRM_FORMAT_VUY101010, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
328
{ .format = DRM_FORMAT_YUV420_8BIT, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
331
{ .format = DRM_FORMAT_YUV420_10BIT, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
334
{ .format = DRM_FORMAT_NV15, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
338
{ .format = DRM_FORMAT_NV20, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
342
{ .format = DRM_FORMAT_NV30, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
346
{ .format = DRM_FORMAT_Q410, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
350
{ .format = DRM_FORMAT_Q401, .depth = 0,
drivers/gpu/drm/drm_fourcc.c
354
{ .format = DRM_FORMAT_P030, .depth = 0, .num_planes = 2,
drivers/gpu/drm/drm_fourcc.c
357
{ .format = DRM_FORMAT_S010, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
360
{ .format = DRM_FORMAT_S210, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
363
{ .format = DRM_FORMAT_S410, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
366
{ .format = DRM_FORMAT_S012, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
369
{ .format = DRM_FORMAT_S212, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
372
{ .format = DRM_FORMAT_S412, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
375
{ .format = DRM_FORMAT_S016, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
378
{ .format = DRM_FORMAT_S216, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
381
{ .format = DRM_FORMAT_S416, .depth = 0, .num_planes = 3,
drivers/gpu/drm/drm_fourcc.c
389
if (formats[i].format == format)
drivers/gpu/drm/drm_fourcc.c
407
const struct drm_format_info *drm_format_info(u32 format)
drivers/gpu/drm/drm_fourcc.c
411
info = __drm_format_info(format);
drivers/gpu/drm/drm_framebuffer.c
1193
drm_printf_indent(p, indent, "format=%p4cc\n", &fb->format->format);
drivers/gpu/drm/drm_framebuffer.c
1198
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/drm_framebuffer.c
1200
drm_format_info_plane_width(fb->format, fb->width, i),
drivers/gpu/drm/drm_framebuffer.c
1201
drm_format_info_plane_height(fb->format, fb->height, i));
drivers/gpu/drm/drm_framebuffer.c
536
if (fb->format->num_planes > 1) {
drivers/gpu/drm/drm_framebuffer.c
548
r->depth = fb->format->depth;
drivers/gpu/drm/drm_framebuffer.c
549
r->bpp = drm_format_info_bpp(fb->format, 0);
drivers/gpu/drm/drm_framebuffer.c
603
(fb->format->num_planes > 1 || !fb->funcs->create_handle)) {
drivers/gpu/drm/drm_framebuffer.c
610
r->pixel_format = fb->format->format;
drivers/gpu/drm/drm_framebuffer.c
623
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/drm_framebuffer.c
640
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/drm_framebuffer.c
870
if (WARN_ON_ONCE(fb->dev != dev || !fb->format))
drivers/gpu/drm/drm_framebuffer.c
873
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/drm_framebuffer.c
903
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/drm_framebuffer.c
987
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/drm_gem_atomic_helper.c
162
for (i = 0; i < state->fb->format->num_planes; ++i) {
drivers/gpu/drm/drm_gem_framebuffer_helper.c
104
for (i = 0; i < fb->format->num_planes; i++)
drivers/gpu/drm/drm_gem_framebuffer_helper.c
363
for (i = 0; i < fb->format->num_planes; ++i) {
drivers/gpu/drm/drm_gem_framebuffer_helper.c
375
for (i = 0; i < fb->format->num_planes; ++i) {
drivers/gpu/drm/drm_gem_framebuffer_helper.c
408
unsigned int i = fb->format->num_planes;
drivers/gpu/drm/drm_gem_framebuffer_helper.c
466
for (i = 0; i < fb->format->num_planes; ++i) {
drivers/gpu/drm/drm_gem_framebuffer_helper.c
501
__drm_gem_fb_end_cpu_access(fb, dir, fb->format->num_planes);
drivers/gpu/drm/drm_gem_framebuffer_helper.c
511
switch (info->format) {
drivers/gpu/drm/drm_gem_vram_helper.c
605
for (i = 0; i < fb->format->num_planes; ++i) {
drivers/gpu/drm/drm_gem_vram_helper.c
648
__drm_gem_vram_plane_helper_cleanup_fb(plane, old_state, fb->format->num_planes);
drivers/gpu/drm/drm_mipi_dbi.c
220
switch (fb->format->format) {
drivers/gpu/drm/drm_mipi_dbi.c
249
&fb->format->format);
drivers/gpu/drm/drm_mipi_dbi.c
295
fb->format->format == DRM_FORMAT_XRGB8888) {
drivers/gpu/drm/drm_mipi_dbi.c
307
if (fb->format->format == DRM_FORMAT_XRGB8888)
drivers/gpu/drm/drm_mipi_dbi.c
310
dst_format = fb->format;
drivers/gpu/drm/drm_mipi_dsi.c
1209
int mipi_dsi_dcs_get_pixel_format(struct mipi_dsi_device *dsi, u8 *format)
drivers/gpu/drm/drm_mipi_dsi.c
1213
err = mipi_dsi_dcs_read(dsi, MIPI_DCS_GET_PIXEL_FORMAT, format,
drivers/gpu/drm/drm_mipi_dsi.c
1214
sizeof(*format));
drivers/gpu/drm/drm_mipi_dsi.c
1400
int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format)
drivers/gpu/drm/drm_mipi_dsi.c
1404
err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_PIXEL_FORMAT, &format,
drivers/gpu/drm/drm_mipi_dsi.c
1405
sizeof(format));
drivers/gpu/drm/drm_mipi_dsi.c
1879
u8 format)
drivers/gpu/drm/drm_mipi_dsi.c
1888
ret = mipi_dsi_dcs_set_pixel_format(dsi, format);
drivers/gpu/drm/drm_modeset_helper.c
91
fb->format = info;
drivers/gpu/drm/drm_panic.c
295
return drm_panic_blit_page(sb->pages, sb->pitch[0], sb->format->cpp[0],
drivers/gpu/drm/drm_panic.c
299
iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]);
drivers/gpu/drm/drm_panic.c
301
switch (sb->format->cpp[0]) {
drivers/gpu/drm/drm_panic.c
315
WARN_ONCE(1, "Can't blit with pixel width %d\n", sb->format->cpp[0]);
drivers/gpu/drm/drm_panic.c
384
return drm_panic_fill_page(sb->pages, sb->pitch[0], sb->format->cpp[0],
drivers/gpu/drm/drm_panic.c
388
iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]);
drivers/gpu/drm/drm_panic.c
390
switch (sb->format->cpp[0]) {
drivers/gpu/drm/drm_panic.c
404
WARN_ONCE(1, "Can't fill with pixel width %d\n", sb->format->cpp[0]);
drivers/gpu/drm/drm_panic.c
482
sb->format->format);
drivers/gpu/drm/drm_panic.c
484
sb->format->format);
drivers/gpu/drm/drm_panic.c
551
sb->format->format);
drivers/gpu/drm/drm_panic.c
553
sb->format->format);
drivers/gpu/drm/drm_panic.c
739
sb->format->format);
drivers/gpu/drm/drm_panic.c
741
sb->format->format);
drivers/gpu/drm/drm_panic.c
871
static bool drm_panic_is_format_supported(const struct drm_format_info *format)
drivers/gpu/drm/drm_panic.c
873
if (format->num_planes != 1)
drivers/gpu/drm/drm_panic.c
875
return drm_draw_can_convert_from_xrgb8888(format->format);
drivers/gpu/drm/drm_panic.c
932
if (ret || !drm_panic_is_format_supported(sb.format))
drivers/gpu/drm/drm_plane.c
1002
if (drm_plane_has_format(plane, format, modifier))
drivers/gpu/drm/drm_plane.c
1510
if (old_fb->format->format != fb->format->format) {
drivers/gpu/drm/drm_plane.c
201
u32 format,
drivers/gpu/drm/drm_plane.c
917
u32 format, u64 modifier)
drivers/gpu/drm/drm_plane.c
922
if (format == plane->format_types[i])
drivers/gpu/drm/drm_plane.c
929
if (!plane->funcs->format_mod_supported(plane, format, modifier))
drivers/gpu/drm/drm_plane.c
964
if (!drm_plane_has_format(plane, fb->format->format, fb->modifier)) {
drivers/gpu/drm/drm_plane.c
966
&fb->format->format, fb->modifier);
drivers/gpu/drm/drm_plane.c
997
u32 format, u64 modifier)
drivers/gpu/drm/drm_print.c
317
const char *format, ...)
drivers/gpu/drm/drm_print.c
322
va_start(args, format);
drivers/gpu/drm/drm_print.c
323
vaf.fmt = format;
drivers/gpu/drm/drm_print.c
333
enum drm_debug_category category, const char *format, ...)
drivers/gpu/drm/drm_print.c
342
va_start(args, format);
drivers/gpu/drm/drm_print.c
343
vaf.fmt = format;
drivers/gpu/drm/drm_print.c
352
void __drm_err(const char *format, ...)
drivers/gpu/drm/drm_print.c
357
va_start(args, format);
drivers/gpu/drm/drm_print.c
358
vaf.fmt = format;
drivers/gpu/drm/drm_simple_kms_helper.c
314
uint32_t format,
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
330
if (fb->format->has_alpha)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
338
switch (fb->format->format) {
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
362
DRM_DEV_DEBUG_KMS(ctx->dev, "cpp = %u\n", fb->format->cpp[0]);
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
409
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/exynos/exynos7_drm_decon.c
314
switch (fb->format->format) {
drivers/gpu/drm/exynos/exynos7_drm_decon.c
358
DRM_DEV_DEBUG_KMS(ctx->dev, "cpp = %d\n", fb->format->cpp[0]);
drivers/gpu/drm/exynos/exynos7_drm_decon.c
368
padding = (fb->pitches[0] / fb->format->cpp[0]) - fb->width;
drivers/gpu/drm/exynos/exynos7_drm_decon.c
411
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_dsi.c
51
dsim->format = device->format;
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
63
unsigned int size = fb->width * fb->height * fb->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
70
offset = fbi->var.xoffset * fb->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_fimc.c
470
unsigned int real_width = buf->buf.pitch[0] / buf->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_fimc.c
505
unsigned int real_width = buf->buf.pitch[0] / buf->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_fimc.c
847
unsigned int real_width = buf->buf.pitch[0] / buf->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_fimd.c
669
uint32_t pixel_format = fb->format->format;
drivers/gpu/drm/exynos/exynos_drm_fimd.c
674
if (fb->format->has_alpha)
drivers/gpu/drm/exynos/exynos_drm_fimd.c
842
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_g2d.c
1085
buf_desc->format = value & 0xf;
drivers/gpu/drm/exynos/exynos_drm_g2d.c
174
unsigned int format;
drivers/gpu/drm/exynos/exynos_drm_g2d.c
601
static unsigned long g2d_get_buf_bpp(unsigned int format)
drivers/gpu/drm/exynos/exynos_drm_g2d.c
605
switch (format) {
drivers/gpu/drm/exynos/exynos_drm_g2d.c
658
bpp = g2d_get_buf_bpp(buf_desc->format);
drivers/gpu/drm/exynos/exynos_drm_gsc.c
585
cfg |= (GSC_SRCIMG_WIDTH(buf->buf.pitch[0] / buf->format->cpp[0]) |
drivers/gpu/drm/exynos/exynos_drm_gsc.c
887
cfg |= GSC_DSTIMG_WIDTH(buf->buf.pitch[0] / buf->format->cpp[0]) |
drivers/gpu/drm/exynos/exynos_drm_ipp.c
224
const struct exynos_drm_ipp_formats *format;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
235
format = __ipp_format_get(ipp, resp->fourcc, resp->modifier,
drivers/gpu/drm/exynos/exynos_drm_ipp.c
237
if (!format)
drivers/gpu/drm/exynos/exynos_drm_ipp.c
244
if (format->num_limits && resp->limits_count >= format->num_limits)
drivers/gpu/drm/exynos/exynos_drm_ipp.c
245
if (copy_to_user((void __user *)ptr, format->limits,
drivers/gpu/drm/exynos/exynos_drm_ipp.c
246
sizeof(*format->limits) * format->num_limits))
drivers/gpu/drm/exynos/exynos_drm_ipp.c
248
resp->limits_count = format->num_limits;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
355
for (i = 0; i < buf->format->num_planes; i++) {
drivers/gpu/drm/exynos/exynos_drm_ipp.c
357
DIV_ROUND_UP(buf->buf.height, buf->format->vsub);
drivers/gpu/drm/exynos/exynos_drm_ipp.c
391
for (i = 0; i < buf->format->num_planes; i++)
drivers/gpu/drm/exynos/exynos_drm_ipp.c
483
int real_width = buf->buf.pitch[0] / buf->format->cpp[0];
drivers/gpu/drm/exynos/exynos_drm_ipp.c
572
buf->format = drm_format_info(buf->buf.fourcc);
drivers/gpu/drm/exynos/exynos_drm_ipp.c
573
for (i = 0; i < buf->format->num_planes; i++) {
drivers/gpu/drm/exynos/exynos_drm_ipp.c
575
DIV_ROUND_UP(buf->buf.width, buf->format->hsub);
drivers/gpu/drm/exynos/exynos_drm_ipp.c
578
buf->buf.pitch[i] = width * buf->format->cpp[i];
drivers/gpu/drm/exynos/exynos_drm_ipp.c
579
if (buf->buf.pitch[i] < width * buf->format->cpp[i])
drivers/gpu/drm/exynos/exynos_drm_ipp.c
586
if (buf->format->num_planes > 2 &&
drivers/gpu/drm/exynos/exynos_drm_ipp.h
74
const struct drm_format_info *format;
drivers/gpu/drm/exynos/exynos_drm_rotator.c
145
ROT_SET_BUF_SIZE_W(buf->buf.pitch[0] / buf->format->cpp[0]);
drivers/gpu/drm/exynos/exynos_drm_rotator.c
193
ROT_SET_BUF_SIZE_W(buf->buf.pitch[0] / buf->format->cpp[0]);
drivers/gpu/drm/exynos/exynos_drm_scaler.c
162
for (i = 0; i < src_buf->format->num_planes; ++i)
drivers/gpu/drm/exynos/exynos_drm_scaler.c
172
src_buf->format->cpp[0]);
drivers/gpu/drm/exynos/exynos_drm_scaler.c
174
if (src_buf->format->num_planes > 1)
drivers/gpu/drm/exynos/exynos_drm_scaler.c
225
for (i = 0; i < dst_buf->format->num_planes; ++i)
drivers/gpu/drm/exynos/exynos_drm_scaler.c
235
dst_buf->format->cpp[0]);
drivers/gpu/drm/exynos/exynos_drm_scaler.c
237
if (dst_buf->format->num_planes > 1)
drivers/gpu/drm/exynos/exynos_drm_scaler.c
320
switch (fmt->format) {
drivers/gpu/drm/exynos/exynos_drm_scaler.c
396
scaler_set_csc(scaler, task->src.format);
drivers/gpu/drm/exynos/exynos_mixer.c
526
is_nv21 = (fb->format->format == DRM_FORMAT_NV21);
drivers/gpu/drm/exynos/exynos_mixer.c
617
if (fb->format->has_alpha)
drivers/gpu/drm/exynos/exynos_mixer.c
622
switch (fb->format->format) {
drivers/gpu/drm/exynos/exynos_mixer.c
653
+ (state->src.x * fb->format->cpp[0])
drivers/gpu/drm/exynos/exynos_mixer.c
664
fb->pitches[0] / fb->format->cpp[0]);
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c
101
switch (fb->format->format) {
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c
48
switch (fb->format->format) {
drivers/gpu/drm/gma500/gma_display.c
101
if (fb->format->depth == 15)
drivers/gpu/drm/gma500/gma_display.c
89
offset = y * fb->pitches[0] + x * fb->format->cpp[0];
drivers/gpu/drm/gma500/gma_display.c
96
switch (fb->format->cpp[0] * 8) {
drivers/gpu/drm/gma500/oaktrail_crtc.c
617
offset = y * fb->pitches[0] + x * fb->format->cpp[0];
drivers/gpu/drm/gma500/oaktrail_crtc.c
624
switch (fb->format->cpp[0] * 8) {
drivers/gpu/drm/gma500/oaktrail_crtc.c
629
if (fb->format->depth == 15)
drivers/gpu/drm/gma500/psb_intel_sdvo.c
2186
struct psb_intel_sdvo_tv_format format;
drivers/gpu/drm/gma500/psb_intel_sdvo.c
2192
BUILD_BUG_ON(sizeof(format) != 6);
drivers/gpu/drm/gma500/psb_intel_sdvo.c
2195
&format, sizeof(format)))
drivers/gpu/drm/gma500/psb_intel_sdvo.c
2198
memcpy(&format_map, &format, min(sizeof(format_map), sizeof(format)));
drivers/gpu/drm/gma500/psb_intel_sdvo.c
896
struct psb_intel_sdvo_tv_format format;
drivers/gpu/drm/gma500/psb_intel_sdvo.c
900
memset(&format, 0, sizeof(format));
drivers/gpu/drm/gma500/psb_intel_sdvo.c
901
memcpy(&format, &format_map, min(sizeof(format), sizeof(format_map)));
drivers/gpu/drm/gma500/psb_intel_sdvo.c
903
BUILD_BUG_ON(sizeof(format) != 6);
drivers/gpu/drm/gma500/psb_intel_sdvo.c
906
&format, sizeof(format));
drivers/gpu/drm/gud/gud_drv.c
37
.format = GUD_DRM_FORMAT_R1,
drivers/gpu/drm/gud/gud_drv.c
47
.format = GUD_DRM_FORMAT_XRGB1111,
drivers/gpu/drm/gud/gud_drv.c
525
u32 format;
drivers/gpu/drm/gud/gud_drv.c
527
format = gud_to_fourcc(formats_dev[i]);
drivers/gpu/drm/gud/gud_drv.c
528
if (!format) {
drivers/gpu/drm/gud/gud_drv.c
533
if (format == GUD_DRM_FORMAT_R1)
drivers/gpu/drm/gud/gud_drv.c
535
else if (format == GUD_DRM_FORMAT_XRGB1111)
drivers/gpu/drm/gud/gud_drv.c
538
info = drm_format_info(format);
drivers/gpu/drm/gud/gud_drv.c
540
switch (format) {
drivers/gpu/drm/gud/gud_drv.c
567
if (format == GUD_DRM_FORMAT_R1 || format == GUD_DRM_FORMAT_XRGB1111)
drivers/gpu/drm/gud/gud_drv.c
570
formats[num_formats++] = format;
drivers/gpu/drm/gud/gud_internal.h
105
static inline u32 gud_to_fourcc(u8 format)
drivers/gpu/drm/gud/gud_internal.h
107
switch (format) {
drivers/gpu/drm/gud/gud_pipe.c
101
static size_t gud_xrgb8888_to_color(u8 *dst, const struct drm_format_info *format,
drivers/gpu/drm/gud/gud_pipe.c
105
unsigned int block_width = drm_format_info_block_width(format, 0);
drivers/gpu/drm/gud/gud_pipe.c
116
len = drm_format_info_min_pitch(format, 0, width) * drm_rect_height(rect);
drivers/gpu/drm/gud/gud_pipe.c
136
switch (format->format) {
drivers/gpu/drm/gud/gud_pipe.c
154
const struct drm_format_info *format, struct drm_rect *rect,
drivers/gpu/drm/gud/gud_pipe.c
163
pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(rect));
drivers/gpu/drm/gud/gud_pipe.c
180
if (format != fb->format) {
drivers/gpu/drm/gud/gud_pipe.c
181
if (format->format == GUD_DRM_FORMAT_R1) {
drivers/gpu/drm/gud/gud_pipe.c
182
len = gud_xrgb8888_to_r124(buf, format, vaddr, fb, rect, fmtcnv_state);
drivers/gpu/drm/gud/gud_pipe.c
185
} else if (format->format == DRM_FORMAT_R8) {
drivers/gpu/drm/gud/gud_pipe.c
187
} else if (format->format == DRM_FORMAT_RGB332) {
drivers/gpu/drm/gud/gud_pipe.c
189
} else if (format->format == DRM_FORMAT_RGB565) {
drivers/gpu/drm/gud/gud_pipe.c
197
} else if (format->format == DRM_FORMAT_RGB888) {
drivers/gpu/drm/gud/gud_pipe.c
200
len = gud_xrgb8888_to_color(buf, format, vaddr, fb, rect);
drivers/gpu/drm/gud/gud_pipe.c
202
} else if (gud_is_big_endian() && format->cpp[0] > 1) {
drivers/gpu/drm/gud/gud_pipe.c
275
const struct drm_format_info *format, struct drm_rect *rect,
drivers/gpu/drm/gud/gud_pipe.c
284
ret = gud_prep_flush(gdrm, fb, src, cached_reads, format, rect, &req, fmtcnv_state);
drivers/gpu/drm/gud/gud_pipe.c
329
const struct drm_format_info *format;
drivers/gpu/drm/gud/gud_pipe.c
334
format = fb->format;
drivers/gpu/drm/gud/gud_pipe.c
335
if (format->format == DRM_FORMAT_XRGB8888 && gdrm->xrgb8888_emulation_format)
drivers/gpu/drm/gud/gud_pipe.c
336
format = gdrm->xrgb8888_emulation_format;
drivers/gpu/drm/gud/gud_pipe.c
339
pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(damage));
drivers/gpu/drm/gud/gud_pipe.c
351
ret = gud_flush_rect(gdrm, fb, src, cached_reads, format, &rect, &fmtcnv_state);
drivers/gpu/drm/gud/gud_pipe.c
411
iosys_map_incr(&shadow_map, drm_fb_clip_offset(fb->pitches[0], fb->format, damage));
drivers/gpu/drm/gud/gud_pipe.c
465
const struct drm_format_info *format;
drivers/gpu/drm/gud/gud_pipe.c
489
format = fb->format;
drivers/gpu/drm/gud/gud_pipe.c
491
if (old_fb && old_fb->format != format)
drivers/gpu/drm/gud/gud_pipe.c
501
if (format->format == DRM_FORMAT_XRGB8888 && gdrm->xrgb8888_emulation_format)
drivers/gpu/drm/gud/gud_pipe.c
502
format = gdrm->xrgb8888_emulation_format;
drivers/gpu/drm/gud/gud_pipe.c
51
static size_t gud_xrgb8888_to_r124(u8 *dst, const struct drm_format_info *format,
drivers/gpu/drm/gud/gud_pipe.c
537
req->format = gud_from_fourcc(format->format);
drivers/gpu/drm/gud/gud_pipe.c
538
if (drm_WARN_ON_ONCE(plane->dev, !req->format)) {
drivers/gpu/drm/gud/gud_pipe.c
56
unsigned int block_width = drm_format_info_block_width(format, 0);
drivers/gpu/drm/gud/gud_pipe.c
64
drm_WARN_ON_ONCE(fb->dev, format->char_per_block[0] != 1);
drivers/gpu/drm/gud/gud_pipe.c
70
len = drm_format_info_min_pitch(format, 0, width) * height;
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c
123
reg = new_state->fb->width * (new_state->fb->format->cpp[0]);
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c
134
new_state->fb->format->cpp[0] * 8 / 16);
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
289
static u32 dsi_get_dpi_color_coding(enum mipi_dsi_pixel_format format)
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
296
switch (format) {
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
450
enum mipi_dsi_pixel_format format)
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
461
val = dsi_get_dpi_color_coding(format);
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
542
u32 bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
559
dsi_set_mode_timing(base, phy->lane_byte_clk_kHz, mode, dsi->format);
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
614
u32 bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
737
dsi->format = mdsi->format;
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
92
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
562
&fb->format->format);
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
629
static bool has_Alpha_channel(int format)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
631
switch (format) {
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
718
u32 fmt = ade_get_format(fb->format->format);
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
782
fmt = ade_get_format(fb->format->format);
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
200
sb->format = plane->state->fb->format;
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
39
iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, rect));
drivers/gpu/drm/i915/display/i9xx_plane.c
1125
static int i9xx_format_to_fourcc(int format)
drivers/gpu/drm/i915/display/i9xx_plane.c
1127
switch (format) {
drivers/gpu/drm/i915/display/i9xx_plane.c
1204
fb->format = drm_get_format_info(display->drm, fourcc, fb->modifier);
drivers/gpu/drm/i915/display/i9xx_plane.c
1241
fb->width, fb->height, fb->format->cpp[0] * 8,
drivers/gpu/drm/i915/display/i9xx_plane.c
170
switch (fb->format->format) {
drivers/gpu/drm/i915/display/i9xx_plane.c
211
MISSING_CASE(fb->format->format);
drivers/gpu/drm/i915/display/i9xx_plane.c
249
if (HAS_GMCH(display) && fb->format->cpp[0] == 8 && src_w > 2048) {
drivers/gpu/drm/i915/display/i9xx_plane.c
277
int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_plane.c
397
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_plane.c
73
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/i9xx_plane.c
78
switch (format) {
drivers/gpu/drm/i915/display/i9xx_plane.c
821
if (intel_plane_can_async_flip(plane, fb->format, fb->modifier))
drivers/gpu/drm/i915/display/i9xx_plane.c
845
if (intel_plane_can_async_flip(plane, fb->format, fb->modifier))
drivers/gpu/drm/i915/display/i9xx_plane.c
91
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/i9xx_plane.c
96
switch (format) {
drivers/gpu/drm/i915/display/i9xx_wm.c
1527
cpp = plane_state->hw.fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2152
int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2255
cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2282
cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2331
cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2459
cpp = plane_state->hw.fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2491
cpp = plane_state->hw.fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2517
cpp = plane_state->hw.fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
2535
cpp = plane_state->hw.fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
673
int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/i9xx_wm.c
985
cpp = plane_state->hw.fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
107
const char *intel_output_format_name(enum intel_output_format format)
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
109
if (format >= ARRAY_SIZE(output_format_str))
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
111
return output_format_str[format];
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
129
fb->base.id, fb->width, fb->height, &fb->format->format,
drivers/gpu/drm/i915/display/intel_crtc_state_dump.h
16
const char *intel_output_format_name(enum intel_output_format format);
drivers/gpu/drm/i915/display/intel_cursor.c
127
offset += (src_h * src_w - 1) * fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_cursor.c
501
drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) {
drivers/gpu/drm/i915/display/intel_cursor.c
780
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/intel_cursor.c
785
return format == DRM_FORMAT_ARGB8888;
drivers/gpu/drm/i915/display/intel_display.c
4887
const char *name, const char *format, ...)
drivers/gpu/drm/i915/display/intel_display.c
4892
va_start(args, format);
drivers/gpu/drm/i915/display/intel_display.c
4893
vaf.fmt = format;
drivers/gpu/drm/i915/display/intel_display.c
6131
if (!intel_plane_can_async_flip(plane, new_plane_state->hw.fb->format,
drivers/gpu/drm/i915/display/intel_display.c
6136
&new_plane_state->hw.fb->format->format,
drivers/gpu/drm/i915/display/intel_display.c
6164
if (old_plane_state->hw.fb->format !=
drivers/gpu/drm/i915/display/intel_display.c
6165
new_plane_state->hw.fb->format) {
drivers/gpu/drm/i915/display/intel_display.h
553
#define INTEL_DISPLAY_STATE_WARN(__display, condition, format...) ({ \
drivers/gpu/drm/i915/display/intel_display.h
556
if (!drm_WARN((__display)->drm, (__display)->params.verbose_state_checks, format)) \
drivers/gpu/drm/i915/display/intel_display.h
557
drm_err((__display)->drm, format); \
drivers/gpu/drm/i915/display/intel_display_debugfs.c
126
fbdev_fb->base.format->depth,
drivers/gpu/drm/i915/display/intel_display_debugfs.c
127
fbdev_fb->base.format->cpp[0] * 8,
drivers/gpu/drm/i915/display/intel_display_debugfs.c
143
fb->base.format->depth,
drivers/gpu/drm/i915/display/intel_display_debugfs.c
144
fb->base.format->cpp[0] * 8,
drivers/gpu/drm/i915/display/intel_display_debugfs.c
359
&fb->format->format, fb->modifier, fb->width,
drivers/gpu/drm/i915/display/intel_display_debugfs.c
388
fb->base.id, &fb->format->format,
drivers/gpu/drm/i915/display/intel_display_trace.h
419
__field(u32, format)
drivers/gpu/drm/i915/display/intel_display_trace.h
431
__entry->format = plane_state->hw.fb->format->format;
drivers/gpu/drm/i915/display/intel_display_trace.h
438
__entry->frame, __entry->scanline, &__entry->format,
drivers/gpu/drm/i915/display/intel_display_trace.h
452
__field(u32, format)
drivers/gpu/drm/i915/display/intel_display_trace.h
464
__entry->format = plane_state->hw.fb->format->format;
drivers/gpu/drm/i915/display/intel_display_trace.h
471
__entry->frame, __entry->scanline, &__entry->format,
drivers/gpu/drm/i915/display/intel_dp.c
1071
enum intel_output_format format)
drivers/gpu/drm/i915/display/intel_dp.c
1075
switch (format) {
drivers/gpu/drm/i915/display/intel_dp.c
1092
MISSING_CASE(format);
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
744
static enum mipi_dsi_pixel_format vbt_to_dsi_pixel_format(unsigned int format)
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
746
switch (format) {
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
756
MISSING_CASE(format);
drivers/gpu/drm/i915/display/intel_fb.c
1019
unsigned int cpp = fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
102
{ .format = DRM_FORMAT_ABGR16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
105
{ .format = DRM_FORMAT_YUYV, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
108
{ .format = DRM_FORMAT_YVYU, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
1085
unsigned int cpp = fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
111
{ .format = DRM_FORMAT_UYVY, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
114
{ .format = DRM_FORMAT_VYUY, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
1167
height = drm_format_info_plane_height(fb->format, fb->height, color_plane);
drivers/gpu/drm/i915/display/intel_fb.c
117
{ .format = DRM_FORMAT_XYUV8888, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
120
{ .format = DRM_FORMAT_NV12, .num_planes = 4,
drivers/gpu/drm/i915/display/intel_fb.c
123
{ .format = DRM_FORMAT_P010, .num_planes = 4,
drivers/gpu/drm/i915/display/intel_fb.c
126
{ .format = DRM_FORMAT_P012, .num_planes = 4,
drivers/gpu/drm/i915/display/intel_fb.c
1270
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/i915/display/intel_fb.c
129
{ .format = DRM_FORMAT_P016, .num_planes = 4,
drivers/gpu/drm/i915/display/intel_fb.c
1329
max_stride = plane->max_stride(plane, fb->base.format,
drivers/gpu/drm/i915/display/intel_fb.c
1364
(*x + plane_width) * fb->base.format->cpp[color_plane] > fb->base.pitches[color_plane]) {
drivers/gpu/drm/i915/display/intel_fb.c
139
{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
1408
dims->tile_width * fb->base.format->cpp[color_plane]);
drivers/gpu/drm/i915/display/intel_fb.c
142
{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
1440
return stride_tiles * tile_width * fb->base.format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
145
{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
1468
x * fb->base.format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
148
{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
151
{ .format = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
154
{ .format = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
157
{ .format = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
1580
fb->base.format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
1597
fb->base.format->cpp[color_plane],
drivers/gpu/drm/i915/display/intel_fb.c
160
{ .format = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
163
{ .format = DRM_FORMAT_XRGB16161616F, .depth = 0, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
166
{ .format = DRM_FORMAT_XBGR16161616F, .depth = 0, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
1667
if (!drm_plane_has_format(&plane->base, fb->format->format, fb->modifier))
drivers/gpu/drm/i915/display/intel_fb.c
169
{ .format = DRM_FORMAT_ARGB16161616F, .depth = 0, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
1691
if (!drm_plane_has_format(&plane->base, fb->format->format, fb->modifier))
drivers/gpu/drm/i915/display/intel_fb.c
1706
int i, num_planes = fb->base.format->num_planes;
drivers/gpu/drm/i915/display/intel_fb.c
172
{ .format = DRM_FORMAT_ABGR16161616F, .depth = 0, .num_planes = 3,
drivers/gpu/drm/i915/display/intel_fb.c
178
{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
181
{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
1813
for (color_plane = 0; color_plane < fb->format->num_planes; color_plane++) {
drivers/gpu/drm/i915/display/intel_fb.c
1839
int i, num_planes = fb->format->num_planes;
drivers/gpu/drm/i915/display/intel_fb.c
184
{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
1866
unsigned int hsub = i ? fb->format->hsub : 1;
drivers/gpu/drm/i915/display/intel_fb.c
1867
unsigned int vsub = i ? fb->format->vsub : 1;
drivers/gpu/drm/i915/display/intel_fb.c
187
{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
190
{ .format = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
193
{ .format = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
1953
unsigned int cpp = fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
196
{ .format = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
199
{ .format = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
2001
fb->format,
drivers/gpu/drm/i915/display/intel_fb.c
202
{ .format = DRM_FORMAT_XRGB16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
205
{ .format = DRM_FORMAT_XBGR16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
2059
max_stride = plane->max_stride(plane, fb->format,
drivers/gpu/drm/i915/display/intel_fb.c
208
{ .format = DRM_FORMAT_ARGB16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
211
{ .format = DRM_FORMAT_ABGR16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
2269
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/i915/display/intel_fb.c
386
int num_formats, u32 format)
drivers/gpu/drm/i915/display/intel_fb.c
391
if (formats[i].format == format)
drivers/gpu/drm/i915/display/intel_fb.c
43
{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
45
{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
47
{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
49
{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
51
{ .format = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
53
{ .format = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
55
{ .format = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
57
{ .format = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
656
const struct drm_format_info *format)
drivers/gpu/drm/i915/display/intel_fb.c
658
if (format_is_yuv_semiplanar(md, format))
drivers/gpu/drm/i915/display/intel_fb.c
676
return ccs_aux_plane_mask(md, fb->format) & BIT(color_plane);
drivers/gpu/drm/i915/display/intel_fb.c
69
{ .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
692
ccs_aux_plane_mask(md, fb->format) & BIT(color_plane);
drivers/gpu/drm/i915/display/intel_fb.c
72
{ .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
730
(main_plane && main_plane >= fb->format->num_planes / 2));
drivers/gpu/drm/i915/display/intel_fb.c
732
return fb->format->num_planes / 2 + main_plane;
drivers/gpu/drm/i915/display/intel_fb.c
738
ccs_plane < fb->format->num_planes / 2);
drivers/gpu/drm/i915/display/intel_fb.c
743
return ccs_plane - fb->format->num_planes / 2;
drivers/gpu/drm/i915/display/intel_fb.c
75
{ .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
763
format_is_yuv_semiplanar(md, fb->format))
drivers/gpu/drm/i915/display/intel_fb.c
778
unsigned int cpp = fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
78
{ .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
81
{ .format = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
84
{ .format = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
860
unsigned int cpp = fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_fb.c
87
{ .format = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
90
{ .format = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
93
{ .format = DRM_FORMAT_XRGB16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
930
*hsub = fb->format->hsub;
drivers/gpu/drm/i915/display/intel_fb.c
931
*vsub = fb->format->vsub;
drivers/gpu/drm/i915/display/intel_fb.c
937
*hsub = drm_format_info_block_width(fb->format, color_plane) /
drivers/gpu/drm/i915/display/intel_fb.c
938
drm_format_info_block_width(fb->format, main_plane);
drivers/gpu/drm/i915/display/intel_fb.c
949
*hsub *= fb->format->hsub;
drivers/gpu/drm/i915/display/intel_fb.c
96
{ .format = DRM_FORMAT_XBGR16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fb.c
99
{ .format = DRM_FORMAT_ARGB16161616F, .depth = 0, .num_planes = 2,
drivers/gpu/drm/i915/display/intel_fbc.c
1075
fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_fbc.c
1084
fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_fbc.c
1098
fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_fbc.c
1133
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_fbc.c
1153
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_fbc.c
1171
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_fbc.c
1188
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_fbc.c
1207
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_fbc.c
1258
if (fb->format->format == DRM_FORMAT_RGB565 &&
drivers/gpu/drm/i915/display/intel_fbc.c
151
stride /= fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_fbc.c
159
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_fbc.c
1697
fb->format->has_alpha) {
drivers/gpu/drm/i915/display/intel_fbc.c
1783
if (old_fb->format->format != new_fb->format->format)
drivers/gpu/drm/i915/display/intel_fbc.c
842
return plane_state->hw.fb->format->cpp[0] == 2 ? 2 : 1;
drivers/gpu/drm/i915/display/intel_fbdev.c
444
cur_size = cur_size * fb->base.format->cpp[0];
drivers/gpu/drm/i915/display/intel_fbdev.c
462
fb->base.format->cpp[0] * 8,
drivers/gpu/drm/i915/display/intel_fbdev.c
547
preferred_bpp = intel_fbdev_color_mode(ifbdev->fb->base.format);
drivers/gpu/drm/i915/display/intel_overlay.c
511
static int packed_depth_bytes(u32 format)
drivers/gpu/drm/i915/display/intel_overlay.c
513
switch (format & I915_OVERLAY_DEPTH_MASK) {
drivers/gpu/drm/i915/display/intel_overlay.c
523
static int packed_width_bytes(u32 format, short width)
drivers/gpu/drm/i915/display/intel_overlay.c
525
switch (format & I915_OVERLAY_DEPTH_MASK) {
drivers/gpu/drm/i915/display/intel_overlay.c
533
static int uv_hsubsampling(u32 format)
drivers/gpu/drm/i915/display/intel_overlay.c
535
switch (format & I915_OVERLAY_DEPTH_MASK) {
drivers/gpu/drm/i915/display/intel_overlay.c
547
static int uv_vsubsampling(u32 format)
drivers/gpu/drm/i915/display/intel_overlay.c
549
switch (format & I915_OVERLAY_DEPTH_MASK) {
drivers/gpu/drm/i915/display/intel_overlay.c
689
u32 format = 0;
drivers/gpu/drm/i915/display/intel_overlay.c
696
format = state->hw.fb->format->format;
drivers/gpu/drm/i915/display/intel_overlay.c
698
switch (format) {
drivers/gpu/drm/i915/display/intel_plane.c
1101
if (fb->format->format == DRM_FORMAT_RGB565 && rotated) {
drivers/gpu/drm/i915/display/intel_plane.c
1105
intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier)) {
drivers/gpu/drm/i915/display/intel_plane.c
1123
hsub = fb->format->hsub;
drivers/gpu/drm/i915/display/intel_plane.c
1124
vsub = fb->format->vsub;
drivers/gpu/drm/i915/display/intel_plane.c
1425
if (fb->base.format->cpp[0] != 4)
drivers/gpu/drm/i915/display/intel_plane.c
1441
sb->format = drm_format_info(fb->base.format->format);
drivers/gpu/drm/i915/display/intel_plane.c
186
info->format == DRM_FORMAT_C8)
drivers/gpu/drm/i915/display/intel_plane.c
193
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/intel_plane.c
198
if (!plane->base.funcs->format_mod_supported(&plane->base, format, modifier))
drivers/gpu/drm/i915/display/intel_plane.c
201
info = drm_get_format_info(plane->base.dev, format, modifier);
drivers/gpu/drm/i915/display/intel_plane.c
255
fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/intel_plane.c
290
fb->format->cpp[color_plane]);
drivers/gpu/drm/i915/display/intel_plane.c
714
intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier))
drivers/gpu/drm/i915/display/intel_plane.c
718
fb->format->format == DRM_FORMAT_C8)
drivers/gpu/drm/i915/display/intel_plane.c
725
intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier)) {
drivers/gpu/drm/i915/display/intel_plane.h
90
u32 format,
drivers/gpu/drm/i915/display/intel_sdvo.c
1220
struct intel_sdvo_tv_format format;
drivers/gpu/drm/i915/display/intel_sdvo.c
1224
memset(&format, 0, sizeof(format));
drivers/gpu/drm/i915/display/intel_sdvo.c
1225
memcpy(&format, &format_map, min(sizeof(format), sizeof(format_map)));
drivers/gpu/drm/i915/display/intel_sdvo.c
1227
BUILD_BUG_ON(sizeof(format) != 6);
drivers/gpu/drm/i915/display/intel_sdvo.c
1230
&format, sizeof(format));
drivers/gpu/drm/i915/display/intel_sdvo.c
3072
struct intel_sdvo_tv_format format;
drivers/gpu/drm/i915/display/intel_sdvo.c
3078
BUILD_BUG_ON(sizeof(format) != 6);
drivers/gpu/drm/i915/display/intel_sdvo.c
3081
&format, sizeof(format)))
drivers/gpu/drm/i915/display/intel_sdvo.c
3084
memcpy(&format_map, &format, min(sizeof(format_map), sizeof(format)));
drivers/gpu/drm/i915/display/intel_sprite.c
101
if (!fb->format->is_yuv)
drivers/gpu/drm/i915/display/intel_sprite.c
1022
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_sprite.c
1054
MISSING_CASE(fb->format->format);
drivers/gpu/drm/i915/display/intel_sprite.c
1088
if (!fb->format->is_yuv)
drivers/gpu/drm/i915/display/intel_sprite.c
1118
if (!fb->format->is_yuv)
drivers/gpu/drm/i915/display/intel_sprite.c
1258
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_sprite.c
1282
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_sprite.c
1487
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/intel_sprite.c
149
if (fb->format->is_yuv &&
drivers/gpu/drm/i915/display/intel_sprite.c
1492
switch (format) {
drivers/gpu/drm/i915/display/intel_sprite.c
1508
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/intel_sprite.c
1513
switch (format) {
drivers/gpu/drm/i915/display/intel_sprite.c
1534
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/intel_sprite.c
1539
switch (format) {
drivers/gpu/drm/i915/display/intel_sprite.c
185
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_sprite.c
276
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_sprite.c
320
MISSING_CASE(fb->format->format);
drivers/gpu/drm/i915/display/intel_sprite.c
353
if (!fb->format->is_yuv)
drivers/gpu/drm/i915/display/intel_sprite.c
488
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_sprite.c
524
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_sprite.c
602
unsigned int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/intel_sprite.c
658
return fb->format->cpp[0] == 8 &&
drivers/gpu/drm/i915/display/intel_sprite.c
675
switch (fb->format->format) {
drivers/gpu/drm/i915/display/intel_sprite.c
707
MISSING_CASE(fb->format->format);
drivers/gpu/drm/i915/display/intel_sprite.c
946
if (!fb->format->is_yuv)
drivers/gpu/drm/i915/display/intel_tv.c
953
int format = conn_state->tv.legacy_mode;
drivers/gpu/drm/i915/display/intel_tv.c
955
return &tv_modes[format];
drivers/gpu/drm/i915/display/skl_scaler.c
159
const struct drm_format_info *format,
drivers/gpu/drm/i915/display/skl_scaler.c
221
skl_scaler_min_src_size(format, modifier, &min_src_w, &min_src_h);
drivers/gpu/drm/i915/display/skl_scaler.c
311
fb && intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier))
drivers/gpu/drm/i915/display/skl_scaler.c
321
fb ? fb->format : NULL,
drivers/gpu/drm/i915/display/skl_scaler.c
408
plane_state->hw.fb->format->is_yuv &&
drivers/gpu/drm/i915/display/skl_scaler.c
409
plane_state->hw.fb->format->num_planes > 1) {
drivers/gpu/drm/i915/display/skl_scaler.c
453
intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier),
drivers/gpu/drm/i915/display/skl_scaler.c
85
static void skl_scaler_min_src_size(const struct drm_format_info *format,
drivers/gpu/drm/i915/display/skl_scaler.c
88
if (format && intel_format_info_is_yuv_semiplanar(format, modifier)) {
drivers/gpu/drm/i915/display/skl_scaler.c
890
if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier) &&
drivers/gpu/drm/i915/display/skl_universal_plane.c
1022
if (!plane_state->hw.fb->format->has_alpha)
drivers/gpu/drm/i915/display/skl_universal_plane.c
1040
if (!plane_state->hw.fb->format->has_alpha)
drivers/gpu/drm/i915/display/skl_universal_plane.c
1149
if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier)) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1150
switch (fb->format->cpp[0]) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1157
switch (fb->format->cpp[0]) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1206
plane_ctl |= skl_plane_ctl_format(fb->format->format);
drivers/gpu/drm/i915/display/skl_universal_plane.c
1253
if (fb->format->is_yuv && !icl_is_hdr_plane(display, plane->id)) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1268
} else if (fb->format->is_yuv) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1614
if (fb->format->is_yuv && icl_is_hdr_plane(display, plane_id))
drivers/gpu/drm/i915/display/skl_universal_plane.c
173
int skl_format_to_fourcc(int format, bool rgb_order, bool alpha)
drivers/gpu/drm/i915/display/skl_universal_plane.c
1735
static bool intel_format_is_p01x(u32 format)
drivers/gpu/drm/i915/display/skl_universal_plane.c
1737
switch (format) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
175
switch (format) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1799
switch (fb->format->format) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1816
plane->base.base.id, plane->base.name, &fb->format->format);
drivers/gpu/drm/i915/display/skl_universal_plane.c
1836
intel_format_is_p01x(fb->format->format)) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
1887
if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier) &&
drivers/gpu/drm/i915/display/skl_universal_plane.c
1910
!intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier))
drivers/gpu/drm/i915/display/skl_universal_plane.c
2036
int cpp = fb->format->cpp[0];
drivers/gpu/drm/i915/display/skl_universal_plane.c
2212
for (ccs_plane = 0; ccs_plane < fb->format->num_planes; ccs_plane++) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
2265
if (intel_format_info_is_yuv_semiplanar(fb->format,
drivers/gpu/drm/i915/display/skl_universal_plane.c
2288
switch (fb->format->format) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
2414
if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier) &&
drivers/gpu/drm/i915/display/skl_universal_plane.c
2531
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/skl_universal_plane.c
2538
switch (format) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
2585
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/skl_universal_plane.c
2592
switch (format) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
2639
u32 format, u64 modifier)
drivers/gpu/drm/i915/display/skl_universal_plane.c
2646
switch (format) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
281
if (fb->format->cpp[0] == 8) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
308
if (fb->format->cpp[0] == 8) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
3150
fb->format = drm_get_format_info(display->drm, fourcc, fb->modifier);
drivers/gpu/drm/i915/display/skl_universal_plane.c
3207
fb->width, fb->height, fb->format->cpp[0] * 8,
drivers/gpu/drm/i915/display/skl_universal_plane.c
332
int cpp = fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/skl_universal_plane.c
370
int cpp = fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/skl_universal_plane.c
398
return 16 / fb->format->cpp[color_plane];
drivers/gpu/drm/i915/display/skl_universal_plane.c
406
return 16 / fb->format->cpp[color_plane] + 2;
drivers/gpu/drm/i915/display/skl_universal_plane.c
413
if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier))
drivers/gpu/drm/i915/display/skl_universal_plane.c
423
if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier))
drivers/gpu/drm/i915/display/skl_universal_plane.c
599
intel_plane_can_async_flip(plane, fb->format, fb->modifier))
drivers/gpu/drm/i915/display/skl_universal_plane.c
773
if (color_plane >= fb->format->num_planes)
drivers/gpu/drm/i915/display/skl_universal_plane.h
30
int skl_format_to_fourcc(int format, bool rgb_order, bool alpha);
drivers/gpu/drm/i915/display/skl_watermark.c
1658
int width, const struct drm_format_info *format,
drivers/gpu/drm/i915/display/skl_watermark.c
1668
!intel_format_info_is_yuv_semiplanar(format, modifier)) {
drivers/gpu/drm/i915/display/skl_watermark.c
1678
wp->is_planar = intel_format_info_is_yuv_semiplanar(format, modifier);
drivers/gpu/drm/i915/display/skl_watermark.c
1684
wp->cpp = format->cpp[color_plane];
drivers/gpu/drm/i915/display/skl_watermark.c
1762
fb->format, fb->modifier,
drivers/gpu/drm/i915/display/skl_watermark.c
2108
if (fb->format->is_yuv && fb->format->num_planes > 1) {
drivers/gpu/drm/i915/display/skl_watermark.c
2138
drm_WARN_ON(display->drm, !fb->format->is_yuv ||
drivers/gpu/drm/i915/display/skl_watermark.c
2139
fb->format->num_planes == 1);
drivers/gpu/drm/i915/display/skl_watermark.c
2171
u32 format;
drivers/gpu/drm/i915/display/skl_watermark.c
2177
format = DRM_FORMAT_XBGR16161616F;
drivers/gpu/drm/i915/display/skl_watermark.c
2183
info = drm_get_format_info(display->drm, format, modifier);
drivers/gpu/drm/i915/display/skl_watermark.c
597
int width, const struct drm_format_info *format,
drivers/gpu/drm/i915/display/skl_watermark.c
644
u32 format;
drivers/gpu/drm/i915/display/skl_watermark.c
647
format = DRM_FORMAT_ARGB8888;
drivers/gpu/drm/i915/display/skl_watermark.c
650
info = drm_get_format_info(display->drm, format, modifier);
drivers/gpu/drm/i915/gem/i915_gem_create.c
175
u32 format;
drivers/gpu/drm/i915/gem/i915_gem_create.c
179
format = DRM_FORMAT_C8;
drivers/gpu/drm/i915/gem/i915_gem_create.c
182
format = DRM_FORMAT_RGB565;
drivers/gpu/drm/i915/gem/i915_gem_create.c
185
format = DRM_FORMAT_XRGB8888;
drivers/gpu/drm/i915/gem/i915_gem_create.c
195
if (args->pitch > intel_dumb_fb_max_stride(dev, format,
drivers/gpu/drm/i915/gem/i915_gem_pages.c
420
offset = y * sb->pitch[0] + x * sb->format->cpp[0];
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
1286
u32 format = FIELD_GET(GUC_CTB_MSG_0_FORMAT, msg->msg[0]);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
1289
if (format == GUC_CTB_FORMAT_HXG)
drivers/gpu/drm/i915/gvt/fb_decoder.c
121
static int skl_format_to_drm(int format, bool rgb_order, bool alpha,
drivers/gpu/drm/i915/gvt/fb_decoder.c
126
switch (format) {
drivers/gpu/drm/i915/gvt/fb_decoder.c
90
static int bdw_format_to_drm(int format)
drivers/gpu/drm/i915/gvt/fb_decoder.c
94
switch (format) {
drivers/gpu/drm/i915/i915_initial_plane.c
234
mode_cmd.pixel_format = fb->format->format;
drivers/gpu/drm/i915/i915_initial_plane.c
243
fb->format, &mode_cmd)) {
drivers/gpu/drm/i915/i915_perf.c
1044
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
2615
u32 format = stream->oa_buffer.format->format;
drivers/gpu/drm/i915/i915_perf.c
2632
(format << GEN12_OAR_OACONTROL_COUNTER_FORMAT_SHIFT) |
drivers/gpu/drm/i915/i915_perf.c
2978
u32 report_format = stream->oa_buffer.format->format;
drivers/gpu/drm/i915/i915_perf.c
3004
u32 report_format = stream->oa_buffer.format->format;
drivers/gpu/drm/i915/i915_perf.c
3042
val = (stream->oa_buffer.format->format << regs->oa_ctrl_counter_format_shift) |
drivers/gpu/drm/i915/i915_perf.c
3294
stream->oa_buffer.format = &perf->oa_formats[props->oa_format];
drivers/gpu/drm/i915/i915_perf.c
3295
if (drm_WARN_ON(&i915->drm, stream->oa_buffer.format->size == 0))
drivers/gpu/drm/i915/i915_perf.c
3299
stream->sample_size += stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
3940
oa_format_valid(struct i915_perf *perf, enum drm_i915_oa_format format)
drivers/gpu/drm/i915/i915_perf.c
3942
return test_bit(format, perf->format_mask);
drivers/gpu/drm/i915/i915_perf.c
3946
oa_format_add(struct i915_perf *perf, enum drm_i915_oa_format format)
drivers/gpu/drm/i915/i915_perf.c
3948
__set_bit(format, perf->format_mask);
drivers/gpu/drm/i915/i915_perf.c
461
((__s)->oa_buffer.format->header == HDR_64_BIT)
drivers/gpu/drm/i915/i915_perf.c
546
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
670
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
734
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf_types.h
287
const struct i915_oa_format *format;
drivers/gpu/drm/i915/i915_perf_types.h
66
u32 format;
drivers/gpu/drm/imx/dc/dc-fl.c
59
const struct drm_format_info *format)
drivers/gpu/drm/imx/dc/dc-fl.c
63
dc_fu_set_src_bpp(fu, frac, format->cpp[0] * 8);
drivers/gpu/drm/imx/dc/dc-fl.c
69
dc_fu_get_pixel_format_bits(fu, format->format, &bits);
drivers/gpu/drm/imx/dc/dc-fl.c
70
dc_fu_get_pixel_format_shifts(fu, format->format, &shifts);
drivers/gpu/drm/imx/dc/dc-fu.c
71
void dc_fu_get_pixel_format_bits(struct dc_fu *fu, u32 format, u32 *bits)
drivers/gpu/drm/imx/dc/dc-fu.c
76
if (pixel_formats[i].pixel_format == format) {
drivers/gpu/drm/imx/dc/dc-fu.c
84
dc_fu_get_pixel_format_shifts(struct dc_fu *fu, u32 format, u32 *shifts)
drivers/gpu/drm/imx/dc/dc-fu.c
89
if (pixel_formats[i].pixel_format == format) {
drivers/gpu/drm/imx/dc/dc-fu.h
121
void dc_fu_get_pixel_format_bits(struct dc_fu *fu, u32 format, u32 *bits);
drivers/gpu/drm/imx/dc/dc-fu.h
122
void dc_fu_get_pixel_format_shifts(struct dc_fu *fu, u32 format, u32 *shifts);
drivers/gpu/drm/imx/dc/dc-fu.h
92
const struct drm_format_info *format);
drivers/gpu/drm/imx/dc/dc-fw.c
82
const struct drm_format_info *format)
drivers/gpu/drm/imx/dc/dc-fw.c
86
dc_fu_set_src_bpp(fu, frac, format->cpp[0] * 8);
drivers/gpu/drm/imx/dc/dc-fw.c
97
dc_fu_get_pixel_format_bits(fu, format->format, &bits);
drivers/gpu/drm/imx/dc/dc-fw.c
98
dc_fu_get_pixel_format_shifts(fu, format->format, &shifts);
drivers/gpu/drm/imx/dc/dc-plane.c
157
fu_ops->set_fmt(fu, DC_FETCHUNIT_FRAC0, fb->format);
drivers/gpu/drm/imx/dcss/dcss-dev.h
133
const struct drm_format_info *format, u64 modifier);
drivers/gpu/drm/imx/dcss/dcss-dev.h
150
const struct drm_format_info *format, int alpha);
drivers/gpu/drm/imx/dcss/dcss-dev.h
170
const struct drm_format_info *format,
drivers/gpu/drm/imx/dcss/dcss-dpr.c
220
u32 pix_format = ch->format.format;
drivers/gpu/drm/imx/dcss/dcss-dpr.c
273
const struct drm_format_info *format)
drivers/gpu/drm/imx/dcss/dcss-dpr.c
277
switch (format->format) {
drivers/gpu/drm/imx/dcss/dcss-dpr.c
416
const struct drm_format_info *format)
drivers/gpu/drm/imx/dcss/dcss-dpr.c
421
switch (format->format) {
drivers/gpu/drm/imx/dcss/dcss-dpr.c
448
if (!format->is_yuv) {
drivers/gpu/drm/imx/dcss/dcss-dpr.c
449
if (!to_comp_sel(format->format, &a_sel, &r_sel,
drivers/gpu/drm/imx/dcss/dcss-dpr.c
493
const struct drm_format_info *format, u64 modifier)
drivers/gpu/drm/imx/dcss/dcss-dpr.c
497
ch->format = *format;
drivers/gpu/drm/imx/dcss/dcss-dpr.c
499
dcss_dpr_yuv_en(ch, format->is_yuv);
drivers/gpu/drm/imx/dcss/dcss-dpr.c
501
dcss_dpr_pix_size_set(ch, format);
drivers/gpu/drm/imx/dcss/dcss-dpr.c
503
dcss_dpr_setup_components(ch, format);
drivers/gpu/drm/imx/dcss/dcss-dpr.c
505
dcss_dpr_2plane_en(ch, format->num_planes == 2);
drivers/gpu/drm/imx/dcss/dcss-dpr.c
507
dcss_dpr_rtram_set(ch, format->format);
drivers/gpu/drm/imx/dcss/dcss-dpr.c
96
struct drm_format_info format;
drivers/gpu/drm/imx/dcss/dcss-dtg.c
271
const struct drm_format_info *format, int alpha)
drivers/gpu/drm/imx/dcss/dcss-dtg.c
281
if (!format->has_alpha || alpha != 255)
drivers/gpu/drm/imx/dcss/dcss-plane.c
105
static bool dcss_plane_can_rotate(const struct drm_format_info *format,
drivers/gpu/drm/imx/dcss/dcss-plane.c
112
if (!format->is_yuv && linear_format)
drivers/gpu/drm/imx/dcss/dcss-plane.c
115
else if (!format->is_yuv &&
drivers/gpu/drm/imx/dcss/dcss-plane.c
120
else if (format->is_yuv && linear_format &&
drivers/gpu/drm/imx/dcss/dcss-plane.c
121
(format->format == DRM_FORMAT_NV12 ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
122
format->format == DRM_FORMAT_NV21))
drivers/gpu/drm/imx/dcss/dcss-plane.c
171
fb->format->format)) {
drivers/gpu/drm/imx/dcss/dcss-plane.c
188
if (!dcss_plane_can_rotate(fb->format,
drivers/gpu/drm/imx/dcss/dcss-plane.c
206
fb->format->format,
drivers/gpu/drm/imx/dcss/dcss-plane.c
221
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/imx/dcss/dcss-plane.c
225
if (!format->is_yuv ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
226
format->format == DRM_FORMAT_NV12 ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
227
format->format == DRM_FORMAT_NV21)
drivers/gpu/drm/imx/dcss/dcss-plane.c
230
format->char_per_block[0] * (state->src.x1 >> 16);
drivers/gpu/drm/imx/dcss/dcss-plane.c
231
else if (format->format == DRM_FORMAT_UYVY ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
232
format->format == DRM_FORMAT_VYUY ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
233
format->format == DRM_FORMAT_YUYV ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
234
format->format == DRM_FORMAT_YVYU)
drivers/gpu/drm/imx/dcss/dcss-plane.c
237
2 * format->char_per_block[0] * (state->src.x1 >> 17);
drivers/gpu/drm/imx/dcss/dcss-plane.c
239
if (format->format == DRM_FORMAT_NV12 ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
240
format->format == DRM_FORMAT_NV21)
drivers/gpu/drm/imx/dcss/dcss-plane.c
263
fb->format->format != old_fb->format->format ||
drivers/gpu/drm/imx/dcss/dcss-plane.c
314
new_state->fb->format,
drivers/gpu/drm/imx/dcss/dcss-plane.c
330
new_state->fb->format,
drivers/gpu/drm/imx/dcss/dcss-plane.c
339
fb->format, new_state->alpha >> 8);
drivers/gpu/drm/imx/dcss/dcss-plane.c
72
u32 format,
drivers/gpu/drm/imx/dcss/dcss-plane.c
77
switch (format) {
drivers/gpu/drm/imx/dcss/dcss-scaler.c
719
const struct drm_format_info *format)
drivers/gpu/drm/imx/dcss/dcss-scaler.c
723
if (format->is_yuv)
drivers/gpu/drm/imx/dcss/dcss-scaler.c
728
if (format->depth != 30)
drivers/gpu/drm/imx/dcss/dcss-scaler.c
731
switch (format->format) {
drivers/gpu/drm/imx/dcss/dcss-scaler.c
769
const struct drm_format_info *format,
drivers/gpu/drm/imx/dcss/dcss-scaler.c
779
u32 pix_format = format->format;
drivers/gpu/drm/imx/dcss/dcss-scaler.c
781
if (format->is_yuv) {
drivers/gpu/drm/imx/dcss/dcss-scaler.c
799
pixel_depth = format->depth;
drivers/gpu/drm/imx/dcss/dcss-scaler.c
806
if (format->is_yuv)
drivers/gpu/drm/imx/dcss/dcss-scaler.c
816
dcss_scaler_set_rgb10_order(ch, format);
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
137
fb->format->cpp[plane] * x;
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
152
x /= fb->format->hsub;
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
153
y /= fb->format->vsub;
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
156
fb->format->cpp[1] * x - eba;
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
171
x /= fb->format->hsub;
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
172
y /= fb->format->vsub;
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
175
fb->format->cpp[2] * x - eba;
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
241
switch (ipu_plane->base.state->fb->format->format) {
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
342
uint32_t format, uint64_t modifier)
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
355
return ipu_prg_format_supported(ipu, format, modifier);
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
431
fb->format != old_fb->format))
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
445
if (ALIGN(fb->width, 8) * fb->format->cpp[0] >
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
451
switch (fb->format->format) {
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
471
if (old_fb && (fb->format == old_fb->format)) {
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
488
if (old_fb && (fb->format == old_fb->format)) {
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
504
if (((new_state->src.x1 >> 16) & (fb->format->hsub - 1)) ||
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
505
((new_state->src.y1 >> 16) & (fb->format->vsub - 1)))
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
602
!fb->format->has_alpha, 0xff,
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
611
!fb->format->has_alpha, 0xff,
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
633
fb->format->format, fb->modifier,
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
638
old_state->fb->format->format != fb->format->format ||
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
641
ics = ipu_drm_fourcc_to_colorspace(fb->format->format);
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
672
ics = ipu_drm_fourcc_to_colorspace(fb->format->format);
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
688
info = drm_format_info(fb->format->format);
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
694
ipu_cpmem_set_fmt(ipu_plane->ipu_ch, fb->format->format);
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
702
switch (fb->format->format) {
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
711
if (fb->format->format == DRM_FORMAT_YVU420 ||
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
712
fb->format->format == DRM_FORMAT_YVU422 ||
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
713
fb->format->format == DRM_FORMAT_YVU444)
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
849
plane_state->fb->format->format,
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
875
plane_state->fb->format->format,
drivers/gpu/drm/imx/ipuv3/parallel-display.c
149
bus_fmt = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/imx/ipuv3/parallel-display.c
156
imx_crtc_state->bus_format = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/imx/lcdc/imx-lcdc.c
180
lpcr |= FIELD_PREP(IMX21LCDC_LPCR_BPIX, imx_lcdc_get_format(fb->format->format));
drivers/gpu/drm/imx/lcdc/imx-lcdc.c
210
bpp = imx_lcdc_get_format(plane_state->fb->format->format);
drivers/gpu/drm/imx/lcdc/imx-lcdc.c
309
if (old_fb && old_fb->format != fb->format)
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
507
new_plane_state->fb->format->format == DRM_FORMAT_C8;
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
519
old_plane_state->fb->format->format != new_plane_state->fb->format->format))
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
685
cpp = newstate->fb->format->cpp[0];
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
703
switch (newstate->fb->format->format) {
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
723
fourcc = newstate->fb->format->format;
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
772
switch (bridge->bus_cfg.format) {
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
821
switch (bridge_state->output_bus_cfg.format) {
drivers/gpu/drm/ingenic/ingenic-ipu.c
330
u32 ctrl, stride = 0, coef_index = 0, format = 0;
drivers/gpu/drm/ingenic/ingenic-ipu.c
342
finfo = drm_format_info(newstate->fb->format->format);
drivers/gpu/drm/ingenic/ingenic-ipu.c
407
switch (finfo->format) {
drivers/gpu/drm/ingenic/ingenic-ipu.c
409
format = JZ_IPU_D_FMT_IN_FMT_RGB555 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
413
format = JZ_IPU_D_FMT_IN_FMT_RGB555 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
417
format = JZ_IPU_D_FMT_IN_FMT_RGB565 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
421
format = JZ_IPU_D_FMT_IN_FMT_RGB565 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
426
format = JZ_IPU_D_FMT_IN_FMT_RGB888 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
430
format = JZ_IPU_D_FMT_IN_FMT_RGB888 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
434
format = JZ_IPU_D_FMT_IN_FMT_YUV422 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
438
format = JZ_IPU_D_FMT_IN_FMT_YUV422 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
442
format = JZ_IPU_D_FMT_IN_FMT_YUV422 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
446
format = JZ_IPU_D_FMT_IN_FMT_YUV422 |
drivers/gpu/drm/ingenic/ingenic-ipu.c
450
format = JZ_IPU_D_FMT_IN_FMT_YUV411;
drivers/gpu/drm/ingenic/ingenic-ipu.c
453
format = JZ_IPU_D_FMT_IN_FMT_YUV420;
drivers/gpu/drm/ingenic/ingenic-ipu.c
456
format = JZ_IPU_D_FMT_IN_FMT_YUV422;
drivers/gpu/drm/ingenic/ingenic-ipu.c
459
format = JZ_IPU_D_FMT_IN_FMT_YUV444;
drivers/gpu/drm/ingenic/ingenic-ipu.c
467
format |= JZ_IPU_D_FMT_OUT_FMT_RGB888;
drivers/gpu/drm/ingenic/ingenic-ipu.c
470
regmap_write(ipu->map, JZ_REG_IPU_D_FMT, format);
drivers/gpu/drm/kmb/kmb_plane.c
112
ret = check_pixel_format(plane, fb->format->format);
drivers/gpu/drm/kmb/kmb_plane.c
165
static unsigned int get_pixel_format(u32 format)
drivers/gpu/drm/kmb/kmb_plane.c
169
switch (format) {
drivers/gpu/drm/kmb/kmb_plane.c
251
__func__, __LINE__, format, val);
drivers/gpu/drm/kmb/kmb_plane.c
255
static unsigned int get_bits_per_pixel(const struct drm_format_info *format)
drivers/gpu/drm/kmb/kmb_plane.c
260
if (format->num_planes > 1) {
drivers/gpu/drm/kmb/kmb_plane.c
265
bpp += 8 * format->cpp[0];
drivers/gpu/drm/kmb/kmb_plane.c
310
int has_alpha = state->fb->format->has_alpha;
drivers/gpu/drm/kmb/kmb_plane.c
369
num_planes = fb->format->num_planes;
drivers/gpu/drm/kmb/kmb_plane.c
391
src_w, src_h, fb->format->format, fb->flags);
drivers/gpu/drm/kmb/kmb_plane.c
395
dma_len = (width * height * fb->format->cpp[0]);
drivers/gpu/drm/kmb/kmb_plane.c
402
(width * fb->format->cpp[0]));
drivers/gpu/drm/kmb/kmb_plane.c
407
val = get_pixel_format(fb->format->format);
drivers/gpu/drm/kmb/kmb_plane.c
408
val |= get_bits_per_pixel(fb->format);
drivers/gpu/drm/kmb/kmb_plane.c
412
width * fb->format->cpp[0]);
drivers/gpu/drm/kmb/kmb_plane.c
414
(width * fb->format->cpp[0]));
drivers/gpu/drm/kmb/kmb_plane.c
431
((width) * fb->format->cpp[0]));
drivers/gpu/drm/kmb/kmb_plane.c
435
((width) * fb->format->cpp[0]));
drivers/gpu/drm/kmb/kmb_plane.c
531
!init_disp_cfg->format) {
drivers/gpu/drm/kmb/kmb_plane.c
534
init_disp_cfg->format = fb->format->format;
drivers/gpu/drm/kmb/kmb_plane.c
68
static unsigned int check_pixel_format(struct drm_plane *plane, u32 format)
drivers/gpu/drm/kmb/kmb_plane.c
81
if (init_disp_cfg.format && init_disp_cfg.format != format) {
drivers/gpu/drm/kmb/kmb_plane.c
86
if (plane->format_types[i] == format)
drivers/gpu/drm/kmb/kmb_plane.h
69
unsigned int format;
drivers/gpu/drm/logicvc/logicvc_layer.c
226
if (logicvc_layer_format_inverted(fb->format->format))
drivers/gpu/drm/logicvc/logicvc_layer.c
267
u32 layer_bytespp = fb->format->cpp[0];
drivers/gpu/drm/logicvc/logicvc_layer.c
70
static bool logicvc_layer_format_inverted(uint32_t format)
drivers/gpu/drm/logicvc/logicvc_layer.c
72
switch (format) {
drivers/gpu/drm/loongson/lsdc_drv.h
143
const struct drm_format_info *format);
drivers/gpu/drm/loongson/lsdc_plane.c
36
offset += fb->format->cpp[0] * (state->src_x >> 16);
drivers/gpu/drm/loongson/lsdc_plane.c
491
const struct drm_format_info *format)
drivers/gpu/drm/loongson/lsdc_plane.c
537
const struct drm_format_info *format)
drivers/gpu/drm/loongson/lsdc_plane.c
85
if (!old_fb || old_fb->format != new_fb->format)
drivers/gpu/drm/loongson/lsdc_plane.c
86
ops->update_fb_format(primary, new_fb->format);
drivers/gpu/drm/mcde/mcde_display.c
1087
mipi_dsi_pixel_format_to_bpp(mcde->mdsi->format));
drivers/gpu/drm/mcde/mcde_display.c
1089
mipi_dsi_pixel_format_to_bpp(mcde->mdsi->format) / 8;
drivers/gpu/drm/mcde/mcde_display.c
1162
u32 format = fb->format->format;
drivers/gpu/drm/mcde/mcde_display.c
1165
int cpp = fb->format->cpp[0];
drivers/gpu/drm/mcde/mcde_display.c
1178
mode->hdisplay, mode->vdisplay, &format);
drivers/gpu/drm/mcde/mcde_display.c
1206
mcde_configure_extsrc(mcde, MCDE_EXTSRC_0, format);
drivers/gpu/drm/mcde/mcde_display.c
1214
MCDE_CHANNEL_0, mode, format, cpp);
drivers/gpu/drm/mcde/mcde_display.c
181
if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) {
drivers/gpu/drm/mcde/mcde_display.c
190
if (old_fb && old_fb->format != fb->format)
drivers/gpu/drm/mcde/mcde_display.c
198
u32 format)
drivers/gpu/drm/mcde/mcde_display.c
256
switch (format) {
drivers/gpu/drm/mcde/mcde_display.c
326
format);
drivers/gpu/drm/mcde/mcde_display.c
343
u32 format, int cpp)
drivers/gpu/drm/mcde/mcde_display.c
414
switch (format) {
drivers/gpu/drm/mcde/mcde_display.c
434
format);
drivers/gpu/drm/mcde/mcde_display.c
802
switch (mcde->mdsi->format) {
drivers/gpu/drm/mcde/mcde_dsi.c
182
dev_info(d->dev, "format %08x, %dbpp\n", mdsi->format,
drivers/gpu/drm/mcde/mcde_dsi.c
183
mipi_dsi_pixel_format_to_bpp(mdsi->format));
drivers/gpu/drm/mcde/mcde_dsi.c
432
u8 cpp = mipi_dsi_pixel_format_to_bpp(d->mdsi->format) / 8;
drivers/gpu/drm/mcde/mcde_dsi.c
449
switch (d->mdsi->format) {
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
296
static void mtk_ovl_set_bit_depth(struct device *dev, int idx, u32 format,
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
305
if (is_10bit_rgb(format))
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
362
if (state->fb->format->is_yuv && (state->rotation & ~DRM_MODE_ROTATE_0))
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
407
unsigned int fmt = state->pending.format;
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
501
unsigned int fmt = pending->format;
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
522
if (blend_mode || state->base.fb->format->has_alpha)
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
531
if (blend_mode == DRM_MODE_BLEND_PIXEL_NONE || !state->base.fb->format->has_alpha)
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c
143
const struct drm_format_info *fmt_info = drm_format_info(pending->format);
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c
150
pending->enable, pending->format);
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c
188
rdma_config.fmt = pending->format;
drivers/gpu/drm/mediatek/mtk_disp_rdma.c
266
unsigned int fmt = pending->format;
drivers/gpu/drm/mediatek/mtk_dp.c
1431
mtk_dp->info.format = DP_PIXELFORMAT_RGB;
drivers/gpu/drm/mediatek/mtk_dp.c
1480
pix_clk_mhz = mtk_dp->info.format == DP_PIXELFORMAT_YUV420 ?
drivers/gpu/drm/mediatek/mtk_dp.c
1958
return mtk_dp_set_color_format(mtk_dp, mtk_dp->info.format);
drivers/gpu/drm/mediatek/mtk_dp.c
2553
input_bus_format = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/mediatek/mtk_dp.c
2556
bridge_state->input_bus_cfg.format,
drivers/gpu/drm/mediatek/mtk_dp.c
2557
bridge_state->output_bus_cfg.format);
drivers/gpu/drm/mediatek/mtk_dp.c
2560
mtk_dp->info.format = DP_PIXELFORMAT_YUV422;
drivers/gpu/drm/mediatek/mtk_dp.c
2562
mtk_dp->info.format = DP_PIXELFORMAT_RGB;
drivers/gpu/drm/mediatek/mtk_dp.c
87
enum dp_pixelformat format;
drivers/gpu/drm/mediatek/mtk_dpi.c
452
enum mtk_dpi_out_color_format format)
drivers/gpu/drm/mediatek/mtk_dpi.c
456
switch (format) {
drivers/gpu/drm/mediatek/mtk_dpi.c
815
out_bus_format = bridge_state->output_bus_cfg.format;
drivers/gpu/drm/mediatek/mtk_dpi.c
822
bridge_state->input_bus_cfg.format,
drivers/gpu/drm/mediatek/mtk_dpi.c
823
bridge_state->output_bus_cfg.format);
drivers/gpu/drm/mediatek/mtk_dsi.c
217
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/mediatek/mtk_dsi.c
400
if (dsi->format == MIPI_DSI_FMT_RGB565)
drivers/gpu/drm/mediatek/mtk_dsi.c
410
switch (dsi->format) {
drivers/gpu/drm/mediatek/mtk_dsi.c
449
if (dsi->format == MIPI_DSI_FMT_RGB565)
drivers/gpu/drm/mediatek/mtk_dsi.c
515
if (dsi->format == MIPI_DSI_FMT_RGB565)
drivers/gpu/drm/mediatek/mtk_dsi.c
685
ret = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/mediatek/mtk_dsi.c
687
dev_err(dev, "Unknown MIPI DSI format %d\n", dsi->format);
drivers/gpu/drm/mediatek/mtk_dsi.c
876
bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/mediatek/mtk_dsi.c
992
dsi->format = device->format;
drivers/gpu/drm/mediatek/mtk_ethdr.c
192
if ((state->base.fb && !state->base.fb->format->has_alpha) ||
drivers/gpu/drm/mediatek/mtk_plane.c
119
unsigned int pitch, format;
drivers/gpu/drm/mediatek/mtk_plane.c
130
format = fb->format->format;
drivers/gpu/drm/mediatek/mtk_plane.c
139
offset = (new_state->src.x1 >> 16) * fb->format->cpp[0];
drivers/gpu/drm/mediatek/mtk_plane.c
154
AFBC_DATA_BLOCK_HEIGHT * fb->format->cpp[0];
drivers/gpu/drm/mediatek/mtk_plane.c
170
fb->format->cpp[0] * (x_offset_in_blocks + 1);
drivers/gpu/drm/mediatek/mtk_plane.c
183
mtk_plane_state->pending.format = format;
drivers/gpu/drm/mediatek/mtk_plane.c
46
state->pending.format = DRM_FORMAT_RGB565;
drivers/gpu/drm/mediatek/mtk_plane.c
69
uint32_t format,
drivers/gpu/drm/mediatek/mtk_plane.h
25
unsigned int format;
drivers/gpu/drm/meson/meson_drv.h
175
u32 format;
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c
113
switch (mipi_dsi->dsi_device->format) {
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c
159
unsigned long mode_flags, u32 lanes, u32 format,
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c
167
bpp = mipi_dsi_pixel_format_to_bpp(mipi_dsi->dsi_device->format);
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c
230
switch (device->format) {
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c
237
dev_err(mipi_dsi->dev, "invalid pixel format %d\n", device->format);
drivers/gpu/drm/meson/meson_encoder_hdmi.c
314
encoder_hdmi->output_bus_fmt = bridge_state->output_bus_cfg.format;
drivers/gpu/drm/meson/meson_osd_afbcd.c
125
priv->afbcd.format);
drivers/gpu/drm/meson/meson_osd_afbcd.c
206
static int meson_g12a_afbcd_pixel_fmt(u64 modifier, uint32_t format)
drivers/gpu/drm/meson/meson_osd_afbcd.c
208
switch (format) {
drivers/gpu/drm/meson/meson_osd_afbcd.c
230
DRM_DEBUG("unsupported afbc format[%08x]\n", format);
drivers/gpu/drm/meson/meson_osd_afbcd.c
235
static int meson_g12a_afbcd_bpp(uint32_t format)
drivers/gpu/drm/meson/meson_osd_afbcd.c
237
switch (format) {
drivers/gpu/drm/meson/meson_osd_afbcd.c
249
DRM_ERROR("unsupported afbc format[%08x]\n", format);
drivers/gpu/drm/meson/meson_osd_afbcd.c
254
static int meson_g12a_afbcd_fmt_to_blk_mode(u64 modifier, uint32_t format)
drivers/gpu/drm/meson/meson_osd_afbcd.c
256
switch (format) {
drivers/gpu/drm/meson/meson_osd_afbcd.c
268
DRM_DEBUG("unsupported afbc format[%08x]\n", format);
drivers/gpu/drm/meson/meson_osd_afbcd.c
273
static bool meson_g12a_afbcd_supported_fmt(u64 modifier, uint32_t format)
drivers/gpu/drm/meson/meson_osd_afbcd.c
275
return meson_g12a_afbcd_pixel_fmt(modifier, format) >= 0;
drivers/gpu/drm/meson/meson_osd_afbcd.c
343
u32 format = meson_g12a_afbcd_pixel_fmt(priv->afbcd.modifier,
drivers/gpu/drm/meson/meson_osd_afbcd.c
344
priv->afbcd.format);
drivers/gpu/drm/meson/meson_osd_afbcd.c
347
format |= VPU_MAFBC_YUV_TRANSFORM;
drivers/gpu/drm/meson/meson_osd_afbcd.c
350
format |= VPU_MAFBC_BLOCK_SPLIT;
drivers/gpu/drm/meson/meson_osd_afbcd.c
353
format |= VPU_MAFBC_TILED_HEADER_EN;
drivers/gpu/drm/meson/meson_osd_afbcd.c
357
format |= FIELD_PREP(VPU_MAFBC_SUPER_BLOCK_ASPECT, 1);
drivers/gpu/drm/meson/meson_osd_afbcd.c
359
meson_rdma_writel_sync(priv, format,
drivers/gpu/drm/meson/meson_osd_afbcd.c
387
(meson_g12a_afbcd_bpp(priv->afbcd.format) / 8),
drivers/gpu/drm/meson/meson_osd_afbcd.c
58
static int meson_gxm_afbcd_pixel_fmt(u64 modifier, uint32_t format)
drivers/gpu/drm/meson/meson_osd_afbcd.c
60
switch (format) {
drivers/gpu/drm/meson/meson_osd_afbcd.c
66
DRM_DEBUG("unsupported afbc format[%08x]\n", format);
drivers/gpu/drm/meson/meson_osd_afbcd.c
71
static bool meson_gxm_afbcd_supported_fmt(u64 modifier, uint32_t format)
drivers/gpu/drm/meson/meson_osd_afbcd.c
79
return meson_gxm_afbcd_pixel_fmt(modifier, format) >= 0;
drivers/gpu/drm/meson/meson_osd_afbcd.h
22
int (*fmt_to_blk_mode)(u64 modifier, uint32_t format);
drivers/gpu/drm/meson/meson_osd_afbcd.h
23
bool (*supported_fmt)(u64 modifier, uint32_t format);
drivers/gpu/drm/meson/meson_overlay.c
521
switch (fb->format->format) {
drivers/gpu/drm/meson/meson_overlay.c
565
switch (fb->format->format) {
drivers/gpu/drm/meson/meson_overlay.c
587
if (fb->format->format == DRM_FORMAT_NV12)
drivers/gpu/drm/meson/meson_overlay.c
608
switch (fb->format->format) {
drivers/gpu/drm/meson/meson_overlay.c
650
priv->viu.vd1_planes = fb->format->num_planes;
drivers/gpu/drm/meson/meson_overlay.c
658
drm_format_info_plane_height(fb->format,
drivers/gpu/drm/meson/meson_overlay.c
670
drm_format_info_plane_height(fb->format,
drivers/gpu/drm/meson/meson_overlay.c
682
drm_format_info_plane_height(fb->format,
drivers/gpu/drm/meson/meson_overlay.c
755
u32 format, u64 modifier)
drivers/gpu/drm/meson/meson_overlay.c
758
format != DRM_FORMAT_YUV420_8BIT &&
drivers/gpu/drm/meson/meson_overlay.c
759
format != DRM_FORMAT_YUV420_10BIT)
drivers/gpu/drm/meson/meson_overlay.c
771
if (format != DRM_FORMAT_YUV420_8BIT &&
drivers/gpu/drm/meson/meson_overlay.c
772
format != DRM_FORMAT_YUV420_10BIT) {
drivers/gpu/drm/meson/meson_overlay.c
774
modifier, format);
drivers/gpu/drm/meson/meson_overlay.c
796
modifier, format);
drivers/gpu/drm/meson/meson_plane.c
118
switch (priv->afbcd.format) {
drivers/gpu/drm/meson/meson_plane.c
212
fb->format->format);
drivers/gpu/drm/meson/meson_plane.c
214
switch (fb->format->format) {
drivers/gpu/drm/meson/meson_plane.c
236
switch (fb->format->format) {
drivers/gpu/drm/meson/meson_plane.c
378
priv->afbcd.format = fb->format->format;
drivers/gpu/drm/meson/meson_plane.c
430
u32 format, u64 modifier)
drivers/gpu/drm/meson/meson_plane.c
459
return priv->afbcd.ops->supported_fmt(modifier, format);
drivers/gpu/drm/meson/meson_viu.c
370
switch (priv->afbcd.format) {
drivers/gpu/drm/mgag200/mgag200_drv.h
184
const struct drm_format_info *format;
drivers/gpu/drm/mgag200/mgag200_drv.h
391
void mgag200_crtc_fill_gamma(struct mga_device *mdev, const struct drm_format_info *format);
drivers/gpu/drm/mgag200/mgag200_drv.h
393
const struct drm_format_info *format,
drivers/gpu/drm/mgag200/mgag200_drv.h
424
void mgag200_set_format_regs(struct mga_device *mdev, const struct drm_format_info *format);
drivers/gpu/drm/mgag200/mgag200_g200er.c
193
const struct drm_format_info *format = mgag200_crtc_state->format;
drivers/gpu/drm/mgag200/mgag200_g200er.c
195
mgag200_set_format_regs(mdev, format);
drivers/gpu/drm/mgag200/mgag200_g200er.c
204
mgag200_crtc_load_gamma(mdev, format, crtc_state->gamma_lut->data);
drivers/gpu/drm/mgag200/mgag200_g200er.c
206
mgag200_crtc_fill_gamma(mdev, format);
drivers/gpu/drm/mgag200/mgag200_g200ev.c
194
const struct drm_format_info *format = mgag200_crtc_state->format;
drivers/gpu/drm/mgag200/mgag200_g200ev.c
196
mgag200_set_format_regs(mdev, format);
drivers/gpu/drm/mgag200/mgag200_g200ev.c
205
mgag200_crtc_load_gamma(mdev, format, crtc_state->gamma_lut->data);
drivers/gpu/drm/mgag200/mgag200_g200ev.c
207
mgag200_crtc_fill_gamma(mdev, format);
drivers/gpu/drm/mgag200/mgag200_g200se.c
325
const struct drm_format_info *format = mgag200_crtc_state->format;
drivers/gpu/drm/mgag200/mgag200_g200se.c
327
mgag200_set_format_regs(mdev, format);
drivers/gpu/drm/mgag200/mgag200_g200se.c
333
mgag200_g200se_set_hiprilvl(mdev, adjusted_mode, format);
drivers/gpu/drm/mgag200/mgag200_g200se.c
336
mgag200_crtc_load_gamma(mdev, format, crtc_state->gamma_lut->data);
drivers/gpu/drm/mgag200/mgag200_g200se.c
338
mgag200_crtc_fill_gamma(mdev, format);
drivers/gpu/drm/mgag200/mgag200_g200se.c
67
const struct drm_format_info *format)
drivers/gpu/drm/mgag200/mgag200_g200se.c
79
if (format->cpp[0] * 8 > 16)
drivers/gpu/drm/mgag200/mgag200_g200se.c
81
else if (format->cpp[0] * 8 > 8)
drivers/gpu/drm/mgag200/mgag200_mode.c
168
static void mgag200_set_datasiz(struct mga_device *mdev, u32 format)
drivers/gpu/drm/mgag200/mgag200_mode.c
176
switch (format) {
drivers/gpu/drm/mgag200/mgag200_mode.c
301
static u8 mgag200_get_bpp_shift(const struct drm_format_info *format)
drivers/gpu/drm/mgag200/mgag200_mode.c
305
return bpp_shift[format->cpp[0] - 1];
drivers/gpu/drm/mgag200/mgag200_mode.c
316
u32 offset = fb->pitches[0] / fb->format->cpp[0];
drivers/gpu/drm/mgag200/mgag200_mode.c
317
u8 bppshift = mgag200_get_bpp_shift(fb->format);
drivers/gpu/drm/mgag200/mgag200_mode.c
319
if (fb->format->cpp[0] * 8 == 24)
drivers/gpu/drm/mgag200/mgag200_mode.c
344
void mgag200_set_format_regs(struct mga_device *mdev, const struct drm_format_info *format)
drivers/gpu/drm/mgag200/mgag200_mode.c
350
bpp = format->cpp[0] * 8;
drivers/gpu/drm/mgag200/mgag200_mode.c
352
bppshift = mgag200_get_bpp_shift(format);
drivers/gpu/drm/mgag200/mgag200_mode.c
369
if (format->depth == 15)
drivers/gpu/drm/mgag200/mgag200_mode.c
455
iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, clip));
drivers/gpu/drm/mgag200/mgag200_mode.c
502
if (!fb || (fb->format != new_fb->format))
drivers/gpu/drm/mgag200/mgag200_mode.c
506
new_mgag200_crtc_state->format = new_fb->format;
drivers/gpu/drm/mgag200/mgag200_mode.c
523
mgag200_set_datasiz(mdev, fb->format->format);
drivers/gpu/drm/mgag200/mgag200_mode.c
54
const struct drm_format_info *format)
drivers/gpu/drm/mgag200/mgag200_mode.c
567
sb->format = plane->state->fb->format;
drivers/gpu/drm/mgag200/mgag200_mode.c
58
switch (format->format) {
drivers/gpu/drm/mgag200/mgag200_mode.c
653
const struct drm_format_info *format = mgag200_crtc_state->format;
drivers/gpu/drm/mgag200/mgag200_mode.c
656
mgag200_crtc_load_gamma(mdev, format, crtc_state->gamma_lut->data);
drivers/gpu/drm/mgag200/mgag200_mode.c
658
mgag200_crtc_fill_gamma(mdev, format);
drivers/gpu/drm/mgag200/mgag200_mode.c
670
const struct drm_format_info *format = mgag200_crtc_state->format;
drivers/gpu/drm/mgag200/mgag200_mode.c
672
mgag200_set_format_regs(mdev, format);
drivers/gpu/drm/mgag200/mgag200_mode.c
679
mgag200_crtc_load_gamma(mdev, format, crtc_state->gamma_lut->data);
drivers/gpu/drm/mgag200/mgag200_mode.c
68
&format->format);
drivers/gpu/drm/mgag200/mgag200_mode.c
681
mgag200_crtc_fill_gamma(mdev, format);
drivers/gpu/drm/mgag200/mgag200_mode.c
721
new_mgag200_crtc_state->format = mgag200_crtc_state->format;
drivers/gpu/drm/mgag200/mgag200_mode.c
74
const struct drm_format_info *format,
drivers/gpu/drm/mgag200/mgag200_mode.c
79
switch (format->format) {
drivers/gpu/drm/mgag200/mgag200_mode.c
89
&format->format);
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1713
fb->base.id, (char *) &fb->format->format,
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1715
for (i = 0; i < ARRAY_SIZE(fb->format->cpp); ++i)
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1717
i, fb->format->cpp[i]);
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
324
const struct msm_format *format,
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
342
!format->alpha_enable) {
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
374
&format->pixel_format, format->alpha_enable, blend_op);
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
405
const struct msm_format *format,
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
422
format->pixel_format, pipe,
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
450
const struct msm_format *format;
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
470
format = msm_framebuffer_format(pstate->base.fb);
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
472
if (pstate->stage == DPU_STAGE_BASE && format->alpha_enable)
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
490
format, fb ? fb->modifier : 0,
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
498
_dpu_crtc_setup_blend_cfg(mixer + lm_idx, pstate, format,
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
501
if (bg_alpha_enable && !format->alpha_enable)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
172
const struct msm_format *format)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
201
hw_wb->ops.setup_outformat(hw_wb, wb_cfg, format);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
206
hw_wb->ops.setup_cdp(hw_wb, format,
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
327
const struct msm_format *format;
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
329
format = msm_framebuffer_format(wb_enc->wb_job->fb);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
341
dpu_encoder_phys_wb_setup_fb(phys_enc, format);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
343
dpu_encoder_helper_phys_setup_cdm(phys_enc, format, CDM_CDWN_OUTPUT_WB);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
563
const struct msm_format *format;
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
584
format = msm_framebuffer_format(job->fb);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
596
wb_cfg->dest.num_planes = format->num_planes;
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
598
if ((format->fetch_type == MDP_PLANE_PLANAR) &&
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
599
(format->element[0] == C1_B_Cb))
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
21
uint32_t format;
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h
20
static inline bool dpu_find_format(u32 format, const u32 *supported_formats,
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h
27
if (format == supported_formats[i])
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
431
const struct msm_format *format)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
439
format);
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h
286
const struct msm_format *format);
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h
343
const struct msm_format *format);
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
292
const struct msm_format *format)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
303
if (format && MSM_FORMAT_IS_YUV(format)) {
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
377
if (format && !MSM_FORMAT_IS_DX(format))
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
380
if (format && format->alpha_enable) {
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h
354
const struct msm_format *format);
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1328
const struct msm_format *format =
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1335
csc_ptr = _dpu_plane_get_csc(pipe, format);
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1718
uint32_t format, uint64_t modifier)
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1728
return dpu_find_format(format, qcom_compressed_supported_formats,
drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c
184
const struct msm_format *format =
drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c
186
alpha[idx-1] = format->alpha_enable;
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
199
const struct msm_format *format;
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
222
format = msm_framebuffer_format(fb);
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
248
if (MSM_FORMAT_IS_YUV(format)) {
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
264
if (MSM_FORMAT_IS_YUV(format)) {
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
296
MDP4_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
297
MDP4_PIPE_SRC_FORMAT_R_BPC(format->bpc_r_cr) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
298
MDP4_PIPE_SRC_FORMAT_G_BPC(format->bpc_g_y) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
299
MDP4_PIPE_SRC_FORMAT_B_BPC(format->bpc_b_cb) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
300
COND(format->alpha_enable, MDP4_PIPE_SRC_FORMAT_ALPHA_ENABLE) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
301
MDP4_PIPE_SRC_FORMAT_CPP(format->bpp - 1) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
302
MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
303
MDP4_PIPE_SRC_FORMAT_FETCH_PLANES(format->fetch_type) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
304
MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
306
COND(format->flags & MSM_FORMAT_FLAG_UNPACK_TIGHT,
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
310
MDP4_PIPE_SRC_UNPACK_ELEM0(format->element[0]) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
311
MDP4_PIPE_SRC_UNPACK_ELEM1(format->element[1]) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
312
MDP4_PIPE_SRC_UNPACK_ELEM2(format->element[2]) |
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
313
MDP4_PIPE_SRC_UNPACK_ELEM3(format->element[3]));
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
315
if (MSM_FORMAT_IS_YUV(format)) {
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
35
if (fb->format->format == DRM_FORMAT_NV12 && is_tile)
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
219
const struct msm_format *format;
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
277
format = msm_framebuffer_format(pstates[STAGE_BASE]->base.fb);
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
279
if (format->alpha_enable)
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
288
format = msm_framebuffer_format(pstates[i]->base.fb);
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
295
if (!format->alpha_enable && bg_alpha_enabled)
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
302
if (format->alpha_enable &&
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
314
} else if (format->alpha_enable &&
drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c
112
mdp5_write(mdp5_kms, REG_MDP5_INTF_PANEL_FORMAT(intf), format);
drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c
31
uint32_t format = 0x2100;
drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c
56
format |= 0;
drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c
59
format |= 0x15;
drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c
62
format |= 0x2A;
drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c
66
format |= 0x3F;
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
217
const struct msm_format *format;
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
221
format = msm_framebuffer_format(state->fb);
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
222
if (MSM_FORMAT_IS_YUV(format))
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
257
const struct msm_format *format =
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
260
blkcfg = mdp5_smp_calculate(mdp5_kms->smp, format,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
616
static uint32_t get_scale_config(const struct msm_format *format,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
619
const struct drm_format_info *info = drm_format_info(format->pixel_format);
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
620
bool yuv = MSM_FORMAT_IS_YUV(format);
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
647
static void calc_pixel_ext(const struct msm_format *format,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
652
bool scaling = MSM_FORMAT_IS_YUV(format) ? true : (src != dst);
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
670
const struct msm_format *format,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
674
const struct drm_format_info *info = drm_format_info(format->pixel_format);
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
682
if (MSM_FORMAT_IS_YUV(format) && i == COMP_1_2) {
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
756
const struct msm_format *format =
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
780
MDP5_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
781
MDP5_PIPE_SRC_FORMAT_R_BPC(format->bpc_r_cr) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
782
MDP5_PIPE_SRC_FORMAT_G_BPC(format->bpc_g_y) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
783
MDP5_PIPE_SRC_FORMAT_B_BPC(format->bpc_b_cb) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
784
COND(format->alpha_enable, MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
785
MDP5_PIPE_SRC_FORMAT_CPP(format->bpp - 1) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
786
MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
787
COND(format->flags & MSM_FORMAT_FLAG_UNPACK_TIGHT,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
789
MDP5_PIPE_SRC_FORMAT_FETCH_TYPE(format->fetch_type) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
790
MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample));
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
793
MDP5_PIPE_SRC_UNPACK_ELEM0(format->element[0]) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
794
MDP5_PIPE_SRC_UNPACK_ELEM1(format->element[1]) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
795
MDP5_PIPE_SRC_UNPACK_ELEM2(format->element[2]) |
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
796
MDP5_PIPE_SRC_UNPACK_ELEM3(format->element[3]));
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
808
mdp5_write_pixel_ext(mdp5_kms, pipe, format,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
829
if (MSM_FORMAT_IS_YUV(format))
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
848
const struct msm_format *format;
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
863
nplanes = fb->format->num_planes;
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
869
format = msm_framebuffer_format(fb);
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
870
pix_format = format->pixel_format;
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
916
calc_pixel_ext(format, src_w, crtc_w, step.x,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
918
calc_pixel_ext(format, src_h, crtc_h, step.y,
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
925
config |= get_scale_config(format, src_w, crtc_w, true);
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
926
config |= get_scale_config(format, src_h, crtc_h, false);
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
117
const struct msm_format *format,
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
120
const struct drm_format_info *info = drm_format_info(format->pixel_format);
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
136
if ((rev > 0) && (format->chroma_sample > CHROMA_FULL)) {
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.h
77
const struct msm_format *format,
drivers/gpu/drm/msm/disp/mdp_format.c
619
const struct msm_format *mdp_get_format(struct msm_kms *kms, uint32_t format,
drivers/gpu/drm/msm/disp/mdp_format.c
643
if (f->pixel_format == format)
drivers/gpu/drm/msm/disp/mdp_format.c
648
&format, modifier);
drivers/gpu/drm/msm/dsi/dsi_host.c
1050
bits_per_pclk = mipi_dsi_pixel_format_to_bpp(msm_host->format);
drivers/gpu/drm/msm/dsi/dsi_host.c
1087
wc = hdisplay * mipi_dsi_pixel_format_to_bpp(msm_host->format) / 8 + 1;
drivers/gpu/drm/msm/dsi/dsi_host.c
1510
mipi_dsi_pixel_format_to_bpp(msm_host->format) / 8;
drivers/gpu/drm/msm/dsi/dsi_host.c
1703
msm_host->format = dsi->format;
drivers/gpu/drm/msm/dsi/dsi_host.c
173
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/msm/dsi/dsi_host.c
642
u32 bpp = mipi_dsi_pixel_format_to_bpp(msm_host->format);
drivers/gpu/drm/msm/dsi/dsi_host.c
684
u32 bpp = mipi_dsi_pixel_format_to_bpp(msm_host->format);
drivers/gpu/drm/msm/dsi/dsi_host.c
798
enum mipi_dsi_pixel_format mipi_fmt = msm_host->format;
drivers/gpu/drm/msm/msm_drv.h
215
const struct msm_format *mdp_get_format(struct msm_kms *kms, uint32_t format, uint64_t modifier);
drivers/gpu/drm/msm/msm_drv.h
266
int w, int h, int p, uint32_t format);
drivers/gpu/drm/msm/msm_fb.c
109
int i, n = fb->format->num_planes;
drivers/gpu/drm/msm/msm_fb.c
139
return msm_fb->format;
drivers/gpu/drm/msm/msm_fb.c
180
const struct msm_format *format;
drivers/gpu/drm/msm/msm_fb.c
188
format = mdp_get_format(kms, mode_cmd->pixel_format,
drivers/gpu/drm/msm/msm_fb.c
190
if (!format) {
drivers/gpu/drm/msm/msm_fb.c
205
msm_fb->format = format;
drivers/gpu/drm/msm/msm_fb.c
21
const struct msm_format *format;
drivers/gpu/drm/msm/msm_fb.c
250
msm_alloc_stolen_fb(struct drm_device *dev, int w, int h, int p, uint32_t format)
drivers/gpu/drm/msm/msm_fb.c
253
.pixel_format = format,
drivers/gpu/drm/msm/msm_fb.c
63
int i, n = fb->format->num_planes;
drivers/gpu/drm/msm/msm_fb.c
66
fb->width, fb->height, (char *)&fb->format->format,
drivers/gpu/drm/msm/msm_fb.c
84
int ret, i, n = fb->format->num_planes;
drivers/gpu/drm/msm/msm_fbdev.c
101
format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth);
drivers/gpu/drm/msm/msm_fbdev.c
109
sizes->surface_height, pitch, format);
drivers/gpu/drm/msm/msm_fbdev.c
98
uint32_t format;
drivers/gpu/drm/mxsfb/lcdif_kms.c
167
const u32 format = plane_state->fb->format->format;
drivers/gpu/drm/mxsfb/lcdif_kms.c
190
switch (format) {
drivers/gpu/drm/mxsfb/lcdif_kms.c
240
dev_err(drm->dev, "Unknown pixel format 0x%x\n", format);
drivers/gpu/drm/mxsfb/lcdif_kms.c
465
bus_format = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/mxsfb/lcdif_kms.c
701
uint32_t format,
drivers/gpu/drm/mxsfb/mxsfb_kms.c
371
bus_format = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/mxsfb/mxsfb_kms.c
56
const u32 format = mxsfb->crtc.primary->state->fb->format->format;
drivers/gpu/drm/mxsfb/mxsfb_kms.c
588
switch (new_pstate->fb->format->format) {
drivers/gpu/drm/mxsfb/mxsfb_kms.c
624
uint32_t format,
drivers/gpu/drm/mxsfb/mxsfb_kms.c
68
switch (format) {
drivers/gpu/drm/nouveau/dispnv04/crtc.c
1193
{ { }, event, crtc, fb->format->cpp[0] * 8, fb->pitches[0],
drivers/gpu/drm/nouveau/dispnv04/crtc.c
578
regp->CRTC[NV_CIO_CRE_PIXEL_INDEX] = (fb->format->depth + 1) / 8;
drivers/gpu/drm/nouveau/dispnv04/crtc.c
592
if (fb->format->depth == 16)
drivers/gpu/drm/nouveau/dispnv04/crtc.c
863
if (nv_crtc->lut.depth != drm_fb->format->depth) {
drivers/gpu/drm/nouveau/dispnv04/crtc.c
864
nv_crtc->lut.depth = drm_fb->format->depth;
drivers/gpu/drm/nouveau/dispnv04/crtc.c
870
regp->CRTC[NV_CIO_CRE_PIXEL_INDEX] |= (drm_fb->format->depth + 1) / 8;
drivers/gpu/drm/nouveau/dispnv04/crtc.c
872
if (drm_fb->format->depth == 16)
drivers/gpu/drm/nouveau/dispnv04/crtc.c
889
regp->fb_start += (y * drm_fb->pitches[0]) + (x * drm_fb->format->cpp[0]);
drivers/gpu/drm/nouveau/dispnv04/crtc.c
893
nouveau_calc_arb(dev, crtc->mode.clock, drm_fb->format->cpp[0] * 8,
drivers/gpu/drm/nouveau/dispnv04/dfp.c
420
fb->format->depth > connector->display_info.bpc * 3)) {
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_priv.h
132
#define ch7006_dbg(client, format, ...) do { \
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_priv.h
135
"%s: " format, __func__, ## __VA_ARGS__); \
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_priv.h
137
#define ch7006_info(client, format, ...) \
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_priv.h
138
dev_info(&client->dev, format, __VA_ARGS__)
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_priv.h
139
#define ch7006_err(client, format, ...) \
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_priv.h
140
dev_err(&client->dev, format, __VA_ARGS__)
drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c
47
#define sil164_dbg(client, format, ...) do { \
drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c
50
"%s: " format, __func__, ## __VA_ARGS__); \
drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c
52
#define sil164_info(client, format, ...) \
drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c
53
dev_info(&client->dev, format, __VA_ARGS__)
drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c
54
#define sil164_err(client, format, ...) \
drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c
55
dev_err(&client->dev, format, __VA_ARGS__)
drivers/gpu/drm/nouveau/dispnv04/overlay.c
131
unsigned format = 0;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
163
if (fb->format->format == DRM_FORMAT_YUYV ||
drivers/gpu/drm/nouveau/dispnv04/overlay.c
164
fb->format->format == DRM_FORMAT_NV12)
drivers/gpu/drm/nouveau/dispnv04/overlay.c
165
format |= NV_PVIDEO_FORMAT_COLOR_LE_CR8YB8CB8YA8;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
166
if (fb->format->format == DRM_FORMAT_NV12 ||
drivers/gpu/drm/nouveau/dispnv04/overlay.c
167
fb->format->format == DRM_FORMAT_NV21)
drivers/gpu/drm/nouveau/dispnv04/overlay.c
168
format |= NV_PVIDEO_FORMAT_PLANAR;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
170
format |= NV_PVIDEO_FORMAT_MATRIX_ITURBT709;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
172
format |= NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
174
if (format & NV_PVIDEO_FORMAT_PLANAR) {
drivers/gpu/drm/nouveau/dispnv04/overlay.c
179
nvif_wr32(dev, NV_PVIDEO_FORMAT(flip), format | fb->pitches[0]);
drivers/gpu/drm/nouveau/dispnv04/overlay.c
223
u32 format = 0;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
233
format |= NV_PVIDEO_FORMAT_MATRIX_ITURBT709;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
235
format |= NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY;
drivers/gpu/drm/nouveau/dispnv04/overlay.c
239
format);
drivers/gpu/drm/nouveau/dispnv04/overlay.c
429
if (fb->format->format == DRM_FORMAT_YUYV)
drivers/gpu/drm/nouveau/dispnv50/atom.h
232
u8 format;
drivers/gpu/drm/nouveau/dispnv50/atom.h
71
u8 format;
drivers/gpu/drm/nouveau/dispnv50/atom.h
88
u8 format:8;
drivers/gpu/drm/nouveau/dispnv50/base.h
6
int base507c_new_(const struct nv50_wndw_func *, const u32 *format,
drivers/gpu/drm/nouveau/dispnv50/base507c.c
109
NVVAL(NV507C, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/base507c.c
246
if ((asyh->base.cpp != 1) ^ (fb->format->cpp[0] != 1))
drivers/gpu/drm/nouveau/dispnv50/base507c.c
250
asyh->base.depth = fb->format->depth;
drivers/gpu/drm/nouveau/dispnv50/base507c.c
251
asyh->base.cpp = fb->format->cpp[0];
drivers/gpu/drm/nouveau/dispnv50/base507c.c
303
base507c_new_(const struct nv50_wndw_func *func, const u32 *format,
drivers/gpu/drm/nouveau/dispnv50/base507c.c
315
"base", head, format, BIT(head),
drivers/gpu/drm/nouveau/dispnv50/base507c.c
80
if (asyw->image.format == NV507C_SURFACE_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16) {
drivers/gpu/drm/nouveau/dispnv50/base827c.c
43
if (asyw->image.format == NV827C_SURFACE_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16) {
drivers/gpu/drm/nouveau/dispnv50/base827c.c
73
NVVAL(NV827C, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/base907c.c
58
NVVAL(NV907C, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/curs507a.c
130
if (asyw->image.pitch[0] != asyw->image.w * fb->format->cpp[0]) {
drivers/gpu/drm/nouveau/dispnv50/curs507a.c
149
wndw->plane.name, fb->format->format);
drivers/gpu/drm/nouveau/dispnv50/head507d.c
151
NVVAL(NV507D, HEAD_SET_CONTROL_CURSOR, FORMAT, asyh->curs.format) |
drivers/gpu/drm/nouveau/dispnv50/head507d.c
166
switch (asyw->image.format) {
drivers/gpu/drm/nouveau/dispnv50/head507d.c
167
case 0xcf: asyh->curs.format = NV507D_HEAD_SET_CONTROL_CURSOR_FORMAT_A8R8G8B8; break;
drivers/gpu/drm/nouveau/dispnv50/head507d.c
226
NVVAL(NV507D, HEAD_SET_PARAMS, FORMAT, asyh->core.format) |
drivers/gpu/drm/nouveau/dispnv50/head507d.c
270
asyh->core.format = NV507D_HEAD_SET_PARAMS_FORMAT_A8R8G8B8;
drivers/gpu/drm/nouveau/dispnv50/head827d.c
60
NVVAL(NV827D, HEAD_SET_CONTROL_CURSOR, FORMAT, asyh->curs.format) |
drivers/gpu/drm/nouveau/dispnv50/head827d.c
97
NVVAL(NV827D, HEAD_SET_PARAMS, FORMAT, asyh->core.format) |
drivers/gpu/drm/nouveau/dispnv50/head907d.c
183
NVVAL(NV907D, HEAD_SET_CONTROL_CURSOR, FORMAT, asyh->curs.format) |
drivers/gpu/drm/nouveau/dispnv50/head907d.c
233
NVVAL(NV907D, HEAD_SET_PARAMS, FORMAT, asyh->core.format) |
drivers/gpu/drm/nouveau/dispnv50/head917d.c
90
NVVAL(NV917D, HEAD_SET_CONTROL_CURSOR, FORMAT, asyh->curs.format) |
drivers/gpu/drm/nouveau/dispnv50/headc37d.c
134
NVVAL(NVC37D, HEAD_SET_CONTROL_CURSOR, FORMAT, asyh->curs.format) |
drivers/gpu/drm/nouveau/dispnv50/headc37d.c
157
asyh->curs.format = asyw->image.format;
drivers/gpu/drm/nouveau/dispnv50/headca7d.c
153
NVVAL(NVCA7D, HEAD_SET_CONTROL_CURSOR, FORMAT, asyh->curs.format) |
drivers/gpu/drm/nouveau/dispnv50/ovly.h
6
int ovly507e_new_(const struct nv50_wndw_func *, const u32 *format,
drivers/gpu/drm/nouveau/dispnv50/ovly507e.c
114
asyh->ovly.cpp = fb->format->cpp[0];
drivers/gpu/drm/nouveau/dispnv50/ovly507e.c
144
ovly507e_new_(const struct nv50_wndw_func *func, const u32 *format,
drivers/gpu/drm/nouveau/dispnv50/ovly507e.c
156
"ovly", head, format, BIT(head),
drivers/gpu/drm/nouveau/dispnv50/ovly507e.c
86
NVVAL(NV507E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/ovly827e.c
63
NVVAL(NV827E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/ovly907e.c
60
NVVAL(NV907E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/wndw.c
216
switch (asyw->state.fb->format->format) {
drivers/gpu/drm/nouveau/dispnv50/wndw.c
218
asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_VE8YO8UE8YE8;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
221
asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_YO8VE8YE8UE8;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
235
switch (asyw->state.fb->format->format) {
drivers/gpu/drm/nouveau/dispnv50/wndw.c
237
asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_I8;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
241
asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
244
asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_R5G6B5;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
248
asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_A1R5G5B5;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
252
asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_A2B10G10R10;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
256
asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_A8B8G8R8;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
260
asyw->image.format = NVC37E_SET_PARAMS_FORMAT_A2R10G10B10;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
264
asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
387
if (!ilut && asyw->state.fb->format->format == DRM_FORMAT_C8) {
drivers/gpu/drm/nouveau/dispnv50/wndw.c
405
asyw->state.fb->format->format != DRM_FORMAT_XBGR16161616F &&
drivers/gpu/drm/nouveau/dispnv50/wndw.c
406
asyw->state.fb->format->format != DRM_FORMAT_ABGR16161616F) {
drivers/gpu/drm/nouveau/dispnv50/wndw.c
482
asyw->state.fb->format->format !=
drivers/gpu/drm/nouveau/dispnv50/wndw.c
483
armw->state.fb->format->format)) {
drivers/gpu/drm/nouveau/dispnv50/wndw.c
668
if (nvbo->comp || fb->format->num_planes != 1)
drivers/gpu/drm/nouveau/dispnv50/wndw.c
684
sb->format = fb->format;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
691
if (fb->format->cpp[0] != 4)
drivers/gpu/drm/nouveau/dispnv50/wndw.c
793
u32 format, u64 modifier)
drivers/gpu/drm/nouveau/dispnv50/wndw.c
796
const struct drm_format_info *info = drm_format_info(format);
drivers/gpu/drm/nouveau/dispnv50/wndw.c
806
if (!format) return false;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
814
if (!format)
drivers/gpu/drm/nouveau/dispnv50/wndw.c
854
const u32 *format, u32 heads,
drivers/gpu/drm/nouveau/dispnv50/wndw.c
876
for (nformat = 0; format[nformat]; nformat++);
drivers/gpu/drm/nouveau/dispnv50/wndw.c
883
ret = drm_universal_plane_init(dev, &wndw->plane, heads, &nv50_wndw, format, nformat,
drivers/gpu/drm/nouveau/dispnv50/wndw.h
38
const u32 *format, u32 heads,
drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
180
NVVAL(NVC37E, SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c
55
NVVAL(NVC57E, SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c
51
NVVAL(NVC57E, SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/dispnv50/wndwca7e.c
72
NVVAL(NVCA7E, SET_PARAMS, FORMAT, asyw->image.format) |
drivers/gpu/drm/nouveau/include/nvif/cl9097.h
29
__u8 format;
drivers/gpu/drm/nouveau/include/nvif/cl9097.h
39
__u8 format;
drivers/gpu/drm/nouveau/nouveau_drm.c
861
const struct drm_format_info *format;
drivers/gpu/drm/nouveau/nouveau_drm.c
899
format = drm_format_info(DRM_FORMAT_C8);
drivers/gpu/drm/nouveau/nouveau_drm.c
901
format = NULL;
drivers/gpu/drm/nouveau/nouveau_drm.c
903
drm_client_setup(drm->dev, format);
drivers/gpu/drm/nouveau/nvkm/engine/gr/ga102.c
41
if (gr->zbc_color[zbc].format)
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
1019
if (!gr->zbc_color[0].format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
103
if (gr->zbc_depth[zbc].format)
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
105
nvkm_wr32(device, 0x40581c, gr->zbc_depth[zbc].format);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
111
gf100_gr_zbc_depth_get(struct gf100_gr *gr, int format,
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
118
if (gr->zbc_depth[i].format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
119
if (gr->zbc_depth[i].format != format)
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
136
gr->zbc_depth[zbc].format = format;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
170
switch (args->v0.format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
190
ret = gf100_gr_zbc_color_get(gr, args->v0.format,
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
216
switch (args->v0.format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
218
ret = gf100_gr_zbc_depth_get(gr, args->v0.format,
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
52
if (gr->zbc_color[zbc].format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
58
nvkm_wr32(device, 0x405814, gr->zbc_color[zbc].format);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
64
gf100_gr_zbc_color_get(struct gf100_gr *gr, int format,
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
71
if (gr->zbc_color[i].format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
72
if (gr->zbc_color[i].format != format)
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
93
gr->zbc_color[zbc].format = format;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
144
int (*stencil_get)(struct gf100_gr *, int format,
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
48
u32 format;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
54
u32 format;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
60
u32 format;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
39
if (gr->zbc_color[zbc].format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
48
gr->zbc_color[zbc].format << ((znum % 4) * 7));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
58
if (gr->zbc_depth[zbc].format)
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
62
gr->zbc_depth[zbc].format << ((znum % 4) * 7));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
36
if (gr->zbc_stencil[zbc].format)
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
40
gr->zbc_stencil[zbc].format << ((znum % 4) * 7));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
44
gp102_gr_zbc_stencil_get(struct gf100_gr *gr, int format,
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
51
if (gr->zbc_stencil[i].format) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
52
if (gr->zbc_stencil[i].format != format)
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
69
gr->zbc_stencil[zbc].format = format;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/fbsr.c
79
rpc->format = 6; /* NV_MMU_PTE_KIND_GENERIC_MEMORY */
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm/fbsr.h
79
NvU32 format;
drivers/gpu/drm/omapdrm/dss/dsi.c
4374
if (mipi_dsi_pixel_format_to_bpp(client->format) < 0) {
drivers/gpu/drm/omapdrm/dss/dsi.c
4392
dsi->pix_fmt = client->format;
drivers/gpu/drm/omapdrm/dss/dss.h
35
#define DSSDBG(format, ...) \
drivers/gpu/drm/omapdrm/dss/dss.h
36
pr_debug(format, ## __VA_ARGS__)
drivers/gpu/drm/omapdrm/dss/dss.h
39
#define DSSERR(format, ...) \
drivers/gpu/drm/omapdrm/dss/dss.h
40
pr_err("omapdss " DSS_SUBSYS_NAME " error: " format, ##__VA_ARGS__)
drivers/gpu/drm/omapdrm/dss/dss.h
42
#define DSSERR(format, ...) \
drivers/gpu/drm/omapdrm/dss/dss.h
43
pr_err("omapdss error: " format, ##__VA_ARGS__)
drivers/gpu/drm/omapdrm/dss/dss.h
47
#define DSSINFO(format, ...) \
drivers/gpu/drm/omapdrm/dss/dss.h
48
pr_info("omapdss " DSS_SUBSYS_NAME ": " format, ##__VA_ARGS__)
drivers/gpu/drm/omapdrm/dss/dss.h
50
#define DSSINFO(format, ...) \
drivers/gpu/drm/omapdrm/dss/dss.h
51
pr_info("omapdss: " format, ## __VA_ARGS__)
drivers/gpu/drm/omapdrm/dss/dss.h
55
#define DSSWARN(format, ...) \
drivers/gpu/drm/omapdrm/dss/dss.h
56
pr_warn("omapdss " DSS_SUBSYS_NAME ": " format, ##__VA_ARGS__)
drivers/gpu/drm/omapdrm/dss/dss.h
58
#define DSSWARN(format, ...) \
drivers/gpu/drm/omapdrm/dss/dss.h
59
pr_warn("omapdss: " format, ##__VA_ARGS__)
drivers/gpu/drm/omapdrm/omap_fb.c
143
const struct drm_format_info *format = omap_fb->format;
drivers/gpu/drm/omapdrm/omap_fb.c
146
info->fourcc = fb->format->format;
drivers/gpu/drm/omapdrm/omap_fb.c
174
if (fb->format->format == DRM_FORMAT_UYVY ||
drivers/gpu/drm/omapdrm/omap_fb.c
175
fb->format->format == DRM_FORMAT_YUYV) {
drivers/gpu/drm/omapdrm/omap_fb.c
207
info->paddr = get_linear_addr(fb, format, 0, x, y);
drivers/gpu/drm/omapdrm/omap_fb.c
214
info->screen_width /= format->cpp[0];
drivers/gpu/drm/omapdrm/omap_fb.c
216
if (fb->format->format == DRM_FORMAT_NV12) {
drivers/gpu/drm/omapdrm/omap_fb.c
222
info->p_uv_addr = get_linear_addr(fb, format, 1, x, y);
drivers/gpu/drm/omapdrm/omap_fb.c
234
if (fb->format->is_yuv) {
drivers/gpu/drm/omapdrm/omap_fb.c
248
r_info->paddr = get_linear_addr(fb, format, 0,
drivers/gpu/drm/omapdrm/omap_fb.c
250
if (fb->format->format == DRM_FORMAT_NV12) {
drivers/gpu/drm/omapdrm/omap_fb.c
252
get_linear_addr(fb, format, 1,
drivers/gpu/drm/omapdrm/omap_fb.c
262
int ret, i, n = fb->format->num_planes;
drivers/gpu/drm/omapdrm/omap_fb.c
302
int i, n = fb->format->num_planes;
drivers/gpu/drm/omapdrm/omap_fb.c
325
int i, n = fb->format->num_planes;
drivers/gpu/drm/omapdrm/omap_fb.c
328
(char *)&fb->format->format);
drivers/gpu/drm/omapdrm/omap_fb.c
400
omap_fb->format = info;
drivers/gpu/drm/omapdrm/omap_fb.c
56
const struct drm_format_info *format;
drivers/gpu/drm/omapdrm/omap_fb.c
87
const struct drm_format_info *format, int n, int x, int y)
drivers/gpu/drm/omapdrm/omap_fb.c
94
+ (x * format->cpp[n] / (n == 0 ? 1 : format->hsub))
drivers/gpu/drm/omapdrm/omap_fb.c
95
+ (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub));
drivers/gpu/drm/omapdrm/omap_plane.c
276
bool is_fourcc_yuv = new_plane_state->fb->format->is_yuv;
drivers/gpu/drm/omapdrm/omap_plane.c
307
fourcc = new_plane_state->fb->format->format;
drivers/gpu/drm/panel/panel-asus-z00t-tm5p5-n35596.c
253
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
347
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-boe-himax8279d.c
36
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-boe-himax8279d.c
506
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-himax8279d.c
806
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-himax8279d.c
873
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-boe-td4320.c
196
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
26
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
273
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
298
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
363
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c
191
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1444
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1473
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1501
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1528
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1556
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1583
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1611
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1638
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
1755
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
36
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-dsi-cm.c
556
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-ebbg-ft8719.c
197
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-elida-kd35t133.c
247
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c
475
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c
222
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-himax-hx8279.c
1073
hx->dsi[i]->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-himax-hx83102.c
1022
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-himax-hx83112a.c
295
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-himax-hx83112b.c
378
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-himax-hx8394.c
200
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-himax-hx8394.c
330
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-himax-hx8394.c
476
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-himax-hx8394.c
617
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-himax-hx8394.c
778
dsi->format = ctx->desc->format;
drivers/gpu/drm/panel/panel-himax-hx8394.c
807
mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes);
drivers/gpu/drm/panel/panel-himax-hx8394.c
82
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-hydis-hv101hd1.c
139
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-ilitek-ili9805.c
320
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
193
dsi->format = ctx->desc->format;
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
24
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
377
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
541
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
2359
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c
43
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c
706
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c
721
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c
830
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-innolux-p079zca.c
163
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-innolux-p079zca.c
31
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-innolux-p079zca.c
328
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-innolux-p079zca.c
440
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
1106
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
1363
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
1390
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
27
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
390
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
622
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
855
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c
193
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c
384
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-jdi-lt070me05000.c
422
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-khadas-ts050.c
846
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
360
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
579
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c
644
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-lg-ld070wx3.c
141
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-lg-sw43408.c
273
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-lincolntech-lcd197.c
189
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c
426
db->dsi_dev->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
261
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
293
mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes);
drivers/gpu/drm/panel/panel-newvision-nv3051d.c
393
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-novatek-nt35510.c
1100
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-novatek-nt35560.c
400
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-novatek-nt35950.c
507
nt->dsi[i]->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-novatek-nt36523.c
1232
pinfo->dsi[i]->format = pinfo->desc->format;
drivers/gpu/drm/panel/panel-novatek-nt36523.c
44
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-novatek-nt36523.c
945
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-novatek-nt36523.c
963
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-novatek-nt36523.c
976
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-novatek-nt36672a.c
55
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-novatek-nt36672a.c
581
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-novatek-nt36672a.c
634
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-novatek-nt36672e.c
33
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-novatek-nt36672e.c
488
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-novatek-nt36672e.c
555
dsi->format = ctx->desc->format;
drivers/gpu/drm/panel/panel-novatek-nt37801.c
279
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
417
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c
155
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
190
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
464
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-raydium-rm67191.c
249
static int color_format_from_dsi_format(enum mipi_dsi_pixel_format format)
drivers/gpu/drm/panel/panel-raydium-rm67191.c
251
switch (format) {
drivers/gpu/drm/panel/panel-raydium-rm67191.c
315
int color_format = color_format_from_dsi_format(dsi->format);
drivers/gpu/drm/panel/panel-raydium-rm67191.c
540
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-raydium-rm67200.c
415
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-raydium-rm68200.c
356
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-raydium-rm692e5.c
307
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-raydium-rm69380.c
269
ctx->dsi[i]->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-renesas-r61307.c
275
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-renesas-r69328.c
231
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
198
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-ams581vf01.c
236
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-ams639rq08.c
282
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-ltl106hl02.c
136
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6d16d0.c
179
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
421
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c
203
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c
332
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c
696
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c
279
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c
451
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c
98
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c
714
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
194
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c
993
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-s6e8aa5x01-ams561ra01.c
940
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-samsung-sofef00.c
238
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c
187
sharp->dsi[i]->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c
144
u8 format = MIPI_DCS_PIXEL_FMT_24BIT;
drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c
188
err = mipi_dsi_dcs_set_pixel_format(sharp->link1, format);
drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c
308
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
226
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c
227
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-simple.c
144
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-simple.c
5687
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-simple.c
5717
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-simple.c
5745
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-simple.c
5774
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-simple.c
5802
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-simple.c
5833
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-simple.c
5874
dsi->format = desc->format;
drivers/gpu/drm/panel/panel-sitronix-st7701.c
108
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-sitronix-st7701.c
1184
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7701.c
1346
dsi->format = st7701->desc->format;
drivers/gpu/drm/panel/panel-sitronix-st7701.c
684
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7701.c
785
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7701.c
884
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7701.c
983
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7703.c
154
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7703.c
332
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7703.c
420
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7703.c
504
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7703.c
590
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7703.c
672
.format = MIPI_DSI_FMT_RGB888,
drivers/gpu/drm/panel/panel-sitronix-st7703.c
71
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/panel/panel-sitronix-st7703.c
865
dsi->format = ctx->desc->format;
drivers/gpu/drm/panel/panel-sitronix-st7703.c
897
mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes);
drivers/gpu/drm/panel/panel-sony-td4353-jdi.c
208
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c
465
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c
303
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-synaptics-r63353.c
245
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-synaptics-tddi.c
211
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c
183
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-truly-nt35597.c
578
dsi_dev->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-visionox-g2647fb105.c
230
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-visionox-r66451.c
298
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-visionox-rm69299.c
387
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-visionox-rm692e5.c
385
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c
273
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c
269
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/pl111/pl111_display.c
107
if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0])
drivers/gpu/drm/pl111/pl111_display.c
113
if (old_fb && old_fb->format != fb->format)
drivers/gpu/drm/pl111/pl111_display.c
259
switch (fb->format->format) {
drivers/gpu/drm/pl111/pl111_display.c
330
fb->format->format);
drivers/gpu/drm/pl111/pl111_display.c
348
priv->variant_display_enable(drm, fb->format->format);
drivers/gpu/drm/pl111/pl111_drm.h
153
void (*variant_display_enable) (struct drm_device *drm, u32 format);
drivers/gpu/drm/pl111/pl111_versatile.c
116
static void pl111_integrator_enable(struct drm_device *drm, u32 format)
drivers/gpu/drm/pl111/pl111_versatile.c
126
switch (format) {
drivers/gpu/drm/pl111/pl111_versatile.c
139
format);
drivers/gpu/drm/pl111/pl111_versatile.c
156
static void pl111_impd1_enable(struct drm_device *drm, u32 format)
drivers/gpu/drm/pl111/pl111_versatile.c
205
static void pl111_versatile_enable(struct drm_device *drm, u32 format)
drivers/gpu/drm/pl111/pl111_versatile.c
211
switch (format) {
drivers/gpu/drm/pl111/pl111_versatile.c
232
format);
drivers/gpu/drm/pl111/pl111_versatile.c
258
static void pl111_realview_clcd_enable(struct drm_device *drm, u32 format)
drivers/gpu/drm/qxl/qxl_cmd.c
387
create->format = bo->surf.format;
drivers/gpu/drm/qxl/qxl_cmd.c
482
cmd->u.surface_create.format = surf->surf.format;
drivers/gpu/drm/qxl/qxl_dev.h
316
uint32_t format;
drivers/gpu/drm/qxl/qxl_dev.h
739
uint32_t format;
drivers/gpu/drm/qxl/qxl_dev.h
826
uint8_t format;
drivers/gpu/drm/qxl/qxl_display.c
812
surf->format = SPICE_SURFACE_FMT_32_xRGB;
drivers/gpu/drm/qxl/qxl_draw.c
149
int depth = fb->format->cpp[0] * 8;
drivers/gpu/drm/qxl/qxl_dumb.c
41
uint32_t pitch, format;
drivers/gpu/drm/qxl/qxl_dumb.c
49
format = SPICE_SURFACE_FMT_16_565;
drivers/gpu/drm/qxl/qxl_dumb.c
52
format = SPICE_SURFACE_FMT_32_xRGB;
drivers/gpu/drm/qxl/qxl_dumb.c
61
surf.format = format;
drivers/gpu/drm/qxl/qxl_image.c
207
image->u.bitmap.format = SPICE_BITMAP_FMT_1BIT_BE;
drivers/gpu/drm/qxl/qxl_image.c
210
image->u.bitmap.format = SPICE_BITMAP_FMT_24BIT;
drivers/gpu/drm/qxl/qxl_image.c
213
image->u.bitmap.format = SPICE_BITMAP_FMT_32BIT;
drivers/gpu/drm/qxl/qxl_ioctl.c
396
surf.format = param->format;
drivers/gpu/drm/radeon/atombios_crtc.c
1175
switch (target_fb->format->format) {
drivers/gpu/drm/radeon/atombios_crtc.c
1251
&target_fb->format->format);
drivers/gpu/drm/radeon/atombios_crtc.c
1267
tileb = 8 * 8 * target_fb->format->cpp[0];
drivers/gpu/drm/radeon/atombios_crtc.c
1275
target_fb->format->cpp[0] * 8,
drivers/gpu/drm/radeon/atombios_crtc.c
1282
switch (target_fb->format->cpp[0] * 8) {
drivers/gpu/drm/radeon/atombios_crtc.c
1405
fb_pitch_pixels = target_fb->pitches[0] / target_fb->format->cpp[0];
drivers/gpu/drm/radeon/atombios_crtc.c
1484
switch (target_fb->format->format) {
drivers/gpu/drm/radeon/atombios_crtc.c
1552
&target_fb->format->format);
drivers/gpu/drm/radeon/atombios_crtc.c
1610
fb_pitch_pixels = target_fb->pitches[0] / target_fb->format->cpp[0];
drivers/gpu/drm/radeon/dce3_1_afmt.c
104
if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM)
drivers/gpu/drm/radeon/dce3_1_afmt.c
96
if (sad->format == eld_reg_to_type[i][1]) {
drivers/gpu/drm/radeon/dce6_afmt.c
238
if (sad->format == eld_reg_to_type[i][1]) {
drivers/gpu/drm/radeon/dce6_afmt.c
246
if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM)
drivers/gpu/drm/radeon/evergreen.c
1427
fb->pitches[0] / fb->format->cpp[0]);
drivers/gpu/drm/radeon/evergreen_cs.c
175
unsigned format;
drivers/gpu/drm/radeon/evergreen_cs.c
303
surf->bpe = r600_fmt_get_blocksize(surf->format);
drivers/gpu/drm/radeon/evergreen_cs.c
409
surf.format = G_028C70_FORMAT(track->cb_color_info[id]);
drivers/gpu/drm/radeon/evergreen_cs.c
417
if (!r600_fmt_is_valid_color(surf.format)) {
drivers/gpu/drm/radeon/evergreen_cs.c
419
__func__, __LINE__, surf.format,
drivers/gpu/drm/radeon/evergreen_cs.c
576
surf.format = G_028044_FORMAT(track->db_s_info);
drivers/gpu/drm/radeon/evergreen_cs.c
584
if (surf.format != 1) {
drivers/gpu/drm/radeon/evergreen_cs.c
586
__func__, __LINE__, surf.format);
drivers/gpu/drm/radeon/evergreen_cs.c
590
surf.format = V_028C70_COLOR_8;
drivers/gpu/drm/radeon/evergreen_cs.c
603
surf.format = V_028C70_COLOR_8_8_8_8;
drivers/gpu/drm/radeon/evergreen_cs.c
673
surf.format = G_028040_FORMAT(track->db_z_info);
drivers/gpu/drm/radeon/evergreen_cs.c
681
switch (surf.format) {
drivers/gpu/drm/radeon/evergreen_cs.c
683
surf.format = V_028C70_COLOR_16;
drivers/gpu/drm/radeon/evergreen_cs.c
687
surf.format = V_028C70_COLOR_8_8_8_8;
drivers/gpu/drm/radeon/evergreen_cs.c
691
__func__, __LINE__, surf.format);
drivers/gpu/drm/radeon/evergreen_cs.c
779
surf.format = G_03001C_DATA_FORMAT(texdw[7]);
drivers/gpu/drm/radeon/evergreen_cs.c
781
surf.nbx = r600_fmt_get_nblocksx(surf.format, surf.nbx);
drivers/gpu/drm/radeon/evergreen_cs.c
782
surf.nby = r600_fmt_get_nblocksy(surf.format, height);
drivers/gpu/drm/radeon/evergreen_cs.c
793
if (!r600_fmt_is_valid_texture(surf.format, p->family)) {
drivers/gpu/drm/radeon/evergreen_cs.c
795
__func__, __LINE__, surf.format);
drivers/gpu/drm/radeon/evergreen_cs.c
880
surf.nbx = r600_fmt_get_nblocksx(surf.format, w);
drivers/gpu/drm/radeon/evergreen_cs.c
881
surf.nby = r600_fmt_get_nblocksy(surf.format, h);
drivers/gpu/drm/radeon/evergreen_cs.c
976
u32 format = G_028C70_FORMAT(track->cb_color_info[i]);
drivers/gpu/drm/radeon/evergreen_cs.c
978
if (format != V_028C70_COLOR_INVALID &&
drivers/gpu/drm/radeon/evergreen_hdmi.c
186
if (sad->format == eld_reg_to_type[i][1]) {
drivers/gpu/drm/radeon/evergreen_hdmi.c
194
if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM)
drivers/gpu/drm/radeon/r100.c
177
pitch_pixels = fb->pitches[0] / fb->format->cpp[0];
drivers/gpu/drm/radeon/r100.c
178
crtc_pitch = DIV_ROUND_UP(pitch_pixels * fb->format->cpp[0] * 8,
drivers/gpu/drm/radeon/r100.c
179
fb->format->cpp[0] * 8 * 8);
drivers/gpu/drm/radeon/r100.c
3251
pixel_bytes1 = fb->format->cpp[0];
drivers/gpu/drm/radeon/r100.c
3259
pixel_bytes2 = fb->format->cpp[0];
drivers/gpu/drm/radeon/r600_cs.c
1412
unsigned w0, unsigned h0, unsigned d0, unsigned nsamples, unsigned format,
drivers/gpu/drm/radeon/r600_cs.c
1423
blocksize = r600_fmt_get_blocksize(format);
drivers/gpu/drm/radeon/r600_cs.c
1430
nbx = r600_fmt_get_nblocksx(format, width);
drivers/gpu/drm/radeon/r600_cs.c
1435
nby = r600_fmt_get_nblocksy(format, height);
drivers/gpu/drm/radeon/r600_cs.c
1488
u32 format;
drivers/gpu/drm/radeon/r600_cs.c
1516
format = G_038004_DATA_FORMAT(word1);
drivers/gpu/drm/radeon/r600_cs.c
1525
array_check.blocksize = r600_fmt_get_blocksize(format);
drivers/gpu/drm/radeon/r600_cs.c
1554
if (!r600_fmt_is_valid_texture(format, p->family)) {
drivers/gpu/drm/radeon/r600_cs.c
1556
__func__, __LINE__, format);
drivers/gpu/drm/radeon/r600_cs.c
1595
r600_texture_size(nfaces, blevel, llevel, w0, h0, d0, array_check.nsamples, format,
drivers/gpu/drm/radeon/r600_cs.c
1602
array_check.array_mode, format, word2,
drivers/gpu/drm/radeon/r600_cs.c
177
bool r600_fmt_is_valid_color(u32 format)
drivers/gpu/drm/radeon/r600_cs.c
179
if (format >= ARRAY_SIZE(color_formats_table))
drivers/gpu/drm/radeon/r600_cs.c
182
if (color_formats_table[format].valid_color)
drivers/gpu/drm/radeon/r600_cs.c
188
bool r600_fmt_is_valid_texture(u32 format, enum radeon_family family)
drivers/gpu/drm/radeon/r600_cs.c
190
if (format >= ARRAY_SIZE(color_formats_table))
drivers/gpu/drm/radeon/r600_cs.c
193
if (family < color_formats_table[format].min_family)
drivers/gpu/drm/radeon/r600_cs.c
196
if (color_formats_table[format].blockwidth > 0)
drivers/gpu/drm/radeon/r600_cs.c
202
int r600_fmt_get_blocksize(u32 format)
drivers/gpu/drm/radeon/r600_cs.c
204
if (format >= ARRAY_SIZE(color_formats_table))
drivers/gpu/drm/radeon/r600_cs.c
207
return color_formats_table[format].blocksize;
drivers/gpu/drm/radeon/r600_cs.c
210
int r600_fmt_get_nblocksx(u32 format, u32 w)
drivers/gpu/drm/radeon/r600_cs.c
214
if (format >= ARRAY_SIZE(color_formats_table))
drivers/gpu/drm/radeon/r600_cs.c
217
bw = color_formats_table[format].blockwidth;
drivers/gpu/drm/radeon/r600_cs.c
224
int r600_fmt_get_nblocksy(u32 format, u32 h)
drivers/gpu/drm/radeon/r600_cs.c
228
if (format >= ARRAY_SIZE(color_formats_table))
drivers/gpu/drm/radeon/r600_cs.c
231
bh = color_formats_table[format].blockheight;
drivers/gpu/drm/radeon/r600_cs.c
358
u32 format;
drivers/gpu/drm/radeon/r600_cs.c
362
format = G_0280A0_FORMAT(track->cb_color_info[i]);
drivers/gpu/drm/radeon/r600_cs.c
363
if (!r600_fmt_is_valid_color(format)) {
drivers/gpu/drm/radeon/r600_cs.c
365
__func__, __LINE__, format,
drivers/gpu/drm/radeon/r600_cs.c
384
array_check.blocksize = r600_fmt_get_blocksize(format);
drivers/gpu/drm/radeon/r600_cs.c
429
tmp = r600_fmt_get_nblocksy(format, height) * r600_fmt_get_nblocksx(format, pitch) *
drivers/gpu/drm/radeon/r600_cs.c
430
r600_fmt_get_blocksize(format) * nsamples;
drivers/gpu/drm/radeon/r600_cs.c
456
pitch, height, r600_fmt_get_nblocksx(format, pitch),
drivers/gpu/drm/radeon/r600_cs.c
457
r600_fmt_get_nblocksy(format, height),
drivers/gpu/drm/radeon/r600_cs.c
458
r600_fmt_get_blocksize(format));
drivers/gpu/drm/radeon/r600_cs.c
755
u32 format = G_0280A0_FORMAT(track->cb_color_info[i]);
drivers/gpu/drm/radeon/r600_cs.c
757
if (format != V_0280A0_COLOR_INVALID &&
drivers/gpu/drm/radeon/radeon.h
2892
bool r600_fmt_is_valid_color(u32 format);
drivers/gpu/drm/radeon/radeon.h
2893
bool r600_fmt_is_valid_texture(u32 format, enum radeon_family family);
drivers/gpu/drm/radeon/radeon.h
2894
int r600_fmt_get_blocksize(u32 format);
drivers/gpu/drm/radeon/radeon.h
2895
int r600_fmt_get_nblocksx(u32 format, u32 w);
drivers/gpu/drm/radeon/radeon.h
2896
int r600_fmt_get_nblocksy(u32 format, u32 h);
drivers/gpu/drm/radeon/radeon_atombios.c
3928
ATOM_MEMORY_TIMING_FORMAT *format;
drivers/gpu/drm/radeon/radeon_atombios.c
3939
format = &vram_module->asMemTiming[0];
drivers/gpu/drm/radeon/radeon_atombios.c
3941
mclk_range_table->mclk[i] = le32_to_cpu(format->ulClkRange);
drivers/gpu/drm/radeon/radeon_atombios.c
3942
format = (ATOM_MEMORY_TIMING_FORMAT *)
drivers/gpu/drm/radeon/radeon_atombios.c
3943
((u8 *)format + mem_timing_size);
drivers/gpu/drm/radeon/radeon_atombios.c
4004
ATOM_INIT_REG_INDEX_FORMAT *format = ®_block->asRegIndexBuf[0];
drivers/gpu/drm/radeon/radeon_atombios.c
4010
if (format->ucPreRegDataLength & ACCESS_PLACEHOLDER)
drivers/gpu/drm/radeon/radeon_atombios.c
4013
(u16)(le16_to_cpu(format->usRegIndex));
drivers/gpu/drm/radeon/radeon_atombios.c
4015
(u8)(format->ucPreRegDataLength);
drivers/gpu/drm/radeon/radeon_atombios.c
4017
format = (ATOM_INIT_REG_INDEX_FORMAT *)
drivers/gpu/drm/radeon/radeon_atombios.c
4018
((u8 *)format + sizeof(ATOM_INIT_REG_INDEX_FORMAT));
drivers/gpu/drm/radeon/radeon_display.c
550
pitch_pixels = fb->pitches[0] / fb->format->cpp[0];
drivers/gpu/drm/radeon/radeon_display.c
556
int byteshift = fb->format->cpp[0] * 8 >> 4;
drivers/gpu/drm/radeon/radeon_display.c
562
switch (fb->format->cpp[0] * 8) {
drivers/gpu/drm/radeon/radeon_drv.c
313
const struct drm_format_info *format;
drivers/gpu/drm/radeon/radeon_drv.c
356
format = drm_format_info(DRM_FORMAT_C8);
drivers/gpu/drm/radeon/radeon_drv.c
358
format = drm_format_info(DRM_FORMAT_RGB565);
drivers/gpu/drm/radeon/radeon_drv.c
360
format = NULL;
drivers/gpu/drm/radeon/radeon_drv.c
362
drm_client_setup(ddev, format);
drivers/gpu/drm/radeon/radeon_fbdev.c
266
DRM_INFO("fb depth is %d\n", fb->format->depth);
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
380
int format;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
393
switch (target_fb->format->cpp[0] * 8) {
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
395
format = 2;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
398
format = 3;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
401
format = 4;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
404
format = 5;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
407
format = 6;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
467
pitch_pixels = target_fb->pitches[0] / target_fb->format->cpp[0];
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
468
crtc_pitch = DIV_ROUND_UP(pitch_pixels * target_fb->format->cpp[0] * 8,
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
469
target_fb->format->cpp[0] * 8 * 8);
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
494
int byteshift = target_fb->format->cpp[0] * 8 >> 4;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
501
switch (target_fb->format->cpp[0] * 8) {
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
530
gen_cntl_val |= (format << 8);
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
570
int format;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
592
switch (fb->format->cpp[0] * 8) {
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
594
format = 2;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
597
format = 3;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
600
format = 4;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
603
format = 5;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
606
format = 6;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
646
crtc2_gen_cntl |= ((format << 8)
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
680
| (format << 8)
drivers/gpu/drm/radeon/rs600.c
135
fb->pitches[0] / fb->format->cpp[0]);
drivers/gpu/drm/radeon/rv770.c
816
fb->pitches[0] / fb->format->cpp[0]);
drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c
338
return to_rcar_plane_state(plane->plane.state)->format;
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
436
const struct rcar_du_format_info *format;
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
442
format = rcar_du_format_info(mode_cmd->pixel_format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
443
if (format == NULL) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
455
unsigned int bpp = format->planes == 1 ? format->bpp / 8 : 1;
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
485
chroma_pitch = mode_cmd->pitches[0] / format->hsub;
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
486
if (format->planes == 2)
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
489
for (i = 1; i < format->planes; ++i) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
100
unsigned int num_planes = state->format->planes;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
162
if (!new_plane_state->format) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
239
new_plane_state->format ?
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
240
new_plane_state->format->planes : 0,
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
272
if (!new_plane_state->format ||
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
299
__func__, new_plane_state->format->planes, idx);
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
347
if (state->format->planes == 2)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
350
pitch = fb->pitches[0] * 8 / state->format->bpp;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
352
for (i = 0; i < state->format->planes; ++i) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
367
(interlaced && state->format->bpp == 32) ?
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
385
(!interlaced && state->format->bpp == 32 ? 2 : 1));
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
389
if (state->format->planes == 2) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
396
(state->format->bpp == 16 ? 2 : 1) / 2);
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
419
if (state->format->fourcc != DRM_FORMAT_XRGB1555)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
425
pnmr = PnMR_BM_MD | state->format->pnmr;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
436
if (state->format->fourcc == DRM_FORMAT_YUYV)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
441
switch (state->format->fourcc) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
481
if (state->format->planes == 2) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
483
if (state->format->fourcc == DRM_FORMAT_NV12 ||
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
484
state->format->fourcc == DRM_FORMAT_NV21)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
487
if (state->format->fourcc == DRM_FORMAT_NV21)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
498
ddcr4 = state->format->edf | PnDDCR4_CODE;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
510
u32 pnmr = state->format->pnmr | PnMR_SPIM_TP_OFF;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
520
state->format->edf | PnDDCR4_CODE);
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
567
if (state->format->planes == 2)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
59
if (!old_state->format ||
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
594
const struct rcar_du_format_info **format)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
60
old_state->format->planes != new_state->format->planes)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
607
*format = NULL;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
623
*format = NULL;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
627
*format = rcar_du_format_info(state->fb->format->format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
628
if (*format == NULL) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
630
&state->fb->format->format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
645
&rstate->format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c
78
if (state->format->planes == 2)
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.h
53
const struct rcar_du_format_info *format;
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.h
71
const struct rcar_du_format_info **format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
186
u32 fourcc = state->format->fourcc;
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
225
const struct rcar_du_format_info *format;
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
245
for (i = 0; i < state->format->planes; ++i)
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
249
format = rcar_du_format_info(fourcc);
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
250
cfg.pixelformat = format->v4l2;
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
265
for (i = 0; i < fb->format->num_planes; ++i) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
346
for (i = 0; i < fb->format->num_planes; ++i) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
374
&rstate->format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
77
.format = rcar_du_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.h
48
const struct rcar_du_format_info *format;
drivers/gpu/drm/renesas/rcar-du/rcar_du_writeback.c
167
wb_state->format = rcar_du_format_info(fb->format->format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_writeback.c
168
if (wb_state->format == NULL) {
drivers/gpu/drm/renesas/rcar-du/rcar_du_writeback.c
170
&fb->format->format);
drivers/gpu/drm/renesas/rcar-du/rcar_du_writeback.c
233
cfg->pixelformat = wb_state->format->v4l2;
drivers/gpu/drm/renesas/rcar-du/rcar_du_writeback.c
236
for (i = 0; i < wb_state->format->planes; ++i)
drivers/gpu/drm/renesas/rcar-du/rcar_du_writeback.c
28
const struct rcar_du_format_info *format;
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
399
fout_target = target * mipi_dsi_pixel_format_to_bpp(dsi->format)
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
462
switch (mipi_dsi_pixel_format_to_bpp(dsi->format)) {
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
532
dsi_format = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
74
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
930
dsi->format = device->format;
drivers/gpu/drm/renesas/rz-du/rzg2l_du_kms.c
197
const struct rzg2l_du_format_info *format;
drivers/gpu/drm/renesas/rz-du/rzg2l_du_kms.c
200
format = rzg2l_du_format_info(mode_cmd->pixel_format);
drivers/gpu/drm/renesas/rz-du/rzg2l_du_kms.c
201
if (!format) {
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
123
const struct rzg2l_du_format_info *format;
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
130
u32 fourcc = state->format->fourcc;
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
143
for (i = 0; i < state->format->planes; ++i) {
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
166
format = rzg2l_du_format_info(fourcc);
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
167
cfg.pixelformat = format->v4l2;
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
177
const struct rzg2l_du_format_info **format)
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
189
*format = NULL;
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
205
*format = NULL;
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
209
*format = rzg2l_du_format_info(state->fb->format->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c
221
return __rzg2l_du_vsp_plane_atomic_check(plane, new_plane_state, &rstate->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.h
48
const struct rzg2l_du_format_info *format;
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1135
bpp = mipi_dsi_pixel_format_to_bpp(device->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1144
device->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1149
dev_err(dsi->dev, "Unsupported format 0x%04x\n", device->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1154
dsi->format = device->format;
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
569
bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
585
bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
843
dsi_format = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
86
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/renesas/shmobile/shmob_drm_kms.c
123
const struct shmob_drm_format_info *format;
drivers/gpu/drm/renesas/shmobile/shmob_drm_kms.c
125
format = shmob_drm_format_info(mode_cmd->pixel_format);
drivers/gpu/drm/renesas/shmobile/shmob_drm_kms.c
126
if (format == NULL) {
drivers/gpu/drm/renesas/shmobile/shmob_drm_kms.c
138
if (shmob_drm_format_is_yuv(format)) {
drivers/gpu/drm/renesas/shmobile/shmob_drm_kms.c
139
unsigned int chroma_cpp = format->bpp == 24 ? 2 : 1;
drivers/gpu/drm/renesas/shmobile/shmob_drm_kms.h
26
#define shmob_drm_format_is_yuv(format) ((format)->lddfr & LDDFR_CC)
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
117
lcdc_write(sdev, LDBnBSIFR(splane->index), format);
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
129
if (shmob_drm_format_is_yuv(sstate->format))
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
161
sstate->format = NULL;
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
177
sstate->format = NULL;
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
181
sstate->format = shmob_drm_format_info(new_plane_state->fb->format->format);
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
182
if (!sstate->format) {
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
185
&new_plane_state->fb->format->format);
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
31
const struct shmob_drm_format_info *format;
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
53
bpp = shmob_drm_format_is_yuv(sstate->format) ? 8 : sstate->format->bpp;
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
58
if (shmob_drm_format_is_yuv(sstate->format)) {
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
59
bpp = sstate->format->bpp - 8;
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
75
lcdc_write(sdev, LDDFR, sstate->format->lddfr | LDDFR_CF1);
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
79
lcdc_write(sdev, LDDDSR, sstate->format->ldddsr);
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
82
if (shmob_drm_format_is_yuv(sstate->format))
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
94
u32 format;
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
97
format = LDBBSIFR_EN | ((state->alpha >> 8) << LDBBSIFR_LAY_SHIFT) |
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
98
sstate->format->ldbbsifr;
drivers/gpu/drm/rockchip/cdn-dp-core.c
768
audio.format = AFMT_I2S;
drivers/gpu/drm/rockchip/cdn-dp-core.c
771
audio.format = AFMT_SPDIF;
drivers/gpu/drm/rockchip/cdn-dp-core.c
800
dp->audio_info.format = AFMT_UNUSED;
drivers/gpu/drm/rockchip/cdn-dp-core.h
27
enum audio_format format;
drivers/gpu/drm/rockchip/cdn-dp-reg.c
813
if (audio->format == AFMT_SPDIF)
drivers/gpu/drm/rockchip/cdn-dp-reg.c
938
if (audio->format == AFMT_SPDIF) {
drivers/gpu/drm/rockchip/cdn-dp-reg.c
951
if (audio->format == AFMT_I2S)
drivers/gpu/drm/rockchip/cdn-dp-reg.c
953
else if (audio->format == AFMT_SPDIF)
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
301
u32 format;
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
561
unsigned long mode_flags, u32 lanes, u32 format,
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
576
dsi->format = format;
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
577
bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
581
dsi->format);
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
778
switch (dsi->format) {
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
126
unsigned long mode_flags, u32 lanes, u32 format,
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
136
dsi2->format = format;
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
137
bpp = mipi_dsi_pixel_format_to_bpp(format);
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
139
dev_err(dsi2->dev, "failed to get bpp for pixel format %d\n", format);
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
220
switch (dsi2->format) {
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
250
switch (dsi2->format) {
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
67
u32 format;
drivers/gpu/drm/rockchip/dw_dp-rockchip.c
42
u32 bus_format = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1008
if (fb->format->char_per_block[1])
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1009
offset = drm_format_info_min_pitch(fb->format, 1,
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1012
offset = (src->x1 >> 16) * fb->format->cpp[1];
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1013
offset /= fb->format->hsub;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1014
offset += (src->y1 >> 16) * fb->pitches[1] / fb->format->vsub;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1027
uv_swap = has_uv_swapped(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1034
fb->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1040
rb_swap = has_rb_swapped(vop->data->version, fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
1050
if (fb->format->has_alpha && win_index > 0) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
251
static bool has_rb_swapped(uint32_t version, uint32_t format)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
253
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
272
static bool has_uv_swapped(uint32_t format)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
274
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
284
static bool is_fmt_10(uint32_t format)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
286
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
296
static enum vop_data_format vop_convert_format(uint32_t format)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
298
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
323
DRM_ERROR("unsupported format[%08x]\n", format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
328
static int vop_convert_afbc_format(uint32_t format)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
330
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
343
DRM_DEBUG_KMS("unsupported AFBC format[%08x]\n", format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
797
u32 format, u64 modifier)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
808
return vop_convert_afbc_format(format) >= 0;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
843
ret = vop_convert_format(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
851
if (fb->format->is_yuv && ((new_plane_state->src.x1 >> 16) % 2)) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
856
if (fb->format->is_yuv && new_plane_state->rotation & DRM_MODE_REFLECT_Y) {
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
869
ret = vop_convert_afbc_format(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
932
int format;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
933
int is_yuv = fb->format->is_yuv;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
964
if (fb->format->char_per_block[0])
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
965
offset = drm_format_info_min_pitch(fb->format, 0,
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
968
offset = (src->x1 >> 16) * fb->format->cpp[0];
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
980
format = vop_convert_format(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
985
int afbc_format = vop_convert_afbc_format(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
987
VOP_AFBC_SET(vop, format, afbc_format | AFBC_TILE_16x16);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
994
VOP_WIN_SET(vop, win, format, format);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
995
VOP_WIN_SET(vop, win, fmt_10, is_fmt_10(fb->format->format));
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
189
struct vop_reg format;
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
61
struct vop_reg format;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1021
format = vop2_convert_format(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1023
if (WARN_ON(format < 0))
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1024
return format;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1052
if (fb->format->is_yuv && src_x % 2) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1077
(fb->pitches[0] << 3) / vop2_get_bpp(fb->format) % 64) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1118
if (!(color_key & VOP2_COLOR_KEY_MASK) || fb->format->is_yuv) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1123
switch (fb->format->format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1164
u32 bpp = vop2_get_bpp(fb->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1167
u32 format;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1200
offset = (src->x1 >> 16) * fb->format->cpp[0];
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1215
if (fb->format->is_yuv) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1216
int hsub = fb->format->hsub;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1217
int vsub = fb->format->vsub;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1219
offset = (src->x1 >> 16) * fb->format->cpp[1] / hsub;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1250
format = vop2_convert_format(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1256
&fb->format->format,
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1277
afbc_format = vop2_convert_afbc_format(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1294
uv_swap = vop2_afbc_uv_swap(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1304
if (fb->format->is_yuv && bpp == 10)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1305
format = VOP2_CLUSTER_YUV444_10;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1362
vop2_win_write(win, VOP2_WIN_FORMAT, format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1365
rb_swap = vop2_win_rb_swap(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1367
uv_swap = vop2_win_uv_swap(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1370
if (fb->format->is_yuv) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1375
vop2_setup_scale(vop2, win, src_w, src_h, dsp_w, dsp_h, fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1384
dither_up = vop2_win_dither_up(fb->format->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
158
static u32 vop2_get_bpp(const struct drm_format_info *format)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
160
switch (format->format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
168
return drm_format_info_bpp(format, 0);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
172
static enum vop2_data_format vop2_convert_format(u32 format)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
174
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1938
&fb->format->format,
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1950
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
216
DRM_ERROR("unsupported format[%08x]\n", format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
221
static enum vop2_afbc_format vop2_convert_afbc_format(u32 format)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
223
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
258
static bool vop2_win_rb_swap(u32 format)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
260
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
273
static bool vop2_afbc_uv_swap(u32 format)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
275
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
286
static bool vop2_win_uv_swap(u32 format)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
288
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
303
static bool vop2_win_dither_up(u32 format)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
305
switch (format) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
370
static bool rockchip_vop2_mod_supported(struct drm_plane *plane, u32 format,
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
391
(format == DRM_FORMAT_XRGB2101010 || format == DRM_FORMAT_XBGR2101010)) {
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
401
if (vop2_convert_afbc_format(format) == VOP2_AFBC_FMT_INVALID)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
430
u32 bpp = vop2_get_bpp(fb->format);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
705
int is_input_yuv = pstate->fb->format->is_yuv;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
998
int format;
drivers/gpu/drm/rockchip/rockchip_lvds.c
249
val = lvds->format | LVDS_CH0_EN;
drivers/gpu/drm/rockchip/rockchip_lvds.c
371
PX30_LVDS_FORMAT(lvds->format),
drivers/gpu/drm/rockchip/rockchip_lvds.c
372
PX30_LVDS_FORMAT(lvds->format));
drivers/gpu/drm/rockchip/rockchip_lvds.c
56
int format; /* vesa or jeida format */
drivers/gpu/drm/rockchip/rockchip_lvds.c
583
lvds->format = LVDS_VESA_18;
drivers/gpu/drm/rockchip/rockchip_lvds.c
585
lvds->format = rockchip_lvds_name_to_format(name);
drivers/gpu/drm/rockchip/rockchip_lvds.c
587
if (lvds->format < 0) {
drivers/gpu/drm/rockchip/rockchip_lvds.c
588
ret = dev_err_probe(dev, lvds->format,
drivers/gpu/drm/rockchip/rockchip_vop2_reg.c
2025
pixel_alpha_en = fb->format->has_alpha;
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
1004
.format = VOP_REG(RK3399_WIN0_CTRL0, 0x7, 1),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
1042
.format = VOP_REG(RK3399_AFBCD0_CTRL, 0x1f, 16),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
1208
.format = VOP_REG(RK3506_WIN1_CTRL0, 0x7, 4),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
121
.format = VOP_REG(RK3036_SYS_CTRL, 0x7, 3),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
141
.format = VOP_REG(RK3036_SYS_CTRL, 0x7, 6),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
212
.format = VOP_REG(RK3036_SYS_CTRL, 0x7, 6),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
309
.format = VOP_REG(PX30_WIN0_CTRL0, 0x7, 1),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
329
.format = VOP_REG(PX30_WIN1_CTRL0, 0x7, 4),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
347
.format = VOP_REG(PX30_WIN2_CTRL0, 0x3, 5),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
409
.format = VOP_REG(RK3066_SYS_CTRL1, 0x7, 4),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
428
.format = VOP_REG(RK3066_SYS_CTRL1, 0x7, 7),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
447
.format = VOP_REG(RK3066_SYS_CTRL1, 0x7, 10),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
535
.format = VOP_REG(RK3188_SYS_CTRL, 0x7, 3),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
554
.format = VOP_REG(RK3188_SYS_CTRL, 0x7, 6),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
667
.format = VOP_REG(RK3288_WIN0_CTRL0, 0x7, 1),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
689
.format = VOP_REG(RK3288_WIN2_CTRL0, 0x7, 1),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
809
.format = VOP_REG(RK3368_WIN0_CTRL0, 0x7, 1),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
832
.format = VOP_REG(RK3368_WIN2_CTRL0, 0x3, 5),
drivers/gpu/drm/rockchip/rockchip_vop_reg.c
980
.format = VOP_REG(RK3399_WIN0_CTRL0, 0x7, 1),
drivers/gpu/drm/sitronix/st7571.c
163
switch (fb->format->format) {
drivers/gpu/drm/sitronix/st7571.c
188
switch (fb->format->format) {
drivers/gpu/drm/sitronix/st7571.c
234
u32 format = fb->format->format;
drivers/gpu/drm/sitronix/st7571.c
243
switch (format) {
drivers/gpu/drm/sitronix/st7571.c
279
if (format == DRM_FORMAT_R1)
drivers/gpu/drm/sitronix/st7920.c
372
if (plane_state->fb->format != fi) {
drivers/gpu/drm/solomon/ssd130x.c
1108
if (plane_state->fb->format != fi) {
drivers/gpu/drm/solomon/ssd130x.c
1157
if (plane_state->fb->format != fi) {
drivers/gpu/drm/sprd/sprd_dpu.c
170
u32 format = 0;
drivers/gpu/drm/sprd/sprd_dpu.c
172
switch (fb->format->format) {
drivers/gpu/drm/sprd/sprd_dpu.c
175
format |= BIT_DPU_LAY_DATA_ENDIAN_B3B2B1B0;
drivers/gpu/drm/sprd/sprd_dpu.c
176
format |= BIT_DPU_LAY_FORMAT_ARGB8888;
drivers/gpu/drm/sprd/sprd_dpu.c
181
format |= BIT_DPU_LAY_DATA_ENDIAN_B3B2B1B0;
drivers/gpu/drm/sprd/sprd_dpu.c
185
format |= BIT_DPU_LAY_RB_OR_UV_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
188
format |= BIT_DPU_LAY_FORMAT_ARGB8888;
drivers/gpu/drm/sprd/sprd_dpu.c
192
format |= BIT_DPU_LAY_RB_OR_UV_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
195
format |= BIT_DPU_LAY_FORMAT_ARGB8888;
drivers/gpu/drm/sprd/sprd_dpu.c
199
format |= BIT_DPU_LAY_RB_OR_UV_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
202
format |= BIT_DPU_LAY_FORMAT_RGB565;
drivers/gpu/drm/sprd/sprd_dpu.c
206
format |= BIT_DPU_LAY_FORMAT_YUV420_2PLANE;
drivers/gpu/drm/sprd/sprd_dpu.c
208
format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3;
drivers/gpu/drm/sprd/sprd_dpu.c
210
format |= BIT_DPU_LAY_NO_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
214
format |= BIT_DPU_LAY_FORMAT_YUV420_2PLANE;
drivers/gpu/drm/sprd/sprd_dpu.c
216
format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3;
drivers/gpu/drm/sprd/sprd_dpu.c
218
format |= BIT_DPU_LAY_RB_OR_UV_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
222
format |= BIT_DPU_LAY_FORMAT_YUV422_2PLANE;
drivers/gpu/drm/sprd/sprd_dpu.c
224
format |= BIT_DPU_LAY_DATA_ENDIAN_B3B2B1B0;
drivers/gpu/drm/sprd/sprd_dpu.c
226
format |= BIT_DPU_LAY_RB_OR_UV_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
230
format |= BIT_DPU_LAY_FORMAT_YUV422_2PLANE;
drivers/gpu/drm/sprd/sprd_dpu.c
232
format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3;
drivers/gpu/drm/sprd/sprd_dpu.c
234
format |= BIT_DPU_LAY_NO_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
237
format |= BIT_DPU_LAY_FORMAT_YUV420_3PLANE;
drivers/gpu/drm/sprd/sprd_dpu.c
239
format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3;
drivers/gpu/drm/sprd/sprd_dpu.c
241
format |= BIT_DPU_LAY_NO_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
244
format |= BIT_DPU_LAY_FORMAT_YUV420_3PLANE;
drivers/gpu/drm/sprd/sprd_dpu.c
246
format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3;
drivers/gpu/drm/sprd/sprd_dpu.c
248
format |= BIT_DPU_LAY_RB_OR_UV_SWITCH;
drivers/gpu/drm/sprd/sprd_dpu.c
254
return format;
drivers/gpu/drm/sprd/sprd_dpu.c
325
u32 addr, size, offset, pitch, blend, format, rotation;
drivers/gpu/drm/sprd/sprd_dpu.c
339
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/sprd/sprd_dpu.c
351
if (fb->format->num_planes == 3) {
drivers/gpu/drm/sprd/sprd_dpu.c
353
pitch = (fb->pitches[0] / fb->format->cpp[0]) |
drivers/gpu/drm/sprd/sprd_dpu.c
354
(fb->pitches[0] / fb->format->cpp[0] << 15);
drivers/gpu/drm/sprd/sprd_dpu.c
356
pitch = fb->pitches[0] / fb->format->cpp[0];
drivers/gpu/drm/sprd/sprd_dpu.c
366
format = drm_format_to_dpu(fb);
drivers/gpu/drm/sprd/sprd_dpu.c
371
format |
drivers/gpu/drm/sprd/sprd_dsi.c
469
coding = fmt_to_coding(dsi->slave->format);
drivers/gpu/drm/sprd/sprd_dsi.c
591
coding = fmt_to_coding(dsi->slave->format);
drivers/gpu/drm/sti/sti_gdp.c
158
if (gdp_format_to_str[i].format == (val & 0x1F)) {
drivers/gpu/drm/sti/sti_gdp.c
378
static int sti_gdp_get_alpharange(int format)
drivers/gpu/drm/sti/sti_gdp.c
380
switch (format) {
drivers/gpu/drm/sti/sti_gdp.c
45
int format;
drivers/gpu/drm/sti/sti_gdp.c
634
int format;
drivers/gpu/drm/sti/sti_gdp.c
658
format = sti_gdp_fourcc2format(fb->format->format);
drivers/gpu/drm/sti/sti_gdp.c
659
if (format == -1) {
drivers/gpu/drm/sti/sti_gdp.c
661
(char *)&fb->format->format);
drivers/gpu/drm/sti/sti_gdp.c
727
int format;
drivers/gpu/drm/sti/sti_gdp.c
780
format = sti_gdp_fourcc2format(fb->format->format);
drivers/gpu/drm/sti/sti_gdp.c
781
top_field->gam_gdp_ctl |= format;
drivers/gpu/drm/sti/sti_gdp.c
782
top_field->gam_gdp_ctl |= sti_gdp_get_alpharange(format);
drivers/gpu/drm/sti/sti_gdp.c
788
(char *)&fb->format->format,
drivers/gpu/drm/sti/sti_gdp.c
792
bpp = fb->format->cpp[0];
drivers/gpu/drm/sti/sti_hqvdp.c
1188
(char *)&fb->format->format,
drivers/gpu/drm/sti/sti_plane.c
81
(char *)&state->fb->format->format,
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
422
unsigned long mode_flags, u32 lanes, u32 format,
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
432
bpp = mipi_dsi_pixel_format_to_bpp(format);
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
458
dsi_color_from_mipi(format) << 1);
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
494
unsigned long mode_flags, u32 lanes, u32 format)
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
500
bpp = mipi_dsi_pixel_format_to_bpp(format);
drivers/gpu/drm/stm/ltdc.c
1315
pf = to_ltdc_pixelformat(fb->format->format);
drivers/gpu/drm/stm/ltdc.c
1326
(char *)&fb->format->format);
drivers/gpu/drm/stm/ltdc.c
1337
if (!fb->format->has_alpha)
drivers/gpu/drm/stm/ltdc.c
1358
paddr += (fb->format->cpp[0] * (x1 - x0 + 1)) - 1;
drivers/gpu/drm/stm/ltdc.c
1367
line_length = fb->format->cpp[0] *
drivers/gpu/drm/stm/ltdc.c
1384
if (fb->format->is_yuv) {
drivers/gpu/drm/stm/ltdc.c
1385
switch (fb->format->format) {
drivers/gpu/drm/stm/ltdc.c
1392
paddr1 += ((fb->format->cpp[1] * (x1 - x0 + 1)) >> 1) - 1;
drivers/gpu/drm/stm/ltdc.c
1405
paddr1 += ((fb->format->cpp[1] * (x1 - x0 + 1)) >> 1) - 1;
drivers/gpu/drm/stm/ltdc.c
1406
paddr2 += ((fb->format->cpp[2] * (x1 - x0 + 1)) >> 1) - 1;
drivers/gpu/drm/stm/ltdc.c
1423
paddr1 += ((fb->format->cpp[1] * (x1 - x0 + 1)) >> 1) - 1;
drivers/gpu/drm/stm/ltdc.c
1424
paddr2 += ((fb->format->cpp[2] * (x1 - x0 + 1)) >> 1) - 1;
drivers/gpu/drm/stm/ltdc.c
1441
if (fb->format->num_planes > 1) {
drivers/gpu/drm/stm/ltdc.c
1451
line_length = ((fb->format->cpp[1] * (x1 - x0 + 1)) >> 1) +
drivers/gpu/drm/stm/ltdc.c
1467
ltdc_set_ycbcr_config(plane, fb->format->format);
drivers/gpu/drm/stm/ltdc.c
1475
val = fb->format->format == DRM_FORMAT_C8 ? LXCR_CLUTEN : 0;
drivers/gpu/drm/sun4i/sun4i_backend.c
101
static int sun4i_backend_drm_format_to_layer(u32 format, u32 *mode)
drivers/gpu/drm/sun4i/sun4i_backend.c
103
switch (format) {
drivers/gpu/drm/sun4i/sun4i_backend.c
201
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/sun4i/sun4i_backend.c
202
const uint32_t fmt = format->format;
drivers/gpu/drm/sun4i/sun4i_backend.c
220
if (drm_format_info_is_yuv_packed(format) &&
drivers/gpu/drm/sun4i/sun4i_backend.c
221
drm_format_info_is_yuv_sampling_422(format))
drivers/gpu/drm/sun4i/sun4i_backend.c
274
if (fb->format->is_yuv)
drivers/gpu/drm/sun4i/sun4i_backend.c
277
ret = sun4i_backend_drm_format_to_layer(fb->format->format, &val);
drivers/gpu/drm/sun4i/sun4i_backend.c
347
if (fb->format->is_yuv)
drivers/gpu/drm/sun4i/sun4i_backend.c
413
uint32_t format = state->fb->format->format;
drivers/gpu/drm/sun4i/sun4i_backend.c
419
if (!sun4i_frontend_format_is_supported(format, modifier))
drivers/gpu/drm/sun4i/sun4i_backend.c
422
if (!sun4i_backend_format_is_supported(format, modifier))
drivers/gpu/drm/sun4i/sun4i_backend.c
507
if (fb->format->is_yuv) {
drivers/gpu/drm/sun4i/sun4i_backend.c
514
&fb->format->format);
drivers/gpu/drm/sun4i/sun4i_backend.c
515
if (fb->format->has_alpha || (plane_state->alpha != DRM_BLEND_ALPHA_OPAQUE))
drivers/gpu/drm/sun4i/sun4i_backend.c
587
if (fb->format->has_alpha || (p_state->alpha != DRM_BLEND_ALPHA_OPAQUE))
drivers/gpu/drm/sun4i/sun4i_frontend.c
183
if (fb->format->num_planes > 1) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
191
if (fb->format->num_planes > 2) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
201
if (fb->format->num_planes > 1)
drivers/gpu/drm/sun4i/sun4i_frontend.c
204
if (fb->format->num_planes > 2)
drivers/gpu/drm/sun4i/sun4i_frontend.c
213
if (fb->format->num_planes > 1)
drivers/gpu/drm/sun4i/sun4i_frontend.c
217
if (fb->format->num_planes > 2)
drivers/gpu/drm/sun4i/sun4i_frontend.c
222
swap = sun4i_frontend_format_chroma_requires_swap(fb->format->format);
drivers/gpu/drm/sun4i/sun4i_frontend.c
229
if (fb->format->num_planes > 1) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
237
if (fb->format->num_planes > 2) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
248
sun4i_frontend_drm_format_to_input_fmt(const struct drm_format_info *format,
drivers/gpu/drm/sun4i/sun4i_frontend.c
251
if (!format->is_yuv)
drivers/gpu/drm/sun4i/sun4i_frontend.c
253
else if (drm_format_info_is_yuv_sampling_411(format))
drivers/gpu/drm/sun4i/sun4i_frontend.c
255
else if (drm_format_info_is_yuv_sampling_420(format))
drivers/gpu/drm/sun4i/sun4i_frontend.c
257
else if (drm_format_info_is_yuv_sampling_422(format))
drivers/gpu/drm/sun4i/sun4i_frontend.c
259
else if (drm_format_info_is_yuv_sampling_444(format))
drivers/gpu/drm/sun4i/sun4i_frontend.c
268
sun4i_frontend_drm_format_to_input_mode(const struct drm_format_info *format,
drivers/gpu/drm/sun4i/sun4i_frontend.c
273
switch (format->num_planes) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
294
sun4i_frontend_drm_format_to_input_sequence(const struct drm_format_info *format,
drivers/gpu/drm/sun4i/sun4i_frontend.c
298
if (drm_format_info_is_yuv_planar(format)) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
303
switch (format->format) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
408
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/sun4i/sun4i_frontend.c
417
ret = sun4i_frontend_drm_format_to_input_fmt(format, &in_fmt_val);
drivers/gpu/drm/sun4i/sun4i_frontend.c
423
ret = sun4i_frontend_drm_format_to_input_mode(format, modifier,
drivers/gpu/drm/sun4i/sun4i_frontend.c
430
ret = sun4i_frontend_drm_format_to_input_sequence(format, &in_ps_val);
drivers/gpu/drm/sun4i/sun4i_frontend.c
446
ch1_phase_idx = (format->num_planes > 1) ? 1 : 0;
drivers/gpu/drm/sun4i/sun4i_frontend.c
466
if (format->is_yuv) {
drivers/gpu/drm/sun4i/sun4i_frontend.c
511
chroma_width = DIV_ROUND_UP(luma_width, fb->format->hsub);
drivers/gpu/drm/sun4i/sun4i_frontend.c
512
chroma_height = DIV_ROUND_UP(luma_height, fb->format->vsub);
drivers/gpu/drm/sun4i/sun4i_layer.c
115
uint32_t format, uint64_t modifier)
drivers/gpu/drm/sun4i/sun4i_layer.c
120
return sun4i_backend_format_is_supported(format, modifier);
drivers/gpu/drm/sun4i/sun4i_layer.c
122
return sun4i_backend_format_is_supported(format, modifier) ||
drivers/gpu/drm/sun4i/sun4i_layer.c
123
sun4i_frontend_format_is_supported(format, modifier);
drivers/gpu/drm/sun4i/sun4i_tcon.c
353
u8 bpp = mipi_dsi_pixel_format_to_bpp(device->format);
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
380
unsigned int Bpp = mipi_dsi_pixel_format_to_bpp(device->format) / 8;
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
404
unsigned int Bpp = mipi_dsi_pixel_format_to_bpp(device->format) / 8;
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
443
drq *= mipi_dsi_pixel_format_to_bpp(device->format);
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
490
switch (device->format) {
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
512
wc = mode->hdisplay * mipi_dsi_pixel_format_to_bpp(device->format) / 8;
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
534
int Bpp = mipi_dsi_pixel_format_to_bpp(device->format) / 8;
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
765
mipi_dsi_pixel_format_to_bpp(device->format),
drivers/gpu/drm/sun4i/sun8i_csc.c
210
const struct drm_format_info *format;
drivers/gpu/drm/sun4i/sun8i_csc.c
215
format = state->fb->format;
drivers/gpu/drm/sun4i/sun8i_csc.c
216
if (!format->is_yuv)
drivers/gpu/drm/sun4i/sun8i_csc.c
219
switch (format->format) {
drivers/gpu/drm/sun4i/sun8i_mixer.c
241
int sun8i_mixer_drm_format_to_hw(u32 format, u32 *hw_format)
drivers/gpu/drm/sun4i/sun8i_mixer.c
246
if (de2_formats[i].drm_fmt == format) {
drivers/gpu/drm/sun4i/sun8i_mixer.h
273
int sun8i_mixer_drm_format_to_hw(u32 format, u32 *hw_format);
drivers/gpu/drm/sun4i/sun8i_ui_layer.c
106
state->fb->format);
drivers/gpu/drm/sun4i/sun8i_ui_layer.c
140
bpp = fb->format->cpp[0];
drivers/gpu/drm/sun4i/sun8i_ui_layer.c
179
fmt = new_plane_state->fb->format;
drivers/gpu/drm/sun4i/sun8i_ui_layer.c
180
ret = sun8i_mixer_drm_format_to_hw(fmt->format, &hw_fmt);
drivers/gpu/drm/sun4i/sun8i_ui_layer.c
45
fmt = state->fb->format;
drivers/gpu/drm/sun4i/sun8i_ui_layer.c
46
sun8i_mixer_drm_format_to_hw(fmt->format, &hw_fmt);
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
101
if (format->vsub > 1) {
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
104
mask = format->vsub - 1;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
115
(state->src.x1 >> 16) & ~(format->hsub - 1),
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
116
(state->src.y1 >> 16) & ~(format->vsub - 1));
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
129
subsampled = format->hsub > 1 || format->vsub > 1;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
169
hscale, vscale, hphase, vphase, format);
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
199
const struct drm_format_info *format = fb->format;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
209
src_x = (state->src.x1 >> 16) & ~(format->hsub - 1);
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
210
src_y = (state->src.y1 >> 16) & ~(format->vsub - 1);
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
212
for (i = 0; i < format->num_planes; i++) {
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
225
dx /= format->hsub;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
226
dy /= format->vsub;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
230
dma_addr += dx * format->cpp[i];
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
270
fmt = new_plane_state->fb->format;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
271
ret = sun8i_mixer_drm_format_to_hw(fmt->format, &hw_fmt);
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
39
fmt = state->fb->format;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
40
sun8i_mixer_drm_format_to_hw(fmt->format, &hw_fmt);
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
69
const struct drm_format_info *format = state->fb->format;
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
92
if (format->hsub > 1) {
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
95
mask = format->hsub - 1;
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
1001
hscale, vscale, format);
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
875
const struct drm_format_info *format)
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
880
if (format->hsub == 1 && format->vsub == 1) {
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
932
const struct drm_format_info *format)
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
953
if (format->hsub == 2 && format->vsub == 2) {
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
965
if (format->hsub == 1 && format->vsub == 1)
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
988
SUN8I_VI_SCALER_SIZE(src_w / format->hsub,
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
989
src_h / format->vsub));
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
992
hscale / format->hsub);
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
995
vscale / format->vsub);
drivers/gpu/drm/sun4i/sun8i_vi_scaler.h
78
const struct drm_format_info *format);
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
157
const struct drm_format_info *format;
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
47
const struct drm_format_info *format,
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
266
if (drm_WARN_ON_ONCE(dev, !sysfb_crtc_state->format))
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
268
blit_to_crtc = drm_sysfb_get_blit_func(sysfb_crtc_state->format->format,
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
269
fb->format->format);
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
272
&fb->format->format, &sysfb_crtc_state->format->format);
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
313
new_sysfb_crtc_state->format = sysfb->fb_format;
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
315
if (new_fb->format != new_sysfb_crtc_state->format) {
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
341
const struct drm_format_info *dst_format = sysfb_crtc_state->format;
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
415
sb->format = sysfb->fb_format;
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
528
sysfb_crtc_state->format = sysfb->fb_format;
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c
553
new_sysfb_crtc_state->format = sysfb_crtc_state->format;
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
102
return format;
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
55
const struct drm_format_info *format,
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
61
lfb_linelength = drm_format_info_min_pitch(format, 0, width);
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
81
const struct drm_format_info *format = NULL;
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
94
format = drm_format_info(f->fourcc);
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
99
if (!format)
drivers/gpu/drm/sysfb/efidrm.c
145
const struct drm_format_info *format;
drivers/gpu/drm/sysfb/efidrm.c
185
format = efidrm_get_format_si(dev, si);
drivers/gpu/drm/sysfb/efidrm.c
186
if (!format)
drivers/gpu/drm/sysfb/efidrm.c
197
stride = drm_sysfb_get_stride_si(dev, si, format, width, height, resource_size(res));
drivers/gpu/drm/sysfb/efidrm.c
205
&format->format, width, height, stride);
drivers/gpu/drm/sysfb/efidrm.c
212
sysfb->fb_format = format;
drivers/gpu/drm/sysfb/efidrm.c
288
dev->mode_config.preferred_depth = format->depth;
drivers/gpu/drm/sysfb/efidrm.c
293
nformats = drm_sysfb_build_fourcc_list(dev, &format->format, 1,
drivers/gpu/drm/sysfb/ofdrm.c
1013
dev->mode_config.preferred_depth = format->depth;
drivers/gpu/drm/sysfb/ofdrm.c
1018
nformats = drm_sysfb_build_fourcc_list(dev, &format->format, 1,
drivers/gpu/drm/sysfb/ofdrm.c
102
format = drm_mode_legacy_fb_format(16, depth);
drivers/gpu/drm/sysfb/ofdrm.c
105
format = drm_mode_legacy_fb_format(32, 24);
drivers/gpu/drm/sysfb/ofdrm.c
117
switch (format) {
drivers/gpu/drm/sysfb/ofdrm.c
119
format = DRM_FORMAT_BGRX8888;
drivers/gpu/drm/sysfb/ofdrm.c
122
format = DRM_FORMAT_BGRA8888;
drivers/gpu/drm/sysfb/ofdrm.c
125
format = DRM_FORMAT_RGB565 | DRM_FORMAT_BIG_ENDIAN;
drivers/gpu/drm/sysfb/ofdrm.c
128
format = DRM_FORMAT_XRGB1555 | DRM_FORMAT_BIG_ENDIAN;
drivers/gpu/drm/sysfb/ofdrm.c
135
info = drm_format_info(format);
drivers/gpu/drm/sysfb/ofdrm.c
665
const struct drm_format_info *format)
drivers/gpu/drm/sysfb/ofdrm.c
670
switch (format->format) {
drivers/gpu/drm/sysfb/ofdrm.c
681
&format->format);
drivers/gpu/drm/sysfb/ofdrm.c
687
const struct drm_format_info *format,
drivers/gpu/drm/sysfb/ofdrm.c
693
switch (format->format) {
drivers/gpu/drm/sysfb/ofdrm.c
704
&format->format);
drivers/gpu/drm/sysfb/ofdrm.c
733
const struct drm_format_info *format = sysfb_crtc_state->format;
drivers/gpu/drm/sysfb/ofdrm.c
736
ofdrm_device_load_gamma(odev, format, crtc_state->gamma_lut->data);
drivers/gpu/drm/sysfb/ofdrm.c
738
ofdrm_device_fill_gamma(odev, format);
drivers/gpu/drm/sysfb/ofdrm.c
826
const struct drm_format_info *format;
drivers/gpu/drm/sysfb/ofdrm.c
903
format = display_get_validated_format(dev, depth, big_endian);
drivers/gpu/drm/sysfb/ofdrm.c
904
if (IS_ERR(format))
drivers/gpu/drm/sysfb/ofdrm.c
905
return ERR_CAST(format);
drivers/gpu/drm/sysfb/ofdrm.c
907
linebytes = drm_format_info_min_pitch(format, 0, width);
drivers/gpu/drm/sysfb/ofdrm.c
94
u32 format;
drivers/gpu/drm/sysfb/ofdrm.c
98
format = drm_mode_legacy_fb_format(8, 8);
drivers/gpu/drm/sysfb/ofdrm.c
987
sysfb->fb_format = format;
drivers/gpu/drm/sysfb/ofdrm.c
995
&format->format, width, height, linebytes);
drivers/gpu/drm/sysfb/simpledrm.c
110
return simplefb_get_validated_format(dev, pd->format);
drivers/gpu/drm/sysfb/simpledrm.c
173
const char *format;
drivers/gpu/drm/sysfb/simpledrm.c
174
int ret = simplefb_read_string_of(dev, of_node, "format", &format);
drivers/gpu/drm/sysfb/simpledrm.c
178
return simplefb_get_validated_format(dev, format);
drivers/gpu/drm/sysfb/simpledrm.c
604
const struct drm_format_info *format;
drivers/gpu/drm/sysfb/simpledrm.c
645
format = simplefb_get_format_pd(dev, pd);
drivers/gpu/drm/sysfb/simpledrm.c
646
if (IS_ERR(format))
drivers/gpu/drm/sysfb/simpledrm.c
647
return ERR_CAST(format);
drivers/gpu/drm/sysfb/simpledrm.c
658
format = simplefb_get_format_of(dev, of_node);
drivers/gpu/drm/sysfb/simpledrm.c
659
if (IS_ERR(format))
drivers/gpu/drm/sysfb/simpledrm.c
660
return ERR_CAST(format);
drivers/gpu/drm/sysfb/simpledrm.c
675
stride = drm_format_info_min_pitch(format, 0, width);
drivers/gpu/drm/sysfb/simpledrm.c
681
sysfb->fb_format = format;
drivers/gpu/drm/sysfb/simpledrm.c
686
&format->format, width, height, stride);
drivers/gpu/drm/sysfb/simpledrm.c
759
dev->mode_config.preferred_depth = format->depth;
drivers/gpu/drm/sysfb/simpledrm.c
764
nformats = drm_sysfb_build_fourcc_list(dev, &format->format, 1,
drivers/gpu/drm/sysfb/vesadrm.c
146
const struct drm_format_info *format)
drivers/gpu/drm/sysfb/vesadrm.c
151
switch (format->format) {
drivers/gpu/drm/sysfb/vesadrm.c
165
&format->format);
drivers/gpu/drm/sysfb/vesadrm.c
171
const struct drm_format_info *format,
drivers/gpu/drm/sysfb/vesadrm.c
177
switch (format->format) {
drivers/gpu/drm/sysfb/vesadrm.c
191
&format->format);
drivers/gpu/drm/sysfb/vesadrm.c
197
const struct drm_format_info *format)
drivers/gpu/drm/sysfb/vesadrm.c
202
switch (format->format) {
drivers/gpu/drm/sysfb/vesadrm.c
211
&format->format);
drivers/gpu/drm/sysfb/vesadrm.c
217
const struct drm_format_info *format,
drivers/gpu/drm/sysfb/vesadrm.c
223
switch (format->format) {
drivers/gpu/drm/sysfb/vesadrm.c
229
&format->format);
drivers/gpu/drm/sysfb/vesadrm.c
262
switch (sysfb->fb_format->format) {
drivers/gpu/drm/sysfb/vesadrm.c
267
switch (new_fb->format->format) {
drivers/gpu/drm/sysfb/vesadrm.c
273
if (new_sysfb_crtc_state->format->format != DRM_FORMAT_RGB332) {
drivers/gpu/drm/sysfb/vesadrm.c
274
new_sysfb_crtc_state->format =
drivers/gpu/drm/sysfb/vesadrm.c
285
if (new_sysfb_crtc_state->format->format == DRM_FORMAT_RGB332) {
drivers/gpu/drm/sysfb/vesadrm.c
286
new_sysfb_crtc_state->format = sysfb->fb_format;
drivers/gpu/drm/sysfb/vesadrm.c
325
switch (sysfb->fb_format->format) {
drivers/gpu/drm/sysfb/vesadrm.c
330
if (sysfb_crtc_state->format->format == DRM_FORMAT_RGB332) {
drivers/gpu/drm/sysfb/vesadrm.c
331
vesadrm_fill_palette_lut(vesa, sysfb_crtc_state->format);
drivers/gpu/drm/sysfb/vesadrm.c
334
sysfb_crtc_state->format,
drivers/gpu/drm/sysfb/vesadrm.c
337
vesadrm_fill_palette_lut(vesa, sysfb_crtc_state->format);
drivers/gpu/drm/sysfb/vesadrm.c
344
if (sysfb_crtc_state->format == sysfb->fb_format) {
drivers/gpu/drm/sysfb/vesadrm.c
347
sysfb_crtc_state->format,
drivers/gpu/drm/sysfb/vesadrm.c
350
vesadrm_fill_gamma_lut(vesa, sysfb_crtc_state->format);
drivers/gpu/drm/sysfb/vesadrm.c
352
vesadrm_fill_gamma_lut(vesa, sysfb_crtc_state->format);
drivers/gpu/drm/sysfb/vesadrm.c
395
const struct drm_format_info *format;
drivers/gpu/drm/sysfb/vesadrm.c
436
format = vesadrm_get_format_si(dev, si);
drivers/gpu/drm/sysfb/vesadrm.c
437
if (!format)
drivers/gpu/drm/sysfb/vesadrm.c
448
stride = drm_sysfb_get_stride_si(dev, si, format, width, height, resource_size(res));
drivers/gpu/drm/sysfb/vesadrm.c
456
&format->format, width, height, stride);
drivers/gpu/drm/sysfb/vesadrm.c
471
if (format->is_color_indexed)
drivers/gpu/drm/sysfb/vesadrm.c
480
sysfb->fb_format = format;
drivers/gpu/drm/sysfb/vesadrm.c
528
dev->mode_config.preferred_depth = format->depth;
drivers/gpu/drm/sysfb/vesadrm.c
533
nformats = drm_sysfb_build_fourcc_list(dev, &format->format, 1,
drivers/gpu/drm/tegra/dc.c
2333
const struct drm_format_info *fmt = state->fb->format;
drivers/gpu/drm/tegra/dc.c
360
yuv = tegra_plane_format_is_yuv(window->format, &planes, NULL);
drivers/gpu/drm/tegra/dc.c
366
tegra_plane_writel(plane, window->format, DC_WIN_COLOR_DEPTH);
drivers/gpu/drm/tegra/dc.c
642
err = tegra_plane_format(new_plane_state->fb->format->format,
drivers/gpu/drm/tegra/dc.c
643
&plane_state->format,
drivers/gpu/drm/tegra/dc.c
696
if (new_plane_state->fb->format->num_planes > 2) {
drivers/gpu/drm/tegra/dc.c
754
window.bits_per_pixel = fb->format->cpp[0] * 8;
drivers/gpu/drm/tegra/dc.c
761
window.format = tegra_plane_state->format;
drivers/gpu/drm/tegra/dc.c
764
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/tegra/dc.h
156
u32 format;
drivers/gpu/drm/tegra/drm.c
843
fb->format->depth,
drivers/gpu/drm/tegra/drm.c
844
fb->format->cpp[0] * 8,
drivers/gpu/drm/tegra/dsi.c
1476
dsi->format = device->format;
drivers/gpu/drm/tegra/dsi.c
1584
dsi->format = MIPI_DSI_FMT_RGB888;
drivers/gpu/drm/tegra/dsi.c
391
static int tegra_dsi_get_muldiv(enum mipi_dsi_pixel_format format,
drivers/gpu/drm/tegra/dsi.c
394
switch (format) {
drivers/gpu/drm/tegra/dsi.c
418
static int tegra_dsi_get_format(enum mipi_dsi_pixel_format format,
drivers/gpu/drm/tegra/dsi.c
421
switch (format) {
drivers/gpu/drm/tegra/dsi.c
45
enum tegra_dsi_format format;
drivers/gpu/drm/tegra/dsi.c
509
DSI_CONTROL_FORMAT(state->format) |
drivers/gpu/drm/tegra/dsi.c
71
enum mipi_dsi_pixel_format format;
drivers/gpu/drm/tegra/dsi.c
968
err = tegra_dsi_get_muldiv(dsi->format, &state->mul, &state->div);
drivers/gpu/drm/tegra/dsi.c
974
err = tegra_dsi_get_format(dsi->format, &state->format);
drivers/gpu/drm/tegra/dsi.c
985
DRM_DEBUG_KMS("format: %u, vrefresh: %u\n", state->format,
drivers/gpu/drm/tegra/fb.c
121
for (i = 0; i < fb->format->num_planes; i++)
drivers/gpu/drm/tegra/hda.c
12
void tegra_hda_parse_format(unsigned int format, struct tegra_hda_format *fmt)
drivers/gpu/drm/tegra/hda.c
16
if (format & AC_FMT_TYPE_NON_PCM)
drivers/gpu/drm/tegra/hda.c
21
if (format & AC_FMT_BASE_44K)
drivers/gpu/drm/tegra/hda.c
26
mul = (format & AC_FMT_MULT_MASK) >> AC_FMT_MULT_SHIFT;
drivers/gpu/drm/tegra/hda.c
27
div = (format & AC_FMT_DIV_MASK) >> AC_FMT_DIV_SHIFT;
drivers/gpu/drm/tegra/hda.c
31
switch (format & AC_FMT_BITS_MASK) {
drivers/gpu/drm/tegra/hda.c
53
bits = (format & AC_FMT_BITS_MASK) >> AC_FMT_BITS_SHIFT;
drivers/gpu/drm/tegra/hda.c
59
channels = (format & AC_FMT_CHAN_MASK) >> AC_FMT_CHAN_SHIFT;
drivers/gpu/drm/tegra/hda.h
18
void tegra_hda_parse_format(unsigned int format, struct tegra_hda_format *fmt);
drivers/gpu/drm/tegra/hdmi.c
1306
if (hdmi->format.sample_rate > 0) {
drivers/gpu/drm/tegra/hdmi.c
1473
hdmi->format.sample_rate = hparms->sample_rate;
drivers/gpu/drm/tegra/hdmi.c
1474
hdmi->format.channels = hparms->channels;
drivers/gpu/drm/tegra/hdmi.c
1503
hdmi->format.sample_rate = 0;
drivers/gpu/drm/tegra/hdmi.c
1504
hdmi->format.channels = 0;
drivers/gpu/drm/tegra/hdmi.c
1538
hdmi->format.channels = 2;
drivers/gpu/drm/tegra/hdmi.c
1777
unsigned int format;
drivers/gpu/drm/tegra/hdmi.c
1783
format = value & SOR_AUDIO_HDA_CODEC_SCRATCH0_FMT_MASK;
drivers/gpu/drm/tegra/hdmi.c
1785
tegra_hda_parse_format(format, &hdmi->format);
drivers/gpu/drm/tegra/hdmi.c
480
if (regs[i].sample_rate == hdmi->format.sample_rate) {
drivers/gpu/drm/tegra/hdmi.c
535
if (hdmi->format.channels == 2)
drivers/gpu/drm/tegra/hdmi.c
566
err = tegra_hdmi_get_audio_config(hdmi->format.sample_rate,
drivers/gpu/drm/tegra/hdmi.c
571
hdmi->format.sample_rate, hdmi->pixel_clock);
drivers/gpu/drm/tegra/hdmi.c
762
frame.channels = hdmi->format.channels;
drivers/gpu/drm/tegra/hdmi.c
83
struct tegra_hda_format format;
drivers/gpu/drm/tegra/hub.c
441
err = tegra_plane_format(new_plane_state->fb->format->format,
drivers/gpu/drm/tegra/hub.c
442
&plane_state->format,
drivers/gpu/drm/tegra/hub.c
468
if (new_plane_state->fb->format->num_planes > 2) {
drivers/gpu/drm/tegra/hub.c
565
yuv = tegra_plane_format_is_yuv(tegra_plane_state->format, &planes, &bpc);
drivers/gpu/drm/tegra/hub.c
644
tegra_plane_writel(p, tegra_plane_state->format, DC_WIN_COLOR_DEPTH);
drivers/gpu/drm/tegra/hub.c
706
if (!tegra_plane_format_is_indexed(tegra_plane_state->format))
drivers/gpu/drm/tegra/plane.c
108
uint32_t format,
drivers/gpu/drm/tegra/plane.c
111
const struct drm_format_info *info = drm_format_info(format);
drivers/gpu/drm/tegra/plane.c
145
for (i = 0; i < state->base.fb->format->num_planes; i++) {
drivers/gpu/drm/tegra/plane.c
193
for (i = 0; i < state->base.fb->format->num_planes; i++) {
drivers/gpu/drm/tegra/plane.c
246
fmt = state->fb->format;
drivers/gpu/drm/tegra/plane.c
326
int tegra_plane_format(u32 fourcc, u32 *format, u32 *swap)
drivers/gpu/drm/tegra/plane.c
334
*format = WIN_COLOR_DEPTH_B4G4R4A4;
drivers/gpu/drm/tegra/plane.c
338
*format = WIN_COLOR_DEPTH_B5G5R5A1;
drivers/gpu/drm/tegra/plane.c
342
*format = WIN_COLOR_DEPTH_B5G6R5;
drivers/gpu/drm/tegra/plane.c
346
*format = WIN_COLOR_DEPTH_A1B5G5R5;
drivers/gpu/drm/tegra/plane.c
350
*format = WIN_COLOR_DEPTH_B8G8R8A8;
drivers/gpu/drm/tegra/plane.c
354
*format = WIN_COLOR_DEPTH_R8G8B8A8;
drivers/gpu/drm/tegra/plane.c
358
*format = WIN_COLOR_DEPTH_R4G4B4A4;
drivers/gpu/drm/tegra/plane.c
362
*format = WIN_COLOR_DEPTH_R5G5B5A;
drivers/gpu/drm/tegra/plane.c
366
*format = WIN_COLOR_DEPTH_AR5G5B5;
drivers/gpu/drm/tegra/plane.c
370
*format = WIN_COLOR_DEPTH_B5G5R5X1;
drivers/gpu/drm/tegra/plane.c
374
*format = WIN_COLOR_DEPTH_X1B5G5R5;
drivers/gpu/drm/tegra/plane.c
378
*format = WIN_COLOR_DEPTH_R5G5B5X1;
drivers/gpu/drm/tegra/plane.c
382
*format = WIN_COLOR_DEPTH_X1R5G5B5;
drivers/gpu/drm/tegra/plane.c
386
*format = WIN_COLOR_DEPTH_R5G6B5;
drivers/gpu/drm/tegra/plane.c
390
*format = WIN_COLOR_DEPTH_A8R8G8B8;
drivers/gpu/drm/tegra/plane.c
394
*format = WIN_COLOR_DEPTH_A8B8G8R8;
drivers/gpu/drm/tegra/plane.c
398
*format = WIN_COLOR_DEPTH_B8G8R8X8;
drivers/gpu/drm/tegra/plane.c
402
*format = WIN_COLOR_DEPTH_R8G8B8X8;
drivers/gpu/drm/tegra/plane.c
406
*format = WIN_COLOR_DEPTH_YCbCr422;
drivers/gpu/drm/tegra/plane.c
413
*format = WIN_COLOR_DEPTH_YCbCr422;
drivers/gpu/drm/tegra/plane.c
421
*format = WIN_COLOR_DEPTH_YCbCr422;
drivers/gpu/drm/tegra/plane.c
429
*format = WIN_COLOR_DEPTH_YCbCr422;
drivers/gpu/drm/tegra/plane.c
434
*format = WIN_COLOR_DEPTH_YCbCr420P;
drivers/gpu/drm/tegra/plane.c
438
*format = WIN_COLOR_DEPTH_YCbCr422P;
drivers/gpu/drm/tegra/plane.c
442
*format = WIN_COLOR_DEPTH_YCbCr444P;
drivers/gpu/drm/tegra/plane.c
446
*format = WIN_COLOR_DEPTH_YCbCr420SP;
drivers/gpu/drm/tegra/plane.c
450
*format = WIN_COLOR_DEPTH_YCrCb420SP;
drivers/gpu/drm/tegra/plane.c
454
*format = WIN_COLOR_DEPTH_YCbCr422SP;
drivers/gpu/drm/tegra/plane.c
458
*format = WIN_COLOR_DEPTH_YCrCb422SP;
drivers/gpu/drm/tegra/plane.c
462
*format = WIN_COLOR_DEPTH_YCbCr444SP;
drivers/gpu/drm/tegra/plane.c
466
*format = WIN_COLOR_DEPTH_YCrCb444SP;
drivers/gpu/drm/tegra/plane.c
476
bool tegra_plane_format_is_indexed(unsigned int format)
drivers/gpu/drm/tegra/plane.c
478
switch (format) {
drivers/gpu/drm/tegra/plane.c
489
bool tegra_plane_format_is_yuv(unsigned int format, unsigned int *planes, unsigned int *bpc)
drivers/gpu/drm/tegra/plane.c
491
switch (format) {
drivers/gpu/drm/tegra/plane.c
540
static bool __drm_format_has_alpha(u32 format)
drivers/gpu/drm/tegra/plane.c
542
switch (format) {
drivers/gpu/drm/tegra/plane.c
593
unsigned int format;
drivers/gpu/drm/tegra/plane.c
596
switch (state->format) {
drivers/gpu/drm/tegra/plane.c
605
err = tegra_plane_format_get_alpha(state->format, &format);
drivers/gpu/drm/tegra/plane.c
609
state->format = format;
drivers/gpu/drm/tegra/plane.c
64
copy->format = state->format;
drivers/gpu/drm/tegra/plane.c
684
if (new->fb && __drm_format_has_alpha(new->fb->format->format))
drivers/gpu/drm/tegra/plane.h
50
u32 format;
drivers/gpu/drm/tegra/plane.h
91
int tegra_plane_format(u32 fourcc, u32 *format, u32 *swap);
drivers/gpu/drm/tegra/plane.h
92
bool tegra_plane_format_is_indexed(unsigned int format);
drivers/gpu/drm/tegra/plane.h
93
bool tegra_plane_format_is_yuv(unsigned int format, unsigned int *planes, unsigned int *bpc);
drivers/gpu/drm/tegra/sor.c
2009
if (sor->format.channels != 2)
drivers/gpu/drm/tegra/sor.c
2035
frame.channels = sor->format.channels;
drivers/gpu/drm/tegra/sor.c
2078
value = (24000 * 4096) / (128 * sor->format.sample_rate / 1000);
drivers/gpu/drm/tegra/sor.c
2091
value = (24000 * 6144) / (128 * sor->format.sample_rate / 1000);
drivers/gpu/drm/tegra/sor.c
2095
value = (24000 * 12288) / (128 * sor->format.sample_rate / 1000);
drivers/gpu/drm/tegra/sor.c
2099
value = (24000 * 24576) / (128 * sor->format.sample_rate / 1000);
drivers/gpu/drm/tegra/sor.c
3694
unsigned int format;
drivers/gpu/drm/tegra/sor.c
3696
format = value & SOR_AUDIO_HDA_CODEC_SCRATCH0_FMT_MASK;
drivers/gpu/drm/tegra/sor.c
3698
tegra_hda_parse_format(format, &sor->format);
drivers/gpu/drm/tegra/sor.c
446
struct tegra_hda_format format;
drivers/gpu/drm/tests/drm_format_helper_test.c
1016
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
1057
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
1098
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
1131
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
1171
struct drm_format_info mock_format = *fb.format;
drivers/gpu/drm/tests/drm_format_helper_test.c
1173
mock_format.format |= DRM_FORMAT_BIG_ENDIAN;
drivers/gpu/drm/tests/drm_format_helper_test.c
1174
fb.format = &mock_format;
drivers/gpu/drm/tests/drm_format_helper_test.c
1191
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
1225
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
1252
u32 format;
drivers/gpu/drm/tests/drm_format_helper_test.c
1261
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1268
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1275
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1282
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1289
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1296
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1303
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1319
const struct drm_format_info *format_info = drm_format_info(params->format);
drivers/gpu/drm/tests/drm_format_helper_test.c
1341
u32 format;
drivers/gpu/drm/tests/drm_format_helper_test.c
1360
.format = DRM_FORMAT_XRGB8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1369
.format = DRM_FORMAT_XRGB8888_A8,
drivers/gpu/drm/tests/drm_format_helper_test.c
1384
.format = DRM_FORMAT_YUV444,
drivers/gpu/drm/tests/drm_format_helper_test.c
1401
.format = DRM_FORMAT_XBGR8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1417
.format = DRM_FORMAT_XRGB8888_A8,
drivers/gpu/drm/tests/drm_format_helper_test.c
1435
.format = DRM_FORMAT_YUV444,
drivers/gpu/drm/tests/drm_format_helper_test.c
1452
.format = DRM_FORMAT_XBGR8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1476
.format = DRM_FORMAT_XRGB8888_A8,
drivers/gpu/drm/tests/drm_format_helper_test.c
1511
.format = DRM_FORMAT_YUV444,
drivers/gpu/drm/tests/drm_format_helper_test.c
1555
.format = DRM_FORMAT_XBGR8888,
drivers/gpu/drm/tests/drm_format_helper_test.c
1576
.format = DRM_FORMAT_XRGB8888_A8,
drivers/gpu/drm/tests/drm_format_helper_test.c
1608
.format = DRM_FORMAT_YUV444,
drivers/gpu/drm/tests/drm_format_helper_test.c
1654
snprintf(desc, KUNIT_PARAM_DESC_SIZE, "%s: %p4cc", t->name, &t->format);
drivers/gpu/drm/tests/drm_format_helper_test.c
1670
.format = drm_format_info(params->format),
drivers/gpu/drm/tests/drm_format_helper_test.c
1675
for (size_t i = 0; i < fb.format->num_planes; i++) {
drivers/gpu/drm/tests/drm_format_helper_test.c
1676
dst_size[i] = conversion_buf_size(params->format, params->dst_pitches[i],
drivers/gpu/drm/tests/drm_format_helper_test.c
1693
for (size_t i = 0; i < fb.format->num_planes; i++) {
drivers/gpu/drm/tests/drm_format_helper_test.c
1703
for (size_t i = 0; i < fb.format->num_planes; i++) {
drivers/gpu/drm/tests/drm_format_helper_test.c
652
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
685
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
718
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
767
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
808
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
849
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
890
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
933
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_format_helper_test.c
975
.format = drm_format_info(DRM_FORMAT_XRGB8888),
drivers/gpu/drm/tests/drm_framebuffer_test.c
514
struct drm_format_info format = { };
drivers/gpu/drm/tests/drm_framebuffer_test.c
515
struct drm_framebuffer fb1 = { .dev = dev, .format = &format };
drivers/gpu/drm/tests/drm_framebuffer_test.c
516
struct drm_framebuffer fb2 = { .dev = dev, .format = &format };
drivers/gpu/drm/tests/drm_framebuffer_test.c
543
struct drm_format_info format = { };
drivers/gpu/drm/tests/drm_framebuffer_test.c
544
struct drm_framebuffer expected_fb = { .dev = dev, .format = &format };
drivers/gpu/drm/tests/drm_framebuffer_test.c
583
struct drm_format_info format = { };
drivers/gpu/drm/tests/drm_framebuffer_test.c
584
struct drm_framebuffer fb1 = { .dev = dev, .format = &format };
drivers/gpu/drm/tests/drm_framebuffer_test.c
616
struct drm_framebuffer fb1 = { .dev = dev, .format = NULL };
drivers/gpu/drm/tests/drm_framebuffer_test.c
636
struct drm_format_info format = { };
drivers/gpu/drm/tests/drm_framebuffer_test.c
637
struct drm_framebuffer fb1 = { .dev = right_dev, .format = &format };
drivers/gpu/drm/tests/drm_panic_test.c
103
sb->pitch[0] = params->width * sb->format->cpp[0];
drivers/gpu/drm/tests/drm_panic_test.c
126
sb->format = drm_format_info(params->format);
drivers/gpu/drm/tests/drm_panic_test.c
127
fb_size = params->width * params->height * sb->format->cpp[0];
drivers/gpu/drm/tests/drm_panic_test.c
147
sb->pitch[0] = params->width * sb->format->cpp[0];
drivers/gpu/drm/tests/drm_panic_test.c
186
sb->format = drm_format_info(params->format);
drivers/gpu/drm/tests/drm_panic_test.c
198
t->fname, t->width, t->height, &t->format);
drivers/gpu/drm/tests/drm_panic_test.c
32
const u32 format;
drivers/gpu/drm/tests/drm_panic_test.c
50
.format = f, \
drivers/gpu/drm/tests/drm_panic_test.c
92
sb->format = drm_format_info(params->format);
drivers/gpu/drm/tests/drm_panic_test.c
93
fb_size = params->width * params->height * sb->format->cpp[0];
drivers/gpu/drm/tidss/tidss_dispc.c
1824
u32 fourcc = state->fb->format->format;
drivers/gpu/drm/tidss/tidss_dispc.c
2126
u32 fourcc = state->fb->format->format;
drivers/gpu/drm/tidss/tidss_dispc.c
2170
return gem->dma_addr + fb->offsets[0] + x * fb->format->cpp[0] +
drivers/gpu/drm/tidss/tidss_dispc.c
2182
if (WARN_ON(state->fb->format->num_planes != 2))
drivers/gpu/drm/tidss/tidss_dispc.c
2188
(x * fb->format->cpp[1] / fb->format->hsub) +
drivers/gpu/drm/tidss/tidss_dispc.c
2189
(y * fb->pitches[1] / fb->format->vsub);
drivers/gpu/drm/tidss/tidss_dispc.c
2197
u32 fourcc = state->fb->format->format;
drivers/gpu/drm/tidss/tidss_dispc.c
2198
u16 cpp = state->fb->format->cpp[0];
drivers/gpu/drm/tidss/tidss_dispc.c
2229
if (state->fb->format->num_planes == 2) {
drivers/gpu/drm/tidss/tidss_dispc.c
2230
u16 cpp_uv = state->fb->format->cpp[1];
drivers/gpu/drm/tidss/tidss_encoder.c
63
tcrtc_state->bus_format = next_bridge_state->input_bus_cfg.format;
drivers/gpu/drm/tidss/tidss_plane.c
78
finfo = drm_format_info(new_plane_state->fb->format->format);
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
381
switch (fb->format->format) {
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
75
crtc->x * fb->format->cpp[0];
drivers/gpu/drm/tilcdc/tilcdc_plane.c
60
new_state->fb->format->cpp[0];
drivers/gpu/drm/tilcdc/tilcdc_plane.c
67
if (old_state->fb && new_state->fb->format != old_state->fb->format) {
drivers/gpu/drm/tiny/appletbdrm.c
429
switch (fb->format->format) {
drivers/gpu/drm/tiny/arcpgu.c
121
uint32_t pixel_format = fb->format->format;
drivers/gpu/drm/tiny/arcpgu.c
122
u32 format = DRM_FORMAT_INVALID;
drivers/gpu/drm/tiny/arcpgu.c
128
format = arc_pgu_supported_formats[i];
drivers/gpu/drm/tiny/arcpgu.c
131
if (WARN_ON(format == DRM_FORMAT_INVALID))
drivers/gpu/drm/tiny/arcpgu.c
135
if (format == DRM_FORMAT_RGB565)
drivers/gpu/drm/tiny/bochs.c
359
static void bochs_hw_setformat(struct bochs_device *bochs, const struct drm_format_info *format)
drivers/gpu/drm/tiny/bochs.c
367
(format->format >> 0) & 0xff,
drivers/gpu/drm/tiny/bochs.c
368
(format->format >> 8) & 0xff,
drivers/gpu/drm/tiny/bochs.c
369
(format->format >> 16) & 0xff,
drivers/gpu/drm/tiny/bochs.c
370
(format->format >> 24) & 0xff);
drivers/gpu/drm/tiny/bochs.c
372
switch (format->format) {
drivers/gpu/drm/tiny/bochs.c
382
__func__, format->format);
drivers/gpu/drm/tiny/bochs.c
463
iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, &damage));
drivers/gpu/drm/tiny/bochs.c
473
bochs_hw_setformat(bochs, fb->format);
drivers/gpu/drm/tiny/bochs.c
483
sb->format = plane->state->fb->format;
drivers/gpu/drm/tiny/bochs.c
602
const struct drm_format_info *format = drm_format_info(DRM_FORMAT_XRGB8888);
drivers/gpu/drm/tiny/bochs.c
605
if (drm_WARN_ON(dev, !format))
drivers/gpu/drm/tiny/bochs.c
608
pitch = drm_format_info_min_pitch(format, 0, mode->hdisplay);
drivers/gpu/drm/tiny/cirrus-qemu.c
229
const struct drm_format_info *format)
drivers/gpu/drm/tiny/cirrus-qemu.c
236
switch (format->format) {
drivers/gpu/drm/tiny/cirrus-qemu.c
348
if (!old_fb || old_fb->format != fb->format)
drivers/gpu/drm/tiny/cirrus-qemu.c
349
cirrus_format_set(cirrus, fb->format);
drivers/gpu/drm/tiny/cirrus-qemu.c
355
unsigned int offset = drm_fb_clip_offset(fb->pitches[0], fb->format, &damage);
drivers/gpu/drm/tiny/cirrus-qemu.c
517
const struct drm_format_info *format = drm_format_info(DRM_FORMAT_XRGB8888);
drivers/gpu/drm/tiny/cirrus-qemu.c
520
if (drm_WARN_ON_ONCE(dev, !format))
drivers/gpu/drm/tiny/cirrus-qemu.c
523
pitch = drm_format_info_min_pitch(format, 0, mode->hdisplay);
drivers/gpu/drm/tiny/ili9225.c
101
fb->format->format == DRM_FORMAT_XRGB8888) {
drivers/gpu/drm/tiny/panel-mipi-dbi.c
60
const struct panel_mipi_dbi_format *format = &panel_mipi_dbi_formats[i];
drivers/gpu/drm/tiny/panel-mipi-dbi.c
62
if (strcmp(format_name, format->name))
drivers/gpu/drm/tiny/panel-mipi-dbi.c
65
formats[0] = format->fourcc;
drivers/gpu/drm/tiny/panel-mipi-dbi.c
66
*bpp = format->bpp;
drivers/gpu/drm/tiny/sharp-memory.c
267
u32 format,
drivers/gpu/drm/tve200/tve200_display.c
106
if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) {
drivers/gpu/drm/tve200/tve200_display.c
115
if (old_fb && old_fb->format != fb->format)
drivers/gpu/drm/tve200/tve200_display.c
133
u32 format = fb->format->format;
drivers/gpu/drm/tve200/tve200_display.c
185
if (format & DRM_FORMAT_BIG_ENDIAN) {
drivers/gpu/drm/tve200/tve200_display.c
187
format &= ~DRM_FORMAT_BIG_ENDIAN;
drivers/gpu/drm/tve200/tve200_display.c
190
switch (format) {
drivers/gpu/drm/tve200/tve200_display.c
231
fb->format->format);
drivers/gpu/drm/tve200/tve200_display.c
275
if (fb->format->format == DRM_FORMAT_YUV420) {
drivers/gpu/drm/udl/udl_modeset.c
215
ret = udl_log_cpp(fb->format->cpp[0]);
drivers/gpu/drm/vboxvideo/vbox_mode.c
48
bpp = fb ? fb->format->cpp[0] * 8 : 32;
drivers/gpu/drm/vc4/vc4_crtc.c
238
static u32 vc4_get_fifo_full_level(struct vc4_crtc *vc4_crtc, u32 format)
drivers/gpu/drm/vc4/vc4_crtc.c
260
switch (format) {
drivers/gpu/drm/vc4/vc4_crtc.c
297
u32 format)
drivers/gpu/drm/vc4/vc4_crtc.c
299
u32 level = vc4_get_fifo_full_level(vc4_crtc, format);
drivers/gpu/drm/vc4/vc4_crtc.c
363
u32 format = is_dsi1 ? PV_CONTROL_FORMAT_DSIV_24 : PV_CONTROL_FORMAT_24;
drivers/gpu/drm/vc4/vc4_crtc.c
468
vc4_crtc_get_fifo_full_level_bits(vc4_crtc, format) |
drivers/gpu/drm/vc4/vc4_crtc.c
469
VC4_SET_FIELD(format, PV_CONTROL_FORMAT) |
drivers/gpu/drm/vc4/vc4_dsi.c
1133
VC4_SET_FIELD(dsi->format, DSI_DISP0_PFORMAT) |
drivers/gpu/drm/vc4/vc4_dsi.c
1355
switch (device->format) {
drivers/gpu/drm/vc4/vc4_dsi.c
1357
dsi->format = DSI_PFORMAT_RGB888;
drivers/gpu/drm/vc4/vc4_dsi.c
1361
dsi->format = DSI_PFORMAT_RGB666;
drivers/gpu/drm/vc4/vc4_dsi.c
1365
dsi->format = DSI_PFORMAT_RGB666_PACKED;
drivers/gpu/drm/vc4/vc4_dsi.c
1369
dsi->format = DSI_PFORMAT_RGB565;
drivers/gpu/drm/vc4/vc4_dsi.c
1374
dsi->format);
drivers/gpu/drm/vc4/vc4_dsi.c
573
u32 format;
drivers/gpu/drm/vc4/vc4_plane.c
1132
if (!state->fb->format->has_alpha)
drivers/gpu/drm/vc4/vc4_plane.c
1163
if (!state->fb->format->has_alpha)
drivers/gpu/drm/vc4/vc4_plane.c
1195
(!state->fb->format->has_alpha ||
drivers/gpu/drm/vc4/vc4_plane.c
1213
const struct hvs_format *format = vc4_get_hvs_format(fb->format->format);
drivers/gpu/drm/vc4/vc4_plane.c
1215
int num_planes = fb->format->num_planes;
drivers/gpu/drm/vc4/vc4_plane.c
1216
u32 h_subsample = fb->format->hsub;
drivers/gpu/drm/vc4/vc4_plane.c
1217
u32 v_subsample = fb->format->vsub;
drivers/gpu/drm/vc4/vc4_plane.c
1223
u32 hvs_format = format->hvs;
drivers/gpu/drm/vc4/vc4_plane.c
1281
offsets[i] += src_x / (i ? h_subsample : 1) * fb->format->cpp[i];
drivers/gpu/drm/vc4/vc4_plane.c
1289
u32 tile_w_shift = fb->format->cpp[0] == 2 ? 6 : 5;
drivers/gpu/drm/vc4/vc4_plane.c
1364
if (fb->format->format == DRM_FORMAT_P030) {
drivers/gpu/drm/vc4/vc4_plane.c
1398
if (fb->format->format == DRM_FORMAT_P030) {
drivers/gpu/drm/vc4/vc4_plane.c
1428
pix_per_tile = tile_w / fb->format->cpp[0];
drivers/gpu/drm/vc4/vc4_plane.c
1431
fb->format->cpp[i];
drivers/gpu/drm/vc4/vc4_plane.c
1472
if (format->drm == DRM_FORMAT_YUV444 || format->drm == DRM_FORMAT_YVU444)
drivers/gpu/drm/vc4/vc4_plane.c
1480
fb->format->has_alpha;
drivers/gpu/drm/vc4/vc4_plane.c
1489
(format->pixel_order << SCALER_CTL0_ORDER_SHIFT) |
drivers/gpu/drm/vc4/vc4_plane.c
1527
(format->pixel_order_hvs5 << SCALER_CTL0_ORDER_SHIFT) |
drivers/gpu/drm/vc4/vc4_plane.c
1684
vc4_state->needs_bg_fill = fb->format->has_alpha || !covers_screen ||
drivers/gpu/drm/vc4/vc4_plane.c
1743
const struct hvs_format *format = vc4_get_hvs_format(fb->format->format);
drivers/gpu/drm/vc4/vc4_plane.c
1745
int num_planes = fb->format->num_planes;
drivers/gpu/drm/vc4/vc4_plane.c
1746
u32 h_subsample = fb->format->hsub;
drivers/gpu/drm/vc4/vc4_plane.c
1747
u32 v_subsample = fb->format->vsub;
drivers/gpu/drm/vc4/vc4_plane.c
1753
u32 hvs_format = format->hvs;
drivers/gpu/drm/vc4/vc4_plane.c
1812
offsets[i] += src_x / (i ? h_subsample : 1) * fb->format->cpp[i];
drivers/gpu/drm/vc4/vc4_plane.c
1830
if (fb->format->format == DRM_FORMAT_P030) {
drivers/gpu/drm/vc4/vc4_plane.c
1861
if (fb->format->format == DRM_FORMAT_P030) {
drivers/gpu/drm/vc4/vc4_plane.c
1888
pix_per_tile = tile_w / fb->format->cpp[0];
drivers/gpu/drm/vc4/vc4_plane.c
1891
fb->format->cpp[i];
drivers/gpu/drm/vc4/vc4_plane.c
1901
components_per_word = fb->format->format == DRM_FORMAT_P030 ? 24 : 32;
drivers/gpu/drm/vc4/vc4_plane.c
1938
if (format->drm == DRM_FORMAT_YUV444 || format->drm == DRM_FORMAT_YVU444)
drivers/gpu/drm/vc4/vc4_plane.c
1946
fb->format->has_alpha;
drivers/gpu/drm/vc4/vc4_plane.c
1954
VC4_SET_FIELD(format->pixel_order_hvs5, SCALER6_CTL0_ORDERRGBA) |
drivers/gpu/drm/vc4/vc4_plane.c
2037
if (!vc4_state->is_unity || fb->format->is_yuv) {
drivers/gpu/drm/vc4/vc4_plane.c
2101
vc4_state->needs_bg_fill = fb->format->has_alpha || !covers_screen ||
drivers/gpu/drm/vc4/vc4_plane.c
2434
uint32_t format,
drivers/gpu/drm/vc4/vc4_plane.c
2438
switch (format) {
drivers/gpu/drm/vc4/vc4_plane.c
495
int num_planes = fb->format->num_planes;
drivers/gpu/drm/vc4/vc4_plane.c
497
u32 h_subsample = fb->format->hsub;
drivers/gpu/drm/vc4/vc4_plane.c
498
u32 v_subsample = fb->format->vsub;
drivers/gpu/drm/vc4/vc4_plane.c
729
const struct drm_format_info *info = state->fb->format;
drivers/gpu/drm/vc4/vc4_plane.c
747
const struct drm_format_info *info = state->fb->format;
drivers/gpu/drm/vc4/vc4_plane.c
791
const struct drm_format_info *info = state->fb->format;
drivers/gpu/drm/vc4/vc4_plane.c
898
for (i = 0; i < fb->format->num_planes; i++) {
drivers/gpu/drm/vc4/vc4_plane.c
915
vscale_factor * fb->format->cpp[i];
drivers/gpu/drm/vc4/vc4_plane.c
980
const struct drm_format_info *info = state->fb->format;
drivers/gpu/drm/vc4/vc4_render_cl.c
446
uint8_t format = VC4_GET_FIELD(surf->bits,
drivers/gpu/drm/vc4/vc4_render_cl.c
499
if (format != 0) {
drivers/gpu/drm/vc4/vc4_render_cl.c
505
switch (format) {
drivers/gpu/drm/vc4/vc4_render_cl.c
543
uint8_t format = VC4_GET_FIELD(surf->bits,
drivers/gpu/drm/vc4/vc4_render_cl.c
575
switch (format) {
drivers/gpu/drm/vc4/vc4_txp.c
271
if (fb->format->format == drm_fmts[i])
drivers/gpu/drm/vc4/vc4_txp.c
312
if (fb->format->format == drm_fmts[i])
drivers/gpu/drm/vc4/vc4_txp.c
325
if (fb->format->has_alpha)
drivers/gpu/drm/virtio/virtgpu_drv.h
71
uint32_t format;
drivers/gpu/drm/virtio/virtgpu_gem.c
78
params.format = virtio_gpu_translate_format(DRM_FORMAT_HOST_XRGB8888);
drivers/gpu/drm/virtio/virtgpu_ioctl.c
164
params.format = rc->format;
drivers/gpu/drm/virtio/virtgpu_plane.c
145
uint32_t off = x * state->fb->format->cpp[0] +
drivers/gpu/drm/virtio/virtgpu_plane.c
168
uint32_t off = x * state->fb->format->cpp[0] +
drivers/gpu/drm/virtio/virtgpu_plane.c
47
uint32_t format;
drivers/gpu/drm/virtio/virtgpu_plane.c
51
format = VIRTIO_GPU_FORMAT_B8G8R8X8_UNORM;
drivers/gpu/drm/virtio/virtgpu_plane.c
526
sb->format = plane->state->fb->format;
drivers/gpu/drm/virtio/virtgpu_plane.c
54
format = VIRTIO_GPU_FORMAT_B8G8R8A8_UNORM;
drivers/gpu/drm/virtio/virtgpu_plane.c
57
format = VIRTIO_GPU_FORMAT_X8R8G8B8_UNORM;
drivers/gpu/drm/virtio/virtgpu_plane.c
60
format = VIRTIO_GPU_FORMAT_A8R8G8B8_UNORM;
drivers/gpu/drm/virtio/virtgpu_plane.c
67
format = 0;
drivers/gpu/drm/virtio/virtgpu_plane.c
70
WARN_ON(format == 0);
drivers/gpu/drm/virtio/virtgpu_plane.c
71
return format;
drivers/gpu/drm/virtio/virtgpu_vq.c
1164
cmd_p->format = cpu_to_le32(params->format);
drivers/gpu/drm/virtio/virtgpu_vq.c
1469
uint32_t format = virtio_gpu_translate_format(fb->format->format);
drivers/gpu/drm/virtio/virtgpu_vq.c
1478
cmd_p->format = cpu_to_le32(format);
drivers/gpu/drm/virtio/virtgpu_vq.c
609
cmd_p->format = cpu_to_le32(params->format);
drivers/gpu/drm/vkms/vkms_formats.c
102
return fb->format->char_per_block[plane_index];
drivers/gpu/drm/vkms/vkms_formats.c
104
return -fb->format->char_per_block[plane_index];
drivers/gpu/drm/vkms/vkms_formats.c
106
return (int)fb->pitches[plane_index] * drm_format_info_block_width(fb->format,
drivers/gpu/drm/vkms/vkms_formats.c
109
return -(int)fb->pitches[plane_index] * drm_format_info_block_width(fb->format,
drivers/gpu/drm/vkms/vkms_formats.c
133
WARN_ONCE(drm_format_info_block_width(frame_info->fb->format,
drivers/gpu/drm/vkms/vkms_formats.c
136
WARN_ONCE(drm_format_info_block_height(frame_info->fb->format,
drivers/gpu/drm/vkms/vkms_formats.c
151
static int get_subsampling(const struct drm_format_info *format,
drivers/gpu/drm/vkms/vkms_formats.c
157
return format->vsub;
drivers/gpu/drm/vkms/vkms_formats.c
160
return format->hsub;
drivers/gpu/drm/vkms/vkms_formats.c
38
const struct drm_format_info *format = frame_info->fb->format;
drivers/gpu/drm/vkms/vkms_formats.c
382
int bits_per_pixel = drm_format_info_bpp(plane->frame_info->fb->format, 0);
drivers/gpu/drm/vkms/vkms_formats.c
386
WARN_ONCE(drm_format_info_block_height(plane->frame_info->fb->format, 0) != 1,
drivers/gpu/drm/vkms/vkms_formats.c
46
int block_x = x / drm_format_info_block_width(format, plane_index);
drivers/gpu/drm/vkms/vkms_formats.c
47
int block_y = y / drm_format_info_block_height(format, plane_index);
drivers/gpu/drm/vkms/vkms_formats.c
48
int block_pitch = fb->pitches[plane_index] * drm_format_info_block_height(format,
drivers/gpu/drm/vkms/vkms_formats.c
50
*rem_x = x % drm_format_info_block_width(format, plane_index);
drivers/gpu/drm/vkms/vkms_formats.c
509
x_start / plane->frame_info->fb->format->hsub, \
drivers/gpu/drm/vkms/vkms_formats.c
51
*rem_y = y % drm_format_info_block_height(format, plane_index);
drivers/gpu/drm/vkms/vkms_formats.c
510
y_start / plane->frame_info->fb->format->vsub, 1, \
drivers/gpu/drm/vkms/vkms_formats.c
514
int subsampling = get_subsampling(plane->frame_info->fb->format, direction); \
drivers/gpu/drm/vkms/vkms_formats.c
54
block_x * format->char_per_block[plane_index];
drivers/gpu/drm/vkms/vkms_formats.c
554
x_start / plane->frame_info->fb->format->hsub,
drivers/gpu/drm/vkms/vkms_formats.c
555
y_start / plane->frame_info->fb->format->vsub, 1,
drivers/gpu/drm/vkms/vkms_formats.c
558
x_start / plane->frame_info->fb->format->hsub,
drivers/gpu/drm/vkms/vkms_formats.c
559
y_start / plane->frame_info->fb->format->vsub, 2,
drivers/gpu/drm/vkms/vkms_formats.c
564
int subsampling = get_subsampling(plane->frame_info->fb->format, direction);
drivers/gpu/drm/vkms/vkms_formats.c
680
for (size_t x = 0; x < x_limit; x++, dst_pixels += frame_info->fb->format->cpp[0])
drivers/gpu/drm/vkms/vkms_formats.c
691
pixel_read_line_t get_pixel_read_line_function(u32 format)
drivers/gpu/drm/vkms/vkms_formats.c
693
switch (format) {
drivers/gpu/drm/vkms/vkms_formats.c
756
&format);
drivers/gpu/drm/vkms/vkms_formats.c
881
void get_conversion_matrix_to_argb_u16(u32 format,
drivers/gpu/drm/vkms/vkms_formats.c
923
switch (format) {
drivers/gpu/drm/vkms/vkms_formats.c
945
pixel_write_t get_pixel_write_function(u32 format)
drivers/gpu/drm/vkms/vkms_formats.c
947
switch (format) {
drivers/gpu/drm/vkms/vkms_formats.c
968
&format);
drivers/gpu/drm/vkms/vkms_formats.h
10
pixel_write_t get_pixel_write_function(u32 format);
drivers/gpu/drm/vkms/vkms_formats.h
12
void get_conversion_matrix_to_argb_u16(u32 format, enum drm_color_encoding encoding,
drivers/gpu/drm/vkms/vkms_formats.h
8
pixel_read_line_t get_pixel_read_line_function(u32 format);
drivers/gpu/drm/vkms/vkms_plane.c
138
fmt = fb->format->format;
drivers/gpu/drm/vkms/vkms_writeback.c
139
u32 wb_format = fb->format->format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
1166
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
1178
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
1192
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
1207
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
352
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
363
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
949
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
1050
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
1063
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
1123
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
357
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
365
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
373
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
881
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
893
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
931
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
943
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
964
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
981
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
997
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h
312
SVGA3dSurfaceFormat format;
drivers/gpu/drm/vmwgfx/device_include/svga_reg.h
576
uint32 format;
drivers/gpu/drm/vmwgfx/device_include/svga_reg.h
811
SVGAGMRImageFormat format;
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
150
vmw_surface_get_serialized_size(SVGA3dSurfaceFormat format,
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
155
const SVGA3dSurfaceDesc *desc = vmw_surface_get_desc(format);
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
174
vmw_surface_get_serialized_size_extended(SVGA3dSurfaceFormat format,
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
181
vmw_surface_get_serialized_size(format,
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
198
vmw_surface_get_pixel_offset(SVGA3dSurfaceFormat format,
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
202
const SVGA3dSurfaceDesc *desc = vmw_surface_get_desc(format);
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
215
vmw_surface_get_image_offset(SVGA3dSurfaceFormat format,
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
230
desc = vmw_surface_get_desc(format);
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
259
vmw_surface_is_gb_screen_target_format(SVGA3dSurfaceFormat format)
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
261
return (format == SVGA3D_X8R8G8B8 ||
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
262
format == SVGA3D_A8R8G8B8 ||
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
263
format == SVGA3D_R5G6B5 ||
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
264
format == SVGA3D_X1R5G5B5 ||
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
265
format == SVGA3D_A1R5G5B5 ||
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
266
format == SVGA3D_P8);
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
281
vmw_surface_is_dx_screen_target_format(SVGA3dSurfaceFormat format)
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
283
return (format == SVGA3D_R8G8B8A8_UNORM ||
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
284
format == SVGA3D_B8G8R8A8_UNORM ||
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
285
format == SVGA3D_B8G8R8X8_UNORM);
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
300
vmw_surface_is_screen_target_format(SVGA3dSurfaceFormat format)
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
302
if (vmw_surface_is_gb_screen_target_format(format)) {
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
305
return vmw_surface_is_dx_screen_target_format(format);
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
385
SVGA3dSurfaceFormat format,
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
395
cache->desc = desc = vmw_surface_get_desc(format);
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
51
vmw_surface_get_desc(SVGA3dSurfaceFormat format)
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
53
if (format < ARRAY_SIZE(g_SVGA3dSurfaceDescs))
drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
54
return &g_SVGA3dSurfaceDescs[format];
drivers/gpu/drm/vmwgfx/vmwgfx_binding.c
1295
cmd->body.format = binding->format;
drivers/gpu/drm/vmwgfx/vmwgfx_binding.c
1299
cmd->body.format = 0;
drivers/gpu/drm/vmwgfx/vmwgfx_binding.h
175
uint32 format;
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c
843
metadata->format == VMW_CURSOR_SNOOP_FORMAT) {
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
214
u32 format;
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
2357
binding.format = cmd->body.format;
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
104
fb->format->cpp[0] * 8,
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
105
fb->format->depth);
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
113
fb->format->cpp[0] * 8, fb->format->depth);
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
143
items[SVGA_VIDEO_FORMAT].value = arg->format;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
475
int depth = update->vfb->base.format->depth;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
486
gmr->body.format.bitsPerPixel = update->vfb->base.format->cpp[0] * 8;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
487
gmr->body.format.colorDepth = depth;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
488
gmr->body.format.reserved = 0;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
952
int depth = framebuffer->base.format->depth;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
970
cmd->body.format.bitsPerPixel = framebuffer->base.format->cpp[0] * 8;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
971
cmd->body.format.colorDepth = depth;
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
972
cmd->body.format.reserved = 0;
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
1015
switch (new_fb->format->cpp[0]*8) {
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
1017
metadata.format = SVGA3D_X8R8G8B8;
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
1021
metadata.format = SVGA3D_R5G6B5;
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
1025
metadata.format = SVGA3D_P8;
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
1050
vmw_user_object_surface(&vps->uo)->metadata.format != metadata.format) {
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1092
rep->format = srf->metadata.format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1191
cmd4->body.format = metadata->format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1207
cmd3->body.format = metadata->format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1222
cmd2->body.format = metadata->format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1235
cmd->body.format = metadata->format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1565
metadata.format = req->base.format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1726
rep->creq.base.format = metadata->format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1916
if (srf->metadata.format == SVGA3D_BUFFER)
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2033
ret = vmw_surface_setup_cache(&metadata->base_size, metadata->format,
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2113
if (!vmw_surface_is_screen_target_format(req->format)) {
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2129
vmw_surface_get_desc(req->format);
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2170
metadata->format,
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2251
SVGA3dSurfaceFormat format = vmw_format_bpp_to_svga(dev_priv, args->bpp);
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2252
const struct SVGA3dSurfaceDesc *desc = vmw_surface_get_desc(format);
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2257
if (vmw_surface_is_dx_screen_target_format(format)) {
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
2289
req->base.format = (uint32_t)format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
253
cmd->body.format = srf->metadata.format;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
285
vmw_surface_get_desc(srf->metadata.format);
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
737
desc = vmw_surface_get_desc(req->format);
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
740
req->format);
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
756
metadata->format = req->format;
drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c
86
vmw_surface_get_desc(surf->metadata.format);
drivers/gpu/drm/xe/display/xe_initial_plane.c
131
mode_cmd.pixel_format = fb->format->format;
drivers/gpu/drm/xe/display/xe_initial_plane.c
143
&bo->ttm.base, fb->format, &mode_cmd)) {
drivers/gpu/drm/xe/display/xe_panic.c
48
offset = y * sb->pitch[0] + x * sb->format->cpp[0];
drivers/gpu/drm/xe/xe_mocs.c
25
const char *format, ...)
drivers/gpu/drm/xe/xe_oa.c
1734
stream->oa_buffer.format = &stream->oa->oa_formats[param->oa_format];
drivers/gpu/drm/xe/xe_oa.c
1755
param->oa_buffer_size % stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
214
((__s)->oa_buffer.format->header == HDR_64_BIT)
drivers/gpu/drm/xe/xe_oa.c
248
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
2757
static void oa_format_add(struct xe_oa *oa, enum xe_oa_format_name format)
drivers/gpu/drm/xe/xe_oa.c
2759
__set_bit(format, oa->format_mask);
drivers/gpu/drm/xe/xe_oa.c
317
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
349
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
442
static u32 __format_to_oactrl(const struct xe_oa_format *format, int counter_sel_mask)
drivers/gpu/drm/xe/xe_oa.c
444
return ((format->counter_select << (ffs(counter_sel_mask) - 1)) & counter_sel_mask) |
drivers/gpu/drm/xe/xe_oa.c
445
REG_FIELD_PREP(OA_OACONTROL_REPORT_BC_MASK, format->bc_report) |
drivers/gpu/drm/xe/xe_oa.c
446
REG_FIELD_PREP(OA_OACONTROL_COUNTER_SIZE_MASK, format->counter_size);
drivers/gpu/drm/xe/xe_oa.c
470
const struct xe_oa_format *format = stream->oa_buffer.format;
drivers/gpu/drm/xe/xe_oa.c
481
val = __format_to_oactrl(format, regs->oa_ctrl_counter_select_mask) |
drivers/gpu/drm/xe/xe_oa.c
745
const struct xe_oa_format *format = stream->oa_buffer.format;
drivers/gpu/drm/xe/xe_oa.c
746
u32 oacontrol = __format_to_oactrl(format, OAR_OACONTROL_COUNTER_SEL_MASK) |
drivers/gpu/drm/xe/xe_oa.c
770
const struct xe_oa_format *format = stream->oa_buffer.format;
drivers/gpu/drm/xe/xe_oa.c
771
u32 oacontrol = __format_to_oactrl(format, OAR_OACONTROL_COUNTER_SEL_MASK) |
drivers/gpu/drm/xe/xe_oa_types.h
160
const struct xe_oa_format *format;
drivers/gpu/drm/xe/xe_vm.h
303
const char *format, ...)
drivers/gpu/drm/xen/xen_drm_front_kms.c
123
fb->format->cpp[0] * 8,
drivers/gpu/drm/xen/xen_drm_front_kms.c
76
fb->format->format);
drivers/gpu/drm/xlnx/zynqmp_disp.c
1047
layer->disp_fmt = zynqmp_disp_layer_find_format(layer, info->format);
drivers/gpu/drm/xlnx/zynqmp_disp.c
698
enum zynqmp_dpsub_format format)
drivers/gpu/drm/xlnx/zynqmp_disp.c
708
u32 fmt = blend_output_fmts[format];
drivers/gpu/drm/xlnx/zynqmp_dp.c
1221
enum zynqmp_dpsub_format format,
drivers/gpu/drm/xlnx/zynqmp_dp.c
1230
switch (format) {
drivers/gpu/drm/xlnx/zynqmp_dp.c
1454
bus_fmt = bridge_state->input_bus_cfg.format;
drivers/gpu/drm/xlnx/zynqmp_kms.c
104
old_state->fb->format->format != new_state->fb->format->format)
drivers/gpu/drm/xlnx/zynqmp_kms.c
116
zynqmp_disp_layer_set_format(layer, new_state->fb->format);
drivers/gpu/ipu-v3/ipu-pre.c
205
unsigned int height, unsigned int stride, u32 format,
drivers/gpu/ipu-v3/ipu-pre.c
208
const struct drm_format_info *info = drm_format_info(format);
drivers/gpu/ipu-v3/ipu-prg.c
124
bool ipu_prg_format_supported(struct ipu_soc *ipu, uint32_t format,
drivers/gpu/ipu-v3/ipu-prg.c
127
const struct drm_format_info *info = drm_format_info(format);
drivers/gpu/ipu-v3/ipu-prg.c
276
u32 format, uint64_t modifier, unsigned long *eba)
drivers/gpu/ipu-v3/ipu-prg.c
299
width, height, stride, format, modifier, *eba);
drivers/gpu/ipu-v3/ipu-prv.h
262
unsigned int height, unsigned int stride, u32 format,
drivers/hid/hid-core.c
1336
if (item.format != HID_ITEM_FORMAT_SHORT) {
drivers/hid/hid-core.c
1343
item.format, (unsigned)item.size,
drivers/hid/hid-core.c
792
item->format = HID_ITEM_FORMAT_LONG;
drivers/hid/hid-core.c
808
item->format = HID_ITEM_FORMAT_SHORT;
drivers/hid/hid-cp2112.c
887
#define CP2112_CONFIG_ATTR(name, store, format, ...) \
drivers/hid/hid-cp2112.c
912
return sysfs_emit(buf, format, ##__VA_ARGS__); \
drivers/hid/hid-ft260.c
25
#define ft260_dbg(format, arg...) \
drivers/hid/hid-ft260.c
28
pr_info("%s: " format, __func__, ##arg); \
drivers/hid/hid-pl.c
29
#define debug(format, arg...) pr_debug("hid-plff: " format "\n" , ## arg)
drivers/hid/hid-prodikeys.c
28
#define pk_debug(format, arg...) \
drivers/hid/hid-prodikeys.c
29
pr_debug("hid-prodikeys: " format "\n" , ## arg)
drivers/hid/hid-prodikeys.c
30
#define pk_error(format, arg...) \
drivers/hid/hid-prodikeys.c
31
pr_err("hid-prodikeys: " format "\n" , ## arg)
drivers/hid/hid-wiimote-modules.c
611
__u8 format = 0;
drivers/hid/hid-wiimote-modules.c
689
format = 5;
drivers/hid/hid-wiimote-modules.c
692
format = 3;
drivers/hid/hid-wiimote-modules.c
695
format = 1;
drivers/hid/hid-wiimote-modules.c
698
ret = wiimote_cmd_write(wdata, 0xb00033, &format, sizeof(format));
drivers/hid/intel-ish-hid/ipc/pci-ish.c
103
void ish_event_tracer(struct ishtp_device *dev, const char *format, ...)
drivers/hid/intel-ish-hid/ipc/pci-ish.c
109
va_start(args, format);
drivers/hid/intel-ish-hid/ipc/pci-ish.c
110
vsnprintf(tmp_buf, sizeof(tmp_buf), format, args);
drivers/hv/mshv_synic.c
196
if (msg->vp_bitset.bitset.format != HV_GENERIC_SET_SPARSE_4K) {
drivers/hv/vmbus_drv.c
667
const char *format = "MODALIAS=vmbus:%*phN";
drivers/hv/vmbus_drv.c
669
return add_uevent_var(env, format, UUID_SIZE, &dev->dev_type);
drivers/hwmon/abituguru.c
86
#define ABIT_UGURU_DEBUG(level, format, arg...) \
drivers/hwmon/abituguru.c
89
pr_debug(format , ## arg); \
drivers/hwmon/abituguru3.c
66
#define ABIT_UGURU3_DEBUG(format, arg...) \
drivers/hwmon/abituguru3.c
69
pr_debug(format , ## arg); \
drivers/hwmon/acpi_power_meter.c
742
struct acpi_buffer format = { sizeof("NNNNNNNNNNN"), "NNNNNNNNNNN" };
drivers/hwmon/acpi_power_meter.c
769
status = acpi_extract_package(pss, &format, &state);
drivers/hwmon/applesmc.c
105
char *format; /* format string */
drivers/hwmon/applesmc.c
1143
for (grp = groups; grp->format; grp++) {
drivers/hwmon/applesmc.c
1151
scnprintf(node->name, sizeof(node->name), grp->format,
drivers/hwmon/pmbus/adm1266.c
458
data->info.format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/adm1275.c
594
info->format[PSC_VOLTAGE_IN] = direct;
drivers/hwmon/pmbus/adm1275.c
595
info->format[PSC_VOLTAGE_OUT] = direct;
drivers/hwmon/pmbus/adm1275.c
596
info->format[PSC_CURRENT_OUT] = direct;
drivers/hwmon/pmbus/adm1275.c
597
info->format[PSC_POWER] = direct;
drivers/hwmon/pmbus/adm1275.c
598
info->format[PSC_TEMPERATURE] = direct;
drivers/hwmon/pmbus/adp1050.c
22
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
23
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/adp1050.c
24
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
25
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/adp1050.c
34
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
35
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/adp1050.c
36
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
37
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/adp1050.c
48
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
49
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/adp1050.c
50
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
51
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/adp1050.c
63
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
64
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/adp1050.c
65
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/adp1050.c
66
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/bel-pfe.c
33
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/bel-pfe.c
34
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/bel-pfe.c
35
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/bel-pfe.c
36
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/bel-pfe.c
37
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/bel-pfe.c
38
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/bel-pfe.c
39
.format[PSC_FAN] = linear,
drivers/hwmon/pmbus/bel-pfe.c
53
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/bel-pfe.c
54
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/bel-pfe.c
55
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/bel-pfe.c
56
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/bel-pfe.c
57
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/bel-pfe.c
58
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/bel-pfe.c
59
.format[PSC_FAN] = linear,
drivers/hwmon/pmbus/bpa-rs600.c
130
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/bpa-rs600.c
131
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/bpa-rs600.c
132
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/bpa-rs600.c
133
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/bpa-rs600.c
134
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/bpa-rs600.c
135
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/bpa-rs600.c
136
.format[PSC_FAN] = linear,
drivers/hwmon/pmbus/delta-ahe50dc-fan.c
70
.format[PSC_FAN] = direct,
drivers/hwmon/pmbus/delta-ahe50dc-fan.c
71
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/delta-ahe50dc-fan.c
72
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/dps920ab.c
71
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/dps920ab.c
72
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/dps920ab.c
73
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/dps920ab.c
74
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/dps920ab.c
75
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/dps920ab.c
76
.format[PSC_FAN] = linear,
drivers/hwmon/pmbus/dps920ab.c
77
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/hac300s.c
77
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/ina233.c
101
info->format[PSC_VOLTAGE_IN] = direct;
drivers/hwmon/pmbus/ina233.c
102
info->format[PSC_VOLTAGE_OUT] = direct;
drivers/hwmon/pmbus/ina233.c
103
info->format[PSC_CURRENT_OUT] = direct;
drivers/hwmon/pmbus/ina233.c
104
info->format[PSC_POWER] = direct;
drivers/hwmon/pmbus/ir35221.c
110
info->format[PSC_VOLTAGE_IN] = linear;
drivers/hwmon/pmbus/ir35221.c
111
info->format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/ir35221.c
112
info->format[PSC_CURRENT_IN] = linear;
drivers/hwmon/pmbus/ir35221.c
113
info->format[PSC_CURRENT_OUT] = linear;
drivers/hwmon/pmbus/ir35221.c
114
info->format[PSC_POWER] = linear;
drivers/hwmon/pmbus/ir35221.c
115
info->format[PSC_TEMPERATURE] = linear;
drivers/hwmon/pmbus/ir36021.c
16
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/ir36021.c
17
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/ir36021.c
18
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/ir36021.c
19
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/ir36021.c
20
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/ir36021.c
21
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/ir38064.c
31
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/ir38064.c
32
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/ir38064.c
33
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/ir38064.c
34
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/ir38064.c
35
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/isl68137.c
272
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/isl68137.c
273
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/isl68137.c
274
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/isl68137.c
275
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/isl68137.c
276
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/isl68137.c
277
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/isl68137.c
423
info->format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/isl68137.c
424
info->format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/isl68137.c
425
info->format[PSC_CURRENT_IN] = linear;
drivers/hwmon/pmbus/isl68137.c
426
info->format[PSC_CURRENT_OUT] = linear;
drivers/hwmon/pmbus/isl68137.c
427
info->format[PSC_POWER] = linear;
drivers/hwmon/pmbus/isl68137.c
428
info->format[PSC_TEMPERATURE] = linear;
drivers/hwmon/pmbus/lm25066.c
490
info->format[PSC_VOLTAGE_IN] = direct;
drivers/hwmon/pmbus/lm25066.c
491
info->format[PSC_VOLTAGE_OUT] = direct;
drivers/hwmon/pmbus/lm25066.c
492
info->format[PSC_CURRENT_IN] = direct;
drivers/hwmon/pmbus/lm25066.c
493
info->format[PSC_TEMPERATURE] = direct;
drivers/hwmon/pmbus/lm25066.c
494
info->format[PSC_POWER] = direct;
drivers/hwmon/pmbus/lt3074.c
62
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/lt3074.c
63
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/lt3074.c
64
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/lt3074.c
65
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/lt7182s.c
148
info->format[PSC_VOLTAGE_IN] = ieee754;
drivers/hwmon/pmbus/lt7182s.c
149
info->format[PSC_VOLTAGE_OUT] = ieee754;
drivers/hwmon/pmbus/lt7182s.c
150
info->format[PSC_CURRENT_IN] = ieee754;
drivers/hwmon/pmbus/lt7182s.c
151
info->format[PSC_CURRENT_OUT] = ieee754;
drivers/hwmon/pmbus/lt7182s.c
152
info->format[PSC_TEMPERATURE] = ieee754;
drivers/hwmon/pmbus/lt7182s.c
153
info->format[PSC_POWER] = ieee754;
drivers/hwmon/pmbus/lt7182s.c
85
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/lt7182s.c
86
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/lt7182s.c
87
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/lt7182s.c
88
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/lt7182s.c
89
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/lt7182s.c
90
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/ltc2978.c
771
info->format[PSC_VOLTAGE_IN] = ieee754;
drivers/hwmon/pmbus/ltc2978.c
772
info->format[PSC_VOLTAGE_OUT] = ieee754;
drivers/hwmon/pmbus/ltc2978.c
773
info->format[PSC_CURRENT_OUT] = ieee754;
drivers/hwmon/pmbus/ltc2978.c
774
info->format[PSC_TEMPERATURE] = ieee754;
drivers/hwmon/pmbus/ltc3815.c
153
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/ltc3815.c
154
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/ltc3815.c
155
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/ltc3815.c
156
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/ltc3815.c
157
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/ltc4286.c
25
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/ltc4286.c
26
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/ltc4286.c
27
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/ltc4286.c
28
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/ltc4286.c
29
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max16064.c
67
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max16064.c
68
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max16064.c
69
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max16601.c
226
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/max16601.c
227
.format[PSC_VOLTAGE_OUT] = vid,
drivers/hwmon/pmbus/max16601.c
228
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/max16601.c
229
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/max16601.c
230
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/max16601.c
231
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/max17616.c
17
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max17616.c
22
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max17616.c
27
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max17616.c
32
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max20730.c
539
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max20730.c
544
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max20730.c
549
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max20730.c
554
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/max20730.c
568
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max20730.c
573
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max20730.c
588
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max20730.c
593
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/max20730.c
607
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max20730.c
612
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max20730.c
617
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max20730.c
622
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/max20730.c
636
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max20730.c
641
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max20730.c
646
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max20730.c
651
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/max20751.c
17
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/max20751.c
18
.format[PSC_VOLTAGE_OUT] = vid,
drivers/hwmon/pmbus/max20751.c
20
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/max20751.c
21
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/max20751.c
22
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/max31785.c
396
.format[PSC_FAN] = direct,
drivers/hwmon/pmbus/max31785.c
401
.format[PSC_PWM] = direct,
drivers/hwmon/pmbus/max31785.c
412
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max31785.c
428
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
271
data->info.format[PSC_VOLTAGE_IN] = direct;
drivers/hwmon/pmbus/max34440.c
272
data->info.format[PSC_CURRENT_IN] = direct;
drivers/hwmon/pmbus/max34440.c
335
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max34440.c
336
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
337
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/max34440.c
338
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
339
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max34440.c
370
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max34440.c
371
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
372
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/max34440.c
373
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
374
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max34440.c
406
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max34440.c
407
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
408
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max34440.c
409
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
449
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max34440.c
450
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
451
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max34440.c
452
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
453
.format[PSC_FAN] = direct,
drivers/hwmon/pmbus/max34440.c
493
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max34440.c
494
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
495
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max34440.c
496
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
497
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/max34440.c
531
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
532
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max34440.c
533
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
555
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
556
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max34440.c
586
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max34440.c
587
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max8688.c
144
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/max8688.c
145
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/max8688.c
146
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/max8688.c
147
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp2856.c
377
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/mp2856.c
378
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp2856.c
379
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/mp2856.c
380
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp2856.c
381
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/mp2856.c
382
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/mp2869.c
583
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp2869.c
584
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp2869.c
585
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp2869.c
586
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp2869.c
587
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp2869.c
588
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp2888.c
323
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/mp2888.c
324
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp2888.c
325
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp2888.c
326
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp2888.c
327
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp2888.c
328
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp2891.c
520
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp2891.c
521
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/mp2891.c
522
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp2891.c
523
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp2891.c
524
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp2891.c
525
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp2925.c
275
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/mp2925.c
276
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp2925.c
277
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/mp2925.c
278
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/mp2925.c
279
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/mp2925.c
280
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp29502.c
590
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp29502.c
591
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp29502.c
592
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/mp29502.c
593
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp29502.c
594
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp29502.c
595
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp2975.c
946
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/mp2975.c
947
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp2975.c
948
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp2975.c
949
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp2975.c
950
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp2975.c
951
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp2975.c
971
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/mp2975.c
972
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp2975.c
973
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/mp2975.c
974
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp2975.c
975
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/mp2975.c
976
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/mp2993.c
204
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp2993.c
205
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp2993.c
206
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/mp2993.c
207
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp2993.c
208
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/mp2993.c
209
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp2993.c
54
mp2993_set_vout_format(struct i2c_client *client, int page, int format)
drivers/hwmon/pmbus/mp2993.c
62
return i2c_smbus_write_byte_data(client, PMBUS_VOUT_MODE, format);
drivers/hwmon/pmbus/mp5023.c
14
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp5023.c
15
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp5023.c
16
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp5023.c
17
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp5023.c
18
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp5920.c
14
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp5920.c
15
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp5920.c
16
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp5920.c
17
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp5920.c
18
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp5926.c
138
data->info.format[PSC_VOLTAGE_IN] = linear;
drivers/hwmon/pmbus/mp5926.c
139
data->info.format[PSC_CURRENT_IN] = linear;
drivers/hwmon/pmbus/mp5926.c
140
data->info.format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/mp5926.c
141
data->info.format[PSC_TEMPERATURE] = linear;
drivers/hwmon/pmbus/mp5926.c
142
data->info.format[PSC_POWER] = linear;
drivers/hwmon/pmbus/mp5926.c
89
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp5926.c
90
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/mp5926.c
91
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp5926.c
92
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp5926.c
93
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp5990.c
117
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp5990.c
118
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp5990.c
119
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/mp5990.c
120
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp5990.c
121
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp5990.c
122
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp5990.c
192
data->info.format[PSC_VOLTAGE_IN] = linear;
drivers/hwmon/pmbus/mp5990.c
193
data->info.format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/mp5990.c
194
data->info.format[PSC_CURRENT_OUT] = linear;
drivers/hwmon/pmbus/mp5990.c
195
data->info.format[PSC_POWER] = linear;
drivers/hwmon/pmbus/mp5990.c
197
data->info.format[PSC_CURRENT_IN] = linear;
drivers/hwmon/pmbus/mp5990.c
87
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp5990.c
88
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp5990.c
89
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mp5990.c
90
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/mp5990.c
91
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp9941.c
251
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mp9941.c
252
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/mp9941.c
253
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/mp9941.c
254
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/mp9941.c
255
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/mp9941.c
256
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp9945.c
180
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/mp9945.c
181
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/mp9945.c
182
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/mp9945.c
183
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/mp9945.c
184
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/mp9945.c
185
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/mpq7932.c
115
info->format[PSC_VOLTAGE_OUT] = direct;
drivers/hwmon/pmbus/mpq8785.c
151
info->format[PSC_VOLTAGE_OUT] = direct;
drivers/hwmon/pmbus/mpq8785.c
34
info->format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/mpq8785.c
38
info->format[PSC_VOLTAGE_OUT] = direct;
drivers/hwmon/pmbus/mpq8785.c
93
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/mpq8785.c
94
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/mpq8785.c
95
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/pim4328.c
200
info->format[PSC_VOLTAGE_IN] = direct;
drivers/hwmon/pmbus/pim4328.c
201
info->format[PSC_TEMPERATURE] = direct;
drivers/hwmon/pmbus/pim4328.c
202
info->format[PSC_CURRENT_OUT] = direct;
drivers/hwmon/pmbus/pim4328.c
208
info->format[PSC_VOLTAGE_IN] = direct;
drivers/hwmon/pmbus/pim4328.c
209
info->format[PSC_TEMPERATURE] = direct;
drivers/hwmon/pmbus/pim4328.c
210
info->format[PSC_CURRENT_IN] = direct;
drivers/hwmon/pmbus/pli1209bc.c
71
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/pli1209bc.c
72
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/pli1209bc.c
73
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/pli1209bc.c
74
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/pli1209bc.c
75
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/pli1209bc.c
76
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/pm6764tr.c
33
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/pm6764tr.c
34
.format[PSC_VOLTAGE_OUT] = vid,
drivers/hwmon/pmbus/pm6764tr.c
35
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/pm6764tr.c
36
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/pm6764tr.c
37
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/pmbus.c
130
info->format[PSC_VOLTAGE_OUT] = vid;
drivers/hwmon/pmbus/pmbus.c
135
info->format[PSC_VOLTAGE_OUT] = direct;
drivers/hwmon/pmbus/pmbus.c
155
if (info->format[PSC_VOLTAGE_OUT] == direct) {
drivers/hwmon/pmbus/pmbus.h
430
enum pmbus_data_format format[PSC_NUM_CLASSES];
drivers/hwmon/pmbus/pmbus_core.c
1106
switch (data->info->format[sensor->class]) {
drivers/hwmon/pmbus/pmbus_core.c
2613
if (info->format[map->class] != direct)
drivers/hwmon/pmbus/pmbus_core.c
2653
if (data->info->format[PSC_VOLTAGE_OUT] != linear)
drivers/hwmon/pmbus/pmbus_core.c
2659
if (data->info->format[PSC_VOLTAGE_OUT] != vid)
drivers/hwmon/pmbus/pmbus_core.c
2663
if (data->info->format[PSC_VOLTAGE_OUT] != direct)
drivers/hwmon/pmbus/pmbus_core.c
2667
if (data->info->format[PSC_VOLTAGE_OUT] != ieee754)
drivers/hwmon/pmbus/pmbus_core.c
905
switch (data->info->format[sensor->class]) {
drivers/hwmon/pmbus/pxe1610.c
63
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/pxe1610.c
64
.format[PSC_VOLTAGE_OUT] = vid,
drivers/hwmon/pmbus/pxe1610.c
65
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/pxe1610.c
66
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/pxe1610.c
67
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/pxe1610.c
68
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/q54sj108a2.c
62
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/q54sj108a2.c
63
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/q54sj108a2.c
64
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/stef48h28.c
15
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/stef48h28.c
16
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/stef48h28.c
17
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/stef48h28.c
18
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/stef48h28.c
19
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/stef48h28.c
20
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/tda38640.c
144
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/tda38640.c
145
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/tda38640.c
146
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/tda38640.c
147
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/tda38640.c
148
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/tda38640.c
149
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/tps25990.c
342
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/tps25990.c
346
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/tps25990.c
350
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/tps25990.c
359
.format[PSC_CURRENT_IN] = direct,
drivers/hwmon/pmbus/tps25990.c
363
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/tps40422.c
17
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/tps40422.c
18
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/tps40422.c
19
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/tps53679.c
155
info->format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/tps53679.c
197
info->format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/tps53679.c
226
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/tps53679.c
227
.format[PSC_VOLTAGE_OUT] = vid,
drivers/hwmon/pmbus/tps53679.c
228
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/tps53679.c
229
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/tps53679.c
230
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/tps546d24.c
16
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/tps546d24.c
17
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/tps546d24.c
18
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/tps546d24.c
19
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/xdp710.c
33
.format[PSC_VOLTAGE_IN] = direct,
drivers/hwmon/pmbus/xdp710.c
34
.format[PSC_VOLTAGE_OUT] = direct,
drivers/hwmon/pmbus/xdp710.c
35
.format[PSC_CURRENT_OUT] = direct,
drivers/hwmon/pmbus/xdp710.c
36
.format[PSC_POWER] = direct,
drivers/hwmon/pmbus/xdp710.c
37
.format[PSC_TEMPERATURE] = direct,
drivers/hwmon/pmbus/xdpe12284.c
134
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/xdpe12284.c
135
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/xdpe12284.c
136
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/xdpe12284.c
137
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/xdpe12284.c
138
.format[PSC_POWER] = linear,
drivers/hwmon/pmbus/xdpe12284.c
87
info->format[PSC_VOLTAGE_OUT] = linear;
drivers/hwmon/pmbus/xdpe12284.c
90
info->format[PSC_VOLTAGE_OUT] = vid;
drivers/hwmon/pmbus/xdpe152c4.c
19
.format[PSC_VOLTAGE_IN] = linear,
drivers/hwmon/pmbus/xdpe152c4.c
20
.format[PSC_VOLTAGE_OUT] = linear,
drivers/hwmon/pmbus/xdpe152c4.c
21
.format[PSC_TEMPERATURE] = linear,
drivers/hwmon/pmbus/xdpe152c4.c
22
.format[PSC_CURRENT_IN] = linear,
drivers/hwmon/pmbus/xdpe152c4.c
23
.format[PSC_CURRENT_OUT] = linear,
drivers/hwmon/pmbus/xdpe152c4.c
24
.format[PSC_POWER] = linear,
drivers/hwtracing/ptt/hisi_ptt.c
232
val |= FIELD_PREP(HISI_PTT_TRACE_CTRL_DATA_FORMAT, ctrl->format);
drivers/hwtracing/ptt/hisi_ptt.c
807
PMU_FORMAT_ATTR(format, "config:32-35");
drivers/hwtracing/ptt/hisi_ptt.c
992
ctrl->format = val;
drivers/hwtracing/ptt/hisi_ptt.h
140
u32 format:1;
drivers/i2c/algos/i2c-algo-bit.c
23
#define bit_dbg(level, dev, format, args...) \
drivers/i2c/algos/i2c-algo-bit.c
26
dev_dbg(dev, format, ##args); \
drivers/i2c/algos/i2c-algo-bit.c
29
#define bit_dbg(level, dev, format, args...) \
drivers/iio/common/ssp_sensors/ssp.h
18
#define ssp_dbg(format, ...) pr_info("[SSP] "format, ##__VA_ARGS__)
drivers/iio/common/ssp_sensors/ssp.h
20
#define ssp_dbg(format, ...)
drivers/infiniband/hw/hfi1/hfi.h
2455
#define opa_get_lid(lid, format) \
drivers/infiniband/hw/hfi1/hfi.h
2456
__opa_get_lid(lid, OPA_PORT_PACKET_FORMAT_##format)
drivers/infiniband/hw/hfi1/hfi.h
2459
static inline u32 __opa_get_lid(u32 lid, u8 format)
drivers/infiniband/hw/hfi1/hfi.h
2463
switch (format) {
drivers/infiniband/hw/hfi1/vnic.h
100
#define v_err(format, arg...) \
drivers/infiniband/hw/hfi1/vnic.h
101
netdev_err(vinfo->netdev, format, ## arg)
drivers/infiniband/hw/hfi1/vnic.h
102
#define v_info(format, arg...) \
drivers/infiniband/hw/hfi1/vnic.h
103
netdev_info(vinfo->netdev, format, ## arg)
drivers/infiniband/hw/hfi1/vnic.h
98
#define v_dbg(format, arg...) \
drivers/infiniband/hw/hfi1/vnic.h
99
netdev_dbg(vinfo->netdev, format, ## arg)
drivers/infiniband/hw/mlx4/mcg.c
50
#define mcg_warn_group(group, format, arg...) \
drivers/infiniband/hw/mlx4/mcg.c
51
pr_warn("%s-%d: %16s (port %d): WARNING: " format, __func__, __LINE__,\
drivers/infiniband/hw/mlx4/mcg.c
54
#define mcg_debug_group(group, format, arg...) \
drivers/infiniband/hw/mlx4/mcg.c
55
pr_debug("%s-%d: %16s (port %d): WARNING: " format, __func__, __LINE__,\
drivers/infiniband/hw/mlx4/mcg.c
58
#define mcg_error_group(group, format, arg...) \
drivers/infiniband/hw/mlx4/mcg.c
59
pr_err(" %16s: " format, (group)->name, ## arg)
drivers/infiniband/hw/mlx4/mlx4_ib.h
60
#define mlx4_ib_warn(ibdev, format, arg...) \
drivers/infiniband/hw/mlx4/mlx4_ib.h
61
dev_warn((ibdev)->dev.parent, MLX4_IB_DRV_NAME ": " format, ## arg)
drivers/infiniband/hw/mlx5/cq.c
702
static int mini_cqe_res_format_to_hw(struct mlx5_ib_dev *dev, u8 format)
drivers/infiniband/hw/mlx5/cq.c
704
switch (format) {
drivers/infiniband/hw/mlx5/mlx5_ib.h
31
#define mlx5_ib_dbg(_dev, format, arg...) \
drivers/infiniband/hw/mlx5/mlx5_ib.h
32
dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, \
drivers/infiniband/hw/mlx5/mlx5_ib.h
35
#define mlx5_ib_err(_dev, format, arg...) \
drivers/infiniband/hw/mlx5/mlx5_ib.h
36
dev_err(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, \
drivers/infiniband/hw/mlx5/mlx5_ib.h
39
#define mlx5_ib_warn(_dev, format, arg...) \
drivers/infiniband/hw/mlx5/mlx5_ib.h
40
dev_warn(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, \
drivers/infiniband/hw/mlx5/mlx5_ib.h
43
#define mlx5_ib_log(lvl, _dev, format, arg...) \
drivers/infiniband/hw/mlx5/mlx5_ib.h
44
dev_printk(lvl, &(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, \
drivers/infiniband/hw/mthca/mthca_dev.h
365
#define mthca_dbg(mdev, format, arg...) \
drivers/infiniband/hw/mthca/mthca_dev.h
368
dev_printk(KERN_DEBUG, &mdev->pdev->dev, format, ## arg); \
drivers/infiniband/hw/mthca/mthca_dev.h
373
#define mthca_dbg(mdev, format, arg...) do { (void) mdev; } while (0)
drivers/infiniband/hw/mthca/mthca_dev.h
377
#define mthca_err(mdev, format, arg...) \
drivers/infiniband/hw/mthca/mthca_dev.h
378
dev_err(&mdev->pdev->dev, format, ## arg)
drivers/infiniband/hw/mthca/mthca_dev.h
379
#define mthca_info(mdev, format, arg...) \
drivers/infiniband/hw/mthca/mthca_dev.h
380
dev_info(&mdev->pdev->dev, format, ## arg)
drivers/infiniband/hw/mthca/mthca_dev.h
381
#define mthca_warn(mdev, format, arg...) \
drivers/infiniband/hw/mthca/mthca_dev.h
382
dev_warn(&mdev->pdev->dev, format, ## arg)
drivers/infiniband/ulp/ipoib/ipoib.h
504
const char *format);
drivers/infiniband/ulp/ipoib/ipoib.h
505
int ipoib_intf_init(struct ib_device *hca, u32 port, const char *format,
drivers/infiniband/ulp/ipoib/ipoib.h
791
#define ipoib_printk(level, priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib.h
792
printk(level "%s: " format, ((struct ipoib_dev_priv *) priv)->dev->name , ## arg)
drivers/infiniband/ulp/ipoib/ipoib.h
793
#define ipoib_warn(priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib.h
799
ipoib_printk(KERN_WARNING, priv, format , ## arg);\
drivers/infiniband/ulp/ipoib/ipoib.h
810
#define ipoib_dbg(priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib.h
813
ipoib_printk(KERN_DEBUG, priv, format , ## arg); \
drivers/infiniband/ulp/ipoib/ipoib.h
815
#define ipoib_dbg_mcast(priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib.h
818
ipoib_printk(KERN_DEBUG, priv, format , ## arg); \
drivers/infiniband/ulp/ipoib/ipoib.h
821
#define ipoib_dbg(priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib.h
823
#define ipoib_dbg_mcast(priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib.h
828
#define ipoib_dbg_data(priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib.h
831
ipoib_printk(KERN_DEBUG, priv, format , ## arg); \
drivers/infiniband/ulp/ipoib/ipoib.h
834
#define ipoib_dbg_data(priv, format, arg...) \
drivers/infiniband/ulp/ipoib/ipoib_main.c
2580
static struct net_device *ipoib_add_port(const char *format,
drivers/infiniband/ulp/ipoib/ipoib_main.c
2589
ndev = ipoib_intf_alloc(hca, port, format);
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
245
#define v_dbg(format, arg...) \
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
246
netdev_dbg(adapter->netdev, format, ## arg)
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
247
#define v_err(format, arg...) \
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
248
netdev_err(adapter->netdev, format, ## arg)
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
249
#define v_info(format, arg...) \
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
250
netdev_info(adapter->netdev, format, ## arg)
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
251
#define v_warn(format, arg...) \
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
252
netdev_warn(adapter->netdev, format, ## arg)
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
254
#define c_err(format, arg...) \
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
255
dev_err(&cport->ibdev->dev, format, ## arg)
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
256
#define c_info(format, arg...) \
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
257
dev_info(&cport->ibdev->dev, format, ## arg)
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
258
#define c_dbg(format, arg...) \
drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h
259
dev_dbg(&cport->ibdev->dev, format, ## arg)
drivers/input/joystick/grip_mp.c
29
#define dbg(format, arg...) printk(KERN_ERR __FILE__ ": " format "\n" , ## arg)
drivers/input/joystick/grip_mp.c
31
#define dbg(format, arg...) do {} while (0)
drivers/input/joystick/sidewinder.c
44
#define dbg(format, arg...) printk(KERN_DEBUG __FILE__ ": " format "\n" , ## arg)
drivers/input/joystick/sidewinder.c
46
#define dbg(format, arg...) do {} while (0)
drivers/input/mouse/appletouch.c
227
#define dprintk(format, a...) \
drivers/input/mouse/appletouch.c
230
printk(KERN_DEBUG format, ##a); \
drivers/input/mouse/bcm5974.c
159
#define dprintk(level, format, a...)\
drivers/input/mouse/bcm5974.c
160
{ if (debug >= level) printk(KERN_DEBUG format, ##a); }
drivers/input/mouse/psmouse.h
200
#define psmouse_dbg(psmouse, format, ...) \
drivers/input/mouse/psmouse.h
202
psmouse_fmt(format), ##__VA_ARGS__)
drivers/input/mouse/psmouse.h
203
#define psmouse_info(psmouse, format, ...) \
drivers/input/mouse/psmouse.h
205
psmouse_fmt(format), ##__VA_ARGS__)
drivers/input/mouse/psmouse.h
206
#define psmouse_warn(psmouse, format, ...) \
drivers/input/mouse/psmouse.h
208
psmouse_fmt(format), ##__VA_ARGS__)
drivers/input/mouse/psmouse.h
209
#define psmouse_err(psmouse, format, ...) \
drivers/input/mouse/psmouse.h
211
psmouse_fmt(format), ##__VA_ARGS__)
drivers/input/mouse/psmouse.h
212
#define psmouse_notice(psmouse, format, ...) \
drivers/input/mouse/psmouse.h
214
psmouse_fmt(format), ##__VA_ARGS__)
drivers/input/mouse/psmouse.h
215
#define psmouse_printk(level, psmouse, format, ...) \
drivers/input/mouse/psmouse.h
218
psmouse_fmt(format), ##__VA_ARGS__)
drivers/input/rmi4/rmi_f54.c
121
struct v4l2_pix_format format;
drivers/input/rmi4/rmi_f54.c
421
struct v4l2_pix_format *f = &f54->format;
drivers/input/rmi4/rmi_f54.c
465
f->fmt.pix = f54->format;
drivers/input/rmi4/rmi_f54.c
481
fmt->pixelformat = f54->format.pixelformat;
drivers/input/serio/i8042.h
63
#define dbg(format, arg...) \
drivers/input/serio/i8042.h
66
printk(KERN_DEBUG KBUILD_MODNAME ": [%d] " format, \
drivers/input/serio/i8042.h
70
#define filter_dbg(filter, data, format, args...) \
drivers/input/serio/i8042.h
76
dbg("%02x " format, data, ##args); \
drivers/input/serio/i8042.h
78
dbg("** " format, ##args); \
drivers/input/serio/i8042.h
82
#define dbg(format, arg...) \
drivers/input/serio/i8042.h
85
printk(KERN_DEBUG pr_fmt(format), ##arg); \
drivers/input/serio/i8042.h
88
#define filter_dbg(filter, data, format, args...) do { } while (0)
drivers/input/touchscreen/atmel_mxt_ts.c
253
struct v4l2_pix_format format;
drivers/input/touchscreen/atmel_mxt_ts.c
2588
struct v4l2_pix_format *f = &data->dbg.format;
drivers/input/touchscreen/atmel_mxt_ts.c
2629
f->fmt.pix = data->dbg.format;
drivers/iommu/amd/amd_iommu_types.h
417
#define DUMP_printk(format, arg...) \
drivers/iommu/amd/amd_iommu_types.h
420
pr_info(format, ## arg); \
drivers/ipack/ipack.c
31
if ((id->format == IPACK_ANY_FORMAT ||
drivers/ipack/ipack.c
32
id->format == device->id_format) &&
drivers/isdn/capi/kcapi.h
19
#define DBG(format, arg...) do { \
drivers/isdn/capi/kcapi.h
20
printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
drivers/isdn/capi/kcapi.h
23
#define DBG(format, arg...) /* */
drivers/leds/leds-sun50i-a100.c
254
const char *format = "grb";
drivers/leds/leds-sun50i-a100.c
257
device_property_read_string(dev, "allwinner,pixel-format", &format);
drivers/leds/leds-sun50i-a100.c
259
i = match_string(sun50i_a100_ledc_formats, ARRAY_SIZE(sun50i_a100_ledc_formats), format);
drivers/leds/leds-sun50i-a100.c
261
return dev_err_probe(dev, i, "Bad pixel format '%s'\n", format);
drivers/leds/leds-sun50i-a100.c
263
priv->format = i;
drivers/leds/leds-sun50i-a100.c
273
control |= FIELD_PREP(LEDC_CTRL_REG_RGB_MODE, priv->format);
drivers/leds/leds-sun50i-a100.c
90
u32 format;
drivers/md/dm-pcache/cache_dev.c
244
bool format = false;
drivers/md/dm-pcache/cache_dev.c
261
format = true;
drivers/md/dm-pcache/cache_dev.c
276
if (format)
drivers/md/dm-vdo/logger.c
194
int vdo_vlog_strerror(int priority, int errnum, const char *module, const char *format,
drivers/md/dm-vdo/logger.c
200
vdo_log_embedded_message(priority, module, NULL, format, args, ": %s (%d)",
drivers/md/dm-vdo/logger.c
205
int __vdo_log_strerror(int priority, int errnum, const char *module, const char *format, ...)
drivers/md/dm-vdo/logger.c
209
va_start(args, format);
drivers/md/dm-vdo/logger.c
210
vdo_vlog_strerror(priority, errnum, module, format, args);
drivers/md/dm-vdo/logger.c
223
void __vdo_log_message(int priority, const char *module, const char *format, ...)
drivers/md/dm-vdo/logger.c
227
va_start(args, format);
drivers/md/dm-vdo/logger.c
228
vdo_log_embedded_message(priority, module, NULL, format, args, "%s", "");
drivers/md/dm-vdo/logger.h
60
const char *format, ...)
drivers/md/dm-vdo/logger.h
63
int vdo_vlog_strerror(int priority, int errnum, const char *module, const char *format,
drivers/md/dm-vdo/logger.h
86
void __vdo_log_message(int priority, const char *module, const char *format, ...)
drivers/md/dm-vdo/permassert.c
12
int line_number, const char *format, ...)
drivers/md/dm-vdo/permassert.c
16
va_start(args, format);
drivers/md/dm-vdo/permassert.c
19
format, args, "\" (%s) failed at %s:%d",
drivers/md/dm-vdo/permassert.h
42
int line_number, const char *format, ...)
drivers/md/dm-vdo/repair.c
1275
static bool unpack_entry(struct vdo *vdo, char *packed, enum vdo_metadata_type format,
drivers/md/dm-vdo/repair.c
1278
if (format == VDO_METADATA_RECOVERY_JOURNAL_2) {
drivers/md/dm-vdo/repair.c
1322
enum vdo_metadata_type format,
drivers/md/dm-vdo/repair.c
1327
off_t increment = ((format == VDO_METADATA_RECOVERY_JOURNAL_2)
drivers/md/dm-vdo/repair.c
1334
if (!unpack_entry(vdo, entries, format, &entry))
drivers/md/dm-vdo/repair.c
1349
static journal_entry_count_t entries_per_sector(enum vdo_metadata_type format,
drivers/md/dm-vdo/repair.c
1352
if (format == VDO_METADATA_RECOVERY_JOURNAL_2)
drivers/md/dm-vdo/repair.c
1363
enum vdo_metadata_type format,
drivers/md/dm-vdo/repair.c
1372
(header.metadata_type != format)) {
drivers/md/dm-vdo/repair.c
1382
min(entries, entries_per_sector(format, i));
drivers/md/dm-vdo/repair.c
1386
append_sector_entries(repair, (char *) sector->entries, format,
drivers/md/dm-vdo/repair.c
1405
enum vdo_metadata_type format;
drivers/md/dm-vdo/repair.c
1410
format = get_recovery_journal_block_header(journal, repair->journal_data,
drivers/md/dm-vdo/repair.c
1412
if (format == VDO_METADATA_RECOVERY_JOURNAL)
drivers/md/dm-vdo/repair.c
1426
extract_entries_from_block(repair, journal, i, format, entries_per_block);
drivers/md/dm-vdo/vio.c
255
void update_vio_error_stats(struct vio *vio, const char *format, ...)
drivers/md/dm-vdo/vio.c
280
va_start(args, format);
drivers/md/dm-vdo/vio.c
282
format, args);
drivers/md/dm-vdo/vio.h
131
void update_vio_error_stats(struct vio *vio, const char *format, ...)
drivers/md/dm-zoned-metadata.c
207
#define dmz_zmd_info(zmd, format, args...) \
drivers/md/dm-zoned-metadata.c
208
DMINFO("(%s): " format, (zmd)->label, ## args)
drivers/md/dm-zoned-metadata.c
210
#define dmz_zmd_err(zmd, format, args...) \
drivers/md/dm-zoned-metadata.c
211
DMERR("(%s): " format, (zmd)->label, ## args)
drivers/md/dm-zoned-metadata.c
213
#define dmz_zmd_warn(zmd, format, args...) \
drivers/md/dm-zoned-metadata.c
214
DMWARN("(%s): " format, (zmd)->label, ## args)
drivers/md/dm-zoned-metadata.c
216
#define dmz_zmd_debug(zmd, format, args...) \
drivers/md/dm-zoned-metadata.c
217
DMDEBUG("(%s): " format, (zmd)->label, ## args)
drivers/md/dm-zoned.h
177
#define dmz_dev_info(dev, format, args...) \
drivers/md/dm-zoned.h
178
DMINFO("(%pg): " format, (dev)->bdev, ## args)
drivers/md/dm-zoned.h
180
#define dmz_dev_err(dev, format, args...) \
drivers/md/dm-zoned.h
181
DMERR("(%pg): " format, (dev)->bdev, ## args)
drivers/md/dm-zoned.h
183
#define dmz_dev_warn(dev, format, args...) \
drivers/md/dm-zoned.h
184
DMWARN("(%pg): " format, (dev)->bdev, ## args)
drivers/md/dm-zoned.h
186
#define dmz_dev_debug(dev, format, args...) \
drivers/md/dm-zoned.h
187
DMDEBUG("(%pg): " format, (dev)->bdev, ## args)
drivers/media/common/b2c2/flexcop-common.h
30
#define err(format, arg...) \
drivers/media/common/b2c2/flexcop-common.h
31
printk(KERN_ERR FC_LOG_PREFIX ": " format "\n" , ## arg)
drivers/media/common/b2c2/flexcop-common.h
33
#define info(format, arg...) \
drivers/media/common/b2c2/flexcop-common.h
34
printk(KERN_INFO FC_LOG_PREFIX ": " format "\n" , ## arg)
drivers/media/common/b2c2/flexcop-common.h
36
#define warn(format, arg...) \
drivers/media/common/b2c2/flexcop-common.h
37
printk(KERN_WARNING FC_LOG_PREFIX ": " format "\n" , ## arg)
drivers/media/common/videobuf2/videobuf2-v4l2.c
1049
int res = vb2_verify_memory_type(vdev->queue, p->memory, p->format.type);
drivers/media/common/videobuf2/videobuf2-v4l2.c
750
struct v4l2_format *f = &create->format;
drivers/media/dvb-frontends/bcm3510_priv.h
15
#define err(format, arg...) printk(KERN_ERR "bcm3510: " format "\n", ## arg)
drivers/media/dvb-frontends/bcm3510_priv.h
17
#define info(format, arg...) printk(KERN_INFO "bcm3510: " format "\n", ## arg)
drivers/media/dvb-frontends/bcm3510_priv.h
19
#define warn(format, arg...) printk(KERN_WARNING "bcm3510: " format "\n", ## arg)
drivers/media/dvb-frontends/drx39xyj/drx_driver.h
1519
enum drxi2s_format format; /*< I2S wordstrobe delay to data */
drivers/media/dvb-frontends/isl6423.c
30
#define dprintk(__y, __z, format, arg...) do { \
drivers/media/dvb-frontends/isl6423.c
33
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/isl6423.c
35
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/isl6423.c
37
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/isl6423.c
39
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/isl6423.c
42
printk(format, ##arg); \
drivers/media/dvb-frontends/m88rs2000.c
48
#define info(format, arg...) \
drivers/media/dvb-frontends/m88rs2000.c
49
printk(KERN_INFO "m88rs2000-fe: " format "\n" , ## arg)
drivers/media/dvb-frontends/mb86a16.c
43
#define dprintk(x, y, z, format, arg...) do { \
drivers/media/dvb-frontends/mb86a16.c
46
printk(KERN_ERR "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/mb86a16.c
48
printk(KERN_NOTICE "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/mb86a16.c
50
printk(KERN_INFO "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/mb86a16.c
52
printk(KERN_DEBUG "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/mb86a16.c
55
printk(format, ##arg); \
drivers/media/dvb-frontends/stb0899_priv.h
22
#define dprintk(x, y, z, format, arg...) do { \
drivers/media/dvb-frontends/stb0899_priv.h
25
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb0899_priv.h
27
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb0899_priv.h
29
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb0899_priv.h
31
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb0899_priv.h
34
printk(format, ##arg); \
drivers/media/dvb-frontends/stb6100.c
30
#define dprintk(x, y, z, format, arg...) do { \
drivers/media/dvb-frontends/stb6100.c
33
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb6100.c
35
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb6100.c
37
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb6100.c
39
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stb6100.c
42
printk(format, ##arg); \
drivers/media/dvb-frontends/stv090x_priv.h
21
#define dprintk(__y, __z, format, arg...) do { \
drivers/media/dvb-frontends/stv090x_priv.h
24
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stv090x_priv.h
26
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stv090x_priv.h
28
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stv090x_priv.h
30
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
drivers/media/dvb-frontends/stv090x_priv.h
33
printk(format, ##arg); \
drivers/media/dvb-frontends/stv6110x_priv.h
20
#define dprintk(__y, __z, format, arg...) do { \
drivers/media/dvb-frontends/stv6110x_priv.h
23
printk(KERN_ERR "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/stv6110x_priv.h
25
printk(KERN_NOTICE "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/stv6110x_priv.h
27
printk(KERN_INFO "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/stv6110x_priv.h
29
printk(KERN_DEBUG "%s: " format "\n", __func__, ##arg); \
drivers/media/dvb-frontends/stv6110x_priv.h
32
printk(format, ##arg); \
drivers/media/i2c/adv7170.c
265
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7170.c
267
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/adv7170.c
270
if (format->pad)
drivers/media/i2c/adv7170.c
288
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7170.c
290
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/adv7170.c
293
if (format->pad)
drivers/media/i2c/adv7170.c
311
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/adv7175.c
303
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7175.c
305
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/adv7175.c
308
if (format->pad)
drivers/media/i2c/adv7175.c
326
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7175.c
328
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/adv7175.c
332
if (format->pad)
drivers/media/i2c/adv7175.c
350
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/adv7180.c
759
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7180.c
763
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/adv7180.c
764
format->format = *v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/i2c/adv7180.c
766
adv7180_mbus_fmt(sd, &format->format);
drivers/media/i2c/adv7180.c
767
format->format.field = state->field;
drivers/media/i2c/adv7180.c
775
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7180.c
781
switch (format->format.field) {
drivers/media/i2c/adv7180.c
787
format->format.field = V4L2_FIELD_ALTERNATE;
drivers/media/i2c/adv7180.c
791
ret = adv7180_mbus_fmt(sd, &format->format);
drivers/media/i2c/adv7180.c
793
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/adv7180.c
794
state->field = format->format.field;
drivers/media/i2c/adv7180.c
797
*framefmt = format->format;
drivers/media/i2c/adv7183.c
424
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7183.c
427
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/adv7183.c
429
if (format->pad)
drivers/media/i2c/adv7183.c
443
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/adv7183.c
450
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7183.c
454
if (format->pad)
drivers/media/i2c/adv7183.c
457
format->format = decoder->fmt;
drivers/media/i2c/adv7183.c
599
fmt.format.width = 720;
drivers/media/i2c/adv7183.c
600
fmt.format.height = 576;
drivers/media/i2c/adv748x/adv748x-afe.c
342
sdformat->format = *mbusformat;
drivers/media/i2c/adv748x/adv748x-afe.c
344
adv748x_afe_fill_format(afe, &sdformat->format);
drivers/media/i2c/adv748x/adv748x-afe.c
365
*mbusformat = sdformat->format;
drivers/media/i2c/adv748x/adv748x-csi2.c
242
if (!adv748x_csi2_is_fmt_supported(tx, sdformat->format.code))
drivers/media/i2c/adv748x/adv748x-csi2.c
243
sdformat->format.code = MEDIA_BUS_FMT_UYVY8_1X16;
drivers/media/i2c/adv748x/adv748x-csi2.c
246
*mbusformat = sdformat->format;
drivers/media/i2c/adv748x/adv748x-csi2.c
250
*mbusformat = sdformat->format;
drivers/media/i2c/adv748x/adv748x-hdmi.c
433
sdformat->format = *mbusformat;
drivers/media/i2c/adv748x/adv748x-hdmi.c
435
adv748x_hdmi_fill_format(hdmi, &sdformat->format);
drivers/media/i2c/adv748x/adv748x-hdmi.c
455
*mbusformat = sdformat->format;
drivers/media/i2c/adv748x/adv748x.h
119
struct v4l2_mbus_framefmt format;
drivers/media/i2c/adv748x/adv748x.h
154
struct v4l2_mbus_framefmt format;
drivers/media/i2c/adv7511-v4l2.c
1236
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/adv7511-v4l2.c
1238
format->width = state->dv_timings.bt.width;
drivers/media/i2c/adv7511-v4l2.c
1239
format->height = state->dv_timings.bt.height;
drivers/media/i2c/adv7511-v4l2.c
1240
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/adv7511-v4l2.c
1245
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7511-v4l2.c
1249
if (format->pad != 0)
drivers/media/i2c/adv7511-v4l2.c
1252
memset(&format->format, 0, sizeof(format->format));
drivers/media/i2c/adv7511-v4l2.c
1253
adv7511_fill_format(state, &format->format);
drivers/media/i2c/adv7511-v4l2.c
1255
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/adv7511-v4l2.c
1258
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/adv7511-v4l2.c
1259
format->format.code = fmt->code;
drivers/media/i2c/adv7511-v4l2.c
1260
format->format.colorspace = fmt->colorspace;
drivers/media/i2c/adv7511-v4l2.c
1261
format->format.ycbcr_enc = fmt->ycbcr_enc;
drivers/media/i2c/adv7511-v4l2.c
1262
format->format.quantization = fmt->quantization;
drivers/media/i2c/adv7511-v4l2.c
1263
format->format.xfer_func = fmt->xfer_func;
drivers/media/i2c/adv7511-v4l2.c
1265
format->format.code = state->fmt_code;
drivers/media/i2c/adv7511-v4l2.c
1266
format->format.colorspace = state->colorspace;
drivers/media/i2c/adv7511-v4l2.c
1267
format->format.ycbcr_enc = state->ycbcr_enc;
drivers/media/i2c/adv7511-v4l2.c
1268
format->format.quantization = state->quantization;
drivers/media/i2c/adv7511-v4l2.c
1269
format->format.xfer_func = state->xfer_func;
drivers/media/i2c/adv7511-v4l2.c
1277
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7511-v4l2.c
1298
if (format->pad != 0)
drivers/media/i2c/adv7511-v4l2.c
1300
switch (format->format.code) {
drivers/media/i2c/adv7511-v4l2.c
1309
adv7511_fill_format(state, &format->format);
drivers/media/i2c/adv7511-v4l2.c
1310
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/adv7511-v4l2.c
1313
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/adv7511-v4l2.c
1314
fmt->code = format->format.code;
drivers/media/i2c/adv7511-v4l2.c
1315
fmt->colorspace = format->format.colorspace;
drivers/media/i2c/adv7511-v4l2.c
1316
fmt->ycbcr_enc = format->format.ycbcr_enc;
drivers/media/i2c/adv7511-v4l2.c
1317
fmt->quantization = format->format.quantization;
drivers/media/i2c/adv7511-v4l2.c
1318
fmt->xfer_func = format->format.xfer_func;
drivers/media/i2c/adv7511-v4l2.c
1322
switch (format->format.code) {
drivers/media/i2c/adv7511-v4l2.c
1339
state->fmt_code = format->format.code;
drivers/media/i2c/adv7511-v4l2.c
1340
state->colorspace = format->format.colorspace;
drivers/media/i2c/adv7511-v4l2.c
1341
state->ycbcr_enc = format->format.ycbcr_enc;
drivers/media/i2c/adv7511-v4l2.c
1342
state->quantization = format->format.quantization;
drivers/media/i2c/adv7511-v4l2.c
1343
state->xfer_func = format->format.xfer_func;
drivers/media/i2c/adv7511-v4l2.c
1345
switch (format->format.colorspace) {
drivers/media/i2c/adv7511-v4l2.c
1353
if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV601) {
drivers/media/i2c/adv7511-v4l2.c
1360
if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV709) {
drivers/media/i2c/adv7511-v4l2.c
1372
if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_BT2020_CONST_LUM)
drivers/media/i2c/adv7511-v4l2.c
1394
switch (format->format.quantization) {
drivers/media/i2c/adv7604.c
183
const struct adv76xx_format_info *format;
drivers/media/i2c/adv7604.c
1857
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/adv7604.c
1859
memset(format, 0, sizeof(*format));
drivers/media/i2c/adv7604.c
1861
format->width = state->timings.bt.width;
drivers/media/i2c/adv7604.c
1862
format->height = state->timings.bt.height;
drivers/media/i2c/adv7604.c
1863
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/adv7604.c
1864
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/adv7604.c
1867
format->colorspace = (state->timings.bt.height <= 576) ?
drivers/media/i2c/adv7604.c
1905
return op_ch_sel[state->pdata.bus_order][state->format->op_ch_sel >> 5];
drivers/media/i2c/adv7604.c
1913
state->format->rgb_out ? ADV76XX_RGB_OUT : 0);
drivers/media/i2c/adv7604.c
1914
io_write(sd, 0x03, state->format->op_format_sel |
drivers/media/i2c/adv7604.c
1918
state->format->swap_cb_cr ? ADV76XX_OP_SWAP_CB_CR : 0);
drivers/media/i2c/adv7604.c
1924
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7604.c
1928
if (format->pad != state->source_pad)
drivers/media/i2c/adv7604.c
1931
adv76xx_fill_format(state, &format->format);
drivers/media/i2c/adv7604.c
1933
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/adv7604.c
1936
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/adv7604.c
1937
format->format.code = fmt->code;
drivers/media/i2c/adv7604.c
1939
format->format.code = state->format->code;
drivers/media/i2c/adv7604.c
1967
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7604.c
1972
if (format->pad != state->source_pad)
drivers/media/i2c/adv7604.c
1975
info = adv76xx_format_info(state, format->format.code);
drivers/media/i2c/adv7604.c
1979
adv76xx_fill_format(state, &format->format);
drivers/media/i2c/adv7604.c
1980
format->format.code = info->code;
drivers/media/i2c/adv7604.c
1982
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/adv7604.c
1985
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/adv7604.c
1986
fmt->code = format->format.code;
drivers/media/i2c/adv7604.c
1988
state->format = info;
drivers/media/i2c/adv7604.c
3541
state->format = adv76xx_format_info(state, MEDIA_BUS_FMT_YUYV8_2X8);
drivers/media/i2c/adv7842.c
2009
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/adv7842.c
2011
memset(format, 0, sizeof(*format));
drivers/media/i2c/adv7842.c
2013
format->width = state->timings.bt.width;
drivers/media/i2c/adv7842.c
2014
format->height = state->timings.bt.height;
drivers/media/i2c/adv7842.c
2015
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/adv7842.c
2016
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/adv7842.c
2019
format->colorspace = (state->timings.bt.height <= 576) ?
drivers/media/i2c/adv7842.c
2057
return op_ch_sel[state->pdata.bus_order][state->format->op_ch_sel >> 5];
drivers/media/i2c/adv7842.c
2065
state->format->rgb_out ? ADV7842_RGB_OUT : 0);
drivers/media/i2c/adv7842.c
2066
io_write(sd, 0x03, state->format->op_format_sel |
drivers/media/i2c/adv7842.c
2070
state->format->swap_cb_cr ? ADV7842_OP_SWAP_CB_CR : 0);
drivers/media/i2c/adv7842.c
2076
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7842.c
2080
if (format->pad != ADV7842_PAD_SOURCE)
drivers/media/i2c/adv7842.c
2087
format->format.code = MEDIA_BUS_FMT_YUYV8_2X8;
drivers/media/i2c/adv7842.c
2088
format->format.width = 720;
drivers/media/i2c/adv7842.c
2091
format->format.height = 480;
drivers/media/i2c/adv7842.c
2093
format->format.height = 576;
drivers/media/i2c/adv7842.c
2094
format->format.colorspace = V4L2_COLORSPACE_SMPTE170M;
drivers/media/i2c/adv7842.c
2098
adv7842_fill_format(state, &format->format);
drivers/media/i2c/adv7842.c
2100
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/adv7842.c
2103
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/adv7842.c
2104
format->format.code = fmt->code;
drivers/media/i2c/adv7842.c
2106
format->format.code = state->format->code;
drivers/media/i2c/adv7842.c
2114
struct v4l2_subdev_format *format)
drivers/media/i2c/adv7842.c
2119
if (format->pad != ADV7842_PAD_SOURCE)
drivers/media/i2c/adv7842.c
2123
return adv7842_get_format(sd, sd_state, format);
drivers/media/i2c/adv7842.c
2125
info = adv7842_format_info(state, format->format.code);
drivers/media/i2c/adv7842.c
2129
adv7842_fill_format(state, &format->format);
drivers/media/i2c/adv7842.c
2130
format->format.code = info->code;
drivers/media/i2c/adv7842.c
2132
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/adv7842.c
2135
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/adv7842.c
2136
fmt->code = format->format.code;
drivers/media/i2c/adv7842.c
2138
state->format = info;
drivers/media/i2c/adv7842.c
3545
state->format = adv7842_format_info(state, MEDIA_BUS_FMT_YUYV8_2X8);
drivers/media/i2c/adv7842.c
97
const struct adv7842_format_info *format;
drivers/media/i2c/ak881x.c
101
if (format->pad)
drivers/media/i2c/ak881x.c
95
struct v4l2_subdev_format *format)
drivers/media/i2c/ak881x.c
97
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/alvium-csi2.c
1786
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/alvium-csi2.c
1792
alvium_csi2_fmt = alvium_code_to_pixfmt(alvium, format->code);
drivers/media/i2c/alvium-csi2.c
1866
.format = alvium_csi2_default_fmt,
drivers/media/i2c/alvium-csi2.c
1879
*v4l2_subdev_state_get_format(state, 0) = sd_fmt.format;
drivers/media/i2c/alvium-csi2.c
1891
struct v4l2_subdev_format *format)
drivers/media/i2c/alvium-csi2.c
1901
v4l_bound_align_image(&format->format.width, alvium->img_min_width,
drivers/media/i2c/alvium-csi2.c
1903
&format->format.height, alvium->img_min_height,
drivers/media/i2c/alvium-csi2.c
1916
alvium_csi2_fmt = alvium_code_to_pixfmt(alvium, format->format.code);
drivers/media/i2c/alvium-csi2.c
1919
*fmt = format->format;
drivers/media/i2c/ar0521.c
441
struct v4l2_subdev_format *format)
drivers/media/i2c/ar0521.c
448
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ar0521.c
453
format->format = *fmt;
drivers/media/i2c/ar0521.c
461
struct v4l2_subdev_format *format)
drivers/media/i2c/ar0521.c
467
ar0521_adj_fmt(&format->format);
drivers/media/i2c/ar0521.c
471
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ar0521.c
475
*fmt = format->format;
drivers/media/i2c/ar0521.c
482
sensor->fmt = format->format;
drivers/media/i2c/ccs/ccs-core.c
2154
fmt->format = *v4l2_subdev_state_get_format(sd_state, fmt->pad);
drivers/media/i2c/ccs/ccs-core.c
2155
fmt->format.code = ccs_get_mbus_code(subdev, fmt->pad);
drivers/media/i2c/ccs/ccs-core.c
2199
u32 code = fmt->format.code;
drivers/media/i2c/ccs/ccs-core.c
2216
fmt->format.code = csi_format->code;
drivers/media/i2c/ccs/ccs-core.c
2261
fmt->format.code = ccs_get_mbus_code(subdev, fmt->pad);
drivers/media/i2c/ccs/ccs-core.c
2263
fmt->format.width &= ~1;
drivers/media/i2c/ccs/ccs-core.c
2264
fmt->format.height &= ~1;
drivers/media/i2c/ccs/ccs-core.c
2265
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ccs/ccs-core.c
2267
fmt->format.width =
drivers/media/i2c/ccs/ccs-core.c
2268
clamp(fmt->format.width,
drivers/media/i2c/ccs/ccs-core.c
2271
fmt->format.height =
drivers/media/i2c/ccs/ccs-core.c
2272
clamp(fmt->format.height,
drivers/media/i2c/ccs/ccs-core.c
2281
crop->width = fmt->format.width;
drivers/media/i2c/ccs/ccs-core.c
2282
crop->height = fmt->format.height;
drivers/media/i2c/cx25840/cx25840-core.c
1750
struct v4l2_subdev_format *format)
drivers/media/i2c/cx25840/cx25840-core.c
1752
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/cx25840/cx25840-core.c
1759
if (format->pad || fmt->code != MEDIA_BUS_FMT_FIXED)
drivers/media/i2c/cx25840/cx25840-core.c
1817
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ds90ub913.c
434
struct v4l2_subdev_format *format)
drivers/media/i2c/ds90ub913.c
440
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE &&
drivers/media/i2c/ds90ub913.c
445
if (format->pad == UB913_PAD_SOURCE)
drivers/media/i2c/ds90ub913.c
446
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/i2c/ds90ub913.c
448
finfo = ub913_find_format(format->format.code);
drivers/media/i2c/ds90ub913.c
451
format->format.code = finfo->incode;
drivers/media/i2c/ds90ub913.c
455
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/ds90ub913.c
459
*fmt = format->format;
drivers/media/i2c/ds90ub913.c
462
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/i2c/ds90ub913.c
463
format->stream);
drivers/media/i2c/ds90ub913.c
467
*fmt = format->format;
drivers/media/i2c/ds90ub953.c
390
static const struct v4l2_mbus_framefmt format = {
drivers/media/i2c/ds90ub953.c
407
ret = v4l2_subdev_set_routing_with_fmt(sd, state, routing, &format);
drivers/media/i2c/ds90ub953.c
489
struct v4l2_subdev_format *format)
drivers/media/i2c/ds90ub953.c
494
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE &&
drivers/media/i2c/ds90ub953.c
499
if (format->pad == UB953_PAD_SOURCE)
drivers/media/i2c/ds90ub953.c
500
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/i2c/ds90ub953.c
503
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/ds90ub953.c
507
*fmt = format->format;
drivers/media/i2c/ds90ub953.c
510
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/i2c/ds90ub953.c
511
format->stream);
drivers/media/i2c/ds90ub953.c
515
*fmt = format->format;
drivers/media/i2c/ds90ub960.c
3852
static const struct v4l2_mbus_framefmt format = {
drivers/media/i2c/ds90ub960.c
3870
ret = v4l2_subdev_set_routing_with_fmt(sd, state, routing, &format);
drivers/media/i2c/ds90ub960.c
3989
struct v4l2_subdev_format *format)
drivers/media/i2c/ds90ub960.c
3994
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE && priv->streaming)
drivers/media/i2c/ds90ub960.c
3998
if (ub960_pad_is_source(priv, format->pad))
drivers/media/i2c/ds90ub960.c
3999
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/i2c/ds90ub960.c
4005
if (!ub960_find_format(format->format.code))
drivers/media/i2c/ds90ub960.c
4006
format->format.code = ub960_formats[0].code;
drivers/media/i2c/ds90ub960.c
4008
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/ds90ub960.c
4012
*fmt = format->format;
drivers/media/i2c/ds90ub960.c
4014
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/i2c/ds90ub960.c
4015
format->stream);
drivers/media/i2c/ds90ub960.c
4019
*fmt = format->format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
1003
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
1005
format = __et8ek8_get_pad_format(sensor, sd_state, fmt->pad,
drivers/media/i2c/et8ek8/et8ek8_driver.c
1007
if (!format)
drivers/media/i2c/et8ek8/et8ek8_driver.c
1010
fmt->format = *format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
1020
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
1023
format = __et8ek8_get_pad_format(sensor, sd_state, fmt->pad,
drivers/media/i2c/et8ek8/et8ek8_driver.c
1025
if (!format)
drivers/media/i2c/et8ek8/et8ek8_driver.c
1028
reglist = et8ek8_reglist_find_mode_fmt(&meta_reglist, &fmt->format);
drivers/media/i2c/et8ek8/et8ek8_driver.c
1029
et8ek8_reglist_to_mbus(reglist, &fmt->format);
drivers/media/i2c/et8ek8/et8ek8_driver.c
1030
*format = fmt->format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
1207
et8ek8_reglist_to_mbus(sensor->current_reglist, &sensor->format);
drivers/media/i2c/et8ek8/et8ek8_driver.c
1332
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
1336
format = __et8ek8_get_pad_format(sensor, fh->state, 0,
drivers/media/i2c/et8ek8/et8ek8_driver.c
1338
et8ek8_reglist_to_mbus(reglist, format);
drivers/media/i2c/et8ek8/et8ek8_driver.c
409
struct v4l2_mbus_framefmt format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
429
et8ek8_reglist_to_mbus(*list, &format);
drivers/media/i2c/et8ek8/et8ek8_driver.c
43
struct v4l2_mbus_framefmt format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
431
dist = min(fmt->width, format.width)
drivers/media/i2c/et8ek8/et8ek8_driver.c
432
* min(fmt->height, format.height);
drivers/media/i2c/et8ek8/et8ek8_driver.c
433
dist = format.width * format.height
drivers/media/i2c/et8ek8/et8ek8_driver.c
437
if (fmt->code == format.code) {
drivers/media/i2c/et8ek8/et8ek8_driver.c
920
struct v4l2_mbus_framefmt format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
929
et8ek8_reglist_to_mbus(*list, &format);
drivers/media/i2c/et8ek8/et8ek8_driver.c
930
if (fse->code != format.code)
drivers/media/i2c/et8ek8/et8ek8_driver.c
934
if (format.width == cmp_width && format.height == cmp_height)
drivers/media/i2c/et8ek8/et8ek8_driver.c
937
cmp_width = format.width;
drivers/media/i2c/et8ek8/et8ek8_driver.c
938
cmp_height = format.height;
drivers/media/i2c/et8ek8/et8ek8_driver.c
941
fse->min_width = format.width;
drivers/media/i2c/et8ek8/et8ek8_driver.c
942
fse->min_height = format.height;
drivers/media/i2c/et8ek8/et8ek8_driver.c
943
fse->max_width = format.width;
drivers/media/i2c/et8ek8/et8ek8_driver.c
944
fse->max_height = format.height;
drivers/media/i2c/et8ek8/et8ek8_driver.c
958
struct v4l2_mbus_framefmt format;
drivers/media/i2c/et8ek8/et8ek8_driver.c
967
et8ek8_reglist_to_mbus(*list, &format);
drivers/media/i2c/et8ek8/et8ek8_driver.c
968
if (fie->code != format.code)
drivers/media/i2c/et8ek8/et8ek8_driver.c
971
if (fie->width != format.width || fie->height != format.height)
drivers/media/i2c/et8ek8/et8ek8_driver.c
992
return &sensor->format;
drivers/media/i2c/gc0308.c
1052
int i = gc0308_get_format_idx(fmt->format.code);
drivers/media/i2c/gc0308.c
1059
height, fmt->format.width,
drivers/media/i2c/gc0308.c
1060
fmt->format.height);
drivers/media/i2c/gc0308.c
1062
gc0308_update_pad_format(mode, &fmt->format, gc0308_formats[i].code);
drivers/media/i2c/gc0308.c
1063
*v4l2_subdev_state_get_format(sd_state, 0) = fmt->format;
drivers/media/i2c/gc0308.c
1079
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/gc0308.c
1082
format->width = 640;
drivers/media/i2c/gc0308.c
1083
format->height = 480;
drivers/media/i2c/gc0308.c
1084
format->code = gc0308_formats[0].code;
drivers/media/i2c/gc0308.c
1085
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/gc0308.c
1086
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/gc0308.c
1087
format->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/gc0308.c
1088
format->quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/gc0308.c
1089
format->xfer_func = V4L2_XFER_FUNC_DEFAULT;
drivers/media/i2c/gc05a2.c
743
width, height, fmt->format.width,
drivers/media/i2c/gc05a2.c
744
fmt->format.height);
drivers/media/i2c/gc05a2.c
752
gc05a2_update_pad_format(gc05a2, mode, &fmt->format);
drivers/media/i2c/gc05a2.c
754
*mbus_fmt = fmt->format;
drivers/media/i2c/gc05a2.c
792
.format = {
drivers/media/i2c/gc05a2.c
887
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/gc05a2.c
890
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/gc05a2.c
894
exposure_max = format->height + ctrl->val - GC05A2_EXP_MARGIN;
drivers/media/i2c/gc08a3.c
718
width, height, fmt->format.width,
drivers/media/i2c/gc08a3.c
719
fmt->format.height);
drivers/media/i2c/gc08a3.c
727
gc08a3_update_pad_format(gc08a3, mode, &fmt->format);
drivers/media/i2c/gc08a3.c
729
*mbus_fmt = fmt->format;
drivers/media/i2c/gc08a3.c
768
.format = {
drivers/media/i2c/gc08a3.c
857
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/gc08a3.c
860
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/gc08a3.c
864
exposure_max = format->height + ctrl->val - GC08A3_EXP_MARGIN;
drivers/media/i2c/gc2145.c
695
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/gc2145.c
699
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/gc2145.c
700
gc2145_update_pad_format(gc2145, &supported_modes[0], format,
drivers/media/i2c/gc2145.c
787
gc2145_fmt = gc2145_get_format_code(gc2145, fmt->format.code);
drivers/media/i2c/gc2145.c
791
fmt->format.width, fmt->format.height);
drivers/media/i2c/gc2145.c
798
gc2145_update_pad_format(gc2145, mode, &fmt->format, gc2145_fmt->code,
drivers/media/i2c/gc2145.c
811
*framefmt = fmt->format;
drivers/media/i2c/hi556.c
1083
height, fmt->format.width,
drivers/media/i2c/hi556.c
1084
fmt->format.height);
drivers/media/i2c/hi556.c
1087
hi556_assign_pad_format(mode, &fmt->format);
drivers/media/i2c/hi556.c
1089
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/hi556.c
1123
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/hi556.c
1126
hi556_assign_pad_format(hi556->cur_mode, &fmt->format);
drivers/media/i2c/hi846.c
1692
struct v4l2_subdev_format *format)
drivers/media/i2c/hi846.c
1695
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/hi846.c
1707
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/hi846.c
1708
*v4l2_subdev_state_get_format(sd_state, format->pad) = *mf;
drivers/media/i2c/hi846.c
1779
struct v4l2_subdev_format *format)
drivers/media/i2c/hi846.c
1782
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/hi846.c
1785
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/hi846.c
1786
format->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/hi846.c
1787
format->pad);
drivers/media/i2c/hi847.c
2651
height, fmt->format.width,
drivers/media/i2c/hi847.c
2652
fmt->format.height);
drivers/media/i2c/hi847.c
2655
hi847_assign_pad_format(mode, &fmt->format);
drivers/media/i2c/hi847.c
2658
fmt->format;
drivers/media/i2c/hi847.c
2692
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/hi847.c
2695
hi847_assign_pad_format(hi847->cur_mode, &fmt->format);
drivers/media/i2c/imx111.c
1126
struct v4l2_subdev_format *format)
drivers/media/i2c/imx111.c
1129
struct v4l2_mbus_framefmt *mbus_fmt = &format->format;
drivers/media/i2c/imx111.c
1137
fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/i2c/imx111.c
1139
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/imx111.c
720
static u32 imx111_get_format_bpp(const struct v4l2_mbus_framefmt *format)
drivers/media/i2c/imx111.c
722
switch (format->code) {
drivers/media/i2c/imx208.c
543
fmt->format.width = mode->width;
drivers/media/i2c/imx208.c
544
fmt->format.height = mode->height;
drivers/media/i2c/imx208.c
545
fmt->format.code = imx208_get_format_code(imx208);
drivers/media/i2c/imx208.c
546
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx208.c
554
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/imx208.c
590
fmt->format.code = imx208_get_format_code(imx208);
drivers/media/i2c/imx208.c
593
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx208.c
596
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/imx214.c
666
struct v4l2_subdev_format *format)
drivers/media/i2c/imx214.c
675
format->format.width,
drivers/media/i2c/imx214.c
676
format->format.height);
drivers/media/i2c/imx214.c
678
imx214_update_pad_format(imx214, mode, &format->format,
drivers/media/i2c/imx214.c
679
format->format.code);
drivers/media/i2c/imx214.c
682
*__format = format->format;
drivers/media/i2c/imx214.c
688
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/imx214.c
753
fmt.format.code = MEDIA_BUS_FMT_SRGGB10_1X10;
drivers/media/i2c/imx214.c
754
fmt.format.width = imx214_modes[0].width;
drivers/media/i2c/imx214.c
755
fmt.format.height = imx214_modes[0].height;
drivers/media/i2c/imx214.c
802
const struct v4l2_mbus_framefmt *format = NULL;
drivers/media/i2c/imx214.c
810
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx214.c
814
format->height + ctrl->val - IMX214_EXPOSURE_OFFSET;
drivers/media/i2c/imx214.c
849
format->height + ctrl->val, &ret);
drivers/media/i2c/imx219.c
386
static u32 imx219_get_format_bpp(const struct v4l2_mbus_framefmt *format)
drivers/media/i2c/imx219.c
388
switch (format->code) {
drivers/media/i2c/imx219.c
407
const struct v4l2_mbus_framefmt *format =
drivers/media/i2c/imx219.c
410
u32 hbin = crop->width / format->width;
drivers/media/i2c/imx219.c
411
u32 vbin = crop->height / format->height;
drivers/media/i2c/imx219.c
441
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx219.c
447
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx219.c
454
exposure_max = format->height + ctrl->val - IMX219_EXPOSURE_OFFSET;
drivers/media/i2c/imx219.c
498
(format->height + ctrl->val) / rate_factor, &ret);
drivers/media/i2c/imx219.c
502
format->width + ctrl->val, &ret);
drivers/media/i2c/imx219.c
667
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx219.c
673
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx219.c
675
bpp = imx219_get_format_bpp(format);
drivers/media/i2c/imx219.c
691
format->width, &ret);
drivers/media/i2c/imx219.c
693
format->height, &ret);
drivers/media/i2c/imx219.c
696
format->width, &ret);
drivers/media/i2c/imx219.c
698
format->height, &ret);
drivers/media/i2c/imx219.c
837
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx219.c
843
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx219.c
844
prev_line_len = format->width + imx219->hblank->val;
drivers/media/i2c/imx219.c
853
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx219.c
855
fmt->format.code = imx219_get_format_code(imx219, fmt->format.code);
drivers/media/i2c/imx219.c
856
fmt->format.width = mode->width;
drivers/media/i2c/imx219.c
857
fmt->format.height = mode->height;
drivers/media/i2c/imx219.c
858
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx219.c
859
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx219.c
860
fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_601;
drivers/media/i2c/imx219.c
861
fmt->format.quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/imx219.c
862
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx219.c
864
*format = fmt->format;
drivers/media/i2c/imx219.c
870
bin_h = min(IMX219_PIXEL_ARRAY_WIDTH / format->width, 2U);
drivers/media/i2c/imx219.c
871
bin_v = min(IMX219_PIXEL_ARRAY_HEIGHT / format->height, 2U);
drivers/media/i2c/imx219.c
877
crop->width = format->width * binning;
drivers/media/i2c/imx219.c
878
crop->height = format->height * binning;
drivers/media/i2c/imx219.c
987
.format = {
drivers/media/i2c/imx258.c
870
fmt->format.width = mode->width;
drivers/media/i2c/imx258.c
871
fmt->format.height = mode->height;
drivers/media/i2c/imx258.c
872
fmt->format.code = imx258_get_format_code(imx258);
drivers/media/i2c/imx258.c
873
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx258.c
881
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/imx258.c
920
fmt->format.code = imx258_get_format_code(imx258);
drivers/media/i2c/imx258.c
924
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx258.c
928
*framefmt = fmt->format;
drivers/media/i2c/imx274.c
1027
tgt_fmt = &imx274->format;
drivers/media/i2c/imx274.c
1079
fmt->format = imx274->format;
drivers/media/i2c/imx274.c
1096
struct v4l2_subdev_format *format)
drivers/media/i2c/imx274.c
1098
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/imx274.c
1104
err = __imx274_change_compose(imx274, sd_state, format->which,
drivers/media/i2c/imx274.c
1116
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/imx274.c
1119
imx274->format = *fmt;
drivers/media/i2c/imx274.c
1152
src_fmt = &imx274->format;
drivers/media/i2c/imx274.c
2026
imx274->format.width = imx274->crop.width / imx274->mode->wbin_ratio;
drivers/media/i2c/imx274.c
2027
imx274->format.height = imx274->crop.height / imx274->mode->hbin_ratio;
drivers/media/i2c/imx274.c
2028
imx274->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx274.c
2029
imx274->format.code = MEDIA_BUS_FMT_SRGGB10_1X10;
drivers/media/i2c/imx274.c
2030
imx274->format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/imx274.c
573
struct v4l2_mbus_framefmt format;
drivers/media/i2c/imx283.c
894
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/imx283.c
896
format->width = mode->width;
drivers/media/i2c/imx283.c
897
format->height = mode->height;
drivers/media/i2c/imx283.c
898
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/imx283.c
899
format->colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx283.c
900
format->ycbcr_enc = V4L2_YCBCR_ENC_601;
drivers/media/i2c/imx283.c
901
format->quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/imx283.c
902
format->xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx283.c
909
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx283.c
914
format = v4l2_subdev_state_get_format(state, IMAGE_PAD);
drivers/media/i2c/imx283.c
917
format->code = MEDIA_BUS_FMT_SRGGB12_1X12;
drivers/media/i2c/imx283.c
918
imx283_update_image_pad_format(imx283, mode, format);
drivers/media/i2c/imx283.c
959
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx283.c
965
get_mode_table(fmt->format.code, &mode_list, &num_modes);
drivers/media/i2c/imx283.c
968
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx283.c
970
fmt->format.width = mode->width;
drivers/media/i2c/imx283.c
971
fmt->format.height = mode->height;
drivers/media/i2c/imx283.c
972
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx283.c
973
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx283.c
974
fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_601;
drivers/media/i2c/imx283.c
975
fmt->format.quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/imx283.c
976
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx283.c
978
format = v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/i2c/imx283.c
983
*format = fmt->format;
drivers/media/i2c/imx290.c
1038
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx290.c
1039
ret = imx290_setup_format(imx290, format);
drivers/media/i2c/imx290.c
1157
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx290.c
1161
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx290.c
1163
fmt->format.width = mode->width;
drivers/media/i2c/imx290.c
1164
fmt->format.height = mode->height;
drivers/media/i2c/imx290.c
1166
if (!imx290_format_info(imx290, fmt->format.code))
drivers/media/i2c/imx290.c
1167
fmt->format.code = imx290_formats[0].code[imx290->model->colour_variant];
drivers/media/i2c/imx290.c
1169
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx290.c
1170
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx290.c
1171
fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_601;
drivers/media/i2c/imx290.c
1172
fmt->format.quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/imx290.c
1173
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx290.c
1175
format = v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/i2c/imx290.c
1184
*format = fmt->format;
drivers/media/i2c/imx290.c
1194
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx290.c
1198
format = v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/i2c/imx290.c
1205
+ (IMX290_PIXEL_ARRAY_RECORDING_HEIGHT - format->height) / 2
drivers/media/i2c/imx290.c
1208
+ (IMX290_PIXEL_ARRAY_RECORDING_WIDTH - format->width) / 2
drivers/media/i2c/imx290.c
1210
sel->r.width = format->width;
drivers/media/i2c/imx290.c
1211
sel->r.height = format->height;
drivers/media/i2c/imx290.c
1243
.format = {
drivers/media/i2c/imx290.c
704
const struct v4l2_mbus_framefmt *format,
drivers/media/i2c/imx290.c
707
unsigned int bpp = imx290_format_info(imx290, format->code)->bpp;
drivers/media/i2c/imx290.c
751
const struct v4l2_mbus_framefmt *format)
drivers/media/i2c/imx290.c
756
info = imx290_format_info(imx290, format->code);
drivers/media/i2c/imx290.c
764
return imx290_set_black_level(imx290, format,
drivers/media/i2c/imx290.c
786
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx290.c
807
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx290.c
834
imx290_set_black_level(imx290, format, 0, &ret);
drivers/media/i2c/imx290.c
843
imx290_set_black_level(imx290, format,
drivers/media/i2c/imx290.c
998
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx296.c
317
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx296.c
326
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx296.c
331
vmax = format->height + sensor->vblank->cur.val;
drivers/media/i2c/imx296.c
341
imx296_write(sensor, IMX296_VMAX, format->height + ctrl->val,
drivers/media/i2c/imx296.c
509
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx296.c
514
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx296.c
534
(crop->width != format->width ?
drivers/media/i2c/imx296.c
536
(crop->height != format->height ?
drivers/media/i2c/imx296.c
560
format->height + sensor->vblank->cur.val, &ret);
drivers/media/i2c/imx296.c
662
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx296.c
664
format = v4l2_subdev_state_get_format(state, fse->pad);
drivers/media/i2c/imx296.c
666
if (fse->index >= 2 || fse->code != format->code)
drivers/media/i2c/imx296.c
682
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx296.c
686
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/i2c/imx296.c
700
width = clamp_t(unsigned int, fmt->format.width,
drivers/media/i2c/imx296.c
702
height = clamp_t(unsigned int, fmt->format.height,
drivers/media/i2c/imx296.c
708
format->width = crop->width / hratio;
drivers/media/i2c/imx296.c
709
format->height = crop->height / vratio;
drivers/media/i2c/imx296.c
711
format->width = crop->width;
drivers/media/i2c/imx296.c
712
format->height = crop->height;
drivers/media/i2c/imx296.c
715
format->code = sensor->mono ? MEDIA_BUS_FMT_Y10_1X10
drivers/media/i2c/imx296.c
717
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/imx296.c
718
format->colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx296.c
719
format->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/imx296.c
720
format->quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/imx296.c
721
format->xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx296.c
723
fmt->format = *format;
drivers/media/i2c/imx296.c
757
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx296.c
789
format = v4l2_subdev_state_get_format(state, sel->pad);
drivers/media/i2c/imx296.c
790
format->width = rect.width;
drivers/media/i2c/imx296.c
791
format->height = rect.height;
drivers/media/i2c/imx296.c
808
struct v4l2_subdev_format format = {
drivers/media/i2c/imx296.c
809
.format = {
drivers/media/i2c/imx296.c
816
imx296_set_format(sd, state, &format);
drivers/media/i2c/imx319.c
1995
fmt->format.width = mode->width;
drivers/media/i2c/imx319.c
1996
fmt->format.height = mode->height;
drivers/media/i2c/imx319.c
1997
fmt->format.code = imx319_get_format_code(imx319);
drivers/media/i2c/imx319.c
1998
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx319.c
2009
fmt->format = *framefmt;
drivers/media/i2c/imx319.c
2051
fmt->format.code = imx319_get_format_code(imx319);
drivers/media/i2c/imx319.c
2056
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx319.c
2060
*framefmt = fmt->format;
drivers/media/i2c/imx334.c
743
fmt->format.width = mode->width;
drivers/media/i2c/imx334.c
744
fmt->format.height = mode->height;
drivers/media/i2c/imx334.c
745
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx334.c
746
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx334.c
747
fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/imx334.c
748
fmt->format.quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/imx334.c
749
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx334.c
770
fmt->format = *framefmt;
drivers/media/i2c/imx334.c
772
fmt->format.code = imx334->cur_code;
drivers/media/i2c/imx334.c
798
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx334.c
801
fmt->format.code = imx334_get_format_code(imx334, fmt->format.code);
drivers/media/i2c/imx334.c
807
*framefmt = fmt->format;
drivers/media/i2c/imx334.c
808
} else if (imx334->cur_mode != mode || imx334->cur_code != fmt->format.code) {
drivers/media/i2c/imx334.c
809
imx334->cur_code = fmt->format.code;
drivers/media/i2c/imx335.c
864
fmt->format.width = mode->width;
drivers/media/i2c/imx335.c
865
fmt->format.height = mode->height;
drivers/media/i2c/imx335.c
866
fmt->format.code = imx335->cur_mbus_code;
drivers/media/i2c/imx335.c
867
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx335.c
868
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx335.c
869
fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/imx335.c
870
fmt->format.quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/imx335.c
871
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx335.c
887
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx335.c
895
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx335.c
898
if (imx335_mbus_codes[i] == fmt->format.code)
drivers/media/i2c/imx335.c
904
format = v4l2_subdev_state_get_format(sd_state, fmt->pad);
drivers/media/i2c/imx335.c
905
*format = fmt->format;
drivers/media/i2c/imx335.c
908
crop->width = fmt->format.width;
drivers/media/i2c/imx335.c
909
crop->height = fmt->format.height;
drivers/media/i2c/imx355.c
1294
fmt->format.width = mode->width;
drivers/media/i2c/imx355.c
1295
fmt->format.height = mode->height;
drivers/media/i2c/imx355.c
1296
fmt->format.code = imx355_get_format_code(imx355);
drivers/media/i2c/imx355.c
1297
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx355.c
1308
fmt->format = *framefmt;
drivers/media/i2c/imx355.c
1350
fmt->format.code = imx355_get_format_code(imx355);
drivers/media/i2c/imx355.c
1355
fmt->format.width, fmt->format.height);
drivers/media/i2c/imx355.c
1359
*framefmt = fmt->format;
drivers/media/i2c/imx412.c
694
fmt->format.width = mode->width;
drivers/media/i2c/imx412.c
695
fmt->format.height = mode->height;
drivers/media/i2c/imx412.c
696
fmt->format.code = mode->code;
drivers/media/i2c/imx412.c
697
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/imx412.c
698
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx412.c
699
fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/imx412.c
700
fmt->format.quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/imx412.c
701
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx412.c
724
fmt->format = *framefmt;
drivers/media/i2c/imx412.c
759
*framefmt = fmt->format;
drivers/media/i2c/imx415.c
1009
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx415.c
1011
format = v4l2_subdev_state_get_format(state, fse->pad);
drivers/media/i2c/imx415.c
1013
if (fse->index > 0 || fse->code != format->code)
drivers/media/i2c/imx415.c
1027
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx415.c
1029
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/i2c/imx415.c
1031
format->width = fmt->format.width;
drivers/media/i2c/imx415.c
1032
format->height = fmt->format.height;
drivers/media/i2c/imx415.c
1033
format->code = MEDIA_BUS_FMT_SGBRG10_1X10;
drivers/media/i2c/imx415.c
1034
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/imx415.c
1035
format->colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/imx415.c
1036
format->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/imx415.c
1037
format->quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/imx415.c
1038
format->xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/imx415.c
1040
fmt->format = *format;
drivers/media/i2c/imx415.c
1066
struct v4l2_subdev_format format = {
drivers/media/i2c/imx415.c
1067
.format = {
drivers/media/i2c/imx415.c
1073
imx415_set_format(sd, state, &format);
drivers/media/i2c/imx415.c
696
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/imx415.c
704
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/imx415.c
707
exposure_max = format->height + ctrl->val -
drivers/media/i2c/imx415.c
721
format->height + ctrl->val, NULL);
drivers/media/i2c/imx415.c
732
vmax = format->height + sensor->vblank->cur.val;
drivers/media/i2c/imx415.c
757
(format->width + ctrl->val) /
drivers/media/i2c/isl7998x.c
1001
struct v4l2_subdev_format *format)
drivers/media/i2c/isl7998x.c
1004
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/isl7998x.c
1009
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/isl7998x.c
1010
format->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/isl7998x.c
1011
format->pad);
drivers/media/i2c/isl7998x.c
1031
struct v4l2_subdev_format *format)
drivers/media/i2c/isl7998x.c
1034
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/isl7998x.c
1046
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/isl7998x.c
1047
*v4l2_subdev_state_get_format(sd_state, format->pad) = format->format;
drivers/media/i2c/lt6911uxe.c
222
u64 byte_clk, half_pix_clk, fps, format;
drivers/media/i2c/lt6911uxe.c
275
cci_read(lt6911uxe->regmap, REG_MIPI_FORMAT, &format, &ret);
drivers/media/i2c/lt6911uxe.c
276
if (format != YUV422_8_BIT) {
drivers/media/i2c/lt6911uxe.c
393
lt6911uxe_update_pad_format(<6911uxe->cur_mode, &fmt->format);
drivers/media/i2c/lt6911uxe.c
394
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/max9286.c
536
const struct v4l2_mbus_framefmt *format)
drivers/media/i2c/max9286.c
542
if (max9286_formats[i].code == format->code) {
drivers/media/i2c/max9286.c
796
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/max9286.c
802
format = v4l2_subdev_state_get_format(state, MAX9286_SRC_PAD);
drivers/media/i2c/max9286.c
804
max9286_set_video_format(priv, format);
drivers/media/i2c/max9286.c
914
struct v4l2_subdev_format *format)
drivers/media/i2c/max9286.c
924
if (format->pad == MAX9286_SRC_PAD)
drivers/media/i2c/max9286.c
925
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/i2c/max9286.c
929
if (max9286_formats[i].code == format->format.code)
drivers/media/i2c/max9286.c
934
format->format.code = max9286_formats[0].code;
drivers/media/i2c/max9286.c
943
*v4l2_subdev_state_get_format(state, index) = format->format;
drivers/media/i2c/max9286.c
946
*v4l2_subdev_state_get_format(state, MAX9286_SRC_PAD) = format->format;
drivers/media/i2c/max96714.c
331
struct v4l2_subdev_format *format)
drivers/media/i2c/max96714.c
336
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE &&
drivers/media/i2c/max96714.c
341
if (format->pad == MAX96714_PAD_SOURCE)
drivers/media/i2c/max96714.c
342
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/i2c/max96714.c
344
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/max96714.c
348
*fmt = format->format;
drivers/media/i2c/max96714.c
350
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/i2c/max96714.c
351
format->stream);
drivers/media/i2c/max96714.c
355
*fmt = format->format;
drivers/media/i2c/max96714.c
365
static const struct v4l2_mbus_framefmt format = {
drivers/media/i2c/max96714.c
378
return v4l2_subdev_set_routing_with_fmt(sd, state, routing, &format);
drivers/media/i2c/max96717.c
383
static const struct v4l2_mbus_framefmt format = {
drivers/media/i2c/max96717.c
396
ret = v4l2_subdev_set_routing_with_fmt(sd, state, routing, &format);
drivers/media/i2c/max96717.c
418
struct v4l2_subdev_format *format)
drivers/media/i2c/max96717.c
424
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE &&
drivers/media/i2c/max96717.c
429
if (format->pad == MAX96717_PAD_SOURCE)
drivers/media/i2c/max96717.c
430
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/i2c/max96717.c
433
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/max96717.c
437
*fmt = format->format;
drivers/media/i2c/max96717.c
440
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/i2c/max96717.c
441
format->stream);
drivers/media/i2c/max96717.c
444
*fmt = format->format;
drivers/media/i2c/max96717.c
446
stream_source_mask = BIT(format->stream);
drivers/media/i2c/ml86v7667.c
204
struct v4l2_subdev_format *format)
drivers/media/i2c/ml86v7667.c
207
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/ml86v7667.c
209
if (format->pad)
drivers/media/i2c/mt9m001.c
318
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9m001.c
322
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/mt9m001.c
324
if (format->pad)
drivers/media/i2c/mt9m001.c
327
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/mt9m001.c
329
format->format = *mf;
drivers/media/i2c/mt9m001.c
375
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9m001.c
377
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/mt9m001.c
382
if (format->pad)
drivers/media/i2c/mt9m001.c
406
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/mt9m111.c
1133
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/mt9m111.c
1136
format->width = MT9M111_MAX_WIDTH;
drivers/media/i2c/mt9m111.c
1137
format->height = MT9M111_MAX_HEIGHT;
drivers/media/i2c/mt9m111.c
1138
format->code = mt9m111_colour_fmts[0].code;
drivers/media/i2c/mt9m111.c
1139
format->colorspace = mt9m111_colour_fmts[0].colorspace;
drivers/media/i2c/mt9m111.c
1140
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/mt9m111.c
1141
format->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/mt9m111.c
1142
format->quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/mt9m111.c
1143
format->xfer_func = V4L2_XFER_FUNC_DEFAULT;
drivers/media/i2c/mt9m111.c
519
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9m111.c
521
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/mt9m111.c
524
if (format->pad)
drivers/media/i2c/mt9m111.c
527
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/mt9m111.c
528
mf = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/mt9m111.c
529
format->format = *mf;
drivers/media/i2c/mt9m111.c
621
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9m111.c
623
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/mt9m111.c
634
if (format->pad)
drivers/media/i2c/mt9m111.c
673
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/mt9m114.c
1077
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1087
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/mt9m114.c
1092
ctrl->val + format->width, &ret);
drivers/media/i2c/mt9m114.c
1097
ctrl->val + format->height, &ret);
drivers/media/i2c/mt9m114.c
1168
const struct v4l2_mbus_framefmt *format)
drivers/media/i2c/mt9m114.c
1174
- format->width;
drivers/media/i2c/mt9m114.c
1179
- format->height;
drivers/media/i2c/mt9m114.c
1196
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1206
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/mt9m114.c
1208
format->width = MT9M114_PIXEL_ARRAY_WIDTH;
drivers/media/i2c/mt9m114.c
1209
format->height = MT9M114_PIXEL_ARRAY_HEIGHT;
drivers/media/i2c/mt9m114.c
1210
format->code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/mt9m114.c
1211
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/mt9m114.c
1212
format->colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/mt9m114.c
1213
format->ycbcr_enc = V4L2_YCBCR_ENC_601;
drivers/media/i2c/mt9m114.c
1214
format->quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/mt9m114.c
1215
format->xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/mt9m114.c
1256
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1262
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/i2c/mt9m114.c
1265
hscale = DIV_ROUND_CLOSEST(crop->width, fmt->format.width ? : 1);
drivers/media/i2c/mt9m114.c
1266
vscale = DIV_ROUND_CLOSEST(crop->height, fmt->format.height ? : 1);
drivers/media/i2c/mt9m114.c
1267
format->width = crop->width / clamp(hscale, 1U, 2U);
drivers/media/i2c/mt9m114.c
1268
format->height = crop->height / clamp(vscale, 1U, 2U);
drivers/media/i2c/mt9m114.c
1270
fmt->format = *format;
drivers/media/i2c/mt9m114.c
1273
mt9m114_pa_ctrl_update_blanking(sensor, format);
drivers/media/i2c/mt9m114.c
1306
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1314
format = v4l2_subdev_state_get_format(state, sel->pad);
drivers/media/i2c/mt9m114.c
1341
format->width = crop->width;
drivers/media/i2c/mt9m114.c
1342
format->height = crop->height;
drivers/media/i2c/mt9m114.c
1347
mt9m114_pa_ctrl_update_blanking(sensor, format);
drivers/media/i2c/mt9m114.c
1383
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1464
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/mt9m114.c
1465
mt9m114_pa_ctrl_update_blanking(sensor, format);
drivers/media/i2c/mt9m114.c
1697
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1701
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/mt9m114.c
1703
format->width = MT9M114_PIXEL_ARRAY_WIDTH;
drivers/media/i2c/mt9m114.c
1704
format->height = MT9M114_PIXEL_ARRAY_HEIGHT;
drivers/media/i2c/mt9m114.c
1705
format->code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/mt9m114.c
1706
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/mt9m114.c
1707
format->colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/mt9m114.c
1708
format->ycbcr_enc = V4L2_YCBCR_ENC_601;
drivers/media/i2c/mt9m114.c
1709
format->quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/mt9m114.c
1710
format->xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/mt9m114.c
1716
crop->width = format->width - 8;
drivers/media/i2c/mt9m114.c
1717
crop->height = format->height - 8;
drivers/media/i2c/mt9m114.c
1726
format = v4l2_subdev_state_get_format(state, 1);
drivers/media/i2c/mt9m114.c
1728
format->width = compose->width;
drivers/media/i2c/mt9m114.c
1729
format->height = compose->height;
drivers/media/i2c/mt9m114.c
1730
format->code = mt9m114_default_format_info(sensor)->code;
drivers/media/i2c/mt9m114.c
1731
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/mt9m114.c
1732
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/mt9m114.c
1733
format->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/mt9m114.c
1734
format->quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/mt9m114.c
1735
format->xfer_func = V4L2_XFER_FUNC_DEFAULT;
drivers/media/i2c/mt9m114.c
1879
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1881
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/i2c/mt9m114.c
1885
format->width = clamp(ALIGN(fmt->format.width, 8),
drivers/media/i2c/mt9m114.c
1888
format->height = clamp(ALIGN(fmt->format.height, 8),
drivers/media/i2c/mt9m114.c
1898
info = mt9m114_format_info(sensor, 1, fmt->format.code);
drivers/media/i2c/mt9m114.c
1906
if ((format->code == MEDIA_BUS_FMT_SGRBG10_1X10) !=
drivers/media/i2c/mt9m114.c
1908
format->code = info->code;
drivers/media/i2c/mt9m114.c
1911
format->code = info->code;
drivers/media/i2c/mt9m114.c
1915
fmt->format = *format;
drivers/media/i2c/mt9m114.c
1924
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
1945
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/mt9m114.c
1950
sel->r.width = format->width - 2 * border;
drivers/media/i2c/mt9m114.c
1951
sel->r.height = format->height - 2 * border;
drivers/media/i2c/mt9m114.c
1983
struct v4l2_mbus_framefmt *format, *src_format;
drivers/media/i2c/mt9m114.c
2005
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/mt9m114.c
2016
format->width - border -
drivers/media/i2c/mt9m114.c
2019
format->height - border -
drivers/media/i2c/mt9m114.c
2023
format->width - border - crop->left);
drivers/media/i2c/mt9m114.c
2026
format->height - border - crop->top);
drivers/media/i2c/mt9m114.c
798
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
804
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/mt9m114.c
812
hratio = crop->width / format->width;
drivers/media/i2c/mt9m114.c
813
vratio = crop->height / format->height;
drivers/media/i2c/mt9m114.c
852
const struct v4l2_mbus_framefmt *format =
drivers/media/i2c/mt9m114.c
855
return format->code == MEDIA_BUS_FMT_SGRBG10_1X10 ? 0 : 4;
drivers/media/i2c/mt9m114.c
862
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9m114.c
869
format = v4l2_subdev_state_get_format(state, 1);
drivers/media/i2c/mt9m114.c
870
info = mt9m114_format_info(sensor, 1, format->code);
drivers/media/i2c/mt9p031.c
122
struct v4l2_mbus_framefmt format;
drivers/media/i2c/mt9p031.c
401
struct v4l2_mbus_framefmt *format = &mt9p031->format;
drivers/media/i2c/mt9p031.c
433
xskip = DIV_ROUND_CLOSEST(crop->width, format->width);
drivers/media/i2c/mt9p031.c
434
yskip = DIV_ROUND_CLOSEST(crop->height, format->height);
drivers/media/i2c/mt9p031.c
524
code->code = mt9p031->format.code;
drivers/media/i2c/mt9p031.c
534
if (fse->index >= 8 || fse->code != mt9p031->format.code)
drivers/media/i2c/mt9p031.c
555
return &mt9p031->format;
drivers/media/i2c/mt9p031.c
582
fmt->format = *__mt9p031_get_pad_format(mt9p031, sd_state, fmt->pad,
drivers/media/i2c/mt9p031.c
589
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9p031.c
599
__crop = __mt9p031_get_pad_crop(mt9p031, sd_state, format->pad,
drivers/media/i2c/mt9p031.c
600
format->which);
drivers/media/i2c/mt9p031.c
603
width = clamp_t(unsigned int, ALIGN(format->format.width, 2),
drivers/media/i2c/mt9p031.c
607
height = clamp_t(unsigned int, ALIGN(format->format.height, 2),
drivers/media/i2c/mt9p031.c
615
__format = __mt9p031_get_pad_format(mt9p031, sd_state, format->pad,
drivers/media/i2c/mt9p031.c
616
format->which);
drivers/media/i2c/mt9p031.c
620
format->format = *__format;
drivers/media/i2c/mt9p031.c
704
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9p031.c
715
format = __mt9p031_get_pad_format(mt9p031, sd_state, 0, which);
drivers/media/i2c/mt9p031.c
716
format->code = mt9p031->code;
drivers/media/i2c/mt9p031.c
717
format->width = MT9P031_WINDOW_WIDTH_DEF;
drivers/media/i2c/mt9p031.c
718
format->height = MT9P031_WINDOW_HEIGHT_DEF;
drivers/media/i2c/mt9p031.c
719
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/mt9p031.c
720
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/mt9t112.c
827
mt9t112_mcu_write(ret, client, VAR(26, 7), priv->format->fmt);
drivers/media/i2c/mt9t112.c
828
mt9t112_mcu_write(ret, client, VAR(26, 9), priv->format->order);
drivers/media/i2c/mt9t112.c
835
dev_dbg(&client->dev, "format : %d\n", priv->format->code);
drivers/media/i2c/mt9t112.c
869
priv->format = mt9t112_cfmts + i;
drivers/media/i2c/mt9t112.c
911
return mt9t112_set_params(priv, rect, priv->format->code);
drivers/media/i2c/mt9t112.c
916
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9t112.c
918
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/mt9t112.c
922
if (format->pad)
drivers/media/i2c/mt9t112.c
927
mf->colorspace = priv->format->colorspace;
drivers/media/i2c/mt9t112.c
928
mf->code = priv->format->code;
drivers/media/i2c/mt9t112.c
950
mf->colorspace = priv->format->colorspace;
drivers/media/i2c/mt9t112.c
957
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9t112.c
960
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/mt9t112.c
964
if (format->pad)
drivers/media/i2c/mt9t112.c
97
const struct mt9t112_format *format;
drivers/media/i2c/mt9t112.c
983
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/mt9v011.c
340
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9v011.c
342
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/mt9v011.c
345
if (format->pad || fmt->code != MEDIA_BUS_FMT_SGRBG8_1X8)
drivers/media/i2c/mt9v011.c
353
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/mt9v032.c
1159
mt9v032->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/mt9v032.c
1161
mt9v032->format.code = MEDIA_BUS_FMT_Y10_1X10;
drivers/media/i2c/mt9v032.c
1163
mt9v032->format.width = MT9V032_WINDOW_WIDTH_DEF;
drivers/media/i2c/mt9v032.c
1164
mt9v032->format.height = MT9V032_WINDOW_HEIGHT_DEF;
drivers/media/i2c/mt9v032.c
1165
mt9v032->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/mt9v032.c
1166
mt9v032->format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/mt9v032.c
197
struct v4l2_mbus_framefmt format;
drivers/media/i2c/mt9v032.c
369
return &mt9v032->format;
drivers/media/i2c/mt9v032.c
447
code->code = mt9v032->format.code;
drivers/media/i2c/mt9v032.c
459
if (mt9v032->format.code != fse->code)
drivers/media/i2c/mt9v032.c
472
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9v032.c
476
format->format = *__mt9v032_get_pad_format(mt9v032, sd_state,
drivers/media/i2c/mt9v032.c
477
format->pad,
drivers/media/i2c/mt9v032.c
478
format->which);
drivers/media/i2c/mt9v032.c
507
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9v032.c
517
__crop = __mt9v032_get_pad_crop(mt9v032, sd_state, format->pad,
drivers/media/i2c/mt9v032.c
518
format->which);
drivers/media/i2c/mt9v032.c
521
width = clamp(ALIGN(format->format.width, 2),
drivers/media/i2c/mt9v032.c
525
height = clamp(ALIGN(format->format.height, 2),
drivers/media/i2c/mt9v032.c
533
__format = __mt9v032_get_pad_format(mt9v032, sd_state, format->pad,
drivers/media/i2c/mt9v032.c
534
format->which);
drivers/media/i2c/mt9v032.c
538
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/mt9v032.c
544
format->format = *__format;
drivers/media/i2c/mt9v032.c
936
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/mt9v032.c
945
format = v4l2_subdev_state_get_format(fh->state, 0);
drivers/media/i2c/mt9v032.c
948
format->code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/mt9v032.c
950
format->code = MEDIA_BUS_FMT_Y10_1X10;
drivers/media/i2c/mt9v032.c
952
format->width = MT9V032_WINDOW_WIDTH_DEF;
drivers/media/i2c/mt9v032.c
953
format->height = MT9V032_WINDOW_HEIGHT_DEF;
drivers/media/i2c/mt9v032.c
954
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/mt9v032.c
955
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/mt9v111.c
872
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9v111.c
876
if (format->pad)
drivers/media/i2c/mt9v111.c
880
format->format = *__mt9v111_get_pad_format(mt9v111, sd_state,
drivers/media/i2c/mt9v111.c
881
format->pad,
drivers/media/i2c/mt9v111.c
882
format->which);
drivers/media/i2c/mt9v111.c
890
struct v4l2_subdev_format *format)
drivers/media/i2c/mt9v111.c
905
if (format->pad) {
drivers/media/i2c/mt9v111.c
912
if (format->format.code == mt9v111_formats[i].code) {
drivers/media/i2c/mt9v111.c
922
format->format.width) +
drivers/media/i2c/mt9v111.c
924
format->format.height);
drivers/media/i2c/mt9v111.c
937
__fmt = __mt9v111_get_pad_format(mt9v111, sd_state, format->pad,
drivers/media/i2c/mt9v111.c
938
format->which);
drivers/media/i2c/mt9v111.c
951
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/mt9v111.c
958
format->format = *__fmt;
drivers/media/i2c/og01a1b.c
771
height, fmt->format.width,
drivers/media/i2c/og01a1b.c
772
fmt->format.height);
drivers/media/i2c/og01a1b.c
775
og01a1b_update_pad_format(mode, &fmt->format);
drivers/media/i2c/og01a1b.c
777
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/og01a1b.c
810
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/og01a1b.c
813
og01a1b_update_pad_format(og01a1b->cur_mode, &fmt->format);
drivers/media/i2c/og0ve1b.c
487
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/og0ve1b.c
490
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/og0ve1b.c
495
fmt->format.width,
drivers/media/i2c/og0ve1b.c
496
fmt->format.height);
drivers/media/i2c/og0ve1b.c
498
og0ve1b_update_pad_format(mode, &fmt->format);
drivers/media/i2c/og0ve1b.c
499
*format = fmt->format;
drivers/media/i2c/og0ve1b.c
540
.format = {
drivers/media/i2c/os05b10.c
603
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/os05b10.c
606
fmt->format.width = mode->width;
drivers/media/i2c/os05b10.c
607
fmt->format.height = mode->height;
drivers/media/i2c/os05b10.c
608
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/os05b10.c
609
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/os05b10.c
610
fmt->format.quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/os05b10.c
611
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/os05b10.c
613
format = v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/i2c/os05b10.c
621
*format = fmt->format;
drivers/media/i2c/os05b10.c
717
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/os05b10.c
721
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/os05b10.c
724
format->code = MEDIA_BUS_FMT_SBGGR10_1X10;
drivers/media/i2c/os05b10.c
727
format->width = mode->width;
drivers/media/i2c/os05b10.c
728
format->height = mode->height;
drivers/media/i2c/os05b10.c
729
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/os05b10.c
730
format->colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/os05b10.c
731
format->quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/os05b10.c
732
format->xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/ov01a10.c
646
width = clamp_val(ALIGN(fmt->format.width, pattern_size),
drivers/media/i2c/ov01a10.c
649
height = clamp_val(ALIGN(fmt->format.height, pattern_size),
drivers/media/i2c/ov01a10.c
663
ov01a10_fill_format(ov01a10, &fmt->format, width, height);
drivers/media/i2c/ov01a10.c
664
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov01a10.c
756
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov01a10.c
780
format = v4l2_subdev_state_get_format(sd_state, sel->pad);
drivers/media/i2c/ov01a10.c
781
format->width = rect.width;
drivers/media/i2c/ov01a10.c
782
format->height = rect.height;
drivers/media/i2c/ov02a10.c
303
struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format;
drivers/media/i2c/ov02a10.c
335
struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format;
drivers/media/i2c/ov02a10.c
340
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/ov02a10.c
343
fmt->format = ov02a10->fmt;
drivers/media/i2c/ov02a10.c
520
.format = {
drivers/media/i2c/ov02c10.c
711
ov02c10_update_pad_format(mode, &fmt->format);
drivers/media/i2c/ov02c10.c
712
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov02e10.c
603
width, height, fmt->format.width,
drivers/media/i2c/ov02e10.c
604
fmt->format.height);
drivers/media/i2c/ov02e10.c
606
ov02e10_update_pad_format(mode, &fmt->format);
drivers/media/i2c/ov02e10.c
609
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov02e10.c
651
fmt->format = *v4l2_subdev_state_get_format(sd_state, fmt->pad);
drivers/media/i2c/ov02e10.c
653
ov02e10_update_pad_format(ov02e10->cur_mode, &fmt->format);
drivers/media/i2c/ov08d10.c
1141
width, height, fmt->format.width,
drivers/media/i2c/ov08d10.c
1142
fmt->format.height);
drivers/media/i2c/ov08d10.c
1145
ov08d10_update_pad_format(ov08d10, mode, &fmt->format);
drivers/media/i2c/ov08d10.c
1148
fmt->format;
drivers/media/i2c/ov08d10.c
1186
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/ov08d10.c
1190
&fmt->format);
drivers/media/i2c/ov08x40.c
1809
fmt->format.width = mode->width;
drivers/media/i2c/ov08x40.c
1810
fmt->format.height = mode->height;
drivers/media/i2c/ov08x40.c
1811
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov08x40.c
1812
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov08x40.c
1823
fmt->format = *framefmt;
drivers/media/i2c/ov08x40.c
1863
if (fmt->format.code != MEDIA_BUS_FMT_SGRBG10_1X10)
drivers/media/i2c/ov08x40.c
1864
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov08x40.c
1869
fmt->format.width,
drivers/media/i2c/ov08x40.c
1870
fmt->format.height,
drivers/media/i2c/ov08x40.c
1876
*framefmt = fmt->format;
drivers/media/i2c/ov13858.c
1310
fmt->format.width = mode->width;
drivers/media/i2c/ov13858.c
1311
fmt->format.height = mode->height;
drivers/media/i2c/ov13858.c
1312
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov13858.c
1313
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov13858.c
1324
fmt->format = *framefmt;
drivers/media/i2c/ov13858.c
1363
if (fmt->format.code != MEDIA_BUS_FMT_SGRBG10_1X10)
drivers/media/i2c/ov13858.c
1364
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov13858.c
1369
fmt->format.width, fmt->format.height);
drivers/media/i2c/ov13858.c
1373
*framefmt = fmt->format;
drivers/media/i2c/ov13b10.c
1076
fmt->format.width = mode->width;
drivers/media/i2c/ov13b10.c
1077
fmt->format.height = mode->height;
drivers/media/i2c/ov13b10.c
1078
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov13b10.c
1079
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov13b10.c
1090
fmt->format = *framefmt;
drivers/media/i2c/ov13b10.c
1130
if (fmt->format.code != MEDIA_BUS_FMT_SGRBG10_1X10)
drivers/media/i2c/ov13b10.c
1131
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov13b10.c
1136
fmt->format.width, fmt->format.height);
drivers/media/i2c/ov13b10.c
1140
*framefmt = fmt->format;
drivers/media/i2c/ov2640.c
913
struct v4l2_subdev_format *format)
drivers/media/i2c/ov2640.c
915
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/ov2640.c
919
if (format->pad)
drivers/media/i2c/ov2640.c
922
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov2640.c
924
format->format = *mf;
drivers/media/i2c/ov2640.c
942
struct v4l2_subdev_format *format)
drivers/media/i2c/ov2640.c
944
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/ov2640.c
950
if (format->pad)
drivers/media/i2c/ov2640.c
979
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/ov2659.c
1038
fmt->format = *mf;
drivers/media/i2c/ov2659.c
1044
fmt->format = ov2659->format;
drivers/media/i2c/ov2659.c
1048
ov2659->format.code, ov2659->format.width,
drivers/media/i2c/ov2659.c
1049
ov2659->format.height);
drivers/media/i2c/ov2659.c
1088
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/i2c/ov2659.c
1113
*mf = fmt->format;
drivers/media/i2c/ov2659.c
1123
ov2659->format = fmt->format;
drivers/media/i2c/ov2659.c
1127
if (ov2659->format.code != MEDIA_BUS_FMT_SBGGR8_1X8)
drivers/media/i2c/ov2659.c
1306
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/ov2659.c
1311
ov2659_get_default_format(format);
drivers/media/i2c/ov2659.c
1500
ov2659_get_default_format(&ov2659->format);
drivers/media/i2c/ov2659.c
200
struct v4l2_mbus_framefmt format;
drivers/media/i2c/ov2659.c
948
static void ov2659_get_default_format(struct v4l2_mbus_framefmt *format)
drivers/media/i2c/ov2659.c
950
format->width = ov2659_framesizes[2].width;
drivers/media/i2c/ov2659.c
951
format->height = ov2659_framesizes[2].height;
drivers/media/i2c/ov2659.c
952
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/i2c/ov2659.c
953
format->code = ov2659_formats[0].code;
drivers/media/i2c/ov2659.c
954
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/ov2680.c
627
struct v4l2_subdev_format *format)
drivers/media/i2c/ov2680.c
632
fmt = __ov2680_get_pad_format(sensor, sd_state, format->pad,
drivers/media/i2c/ov2680.c
633
format->which);
drivers/media/i2c/ov2680.c
636
format->format = *fmt;
drivers/media/i2c/ov2680.c
644
struct v4l2_subdev_format *format)
drivers/media/i2c/ov2680.c
652
crop = __ov2680_get_pad_crop(sensor, sd_state, format->pad,
drivers/media/i2c/ov2680.c
653
format->which);
drivers/media/i2c/ov2680.c
656
width = clamp_val(ALIGN(format->format.width, 2),
drivers/media/i2c/ov2680.c
658
height = clamp_val(ALIGN(format->format.height, 2),
drivers/media/i2c/ov2680.c
661
ov2680_fill_format(sensor, &format->format, width, height);
drivers/media/i2c/ov2680.c
663
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov2680.c
665
*try_fmt = format->format;
drivers/media/i2c/ov2680.c
676
sensor->mode.fmt = format->format;
drivers/media/i2c/ov2680.c
741
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov2680.c
776
format = __ov2680_get_pad_format(sensor, state, sel->pad,
drivers/media/i2c/ov2680.c
778
format->width = rect.width;
drivers/media/i2c/ov2680.c
779
format->height = rect.height;
drivers/media/i2c/ov2685.c
347
struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format;
drivers/media/i2c/ov2685.c
360
struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format;
drivers/media/i2c/ov2735.c
592
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov2735.c
596
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/ov2735.c
600
ov2735_write(ov2735, OV2735_REG_V_SIZE, format->height, &ret);
drivers/media/i2c/ov2735.c
601
ov2735_write(ov2735, OV2735_REG_MIPI_LINE_NUMBER, format->height, &ret);
drivers/media/i2c/ov2735.c
604
ov2735_write(ov2735, OV2735_REG_H_SIZE, (format->width / 2), &ret);
drivers/media/i2c/ov2735.c
605
ov2735_write(ov2735, OV2735_REG_MIPI_COLOMN_NUMBER, format->width, &ret);
drivers/media/i2c/ov2735.c
748
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov2735.c
754
format = v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/i2c/ov2735.c
759
fmt->format.width, fmt->format.height);
drivers/media/i2c/ov2735.c
761
fmt->format.width = mode->width;
drivers/media/i2c/ov2735.c
762
fmt->format.height = mode->height;
drivers/media/i2c/ov2735.c
763
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov2735.c
764
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/ov2735.c
765
fmt->format.quantization = V4L2_QUANTIZATION_FULL_RANGE;
drivers/media/i2c/ov2735.c
766
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/ov2735.c
774
*format = fmt->format;
drivers/media/i2c/ov2735.c
788
.format = {
drivers/media/i2c/ov2740.c
1036
fmt->format.width, fmt->format.height);
drivers/media/i2c/ov2740.c
1038
ov2740_update_pad_format(mode, &fmt->format);
drivers/media/i2c/ov2740.c
1039
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov4689.c
336
struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format;
drivers/media/i2c/ov5640.c
2409
struct v4l2_mbus_framefmt *format);
drivers/media/i2c/ov5640.c
2790
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5640.c
2795
if (format->pad != 0)
drivers/media/i2c/ov5640.c
2800
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ov5640.c
2801
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/ov5640.c
2805
format->format = *fmt;
drivers/media/i2c/ov5640.c
2952
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5640.c
2956
struct v4l2_mbus_framefmt *mbus_fmt = &format->format;
drivers/media/i2c/ov5640.c
2959
if (format->pad != 0)
drivers/media/i2c/ov5640.c
2973
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov5640.c
3036
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/ov5640.c
3038
bool is_jpeg = format->code == MEDIA_BUS_FMT_JPEG_1X8;
drivers/media/i2c/ov5640.c
3042
pixfmt = ov5640_code_to_pixfmt(sensor, format->code);
drivers/media/i2c/ov5640.c
509
const struct ov5640_pixfmt *format = ov5640_code_to_pixfmt(sensor,
drivers/media/i2c/ov5640.c
512
return format->bpp;
drivers/media/i2c/ov5645.c
852
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5645.c
863
width, height, format->format.width,
drivers/media/i2c/ov5645.c
864
format->format.height);
drivers/media/i2c/ov5645.c
869
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/ov5645.c
890
format->format = *__format;
drivers/media/i2c/ov5645.c
901
.format = {
drivers/media/i2c/ov5647.c
1000
sensor->mode->format.width + ctrl->val, &ret);
drivers/media/i2c/ov5647.c
107
struct v4l2_mbus_framefmt format;
drivers/media/i2c/ov5647.c
1080
hblank = sensor->mode->hts - sensor->mode->format.width;
drivers/media/i2c/ov5647.c
1084
sensor->mode->format.width, 1,
drivers/media/i2c/ov5647.c
1090
sensor->mode->format.height, 1,
drivers/media/i2c/ov5647.c
1092
sensor->mode->format.height);
drivers/media/i2c/ov5647.c
368
.format = {
drivers/media/i2c/ov5647.c
390
.format = {
drivers/media/i2c/ov5647.c
412
.format = {
drivers/media/i2c/ov5647.c
434
.format = {
drivers/media/i2c/ov5647.c
458
#define OV5647_DEFAULT_FORMAT (ov5647_modes[3].format)
drivers/media/i2c/ov5647.c
755
fmt = &ov5647_modes[fse->index].format;
drivers/media/i2c/ov5647.c
766
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5647.c
768
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/ov5647.c
772
switch (format->which) {
drivers/media/i2c/ov5647.c
775
format->pad);
drivers/media/i2c/ov5647.c
778
sensor_format = &sensor->mode->format;
drivers/media/i2c/ov5647.c
791
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5647.c
793
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/ov5647.c
798
format.width, format.height,
drivers/media/i2c/ov5647.c
802
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov5647.c
803
*v4l2_subdev_state_get_format(sd_state, format->pad) = mode->format;
drivers/media/i2c/ov5647.c
812
hblank = mode->hts - mode->format.width;
drivers/media/i2c/ov5647.c
814
OV5647_HTS_MAX - mode->format.width, 1,
drivers/media/i2c/ov5647.c
817
vblank = mode->vts - mode->format.height;
drivers/media/i2c/ov5647.c
819
OV5647_VTS_MAX - mode->format.height,
drivers/media/i2c/ov5647.c
832
*fmt = mode->format;
drivers/media/i2c/ov5647.c
917
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/ov5647.c
926
*format = OV5647_DEFAULT_FORMAT;
drivers/media/i2c/ov5647.c
947
exposure_max = sensor->mode->format.height + ctrl->val - 4;
drivers/media/i2c/ov5647.c
996
sensor->mode->format.height + ctrl->val, NULL);
drivers/media/i2c/ov5648.c
2198
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5648.c
2201
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/i2c/ov5648.c
2205
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ov5648.c
2207
format->pad);
drivers/media/i2c/ov5648.c
2219
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5648.c
2222
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/i2c/ov5648.c
2258
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ov5648.c
2259
*v4l2_subdev_state_get_format(sd_state, format->pad) =
drivers/media/i2c/ov5670.c
2255
fmt->format.width = mode->width;
drivers/media/i2c/ov5670.c
2256
fmt->format.height = mode->height;
drivers/media/i2c/ov5670.c
2257
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov5670.c
2258
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov5670.c
2266
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/ov5670.c
2304
fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/i2c/ov5670.c
2309
fmt->format.width, fmt->format.height);
drivers/media/i2c/ov5670.c
2312
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov5675.c
1028
height, fmt->format.width,
drivers/media/i2c/ov5675.c
1029
fmt->format.height);
drivers/media/i2c/ov5675.c
1032
ov5675_update_pad_format(mode, &fmt->format);
drivers/media/i2c/ov5675.c
1034
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov5675.c
1067
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/ov5675.c
1070
ov5675_update_pad_format(ov5675->cur_mode, &fmt->format);
drivers/media/i2c/ov5693.c
1009
unsigned int framesize = OV5693_FIXED_PPL * (ov5693->mode.format.height +
drivers/media/i2c/ov5693.c
1137
hblank = OV5693_FIXED_PPL - ov5693->mode.format.width;
drivers/media/i2c/ov5693.c
1145
vblank_max = OV5693_TIMING_MAX_VTS - ov5693->mode.format.height;
drivers/media/i2c/ov5693.c
1146
vblank_def = ov5693->mode.vts - ov5693->mode.format.height;
drivers/media/i2c/ov5693.c
1317
ov5693->mode.format = ov5693_default_fmt;
drivers/media/i2c/ov5693.c
1318
ov5693->mode.vts = __ov5693_calc_vts(ov5693->mode.format.height);
drivers/media/i2c/ov5693.c
149
struct v4l2_mbus_framefmt format;
drivers/media/i2c/ov5693.c
456
u16 vts = ov5693->mode.format.height + vblank;
drivers/media/i2c/ov5693.c
484
exposure_max = ov5693->mode.format.height + ctrl->val -
drivers/media/i2c/ov5693.c
565
cci_write(ov5693->regmap, OV5693_OUTPUT_SIZE_X_REG, mode->format.width,
drivers/media/i2c/ov5693.c
584
cci_write(ov5693->regmap, OV5693_OUTPUT_SIZE_Y_REG, mode->format.height,
drivers/media/i2c/ov5693.c
777
return &ov5693->mode.format;
drivers/media/i2c/ov5693.c
800
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5693.c
804
format->format = ov5693->mode.format;
drivers/media/i2c/ov5693.c
811
struct v4l2_subdev_format *format)
drivers/media/i2c/ov5693.c
821
crop = __ov5693_get_pad_crop(ov5693, state, format->pad, format->which);
drivers/media/i2c/ov5693.c
827
width = clamp_t(unsigned int, ALIGN(format->format.width, 2),
drivers/media/i2c/ov5693.c
829
height = clamp_t(unsigned int, ALIGN(format->format.height, 2),
drivers/media/i2c/ov5693.c
841
fmt = __ov5693_get_pad_format(ov5693, state, format->pad,
drivers/media/i2c/ov5693.c
842
format->which);
drivers/media/i2c/ov5693.c
848
format->format = *fmt;
drivers/media/i2c/ov5693.c
850
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ov5693.c
922
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov5693.c
956
format = __ov5693_get_pad_format(ov5693, state, sel->pad,
drivers/media/i2c/ov5693.c
958
format->width = rect.width;
drivers/media/i2c/ov5693.c
959
format->height = rect.height;
drivers/media/i2c/ov5695.c
790
struct v4l2_mbus_framefmt *framefmt = &fmt->format;
drivers/media/i2c/ov5695.c
818
fmt->format.code = MEDIA_BUS_FMT_SBGGR10_1X10;
drivers/media/i2c/ov5695.c
819
fmt->format.width = mode->width;
drivers/media/i2c/ov5695.c
820
fmt->format.height = mode->height;
drivers/media/i2c/ov5695.c
821
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov5695.c
823
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov5695.c
849
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/ov5695.c
852
fmt->format.width = mode->width;
drivers/media/i2c/ov5695.c
853
fmt->format.height = mode->height;
drivers/media/i2c/ov5695.c
854
fmt->format.code = MEDIA_BUS_FMT_SBGGR10_1X10;
drivers/media/i2c/ov5695.c
855
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov6211.c
465
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov6211.c
468
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/ov6211.c
473
fmt->format.width,
drivers/media/i2c/ov6211.c
474
fmt->format.height);
drivers/media/i2c/ov6211.c
476
ov6211_update_pad_format(mode, &fmt->format);
drivers/media/i2c/ov6211.c
477
*format = fmt->format;
drivers/media/i2c/ov6211.c
518
.format = {
drivers/media/i2c/ov64a40.c
3056
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov64a40.c
3059
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/ov64a40.c
3060
ov64a40_update_pad_fmt(ov64a40, &ov64a40_modes[0], format);
drivers/media/i2c/ov64a40.c
3145
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov64a40.c
3151
fmt->format.width, fmt->format.height);
drivers/media/i2c/ov64a40.c
3153
ov64a40_update_pad_fmt(ov64a40, mode, &fmt->format);
drivers/media/i2c/ov64a40.c
3155
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/ov64a40.c
3156
if (ov64a40->mode == mode && format->code == fmt->format.code)
drivers/media/i2c/ov64a40.c
3187
*format = fmt->format;
drivers/media/i2c/ov7251.c
1154
struct v4l2_subdev_format *format)
drivers/media/i2c/ov7251.c
1159
format->format = *__ov7251_get_pad_format(ov7251, sd_state,
drivers/media/i2c/ov7251.c
1160
format->pad,
drivers/media/i2c/ov7251.c
1161
format->which);
drivers/media/i2c/ov7251.c
1218
struct v4l2_subdev_format *format)
drivers/media/i2c/ov7251.c
1229
__crop = __ov7251_get_pad_crop(ov7251, sd_state, format->pad,
drivers/media/i2c/ov7251.c
1230
format->which);
drivers/media/i2c/ov7251.c
1235
format->format.width, format->format.height);
drivers/media/i2c/ov7251.c
1240
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
drivers/media/i2c/ov7251.c
1267
__format = __ov7251_get_pad_format(ov7251, sd_state, format->pad,
drivers/media/i2c/ov7251.c
1268
format->which);
drivers/media/i2c/ov7251.c
1279
format->format = *__format;
drivers/media/i2c/ov7251.c
1293
.format = {
drivers/media/i2c/ov7670.c
1025
info->format = *fmt;
drivers/media/i2c/ov7670.c
1102
struct v4l2_subdev_format *format)
drivers/media/i2c/ov7670.c
1108
if (format->pad)
drivers/media/i2c/ov7670.c
1111
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov7670.c
1112
ret = ov7670_try_fmt_internal(sd, &format->format, NULL, NULL);
drivers/media/i2c/ov7670.c
1115
mbus_fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/ov7670.c
1116
*mbus_fmt = format->format;
drivers/media/i2c/ov7670.c
1120
ret = ov7670_try_fmt_internal(sd, &format->format, &info->fmt, &info->wsize);
drivers/media/i2c/ov7670.c
1137
struct v4l2_subdev_format *format)
drivers/media/i2c/ov7670.c
1142
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov7670.c
1144
format->format = *mbus_fmt;
drivers/media/i2c/ov7670.c
1147
format->format = info->format;
drivers/media/i2c/ov7670.c
1709
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/ov7670.c
1713
format->width = info->devtype->win_sizes[0].width;
drivers/media/i2c/ov7670.c
1714
format->height = info->devtype->win_sizes[0].height;
drivers/media/i2c/ov7670.c
1715
format->colorspace = info->fmt->colorspace;
drivers/media/i2c/ov7670.c
1716
format->code = info->fmt->mbus_code;
drivers/media/i2c/ov7670.c
1717
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/ov7670.c
1722
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/ov7670.c
1725
ov7670_get_default_format(sd, format);
drivers/media/i2c/ov7670.c
1901
ov7670_get_default_format(sd, &info->format);
drivers/media/i2c/ov7670.c
233
struct v4l2_mbus_framefmt format;
drivers/media/i2c/ov772x.c
1197
struct v4l2_subdev_format *format)
drivers/media/i2c/ov772x.c
1199
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/ov772x.c
1202
if (format->pad)
drivers/media/i2c/ov772x.c
1216
struct v4l2_subdev_format *format)
drivers/media/i2c/ov772x.c
1219
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/ov772x.c
1224
if (format->pad)
drivers/media/i2c/ov772x.c
1238
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov7740.c
1091
ov7740_get_default_format(sd, &ov7740->format);
drivers/media/i2c/ov7740.c
763
ov7740->format = *fmt;
drivers/media/i2c/ov7740.c
770
struct v4l2_subdev_format *format)
drivers/media/i2c/ov7740.c
779
if (format->pad) {
drivers/media/i2c/ov7740.c
784
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov7740.c
785
ret = ov7740_try_fmt_internal(sd, &format->format, NULL, NULL);
drivers/media/i2c/ov7740.c
789
mbus_fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/ov7740.c
790
*mbus_fmt = format->format;
drivers/media/i2c/ov7740.c
795
ret = ov7740_try_fmt_internal(sd, &format->format, &ovfmt, &fsize);
drivers/media/i2c/ov7740.c
812
struct v4l2_subdev_format *format)
drivers/media/i2c/ov7740.c
818
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/ov7740.c
820
format->format = *mbus_fmt;
drivers/media/i2c/ov7740.c
822
format->format = ov7740->format;
drivers/media/i2c/ov7740.c
858
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/ov7740.c
862
format->width = ov7740->frmsize->width;
drivers/media/i2c/ov7740.c
863
format->height = ov7740->frmsize->height;
drivers/media/i2c/ov7740.c
864
format->colorspace = ov7740->fmt->colorspace;
drivers/media/i2c/ov7740.c
865
format->code = ov7740->fmt->mbus_code;
drivers/media/i2c/ov7740.c
866
format->field = V4L2_FIELD_NONE;
drivers/media/i2c/ov7740.c
87
struct v4l2_mbus_framefmt format;
drivers/media/i2c/ov7740.c
872
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/ov7740.c
876
ov7740_get_default_format(sd, format);
drivers/media/i2c/ov8856.c
2127
width, height, fmt->format.width,
drivers/media/i2c/ov8856.c
2128
fmt->format.height);
drivers/media/i2c/ov8856.c
2131
ov8856_update_pad_format(ov8856, mode, &fmt->format);
drivers/media/i2c/ov8856.c
2133
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov8856.c
2171
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/ov8856.c
2174
ov8856_update_pad_format(ov8856, ov8856->cur_mode, &fmt->format);
drivers/media/i2c/ov8858.c
1326
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov8858.c
1335
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/ov8858.c
1337
width, height, format->width,
drivers/media/i2c/ov8858.c
1338
format->height);
drivers/media/i2c/ov8858.c
1420
width, height, fmt->format.width,
drivers/media/i2c/ov8858.c
1421
fmt->format.height);
drivers/media/i2c/ov8858.c
1423
fmt->format.code = MEDIA_BUS_FMT_SBGGR10_1X10;
drivers/media/i2c/ov8858.c
1424
fmt->format.width = mode->width;
drivers/media/i2c/ov8858.c
1425
fmt->format.height = mode->height;
drivers/media/i2c/ov8858.c
1426
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov8858.c
1429
*v4l2_subdev_state_get_format(state, 0) = fmt->format;
drivers/media/i2c/ov8858.c
1483
.format = {
drivers/media/i2c/ov8858.c
1532
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/ov8858.c
1545
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/i2c/ov8858.c
1551
max_exp = format->height + ctrl->val - OV8858_EXPOSURE_MARGIN;
drivers/media/i2c/ov8858.c
1587
ctrl->val + format->height, NULL);
drivers/media/i2c/ov8865.c
2672
struct v4l2_subdev_format *format)
drivers/media/i2c/ov8865.c
2675
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/i2c/ov8865.c
2679
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ov8865.c
2681
format->pad);
drivers/media/i2c/ov8865.c
2693
struct v4l2_subdev_format *format)
drivers/media/i2c/ov8865.c
2696
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/i2c/ov8865.c
2734
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/ov8865.c
2735
*v4l2_subdev_state_get_format(sd_state, format->pad) =
drivers/media/i2c/ov9282.c
1010
fmt->format.width,
drivers/media/i2c/ov9282.c
1011
fmt->format.height);
drivers/media/i2c/ov9282.c
1012
if (fmt->format.code == MEDIA_BUS_FMT_Y8_1X8)
drivers/media/i2c/ov9282.c
1023
*framefmt = fmt->format;
drivers/media/i2c/ov9282.c
599
pixel_rate = (fmt->format.code == MEDIA_BUS_FMT_Y10_1X10) ?
drivers/media/i2c/ov9282.c
947
fmt->format.width = mode->width;
drivers/media/i2c/ov9282.c
948
fmt->format.height = mode->height;
drivers/media/i2c/ov9282.c
949
fmt->format.code = code;
drivers/media/i2c/ov9282.c
950
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/ov9282.c
951
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/i2c/ov9282.c
952
fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/i2c/ov9282.c
953
fmt->format.quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/i2c/ov9282.c
954
fmt->format.xfer_func = V4L2_XFER_FUNC_NONE;
drivers/media/i2c/ov9282.c
977
fmt->format = *framefmt;
drivers/media/i2c/ov9640.c
523
struct v4l2_subdev_format *format)
drivers/media/i2c/ov9640.c
525
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/ov9640.c
527
if (format->pad)
drivers/media/i2c/ov9640.c
547
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/ov9650.c
1127
struct v4l2_mbus_framefmt *mbus_fmt = &ov965x->format;
drivers/media/i2c/ov9650.c
1192
fmt->format = *mf;
drivers/media/i2c/ov9650.c
1197
fmt->format = ov965x->format;
drivers/media/i2c/ov9650.c
1233
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/i2c/ov9650.c
1253
*mf = fmt->format;
drivers/media/i2c/ov9650.c
1260
ov965x->format = fmt->format;
drivers/media/i2c/ov9650.c
1533
ov965x_get_default_format(&ov965x->format);
drivers/media/i2c/ov9650.c
267
struct v4l2_mbus_framefmt format;
drivers/media/i2c/ov9734.c
693
height, fmt->format.width,
drivers/media/i2c/ov9734.c
694
fmt->format.height);
drivers/media/i2c/ov9734.c
697
ov9734_update_pad_format(mode, &fmt->format);
drivers/media/i2c/ov9734.c
699
*v4l2_subdev_state_get_format(sd_state, fmt->pad) = fmt->format;
drivers/media/i2c/ov9734.c
732
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/ov9734.c
735
ov9734_update_pad_format(ov9734->cur_mode, &fmt->format);
drivers/media/i2c/rdacm20.c
419
struct v4l2_subdev_format *format)
drivers/media/i2c/rdacm20.c
421
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/rdacm20.c
423
if (format->pad)
drivers/media/i2c/rdacm21.c
298
struct v4l2_subdev_format *format)
drivers/media/i2c/rdacm21.c
300
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/rdacm21.c
303
if (format->pad)
drivers/media/i2c/rj54n1cb0c.c
1011
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/rj54n1cb0c.c
607
struct v4l2_subdev_format *format)
drivers/media/i2c/rj54n1cb0c.c
609
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/rj54n1cb0c.c
613
if (format->pad)
drivers/media/i2c/rj54n1cb0c.c
977
struct v4l2_subdev_format *format)
drivers/media/i2c/rj54n1cb0c.c
979
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/rj54n1cb0c.c
992
if (format->pad)
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1006
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1026
s5c73m3_fill_mbus_fmt(&fmt->format, fs, code);
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1041
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1065
s5c73m3_fill_mbus_fmt(&fmt->format, fs, code);
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1086
*mf = fmt->format;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1125
*mf = fmt->format;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1129
mf->width = fmt->format.width;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1130
mf->height = fmt->format.height;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1141
state->mbus_code = fmt->format.code;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
826
*fs = s5c73m3_find_frame_size(&fmt->format, RES_ISP);
drivers/media/i2c/s5c73m3/s5c73m3-core.c
830
*fs = s5c73m3_find_frame_size(&fmt->format, RES_JPEG);
drivers/media/i2c/s5c73m3/s5c73m3-core.c
835
if (fmt->format.code == S5C73M3_JPEG_FMT)
drivers/media/i2c/s5c73m3/s5c73m3-core.c
848
s5c73m3_fill_mbus_fmt(&fmt->format, *fs, code);
drivers/media/i2c/s5c73m3/s5c73m3-core.c
859
*fs = s5c73m3_find_frame_size(&fmt->format, RES_ISP);
drivers/media/i2c/s5c73m3/s5c73m3-core.c
862
*fs = s5c73m3_find_frame_size(&fmt->format, RES_JPEG);
drivers/media/i2c/s5c73m3/s5c73m3-core.c
866
s5c73m3_fill_mbus_fmt(&fmt->format, *fs, code);
drivers/media/i2c/s5k3m5.c
1000
*v4l2_subdev_state_get_format(state, 0) = fmt->format;
drivers/media/i2c/s5k3m5.c
1071
.format = {
drivers/media/i2c/s5k3m5.c
971
fmt->format.width, fmt->format.height);
drivers/media/i2c/s5k3m5.c
973
s5k3m5_update_pad_format(s5k3m5, mode, &fmt->format);
drivers/media/i2c/s5k5baf.c
1288
fmt->format = *mf;
drivers/media/i2c/s5k5baf.c
1292
mf = &fmt->format;
drivers/media/i2c/s5k5baf.c
1313
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/i2c/s5k6a3.c
130
return &sensor->format;
drivers/media/i2c/s5k6a3.c
140
s5k6a3_try_format(&fmt->format);
drivers/media/i2c/s5k6a3.c
145
*mf = fmt->format;
drivers/media/i2c/s5k6a3.c
161
fmt->format = *mf;
drivers/media/i2c/s5k6a3.c
174
struct v4l2_mbus_framefmt *format = v4l2_subdev_state_get_format(fh->state,
drivers/media/i2c/s5k6a3.c
177
*format = s5k6a3_formats[0];
drivers/media/i2c/s5k6a3.c
178
format->width = S5K6A3_DEFAULT_WIDTH;
drivers/media/i2c/s5k6a3.c
179
format->height = S5K6A3_DEFAULT_HEIGHT;
drivers/media/i2c/s5k6a3.c
314
sensor->format.code = s5k6a3_formats[0].code;
drivers/media/i2c/s5k6a3.c
315
sensor->format.width = S5K6A3_DEFAULT_WIDTH;
drivers/media/i2c/s5k6a3.c
316
sensor->format.height = S5K6A3_DEFAULT_HEIGHT;
drivers/media/i2c/s5k6a3.c
63
struct v4l2_mbus_framefmt format;
drivers/media/i2c/s5kjn1.c
1000
s5kjn1_update_pad_format(s5kjn1, mode, &fmt->format);
drivers/media/i2c/s5kjn1.c
1027
*v4l2_subdev_state_get_format(state, 0) = fmt->format;
drivers/media/i2c/s5kjn1.c
1098
.format = {
drivers/media/i2c/s5kjn1.c
998
fmt->format.width, fmt->format.height);
drivers/media/i2c/saa6752hs.c
547
struct v4l2_subdev_format *format)
drivers/media/i2c/saa6752hs.c
549
struct v4l2_mbus_framefmt *f = &format->format;
drivers/media/i2c/saa6752hs.c
552
if (format->pad)
drivers/media/i2c/saa6752hs.c
567
struct v4l2_subdev_format *format)
drivers/media/i2c/saa6752hs.c
569
struct v4l2_mbus_framefmt *f = &format->format;
drivers/media/i2c/saa6752hs.c
573
if (format->pad)
drivers/media/i2c/saa6752hs.c
597
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/saa7115.c
1163
struct v4l2_subdev_format *format)
drivers/media/i2c/saa7115.c
1165
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/saa7115.c
1167
if (format->pad || fmt->code != MEDIA_BUS_FMT_FIXED)
drivers/media/i2c/saa7115.c
1171
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/saa717x.c
1003
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/saa717x.c
984
struct v4l2_subdev_format *format)
drivers/media/i2c/saa717x.c
986
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/i2c/saa717x.c
991
if (format->pad || fmt->code != MEDIA_BUS_FMT_FIXED)
drivers/media/i2c/st-mipid02.c
614
fmt->format.code = get_fmt_code(fmt->format.code);
drivers/media/i2c/st-mipid02.c
618
fmt->format.code = serial_to_parallel_code(fmt->format.code);
drivers/media/i2c/st-mipid02.c
620
*pad_fmt = fmt->format;
drivers/media/i2c/st-mipid02.c
626
*pad_fmt = fmt->format;
drivers/media/i2c/st-mipid02.c
627
pad_fmt->code = serial_to_parallel_code(fmt->format.code);
drivers/media/i2c/tc358743.c
1801
struct v4l2_subdev_format *format)
drivers/media/i2c/tc358743.c
1805
if (format->pad != 0)
drivers/media/i2c/tc358743.c
1808
format->format.code = state->mbus_fmt_code;
drivers/media/i2c/tc358743.c
1809
format->format.width = state->timings.bt.width;
drivers/media/i2c/tc358743.c
1810
format->format.height = state->timings.bt.height;
drivers/media/i2c/tc358743.c
1811
format->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/tc358743.c
1813
format->format.colorspace = tc358743_g_colorspace(format->format.code);
drivers/media/i2c/tc358743.c
1820
struct v4l2_subdev_format *format)
drivers/media/i2c/tc358743.c
1824
u32 code = format->format.code; /* is overwritten by get_fmt */
drivers/media/i2c/tc358743.c
1825
int ret = tc358743_get_fmt(sd, sd_state, format);
drivers/media/i2c/tc358743.c
1829
format->format.code = code;
drivers/media/i2c/tc358743.c
1830
format->format.colorspace = tc358743_g_colorspace(format->format.code);
drivers/media/i2c/tc358743.c
1835
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/tc358743.c
1838
state->mbus_fmt_code = format->format.code;
drivers/media/i2c/tc358746.c
877
struct v4l2_subdev_format *format)
drivers/media/i2c/tc358746.c
883
if (format->pad == TC358746_SOURCE)
drivers/media/i2c/tc358746.c
884
return v4l2_subdev_get_fmt(sd, sd_state, format);
drivers/media/i2c/tc358746.c
888
fmt = tc358746_get_format_by_code(format->pad, format->format.code);
drivers/media/i2c/tc358746.c
890
fmt = tc358746_get_format_by_code(format->pad, tc358746_def_fmt.code);
drivers/media/i2c/tc358746.c
896
format->format.code = fmt->code;
drivers/media/i2c/tc358746.c
897
format->format.field = V4L2_FIELD_NONE;
drivers/media/i2c/tc358746.c
901
format->format.width, format->format.height, format->format.code);
drivers/media/i2c/tc358746.c
903
*sink_fmt = format->format;
drivers/media/i2c/tda1997x.c
1765
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/tda1997x.c
1769
memset(format, 0, sizeof(*format));
drivers/media/i2c/tda1997x.c
1771
format->width = bt->width;
drivers/media/i2c/tda1997x.c
1772
format->height = bt->height;
drivers/media/i2c/tda1997x.c
1773
format->colorspace = state->colorimetry.colorspace;
drivers/media/i2c/tda1997x.c
1774
format->field = (bt->interlaced) ?
drivers/media/i2c/tda1997x.c
1780
struct v4l2_subdev_format *format)
drivers/media/i2c/tda1997x.c
1785
__func__, format->pad, format->which);
drivers/media/i2c/tda1997x.c
1787
tda1997x_fill_format(state, &format->format);
drivers/media/i2c/tda1997x.c
1789
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/tda1997x.c
1792
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/tda1997x.c
1793
format->format.code = fmt->code;
drivers/media/i2c/tda1997x.c
1795
format->format.code = state->mbus_code;
drivers/media/i2c/tda1997x.c
1802
struct v4l2_subdev_format *format)
drivers/media/i2c/tda1997x.c
1809
__func__, format->pad, format->which, format->format.code);
drivers/media/i2c/tda1997x.c
1812
if (format->format.code == state->mbus_codes[i]) {
drivers/media/i2c/tda1997x.c
1820
tda1997x_fill_format(state, &format->format);
drivers/media/i2c/tda1997x.c
1821
format->format.code = code;
drivers/media/i2c/tda1997x.c
1823
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/tda1997x.c
1826
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/tda1997x.c
1827
*fmt = format->format;
drivers/media/i2c/tda1997x.c
1829
int ret = tda1997x_setup_format(state, format->format.code);
drivers/media/i2c/thp7312.c
457
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/thp7312.c
461
switch (format->code) {
drivers/media/i2c/thp7312.c
733
struct v4l2_subdev_format *format)
drivers/media/i2c/thp7312.c
736
struct v4l2_mbus_framefmt *mbus_fmt = &format->format;
drivers/media/i2c/thp7312.c
762
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/tvp514x.c
120
struct v4l2_mbus_framefmt format;
drivers/media/i2c/tvp514x.c
890
struct v4l2_subdev_format *format)
drivers/media/i2c/tvp514x.c
893
__u32 which = format->which;
drivers/media/i2c/tvp514x.c
895
if (format->pad)
drivers/media/i2c/tvp514x.c
899
format->format = decoder->format;
drivers/media/i2c/tvp514x.c
903
format->format.code = MEDIA_BUS_FMT_UYVY8_2X8;
drivers/media/i2c/tvp514x.c
904
format->format.width = tvp514x_std_list[decoder->current_std].width;
drivers/media/i2c/tvp514x.c
905
format->format.height = tvp514x_std_list[decoder->current_std].height;
drivers/media/i2c/tvp514x.c
906
format->format.colorspace = V4L2_COLORSPACE_SMPTE170M;
drivers/media/i2c/tvp514x.c
907
format->format.field = V4L2_FIELD_INTERLACED;
drivers/media/i2c/tvp514x.c
926
if (fmt->format.field != V4L2_FIELD_INTERLACED ||
drivers/media/i2c/tvp514x.c
927
fmt->format.code != MEDIA_BUS_FMT_UYVY8_2X8 ||
drivers/media/i2c/tvp514x.c
928
fmt->format.colorspace != V4L2_COLORSPACE_SMPTE170M ||
drivers/media/i2c/tvp514x.c
929
fmt->format.width != tvp514x_std_list[decoder->current_std].width ||
drivers/media/i2c/tvp514x.c
930
fmt->format.height != tvp514x_std_list[decoder->current_std].height)
drivers/media/i2c/tvp514x.c
933
decoder->format = fmt->format;
drivers/media/i2c/tvp5150.c
1049
struct v4l2_subdev_format *format)
drivers/media/i2c/tvp5150.c
1054
if (!format || (format->pad != TVP5150_PAD_VID_OUT))
drivers/media/i2c/tvp5150.c
1057
f = &format->format;
drivers/media/i2c/tvp7002.c
838
fmt->format.code = MEDIA_BUS_FMT_YUYV10_1X20;
drivers/media/i2c/tvp7002.c
839
fmt->format.width = tvp7002->current_timings->timings.bt.width;
drivers/media/i2c/tvp7002.c
840
fmt->format.height = tvp7002->current_timings->timings.bt.height;
drivers/media/i2c/tvp7002.c
841
fmt->format.field = tvp7002->current_timings->scanmode;
drivers/media/i2c/tvp7002.c
842
fmt->format.colorspace = tvp7002->current_timings->color_space;
drivers/media/i2c/tw9900.c
191
struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format;
drivers/media/i2c/tw9900.c
205
struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format;
drivers/media/i2c/tw9910.c
745
struct v4l2_subdev_format *format)
drivers/media/i2c/tw9910.c
747
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/tw9910.c
751
if (format->pad)
drivers/media/i2c/tw9910.c
796
struct v4l2_subdev_format *format)
drivers/media/i2c/tw9910.c
798
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/i2c/tw9910.c
803
if (format->pad)
drivers/media/i2c/tw9910.c
824
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
drivers/media/i2c/vd55g1.c
1007
struct v4l2_mbus_framefmt *format,
drivers/media/i2c/vd55g1.c
1014
vd55g1_get_fmt_bpp(format->code), &ret);
drivers/media/i2c/vd55g1.c
1016
vd55g1_get_fmt_data_type(format->code), &ret);
drivers/media/i2c/vd55g1.c
1018
switch (crop->width / format->width) {
drivers/media/i2c/vd55g1.c
1091
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/vd55g1.c
1107
ret = vd55g1_set_framefmt(sensor, format, crop);
drivers/media/i2c/vd55g1.c
1264
struct v4l2_mbus_framefmt *format,
drivers/media/i2c/vd55g1.c
1290
vd55g1_get_pixel_rate(sensor, format));
drivers/media/i2c/vd55g1.c
1295
hblank = vd55g1_get_hblank_min(sensor, format, crop);
drivers/media/i2c/vd55g1.c
1308
struct v4l2_mbus_framefmt *format;
drivers/media/i2c/vd55g1.c
1314
width, height, sd_fmt->format.width,
drivers/media/i2c/vd55g1.c
1315
sd_fmt->format.height);
drivers/media/i2c/vd55g1.c
1317
vd55g1_update_pad_fmt(sensor, new_mode, sd_fmt->format.code,
drivers/media/i2c/vd55g1.c
1318
&sd_fmt->format);
drivers/media/i2c/vd55g1.c
1324
binning = min(VD55G1_WIDTH / sd_fmt->format.width,
drivers/media/i2c/vd55g1.c
1325
VD55G1_HEIGHT / sd_fmt->format.height);
drivers/media/i2c/vd55g1.c
1327
pad_crop.width = sd_fmt->format.width * binning;
drivers/media/i2c/vd55g1.c
1328
pad_crop.height = sd_fmt->format.height * binning;
drivers/media/i2c/vd55g1.c
1332
format = v4l2_subdev_state_get_format(sd_state, sd_fmt->pad);
drivers/media/i2c/vd55g1.c
1334
*format = sd_fmt->format;
drivers/media/i2c/vd55g1.c
1339
&sd_fmt->format,
drivers/media/i2c/vd55g1.c
1366
&fmt.format);
drivers/media/i2c/vd55g1.c
1448
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/vd55g1.c
1450
unsigned int hblank = vd55g1_get_hblank_min(sensor, format, crop);
drivers/media/i2c/vd55g1.c
1550
struct v4l2_mbus_framefmt *format =
drivers/media/i2c/vd55g1.c
1552
s32 pixel_rate = vd55g1_get_pixel_rate(sensor, format);
drivers/media/i2c/vd55g1.c
1610
hblank = vd55g1_get_hblank_min(sensor, format, crop);
drivers/media/i2c/vd55g1.c
653
struct v4l2_mbus_framefmt *format)
drivers/media/i2c/vd55g1.c
655
return sensor->mipi_rate / vd55g1_get_fmt_bpp(format->code);
drivers/media/i2c/vd55g1.c
659
struct v4l2_mbus_framefmt *format,
drivers/media/i2c/vd55g1.c
668
vd55g1_get_fmt_bpp(format->code) +
drivers/media/i2c/vd56g3.c
1034
.format = {
drivers/media/i2c/vd56g3.c
836
width, height, sd_fmt->format.width,
drivers/media/i2c/vd56g3.c
837
sd_fmt->format.height);
drivers/media/i2c/vd56g3.c
839
vd56g3_update_img_pad_format(sensor, new_mode, sd_fmt->format.code,
drivers/media/i2c/vd56g3.c
840
&sd_fmt->format);
drivers/media/i2c/vd56g3.c
841
*v4l2_subdev_state_get_format(sd_state, sd_fmt->pad) = sd_fmt->format;
drivers/media/i2c/vd56g3.c
844
binning = min(VD56G3_NATIVE_WIDTH / sd_fmt->format.width,
drivers/media/i2c/vd56g3.c
845
VD56G3_NATIVE_HEIGHT / sd_fmt->format.height);
drivers/media/i2c/vd56g3.c
847
pad_crop.width = sd_fmt->format.width * binning;
drivers/media/i2c/vd56g3.c
848
pad_crop.height = sd_fmt->format.height * binning;
drivers/media/i2c/vd56g3.c
887
const struct v4l2_mbus_framefmt *format;
drivers/media/i2c/vd56g3.c
890
format = v4l2_subdev_state_get_format(state, pad);
drivers/media/i2c/vd56g3.c
895
fd->entry[0].pixelcode = format->code;
drivers/media/i2c/vd56g3.c
898
fd->entry[0].bus.csi2.dt = vd56g3_get_datatype(format->code);
drivers/media/i2c/vd56g3.c
908
const struct v4l2_mbus_framefmt *format =
drivers/media/i2c/vd56g3.c
932
vd56g3_get_bpp(format->code), &ret);
drivers/media/i2c/vd56g3.c
936
vd56g3_get_datatype(format->code), &ret);
drivers/media/i2c/vd56g3.c
940
switch (crop->width / format->width) {
drivers/media/i2c/vgxy61.c
1201
struct v4l2_subdev_format *format)
drivers/media/i2c/vgxy61.c
1215
ret = vgxy61_try_fmt_internal(sd, &format->format, &new_mode);
drivers/media/i2c/vgxy61.c
1219
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/i2c/vgxy61.c
1221
*fmt = format->format;
drivers/media/i2c/vgxy61.c
1223
sensor->fmt.code != format->format.code) {
drivers/media/i2c/vgxy61.c
1225
*fmt = format->format;
drivers/media/i2c/vgxy61.c
1260
vgxy61_fill_framefmt(sensor, sensor->current_mode, &fmt.format,
drivers/media/i2c/vgxy61.c
691
struct v4l2_subdev_format *format)
drivers/media/i2c/vgxy61.c
698
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/i2c/vgxy61.c
699
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/i2c/vgxy61.c
703
format->format = *fmt;
drivers/media/i2c/video-i2c.c
125
const struct v4l2_fmtdesc *format;
drivers/media/i2c/video-i2c.c
356
.format = &amg88xx_format,
drivers/media/i2c/video-i2c.c
369
.format = &mlx90640_format,
drivers/media/i2c/video-i2c.c
607
*fmt = *data->chip->format;
drivers/media/i2c/video-i2c.c
623
if (fsize->pixel_format != data->chip->format->pixelformat)
drivers/media/i2c/video-i2c.c
661
pix->pixelformat = data->chip->format->pixelformat;
drivers/media/pci/bt8xx/dst_ca.c
26
#define dprintk(x, y, z, format, arg...) do { \
drivers/media/pci/bt8xx/dst_ca.c
29
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
drivers/media/pci/bt8xx/dst_ca.c
31
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
drivers/media/pci/bt8xx/dst_ca.c
33
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
drivers/media/pci/bt8xx/dst_ca.c
35
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
drivers/media/pci/bt8xx/dst_ca.c
38
printk(format, ## arg); \
drivers/media/pci/cobalt/cobalt-alsa-pcm.c
124
is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE;
drivers/media/pci/cobalt/cobalt-alsa-pcm.c
324
is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE;
drivers/media/pci/cobalt/cobalt-driver.c
497
.format.code = MEDIA_BUS_FMT_YUYV8_1X16,
drivers/media/pci/cobalt/cobalt-driver.c
579
.format.code = MEDIA_BUS_FMT_YUYV8_1X16,
drivers/media/pci/cobalt/cobalt-v4l2.c
159
sd_fmt.format.colorspace = s->colorspace;
drivers/media/pci/cobalt/cobalt-v4l2.c
160
sd_fmt.format.xfer_func = s->xfer_func;
drivers/media/pci/cobalt/cobalt-v4l2.c
161
sd_fmt.format.ycbcr_enc = s->ycbcr_enc;
drivers/media/pci/cobalt/cobalt-v4l2.c
162
sd_fmt.format.quantization = s->quantization;
drivers/media/pci/cobalt/cobalt-v4l2.c
163
sd_fmt.format.width = bt->width;
drivers/media/pci/cobalt/cobalt-v4l2.c
164
sd_fmt.format.height = bt->height;
drivers/media/pci/cobalt/cobalt-v4l2.c
169
sd_fmt.format.code = MEDIA_BUS_FMT_UYVY8_1X16;
drivers/media/pci/cobalt/cobalt-v4l2.c
172
sd_fmt.format.code = MEDIA_BUS_FMT_RGB888_1X24;
drivers/media/pci/cobalt/cobalt-v4l2.c
205
.format.code = MEDIA_BUS_FMT_YUYV8_1X16,
drivers/media/pci/cobalt/cobalt-v4l2.c
210
.format.code = MEDIA_BUS_FMT_RGB888_1X24,
drivers/media/pci/cobalt/cobalt-v4l2.c
720
v4l2_fill_pix_format(pix, &sd_fmt.format);
drivers/media/pci/cobalt/cobalt-v4l2.c
764
v4l2_fill_pix_format(pix, &sd_fmt.format);
drivers/media/pci/cobalt/cobalt-v4l2.c
940
v4l2_fill_mbus_format(&sd_fmt.format, pix, code);
drivers/media/pci/cx18/cx18-av-core.c
934
struct v4l2_subdev_format *format)
drivers/media/pci/cx18/cx18-av-core.c
936
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/pci/cx18/cx18-av-core.c
942
if (format->pad || fmt->code != MEDIA_BUS_FMT_FIXED)
drivers/media/pci/cx18/cx18-av-core.c
977
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/pci/cx18/cx18-controls.c
79
struct v4l2_subdev_format format = {
drivers/media/pci/cx18/cx18-controls.c
82
struct v4l2_mbus_framefmt *fmt = &format.format;
drivers/media/pci/cx18/cx18-controls.c
88
v4l2_subdev_call(cx->sd_av, pad, set_fmt, NULL, &format);
drivers/media/pci/cx18/cx18-ioctl.c
126
struct v4l2_subdev_format format = {
drivers/media/pci/cx18/cx18-ioctl.c
150
format.format.width = cx->cxhdl.width = w;
drivers/media/pci/cx18/cx18-ioctl.c
151
format.format.height = cx->cxhdl.height = h;
drivers/media/pci/cx18/cx18-ioctl.c
152
format.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/pci/cx18/cx18-ioctl.c
153
v4l2_subdev_call(cx->sd_av, pad, set_fmt, NULL, &format);
drivers/media/pci/cx23885/cx23885-video.c
108
struct v4l2_subdev_format format = {
drivers/media/pci/cx23885/cx23885-video.c
110
.format.code = MEDIA_BUS_FMT_FIXED,
drivers/media/pci/cx23885/cx23885-video.c
134
format.format.width = dev->width;
drivers/media/pci/cx23885/cx23885-video.c
135
format.format.height = dev->height;
drivers/media/pci/cx23885/cx23885-video.c
136
format.format.field = dev->field;
drivers/media/pci/cx23885/cx23885-video.c
137
call_all(dev, pad, set_fmt, NULL, &format);
drivers/media/pci/cx23885/cx23885-video.c
600
struct v4l2_subdev_format format = {
drivers/media/pci/cx23885/cx23885-video.c
621
v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
drivers/media/pci/cx23885/cx23885-video.c
622
call_all(dev, pad, set_fmt, NULL, &format);
drivers/media/pci/cx23885/cx23885-video.c
623
v4l2_fill_pix_format(&f->fmt.pix, &format.format);
drivers/media/pci/cx25821/cx25821-core.c
752
u32 format)
drivers/media/pci/cx25821/cx25821-core.c
756
format);
drivers/media/pci/cx25821/cx25821-core.c
758
dev->channels[channel_select].pixel_formats = format;
drivers/media/pci/cx25821/cx25821.h
424
u32 format);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1090
f->fmt.pix_mp = q->format;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1131
q->format = f->fmt.pix_mp;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1218
struct v4l2_mbus_framefmt *format;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1221
format = v4l2_subdev_state_get_format(state, CIO2_PAD_SINK);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1222
*format = fmt_default;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1225
format = v4l2_subdev_state_get_format(state, CIO2_PAD_SOURCE);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1226
*format = fmt_default;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1236
u32 mbus_code = fmt->format.code;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1246
fmt->format.code = formats[0].mbus_code;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1250
fmt->format.code = mbus_code;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1255
fmt->format.width = min(fmt->format.width, CIO2_IMAGE_MAX_WIDTH);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1256
fmt->format.height = min(fmt->format.height, CIO2_IMAGE_MAX_HEIGHT);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1257
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1260
*mbus = fmt->format;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1264
*mbus = fmt->format;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1315
if (source_fmt.format.width != q->format.width ||
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1316
source_fmt.format.height != q->format.height) {
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1318
q->format.width, q->format.height,
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1319
source_fmt.format.width, source_fmt.format.height);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1323
if (!cio2_find_format(&q->format.pixelformat, &source_fmt.format.code))
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1501
q->format.width = default_width;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1502
q->format.height = default_height;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1503
q->format.pixelformat = formats[0].fourcc;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1504
q->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1505
q->format.field = V4L2_FIELD_NONE;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1506
q->format.num_planes = 1;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1507
q->format.plane_fmt[0].bytesperline =
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1508
cio2_bytesperline(q->format.width);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1509
q->format.plane_fmt[0].sizeimage = q->format.plane_fmt[0].bytesperline *
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1510
q->format.height;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
362
const struct v4l2_mbus_framefmt *format;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
371
format = v4l2_subdev_state_get_format(state, CIO2_PAD_SINK);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
373
fmt = cio2_find_format(NULL, &format->code);
drivers/media/pci/intel/ipu3/ipu3-cio2.c
821
if (*num_planes && *num_planes < q->format.num_planes)
drivers/media/pci/intel/ipu3/ipu3-cio2.c
824
for (i = 0; i < q->format.num_planes; ++i) {
drivers/media/pci/intel/ipu3/ipu3-cio2.c
825
if (*num_planes && sizes[i] < q->format.plane_fmt[i].sizeimage)
drivers/media/pci/intel/ipu3/ipu3-cio2.c
827
sizes[i] = q->format.plane_fmt[i].sizeimage;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
831
*num_planes = q->format.num_planes;
drivers/media/pci/intel/ipu3/ipu3-cio2.c
962
q->format.plane_fmt[j].sizeimage);
drivers/media/pci/intel/ipu3/ipu3-cio2.h
360
struct v4l2_pix_format_mplane format;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
423
struct v4l2_mbus_framefmt format, *__format;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
443
format = *__format;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
453
if (format.width != ipu6_isys_get_frame_width(av) ||
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
454
format.height != ipu6_isys_get_frame_height(av)) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
457
ipu6_isys_get_frame_height(av), format.width,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
458
format.height);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
463
if (format.code != code) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
465
code, format.code);
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
164
struct v4l2_subdev_format *format)
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
175
if ((sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SOURCE) &&
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
177
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
179
format->format.width = clamp(format->format.width, IPU6_ISYS_MIN_WIDTH,
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
181
format->format.height = clamp(format->format.height,
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
186
if (asd->supported_codes[i] == format->format.code) {
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
191
format->format.code = code;
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
192
format->format.field = V4L2_FIELD_NONE;
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
195
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
199
*fmt = format->format;
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
201
if (!(sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SINK))
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
205
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
206
format->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
210
*fmt = format->format;
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
213
format->pad,
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
214
format->stream,
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
252
static const struct v4l2_mbus_framefmt format = {
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
265
return v4l2_subdev_set_routing_with_fmt(sd, state, routing, &format);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
1242
struct v4l2_format format = {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
1282
__ipu6_isys_vidioc_try_fmt_vid_cap(av, &format);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
1283
av->pix_fmt = format.fmt.pix;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
243
u32 *format, u32 *width, u32 *height,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
247
ipu6_isys_get_isys_format(*format, type);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
249
*format = pfmt->pixelformat;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
369
av->aq.vbq.is_multiplanar = V4L2_TYPE_IS_MULTIPLANAR(p->format.type);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
370
av->aq.vbq.is_output = V4L2_TYPE_IS_OUTPUT(p->format.type);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
372
ret = vb2_queue_change_type(&av->aq.vbq, p->format.type);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
751
struct v4l2_mbus_framefmt format;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
779
format = *v4l2_subdev_state_get_format(state, 0,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
781
bpp = ipu6_isys_mbus_code_to_bpp(format.code);
drivers/media/pci/intel/ivsc/mei_csi.c
342
struct v4l2_subdev_format *format)
drivers/media/pci/intel/ivsc/mei_csi.c
350
if (format->pad) {
drivers/media/pci/intel/ivsc/mei_csi.c
356
v4l_bound_align_image(&format->format.width, 1, 65536, 0,
drivers/media/pci/intel/ivsc/mei_csi.c
357
&format->format.height, 1, 65536, 0, 0);
drivers/media/pci/intel/ivsc/mei_csi.c
359
switch (format->format.code) {
drivers/media/pci/intel/ivsc/mei_csi.c
450
format->format.code = MEDIA_BUS_FMT_Y8_1X8;
drivers/media/pci/intel/ivsc/mei_csi.c
454
if (format->format.field == V4L2_FIELD_ANY)
drivers/media/pci/intel/ivsc/mei_csi.c
455
format->format.field = V4L2_FIELD_NONE;
drivers/media/pci/intel/ivsc/mei_csi.c
457
*sink_fmt = format->format;
drivers/media/pci/ivtv/ivtv-controls.c
55
struct v4l2_subdev_format format = {
drivers/media/pci/ivtv/ivtv-controls.c
60
format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1);
drivers/media/pci/ivtv/ivtv-controls.c
61
format.format.height = cxhdl->height;
drivers/media/pci/ivtv/ivtv-controls.c
62
format.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/pci/ivtv/ivtv-controls.c
63
v4l2_subdev_call(itv->sd_video, pad, set_fmt, NULL, &format);
drivers/media/pci/ivtv/ivtv-ioctl.c
244
dc->start.format = V4L2_DEC_START_FMT_GOP;
drivers/media/pci/ivtv/ivtv-ioctl.c
246
dc->start.format = V4L2_DEC_START_FMT_NONE;
drivers/media/pci/ivtv/ivtv-ioctl.c
571
struct v4l2_subdev_format format = {
drivers/media/pci/ivtv/ivtv-ioctl.c
591
format.format.width = fmt->fmt.pix.width;
drivers/media/pci/ivtv/ivtv-ioctl.c
592
format.format.height = h;
drivers/media/pci/ivtv/ivtv-ioctl.c
593
format.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/pci/ivtv/ivtv-ioctl.c
594
v4l2_subdev_call(itv->sd_video, pad, set_fmt, NULL, &format);
drivers/media/pci/mantis/mantis_common.h
27
#define dprintk(y, z, format, arg...) do { \
drivers/media/pci/mantis/mantis_common.h
30
printk(KERN_ERR "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
drivers/media/pci/mantis/mantis_common.h
32
printk(KERN_NOTICE "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
drivers/media/pci/mantis/mantis_common.h
34
printk(KERN_INFO "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
drivers/media/pci/mantis/mantis_common.h
36
printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
drivers/media/pci/mantis/mantis_common.h
38
printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
drivers/media/pci/mantis/mantis_common.h
41
printk(format , ##arg); \
drivers/media/pci/saa7134/saa7134-alsa.c
510
if (snd_pcm_format_width(runtime->format) == 8)
drivers/media/pci/saa7134/saa7134-alsa.c
515
if (snd_pcm_format_signed(runtime->format))
drivers/media/pci/saa7134/saa7134-alsa.c
520
if (snd_pcm_format_big_endian(runtime->format))
drivers/media/pci/saa7134/saa7134-alsa.c
555
runtime->format, runtime->channels, fmt,
drivers/media/pci/saa7134/saa7134-empress.c
104
struct v4l2_mbus_framefmt *mbus_fmt = &fmt.format;
drivers/media/pci/saa7134/saa7134-empress.c
120
struct v4l2_subdev_format format = {
drivers/media/pci/saa7134/saa7134-empress.c
124
v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
drivers/media/pci/saa7134/saa7134-empress.c
125
saa_call_all(dev, pad, set_fmt, NULL, &format);
drivers/media/pci/saa7134/saa7134-empress.c
126
v4l2_fill_pix_format(&f->fmt.pix, &format.format);
drivers/media/pci/saa7134/saa7134-empress.c
143
struct v4l2_subdev_format format = {
drivers/media/pci/saa7134/saa7134-empress.c
147
v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
drivers/media/pci/saa7134/saa7134-empress.c
148
saa_call_all(dev, pad, set_fmt, &pad_state, &format);
drivers/media/pci/saa7134/saa7134-empress.c
149
v4l2_fill_pix_format(&f->fmt.pix, &format.format);
drivers/media/pci/tw68/tw68-video.c
122
.format = VideoFormatPALBDGHI,
drivers/media/pci/tw68/tw68-video.c
134
.format = VideoFormatNTSC,
drivers/media/pci/tw68/tw68-video.c
146
.format = VideoFormatSECAM,
drivers/media/pci/tw68/tw68-video.c
158
.format = VideoFormatPALM,
drivers/media/pci/tw68/tw68-video.c
170
.format = VideoFormatPALNC,
drivers/media/pci/tw68/tw68-video.c
190
.format = VideoFormatPAL60,
drivers/media/pci/tw68/tw68-video.c
902
tw_andorb(TW68_SDT, 0x07, dev->tvnorm->format);
drivers/media/pci/tw68/tw68.h
84
u32 format;
drivers/media/pci/tw686x/tw686x-video.c
112
len = (vc->width * vc->height * vc->format->depth) >> 3;
drivers/media/pci/tw686x/tw686x-video.c
237
buf_len = (vc->width * vc->height * vc->format->depth) >> 3;
drivers/media/pci/tw686x/tw686x-video.c
428
(vc->width * vc->height * vc->format->depth) >> 3;
drivers/media/pci/tw686x/tw686x-video.c
568
(vc->width * vc->height * vc->format->depth) >> 3;
drivers/media/pci/tw686x/tw686x-video.c
630
f->fmt.pix.pixelformat = vc->format->fourcc;
drivers/media/pci/tw686x/tw686x-video.c
632
f->fmt.pix.bytesperline = (f->fmt.pix.width * vc->format->depth) / 8;
drivers/media/pci/tw686x/tw686x-video.c
643
const struct tw686x_format *format;
drivers/media/pci/tw686x/tw686x-video.c
645
format = format_by_fourcc(f->fmt.pix.pixelformat);
drivers/media/pci/tw686x/tw686x-video.c
646
if (!format) {
drivers/media/pci/tw686x/tw686x-video.c
647
format = &formats[0];
drivers/media/pci/tw686x/tw686x-video.c
648
f->fmt.pix.pixelformat = format->fourcc;
drivers/media/pci/tw686x/tw686x-video.c
661
f->fmt.pix.bytesperline = (f->fmt.pix.width * format->depth) / 8;
drivers/media/pci/tw686x/tw686x-video.c
677
vc->format = format_by_fourcc(pixelformat);
drivers/media/pci/tw686x/tw686x-video.c
722
val |= vc->format->mode << 20;
drivers/media/pci/tw686x/tw686x.h
89
const struct tw686x_format *format;
drivers/media/pci/zoran/zoran.h
138
const struct zoran_format *format; /* capture format */
drivers/media/pci/zoran/zoran.h
311
#define zrdev_dbg(zr, format, args...) \
drivers/media/pci/zoran/zoran.h
312
pci_dbg((zr)->pci_dev, format, ##args) \
drivers/media/pci/zoran/zoran.h
314
#define zrdev_err(zr, format, args...) \
drivers/media/pci/zoran/zoran.h
315
pci_err((zr)->pci_dev, format, ##args) \
drivers/media/pci/zoran/zoran.h
317
#define zrdev_info(zr, format, args...) \
drivers/media/pci/zoran/zoran.h
318
pci_info((zr)->pci_dev, format, ##args) \
drivers/media/pci/zoran/zoran_card.c
958
zr->v4l_settings.format = &zoran_formats[7]; /* YUY2 - YUV-4:2:2 packed */
drivers/media/pci/zoran/zoran_card.c
960
((zr->v4l_settings.format->depth + 7) / 8);
drivers/media/pci/zoran/zoran_device.c
226
const struct zoran_format *format)
drivers/media/pci/zoran/zoran_device.c
319
reg |= format->vfespfr;
drivers/media/pci/zoran/zoran_device.c
360
zr->v4l_settings.format);
drivers/media/pci/zoran/zoran_driver.c
166
const struct zoran_format *format)
drivers/media/pci/zoran/zoran_driver.c
178
bpp = (format->depth + 7) / 8;
drivers/media/pci/zoran/zoran_driver.c
198
zr->v4l_settings.format = format;
drivers/media/pci/zoran/zoran_driver.c
321
fmt->fmt.pix.pixelformat = zr->v4l_settings.format->fourcc;
drivers/media/pci/zoran/zoran_driver.c
322
fmt->fmt.pix.colorspace = zr->v4l_settings.format->colorspace;
drivers/media/pci/zoran/zoran_driver.c
550
fmt->fmt.pix.colorspace = zr->v4l_settings.format->colorspace;
drivers/media/platform/allegro-dvt/allegro-core.c
1255
param->format = v4l2_pixelformat_to_mcu_format(channel->pixelformat);
drivers/media/platform/allegro-dvt/allegro-mail.c
102
dst[i++] = param->format;
drivers/media/platform/allegro-dvt/allegro-mail.c
348
dst[i++] = msg->format;
drivers/media/platform/allegro-dvt/allegro-mail.h
231
u32 format;
drivers/media/platform/allegro-dvt/allegro-mail.h
57
u32 format;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
107
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_RAW,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
144
struct v4l2_pix_format_mplane *pix_mp = &cap->format.pix_mp;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
145
const struct c3_isp_cap_format_info *info = cap->format.info;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
157
ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_MASK, info->format);
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
219
struct v4l2_pix_format_mplane *pix_mp = &cap->format.pix_mp;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
25
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_Y_ONLY,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
35
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_YUV420,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
430
f->fmt.pix_mp = cap->format.pix_mp;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
442
cap->format.pix_mp = f->fmt.pix_mp;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
443
cap->format.info = c3_cap_find_fmt(f->fmt.pix_mp.pixelformat);
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
45
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_YUV420,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
524
if (src_fmt.format.width != cap->format.pix_mp.width ||
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
525
src_fmt.format.height != cap->format.pix_mp.height ||
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
526
src_fmt.format.code != cap->format.info->mbus_code) {
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
531
src_fmt.format.code, src_fmt.format.width,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
532
src_fmt.format.height, cap->format.info->mbus_code,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
533
cap->format.pix_mp.width, cap->format.pix_mp.height);
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
55
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_YUV422,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
552
const struct v4l2_pix_format_mplane *pix_mp = &cap->format.pix_mp;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
590
for (unsigned int i = 0; i < cap->format.pix_mp.num_planes; i++) {
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
591
size = cap->format.pix_mp.plane_fmt[i].sizeimage;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
612
for (unsigned int i = 0; i < cap->format.pix_mp.num_planes; i++)
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
65
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_YUV422,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
753
cap->format.pix_mp.width = C3_ISP_DEFAULT_WIDTH;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
754
cap->format.pix_mp.height = C3_ISP_DEFAULT_HEIGHT;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
755
cap->format.pix_mp.field = V4L2_FIELD_NONE;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
756
cap->format.pix_mp.pixelformat = V4L2_PIX_FMT_NV12M;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
757
cap->format.pix_mp.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
758
cap->format.info =
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
759
c3_cap_find_fmt(cap->format.pix_mp.pixelformat);
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
761
c3_cap_try_fmt(&cap->format.pix_mp);
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
77
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_RAW,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
87
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_RAW,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
97
.format = ISP_WRMIFX3_0_FMT_CTRL_MODE_OUT_RAW,
drivers/media/platform/amlogic/c3/isp/c3-isp-common.h
267
} format;
drivers/media/platform/amlogic/c3/isp/c3-isp-common.h
81
u32 format;
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
393
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
399
sink_fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
401
isp_fmt = core_find_format_by_code(format->format.code, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
405
sink_fmt->code = format->format.code;
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
407
sink_fmt->width = clamp_t(u32, format->format.width,
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
409
sink_fmt->height = clamp_t(u32, format->format.height,
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
425
format->format = *sink_fmt;
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
429
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
437
src_fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
439
isp_fmt = core_find_format_by_code(format->format.code, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
443
src_fmt->code = format->format.code;
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
460
format->format = *src_fmt;
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
465
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
467
if (format->pad == C3_ISP_CORE_PAD_SINK_VIDEO)
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
468
c3_isp_core_set_sink_fmt(state, format);
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
469
else if (format->pad == C3_ISP_CORE_PAD_SOURCE_VIDEO_0 ||
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
470
format->pad == C3_ISP_CORE_PAD_SOURCE_VIDEO_1 ||
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
471
format->pad == C3_ISP_CORE_PAD_SOURCE_VIDEO_2)
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
472
c3_isp_core_set_source_fmt(state, format);
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
474
format->format =
drivers/media/platform/amlogic/c3/isp/c3-isp-core.c
475
*v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
538
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
546
sink_fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
547
sink_crop = v4l2_subdev_state_get_crop(state, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
548
sink_cmps = v4l2_subdev_state_get_compose(state, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
551
rsz_fmt = rsz_find_format_by_code(format->format.code, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
553
sink_fmt->code = format->format.code;
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
557
sink_fmt->width = clamp_t(u32, format->format.width,
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
559
sink_fmt->height = clamp_t(u32, format->format.height,
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
588
format->format = *sink_fmt;
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
592
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
599
src_fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
609
rsz_fmt = rsz_find_format_by_code(src_fmt->code, format->pad);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
620
format->format = *src_fmt;
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
625
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
627
if (format->pad == C3_ISP_RSZ_PAD_SINK)
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
628
c3_isp_rsz_set_sink_fmt(state, format);
drivers/media/platform/amlogic/c3/isp/c3-isp-resizer.c
630
c3_isp_rsz_set_source_fmt(state, format);
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
525
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
530
if (format->pad != C3_MIPI_ADAP_PAD_SINK)
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
531
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
533
pix_format = c3_mipi_adap_find_format(format->format.code);
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
537
fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
539
fmt->width = clamp_t(u32, format->format.width,
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
541
fmt->height = clamp_t(u32, format->format.height,
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
548
format->format = *fmt;
drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c
552
*fmt = format->format;
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
495
struct v4l2_subdev_format *format)
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
500
if (format->pad != C3_MIPI_CSI2_PAD_SINK)
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
501
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
503
fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
506
if (format->format.code == c3_mipi_csi_formats[i]) {
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
515
fmt->width = clamp_t(u32, format->format.width,
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
517
fmt->height = clamp_t(u32, format->format.height,
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
524
format->format = *fmt;
drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c
528
*fmt = format->format;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
298
pix_mp = &cap_dev->format.format;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
299
cap_fmt = cap_dev->format.info;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
301
if (sd_fmt.format.width != pix_mp->width ||
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
302
sd_fmt.format.height != pix_mp->height) {
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
307
sd_fmt.format.width, sd_fmt.format.height,
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
312
if (!mali_c55_mbus_code_can_produce_fmt(cap_fmt, sd_fmt.format.code)) {
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
317
sd_fmt.format.code, &pix_mp->pixelformat);
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
336
if (*num_planes != cap_dev->format.format.num_planes)
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
339
for (i = 0; i < cap_dev->format.format.num_planes; i++)
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
340
if (sizes[i] < cap_dev->format.format.plane_fmt[i].sizeimage)
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
343
*num_planes = cap_dev->format.format.num_planes;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
344
for (i = 0; i < cap_dev->format.format.num_planes; i++)
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
345
sizes[i] = cap_dev->format.format.plane_fmt[i].sizeimage;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
359
buf->planes_pending = cap_dev->format.format.num_planes;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
361
for (i = 0; i < cap_dev->format.format.num_planes; i++) {
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
362
unsigned long size = cap_dev->format.format.plane_fmt[i].sizeimage;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
381
for (i = 0; i < cap_dev->format.format.num_planes; i++)
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
416
pix_mp = &cap_dev->format.format;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
421
if (cap_dev->format.info->registers.uv_plane)
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
534
const struct mali_c55_format_info *capture_format = cap_dev->format.info;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
535
const struct v4l2_pix_format_mplane *pix_mp = &cap_dev->format.format;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
743
cap_dev->format.format = *pix_mp;
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
744
cap_dev->format.info = mali_c55_format_from_pix(pix_mp->pixelformat);
drivers/media/platform/arm/mali-c55/mali-c55-capture.c
765
f->fmt.pix_mp = cap_dev->format.format;
drivers/media/platform/arm/mali-c55/mali-c55-common.h
156
struct v4l2_pix_format_mplane format;
drivers/media/platform/arm/mali-c55/mali-c55-common.h
157
} format;
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
116
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
127
format = v4l2_subdev_state_get_format(state,
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
129
cfg = mali_c55_isp_get_mbus_config_by_code(format->code);
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
139
MALI_C55_REG_ACTIVE_WIDTH_MASK, format->width);
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
142
format->height << 16);
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
234
struct v4l2_subdev_format *format)
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
236
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
246
if (format->pad != MALI_C55_ISP_PAD_SINK_VIDEO)
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
247
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
719
struct v4l2_subdev_format *format)
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
721
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
726
sink_fmt = v4l2_subdev_state_get_format(state, format->pad, 0);
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
741
if (format->pad == MALI_C55_RSZ_SINK_BYPASS_PAD)
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
747
if (format->pad == MALI_C55_RSZ_SINK_PAD) {
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
748
rect = v4l2_subdev_state_get_crop(state, format->pad);
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
754
rect = v4l2_subdev_state_get_compose(state, format->pad);
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
763
if (active_sink == format->pad) {
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
777
struct v4l2_subdev_format *format)
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
779
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
816
struct v4l2_subdev_format *format)
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
827
if (format->pad == MALI_C55_RSZ_SINK_PAD ||
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
828
format->pad == MALI_C55_RSZ_SINK_BYPASS_PAD)
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
829
return mali_c55_rsz_set_sink_fmt(sd, state, format);
drivers/media/platform/arm/mali-c55/mali-c55-resizer.c
831
return mali_c55_rsz_set_source_fmt(sd, state, format);
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
184
struct v4l2_subdev_format *format)
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
191
fmt->code = format->format.code;
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
207
fmt->width = clamp(format->format.width, MALI_C55_MIN_WIDTH,
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
209
fmt->height = clamp(format->format.height, MALI_C55_MIN_HEIGHT,
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
212
format->format = *fmt;
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
214
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
42
struct v4l2_mbus_framefmt *format)
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
49
hts = format->width + MALI_C55_TPG_FIXED_HBLANK;
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
67
tgt_fps = MALI_C55_TPG_PIXEL_RATE / hts / (format->height + min_vblank);
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
73
/ max(rounddown(tgt_fps, 15), 5)) - format->height;
drivers/media/platform/aspeed/aspeed-video.c
1324
format_str[video->format],
drivers/media/platform/aspeed/aspeed-video.c
1331
if (video->format == VIDEO_FMT_ASPEED)
drivers/media/platform/aspeed/aspeed-video.c
1342
if (video->format == VIDEO_FMT_STANDARD) {
drivers/media/platform/aspeed/aspeed-video.c
1486
video->format = VIDEO_FMT_STANDARD;
drivers/media/platform/aspeed/aspeed-video.c
1489
video->format = VIDEO_FMT_ASPEED;
drivers/media/platform/aspeed/aspeed-video.c
2071
seq_printf(s, " %-20s:\t%s\n", "Format", format_str[v->format]);
drivers/media/platform/aspeed/aspeed-video.c
2075
if (v->format == VIDEO_FMT_ASPEED) {
drivers/media/platform/aspeed/aspeed-video.c
346
enum aspeed_video_format format;
drivers/media/platform/aspeed/aspeed-video.c
620
bool bcd_buf_need = (video->format != VIDEO_FMT_STANDARD);
drivers/media/platform/aspeed/aspeed-video.c
764
if (v->format == VIDEO_FMT_STANDARD)
drivers/media/platform/aspeed/aspeed-video.c
847
if (video->format == VIDEO_FMT_STANDARD &&
drivers/media/platform/atmel/atmel-isi.c
593
struct v4l2_subdev_format format = {
drivers/media/platform/atmel/atmel-isi.c
608
v4l2_fill_mbus_format(&format.format, pixfmt, isi_fmt->mbus_code);
drivers/media/platform/atmel/atmel-isi.c
613
&pad_state, &format);
drivers/media/platform/atmel/atmel-isi.c
617
v4l2_fill_pix_format(pixfmt, &format.format);
drivers/media/platform/atmel/atmel-isi.c
631
struct v4l2_subdev_format format = {
drivers/media/platform/atmel/atmel-isi.c
641
v4l2_fill_mbus_format(&format.format, &f->fmt.pix,
drivers/media/platform/atmel/atmel-isi.c
644
set_fmt, NULL, &format);
drivers/media/platform/broadcom/bcm2835-unicam.c
1335
struct v4l2_subdev_format *format)
drivers/media/platform/broadcom/bcm2835-unicam.c
1343
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE &&
drivers/media/platform/broadcom/bcm2835-unicam.c
1348
if (unicam_sd_pad_is_source(format->pad))
drivers/media/platform/broadcom/bcm2835-unicam.c
1349
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/broadcom/bcm2835-unicam.c
1357
format->pad, format->stream,
drivers/media/platform/broadcom/bcm2835-unicam.c
1362
fmtinfo = unicam_find_format_by_code(format->format.code, source_pad);
drivers/media/platform/broadcom/bcm2835-unicam.c
1366
format->format.code = fmtinfo->code;
drivers/media/platform/broadcom/bcm2835-unicam.c
1370
format->format.width = clamp_t(unsigned int,
drivers/media/platform/broadcom/bcm2835-unicam.c
1371
format->format.width,
drivers/media/platform/broadcom/bcm2835-unicam.c
1374
format->format.height = clamp_t(unsigned int,
drivers/media/platform/broadcom/bcm2835-unicam.c
1375
format->format.height,
drivers/media/platform/broadcom/bcm2835-unicam.c
1378
format->format.field = V4L2_FIELD_NONE;
drivers/media/platform/broadcom/bcm2835-unicam.c
1380
format->format.width = clamp_t(unsigned int,
drivers/media/platform/broadcom/bcm2835-unicam.c
1381
format->format.width,
drivers/media/platform/broadcom/bcm2835-unicam.c
1384
format->format.height = clamp_t(unsigned int,
drivers/media/platform/broadcom/bcm2835-unicam.c
1385
format->format.height,
drivers/media/platform/broadcom/bcm2835-unicam.c
1388
format->format.field = V4L2_FIELD_NONE;
drivers/media/platform/broadcom/bcm2835-unicam.c
1391
format->format.colorspace = 0;
drivers/media/platform/broadcom/bcm2835-unicam.c
1392
format->format.ycbcr_enc = 0;
drivers/media/platform/broadcom/bcm2835-unicam.c
1393
format->format.quantization = 0;
drivers/media/platform/broadcom/bcm2835-unicam.c
1394
format->format.xfer_func = 0;
drivers/media/platform/broadcom/bcm2835-unicam.c
1397
sink_format = v4l2_subdev_state_get_format(state, format->pad,
drivers/media/platform/broadcom/bcm2835-unicam.c
1398
format->stream);
drivers/media/platform/broadcom/bcm2835-unicam.c
1401
*sink_format = format->format;
drivers/media/platform/broadcom/bcm2835-unicam.c
1402
*source_format = format->format;
drivers/media/platform/broadcom/bcm2835-unicam.c
2135
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/broadcom/bcm2835-unicam.c
2141
format = v4l2_subdev_state_get_format(state, pad, 0);
drivers/media/platform/broadcom/bcm2835-unicam.c
2142
if (!format) {
drivers/media/platform/broadcom/bcm2835-unicam.c
2158
if (fmtinfo->code != format->code ||
drivers/media/platform/broadcom/bcm2835-unicam.c
2159
fmt->height != format->height ||
drivers/media/platform/broadcom/bcm2835-unicam.c
2160
fmt->width != format->width ||
drivers/media/platform/broadcom/bcm2835-unicam.c
2161
fmt->field != format->field) {
drivers/media/platform/broadcom/bcm2835-unicam.c
2166
format->width, format->height, format->code,
drivers/media/platform/broadcom/bcm2835-unicam.c
2167
v4l2_field_names[format->field]);
drivers/media/platform/broadcom/bcm2835-unicam.c
2182
if (fmtinfo->code != format->code ||
drivers/media/platform/broadcom/bcm2835-unicam.c
2183
fmt->height != format->height ||
drivers/media/platform/broadcom/bcm2835-unicam.c
2184
fmt->width != format->width) {
drivers/media/platform/broadcom/bcm2835-unicam.c
2188
format->width, format->height, format->code);
drivers/media/platform/cadence/cdns-csi2rx.c
284
fmt = csi2rx_get_fmt_by_code(sd_fmt.format.code);
drivers/media/platform/cadence/cdns-csi2rx.c
536
struct v4l2_subdev_format *format)
drivers/media/platform/cadence/cdns-csi2rx.c
542
if (format->pad != CSI2RX_PAD_SINK)
drivers/media/platform/cadence/cdns-csi2rx.c
543
return v4l2_subdev_get_fmt(subdev, state, format);
drivers/media/platform/cadence/cdns-csi2rx.c
545
if (!csi2rx_get_fmt_by_code(format->format.code))
drivers/media/platform/cadence/cdns-csi2rx.c
546
format->format.code = formats[0].code;
drivers/media/platform/cadence/cdns-csi2rx.c
548
format->format.field = V4L2_FIELD_NONE;
drivers/media/platform/cadence/cdns-csi2rx.c
551
fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/cadence/cdns-csi2rx.c
552
*fmt = format->format;
drivers/media/platform/cadence/cdns-csi2rx.c
557
*fmt = format->format;
drivers/media/platform/cadence/cdns-csi2rx.c
566
struct v4l2_subdev_format format = {
drivers/media/platform/cadence/cdns-csi2rx.c
568
.format = {
drivers/media/platform/cadence/cdns-csi2rx.c
580
return csi2rx_set_fmt(subdev, state, &format);
drivers/media/platform/cadence/cdns-csi2tx.c
188
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/cadence/cdns-csi2tx.c
194
format = __csi2tx_get_pad_format(subdev, sd_state, fmt);
drivers/media/platform/cadence/cdns-csi2tx.c
195
if (!format)
drivers/media/platform/cadence/cdns-csi2tx.c
198
fmt->format = *format;
drivers/media/platform/cadence/cdns-csi2tx.c
207
const struct v4l2_mbus_framefmt *src_format = &fmt->format;
drivers/media/platform/cadence/cdns-csi2tx.c
214
if (!csi2tx_get_fmt_from_mbus(fmt->format.code))
drivers/media/platform/intel/pxa_camera.c
1758
const struct pxa_mbus_pixelfmt *format;
drivers/media/platform/intel/pxa_camera.c
1765
format = pcdev->user_formats[f->index].host_fmt;
drivers/media/platform/intel/pxa_camera.c
1766
f->pixelformat = format->fourcc;
drivers/media/platform/intel/pxa_camera.c
1798
struct v4l2_subdev_format format = {
drivers/media/platform/intel/pxa_camera.c
1801
struct v4l2_mbus_framefmt *mf = &format.format;
drivers/media/platform/intel/pxa_camera.c
1822
ret = sensor_call(pcdev, pad, set_fmt, &pad_state, &format);
drivers/media/platform/intel/pxa_camera.c
1861
struct v4l2_subdev_format format = {
drivers/media/platform/intel/pxa_camera.c
1884
v4l2_fill_mbus_format(&format.format, pix, xlate->code);
drivers/media/platform/intel/pxa_camera.c
1885
ret = sensor_call(pcdev, pad, set_fmt, NULL, &format);
drivers/media/platform/intel/pxa_camera.c
2053
struct v4l2_subdev_format format = {
drivers/media/platform/intel/pxa_camera.c
2056
struct v4l2_mbus_framefmt *mf = &format.format;
drivers/media/platform/intel/pxa_camera.c
2094
err = sensor_call(pcdev, pad, set_fmt, NULL, &format);
drivers/media/platform/marvell/mcam-core.c
1017
struct v4l2_subdev_format format = {
drivers/media/platform/marvell/mcam-core.c
1022
v4l2_fill_mbus_format(&format.format, &cam->pix_format, cam->mbus_code);
drivers/media/platform/marvell/mcam-core.c
1025
ret = sensor_call(cam, pad, set_fmt, NULL, &format);
drivers/media/platform/marvell/mcam-core.c
1357
struct v4l2_subdev_format format = {
drivers/media/platform/marvell/mcam-core.c
1364
v4l2_fill_mbus_format(&format.format, pix, f->mbus_code);
drivers/media/platform/marvell/mcam-core.c
1365
ret = sensor_call(cam, pad, set_fmt, &pad_state, &format);
drivers/media/platform/marvell/mcam-core.c
1366
v4l2_fill_pix_format(pix, &format.format);
drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h
94
int32_t format;
drivers/media/platform/mediatek/mdp/mtk_mdp_regs.c
127
config->format = mtk_mdp_map_color_format(frame->fmt->pixelformat);
drivers/media/platform/mediatek/mdp/mtk_mdp_regs.c
96
config->format = mtk_mdp_map_color_format(frame->fmt->pixelformat);
drivers/media/platform/mediatek/mdp3/mdp_cfg_data.c
1339
.format = mt8183_formats,
drivers/media/platform/mediatek/mdp3/mdp_cfg_data.c
1356
.format = mt8195_formats,
drivers/media/platform/mediatek/mdp3/mdp_cfg_data.c
1374
.format = mt8195_formats,
drivers/media/platform/mediatek/mdp3/mtk-img-ipi.h
59
struct img_pix_format format;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
605
param->param->outputs[i].buffer.format.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
607
param->param->outputs[i].buffer.format.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
281
u32 colorformat = ctx->input->buffer.format.colorformat;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
91
u32 colorformat = ctx->input->buffer.format.colorformat;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h
97
const struct mdp_format *format;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
211
pix_mp = &ctx_get_frame(ctx, q->type)->format.fmt.pix_mp;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
239
pix_mp = &ctx_get_frame(ctx, vb->type)->format.fmt.pix_mp;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
301
*f = frame->format;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
328
frame->format = *f;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
400
s->r.width = frame->format.fmt.pix_mp.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
401
s->r.height = frame->format.fmt.pix_mp.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
410
s->r.width = frame->format.fmt.pix_mp.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c
411
s->r.height = frame->format.fmt.pix_mp.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
23
if (!(mdp_data->format[i].flags & flag))
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
246
framew = frame->format.fmt.pix_mp.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
247
frameh = frame->format.fmt.pix_mp.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
25
if (mdp_data->format[i].pixelformat == pixelformat)
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
26
return &mdp_data->format[i];
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
385
struct v4l2_pix_format_mplane *pix_mp = &frame->format.fmt.pix_mp;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
388
b->format.colorformat = frame->mdp_fmt->mdp_color;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
389
b->format.ycbcr_prof = frame->ycbcr_prof;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
39
if (!(mdp_data->format[i].flags & flag))
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
394
b->format.plane_fmt[i].stride = stride;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
395
b->format.plane_fmt[i].size =
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
400
for (; i < MDP_COLOR_GET_PLANE_COUNT(b->format.colorformat); ++i) {
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
402
b->format.plane_fmt[0].stride, i);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
404
b->format.plane_fmt[i].stride = stride;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
405
b->format.plane_fmt[i].size =
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
408
b->iova[i] = b->iova[i - 1] + b->format.plane_fmt[i - 1].size;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
416
in->buffer.format.width = frame->format.fmt.pix_mp.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
417
in->buffer.format.height = frame->format.fmt.pix_mp.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
42
return &mdp_data->format[i];
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
474
out->buffer.format.width = frame->compose.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
475
out->buffer.format.height = frame->compose.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
493
frame->format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
494
frame->mdp_fmt = mdp_try_fmt_mplane(mdp, &frame->format, param, 0);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
496
mdp_map_ycbcr_prof_mplane(&frame->format,
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
502
frame->format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
503
frame->mdp_fmt = mdp_try_fmt_mplane(mdp, &frame->format, param, 0);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
505
mdp_map_ycbcr_prof_mplane(&frame->format,
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
508
frame->crop.c.width = param->output.format.fmt.pix_mp.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
509
frame->crop.c.height = param->output.format.fmt.pix_mp.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
510
frame->compose.width = frame->format.fmt.pix_mp.width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
511
frame->compose.height = frame->format.fmt.pix_mp.height;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.h
307
struct v4l2_format format;
drivers/media/platform/microchip/microchip-csi2dc.c
190
struct v4l2_mbus_framefmt format;
drivers/media/platform/microchip/microchip-csi2dc.c
229
struct v4l2_subdev_format *format)
drivers/media/platform/microchip/microchip-csi2dc.c
234
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/platform/microchip/microchip-csi2dc.c
236
format->pad);
drivers/media/platform/microchip/microchip-csi2dc.c
237
format->format = *v4l2_try_fmt;
drivers/media/platform/microchip/microchip-csi2dc.c
242
format->format = csi2dc->format;
drivers/media/platform/microchip/microchip-csi2dc.c
265
if (req_fmt->format.code == fmt->mbus_code)
drivers/media/platform/microchip/microchip-csi2dc.c
276
req_fmt->format.code, csi2dc_formats[0].mbus_code);
drivers/media/platform/microchip/microchip-csi2dc.c
279
req_fmt->format.code = try_fmt->mbus_code;
drivers/media/platform/microchip/microchip-csi2dc.c
280
req_fmt->format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/platform/microchip/microchip-csi2dc.c
281
req_fmt->format.field = V4L2_FIELD_NONE;
drivers/media/platform/microchip/microchip-csi2dc.c
286
*v4l2_try_fmt = req_fmt->format;
drivers/media/platform/microchip/microchip-csi2dc.c
290
*v4l2_try_fmt = req_fmt->format;
drivers/media/platform/microchip/microchip-csi2dc.c
297
csi2dc->format = req_fmt->format;
drivers/media/platform/microchip/microchip-csi2dc.c
303
csi2dc->format.code, csi2dc->format.width,
drivers/media/platform/microchip/microchip-csi2dc.c
304
csi2dc->format.height);
drivers/media/platform/microchip/microchip-csi2dc.c
639
csi2dc->format.height = 480;
drivers/media/platform/microchip/microchip-csi2dc.c
640
csi2dc->format.width = 640;
drivers/media/platform/microchip/microchip-csi2dc.c
641
csi2dc->format.code = csi2dc_formats[0].mbus_code;
drivers/media/platform/microchip/microchip-csi2dc.c
642
csi2dc->format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/platform/microchip/microchip-csi2dc.c
643
csi2dc->format.field = V4L2_FIELD_NONE;
drivers/media/platform/microchip/microchip-csi2dc.c
644
csi2dc->format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/platform/microchip/microchip-csi2dc.c
645
csi2dc->format.quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/platform/microchip/microchip-csi2dc.c
646
csi2dc->format.xfer_func = V4L2_XFER_FUNC_DEFAULT;
drivers/media/platform/microchip/microchip-isc-base.c
912
struct v4l2_subdev_format format = {
drivers/media/platform/microchip/microchip-isc-base.c
919
&format);
drivers/media/platform/microchip/microchip-isc-base.c
925
if (isc->formats_list[i].mbus_code == format.format.code) {
drivers/media/platform/microchip/microchip-isc-base.c
934
format.format.code);
drivers/media/platform/microchip/microchip-isc-base.c
946
v4l_bound_align_image(&format.format.width, 16, isc->max_width, 0,
drivers/media/platform/microchip/microchip-isc-base.c
947
&format.format.height, 16, isc->max_height, 0, 0);
drivers/media/platform/microchip/microchip-isc-base.c
950
if (pixfmt->height != format.format.height ||
drivers/media/platform/microchip/microchip-isc-base.c
951
pixfmt->width != format.format.width) {
drivers/media/platform/microchip/microchip-isc-base.c
954
format.format.width, format.format.height);
drivers/media/platform/microchip/microchip-isc-scaler.c
30
struct v4l2_subdev_format *format)
drivers/media/platform/microchip/microchip-isc-scaler.c
35
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/platform/microchip/microchip-isc-scaler.c
37
format->pad);
drivers/media/platform/microchip/microchip-isc-scaler.c
38
format->format = *v4l2_try_fmt;
drivers/media/platform/microchip/microchip-isc-scaler.c
43
format->format = isc->scaler_format[format->pad];
drivers/media/platform/microchip/microchip-isc-scaler.c
59
req_fmt->format = isc->scaler_format[ISC_SCALER_PAD_SOURCE];
drivers/media/platform/microchip/microchip-isc-scaler.c
64
v4l_bound_align_image(&req_fmt->format.width, 16, UINT_MAX, 0,
drivers/media/platform/microchip/microchip-isc-scaler.c
65
&req_fmt->format.height, 16, UINT_MAX, 0, 0);
drivers/media/platform/microchip/microchip-isc-scaler.c
67
isc_scaler_prepare_fmt(&req_fmt->format);
drivers/media/platform/microchip/microchip-isc-scaler.c
69
fmt = isc_find_format_by_code(isc, req_fmt->format.code, &i);
drivers/media/platform/microchip/microchip-isc-scaler.c
74
req_fmt->format.code = fmt->mbus_code;
drivers/media/platform/microchip/microchip-isc-scaler.c
79
*v4l2_try_fmt = req_fmt->format;
drivers/media/platform/microchip/microchip-isc-scaler.c
83
*v4l2_try_fmt = req_fmt->format;
drivers/media/platform/microchip/microchip-isc-scaler.c
93
isc->scaler_format[ISC_SCALER_PAD_SINK] = req_fmt->format;
drivers/media/platform/nxp/dw100/dw100.c
437
const struct v4l2_pix_format_mplane *format;
drivers/media/platform/nxp/dw100/dw100.c
440
format = &dw100_get_q_data(ctx, vq->type)->pix_fmt;
drivers/media/platform/nxp/dw100/dw100.c
443
if (*nplanes != format->num_planes)
drivers/media/platform/nxp/dw100/dw100.c
447
if (sizes[i] < format->plane_fmt[i].sizeimage)
drivers/media/platform/nxp/dw100/dw100.c
454
*nplanes = format->num_planes;
drivers/media/platform/nxp/dw100/dw100.c
456
for (i = 0; i < format->num_planes; ++i)
drivers/media/platform/nxp/dw100/dw100.c
457
sizes[i] = format->plane_fmt[i].sizeimage;
drivers/media/platform/nxp/imx-mipi-csis.c
1015
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/nxp/imx-mipi-csis.c
1035
format = v4l2_subdev_state_get_format(state, CSIS_PAD_SINK);
drivers/media/platform/nxp/imx-mipi-csis.c
1036
csis_fmt = find_csis_format(format->code);
drivers/media/platform/nxp/imx-mipi-csis.c
1054
mipi_csis_start_stream(csis, format, csis_fmt);
drivers/media/platform/nxp/imx-mipi-csis.c
1131
csis_fmt = find_csis_format(sdformat->format.code);
drivers/media/platform/nxp/imx-mipi-csis.c
1152
v4l_bound_align_image(&sdformat->format.width, 1,
drivers/media/platform/nxp/imx-mipi-csis.c
1154
&sdformat->format.height, 1,
drivers/media/platform/nxp/imx-mipi-csis.c
1160
fmt->width = sdformat->format.width;
drivers/media/platform/nxp/imx-mipi-csis.c
1161
fmt->height = sdformat->format.height;
drivers/media/platform/nxp/imx-mipi-csis.c
1163
fmt->colorspace = sdformat->format.colorspace;
drivers/media/platform/nxp/imx-mipi-csis.c
1164
fmt->quantization = sdformat->format.quantization;
drivers/media/platform/nxp/imx-mipi-csis.c
1165
fmt->xfer_func = sdformat->format.xfer_func;
drivers/media/platform/nxp/imx-mipi-csis.c
1166
fmt->ycbcr_enc = sdformat->format.ycbcr_enc;
drivers/media/platform/nxp/imx-mipi-csis.c
1168
sdformat->format = *fmt;
drivers/media/platform/nxp/imx-mipi-csis.c
1172
*fmt = sdformat->format;
drivers/media/platform/nxp/imx-mipi-csis.c
1217
fmt.format.code = mipi_csis_formats[0].code;
drivers/media/platform/nxp/imx-mipi-csis.c
1218
fmt.format.width = MIPI_CSIS_DEF_PIX_WIDTH;
drivers/media/platform/nxp/imx-mipi-csis.c
1219
fmt.format.height = MIPI_CSIS_DEF_PIX_HEIGHT;
drivers/media/platform/nxp/imx-mipi-csis.c
1221
fmt.format.colorspace = V4L2_COLORSPACE_SMPTE170M;
drivers/media/platform/nxp/imx-mipi-csis.c
1222
fmt.format.xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(fmt.format.colorspace);
drivers/media/platform/nxp/imx-mipi-csis.c
1223
fmt.format.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt.format.colorspace);
drivers/media/platform/nxp/imx-mipi-csis.c
1224
fmt.format.quantization =
drivers/media/platform/nxp/imx-mipi-csis.c
1225
V4L2_MAP_QUANTIZATION_DEFAULT(false, fmt.format.colorspace,
drivers/media/platform/nxp/imx-mipi-csis.c
1226
fmt.format.ycbcr_enc);
drivers/media/platform/nxp/imx-mipi-csis.c
586
const struct v4l2_mbus_framefmt *format,
drivers/media/platform/nxp/imx-mipi-csis.c
617
MIPI_CSIS_ISP_RESOL_VRESOL(format->height) |
drivers/media/platform/nxp/imx-mipi-csis.c
618
MIPI_CSIS_ISP_RESOL_HRESOL(format->width));
drivers/media/platform/nxp/imx-mipi-csis.c
671
const struct v4l2_mbus_framefmt *format,
drivers/media/platform/nxp/imx-mipi-csis.c
684
__mipi_csis_set_format(csis, format, csis_fmt);
drivers/media/platform/nxp/imx-mipi-csis.c
763
const struct v4l2_mbus_framefmt *format,
drivers/media/platform/nxp/imx-mipi-csis.c
767
mipi_csis_set_params(csis, format, csis_fmt);
drivers/media/platform/nxp/imx7-media-csi.c
1426
if (csi->vdev_compose.width != fmt_src.format.width ||
drivers/media/platform/nxp/imx7-media-csi.c
1427
csi->vdev_compose.height != fmt_src.format.height)
drivers/media/platform/nxp/imx7-media-csi.c
1434
cc = imx7_csi_find_mbus_format(fmt_src.format.code);
drivers/media/platform/nxp/imx7-media-csi.c
1864
sdformat->format.width = in_fmt->width;
drivers/media/platform/nxp/imx7-media-csi.c
1865
sdformat->format.height = in_fmt->height;
drivers/media/platform/nxp/imx7-media-csi.c
1866
sdformat->format.code = in_fmt->code;
drivers/media/platform/nxp/imx7-media-csi.c
1867
sdformat->format.field = in_fmt->field;
drivers/media/platform/nxp/imx7-media-csi.c
1870
sdformat->format.colorspace = in_fmt->colorspace;
drivers/media/platform/nxp/imx7-media-csi.c
1871
sdformat->format.xfer_func = in_fmt->xfer_func;
drivers/media/platform/nxp/imx7-media-csi.c
1872
sdformat->format.quantization = in_fmt->quantization;
drivers/media/platform/nxp/imx7-media-csi.c
1873
sdformat->format.ycbcr_enc = in_fmt->ycbcr_enc;
drivers/media/platform/nxp/imx7-media-csi.c
1877
*cc = imx7_csi_find_mbus_format(sdformat->format.code);
drivers/media/platform/nxp/imx7-media-csi.c
1881
sdformat->format.code = code;
drivers/media/platform/nxp/imx7-media-csi.c
1884
if (sdformat->format.field != V4L2_FIELD_INTERLACED)
drivers/media/platform/nxp/imx7-media-csi.c
1885
sdformat->format.field = V4L2_FIELD_NONE;
drivers/media/platform/nxp/imx7-media-csi.c
1889
imx7_csi_try_colorimetry(&sdformat->format);
drivers/media/platform/nxp/imx7-media-csi.c
1901
struct v4l2_subdev_format format;
drivers/media/platform/nxp/imx7-media-csi.c
1910
*fmt = sdformat->format;
drivers/media/platform/nxp/imx7-media-csi.c
1914
format.pad = IMX7_CSI_PAD_SRC;
drivers/media/platform/nxp/imx7-media-csi.c
1915
format.which = sdformat->which;
drivers/media/platform/nxp/imx7-media-csi.c
1916
format.format = sdformat->format;
drivers/media/platform/nxp/imx7-media-csi.c
1917
imx7_csi_try_fmt(sd, sd_state, &format, &outcc);
drivers/media/platform/nxp/imx7-media-csi.c
1921
*outfmt = format.format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h
332
int mxc_isi_video_queue_setup(const struct v4l2_pix_format_mplane *format,
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h
387
const struct v4l2_pix_format_mplane *format);
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h
390
struct v4l2_pix_format_mplane *format);
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
221
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
230
format = v4l2_subdev_state_get_opposite_stream_format(state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
233
if (!format)
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
236
code->code = format->code;
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
270
if (!mxc_isi_bus_format_by_code(fmt->format.code, MXC_ISI_PIPE_PAD_SINK))
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
271
fmt->format.code = MXC_ISI_DEF_MBUS_CODE_SINK;
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
273
fmt->format.width = clamp_t(unsigned int, fmt->format.width,
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
275
fmt->format.height = clamp_t(unsigned int, fmt->format.height,
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
277
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
287
*sink_fmt = fmt->format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
303
*source_fmt = fmt->format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
384
const struct v4l2_pix_format_mplane *format)
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
386
unsigned int bpl = format->plane_fmt[0].bytesperline;
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
396
struct v4l2_pix_format_mplane *format)
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
401
dev_dbg(pipe->isi->dev, "output format %p4cc", &format->pixelformat);
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
410
format->plane_fmt[0].bytesperline);
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
135
.width = ctx->queues.out.format.width,
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
136
.height = ctx->queues.out.format.height,
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
139
.width = ctx->queues.cap.format.width,
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
140
.height = ctx->queues.cap.format.height,
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
143
.width = ctx->queues.cap.format.width,
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
144
.height = ctx->queues.cap.format.height,
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
153
&ctx->queues.out.format);
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
156
&ctx->queues.cap.format);
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
201
return mxc_isi_video_queue_setup(&qdata->format, qdata->info,
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
214
&qdata->format);
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
227
&qdata->format);
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
241
const struct v4l2_pix_format_mplane *out_pix = &ctx->queues.out.format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
242
const struct v4l2_pix_format_mplane *cap_pix = &ctx->queues.cap.format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
43
struct v4l2_pix_format_mplane format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
513
pix->width = min(pix->width, ctx->queues.out.format.width);
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
514
pix->height = min(pix->height, ctx->queues.out.format.height);
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
540
f->fmt.pix_mp = qdata->format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
564
ctx->queues.out.format = *pix;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
572
ctx->queues.cap.format = *pix;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
613
qdata->format.width = MXC_ISI_DEF_WIDTH;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
614
qdata->format.height = MXC_ISI_DEF_HEIGHT;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
615
qdata->format.pixelformat = MXC_ISI_DEF_PIXEL_FORMAT;
drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c
617
qdata->info = mxc_isi_format_try(ctx->m2m->pipe, &qdata->format, type);
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
400
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
402
format = mxc_isi_pipe_get_pad_format(pipe, state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
404
info = mxc_isi_bus_format_by_code(format->code,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
455
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
457
struct v4l2_mbus_framefmt *format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
498
format = mxc_isi_pipe_get_pad_format(pipe, state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
500
format->code = info->output;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
501
format->width = mf->width;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
502
format->height = mf->height;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
509
format = mxc_isi_pipe_get_pad_format(pipe, state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
511
info = mxc_isi_bus_format_by_code(format->code,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
536
format = mxc_isi_pipe_get_pad_format(pipe, state, fmt->pad);
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
537
*format = *mf;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
550
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
560
format = mxc_isi_pipe_get_pad_format(pipe, state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
564
sel->r.width = format->width;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
565
sel->r.height = format->height;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
609
struct v4l2_mbus_framefmt *format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
633
format = mxc_isi_pipe_get_pad_format(pipe, state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
635
format->width = sel->r.width;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
636
format->height = sel->r.height;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
645
format = mxc_isi_pipe_get_pad_format(pipe, state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
651
format->width);
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
653
format->height);
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
667
format = mxc_isi_pipe_get_pad_format(pipe, state,
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
669
format->width = sel->r.width;
drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
670
format->height = sel->r.height;
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
706
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
716
format = v4l2_subdev_state_get_format(state, MXC_ISI_PIPE_PAD_SOURCE);
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
718
if (format->code != info->mbus_code ||
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
719
format->width != video->pix.width ||
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
720
format->height != video->pix.height) {
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
723
__func__, format->code, format->width, format->height,
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
809
int mxc_isi_video_queue_setup(const struct v4l2_pix_format_mplane *format,
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
821
if (sizes[i] < format->plane_fmt[i].sizeimage)
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c
831
sizes[i] = format->plane_fmt[i].sizeimage;
drivers/media/platform/nxp/imx8mq-mipi-csi2.c
641
csi2_fmt = find_csi2_format(sdformat->format.code);
drivers/media/platform/nxp/imx8mq-mipi-csi2.c
648
fmt->width = sdformat->format.width;
drivers/media/platform/nxp/imx8mq-mipi-csi2.c
649
fmt->height = sdformat->format.height;
drivers/media/platform/nxp/imx8mq-mipi-csi2.c
651
sdformat->format = *fmt;
drivers/media/platform/nxp/imx8mq-mipi-csi2.c
655
*fmt = sdformat->format;
drivers/media/platform/qcom/camss/camss-csid-340.c
101
val |= FIELD_PREP(CSID_RDI_CFG0_DT_MASK, format->data_type);
drivers/media/platform/qcom/camss/camss-csid-340.c
109
csid->id, enable ? "enable" : "disable", format->data_type, vc);
drivers/media/platform/qcom/camss/camss-csid-340.c
80
const struct csid_format_info *format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-4-1.c
112
val |= format->data_type << dt_shift;
drivers/media/platform/qcom/camss/camss-csid-4-1.c
117
val |= format->decode_format << CAMSS_CSID_CID_n_CFG_DECODE_FORMAT_SHIFT;
drivers/media/platform/qcom/camss/camss-csid-4-1.c
54
const struct csid_format_info *format;
drivers/media/platform/qcom/camss/camss-csid-4-1.c
64
format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-4-1.c
67
num_bytes_per_line = input_format->width * format->bpp * format->spp / 8;
drivers/media/platform/qcom/camss/camss-csid-4-1.c
82
val = format->data_type;
drivers/media/platform/qcom/camss/camss-csid-4-1.c
92
format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-4-7.c
114
val |= format->data_type << dt_shift;
drivers/media/platform/qcom/camss/camss-csid-4-7.c
119
val |= format->decode_format << CAMSS_CSID_CID_n_CFG_DECODE_FORMAT_SHIFT;
drivers/media/platform/qcom/camss/camss-csid-4-7.c
55
const struct csid_format_info *format;
drivers/media/platform/qcom/camss/camss-csid-4-7.c
65
format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-4-7.c
68
num_bytes_per_line = input_format->width * format->bpp * format->spp / 8;
drivers/media/platform/qcom/camss/camss-csid-4-7.c
83
val = format->data_type;
drivers/media/platform/qcom/camss/camss-csid-4-7.c
93
format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-680.c
225
const struct csid_format_info *format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-680.c
254
val |= format->data_type << RDI_CFG0_DATA_TYPE;
drivers/media/platform/qcom/camss/camss-csid-gen2.c
210
const struct csid_format_info *format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-gen2.c
235
val = format->data_type << TPG_DT_n_CFG_1_DATA_TYPE;
drivers/media/platform/qcom/camss/camss-csid-gen2.c
240
val |= format->decode_format << TPG_DT_n_CFG_2_ENCODE_FORMAT;
drivers/media/platform/qcom/camss/camss-csid-gen2.c
260
const struct csid_format_info *format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-gen2.c
284
val |= format->data_type << RDI_CFG0_DATA_TYPE;
drivers/media/platform/qcom/camss/camss-csid-gen3.c
154
const struct csid_format_info *format = csid_get_fmt_entry(csid->res->formats->formats,
drivers/media/platform/qcom/camss/camss-csid-gen3.c
180
val |= format->data_type << RDI_CFG0_DT;
drivers/media/platform/qcom/camss/camss-csid.c
1000
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-csid.c
1005
format = __csid_get_format(csid, sd_state, i, fmt->which);
drivers/media/platform/qcom/camss/camss-csid.c
1007
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-csid.c
1008
csid_try_format(csid, sd_state, i, format, fmt->which);
drivers/media/platform/qcom/camss/camss-csid.c
1026
struct v4l2_subdev_format format = {
drivers/media/platform/qcom/camss/camss-csid.c
1030
.format = {
drivers/media/platform/qcom/camss/camss-csid.c
1037
return csid_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/qcom/camss/camss-csid.c
930
struct v4l2_mbus_framefmt format;
drivers/media/platform/qcom/camss/camss-csid.c
935
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-csid.c
936
format.width = 1;
drivers/media/platform/qcom/camss/camss-csid.c
937
format.height = 1;
drivers/media/platform/qcom/camss/camss-csid.c
938
csid_try_format(csid, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-csid.c
939
fse->min_width = format.width;
drivers/media/platform/qcom/camss/camss-csid.c
940
fse->min_height = format.height;
drivers/media/platform/qcom/camss/camss-csid.c
942
if (format.code != fse->code)
drivers/media/platform/qcom/camss/camss-csid.c
945
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-csid.c
946
format.width = -1;
drivers/media/platform/qcom/camss/camss-csid.c
947
format.height = -1;
drivers/media/platform/qcom/camss/camss-csid.c
948
csid_try_format(csid, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-csid.c
949
fse->max_width = format.width;
drivers/media/platform/qcom/camss/camss-csid.c
950
fse->max_height = format.height;
drivers/media/platform/qcom/camss/camss-csid.c
968
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-csid.c
970
format = __csid_get_format(csid, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-csid.c
971
if (format == NULL)
drivers/media/platform/qcom/camss/camss-csid.c
974
fmt->format = *format;
drivers/media/platform/qcom/camss/camss-csid.c
992
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-csid.c
995
format = __csid_get_format(csid, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-csid.c
996
if (format == NULL)
drivers/media/platform/qcom/camss/camss-csid.c
999
csid_try_format(csid, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/qcom/camss/camss-csiphy.c
415
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-csiphy.c
426
format = __csiphy_get_format(csiphy, sd_state,
drivers/media/platform/qcom/camss/camss-csiphy.c
430
code->code = format->code;
drivers/media/platform/qcom/camss/camss-csiphy.c
448
struct v4l2_mbus_framefmt format;
drivers/media/platform/qcom/camss/camss-csiphy.c
453
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-csiphy.c
454
format.width = 1;
drivers/media/platform/qcom/camss/camss-csiphy.c
455
format.height = 1;
drivers/media/platform/qcom/camss/camss-csiphy.c
456
csiphy_try_format(csiphy, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-csiphy.c
457
fse->min_width = format.width;
drivers/media/platform/qcom/camss/camss-csiphy.c
458
fse->min_height = format.height;
drivers/media/platform/qcom/camss/camss-csiphy.c
460
if (format.code != fse->code)
drivers/media/platform/qcom/camss/camss-csiphy.c
463
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-csiphy.c
464
format.width = -1;
drivers/media/platform/qcom/camss/camss-csiphy.c
465
format.height = -1;
drivers/media/platform/qcom/camss/camss-csiphy.c
466
csiphy_try_format(csiphy, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-csiphy.c
467
fse->max_width = format.width;
drivers/media/platform/qcom/camss/camss-csiphy.c
468
fse->max_height = format.height;
drivers/media/platform/qcom/camss/camss-csiphy.c
486
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-csiphy.c
488
format = __csiphy_get_format(csiphy, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-csiphy.c
489
if (format == NULL)
drivers/media/platform/qcom/camss/camss-csiphy.c
492
fmt->format = *format;
drivers/media/platform/qcom/camss/camss-csiphy.c
510
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-csiphy.c
512
format = __csiphy_get_format(csiphy, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-csiphy.c
513
if (format == NULL)
drivers/media/platform/qcom/camss/camss-csiphy.c
516
csiphy_try_format(csiphy, sd_state, fmt->pad, &fmt->format,
drivers/media/platform/qcom/camss/camss-csiphy.c
518
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-csiphy.c
522
format = __csiphy_get_format(csiphy, sd_state,
drivers/media/platform/qcom/camss/camss-csiphy.c
526
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-csiphy.c
528
format,
drivers/media/platform/qcom/camss/camss-csiphy.c
547
struct v4l2_subdev_format format = {
drivers/media/platform/qcom/camss/camss-csiphy.c
551
.format = {
drivers/media/platform/qcom/camss/camss-csiphy.c
558
return csiphy_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/qcom/camss/camss-csiphy.c
561
static bool csiphy_match_clock_name(const char *clock_name, const char *format,
drivers/media/platform/qcom/camss/camss-csiphy.c
566
snprintf(name, sizeof(name), format, index);
drivers/media/platform/qcom/camss/camss-ispif.c
1000
ispif_try_format(line, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-ispif.c
1001
fse->max_width = format.width;
drivers/media/platform/qcom/camss/camss-ispif.c
1002
fse->max_height = format.height;
drivers/media/platform/qcom/camss/camss-ispif.c
1020
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-ispif.c
1022
format = __ispif_get_format(line, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-ispif.c
1023
if (format == NULL)
drivers/media/platform/qcom/camss/camss-ispif.c
1026
fmt->format = *format;
drivers/media/platform/qcom/camss/camss-ispif.c
1044
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-ispif.c
1046
format = __ispif_get_format(line, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-ispif.c
1047
if (format == NULL)
drivers/media/platform/qcom/camss/camss-ispif.c
1050
ispif_try_format(line, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/qcom/camss/camss-ispif.c
1051
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-ispif.c
1055
format = __ispif_get_format(line, sd_state, MSM_ISPIF_PAD_SRC,
drivers/media/platform/qcom/camss/camss-ispif.c
1058
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-ispif.c
1059
ispif_try_format(line, sd_state, MSM_ISPIF_PAD_SRC, format,
drivers/media/platform/qcom/camss/camss-ispif.c
1077
struct v4l2_subdev_format format = {
drivers/media/platform/qcom/camss/camss-ispif.c
1081
.format = {
drivers/media/platform/qcom/camss/camss-ispif.c
1088
return ispif_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/qcom/camss/camss-ispif.c
949
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-ispif.c
960
format = __ispif_get_format(line, sd_state,
drivers/media/platform/qcom/camss/camss-ispif.c
964
code->code = format->code;
drivers/media/platform/qcom/camss/camss-ispif.c
982
struct v4l2_mbus_framefmt format;
drivers/media/platform/qcom/camss/camss-ispif.c
987
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-ispif.c
988
format.width = 1;
drivers/media/platform/qcom/camss/camss-ispif.c
989
format.height = 1;
drivers/media/platform/qcom/camss/camss-ispif.c
990
ispif_try_format(line, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-ispif.c
991
fse->min_width = format.width;
drivers/media/platform/qcom/camss/camss-ispif.c
992
fse->min_height = format.height;
drivers/media/platform/qcom/camss/camss-ispif.c
994
if (format.code != fse->code)
drivers/media/platform/qcom/camss/camss-ispif.c
997
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-ispif.c
998
format.width = -1;
drivers/media/platform/qcom/camss/camss-ispif.c
999
format.height = -1;
drivers/media/platform/qcom/camss/camss-vfe-4-7.c
332
static int vfe_word_per_line_by_pixel(u32 format, u32 pixel_per_line)
drivers/media/platform/qcom/camss/camss-vfe-4-7.c
336
switch (format) {
drivers/media/platform/qcom/camss/camss-vfe-4-8.c
305
static int vfe_word_per_line_by_pixel(u32 format, u32 pixel_per_line)
drivers/media/platform/qcom/camss/camss-vfe-4-8.c
309
switch (format) {
drivers/media/platform/qcom/camss/camss-vfe-gen1.c
709
int vfe_word_per_line(u32 format, u32 width)
drivers/media/platform/qcom/camss/camss-vfe-gen1.c
713
switch (format) {
drivers/media/platform/qcom/camss/camss-vfe-gen1.h
112
int vfe_word_per_line(u32 format, u32 width);
drivers/media/platform/qcom/camss/camss-vfe.c
1514
struct v4l2_mbus_framefmt format;
drivers/media/platform/qcom/camss/camss-vfe.c
1519
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-vfe.c
1520
format.width = 1;
drivers/media/platform/qcom/camss/camss-vfe.c
1521
format.height = 1;
drivers/media/platform/qcom/camss/camss-vfe.c
1522
vfe_try_format(line, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-vfe.c
1523
fse->min_width = format.width;
drivers/media/platform/qcom/camss/camss-vfe.c
1524
fse->min_height = format.height;
drivers/media/platform/qcom/camss/camss-vfe.c
1526
if (format.code != fse->code)
drivers/media/platform/qcom/camss/camss-vfe.c
1529
format.code = fse->code;
drivers/media/platform/qcom/camss/camss-vfe.c
1530
format.width = -1;
drivers/media/platform/qcom/camss/camss-vfe.c
1531
format.height = -1;
drivers/media/platform/qcom/camss/camss-vfe.c
1532
vfe_try_format(line, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/qcom/camss/camss-vfe.c
1533
fse->max_width = format.width;
drivers/media/platform/qcom/camss/camss-vfe.c
1534
fse->max_height = format.height;
drivers/media/platform/qcom/camss/camss-vfe.c
1552
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-vfe.c
1554
format = __vfe_get_format(line, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-vfe.c
1555
if (format == NULL)
drivers/media/platform/qcom/camss/camss-vfe.c
1558
fmt->format = *format;
drivers/media/platform/qcom/camss/camss-vfe.c
1580
struct v4l2_mbus_framefmt *format;
drivers/media/platform/qcom/camss/camss-vfe.c
1582
format = __vfe_get_format(line, sd_state, fmt->pad, fmt->which);
drivers/media/platform/qcom/camss/camss-vfe.c
1583
if (format == NULL)
drivers/media/platform/qcom/camss/camss-vfe.c
1586
vfe_try_format(line, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/qcom/camss/camss-vfe.c
1587
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-vfe.c
1594
format = __vfe_get_format(line, sd_state, MSM_VFE_PAD_SRC,
drivers/media/platform/qcom/camss/camss-vfe.c
1597
*format = fmt->format;
drivers/media/platform/qcom/camss/camss-vfe.c
1598
vfe_try_format(line, sd_state, MSM_VFE_PAD_SRC, format,
drivers/media/platform/qcom/camss/camss-vfe.c
1608
sel.r.width = fmt->format.width;
drivers/media/platform/qcom/camss/camss-vfe.c
1609
sel.r.height = fmt->format.height;
drivers/media/platform/qcom/camss/camss-vfe.c
1649
sel->r.width = fmt.format.width;
drivers/media/platform/qcom/camss/camss-vfe.c
1650
sel->r.height = fmt.format.height;
drivers/media/platform/qcom/camss/camss-vfe.c
1742
fmt.format.width = rect->width;
drivers/media/platform/qcom/camss/camss-vfe.c
1743
fmt.format.height = rect->height;
drivers/media/platform/qcom/camss/camss-vfe.c
1763
struct v4l2_subdev_format format = {
drivers/media/platform/qcom/camss/camss-vfe.c
1767
.format = {
drivers/media/platform/qcom/camss/camss-vfe.c
1774
return vfe_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/qcom/camss/camss-video.c
103
ret = camss_format_find_format(fmt.format.code, format->fmt.pix_mp.pixelformat,
drivers/media/platform/qcom/camss/camss-video.c
108
format->type = video->type;
drivers/media/platform/qcom/camss/camss-video.c
110
return video_mbus_to_pix_mp(&fmt.format, &format->fmt.pix_mp,
drivers/media/platform/qcom/camss/camss-video.c
123
const struct v4l2_pix_format_mplane *format =
drivers/media/platform/qcom/camss/camss-video.c
128
if (*num_planes != format->num_planes)
drivers/media/platform/qcom/camss/camss-video.c
132
if (sizes[i] < format->plane_fmt[i].sizeimage)
drivers/media/platform/qcom/camss/camss-video.c
138
*num_planes = format->num_planes;
drivers/media/platform/qcom/camss/camss-video.c
141
sizes[i] = format->plane_fmt[i].sizeimage;
drivers/media/platform/qcom/camss/camss-video.c
152
const struct v4l2_pix_format_mplane *format =
drivers/media/platform/qcom/camss/camss-video.c
157
for (i = 0; i < format->num_planes; i++) {
drivers/media/platform/qcom/camss/camss-video.c
165
if (format->pixelformat == V4L2_PIX_FMT_NV12 ||
drivers/media/platform/qcom/camss/camss-video.c
166
format->pixelformat == V4L2_PIX_FMT_NV21 ||
drivers/media/platform/qcom/camss/camss-video.c
167
format->pixelformat == V4L2_PIX_FMT_NV16 ||
drivers/media/platform/qcom/camss/camss-video.c
168
format->pixelformat == V4L2_PIX_FMT_NV61)
drivers/media/platform/qcom/camss/camss-video.c
170
format->plane_fmt[0].bytesperline *
drivers/media/platform/qcom/camss/camss-video.c
171
format->height;
drivers/media/platform/qcom/camss/camss-video.c
180
const struct v4l2_pix_format_mplane *format =
drivers/media/platform/qcom/camss/camss-video.c
184
for (i = 0; i < format->num_planes; i++) {
drivers/media/platform/qcom/camss/camss-video.c
185
if (format->plane_fmt[i].sizeimage > vb2_plane_size(vb, i))
drivers/media/platform/qcom/camss/camss-video.c
188
vb2_set_plane_payload(vb, i, format->plane_fmt[i].sizeimage);
drivers/media/platform/qcom/camss/camss-video.c
209
struct v4l2_format format;
drivers/media/platform/qcom/camss/camss-video.c
210
struct v4l2_pix_format_mplane *sd_pix = &format.fmt.pix_mp;
drivers/media/platform/qcom/camss/camss-video.c
214
ret = video_get_subdev_format(video, &format);
drivers/media/platform/qcom/camss/camss-video.c
222
pix->field != format.fmt.pix_mp.field)
drivers/media/platform/qcom/camss/camss-video.c
645
struct v4l2_format format = {
drivers/media/platform/qcom/camss/camss-video.c
654
ret = __video_try_fmt(video, &format);
drivers/media/platform/qcom/camss/camss-video.c
658
video->active_fmt = format;
drivers/media/platform/qcom/camss/camss-video.c
84
struct v4l2_format *format)
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
516
hfi->format = in->format;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
779
fmt.format = HFI_COLOR_FORMAT_NV12_UBWC;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
786
fmt.format = pixelformat == V4L2_PIX_FMT_NV12 ?
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
792
fmt.format = pixelformat == V4L2_PIX_FMT_NV12 ?
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
800
fmt.format = pixelformat == V4L2_PIX_FMT_NV12 ?
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
366
u32 format;
drivers/media/platform/qcom/venus/helpers.c
1257
fmt.format = hfi_format;
drivers/media/platform/qcom/venus/hfi_cmds.c
441
hfi->format = in->format;
drivers/media/platform/qcom/venus/hfi_cmds.c
490
fmt->format = in->format;
drivers/media/platform/qcom/venus/hfi_helper.h
1006
u32 format;
drivers/media/platform/qcom/venus/hfi_helper.h
1261
u32 format;
drivers/media/platform/qcom/venus/hfi_helper.h
784
u32 format;
drivers/media/platform/qcom/venus/hfi_helper.h
788
u32 format;
drivers/media/platform/qcom/venus/hfi_helper.h
995
u32 format;
drivers/media/platform/qcom/venus/hfi_parser.c
179
rawfmts[i].fmt = pinfo->format;
drivers/media/platform/qcom/venus/vdec.c
1485
struct v4l2_format format = {};
drivers/media/platform/qcom/venus/vdec.c
1489
format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
drivers/media/platform/qcom/venus/vdec.c
1490
format.fmt.pix_mp.pixelformat = inst->fmt_cap->pixfmt;
drivers/media/platform/qcom/venus/vdec.c
1491
format.fmt.pix_mp.width = ev_data->width;
drivers/media/platform/qcom/venus/vdec.c
1492
format.fmt.pix_mp.height = ev_data->height;
drivers/media/platform/qcom/venus/vdec.c
1494
vdec_try_fmt_common(inst, &format);
drivers/media/platform/qcom/venus/vdec.c
1496
inst->width = format.fmt.pix_mp.width;
drivers/media/platform/qcom/venus/vdec.c
1497
inst->height = format.fmt.pix_mp.height;
drivers/media/platform/qcom/venus/vdec.c
327
struct v4l2_format format;
drivers/media/platform/qcom/venus/vdec.c
348
memset(&format, 0, sizeof(format));
drivers/media/platform/qcom/venus/vdec.c
350
format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
drivers/media/platform/qcom/venus/vdec.c
351
format.fmt.pix_mp.pixelformat = pixfmt_out;
drivers/media/platform/qcom/venus/vdec.c
352
format.fmt.pix_mp.width = orig_pixmp.width;
drivers/media/platform/qcom/venus/vdec.c
353
format.fmt.pix_mp.height = orig_pixmp.height;
drivers/media/platform/qcom/venus/vdec.c
354
vdec_try_fmt_common(inst, &format);
drivers/media/platform/qcom/venus/vdec.c
357
inst->out_width = format.fmt.pix_mp.width;
drivers/media/platform/qcom/venus/vdec.c
358
inst->out_height = format.fmt.pix_mp.height;
drivers/media/platform/qcom/venus/vdec.c
366
memset(&format, 0, sizeof(format));
drivers/media/platform/qcom/venus/vdec.c
368
format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
drivers/media/platform/qcom/venus/vdec.c
369
format.fmt.pix_mp.pixelformat = pixfmt_cap;
drivers/media/platform/qcom/venus/vdec.c
370
format.fmt.pix_mp.width = orig_pixmp.width;
drivers/media/platform/qcom/venus/vdec.c
371
format.fmt.pix_mp.height = orig_pixmp.height;
drivers/media/platform/qcom/venus/vdec.c
372
vdec_try_fmt_common(inst, &format);
drivers/media/platform/qcom/venus/vdec.c
374
inst->width = format.fmt.pix_mp.width;
drivers/media/platform/qcom/venus/vdec.c
375
inst->height = format.fmt.pix_mp.height;
drivers/media/platform/qcom/venus/venc.c
243
struct v4l2_format format;
drivers/media/platform/qcom/venus/venc.c
266
memset(&format, 0, sizeof(format));
drivers/media/platform/qcom/venus/venc.c
268
format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
drivers/media/platform/qcom/venus/venc.c
269
format.fmt.pix_mp.pixelformat = pixfmt_out;
drivers/media/platform/qcom/venus/venc.c
270
format.fmt.pix_mp.width = orig_pixmp.width;
drivers/media/platform/qcom/venus/venc.c
271
format.fmt.pix_mp.height = orig_pixmp.height;
drivers/media/platform/qcom/venus/venc.c
272
venc_try_fmt_common(inst, &format);
drivers/media/platform/qcom/venus/venc.c
275
inst->out_width = format.fmt.pix_mp.width;
drivers/media/platform/qcom/venus/venc.c
276
inst->out_height = format.fmt.pix_mp.height;
drivers/media/platform/qcom/venus/venc.c
283
memset(&format, 0, sizeof(format));
drivers/media/platform/qcom/venus/venc.c
285
format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
drivers/media/platform/qcom/venus/venc.c
286
format.fmt.pix_mp.pixelformat = pixfmt_cap;
drivers/media/platform/qcom/venus/venc.c
287
format.fmt.pix_mp.width = orig_pixmp.width;
drivers/media/platform/qcom/venus/venc.c
288
format.fmt.pix_mp.height = orig_pixmp.height;
drivers/media/platform/qcom/venus/venc.c
289
venc_try_fmt_common(inst, &format);
drivers/media/platform/qcom/venus/venc.c
291
inst->width = format.fmt.pix_mp.width;
drivers/media/platform/qcom/venus/venc.c
292
inst->height = format.fmt.pix_mp.height;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1005
*f = node->format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1025
*f = node->format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1045
*f = node->format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1224
node->format = *f;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1247
node->format = *f;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1270
node->format = *f;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1371
struct v4l2_format *f = &node->format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1384
node->format = f;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1387
node->pisp_format = pispbe_find_fmt(node->format.fmt.pix_mp.pixelformat);
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1411
node->format.type = node->buf_type;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
168
struct v4l2_format format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
312
unsigned int num_planes = node->format.fmt.pix_mp.num_planes;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
325
size = node->format.fmt.pix_mp.plane_fmt[0].bytesperline *
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
326
node->format.fmt.pix_mp.height;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
705
fmt = &pispbe->node[TDN_OUTPUT_NODE].format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
723
fmt = &pispbe->node[STITCH_OUTPUT_NODE].format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
745
if (config->config.output_format[j].image.format &
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
749
fmt = &pispbe->node[OUTPUT0_NODE + j].format;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
755
if (config->config.output_format[j].image.format &
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
783
node->format.fmt.pix_mp.num_planes : 1;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
791
node->format.fmt.pix_mp.plane_fmt[i].sizeimage :
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
792
node->format.fmt.meta.buffersize;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
804
node->format.fmt.pix_mp.plane_fmt[i].sizeimage :
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
805
node->format.fmt.meta.buffersize;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
821
node->format.fmt.pix_mp.num_planes : 1;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
825
node->format.fmt.pix_mp.plane_fmt[i].sizeimage :
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
826
node->format.fmt.meta.buffersize;
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1666
p->format.type);
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1668
if (p->format.type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1669
p->format.type != V4L2_BUF_TYPE_META_CAPTURE &&
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1670
p->format.type != V4L2_BUF_TYPE_META_OUTPUT)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1673
ret = vb2_queue_change_type(vdev->queue, p->format.type);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
408
struct v4l2_subdev_format *format)
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
410
if (format->pad == CSI2_PAD_SINK) {
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
415
cfe_fmt = find_format_by_code(format->format.code);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
418
format->format.code = cfe_fmt->code;
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
423
fmt = v4l2_subdev_state_get_format(state, format->pad,
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
424
format->stream);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
428
*fmt = format->format;
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
431
format->pad,
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
432
format->stream);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
436
format->format.field = V4L2_FIELD_NONE;
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
438
*fmt = format->format;
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
447
format->pad,
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
448
format->stream);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
452
source_fmt = v4l2_subdev_state_get_format(state, format->pad,
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
453
format->stream);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
458
code = format->format.code;
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
471
format->format.code = source_fmt->code;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
238
wbytes = cfg->ch[c].output.format.width;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
239
if (cfg->ch[c].output.format.format & PISP_IMAGE_FORMAT_BPS_MASK)
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
243
if (cfg->ch[c].output.format.width < 2 ||
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
244
cfg->ch[c].output.format.height < 2 ||
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
245
cfg->ch[c].output.format.height > f->fmt.pix.height ||
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
246
cfg->ch[c].output.format.stride > f->fmt.pix.bytesperline ||
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
252
((cfg->ch[c].crop.offset_x >= (cfg->input.format.width & ~1) ||
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
253
cfg->ch[c].crop.offset_y >= cfg->input.format.height ||
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
269
(cfg->stats_crop.offset_x < (cfg->input.format.width & ~1) &&
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
270
cfg->stats_crop.offset_y < cfg->input.format.height &&
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
285
cfg->input.streaming != 1 || cfg->input.format.width < 2 ||
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
286
cfg->input.format.height < 2) {
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
344
max(0x80u, (3u * cfg->ch[0].output.format.height) >> 2);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
346
max(0x80u, (3u * cfg->ch[1].output.format.height) >> 2);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
433
struct v4l2_subdev_format *format)
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
441
switch (format->pad) {
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
443
cfe_fmt = find_format_by_code(format->format.code);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
447
format->format.code = cfe_fmt->code;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
448
format->format.field = V4L2_FIELD_NONE;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
451
*fmt = format->format;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
454
*fmt = format->format;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
457
*fmt = format->format;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
471
cfe_fmt = find_format_by_code(format->format.code);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
475
format->format.code = cfe_fmt->code;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
481
source_fmt = v4l2_subdev_state_get_format(state, format->pad);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
486
code = format->format.code;
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
504
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/renesas/rcar-csi2.c
1041
const struct rcar_csi2_format *format;
drivers/media/platform/renesas/rcar-csi2.c
1056
format = rcsi2_code_to_fmt(fmt->code);
drivers/media/platform/renesas/rcar-csi2.c
1057
if (!format)
drivers/media/platform/renesas/rcar-csi2.c
1075
VCDT_SEL_DTN_ON | VCDT_SEL_DT(format->datatype);
drivers/media/platform/renesas/rcar-csi2.c
1099
mbps = rcsi2_calc_mbps(priv, format->bpp, lanes);
drivers/media/platform/renesas/rcar-csi2.c
1481
const struct rcar_csi2_format *format;
drivers/media/platform/renesas/rcar-csi2.c
1489
format = rcsi2_code_to_fmt(fmt->code);
drivers/media/platform/renesas/rcar-csi2.c
1490
if (!format)
drivers/media/platform/renesas/rcar-csi2.c
1497
mbps = rcsi2_calc_mbps(priv, format->bpp, lanes);
drivers/media/platform/renesas/rcar-csi2.c
1738
const struct rcar_csi2_format *format;
drivers/media/platform/renesas/rcar-csi2.c
1746
format = rcsi2_code_to_fmt(fmt->code);
drivers/media/platform/renesas/rcar-csi2.c
1747
if (!format)
drivers/media/platform/renesas/rcar-csi2.c
1754
mbps = rcsi2_calc_mbps(priv, format->bpp, lanes);
drivers/media/platform/renesas/rcar-csi2.c
1880
struct v4l2_subdev_format *format)
drivers/media/platform/renesas/rcar-csi2.c
1885
if (format->pad > RCAR_CSI2_SINK)
drivers/media/platform/renesas/rcar-csi2.c
1886
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/renesas/rcar-csi2.c
1888
if (!rcsi2_code_to_fmt(format->format.code))
drivers/media/platform/renesas/rcar-csi2.c
1889
format->format.code = rcar_csi2_formats[0].code;
drivers/media/platform/renesas/rcar-csi2.c
1891
*v4l2_subdev_state_get_format(state, format->pad) = format->format;
drivers/media/platform/renesas/rcar-csi2.c
1895
*v4l2_subdev_state_get_format(state, i) = format->format;
drivers/media/platform/renesas/rcar-isp/csisp.c
223
const struct rcar_isp_format *format;
drivers/media/platform/renesas/rcar-isp/csisp.c
232
format = risp_code_to_fmt(fmt->code);
drivers/media/platform/renesas/rcar-isp/csisp.c
233
if (!format) {
drivers/media/platform/renesas/rcar-isp/csisp.c
254
u8 dt = format->datatype;
drivers/media/platform/renesas/rcar-isp/csisp.c
265
risp_write_cs(isp, ISPPROCMODE_DT_REG(format->datatype),
drivers/media/platform/renesas/rcar-isp/csisp.c
266
ISPPROCMODE_DT_PROC_MODE_VC3(format->procmode) |
drivers/media/platform/renesas/rcar-isp/csisp.c
267
ISPPROCMODE_DT_PROC_MODE_VC2(format->procmode) |
drivers/media/platform/renesas/rcar-isp/csisp.c
268
ISPPROCMODE_DT_PROC_MODE_VC1(format->procmode) |
drivers/media/platform/renesas/rcar-isp/csisp.c
269
ISPPROCMODE_DT_PROC_MODE_VC0(format->procmode));
drivers/media/platform/renesas/rcar-isp/csisp.c
338
struct v4l2_subdev_format *format)
drivers/media/platform/renesas/rcar-isp/csisp.c
342
if (format->pad > RCAR_ISP_SINK)
drivers/media/platform/renesas/rcar-isp/csisp.c
343
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/renesas/rcar-isp/csisp.c
345
if (!risp_code_to_fmt(format->format.code))
drivers/media/platform/renesas/rcar-isp/csisp.c
346
format->format.code = rcar_isp_formats[0].code;
drivers/media/platform/renesas/rcar-isp/csisp.c
350
*framefmt = format->format;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1061
capture = vin->format.field == V4L2_FIELD_NONE ||
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1062
vin->format.field == V4L2_FIELD_ALTERNATE ?
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1139
return sizes[0] < vin->format.sizeimage ? -EINVAL : 0;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1142
sizes[0] = vin->format.sizeimage;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1150
unsigned long size = vin->format.sizeimage;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1187
switch (fmt.format.code) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1195
if (vin->format.pixelformat != V4L2_PIX_FMT_SBGGR8)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1199
if (vin->format.pixelformat != V4L2_PIX_FMT_SGBRG8)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1203
if (vin->format.pixelformat != V4L2_PIX_FMT_SGRBG8)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1207
if (vin->format.pixelformat != V4L2_PIX_FMT_SRGGB8)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1211
if (vin->format.pixelformat != V4L2_PIX_FMT_GREY)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1215
if (vin->format.pixelformat != V4L2_PIX_FMT_SBGGR10)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1219
if (vin->format.pixelformat != V4L2_PIX_FMT_SGBRG10)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1223
if (vin->format.pixelformat != V4L2_PIX_FMT_SGRBG10)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1227
if (vin->format.pixelformat != V4L2_PIX_FMT_SRGGB10)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1233
vin->mbus_code = fmt.format.code;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1235
switch (fmt.format.field) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1245
switch (vin->format.field) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1255
fmt.format.height *= 2;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1268
vin->format.pixelformat == V4L2_PIX_FMT_NV12)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1274
if (vin->format.pixelformat == V4L2_PIX_FMT_NV12) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1275
if (ALIGN(fmt.format.width, 32) != vin->format.width ||
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1276
ALIGN(fmt.format.height, 32) != vin->format.height)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1279
if (fmt.format.width != vin->format.width ||
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1280
fmt.format.height != vin->format.height)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1285
if (fmt.format.code != vin->mbus_code)
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1355
vin->scratch = dma_alloc_coherent(vin->dev, vin->format.sizeimage,
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1366
dma_free_coherent(vin->dev, vin->format.sizeimage, vin->scratch,
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1427
dma_free_coherent(vin->dev, vin->format.sizeimage, vin->scratch,
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
1568
switch (vin->format.pixelformat) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
183
return !(vin->crop.width == vin->format.width &&
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
184
vin->compose.width == vin->format.width &&
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
185
vin->crop.height == vin->format.height &&
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
186
vin->compose.height == vin->format.height);
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
590
rvin_write(vin, vin->format.width - 1, VNEPPOC_REG);
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
592
if (V4L2_FIELD_HAS_BOTH(vin->format.field))
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
593
rvin_write(vin, vin->format.height / 2 - 1, VNELPOC_REG);
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
595
rvin_write(vin, vin->format.height - 1, VNELPOC_REG);
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
600
vin->crop.top, ys, xs, vin->format.width, vin->format.height,
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
642
switch (vin->format.field) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
679
fmt = rvin_format_from_pixel(vin, vin->format.pixelformat);
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
680
stride = vin->format.bytesperline / fmt->bpp;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
693
switch (vin->format.field) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
818
switch (vin->format.pixelformat) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
822
ALIGN(vin->format.bytesperline * vin->format.height,
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
824
dmr = vin->format.pixelformat == V4L2_PIX_FMT_NV12 ?
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
874
vin->format.pixelformat);
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
921
if (vin->format.field == V4L2_FIELD_ALTERNATE) {
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
928
return vin->format.field;
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
937
fmt = rvin_format_from_pixel(vin, vin->format.pixelformat);
drivers/media/platform/renesas/rcar-vin/rcar-dma.c
944
offsety = vin->compose.top * vin->format.bytesperline;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
245
f->fmt.pix = vin->format;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
356
rect->width = fmt.format.width;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
357
rect->height = fmt.format.height;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
359
if (fmt.format.field == V4L2_FIELD_ALTERNATE) {
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
360
switch (vin->format.field) {
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
398
s->r.width = vin->format.width;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
399
s->r.height = vin->format.height;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
456
max_rect.width = vin->format.width;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
457
max_rect.height = vin->format.height;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
465
while ((r.top * vin->format.bytesperline) & HW_BUFFER_MASK)
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
468
fmt = rvin_format_from_pixel(vin, vin->format.pixelformat);
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
476
vin->format.width, vin->format.height);
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
538
vin->format = f->fmt.pix;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
542
vin->crop.width = vin->format.width;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
543
vin->crop.height = vin->format.height;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
713
vin->format.pixelformat = RVIN_DEFAULT_FORMAT;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
714
vin->format.width = RVIN_DEFAULT_WIDTH;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
715
vin->format.height = RVIN_DEFAULT_HEIGHT;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
716
vin->format.field = RVIN_DEFAULT_FIELD;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
717
vin->format.colorspace = RVIN_DEFAULT_COLORSPACE;
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
719
rvin_format_align(vin, &vin->format);
drivers/media/platform/renesas/rcar-vin/rcar-vin.h
209
struct v4l2_pix_format format;
drivers/media/platform/renesas/rcar_fdp1.c
1148
if (V4L2_FIELD_HAS_BOTH(src_q_data->format.field))
drivers/media/platform/renesas/rcar_fdp1.c
1413
f->fmt.pix_mp = q_data->format;
drivers/media/platform/renesas/rcar_fdp1.c
1525
colorspace = src_data->format.colorspace;
drivers/media/platform/renesas/rcar_fdp1.c
1527
ycbcr_enc = src_data->format.ycbcr_enc;
drivers/media/platform/renesas/rcar_fdp1.c
1531
quantization = src_data->format.quantization;
drivers/media/platform/renesas/rcar_fdp1.c
1557
pix->colorspace = src_data->format.colorspace;
drivers/media/platform/renesas/rcar_fdp1.c
1558
pix->xfer_func = src_data->format.xfer_func;
drivers/media/platform/renesas/rcar_fdp1.c
1564
pix->ycbcr_enc = src_data->format.ycbcr_enc;
drivers/media/platform/renesas/rcar_fdp1.c
1565
pix->quantization = src_data->format.quantization;
drivers/media/platform/renesas/rcar_fdp1.c
1573
pix->width = src_data->format.width;
drivers/media/platform/renesas/rcar_fdp1.c
1574
if (src_data->format.field == V4L2_FIELD_ALTERNATE)
drivers/media/platform/renesas/rcar_fdp1.c
1575
pix->height = 2 * src_data->format.height;
drivers/media/platform/renesas/rcar_fdp1.c
1577
pix->height = src_data->format.height;
drivers/media/platform/renesas/rcar_fdp1.c
1612
q_data->format = *pix;
drivers/media/platform/renesas/rcar_fdp1.c
1637
dst_data->format = q_data->format;
drivers/media/platform/renesas/rcar_fdp1.c
1638
memset(dst_data->format.plane_fmt, 0,
drivers/media/platform/renesas/rcar_fdp1.c
1639
sizeof(dst_data->format.plane_fmt));
drivers/media/platform/renesas/rcar_fdp1.c
1641
dst_data->format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/rcar_fdp1.c
1643
dst_data->format.height *= 2;
drivers/media/platform/renesas/rcar_fdp1.c
1645
fdp1_try_fmt_capture(ctx, &dst_data->fmt, &dst_data->format);
drivers/media/platform/renesas/rcar_fdp1.c
1647
dst_data->vsize = dst_data->format.height;
drivers/media/platform/renesas/rcar_fdp1.c
1648
dst_data->stride_y = dst_data->format.plane_fmt[0].bytesperline;
drivers/media/platform/renesas/rcar_fdp1.c
1649
dst_data->stride_c = dst_data->format.plane_fmt[1].bytesperline;
drivers/media/platform/renesas/rcar_fdp1.c
1682
if (V4L2_FIELD_HAS_BOTH(src_q_data->format.field))
drivers/media/platform/renesas/rcar_fdp1.c
1774
*nplanes = q_data->format.num_planes;
drivers/media/platform/renesas/rcar_fdp1.c
1777
sizes[i] = q_data->format.plane_fmt[i].sizeimage;
drivers/media/platform/renesas/rcar_fdp1.c
1806
fbuf->field = (q_data->format.height < 576) == field_num
drivers/media/platform/renesas/rcar_fdp1.c
1856
switch (q_data->format.field) {
drivers/media/platform/renesas/rcar_fdp1.c
1873
if (vbuf->field != q_data->format.field)
drivers/media/platform/renesas/rcar_fdp1.c
1881
vbuf->field, q_data->format.field);
drivers/media/platform/renesas/rcar_fdp1.c
1889
for (i = 0; i < q_data->format.num_planes; i++) {
drivers/media/platform/renesas/rcar_fdp1.c
1890
unsigned long size = q_data->format.plane_fmt[i].sizeimage;
drivers/media/platform/renesas/rcar_fdp1.c
1895
i, q_data->format.num_planes,
drivers/media/platform/renesas/rcar_fdp1.c
1930
if (q_data->format.field == V4L2_FIELD_NONE)
drivers/media/platform/renesas/rcar_fdp1.c
1938
stride = round_up(q_data->format.width, 8);
drivers/media/platform/renesas/rcar_fdp1.c
2073
struct v4l2_pix_format_mplane format;
drivers/media/platform/renesas/rcar_fdp1.c
2121
memset(&format, 0, sizeof(format));
drivers/media/platform/renesas/rcar_fdp1.c
2122
fdp1_set_format(ctx, &format, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE);
drivers/media/platform/renesas/rcar_fdp1.c
475
struct v4l2_pix_format_mplane format;
drivers/media/platform/renesas/rcar_fdp1.c
817
unsigned int hsize = src_q_data->format.width;
drivers/media/platform/renesas/rcar_fdp1.c
818
unsigned int vsize = src_q_data->format.height;
drivers/media/platform/renesas/rcar_fdp1.c
885
u32 format;
drivers/media/platform/renesas/rcar_fdp1.c
891
picture_size = (q_data->format.width << FD1_RPF_SIZE_H_SHIFT)
drivers/media/platform/renesas/rcar_fdp1.c
896
if (q_data->format.num_planes > 1)
drivers/media/platform/renesas/rcar_fdp1.c
900
format = q_data->fmt->fmt;
drivers/media/platform/renesas/rcar_fdp1.c
902
format |= FD1_RPF_FORMAT_RSPYCS;
drivers/media/platform/renesas/rcar_fdp1.c
905
format |= FD1_RPF_FORMAT_RSPUVS;
drivers/media/platform/renesas/rcar_fdp1.c
908
format |= FD1_RPF_FORMAT_CF; /* Set for Bottom field */
drivers/media/platform/renesas/rcar_fdp1.c
916
format |= FD1_RPF_FORMAT_CIPM;
drivers/media/platform/renesas/rcar_fdp1.c
918
fdp1_write(fdp1, format, FD1_RPF_FORMAT);
drivers/media/platform/renesas/rcar_fdp1.c
945
u32 format;
drivers/media/platform/renesas/rcar_fdp1.c
949
pstride = q_data->format.plane_fmt[0].bytesperline
drivers/media/platform/renesas/rcar_fdp1.c
952
if (q_data->format.num_planes > 1)
drivers/media/platform/renesas/rcar_fdp1.c
953
pstride |= q_data->format.plane_fmt[1].bytesperline
drivers/media/platform/renesas/rcar_fdp1.c
956
format = q_data->fmt->fmt; /* Output Format Code */
drivers/media/platform/renesas/rcar_fdp1.c
959
format |= FD1_WPF_FORMAT_WSPYCS;
drivers/media/platform/renesas/rcar_fdp1.c
962
format |= FD1_WPF_FORMAT_WSPUVS;
drivers/media/platform/renesas/rcar_fdp1.c
966
format |= FD1_WPF_FORMAT_CSC;
drivers/media/platform/renesas/rcar_fdp1.c
969
if (src_q_data->format.ycbcr_enc == V4L2_YCBCR_ENC_709)
drivers/media/platform/renesas/rcar_fdp1.c
970
format |= FD1_WPF_FORMAT_WRTM_709_16;
drivers/media/platform/renesas/rcar_fdp1.c
971
else if (src_q_data->format.quantization ==
drivers/media/platform/renesas/rcar_fdp1.c
973
format |= FD1_WPF_FORMAT_WRTM_601_0;
drivers/media/platform/renesas/rcar_fdp1.c
975
format |= FD1_WPF_FORMAT_WRTM_601_16;
drivers/media/platform/renesas/rcar_fdp1.c
979
format |= ctx->alpha << FD1_WPF_FORMAT_PDV_SHIFT;
drivers/media/platform/renesas/rcar_fdp1.c
989
fdp1_write(fdp1, format, FD1_WPF_FORMAT);
drivers/media/platform/renesas/rcar_jpu.c
1003
unsigned int q_size = q_data->format.plane_fmt[i].sizeimage;
drivers/media/platform/renesas/rcar_jpu.c
1011
*nplanes = q_data->format.num_planes;
drivers/media/platform/renesas/rcar_jpu.c
1014
sizes[i] = q_data->format.plane_fmt[i].sizeimage;
drivers/media/platform/renesas/rcar_jpu.c
1038
for (i = 0; i < q_data->format.num_planes; i++) {
drivers/media/platform/renesas/rcar_jpu.c
1039
unsigned long size = q_data->format.plane_fmt[i].sizeimage;
drivers/media/platform/renesas/rcar_jpu.c
1078
adjust.format.width = width;
drivers/media/platform/renesas/rcar_jpu.c
1079
adjust.format.height = height;
drivers/media/platform/renesas/rcar_jpu.c
1081
__jpu_try_fmt(ctx, &adjust.fmtinfo, &adjust.format,
drivers/media/platform/renesas/rcar_jpu.c
1084
if (adjust.format.width != q_data->format.width ||
drivers/media/platform/renesas/rcar_jpu.c
1085
adjust.format.height != q_data->format.height)
drivers/media/platform/renesas/rcar_jpu.c
1125
cpu_to_be16(q_data->format.height);
drivers/media/platform/renesas/rcar_jpu.c
1127
cpu_to_be16(q_data->format.width);
drivers/media/platform/renesas/rcar_jpu.c
1226
__jpu_try_fmt(ctx, &ctx->out_q.fmtinfo, &ctx->out_q.format,
drivers/media/platform/renesas/rcar_jpu.c
1228
__jpu_try_fmt(ctx, &ctx->cap_q.fmtinfo, &ctx->cap_q.format,
drivers/media/platform/renesas/rcar_jpu.c
1360
w = q_data->format.width;
drivers/media/platform/renesas/rcar_jpu.c
1361
h = q_data->format.height;
drivers/media/platform/renesas/rcar_jpu.c
1362
bpl = q_data->format.plane_fmt[0].bytesperline;
drivers/media/platform/renesas/rcar_jpu.c
249
struct v4l2_pix_format_mplane format;
drivers/media/platform/renesas/rcar_jpu.c
853
q_data->format = f->fmt.pix_mp;
drivers/media/platform/renesas/rcar_jpu.c
865
f->fmt.pix_mp = q_data->format;
drivers/media/platform/renesas/rcar_jpu.c
911
adj.format.width = ref->format.width;
drivers/media/platform/renesas/rcar_jpu.c
912
adj.format.height = ref->format.height;
drivers/media/platform/renesas/rcar_jpu.c
914
__jpu_try_fmt(ctx, NULL, &adj.format, adj_type);
drivers/media/platform/renesas/rcar_jpu.c
916
if (adj.format.width != orig->format.width ||
drivers/media/platform/renesas/rcar_jpu.c
917
adj.format.height != orig->format.height) {
drivers/media/platform/renesas/rcar_jpu.c
999
if (*nplanes != q_data->format.num_planes)
drivers/media/platform/renesas/renesas-ceu.c
836
v4l2_fill_mbus_format_mplane(&sd_format.format, pix);
drivers/media/platform/renesas/renesas-ceu.c
843
sd_format.format.code = mbus_code;
drivers/media/platform/renesas/renesas-ceu.c
848
sd_format.format.code = mbus_code_old;
drivers/media/platform/renesas/renesas-ceu.c
858
v4l2_fill_pix_format_mplane(pix, &sd_format.format);
drivers/media/platform/renesas/renesas-ceu.c
864
*sd_mbus_code = sd_format.format.code;
drivers/media/platform/renesas/renesas-ceu.c
893
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/renesas-ceu.c
901
format.format.code = mbus_code;
drivers/media/platform/renesas/renesas-ceu.c
902
v4l2_fill_mbus_format_mplane(&format.format, &v4l2_fmt->fmt.pix_mp);
drivers/media/platform/renesas/renesas-ceu.c
903
ret = v4l2_subdev_call(v4l2_sd, pad, set_fmt, NULL, &format);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-cru.h
171
struct v4l2_pix_format format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-cru.h
185
const struct v4l2_format_info *rzg2l_cru_format_from_pixel(u32 format);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-cru.h
192
const struct rzg2l_cru_ip_format *rzg2l_cru_ip_format_to_fmt(u32 format);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-cru.h
80
u32 format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
291
const struct rzg2l_csi2_format *format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
310
format = rzg2l_csi2_code_to_fmt(fmt->code);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
314
ret = v4l2_get_link_freq(remote_pad, format->bpp, csi2->lanes * 2);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
645
fmt->format = *src_format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
651
if (!rzg2l_csi2_code_to_fmt(fmt->format.code))
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
654
sink_format->code = fmt->format.code;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
657
sink_format->colorspace = fmt->format.colorspace;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
658
sink_format->xfer_func = fmt->format.xfer_func;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
659
sink_format->ycbcr_enc = fmt->format.ycbcr_enc;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
660
sink_format->quantization = fmt->format.quantization;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
661
sink_format->width = clamp_t(u32, fmt->format.width,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
664
sink_format->height = clamp_t(u32, fmt->format.height,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
667
fmt->format = *sink_format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
681
fmt.format.width = csi2->info->min_width;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
682
fmt.format.height = csi2->info->min_height;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
683
fmt.format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
684
fmt.format.code = RZG2L_CSI2_DEFAULT_FMT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
685
fmt.format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
686
fmt.format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
687
fmt.format.quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
688
fmt.format.xfer_func = V4L2_XFER_FUNC_DEFAULT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
112
const struct rzg2l_cru_ip_format *rzg2l_cru_ip_format_to_fmt(u32 format)
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
117
if (rzg2l_cru_ip_formats[i].format == format)
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
20
.format = V4L2_PIX_FMT_UYVY,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
213
fmt->format = *src_format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
219
if (!rzg2l_cru_ip_code_to_fmt(fmt->format.code))
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
222
sink_format->code = fmt->format.code;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
225
sink_format->colorspace = fmt->format.colorspace;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
226
sink_format->xfer_func = fmt->format.xfer_func;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
227
sink_format->ycbcr_enc = fmt->format.ycbcr_enc;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
228
sink_format->quantization = fmt->format.quantization;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
229
sink_format->width = clamp_t(u32, fmt->format.width,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
231
sink_format->height = clamp_t(u32, fmt->format.height,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
234
fmt->format = *sink_format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
28
.format = V4L2_PIX_FMT_SBGGR8,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
294
fmt.format.width = RZG2L_CRU_MIN_INPUT_WIDTH;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
295
fmt.format.height = RZG2L_CRU_MIN_INPUT_HEIGHT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
296
fmt.format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
297
fmt.format.code = MEDIA_BUS_FMT_UYVY8_1X16;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
298
fmt.format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
299
fmt.format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
300
fmt.format.quantization = V4L2_QUANTIZATION_DEFAULT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
301
fmt.format.xfer_func = V4L2_XFER_FUNC_DEFAULT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
37
.format = V4L2_PIX_FMT_SGBRG8,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
46
.format = V4L2_PIX_FMT_SGRBG8,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
55
.format = V4L2_PIX_FMT_SRGGB8,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
67
.format = V4L2_PIX_FMT_RAW_CRU10,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
79
.format = V4L2_PIX_FMT_RAW_CRU12,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c
91
.format = V4L2_PIX_FMT_RAW_CRU14,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1007
f->pixelformat = fmt->format;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1130
video_fmt = rzg2l_cru_ip_format_to_fmt(cru->format.pixelformat);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1132
if (fmt.format.width != cru->format.width ||
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1133
fmt.format.height != cru->format.height ||
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1134
fmt.format.field != cru->format.field ||
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1135
!rzg2l_cru_ip_fmt_supports_mbus_code(video_fmt, fmt.format.code))
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1161
cru->format.pixelformat = RZG2L_CRU_DEFAULT_FORMAT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1162
cru->format.width = RZG2L_CRU_DEFAULT_WIDTH;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1163
cru->format.height = RZG2L_CRU_DEFAULT_HEIGHT;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1164
cru->format.field = RZG2L_CRU_DEFAULT_FIELD;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1165
cru->format.colorspace = RZG2L_CRU_DEFAULT_COLORSPACE;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
1166
rzg2l_cru_format_align(cru, &cru->format);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
140
return sizes[0] < cru->format.sizeimage ? -EINVAL : 0;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
143
sizes[0] = cru->format.sizeimage;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
151
unsigned long size = cru->format.sizeimage;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
246
u32 stride = cru->format.bytesperline;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
293
cru_video_fmt = rzg2l_cru_ip_format_to_fmt(cru->format.pixelformat);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
296
cru->format.pixelformat);
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
629
cru->queue_buf[slot]->field = cru->format.field;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
668
amnmadrs < cru->buf_addr[slot] + cru->format.sizeimage)
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
730
buf->field = cru->format.field;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
777
cru->scratch = dma_alloc_coherent(cru->dev, cru->format.sizeimage,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
800
dma_free_coherent(cru->dev, cru->format.sizeimage, cru->scratch,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
824
dma_free_coherent(cru->dev, cru->format.sizeimage,
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
983
cru->format = f->fmt.pix;
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
993
f->fmt.pix = cru->format;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-subdev.c
161
struct v4l2_subdev_format *format)
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-subdev.c
163
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-subdev.c
166
if (format->pad == RZV2H_IVC_SUBDEV_SOURCE_PAD)
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-subdev.c
167
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-subdev.c
286
pix = &ivc->format.pix;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-subdev.c
287
fmt = ivc->format.fmt;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
181
if (sizes[0] && sizes[0] < ivc->format.pix.plane_fmt[0].sizeimage)
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
187
sizes[0] = ivc->format.pix.plane_fmt[0].sizeimage;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
210
const struct rzv2h_ivc_format *fmt = ivc->format.fmt;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
211
struct v4l2_pix_format_mplane *pix = &ivc->format.pix;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
338
f->fmt.pix_mp = ivc->format.pix;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
371
ivc->format.pix = *pix;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
372
ivc->format.fmt = fmt;
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc.h
115
} format;
drivers/media/platform/renesas/sh_vou.c
690
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/sh_vou.c
693
.format.code = MEDIA_BUS_FMT_YUYV8_2X8,
drivers/media/platform/renesas/sh_vou.c
694
.format.field = V4L2_FIELD_INTERLACED,
drivers/media/platform/renesas/sh_vou.c
695
.format.colorspace = V4L2_COLORSPACE_SMPTE170M,
drivers/media/platform/renesas/sh_vou.c
697
struct v4l2_mbus_framefmt *mbfmt = &format.format;
drivers/media/platform/renesas/sh_vou.c
717
set_fmt, NULL, &format);
drivers/media/platform/renesas/sh_vou.c
932
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/sh_vou.c
935
.format.code = MEDIA_BUS_FMT_YUYV8_2X8,
drivers/media/platform/renesas/sh_vou.c
936
.format.field = V4L2_FIELD_INTERLACED,
drivers/media/platform/renesas/sh_vou.c
937
.format.colorspace = V4L2_COLORSPACE_SMPTE170M,
drivers/media/platform/renesas/sh_vou.c
978
format.format.width = geo.output.width;
drivers/media/platform/renesas/sh_vou.c
979
format.format.height = geo.output.height;
drivers/media/platform/renesas/sh_vou.c
981
set_fmt, NULL, &format);
drivers/media/platform/renesas/sh_vou.c
987
if ((unsigned)format.format.width > VOU_MAX_IMAGE_WIDTH ||
drivers/media/platform/renesas/sh_vou.c
988
(unsigned)format.format.height > img_height_max ||
drivers/media/platform/renesas/sh_vou.c
989
format.format.code != MEDIA_BUS_FMT_YUYV8_2X8)
drivers/media/platform/renesas/sh_vou.c
992
geo.output.width = format.format.width;
drivers/media/platform/renesas/sh_vou.c
993
geo.output.height = format.format.height;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
104
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
118
format = v4l2_subdev_state_get_format(sd_state,
drivers/media/platform/renesas/vsp1/vsp1_brx.c
120
fmt->code = format->code;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
122
fmt->colorspace = format->colorspace;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
123
fmt->xfer_func = format->xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
124
fmt->ycbcr_enc = format->ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
125
fmt->quantization = format->quantization;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
140
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
151
brx_try_format(brx, state, fmt->pad, &fmt->format);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
153
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
154
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
163
compose->width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
164
compose->height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
172
format = v4l2_subdev_state_get_format(state, i);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
173
format->code = fmt->format.code;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
222
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
244
format = v4l2_subdev_state_get_format(state, brx->entity.source_pad);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
245
sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
246
sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
252
format = v4l2_subdev_state_get_format(state, sel->pad);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
253
sel->r.width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
254
sel->r.height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
288
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
292
format = v4l2_subdev_state_get_format(state, brx->entity.source_pad);
drivers/media/platform/renesas/vsp1/vsp1_brx.c
305
flags = pipe->output ? pipe->output->format.flags : 0;
drivers/media/platform/renesas/vsp1/vsp1_brx.c
315
(format->width << VI6_BRU_VIRRPF_SIZE_HSIZE_SHIFT) |
drivers/media/platform/renesas/vsp1/vsp1_brx.c
316
(format->height << VI6_BRU_VIRRPF_SIZE_VSIZE_SHIFT));
drivers/media/platform/renesas/vsp1/vsp1_brx.c
347
premultiplied = brx->inputs[i].rpf->format.flags
drivers/media/platform/renesas/vsp1/vsp1_clu.c
179
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_clu.c
185
format = v4l2_subdev_state_get_format(state, CLU_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_clu.c
186
clu->yuv_mode = format->code == MEDIA_BUS_FMT_AYUV8_1X32;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
101
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
102
format.format.code);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
126
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/vsp1/vsp1_drm.c
135
format.pad = RWPF_PAD_SINK;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
136
format.format.width = input->crop.width + input->crop.left;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
137
format.format.height = input->crop.height + input->crop.top;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
138
format.format.code = rpf->fmtinfo->mbus;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
139
format.format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
140
format.format.ycbcr_enc = input->ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
141
format.format.quantization = input->quantization;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
144
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
150
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
151
format.format.code, rpf->entity.index);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
171
format.pad = RWPF_PAD_SOURCE;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
174
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
180
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
181
format.format.code, rpf->entity.index);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
183
format.format.code = MEDIA_BUS_FMT_ARGB8888_1X32;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
186
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
197
format.pad = brx_input;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
200
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
205
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
206
format.format.code, BRX_NAME(pipe->brx), format.pad);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
233
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/vsp1/vsp1_drm.c
343
format.pad = brx->source_pad;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
344
format.format.width = drm_pipe->width;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
345
format.format.height = drm_pipe->height;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
346
format.format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
349
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
354
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
355
format.format.code, BRX_NAME(brx), brx->source_pad);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
357
if (format.format.width != drm_pipe->width ||
drivers/media/platform/renesas/vsp1/vsp1_drm.c
358
format.format.height != drm_pipe->height) {
drivers/media/platform/renesas/vsp1/vsp1_drm.c
489
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/vsp1/vsp1_drm.c
494
format.pad = RWPF_PAD_SINK;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
495
format.format.width = drm_pipe->width;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
496
format.format.height = drm_pipe->height;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
497
format.format.code = MEDIA_BUS_FMT_ARGB8888_1X32;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
498
format.format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
501
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
506
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
507
format.format.code, pipe->output->entity.index);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
509
format.pad = RWPF_PAD_SOURCE;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
511
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
516
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
517
format.format.code, pipe->output->entity.index);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
519
format.pad = LIF_PAD_SINK;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
521
&format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
526
__func__, format.format.width, format.format.height,
drivers/media/platform/renesas/vsp1/vsp1_drm.c
527
format.format.code, pipe->lif->index);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
533
if (format.format.width != drm_pipe->width ||
drivers/media/platform/renesas/vsp1/vsp1_drm.c
534
format.format.height != drm_pipe->height ||
drivers/media/platform/renesas/vsp1/vsp1_drm.c
535
format.format.code != MEDIA_BUS_FMT_ARGB8888_1X32) {
drivers/media/platform/renesas/vsp1/vsp1_drm.c
611
rwpf->format.num_planes = fmtinfo->planes;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
612
rwpf->format.plane_fmt[0].bytesperline = pitch;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
613
rwpf->format.plane_fmt[1].bytesperline = pitch / chroma_hsub;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
70
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/vsp1/vsp1_drm.c
877
rpf->format.flags = cfg->premult ? V4L2_PIX_FMT_FLAG_PREMUL_ALPHA : 0;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
88
format.pad = prev_pad;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
90
ret = v4l2_subdev_call(&prev->subdev, pad, get_fmt, NULL, &format);
drivers/media/platform/renesas/vsp1/vsp1_drm.c
94
format.pad = UIF_PAD_SINK;
drivers/media/platform/renesas/vsp1/vsp1_drm.c
96
ret = v4l2_subdev_call(&uif->subdev, pad, set_fmt, NULL, &format);
drivers/media/platform/renesas/vsp1/vsp1_entity.c
107
void vsp1_entity_adjust_color_space(struct v4l2_mbus_framefmt *format)
drivers/media/platform/renesas/vsp1/vsp1_entity.c
109
u8 xfer_func = format->xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
110
u8 ycbcr_enc = format->ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
111
u8 quantization = format->quantization;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
113
vsp1_adjust_color_space(format->code, &format->colorspace, &xfer_func,
drivers/media/platform/renesas/vsp1/vsp1_entity.c
116
format->xfer_func = xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
117
format->ycbcr_enc = ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
118
format->quantization = quantization;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
173
fmt->format = *v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/platform/renesas/vsp1/vsp1_entity.c
206
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
220
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/platform/renesas/vsp1/vsp1_entity.c
221
code->code = format->code;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
251
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
258
format = v4l2_subdev_state_get_format(state, fse->pad);
drivers/media/platform/renesas/vsp1/vsp1_entity.c
262
if (fse->index || fse->code != format->code) {
drivers/media/platform/renesas/vsp1/vsp1_entity.c
277
fse->min_width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
278
fse->max_width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
279
fse->min_height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
280
fse->max_height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
315
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
328
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/platform/renesas/vsp1/vsp1_entity.c
332
fmt->format = *format;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
341
if (fmt->format.code == codes[i])
drivers/media/platform/renesas/vsp1/vsp1_entity.c
345
format->code = i < ncodes ? codes[i] : codes[0];
drivers/media/platform/renesas/vsp1/vsp1_entity.c
346
format->width = clamp_t(unsigned int, fmt->format.width,
drivers/media/platform/renesas/vsp1/vsp1_entity.c
348
format->height = clamp_t(unsigned int, fmt->format.height,
drivers/media/platform/renesas/vsp1/vsp1_entity.c
350
format->field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
352
format->colorspace = fmt->format.colorspace;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
353
format->xfer_func = fmt->format.xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
354
format->ycbcr_enc = fmt->format.ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
355
format->quantization = fmt->format.quantization;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
357
vsp1_entity_adjust_color_space(format);
drivers/media/platform/renesas/vsp1/vsp1_entity.c
359
fmt->format = *format;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
362
format = v4l2_subdev_state_get_format(state, entity->source_pad);
drivers/media/platform/renesas/vsp1/vsp1_entity.c
363
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
369
selection->width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
370
selection->height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
375
selection->width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
376
selection->height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_entity.c
390
struct v4l2_subdev_format format = {
drivers/media/platform/renesas/vsp1/vsp1_entity.c
396
v4l2_subdev_call(subdev, pad, set_fmt, sd_state, &format);
drivers/media/platform/renesas/vsp1/vsp1_entity.h
174
void vsp1_entity_adjust_color_space(struct v4l2_mbus_framefmt *format);
drivers/media/platform/renesas/vsp1/vsp1_histo.c
201
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
228
format = v4l2_subdev_state_get_format(state, HISTO_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_histo.c
231
sel->r.width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
232
sel->r.height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
257
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
260
format = v4l2_subdev_state_get_format(sd_state, HISTO_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_histo.c
261
sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
drivers/media/platform/renesas/vsp1/vsp1_histo.c
262
sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
drivers/media/platform/renesas/vsp1/vsp1_histo.c
264
format->width - sel->r.left);
drivers/media/platform/renesas/vsp1/vsp1_histo.c
266
format->height - sel->r.top);
drivers/media/platform/renesas/vsp1/vsp1_histo.c
360
fmt->format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
361
fmt->format.width = 0;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
362
fmt->format.height = 0;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
363
fmt->format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
364
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
424
struct v4l2_format *format)
drivers/media/platform/renesas/vsp1/vsp1_histo.c
428
struct v4l2_meta_format *meta = &format->fmt.meta;
drivers/media/platform/renesas/vsp1/vsp1_histo.c
430
if (format->type != histo->queue.type)
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
101
format->colorspace = fmt->format.colorspace;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
102
format->xfer_func = fmt->format.xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
103
format->ycbcr_enc = fmt->format.ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
104
format->quantization = fmt->format.quantization;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
106
vsp1_entity_adjust_color_space(format);
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
108
fmt->format = *format;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
111
format = v4l2_subdev_state_get_format(state, HSIT_PAD_SOURCE);
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
112
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
113
format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
116
vsp1_entity_adjust_color_space(format);
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
71
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
82
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
89
fmt->format = *format;
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
93
format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
95
format->width = clamp_t(unsigned int, fmt->format.width,
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
97
format->height = clamp_t(unsigned int, fmt->format.height,
drivers/media/platform/renesas/vsp1/vsp1_hsit.c
99
format->field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_lif.c
103
obth = min(128U, (format->width + 1) / 2 * format->height - 4);
drivers/media/platform/renesas/vsp1/vsp1_lif.c
130
(format->code == 0 ? VI6_LIF_CTRL_CFMT : 0) |
drivers/media/platform/renesas/vsp1/vsp1_lif.c
91
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_lif.c
97
format = v4l2_subdev_state_get_format(state, LIF_PAD_SOURCE);
drivers/media/platform/renesas/vsp1/vsp1_pipe.c
657
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_pipe.c
665
format = v4l2_subdev_state_get_format(pipe->output->entity.state,
drivers/media/platform/renesas/vsp1/vsp1_pipe.c
672
window.height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_pipe.c
674
modulus = format->width % div_size;
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
241
bool premultiplied = format->flags
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
270
const struct v4l2_pix_format_mplane *format = &rpf->format;
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
287
offset_y = format->plane_fmt[0].bytesperline;
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
288
offset_c = format->plane_fmt[1].bytesperline;
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
322
const struct v4l2_pix_format_mplane *format = &rpf->format;
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
346
mem.addr[0] += crop.top * format->plane_fmt[0].bytesperline
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
349
if (format->num_planes > 1) {
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
350
unsigned int bpl = format->plane_fmt[1].bytesperline;
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
363
if (vsp1->info->gen >= 3 && format->num_planes == 3 &&
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
58
const struct v4l2_pix_format_mplane *format = &rpf->format;
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
67
pstride = format->plane_fmt[0].bytesperline
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
69
if (format->num_planes > 1)
drivers/media/platform/renesas/vsp1/vsp1_rpf.c
70
pstride |= format->plane_fmt[1].bytesperline
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
108
csc = (format->code == MEDIA_BUS_FMT_AYUV8_1X32) !=
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
112
format->ycbcr_enc = fmt->format.ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
113
format->quantization = fmt->format.quantization;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
115
format->ycbcr_enc = sink_format->ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
116
format->quantization = sink_format->quantization;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
119
vsp1_entity_adjust_color_space(format);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
121
fmt->format = *format;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
122
fmt->format.flags = flags;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
127
format->code = fmt->format.code;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
128
format->width = clamp_t(unsigned int, fmt->format.width,
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
130
format->height = clamp_t(unsigned int, fmt->format.height,
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
132
format->field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
134
format->colorspace = fmt->format.colorspace;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
135
format->xfer_func = fmt->format.xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
136
format->ycbcr_enc = fmt->format.ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
137
format->quantization = fmt->format.quantization;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
139
vsp1_entity_adjust_color_space(format);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
141
fmt->format = *format;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
150
crop->width = fmt->format.width;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
151
crop->height = fmt->format.height;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
155
format = v4l2_subdev_state_get_format(state, RWPF_PAD_SOURCE);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
156
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
159
format->width = fmt->format.height;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
160
format->height = fmt->format.width;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
174
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
198
format = v4l2_subdev_state_get_format(state, RWPF_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
201
sel->r.width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
202
sel->r.height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
221
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
244
format = v4l2_subdev_state_get_format(state, RWPF_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
250
if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) {
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
257
sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
258
sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
260
format->width - sel->r.left);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
262
format->height - sel->r.top);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
268
format = v4l2_subdev_state_get_format(state, RWPF_PAD_SOURCE);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
269
format->width = crop->width;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
270
format->height = crop->height;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
65
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
77
if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 &&
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
78
fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 &&
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
79
fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32)
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
80
fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
82
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
87
u16 flags = fmt->format.flags & V4L2_MBUS_FRAMEFMT_SET_CSC;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
96
fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32)
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
97
format->code = fmt->format.code;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
99
format->code = sink_format->code;
drivers/media/platform/renesas/vsp1/vsp1_rwpf.h
42
struct v4l2_pix_format_mplane format;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
128
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
135
format = v4l2_subdev_state_get_format(state, SRU_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_sru.c
139
if (fse->index || fse->code != format->code) {
drivers/media/platform/renesas/vsp1/vsp1_sru.c
150
fse->min_width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
151
fse->min_height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
152
if (format->width <= SRU_MAX_SIZE / 2 &&
drivers/media/platform/renesas/vsp1/vsp1_sru.c
153
format->height <= SRU_MAX_SIZE / 2) {
drivers/media/platform/renesas/vsp1/vsp1_sru.c
154
fse->max_width = format->width * 2;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
155
fse->max_height = format->height * 2;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
157
fse->max_width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
158
fse->max_height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
171
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
190
format = v4l2_subdev_state_get_format(sd_state, SRU_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_sru.c
191
fmt->code = format->code;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
193
fmt->colorspace = format->colorspace;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
194
fmt->xfer_func = format->xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
195
fmt->ycbcr_enc = format->ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
196
fmt->quantization = format->quantization;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
205
input_area = format->width * format->height;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
212
fmt->width = format->width * 2;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
213
fmt->height = format->height * 2;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
215
fmt->width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
216
fmt->height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
230
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
241
sru_try_format(sru, state, fmt->pad, &fmt->format);
drivers/media/platform/renesas/vsp1/vsp1_sru.c
243
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/platform/renesas/vsp1/vsp1_sru.c
244
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
248
format = v4l2_subdev_state_get_format(state, SRU_PAD_SOURCE);
drivers/media/platform/renesas/vsp1/vsp1_sru.c
249
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_sru.c
251
sru_try_format(sru, state, SRU_PAD_SOURCE, format);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
133
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
140
format = v4l2_subdev_state_get_format(state, UDS_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
144
if (fse->index || fse->code != format->code) {
drivers/media/platform/renesas/vsp1/vsp1_uds.c
155
uds_output_limits(format->width, &fse->min_width,
drivers/media/platform/renesas/vsp1/vsp1_uds.c
157
uds_output_limits(format->height, &fse->min_height,
drivers/media/platform/renesas/vsp1/vsp1_uds.c
170
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
189
format = v4l2_subdev_state_get_format(sd_state, UDS_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
190
fmt->code = format->code;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
192
fmt->colorspace = format->colorspace;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
193
fmt->xfer_func = format->xfer_func;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
194
fmt->ycbcr_enc = format->ycbcr_enc;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
195
fmt->quantization = format->quantization;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
197
uds_output_limits(format->width, &minimum, &maximum);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
199
uds_output_limits(format->height, &minimum, &maximum);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
213
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
224
uds_try_format(uds, state, fmt->pad, &fmt->format);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
226
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
227
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
231
format = v4l2_subdev_state_get_format(state, UDS_PAD_SOURCE);
drivers/media/platform/renesas/vsp1/vsp1_uds.c
232
*format = fmt->format;
drivers/media/platform/renesas/vsp1/vsp1_uds.c
234
uds_try_format(uds, state, UDS_PAD_SOURCE, format);
drivers/media/platform/renesas/vsp1/vsp1_uif.c
107
format = v4l2_subdev_state_get_format(state, UIF_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_uif.c
110
sel->r.width = format->width;
drivers/media/platform/renesas/vsp1/vsp1_uif.c
111
sel->r.height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_uif.c
134
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_uif.c
151
format = v4l2_subdev_state_get_format(state, UIF_PAD_SINK);
drivers/media/platform/renesas/vsp1/vsp1_uif.c
153
sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
drivers/media/platform/renesas/vsp1/vsp1_uif.c
154
sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
drivers/media/platform/renesas/vsp1/vsp1_uif.c
156
format->width - sel->r.left);
drivers/media/platform/renesas/vsp1/vsp1_uif.c
158
format->height - sel->r.top);
drivers/media/platform/renesas/vsp1/vsp1_uif.c
90
struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_video.c
1261
rwpf->format.pixelformat = VSP1_VIDEO_DEF_FORMAT;
drivers/media/platform/renesas/vsp1/vsp1_video.c
1262
rwpf->format.width = VSP1_VIDEO_DEF_WIDTH;
drivers/media/platform/renesas/vsp1/vsp1_video.c
1263
rwpf->format.height = VSP1_VIDEO_DEF_HEIGHT;
drivers/media/platform/renesas/vsp1/vsp1_video.c
1264
__vsp1_video_try_format(video, &rwpf->format, &rwpf->fmtinfo);
drivers/media/platform/renesas/vsp1/vsp1_video.c
613
const struct v4l2_pix_format_mplane *format = &video->rwpf->format;
drivers/media/platform/renesas/vsp1/vsp1_video.c
617
if (*nplanes != format->num_planes)
drivers/media/platform/renesas/vsp1/vsp1_video.c
621
if (sizes[i] < format->plane_fmt[i].sizeimage)
drivers/media/platform/renesas/vsp1/vsp1_video.c
626
*nplanes = format->num_planes;
drivers/media/platform/renesas/vsp1/vsp1_video.c
628
for (i = 0; i < format->num_planes; ++i)
drivers/media/platform/renesas/vsp1/vsp1_video.c
629
sizes[i] = format->plane_fmt[i].sizeimage;
drivers/media/platform/renesas/vsp1/vsp1_video.c
639
const struct v4l2_pix_format_mplane *format = &video->rwpf->format;
drivers/media/platform/renesas/vsp1/vsp1_video.c
642
if (vb->num_planes < format->num_planes)
drivers/media/platform/renesas/vsp1/vsp1_video.c
648
if (vb2_plane_size(vb, i) < format->plane_fmt[i].sizeimage)
drivers/media/platform/renesas/vsp1/vsp1_video.c
690
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/renesas/vsp1/vsp1_video.c
699
format = v4l2_subdev_state_get_format(pipe->output->entity.state,
drivers/media/platform/renesas/vsp1/vsp1_video.c
701
div_size = format->width;
drivers/media/platform/renesas/vsp1/vsp1_video.c
722
pipe->partitions = DIV_ROUND_UP(format->width, div_size);
drivers/media/platform/renesas/vsp1/vsp1_video.c
79
if (video->rwpf->fmtinfo->mbus != fmt.format.code ||
drivers/media/platform/renesas/vsp1/vsp1_video.c
80
video->rwpf->format.height != fmt.format.height ||
drivers/media/platform/renesas/vsp1/vsp1_video.c
81
video->rwpf->format.width != fmt.format.width) {
drivers/media/platform/renesas/vsp1/vsp1_video.c
84
video->rwpf->fmtinfo->mbus, video->rwpf->format.width,
drivers/media/platform/renesas/vsp1/vsp1_video.c
85
video->rwpf->format.height, fmt.format.code,
drivers/media/platform/renesas/vsp1/vsp1_video.c
86
fmt.format.width, fmt.format.height);
drivers/media/platform/renesas/vsp1/vsp1_video.c
933
vsp1_video_get_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/renesas/vsp1/vsp1_video.c
938
if (format->type != video->queue.type)
drivers/media/platform/renesas/vsp1/vsp1_video.c
942
format->fmt.pix_mp = video->rwpf->format;
drivers/media/platform/renesas/vsp1/vsp1_video.c
949
vsp1_video_try_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/renesas/vsp1/vsp1_video.c
954
if (format->type != video->queue.type)
drivers/media/platform/renesas/vsp1/vsp1_video.c
957
return __vsp1_video_try_format(video, &format->fmt.pix_mp, NULL);
drivers/media/platform/renesas/vsp1/vsp1_video.c
961
vsp1_video_set_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/renesas/vsp1/vsp1_video.c
968
if (format->type != video->queue.type)
drivers/media/platform/renesas/vsp1/vsp1_video.c
971
ret = __vsp1_video_try_format(video, &format->fmt.pix_mp, &info);
drivers/media/platform/renesas/vsp1/vsp1_video.c
982
video->rwpf->format = format->fmt.pix_mp;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
116
format.which = V4L2_SUBDEV_FORMAT_ACTIVE;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
117
format.pad = RWPF_PAD_SINK;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
118
format.format.width = width;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
119
format.format.height = height;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
120
format.format.field = V4L2_FIELD_NONE;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
121
format.format.code = rwpf->fmtinfo->mbus;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
123
return v4l2_subdev_call(&ent->subdev, pad, set_fmt, NULL, &format);
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
151
rpf0->format.plane_fmt[0].bytesperline = stride;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
152
rpf0->format.num_planes = 1;
drivers/media/platform/renesas/vsp1/vsp1_vspx.c
92
struct v4l2_subdev_format format = {};
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
255
const struct v4l2_pix_format_mplane *format = &wpf->format;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
272
format->plane_fmt[0].bytesperline);
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
273
if (format->num_planes > 1)
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
275
format->plane_fmt[1].bytesperline);
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
403
const struct v4l2_pix_format_mplane *format = &wpf->format;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
453
offset = format->width - left - width;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
455
offset = format->height - left - width;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
459
for (i = 0; i < format->num_planes; ++i) {
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
465
* format->plane_fmt[i].bytesperline;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
481
height = format->height;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
484
* format->plane_fmt[0].bytesperline;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
486
if (format->num_planes > 1) {
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
488
* format->plane_fmt[1].bytesperline;
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
495
unsigned int hoffset = max(0, (int)format->width - 16);
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
501
for (i = 0; i < format->num_planes; ++i) {
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
513
if (vsp1->info->gen >= 3 && format->num_planes == 3 &&
drivers/media/platform/rockchip/rga/rga-hw.c
182
src_info.data.format = ctx->in.fmt->hw_format;
drivers/media/platform/rockchip/rga/rga-hw.c
184
dst_info.data.format = ctx->out.fmt->hw_format;
drivers/media/platform/rockchip/rga/rga-hw.h
201
unsigned int format:4;
drivers/media/platform/rockchip/rga/rga-hw.h
310
unsigned int format:4;
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
29
struct v4l2_subdev_format *format)
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
39
if (format->pad == RKCIF_IF_PAD_SRC)
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
40
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
43
format->format.code);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
44
format->format.code = input->mbus_code;
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
46
sink = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
50
*sink = format->format;
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
53
src = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
54
format->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
61
format->pad, format->stream,
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c
1473
if (sd_fmt.format.height != cap->pix.fmt.height ||
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c
1474
sd_fmt.format.width != cap->pix.fmt.width ||
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c
1475
sd_fmt.format.code != fmt->mbus) {
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c
1480
sd_fmt.format.code, sd_fmt.format.width,
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c
1481
sd_fmt.format.height, fmt->mbus, cap->pix.fmt.width,
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
151
const struct rkisp1_mbus_info *format)
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
159
ret = rkisp1_csi_config(csi, sensor, format);
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
169
phy_mipi_dphy_get_default_config(pixel_clock, format->bus_width,
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
320
sink_fmt->code = fmt->format.code;
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
328
sink_fmt->width = clamp_t(u32, fmt->format.width,
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
331
sink_fmt->height = clamp_t(u32, fmt->format.height,
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
335
fmt->format = *sink_fmt;
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
353
const struct rkisp1_mbus_info *format;
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
392
format = rkisp1_mbus_info_get_by_code(sink_fmt->code);
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
395
ret = rkisp1_csi_start(csi, source_asd, format);
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
63
const struct rkisp1_mbus_info *format)
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
85
RKISP1_CIF_MIPI_DATA_SEL_DT(format->mipi_dt) |
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
604
struct v4l2_mbus_framefmt *format)
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
627
src_fmt->code = format->code;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
677
set_csc = format->flags & V4L2_MBUS_FRAMEFMT_SET_CSC;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
681
if (format->colorspace != V4L2_COLORSPACE_DEFAULT)
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
682
src_fmt->colorspace = format->colorspace;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
683
if (format->xfer_func != V4L2_XFER_FUNC_DEFAULT)
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
684
src_fmt->xfer_func = format->xfer_func;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
685
if (format->ycbcr_enc != V4L2_YCBCR_ENC_DEFAULT)
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
686
src_fmt->ycbcr_enc = format->ycbcr_enc;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
689
if (format->quantization != V4L2_QUANTIZATION_DEFAULT)
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
690
src_fmt->quantization = format->quantization;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
693
*format = *src_fmt;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
700
format->flags |= V4L2_MBUS_FRAMEFMT_SET_CSC;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
758
struct v4l2_mbus_framefmt *format)
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
767
sink_fmt->code = format->code;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
774
sink_fmt->width = clamp_t(u32, format->width,
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
777
sink_fmt->height = clamp_t(u32, format->height,
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
790
sink_fmt->colorspace = format->colorspace ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
793
sink_fmt->xfer_func = format->xfer_func ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
796
sink_fmt->ycbcr_enc = format->ycbcr_enc ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
798
sink_fmt->quantization = format->quantization ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
811
*format = *sink_fmt;
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
826
rkisp1_isp_set_sink_fmt(isp, sd_state, &fmt->format);
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
828
rkisp1_isp_set_src_fmt(isp, sd_state, &fmt->format);
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
830
fmt->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
411
struct v4l2_mbus_framefmt *format)
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
423
rkisp1_rsz_get_yuv_mbus_info(format->code))
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
424
src_fmt->code = format->code;
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
426
src_fmt->width = clamp_t(u32, format->width,
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
429
src_fmt->height = clamp_t(u32, format->height,
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
433
*format = *src_fmt;
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
473
struct v4l2_mbus_framefmt *format)
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
487
sink_fmt->code = format->code;
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
495
sink_fmt->width = clamp_t(u32, format->width,
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
498
sink_fmt->height = clamp_t(u32, format->height,
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
511
sink_fmt->colorspace = format->colorspace ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
514
sink_fmt->xfer_func = format->xfer_func ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
517
sink_fmt->ycbcr_enc = format->ycbcr_enc ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
519
sink_fmt->quantization = format->quantization ? :
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
532
*format = *sink_fmt;
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
553
rkisp1_rsz_set_sink_fmt(rsz, sd_state, &fmt->format);
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c
555
rkisp1_rsz_set_src_fmt(rsz, sd_state, &fmt->format);
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1134
sink_fmt.format.width = ff->f_width;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1135
sink_fmt.format.height = ff->f_height;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1136
sink_fmt.format.code = ff->fmt ? ff->fmt->mbus_code : 0;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1151
if (src_fmt.format.width != sink_fmt.format.width ||
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1152
src_fmt.format.height != sink_fmt.format.height ||
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1153
src_fmt.format.code != sink_fmt.format.code)
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1157
fimc_user_defined_mbus_fmt(src_fmt.format.code)) {
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1481
fmt->format = *mf;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1485
mf = &fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1516
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
1536
*mf = fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
768
struct v4l2_mbus_framefmt *mf = &sfmt.format;
drivers/media/platform/samsung/exynos4-is/fimc-capture.c
778
sfmt.format = *tfmt;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
688
isp->otf_input.format = OTF_INPUT_FORMAT_STRGEN_COLORBAR_BAYER;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
690
isp->otf_input.format = OTF_INPUT_FORMAT_BAYER;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
700
isp->dma1_input.format = 0;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
712
isp->dma2_input.format = 0;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
766
isp->otf_output.format = OTF_OUTPUT_FORMAT_YUV444;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
775
isp->dma1_output.format = 0;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
791
isp->dma2_output.format = 0;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
819
drc->otf_input.format = OTF_INPUT_FORMAT_YUV444;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
827
drc->dma_input.format = 0;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
842
drc->otf_output.format = OTF_OUTPUT_FORMAT_YUV444;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
858
fd->otf_input.format = OTF_INPUT_FORMAT_YUV444;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.c
866
fd->dma_input.format = 0;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.h
463
u32 format;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.h
480
u32 format;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.h
494
u32 format;
drivers/media/platform/samsung/exynos4-is/fimc-is-param.h
505
u32 format;
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
157
if (video->format == NULL)
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
160
for (i = 0; i < video->format->memplanes; i++) {
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
201
unsigned int num_planes = video->format->memplanes;
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
428
dma->format = DMA_OUTPUT_FORMAT_BAYER;
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
437
isp->video_capture.format = ifmt;
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
44
const struct fimc_fmt *fmt = isp->video_capture.format;
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
481
if (src_fmt.format.width != sink_fmt.format.width ||
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
482
src_fmt.format.height != sink_fmt.format.height ||
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
483
src_fmt.format.code != sink_fmt.format.code)
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
585
iv->format = fimc_isp_find_format(NULL, NULL, 0);
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
588
iv->pixfmt.pixelformat = iv->format->fourcc;
drivers/media/platform/samsung/exynos4-is/fimc-isp-video.c
99
video->buf_count, video->format->memplanes,
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
126
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
162
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
163
struct v4l2_mbus_framefmt *format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
175
format = v4l2_subdev_state_get_format(sd_state,
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
178
format = &isp->sink_fmt;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
181
mf->width = format->width - FIMC_ISP_CAC_MARGIN_WIDTH;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
182
mf->height = format->height - FIMC_ISP_CAC_MARGIN_HEIGHT;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
188
mf->code = format->code;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
199
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
210
*mf = fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
214
struct v4l2_subdev_format format = *fmt;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
219
format.pad = pad;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
221
&format);
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
224
*mf = format.format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
230
struct v4l2_subdev_format format = *fmt;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
234
format.pad = FIMC_ISP_SD_PAD_SRC_DMA;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
236
&format);
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
238
isp->src_fmt = format.format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
367
struct v4l2_mbus_framefmt *format;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
376
format = v4l2_subdev_state_get_format(fh->state, FIMC_ISP_SD_PAD_SINK);
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
377
*format = fmt;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
379
format = v4l2_subdev_state_get_format(fh->state,
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
383
*format = fmt;
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
385
format = v4l2_subdev_state_get_format(fh->state,
drivers/media/platform/samsung/exynos4-is/fimc-isp.c
387
*format = fmt;
drivers/media/platform/samsung/exynos4-is/fimc-isp.h
141
const struct fimc_fmt *format;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
1028
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
1033
fmt->format = *mf;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
1059
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
1083
*mf = fmt->format;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
552
struct v4l2_subdev_format *format)
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
555
struct v4l2_mbus_framefmt *mf = &format->format;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
558
if (format->pad == FLITE_SD_PAD_SINK) {
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
574
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
781
sink_fmt.format.width = ff->f_width;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
782
sink_fmt.format.height = ff->f_height;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
783
sink_fmt.format.code = fimc->inp_frame.fmt->mbus_code;
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
802
if (src_fmt.format.width != sink_fmt.format.width ||
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
803
src_fmt.format.height != sink_fmt.format.height ||
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
804
src_fmt.format.code != sink_fmt.format.code)
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
221
struct v4l2_mbus_framefmt format;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
331
struct v4l2_mbus_framefmt *mf = &state->format;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
574
return &state->format;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
590
fmt->format = *mf;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
595
csis_fmt = s5pcsis_try_format(&fmt->format);
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
598
*mf = fmt->format;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
618
fmt->format = *mf;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
848
state->format.code = s5pcsis_formats[0].code;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
849
state->format.width = S5PCSIS_DEF_PIX_WIDTH;
drivers/media/platform/samsung/exynos4-is/mipi-csis.c
850
state->format.height = S5PCSIS_DEF_PIX_HEIGHT;
drivers/media/platform/samsung/s3c-camif/camif-capture.c
1214
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/s3c-camif/camif-capture.c
1218
fmt->format = *mf;
drivers/media/platform/samsung/s3c-camif/camif-capture.c
1282
struct v4l2_mbus_framefmt *mf = &fmt->format;
drivers/media/platform/samsung/s3c-camif/camif-capture.c
1307
*mf = fmt->format;
drivers/media/platform/samsung/s3c-camif/camif-capture.c
823
if (src_fmt.format.width != camif->mbus_fmt.width ||
drivers/media/platform/samsung/s3c-camif/camif-capture.c
824
src_fmt.format.height != camif->mbus_fmt.height ||
drivers/media/platform/samsung/s3c-camif/camif-capture.c
825
src_fmt.format.code != camif->mbus_fmt.code)
drivers/media/platform/samsung/s3c-camif/camif-core.c
193
struct v4l2_subdev_format format = {
drivers/media/platform/samsung/s3c-camif/camif-core.c
224
format.pad = 0;
drivers/media/platform/samsung/s3c-camif/camif-core.c
225
ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &format);
drivers/media/platform/samsung/s3c-camif/camif-core.c
230
format.pad = CAMIF_SD_PAD_SINK;
drivers/media/platform/samsung/s3c-camif/camif-core.c
231
v4l2_subdev_call(&camif->subdev, pad, set_fmt, NULL, &format);
drivers/media/platform/samsung/s3c-camif/camif-core.c
234
format.format.width, format.format.height,
drivers/media/platform/samsung/s3c-camif/camif-core.c
235
format.format.code);
drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-exynos3250.h
35
void exynos3250_jpeg_outform_raw(void __iomem *regs, unsigned long format);
drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c
236
void s5p_jpeg_outform_raw(void __iomem *regs, unsigned long format)
drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c
241
if (format == S5P_JPEG_RAW_OUT_422)
drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c
243
else if (format == S5P_JPEG_RAW_OUT_420)
drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.h
46
void s5p_jpeg_outform_raw(void __iomem *regs, unsigned long format);
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_dec.c
942
const struct v4l2_format_info *format;
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_dec.c
959
format = v4l2_format_info(ctx->dst_fmt->fourcc);
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_dec.c
960
if (!format) {
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_dec.c
964
*plane_count = format->comp_planes;
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
745
const struct bdisp_fmt *format;
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
748
format = bdisp_find_fmt(pix->pixelformat);
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
749
if (!format) {
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
756
if ((format->pixelformat == V4L2_PIX_FMT_YUV420) &&
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
772
ffs(format->w_align) - 1,
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
775
ffs(format->h_align) - 1,
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
782
pix->bytesperline = (pix->width * format->bpp_plane0) / 8;
drivers/media/platform/st/sti/bdisp/bdisp-v4l2.c
783
pix->sizeimage = (pix->width * pix->height * format->bpp) / 8;
drivers/media/platform/st/sti/delta/delta-v4l2.c
300
static void register_format(u32 format, u32 formats[], u32 *nb_of_formats)
drivers/media/platform/st/sti/delta/delta-v4l2.c
305
if (format == formats[i])
drivers/media/platform/st/sti/delta/delta-v4l2.c
309
formats[(*nb_of_formats)++] = format;
drivers/media/platform/st/sti/hva/hva-v4l2.c
141
static void register_format(u32 format, u32 formats[], u32 *nb_of_formats)
drivers/media/platform/st/sti/hva/hva-v4l2.c
147
if (format == formats[i]) {
drivers/media/platform/st/sti/hva/hva-v4l2.c
154
formats[(*nb_of_formats)++] = format;
drivers/media/platform/st/stm32/stm32-csi.c
740
struct v4l2_subdev_format *format)
drivers/media/platform/st/stm32/stm32-csi.c
746
fmt = stm32_csi_code_to_fmt(format->format.code);
drivers/media/platform/st/stm32/stm32-csi.c
749
format->format.code);
drivers/media/platform/st/stm32/stm32-csi.c
750
format->format.code = fmt_default.code;
drivers/media/platform/st/stm32/stm32-csi.c
755
if (format->pad == STM32_CSI_PAD_SOURCE)
drivers/media/platform/st/stm32/stm32-csi.c
756
format->format = *framefmt;
drivers/media/platform/st/stm32/stm32-csi.c
758
*framefmt = format->format;
drivers/media/platform/st/stm32/stm32-csi.c
761
*framefmt = format->format;
drivers/media/platform/st/stm32/stm32-dcmi.c
1000
v4l2_fill_pix_format(pix, &format.format);
drivers/media/platform/st/stm32/stm32-dcmi.c
1042
struct v4l2_subdev_format format = {
drivers/media/platform/st/stm32/stm32-dcmi.c
1047
struct v4l2_mbus_framefmt *mf = &format.format;
drivers/media/platform/st/stm32/stm32-dcmi.c
1072
ret = dcmi_pipeline_s_fmt(dcmi, &format);
drivers/media/platform/st/stm32/stm32-dcmi.c
1132
v4l2_fill_pix_format(pix, &fmt.format);
drivers/media/platform/st/stm32/stm32-dcmi.c
1141
struct v4l2_subdev_format format = {
drivers/media/platform/st/stm32/stm32-dcmi.c
1155
v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code);
drivers/media/platform/st/stm32/stm32-dcmi.c
1156
ret = v4l2_subdev_call_state_try(dcmi->source, pad, set_fmt, &format);
drivers/media/platform/st/stm32/stm32-dcmi.c
625
struct v4l2_subdev_format *format)
drivers/media/platform/st/stm32/stm32-dcmi.c
632
struct v4l2_subdev_format fmt = *format;
drivers/media/platform/st/stm32/stm32-dcmi.c
662
subdev->name, pad->index, format->format.code,
drivers/media/platform/st/stm32/stm32-dcmi.c
663
format->format.width, format->format.height);
drivers/media/platform/st/stm32/stm32-dcmi.c
669
__func__, format->format.code,
drivers/media/platform/st/stm32/stm32-dcmi.c
670
format->format.width, format->format.height,
drivers/media/platform/st/stm32/stm32-dcmi.c
675
if (fmt.format.code != format->format.code ||
drivers/media/platform/st/stm32/stm32-dcmi.c
676
fmt.format.width != format->format.width ||
drivers/media/platform/st/stm32/stm32-dcmi.c
677
fmt.format.height != format->format.height) {
drivers/media/platform/st/stm32/stm32-dcmi.c
679
subdev->name, pad->index, fmt.format.code,
drivers/media/platform/st/stm32/stm32-dcmi.c
680
fmt.format.width, fmt.format.height);
drivers/media/platform/st/stm32/stm32-dcmi.c
690
*format = fmt;
drivers/media/platform/st/stm32/stm32-dcmi.c
961
struct v4l2_subdev_format format = {
drivers/media/platform/st/stm32/stm32-dcmi.c
994
v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code);
drivers/media/platform/st/stm32/stm32-dcmi.c
995
ret = v4l2_subdev_call_state_try(dcmi->source, pad, set_fmt, &format);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
123
struct v4l2_pix_format format;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
192
f->fmt.pix = vcap->format;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
201
struct v4l2_pix_format *format = &f->fmt.pix;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
206
vpix = dcmipp_bytecap_pix_map_by_pixelformat(format->pixelformat);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
208
format->pixelformat = fmt_default.pixelformat;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
211
in_w = format->width;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
212
in_h = format->height;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
213
v4l_bound_align_image(&format->width, DCMIPP_FRAME_MIN_WIDTH,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
214
DCMIPP_FRAME_MAX_WIDTH, 0, &format->height,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
217
if (format->width != in_w || format->height != in_h)
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
219
in_w, in_h, format->width, format->height);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
221
if (format->pixelformat == V4L2_PIX_FMT_JPEG) {
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
222
format->bytesperline = format->width;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
223
format->sizeimage = format->bytesperline * format->height;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
225
v4l2_fill_pixfmt(format, format->pixelformat,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
226
format->width, format->height);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
229
if (format->field == V4L2_FIELD_ANY)
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
230
format->field = fmt_default.field;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
232
dcmipp_colorimetry_clamp(format);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
254
vcap->format.width, vcap->format.height,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
255
&vcap->format.pixelformat, vcap->format.colorspace,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
256
vcap->format.quantization, vcap->format.xfer_func,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
257
vcap->format.ycbcr_enc,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
264
vcap->format = f->fmt.pix;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
549
size = vcap->format.sizeimage;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
609
size = vcap->format.sizeimage;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
613
return sizes[0] < vcap->format.sizeimage ? -EINVAL : 0;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
616
sizes[0] = vcap->format.sizeimage;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
829
if (source_fmt.format.width != vcap->format.width ||
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
830
source_fmt.format.height != vcap->format.height) {
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
832
vcap->format.width, vcap->format.height,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
833
source_fmt.format.width, source_fmt.format.height);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
839
vcap->format.pixelformat &&
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
841
source_fmt.format.code)
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
847
vcap->format.pixelformat, source_fmt.format.code);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
924
vcap->format = fmt_default;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
282
fmt->format = *v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
283
fmt->format.width = crop->width;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
284
fmt->format.height = crop->height;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
286
dcmipp_byteproc_adjust_fmt(&fmt->format);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
289
crop->width = fmt->format.width;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
290
crop->height = fmt->format.height;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
293
*v4l2_subdev_state_get_format(sd_state, 1) = fmt->format;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c
295
*mf = fmt->format;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-input.c
284
dcmipp_inp_adjust_fmt(inp, &fmt->format, fmt->pad);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-input.c
293
fmt->format.width, fmt->format.height, fmt->format.code,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-input.c
294
fmt->format.colorspace, fmt->format.quantization,
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-input.c
295
fmt->format.xfer_func, fmt->format.ycbcr_enc);
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-input.c
297
*mf = fmt->format;
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-input.c
302
*mf = fmt->format;
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c
292
fmt->format = *subdev_fmt;
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c
312
subdev_fmt->width = fmt->format.width;
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c
313
subdev_fmt->height = fmt->format.height;
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c
314
subdev_fmt->code = fmt->format.code;
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c
317
fmt->format = *subdev_fmt;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
541
struct v4l2_subdev_format *format)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
544
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
549
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
551
format->pad);
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
562
struct v4l2_subdev_format *format)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
565
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
572
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c
573
*v4l2_subdev_state_get_format(state, format->pad) =
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
1025
format->type = queue->type;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
1031
sun6i_csi_capture_format_prepare(format);
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
29
*width = csi_dev->capture.format.fmt.pix.width;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
31
*height = csi_dev->capture.format.fmt.pix.height;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
376
const struct sun6i_csi_capture_format *format;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
38
*pixelformat = csi_dev->capture.format.fmt.pix.pixelformat;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
386
format = sun6i_csi_capture_format_find(pixelformat);
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
387
if (WARN_ON(!format))
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
397
if (format->hsize_len_factor)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
398
hsize_len *= format->hsize_len_factor;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
41
*field = csi_dev->capture.format.fmt.pix.field;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
558
unsigned int size = csi_dev->capture.format.fmt.pix.sizeimage;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
575
unsigned long size = capture->format.fmt.pix.sizeimage;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
585
v4l2_buffer->field = capture->format.fmt.pix.field;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
664
static void sun6i_csi_capture_format_prepare(struct v4l2_format *format)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
666
struct v4l2_pix_format *pix_format = &format->fmt.pix;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
742
struct v4l2_format *format)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
746
*format = csi_dev->capture.format;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
752
struct v4l2_format *format)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
760
sun6i_csi_capture_format_prepare(format);
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
762
csi_dev->capture.format = *format;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
768
struct v4l2_format *format)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
770
sun6i_csi_capture_format_prepare(format);
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
977
struct v4l2_format *format = &csi_dev->capture.format;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
978
struct v4l2_pix_format *pix_format = &format->fmt.pix;
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h
59
struct v4l2_format format;
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
104
const struct sun6i_mipi_csi2_format *format;
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
108
format = sun6i_mipi_csi2_format_find(mbus_format->code);
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
109
if (WARN_ON(!format))
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
162
SUN6I_MIPI_CSI2_VCDT_RX_CH_DT(0, format->data_type));
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
177
const struct sun6i_mipi_csi2_format *format;
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
225
format = sun6i_mipi_csi2_format_find(mbus_format->code);
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
226
if (WARN_ON(!format)) {
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
231
phy_mipi_dphy_get_default_config(pixel_rate, format->bpp, lanes_count,
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
246
pixel_rate, format->bpp, lanes_count,
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
345
struct v4l2_subdev_format *format)
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
348
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
353
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
355
format->pad);
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
366
struct v4l2_subdev_format *format)
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
369
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
376
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
377
*v4l2_subdev_state_get_format(state, format->pad) =
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
153
const struct sun8i_a83t_mipi_csi2_format *format;
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
157
format = sun8i_a83t_mipi_csi2_format_find(mbus_format->code);
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
158
if (WARN_ON(!format))
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
196
SUN8I_A83T_MIPI_CSI2_VCDT0_CH_DT(0, format->data_type));
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
209
const struct sun8i_a83t_mipi_csi2_format *format;
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
257
format = sun8i_a83t_mipi_csi2_format_find(mbus_format->code);
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
258
if (WARN_ON(!format)) {
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
263
phy_mipi_dphy_get_default_config(pixel_rate, format->bpp, lanes_count,
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
278
pixel_rate, format->bpp, lanes_count,
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
380
struct v4l2_subdev_format *format)
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
384
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
389
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
391
format->pad);
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
402
struct v4l2_subdev_format *format)
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
406
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
413
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
414
*v4l2_subdev_state_get_format(state, format->pad) =
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
207
const struct dw_mipi_csi2rx_format *format = &csi2->formats[i];
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
209
if (format->code == mbus_code)
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
210
return format;
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
316
struct v4l2_subdev_format *format)
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
323
if (format->pad == DW_MIPI_CSI2RX_PAD_SRC)
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
324
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
326
sink = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
330
fmt = dw_mipi_csi2rx_find_format(csi2, format->format.code);
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
332
format->format = default_format;
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
334
*sink = format->format;
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
337
src = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
338
format->stream);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1241
__func__, pixm->pixelformat, finfo->format);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1248
pixm->pixelformat = finfo->format;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1263
v4l2_fill_pixfmt_mp(pixm, finfo->format, pixm->width, pixm->height);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1278
switch (finfo->format) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1288
finfo->format);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1318
stream->pixm.height, finfo->format);
drivers/media/platform/ti/am437x/am437x-vpfe.c
1288
struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format;
drivers/media/platform/ti/am437x/am437x-vpfe.c
1312
struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format;
drivers/media/platform/ti/cal/cal-camerarx.c
766
struct v4l2_subdev_format *format)
drivers/media/platform/ti/cal/cal-camerarx.c
773
if (cal_rx_pad_is_source(format->pad))
drivers/media/platform/ti/cal/cal-camerarx.c
774
return v4l2_subdev_get_fmt(sd, state, format);
drivers/media/platform/ti/cal/cal-camerarx.c
780
fmtinfo = cal_format_by_code(format->format.code);
drivers/media/platform/ti/cal/cal-camerarx.c
787
format->format.width = clamp_t(unsigned int, format->format.width,
drivers/media/platform/ti/cal/cal-camerarx.c
790
format->format.height = clamp_t(unsigned int, format->format.height,
drivers/media/platform/ti/cal/cal-camerarx.c
793
format->format.code = fmtinfo->code;
drivers/media/platform/ti/cal/cal-camerarx.c
794
format->format.field = V4L2_FIELD_NONE;
drivers/media/platform/ti/cal/cal-camerarx.c
798
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/platform/ti/cal/cal-camerarx.c
802
*fmt = format->format;
drivers/media/platform/ti/cal/cal-camerarx.c
804
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/media/platform/ti/cal/cal-camerarx.c
805
format->stream);
drivers/media/platform/ti/cal/cal-camerarx.c
809
*fmt = format->format;
drivers/media/platform/ti/cal/cal-camerarx.c
818
static const struct v4l2_mbus_framefmt format = {
drivers/media/platform/ti/cal/cal-camerarx.c
836
ret = v4l2_subdev_set_routing_with_fmt(sd, state, routing, &format);
drivers/media/platform/ti/cal/cal-video.c
110
struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format;
drivers/media/platform/ti/cal/cal-video.c
133
struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format;
drivers/media/platform/ti/cal/cal-video.c
264
v4l2_fill_mbus_format(&sd_fmt.format, &f->fmt.pix, fmtinfo->code);
drivers/media/platform/ti/cal/cal-video.c
266
ret = __subdev_set_format(ctx, &sd_fmt.format);
drivers/media/platform/ti/cal/cal-video.c
271
if (sd_fmt.format.code != fmtinfo->code) {
drivers/media/platform/ti/cal/cal-video.c
278
v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &sd_fmt.format);
drivers/media/platform/ti/cal/cal-video.c
281
ctx->v_fmt.fmt.pix.field = sd_fmt.format.field;
drivers/media/platform/ti/cal/cal-video.c
461
struct v4l2_pix_format *format = &f->fmt.pix;
drivers/media/platform/ti/cal/cal-video.c
480
format->width = clamp_t(unsigned int, format->width,
drivers/media/platform/ti/cal/cal-video.c
483
format->height = clamp_t(unsigned int, format->height,
drivers/media/platform/ti/cal/cal-video.c
485
format->pixelformat = fmtinfo->fourcc;
drivers/media/platform/ti/cal/cal-video.c
487
if (format->field == V4L2_FIELD_ANY)
drivers/media/platform/ti/cal/cal-video.c
488
format->field = V4L2_FIELD_NONE;
drivers/media/platform/ti/cal/cal-video.c
495
format->bytesperline = ALIGN(clamp(format->bytesperline,
drivers/media/platform/ti/cal/cal-video.c
496
format->width * bpp / 8,
drivers/media/platform/ti/cal/cal-video.c
499
format->sizeimage = format->height * format->bytesperline;
drivers/media/platform/ti/cal/cal-video.c
501
format->colorspace = ctx->v_fmt.fmt.pix.colorspace;
drivers/media/platform/ti/cal/cal-video.c
507
__func__, &format->pixelformat,
drivers/media/platform/ti/cal/cal-video.c
508
format->width, format->height,
drivers/media/platform/ti/cal/cal-video.c
509
format->bytesperline, format->sizeimage);
drivers/media/platform/ti/cal/cal-video.c
684
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/cal/cal-video.c
695
format = v4l2_subdev_state_get_format(state, phy_source_pad->index, 0);
drivers/media/platform/ti/cal/cal-video.c
696
if (!format) {
drivers/media/platform/ti/cal/cal-video.c
701
if (ctx->fmtinfo->code != format->code ||
drivers/media/platform/ti/cal/cal-video.c
702
ctx->v_fmt.fmt.pix.height != format->height ||
drivers/media/platform/ti/cal/cal-video.c
703
ctx->v_fmt.fmt.pix.width != format->width ||
drivers/media/platform/ti/cal/cal-video.c
704
ctx->v_fmt.fmt.pix.field != format->field) {
drivers/media/platform/ti/davinci/vpif_capture.c
1000
ret = v4l2_subdev_call(ch->sd, pad, get_fmt, NULL, &format);
drivers/media/platform/ti/davinci/vpif_capture.c
986
struct v4l2_subdev_format format = {
drivers/media/platform/ti/davinci/vpif_capture.c
989
struct v4l2_mbus_framefmt *mbus_fmt = &format.format;
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
961
if (source_fmt.format.width != csi_fmt->width) {
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
963
source_fmt.format.width, csi_fmt->width);
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
967
if (source_fmt.format.height != csi_fmt->height) {
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
969
source_fmt.format.height, csi_fmt->height);
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
973
if (source_fmt.format.field != csi_fmt->field &&
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
976
source_fmt.format.field, csi_fmt->field);
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
980
ti_fmt = find_format_by_code(source_fmt.format.code);
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
983
source_fmt.format.code);
drivers/media/platform/ti/omap3isp/ispccdc.c
1021
if (format->code == MEDIA_BUS_FMT_UYVY8_2X8)
drivers/media/platform/ti/omap3isp/ispccdc.c
1118
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
1154
format = &ccdc->formats[CCDC_PAD_SINK];
drivers/media/platform/ti/omap3isp/ispccdc.c
1161
fmt_info = omap3isp_video_format_info(fmt_src.format.code);
drivers/media/platform/ti/omap3isp/ispccdc.c
1165
fmt_info = omap3isp_video_format_info(format->code);
drivers/media/platform/ti/omap3isp/ispccdc.c
1201
switch (format->code) {
drivers/media/platform/ti/omap3isp/ispccdc.c
1224
isp_reg_writel(isp, ((format->height - 2) << ISPCCDC_VDINT_0_SHIFT) |
drivers/media/platform/ti/omap3isp/ispccdc.c
1225
((format->height * 2 / 3) << ISPCCDC_VDINT_1_SHIFT),
drivers/media/platform/ti/omap3isp/ispccdc.c
1229
format = &ccdc->formats[CCDC_PAD_SOURCE_OF];
drivers/media/platform/ti/omap3isp/ispccdc.c
1256
format->field);
drivers/media/platform/ti/omap3isp/ispccdc.c
1263
(format->field == V4L2_FIELD_INTERLACED_TB ||
drivers/media/platform/ti/omap3isp/ispccdc.c
1264
format->field == V4L2_FIELD_INTERLACED_BT))
drivers/media/platform/ti/omap3isp/ispccdc.c
1270
if (format->code == MEDIA_BUS_FMT_YUYV8_1X16)
drivers/media/platform/ti/omap3isp/ispccdc.c
1281
if (omap3isp_video_format_info(format->code)->width <= 8 || ccdc->bt656)
drivers/media/platform/ti/omap3isp/ispccdc.c
136
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
162
format = __ccdc_get_format(ccdc, NULL, CCDC_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispccdc.c
164
input_width = format->width;
drivers/media/platform/ti/omap3isp/ispccdc.c
165
input_height = format->height;
drivers/media/platform/ti/omap3isp/ispccdc.c
2132
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2143
format = __ccdc_get_format(ccdc, sd_state, code->pad,
drivers/media/platform/ti/omap3isp/ispccdc.c
2146
if (format->code == MEDIA_BUS_FMT_YUYV8_2X8 ||
drivers/media/platform/ti/omap3isp/ispccdc.c
2147
format->code == MEDIA_BUS_FMT_UYVY8_2X8) {
drivers/media/platform/ti/omap3isp/ispccdc.c
2160
code->code = format->code;
drivers/media/platform/ti/omap3isp/ispccdc.c
2174
format = __ccdc_get_format(ccdc, sd_state, code->pad,
drivers/media/platform/ti/omap3isp/ispccdc.c
2180
if (format->code == 0)
drivers/media/platform/ti/omap3isp/ispccdc.c
2183
code->code = format->code;
drivers/media/platform/ti/omap3isp/ispccdc.c
2198
struct v4l2_mbus_framefmt format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2203
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispccdc.c
2204
format.width = 1;
drivers/media/platform/ti/omap3isp/ispccdc.c
2205
format.height = 1;
drivers/media/platform/ti/omap3isp/ispccdc.c
2206
ccdc_try_format(ccdc, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispccdc.c
2207
fse->min_width = format.width;
drivers/media/platform/ti/omap3isp/ispccdc.c
2208
fse->min_height = format.height;
drivers/media/platform/ti/omap3isp/ispccdc.c
2210
if (format.code != fse->code)
drivers/media/platform/ti/omap3isp/ispccdc.c
2213
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispccdc.c
2214
format.width = -1;
drivers/media/platform/ti/omap3isp/ispccdc.c
2215
format.height = -1;
drivers/media/platform/ti/omap3isp/ispccdc.c
2216
ccdc_try_format(ccdc, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispccdc.c
2217
fse->max_width = format.width;
drivers/media/platform/ti/omap3isp/ispccdc.c
2218
fse->max_height = format.height;
drivers/media/platform/ti/omap3isp/ispccdc.c
2239
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2251
format = __ccdc_get_format(ccdc, sd_state, CCDC_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispccdc.c
2253
ccdc_try_crop(ccdc, format, &sel->r);
drivers/media/platform/ti/omap3isp/ispccdc.c
2283
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2302
format = __ccdc_get_format(ccdc, sd_state, CCDC_PAD_SINK, sel->which);
drivers/media/platform/ti/omap3isp/ispccdc.c
2303
ccdc_try_crop(ccdc, format, &sel->r);
drivers/media/platform/ti/omap3isp/ispccdc.c
2307
format = __ccdc_get_format(ccdc, sd_state, CCDC_PAD_SOURCE_OF,
drivers/media/platform/ti/omap3isp/ispccdc.c
2309
ccdc_try_format(ccdc, sd_state, CCDC_PAD_SOURCE_OF, format,
drivers/media/platform/ti/omap3isp/ispccdc.c
2329
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2331
format = __ccdc_get_format(ccdc, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispccdc.c
2332
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispccdc.c
2335
fmt->format = *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2353
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2356
format = __ccdc_get_format(ccdc, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispccdc.c
2357
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispccdc.c
2360
ccdc_try_format(ccdc, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/ti/omap3isp/ispccdc.c
2361
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2369
crop->width = fmt->format.width;
drivers/media/platform/ti/omap3isp/ispccdc.c
2370
crop->height = fmt->format.height;
drivers/media/platform/ti/omap3isp/ispccdc.c
2372
ccdc_try_crop(ccdc, &fmt->format, crop);
drivers/media/platform/ti/omap3isp/ispccdc.c
2375
format = __ccdc_get_format(ccdc, sd_state, CCDC_PAD_SOURCE_OF,
drivers/media/platform/ti/omap3isp/ispccdc.c
2377
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2378
ccdc_try_format(ccdc, sd_state, CCDC_PAD_SOURCE_OF, format,
drivers/media/platform/ti/omap3isp/ispccdc.c
2381
format = __ccdc_get_format(ccdc, sd_state, CCDC_PAD_SOURCE_VP,
drivers/media/platform/ti/omap3isp/ispccdc.c
2383
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2384
ccdc_try_format(ccdc, sd_state, CCDC_PAD_SOURCE_VP, format,
drivers/media/platform/ti/omap3isp/ispccdc.c
2429
if (source_fmt->format.width != sink_fmt->format.width ||
drivers/media/platform/ti/omap3isp/ispccdc.c
2430
source_fmt->format.height != sink_fmt->format.height)
drivers/media/platform/ti/omap3isp/ispccdc.c
2449
if (!ccdc_is_shiftable(source_fmt->format.code,
drivers/media/platform/ti/omap3isp/ispccdc.c
2450
sink_fmt->format.code, parallel_shift))
drivers/media/platform/ti/omap3isp/ispccdc.c
2467
struct v4l2_subdev_format format;
drivers/media/platform/ti/omap3isp/ispccdc.c
2469
memset(&format, 0, sizeof(format));
drivers/media/platform/ti/omap3isp/ispccdc.c
2470
format.pad = CCDC_PAD_SINK;
drivers/media/platform/ti/omap3isp/ispccdc.c
2471
format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
drivers/media/platform/ti/omap3isp/ispccdc.c
2472
format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/platform/ti/omap3isp/ispccdc.c
2473
format.format.width = 4096;
drivers/media/platform/ti/omap3isp/ispccdc.c
2474
format.format.height = 4096;
drivers/media/platform/ti/omap3isp/ispccdc.c
2475
ccdc_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/ti/omap3isp/ispccdc.c
263
const struct v4l2_mbus_framefmt *format =
drivers/media/platform/ti/omap3isp/ispccdc.c
267
if ((format->code != MEDIA_BUS_FMT_SGRBG10_1X10) &&
drivers/media/platform/ti/omap3isp/ispccdc.c
268
(format->code != MEDIA_BUS_FMT_SRGGB10_1X10) &&
drivers/media/platform/ti/omap3isp/ispccdc.c
269
(format->code != MEDIA_BUS_FMT_SBGGR10_1X10) &&
drivers/media/platform/ti/omap3isp/ispccdc.c
270
(format->code != MEDIA_BUS_FMT_SGBRG10_1X10))
drivers/media/platform/ti/omap3isp/ispccdc.c
808
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
814
format = &ccdc->formats[CCDC_PAD_SOURCE_VP];
drivers/media/platform/ti/omap3isp/ispccdc.c
816
if (!format->code) {
drivers/media/platform/ti/omap3isp/ispccdc.c
825
(format->width << ISPCCDC_FMT_HORZ_FMTLNH_SHIFT),
drivers/media/platform/ti/omap3isp/ispccdc.c
828
((format->height + 1) << ISPCCDC_FMT_VERT_FMTLNV_SHIFT),
drivers/media/platform/ti/omap3isp/ispccdc.c
831
isp_reg_writel(isp, (format->width << ISPCCDC_VP_OUT_HORZ_NUM_SHIFT) |
drivers/media/platform/ti/omap3isp/ispccdc.c
832
(format->height << ISPCCDC_VP_OUT_VERT_NUM_SHIFT),
drivers/media/platform/ti/omap3isp/ispccdc.c
967
const struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccdc.c
970
format = &ccdc->formats[CCDC_PAD_SINK];
drivers/media/platform/ti/omap3isp/ispccdc.c
972
if (format->code == MEDIA_BUS_FMT_YUYV8_2X8 ||
drivers/media/platform/ti/omap3isp/ispccdc.c
973
format->code == MEDIA_BUS_FMT_UYVY8_2X8) {
drivers/media/platform/ti/omap3isp/ispccp2.c
289
u32 val, format;
drivers/media/platform/ti/omap3isp/ispccp2.c
291
switch (config->format) {
drivers/media/platform/ti/omap3isp/ispccp2.c
293
format = ISPCCP2_LCx_CTRL_FORMAT_RAW8_DPCM10_VP;
drivers/media/platform/ti/omap3isp/ispccp2.c
297
format = ISPCCP2_LCx_CTRL_FORMAT_RAW10_VP; /* RAW10+VP */
drivers/media/platform/ti/omap3isp/ispccp2.c
311
ISPCCP2_LCx_CTRL_FORMAT_MASK_15_0, format);
drivers/media/platform/ti/omap3isp/ispccp2.c
318
ISPCCP2_LCx_CTRL_FORMAT_MASK, format);
drivers/media/platform/ti/omap3isp/ispccp2.c
352
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccp2.c
374
format = &ccp2->formats[CCP2_PAD_SINK];
drivers/media/platform/ti/omap3isp/ispccp2.c
378
ccp2->if_cfg.format = format->code;
drivers/media/platform/ti/omap3isp/ispccp2.c
379
ccp2->if_cfg.data_size = format->height;
drivers/media/platform/ti/omap3isp/ispccp2.c
647
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccp2.c
677
format = __ccp2_get_format(ccp2, sd_state, CCP2_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispccp2.c
679
memcpy(fmt, format, sizeof(*fmt));
drivers/media/platform/ti/omap3isp/ispccp2.c
700
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccp2.c
711
format = __ccp2_get_format(ccp2, sd_state, CCP2_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispccp2.c
713
code->code = format->code;
drivers/media/platform/ti/omap3isp/ispccp2.c
724
struct v4l2_mbus_framefmt format;
drivers/media/platform/ti/omap3isp/ispccp2.c
729
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispccp2.c
730
format.width = 1;
drivers/media/platform/ti/omap3isp/ispccp2.c
731
format.height = 1;
drivers/media/platform/ti/omap3isp/ispccp2.c
732
ccp2_try_format(ccp2, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispccp2.c
733
fse->min_width = format.width;
drivers/media/platform/ti/omap3isp/ispccp2.c
734
fse->min_height = format.height;
drivers/media/platform/ti/omap3isp/ispccp2.c
736
if (format.code != fse->code)
drivers/media/platform/ti/omap3isp/ispccp2.c
739
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispccp2.c
740
format.width = -1;
drivers/media/platform/ti/omap3isp/ispccp2.c
741
format.height = -1;
drivers/media/platform/ti/omap3isp/ispccp2.c
742
ccp2_try_format(ccp2, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispccp2.c
743
fse->max_width = format.width;
drivers/media/platform/ti/omap3isp/ispccp2.c
744
fse->max_height = format.height;
drivers/media/platform/ti/omap3isp/ispccp2.c
761
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccp2.c
763
format = __ccp2_get_format(ccp2, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispccp2.c
764
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispccp2.c
767
fmt->format = *format;
drivers/media/platform/ti/omap3isp/ispccp2.c
783
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccp2.c
785
format = __ccp2_get_format(ccp2, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispccp2.c
786
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispccp2.c
789
ccp2_try_format(ccp2, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/ti/omap3isp/ispccp2.c
790
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispccp2.c
794
format = __ccp2_get_format(ccp2, sd_state, CCP2_PAD_SOURCE,
drivers/media/platform/ti/omap3isp/ispccp2.c
796
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispccp2.c
797
ccp2_try_format(ccp2, sd_state, CCP2_PAD_SOURCE, format,
drivers/media/platform/ti/omap3isp/ispccp2.c
815
struct v4l2_subdev_format format;
drivers/media/platform/ti/omap3isp/ispccp2.c
817
memset(&format, 0, sizeof(format));
drivers/media/platform/ti/omap3isp/ispccp2.c
818
format.pad = CCP2_PAD_SINK;
drivers/media/platform/ti/omap3isp/ispccp2.c
819
format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
drivers/media/platform/ti/omap3isp/ispccp2.c
820
format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/platform/ti/omap3isp/ispccp2.c
821
format.format.width = 4096;
drivers/media/platform/ti/omap3isp/ispccp2.c
822
format.format.height = 4096;
drivers/media/platform/ti/omap3isp/ispccp2.c
823
ccp2_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/ti/omap3isp/ispccp2.c
869
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispccp2.c
871
format = &ccp2->formats[CCP2_PAD_SINK];
drivers/media/platform/ti/omap3isp/ispccp2.c
873
ccp2->mem_cfg.hsize_count = format->width;
drivers/media/platform/ti/omap3isp/ispccp2.c
874
ccp2->mem_cfg.vsize_count = format->height;
drivers/media/platform/ti/omap3isp/ispccp2.h
47
u32 format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1001
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1003
format = __csi2_get_format(csi2, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispcsi2.c
1004
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispcsi2.c
1007
csi2_try_format(csi2, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/ti/omap3isp/ispcsi2.c
1008
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1012
format = __csi2_get_format(csi2, sd_state, CSI2_PAD_SOURCE,
drivers/media/platform/ti/omap3isp/ispcsi2.c
1014
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1015
csi2_try_format(csi2, sd_state, CSI2_PAD_SOURCE, format,
drivers/media/platform/ti/omap3isp/ispcsi2.c
1033
struct v4l2_subdev_format format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1035
memset(&format, 0, sizeof(format));
drivers/media/platform/ti/omap3isp/ispcsi2.c
1036
format.pad = CSI2_PAD_SINK;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1037
format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1038
format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1039
format.format.width = 4096;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1040
format.format.height = 4096;
drivers/media/platform/ti/omap3isp/ispcsi2.c
1041
csi2_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/ti/omap3isp/ispcsi2.c
849
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
874
format = __csi2_get_format(csi2, sd_state, CSI2_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispcsi2.c
876
memcpy(fmt, format, sizeof(*fmt));
drivers/media/platform/ti/omap3isp/ispcsi2.c
905
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
914
format = __csi2_get_format(csi2, sd_state, CSI2_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispcsi2.c
919
code->code = format->code;
drivers/media/platform/ti/omap3isp/ispcsi2.c
923
info = omap3isp_video_format_info(format->code);
drivers/media/platform/ti/omap3isp/ispcsi2.c
924
if (info->uncompressed == format->code)
drivers/media/platform/ti/omap3isp/ispcsi2.c
942
struct v4l2_mbus_framefmt format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
947
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispcsi2.c
948
format.width = 1;
drivers/media/platform/ti/omap3isp/ispcsi2.c
949
format.height = 1;
drivers/media/platform/ti/omap3isp/ispcsi2.c
950
csi2_try_format(csi2, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispcsi2.c
951
fse->min_width = format.width;
drivers/media/platform/ti/omap3isp/ispcsi2.c
952
fse->min_height = format.height;
drivers/media/platform/ti/omap3isp/ispcsi2.c
954
if (format.code != fse->code)
drivers/media/platform/ti/omap3isp/ispcsi2.c
957
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispcsi2.c
958
format.width = -1;
drivers/media/platform/ti/omap3isp/ispcsi2.c
959
format.height = -1;
drivers/media/platform/ti/omap3isp/ispcsi2.c
960
csi2_try_format(csi2, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispcsi2.c
961
fse->max_width = format.width;
drivers/media/platform/ti/omap3isp/ispcsi2.c
962
fse->max_height = format.height;
drivers/media/platform/ti/omap3isp/ispcsi2.c
979
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispcsi2.c
981
format = __csi2_get_format(csi2, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispcsi2.c
982
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispcsi2.c
985
fmt->format = *format;
drivers/media/platform/ti/omap3isp/isppreview.c
1064
const struct v4l2_mbus_framefmt *format = &prev->formats[PREV_PAD_SINK];
drivers/media/platform/ti/omap3isp/isppreview.c
1072
if (format->code != MEDIA_BUS_FMT_Y8_1X8 &&
drivers/media/platform/ti/omap3isp/isppreview.c
1073
format->code != MEDIA_BUS_FMT_Y10_1X10) {
drivers/media/platform/ti/omap3isp/isppreview.c
1315
params->cfa.format = OMAP3ISP_CFAFMT_BAYER;
drivers/media/platform/ti/omap3isp/isppreview.c
1382
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/isppreview.c
1394
format = &prev->formats[PREV_PAD_SINK];
drivers/media/platform/ti/omap3isp/isppreview.c
1395
info = omap3isp_video_format_info(format->code);
drivers/media/platform/ti/omap3isp/isppreview.c
1405
preview_config_inlineoffset(prev, ALIGN(format->width, 0x20) *
drivers/media/platform/ti/omap3isp/isppreview.c
1411
format = &prev->formats[PREV_PAD_SOURCE];
drivers/media/platform/ti/omap3isp/isppreview.c
1429
ALIGN(format->width, 0x10) * 2);
drivers/media/platform/ti/omap3isp/isppreview.c
1432
preview_config_ycpos(prev, format->code);
drivers/media/platform/ti/omap3isp/isppreview.c
1892
struct v4l2_mbus_framefmt format;
drivers/media/platform/ti/omap3isp/isppreview.c
1897
format.code = fse->code;
drivers/media/platform/ti/omap3isp/isppreview.c
1898
format.width = 1;
drivers/media/platform/ti/omap3isp/isppreview.c
1899
format.height = 1;
drivers/media/platform/ti/omap3isp/isppreview.c
1900
preview_try_format(prev, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/isppreview.c
1901
fse->min_width = format.width;
drivers/media/platform/ti/omap3isp/isppreview.c
1902
fse->min_height = format.height;
drivers/media/platform/ti/omap3isp/isppreview.c
1904
if (format.code != fse->code)
drivers/media/platform/ti/omap3isp/isppreview.c
1907
format.code = fse->code;
drivers/media/platform/ti/omap3isp/isppreview.c
1908
format.width = -1;
drivers/media/platform/ti/omap3isp/isppreview.c
1909
format.height = -1;
drivers/media/platform/ti/omap3isp/isppreview.c
1910
preview_try_format(prev, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/isppreview.c
1911
fse->max_width = format.width;
drivers/media/platform/ti/omap3isp/isppreview.c
1912
fse->max_height = format.height;
drivers/media/platform/ti/omap3isp/isppreview.c
1932
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/isppreview.c
1944
format = __preview_get_format(prev, sd_state, PREV_PAD_SINK,
drivers/media/platform/ti/omap3isp/isppreview.c
1946
preview_try_crop(prev, format, &sel->r);
drivers/media/platform/ti/omap3isp/isppreview.c
1975
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/isppreview.c
1994
format = __preview_get_format(prev, sd_state, PREV_PAD_SINK,
drivers/media/platform/ti/omap3isp/isppreview.c
1996
preview_try_crop(prev, format, &sel->r);
drivers/media/platform/ti/omap3isp/isppreview.c
2000
format = __preview_get_format(prev, sd_state, PREV_PAD_SOURCE,
drivers/media/platform/ti/omap3isp/isppreview.c
2002
preview_try_format(prev, sd_state, PREV_PAD_SOURCE, format,
drivers/media/platform/ti/omap3isp/isppreview.c
2020
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/isppreview.c
2022
format = __preview_get_format(prev, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/isppreview.c
2023
if (format == NULL)
drivers/media/platform/ti/omap3isp/isppreview.c
2026
fmt->format = *format;
drivers/media/platform/ti/omap3isp/isppreview.c
2042
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/isppreview.c
2045
format = __preview_get_format(prev, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/isppreview.c
2046
if (format == NULL)
drivers/media/platform/ti/omap3isp/isppreview.c
2049
preview_try_format(prev, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/ti/omap3isp/isppreview.c
2050
*format = fmt->format;
drivers/media/platform/ti/omap3isp/isppreview.c
2058
crop->width = fmt->format.width;
drivers/media/platform/ti/omap3isp/isppreview.c
2059
crop->height = fmt->format.height;
drivers/media/platform/ti/omap3isp/isppreview.c
2061
preview_try_crop(prev, &fmt->format, crop);
drivers/media/platform/ti/omap3isp/isppreview.c
2064
format = __preview_get_format(prev, sd_state, PREV_PAD_SOURCE,
drivers/media/platform/ti/omap3isp/isppreview.c
2066
preview_try_format(prev, sd_state, PREV_PAD_SOURCE, format,
drivers/media/platform/ti/omap3isp/isppreview.c
2085
struct v4l2_subdev_format format;
drivers/media/platform/ti/omap3isp/isppreview.c
2087
memset(&format, 0, sizeof(format));
drivers/media/platform/ti/omap3isp/isppreview.c
2088
format.pad = PREV_PAD_SINK;
drivers/media/platform/ti/omap3isp/isppreview.c
2089
format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
drivers/media/platform/ti/omap3isp/isppreview.c
2090
format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
drivers/media/platform/ti/omap3isp/isppreview.c
2091
format.format.width = 4096;
drivers/media/platform/ti/omap3isp/isppreview.c
2092
format.format.height = 4096;
drivers/media/platform/ti/omap3isp/isppreview.c
2093
preview_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/ti/omap3isp/ispresizer.c
1382
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1399
format = __resizer_get_format(res, sd_state, RESZ_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispresizer.c
1401
fmt->code = format->code;
drivers/media/platform/ti/omap3isp/ispresizer.c
1424
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1435
format = __resizer_get_format(res, sd_state, RESZ_PAD_SINK,
drivers/media/platform/ti/omap3isp/ispresizer.c
1437
code->code = format->code;
drivers/media/platform/ti/omap3isp/ispresizer.c
1448
struct v4l2_mbus_framefmt format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1453
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispresizer.c
1454
format.width = 1;
drivers/media/platform/ti/omap3isp/ispresizer.c
1455
format.height = 1;
drivers/media/platform/ti/omap3isp/ispresizer.c
1456
resizer_try_format(res, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispresizer.c
1457
fse->min_width = format.width;
drivers/media/platform/ti/omap3isp/ispresizer.c
1458
fse->min_height = format.height;
drivers/media/platform/ti/omap3isp/ispresizer.c
1460
if (format.code != fse->code)
drivers/media/platform/ti/omap3isp/ispresizer.c
1463
format.code = fse->code;
drivers/media/platform/ti/omap3isp/ispresizer.c
1464
format.width = -1;
drivers/media/platform/ti/omap3isp/ispresizer.c
1465
format.height = -1;
drivers/media/platform/ti/omap3isp/ispresizer.c
1466
resizer_try_format(res, sd_state, fse->pad, &format, fse->which);
drivers/media/platform/ti/omap3isp/ispresizer.c
1467
fse->max_width = format.width;
drivers/media/platform/ti/omap3isp/ispresizer.c
1468
fse->max_height = format.height;
drivers/media/platform/ti/omap3isp/ispresizer.c
1485
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1487
format = __resizer_get_format(res, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispresizer.c
1488
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispresizer.c
1491
fmt->format = *format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1507
struct v4l2_mbus_framefmt *format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1510
format = __resizer_get_format(res, sd_state, fmt->pad, fmt->which);
drivers/media/platform/ti/omap3isp/ispresizer.c
1511
if (format == NULL)
drivers/media/platform/ti/omap3isp/ispresizer.c
1514
resizer_try_format(res, sd_state, fmt->pad, &fmt->format, fmt->which);
drivers/media/platform/ti/omap3isp/ispresizer.c
1515
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1522
crop->width = fmt->format.width;
drivers/media/platform/ti/omap3isp/ispresizer.c
1523
crop->height = fmt->format.height;
drivers/media/platform/ti/omap3isp/ispresizer.c
1526
format = __resizer_get_format(res, sd_state, RESZ_PAD_SOURCE,
drivers/media/platform/ti/omap3isp/ispresizer.c
1528
*format = fmt->format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1529
resizer_try_format(res, sd_state, RESZ_PAD_SOURCE, format,
drivers/media/platform/ti/omap3isp/ispresizer.c
1539
resizer_calc_ratios(res, &res->crop.active, format,
drivers/media/platform/ti/omap3isp/ispresizer.c
1572
struct v4l2_subdev_format format;
drivers/media/platform/ti/omap3isp/ispresizer.c
1574
memset(&format, 0, sizeof(format));
drivers/media/platform/ti/omap3isp/ispresizer.c
1575
format.pad = RESZ_PAD_SINK;
drivers/media/platform/ti/omap3isp/ispresizer.c
1576
format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
drivers/media/platform/ti/omap3isp/ispresizer.c
1577
format.format.code = MEDIA_BUS_FMT_YUYV8_1X16;
drivers/media/platform/ti/omap3isp/ispresizer.c
1578
format.format.width = 4096;
drivers/media/platform/ti/omap3isp/ispresizer.c
1579
format.format.height = 4096;
drivers/media/platform/ti/omap3isp/ispresizer.c
1580
resizer_set_format(sd, fh ? fh->state : NULL, &format);
drivers/media/platform/ti/omap3isp/ispvideo.c
1083
omap3isp_video_format_info(fmt.format.code)->width;
drivers/media/platform/ti/omap3isp/ispvideo.c
1188
video->bpl_value = vfh->format.fmt.pix.bytesperline;
drivers/media/platform/ti/omap3isp/ispvideo.c
1220
pipe->field = vfh->format.fmt.pix.field;
drivers/media/platform/ti/omap3isp/ispvideo.c
1410
memset(&handle->format, 0, sizeof(handle->format));
drivers/media/platform/ti/omap3isp/ispvideo.c
1411
handle->format.type = video->type;
drivers/media/platform/ti/omap3isp/ispvideo.c
1412
handle->format.fmt.pix.width = 720;
drivers/media/platform/ti/omap3isp/ispvideo.c
1413
handle->format.fmt.pix.height = 480;
drivers/media/platform/ti/omap3isp/ispvideo.c
1414
handle->format.fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY;
drivers/media/platform/ti/omap3isp/ispvideo.c
1415
handle->format.fmt.pix.field = V4L2_FIELD_NONE;
drivers/media/platform/ti/omap3isp/ispvideo.c
1416
handle->format.fmt.pix.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/platform/ti/omap3isp/ispvideo.c
1417
isp_video_pix_to_mbus(&handle->format.fmt.pix, &fmt);
drivers/media/platform/ti/omap3isp/ispvideo.c
1418
isp_video_mbus_to_pix(video, &fmt, &handle->format.fmt.pix);
drivers/media/platform/ti/omap3isp/ispvideo.c
273
__isp_video_get_format(struct isp_video *video, struct v4l2_format *format)
drivers/media/platform/ti/omap3isp/ispvideo.c
295
format->type = video->type;
drivers/media/platform/ti/omap3isp/ispvideo.c
296
return isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix);
drivers/media/platform/ti/omap3isp/ispvideo.c
302
struct v4l2_format format;
drivers/media/platform/ti/omap3isp/ispvideo.c
305
memcpy(&format, &vfh->format, sizeof(format));
drivers/media/platform/ti/omap3isp/ispvideo.c
306
ret = __isp_video_get_format(video, &format);
drivers/media/platform/ti/omap3isp/ispvideo.c
310
if (vfh->format.fmt.pix.pixelformat != format.fmt.pix.pixelformat ||
drivers/media/platform/ti/omap3isp/ispvideo.c
311
vfh->format.fmt.pix.height != format.fmt.pix.height ||
drivers/media/platform/ti/omap3isp/ispvideo.c
312
vfh->format.fmt.pix.width != format.fmt.pix.width ||
drivers/media/platform/ti/omap3isp/ispvideo.c
313
vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline ||
drivers/media/platform/ti/omap3isp/ispvideo.c
314
vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage ||
drivers/media/platform/ti/omap3isp/ispvideo.c
315
vfh->format.fmt.pix.field != format.fmt.pix.field)
drivers/media/platform/ti/omap3isp/ispvideo.c
335
if (sizes[0] < vfh->format.fmt.pix.sizeimage)
drivers/media/platform/ti/omap3isp/ispvideo.c
341
sizes[0] = vfh->format.fmt.pix.sizeimage;
drivers/media/platform/ti/omap3isp/ispvideo.c
354
unsigned int size = vfh->format.fmt.pix.sizeimage;
drivers/media/platform/ti/omap3isp/ispvideo.c
700
isp_video_get_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/ti/omap3isp/ispvideo.c
705
if (format->type != video->type)
drivers/media/platform/ti/omap3isp/ispvideo.c
709
*format = vfh->format;
drivers/media/platform/ti/omap3isp/ispvideo.c
716
isp_video_try_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/ti/omap3isp/ispvideo.c
726
if (format->type != video->type)
drivers/media/platform/ti/omap3isp/ispvideo.c
730
switch (format->fmt.pix.field) {
drivers/media/platform/ti/omap3isp/ispvideo.c
737
format->fmt.pix.field = V4L2_FIELD_NONE;
drivers/media/platform/ti/omap3isp/ispvideo.c
744
format->fmt.pix.field = V4L2_FIELD_INTERLACED_TB;
drivers/media/platform/ti/omap3isp/ispvideo.c
750
format->fmt.pix.field = V4L2_FIELD_NONE;
drivers/media/platform/ti/omap3isp/ispvideo.c
760
format->fmt.pix.field = V4L2_FIELD_NONE;
drivers/media/platform/ti/omap3isp/ispvideo.c
765
isp_video_pix_to_mbus(&format->fmt.pix, &fmt.format);
drivers/media/platform/ti/omap3isp/ispvideo.c
766
isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix);
drivers/media/platform/ti/omap3isp/ispvideo.c
774
isp_video_pix_to_mbus(&format->fmt.pix, &fmt.format);
drivers/media/platform/ti/omap3isp/ispvideo.c
781
isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix);
drivers/media/platform/ti/omap3isp/ispvideo.c
786
isp_video_set_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/ti/omap3isp/ispvideo.c
792
ret = isp_video_try_format(file, fh, format);
drivers/media/platform/ti/omap3isp/ispvideo.c
797
vfh->format = *format;
drivers/media/platform/ti/omap3isp/ispvideo.c
807
struct v4l2_subdev_format format = {
drivers/media/platform/ti/omap3isp/ispvideo.c
848
format.pad = pad;
drivers/media/platform/ti/omap3isp/ispvideo.c
849
ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &format);
drivers/media/platform/ti/omap3isp/ispvideo.c
855
sel->r.width = format.format.width;
drivers/media/platform/ti/omap3isp/ispvideo.c
856
sel->r.height = format.format.height;
drivers/media/platform/ti/omap3isp/ispvideo.h
193
struct v4l2_format format;
drivers/media/platform/ti/vpe/vip.c
1725
mf = &sfmt.format;
drivers/media/platform/ti/vpe/vip.c
2574
struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format;
drivers/media/platform/ti/vpe/vpe.c
1038
pix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
1045
pix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
1102
pix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
1576
*f = q_data->format;
drivers/media/platform/ti/vpe/vpe.c
1584
spix = &s_q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
1748
qpix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
1750
q_data->format = *f;
drivers/media/platform/ti/vpe/vpe.c
1815
pix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
1884
pix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
2034
pix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
2062
pix = &q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
2318
pix = &s_q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
2321
s_q_data->format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
drivers/media/platform/ti/vpe/vpe.c
2342
ctx->q_data[Q_DATA_DST].format.type =
drivers/media/platform/ti/vpe/vpe.c
323
struct v4l2_format format;
drivers/media/platform/ti/vpe/vpe.c
877
spix = &s_q_data->format.fmt.pix_mp;
drivers/media/platform/ti/vpe/vpe.c
914
&s_q_data->format, &d_q_data->format);
drivers/media/platform/via/via-camera.c
244
struct v4l2_subdev_format format = {
drivers/media/platform/via/via-camera.c
249
v4l2_fill_mbus_format(&format.format, &cam->sensor_format, cam->mbus_code);
drivers/media/platform/via/via-camera.c
252
ret = sensor_call(cam, pad, set_fmt, NULL, &format);
drivers/media/platform/via/via-camera.c
837
struct v4l2_subdev_format format = {
drivers/media/platform/via/via-camera.c
844
v4l2_fill_mbus_format(&format.format, spix, f->mbus_code);
drivers/media/platform/via/via-camera.c
845
ret = sensor_call(cam, pad, set_fmt, &pad_state, &format);
drivers/media/platform/via/via-camera.c
846
v4l2_fill_pix_format(spix, &format.format);
drivers/media/platform/video-mux.c
166
v4l_bound_align_image(&sdformat->format.width, 1, 65536, 0,
drivers/media/platform/video-mux.c
167
&sdformat->format.height, 1, 65536, 0, 0);
drivers/media/platform/video-mux.c
170
switch (sdformat->format.code) {
drivers/media/platform/video-mux.c
261
sdformat->format.code = MEDIA_BUS_FMT_Y8_1X8;
drivers/media/platform/video-mux.c
264
if (sdformat->format.field == V4L2_FIELD_ANY)
drivers/media/platform/video-mux.c
265
sdformat->format.field = V4L2_FIELD_NONE;
drivers/media/platform/video-mux.c
271
sdformat->format = *v4l2_subdev_state_get_format(sd_state,
drivers/media/platform/video-mux.c
274
*mbusformat = sdformat->format;
drivers/media/platform/video-mux.c
278
*source_mbusformat = sdformat->format;
drivers/media/platform/xilinx/xilinx-csi2rxss.c
223
struct v4l2_mbus_framefmt format;
drivers/media/platform/xilinx/xilinx-csi2rxss.c
658
return &xcsi2rxss->format;
drivers/media/platform/xilinx/xilinx-csi2rxss.c
668
struct v4l2_mbus_framefmt *format;
drivers/media/platform/xilinx/xilinx-csi2rxss.c
673
format = v4l2_subdev_state_get_format(sd_state, i);
drivers/media/platform/xilinx/xilinx-csi2rxss.c
674
*format = xcsi2rxss->default_format;
drivers/media/platform/xilinx/xilinx-csi2rxss.c
688
fmt->format = *__xcsi2rxss_get_pad_format(xcsi2rxss, sd_state,
drivers/media/platform/xilinx/xilinx-csi2rxss.c
716
fmt->format = *__format;
drivers/media/platform/xilinx/xilinx-csi2rxss.c
726
dt = xcsi2rxss_get_dt(fmt->format.code);
drivers/media/platform/xilinx/xilinx-csi2rxss.c
730
fmt->format.code = xcsi2rxss_get_nth_mbus(xcsi2rxss->datatype,
drivers/media/platform/xilinx/xilinx-csi2rxss.c
734
*__format = fmt->format;
drivers/media/platform/xilinx/xilinx-csi2rxss.c
971
xcsi2rxss->format = xcsi2rxss->default_format;
drivers/media/platform/xilinx/xilinx-dma.c
295
vb2_set_plane_payload(&buf->buf.vb2_buf, 0, dma->format.sizeimage);
drivers/media/platform/xilinx/xilinx-dma.c
308
return sizes[0] < dma->format.sizeimage ? -EINVAL : 0;
drivers/media/platform/xilinx/xilinx-dma.c
311
sizes[0] = dma->format.sizeimage;
drivers/media/platform/xilinx/xilinx-dma.c
351
dma->sgl.size = dma->format.width * dma->fmtinfo->bpp;
drivers/media/platform/xilinx/xilinx-dma.c
352
dma->sgl.icg = dma->format.bytesperline - dma->sgl.size;
drivers/media/platform/xilinx/xilinx-dma.c
353
dma->xt.numf = dma->format.height;
drivers/media/platform/xilinx/xilinx-dma.c
500
f->pixelformat = dma->format.pixelformat;
drivers/media/platform/xilinx/xilinx-dma.c
506
xvip_dma_get_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/xilinx/xilinx-dma.c
511
format->fmt.pix = dma->format;
drivers/media/platform/xilinx/xilinx-dma.c
566
xvip_dma_try_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/xilinx/xilinx-dma.c
571
__xvip_dma_try_format(dma, &format->fmt.pix, NULL);
drivers/media/platform/xilinx/xilinx-dma.c
576
xvip_dma_set_format(struct file *file, void *fh, struct v4l2_format *format)
drivers/media/platform/xilinx/xilinx-dma.c
582
__xvip_dma_try_format(dma, &format->fmt.pix, &info);
drivers/media/platform/xilinx/xilinx-dma.c
587
dma->format = format->fmt.pix;
drivers/media/platform/xilinx/xilinx-dma.c
643
dma->format.pixelformat = dma->fmtinfo->fourcc;
drivers/media/platform/xilinx/xilinx-dma.c
644
dma->format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/platform/xilinx/xilinx-dma.c
645
dma->format.field = V4L2_FIELD_NONE;
drivers/media/platform/xilinx/xilinx-dma.c
646
dma->format.width = XVIP_DMA_DEF_WIDTH;
drivers/media/platform/xilinx/xilinx-dma.c
647
dma->format.height = XVIP_DMA_DEF_HEIGHT;
drivers/media/platform/xilinx/xilinx-dma.c
648
dma->format.bytesperline = dma->format.width * dma->fmtinfo->bpp;
drivers/media/platform/xilinx/xilinx-dma.c
649
dma->format.sizeimage = dma->format.bytesperline * dma->format.height;
drivers/media/platform/xilinx/xilinx-dma.c
73
if (dma->fmtinfo->code != fmt.format.code ||
drivers/media/platform/xilinx/xilinx-dma.c
74
dma->format.height != fmt.format.height ||
drivers/media/platform/xilinx/xilinx-dma.c
75
dma->format.width != fmt.format.width ||
drivers/media/platform/xilinx/xilinx-dma.c
76
dma->format.colorspace != fmt.format.colorspace)
drivers/media/platform/xilinx/xilinx-dma.h
88
struct v4l2_pix_format format;
drivers/media/platform/xilinx/xilinx-tpg.c
274
fmt->format = *__xtpg_get_pad_format(xtpg, sd_state, fmt->pad,
drivers/media/platform/xilinx/xilinx-tpg.c
294
fmt->format = *__format;
drivers/media/platform/xilinx/xilinx-tpg.c
300
bayer_phase = xtpg_get_bayer_phase(fmt->format.code);
drivers/media/platform/xilinx/xilinx-tpg.c
302
__format->code = fmt->format.code;
drivers/media/platform/xilinx/xilinx-tpg.c
307
fmt->format = *__format;
drivers/media/platform/xilinx/xilinx-tpg.c
313
*__format = fmt->format;
drivers/media/platform/xilinx/xilinx-tpg.c
327
struct v4l2_mbus_framefmt *format;
drivers/media/platform/xilinx/xilinx-tpg.c
329
format = v4l2_subdev_state_get_format(sd_state, fse->pad);
drivers/media/platform/xilinx/xilinx-tpg.c
331
if (fse->index || fse->code != format->code)
drivers/media/platform/xilinx/xilinx-tpg.c
343
fse->min_width = format->width;
drivers/media/platform/xilinx/xilinx-tpg.c
344
fse->max_width = format->width;
drivers/media/platform/xilinx/xilinx-tpg.c
345
fse->min_height = format->height;
drivers/media/platform/xilinx/xilinx-tpg.c
346
fse->max_height = format->height;
drivers/media/platform/xilinx/xilinx-tpg.c
355
struct v4l2_mbus_framefmt *format;
drivers/media/platform/xilinx/xilinx-tpg.c
357
format = v4l2_subdev_state_get_format(fh->state, 0);
drivers/media/platform/xilinx/xilinx-tpg.c
358
*format = xtpg->default_format;
drivers/media/platform/xilinx/xilinx-tpg.c
361
format = v4l2_subdev_state_get_format(fh->state, 1);
drivers/media/platform/xilinx/xilinx-tpg.c
362
*format = xtpg->default_format;
drivers/media/platform/xilinx/xilinx-tpg.c
719
const struct xvip_video_format *format;
drivers/media/platform/xilinx/xilinx-tpg.c
722
format = xvip_of_get_format(port);
drivers/media/platform/xilinx/xilinx-tpg.c
723
if (IS_ERR(format)) {
drivers/media/platform/xilinx/xilinx-tpg.c
725
return PTR_ERR(format);
drivers/media/platform/xilinx/xilinx-tpg.c
730
xtpg->vip_format = format;
drivers/media/platform/xilinx/xilinx-tpg.c
731
} else if (xtpg->vip_format != format) {
drivers/media/platform/xilinx/xilinx-vip.c
124
const struct xvip_video_format *format = &xvip_video_formats[i];
drivers/media/platform/xilinx/xilinx-vip.c
126
if (format->vf_code != vf_code || format->width != width)
drivers/media/platform/xilinx/xilinx-vip.c
130
strcmp(pattern, format->pattern))
drivers/media/platform/xilinx/xilinx-vip.c
133
return format;
drivers/media/platform/xilinx/xilinx-vip.c
149
void xvip_set_format_size(struct v4l2_mbus_framefmt *format,
drivers/media/platform/xilinx/xilinx-vip.c
152
format->width = clamp_t(unsigned int, fmt->format.width,
drivers/media/platform/xilinx/xilinx-vip.c
154
format->height = clamp_t(unsigned int, fmt->format.height,
drivers/media/platform/xilinx/xilinx-vip.c
252
struct v4l2_mbus_framefmt *format;
drivers/media/platform/xilinx/xilinx-vip.c
263
format = v4l2_subdev_state_get_format(sd_state, code->pad);
drivers/media/platform/xilinx/xilinx-vip.c
265
code->code = format->code;
drivers/media/platform/xilinx/xilinx-vip.c
290
struct v4l2_mbus_framefmt *format;
drivers/media/platform/xilinx/xilinx-vip.c
298
format = v4l2_subdev_state_get_format(sd_state, fse->pad);
drivers/media/platform/xilinx/xilinx-vip.c
300
if (fse->index || fse->code != format->code)
drivers/media/platform/xilinx/xilinx-vip.c
312
fse->min_width = format->width;
drivers/media/platform/xilinx/xilinx-vip.c
313
fse->max_width = format->width;
drivers/media/platform/xilinx/xilinx-vip.c
314
fse->min_height = format->height;
drivers/media/platform/xilinx/xilinx-vip.c
315
fse->max_height = format->height;
drivers/media/platform/xilinx/xilinx-vip.c
60
const struct xvip_video_format *format = &xvip_video_formats[i];
drivers/media/platform/xilinx/xilinx-vip.c
62
if (format->code == code)
drivers/media/platform/xilinx/xilinx-vip.c
63
return format;
drivers/media/platform/xilinx/xilinx-vip.c
83
const struct xvip_video_format *format = &xvip_video_formats[i];
drivers/media/platform/xilinx/xilinx-vip.c
85
if (format->fourcc == fourcc)
drivers/media/platform/xilinx/xilinx-vip.c
86
return format;
drivers/media/platform/xilinx/xilinx-vip.h
125
void xvip_set_format_size(struct v4l2_mbus_framefmt *format,
drivers/media/platform/xilinx/xilinx-vip.h
190
const struct v4l2_mbus_framefmt *format)
drivers/media/platform/xilinx/xilinx-vip.h
193
(format->height << XVIP_ACTIVE_VSIZE_SHIFT) |
drivers/media/platform/xilinx/xilinx-vip.h
194
(format->width << XVIP_ACTIVE_HSIZE_SHIFT));
drivers/media/platform/xilinx/xilinx-vip.h
198
struct v4l2_mbus_framefmt *format)
drivers/media/platform/xilinx/xilinx-vip.h
203
format->width = (reg & XVIP_ACTIVE_HSIZE_MASK) >>
drivers/media/platform/xilinx/xilinx-vip.h
205
format->height = (reg & XVIP_ACTIVE_VSIZE_MASK) >>
drivers/media/radio/radio-tea5764.c
38
#define PINFO(format, ...)\
drivers/media/radio/radio-tea5764.c
40
DRIVER_VERSION ": " format "\n", ## __VA_ARGS__)
drivers/media/radio/radio-tea5764.c
41
#define PWARN(format, ...)\
drivers/media/radio/radio-tea5764.c
43
DRIVER_VERSION ": " format "\n", ## __VA_ARGS__)
drivers/media/radio/radio-tea5764.c
44
# define PDEBUG(format, ...)\
drivers/media/radio/radio-tea5764.c
46
DRIVER_VERSION ": " format "\n", ## __VA_ARGS__)
drivers/media/rc/ati_remote.c
136
#define dbginfo(dev, format, arg...) \
drivers/media/rc/ati_remote.c
137
do { if (debug) dev_info(dev , format , ## arg); } while (0)
drivers/media/rc/ene_ir.h
171
#define __dbg(level, format, ...) \
drivers/media/rc/ene_ir.h
174
pr_info(format "\n", ## __VA_ARGS__); \
drivers/media/rc/ene_ir.h
177
#define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__)
drivers/media/rc/ene_ir.h
178
#define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__)
drivers/media/rc/ene_ir.h
179
#define dbg_regs(format, ...) __dbg(3, format, ## __VA_ARGS__)
drivers/media/spi/gs1662.c
228
*timings = reg_fmt[i].format;
drivers/media/spi/gs1662.c
241
if (v4l2_match_dv_timings(timings, ®_fmt[i].format, 0,
drivers/media/spi/gs1662.c
453
gs->current_timings = reg_fmt[0].format;
drivers/media/spi/gs1662.c
55
struct v4l2_dv_timings format;
drivers/media/test-drivers/vimc/vimc-capture.c
101
format->bytesperline = format->width * vpix->bpp;
drivers/media/test-drivers/vimc/vimc-capture.c
102
format->sizeimage = format->bytesperline * format->height;
drivers/media/test-drivers/vimc/vimc-capture.c
104
if (format->field == V4L2_FIELD_ANY)
drivers/media/test-drivers/vimc/vimc-capture.c
105
format->field = fmt_default.field;
drivers/media/test-drivers/vimc/vimc-capture.c
107
vimc_colorimetry_clamp(format);
drivers/media/test-drivers/vimc/vimc-capture.c
109
if (format->colorspace == V4L2_COLORSPACE_DEFAULT)
drivers/media/test-drivers/vimc/vimc-capture.c
110
format->colorspace = fmt_default.colorspace;
drivers/media/test-drivers/vimc/vimc-capture.c
133
vcapture->format.width, vcapture->format.height,
drivers/media/test-drivers/vimc/vimc-capture.c
134
vcapture->format.pixelformat, vcapture->format.colorspace,
drivers/media/test-drivers/vimc/vimc-capture.c
135
vcapture->format.quantization, vcapture->format.xfer_func,
drivers/media/test-drivers/vimc/vimc-capture.c
136
vcapture->format.ycbcr_enc,
drivers/media/test-drivers/vimc/vimc-capture.c
143
vcapture->format = f->fmt.pix;
drivers/media/test-drivers/vimc/vimc-capture.c
19
struct v4l2_pix_format format;
drivers/media/test-drivers/vimc/vimc-capture.c
300
return sizes[0] < vcapture->format.sizeimage ? -EINVAL : 0;
drivers/media/test-drivers/vimc/vimc-capture.c
303
sizes[0] = vcapture->format.sizeimage;
drivers/media/test-drivers/vimc/vimc-capture.c
311
unsigned long size = vcapture->format.sizeimage;
drivers/media/test-drivers/vimc/vimc-capture.c
376
vimc_buf->vb2.field = vcapture->format.field;
drivers/media/test-drivers/vimc/vimc-capture.c
380
memcpy(vbuf, frame, vcapture->format.sizeimage);
drivers/media/test-drivers/vimc/vimc-capture.c
384
vcapture->format.sizeimage);
drivers/media/test-drivers/vimc/vimc-capture.c
444
vcapture->format = fmt_default;
drivers/media/test-drivers/vimc/vimc-capture.c
445
vpix = vimc_pix_map_by_pixelformat(vcapture->format.pixelformat);
drivers/media/test-drivers/vimc/vimc-capture.c
446
vcapture->format.bytesperline = vcapture->format.width * vpix->bpp;
drivers/media/test-drivers/vimc/vimc-capture.c
447
vcapture->format.sizeimage = vcapture->format.bytesperline *
drivers/media/test-drivers/vimc/vimc-capture.c
448
vcapture->format.height;
drivers/media/test-drivers/vimc/vimc-capture.c
70
*fmt = vcapture->format;
drivers/media/test-drivers/vimc/vimc-capture.c
78
f->fmt.pix = vcapture->format;
drivers/media/test-drivers/vimc/vimc-capture.c
86
struct v4l2_pix_format *format = &f->fmt.pix;
drivers/media/test-drivers/vimc/vimc-capture.c
89
format->width = clamp_t(u32, format->width, VIMC_FRAME_MIN_WIDTH,
drivers/media/test-drivers/vimc/vimc-capture.c
91
format->height = clamp_t(u32, format->height, VIMC_FRAME_MIN_HEIGHT,
drivers/media/test-drivers/vimc/vimc-capture.c
95
vpix = vimc_pix_map_by_pixelformat(format->pixelformat);
drivers/media/test-drivers/vimc/vimc-capture.c
97
format->pixelformat = fmt_default.pixelformat;
drivers/media/test-drivers/vimc/vimc-capture.c
98
vpix = vimc_pix_map_by_pixelformat(format->pixelformat);
drivers/media/test-drivers/vimc/vimc-common.c
257
v4l2_fill_pix_format(fmt, &sd_fmt.format);
drivers/media/test-drivers/vimc/vimc-common.c
258
pix_map = vimc_pix_map_by_code(sd_fmt.format.code);
drivers/media/test-drivers/vimc/vimc-debayer.c
247
struct v4l2_mbus_framefmt *format;
drivers/media/test-drivers/vimc/vimc-debayer.c
261
vimc_debayer_adjust_sink_fmt(&fmt->format);
drivers/media/test-drivers/vimc/vimc-debayer.c
263
format = v4l2_subdev_state_get_format(sd_state, 0);
drivers/media/test-drivers/vimc/vimc-debayer.c
269
format->width, format->height, format->code,
drivers/media/test-drivers/vimc/vimc-debayer.c
270
format->colorspace, format->quantization,
drivers/media/test-drivers/vimc/vimc-debayer.c
271
format->xfer_func, format->ycbcr_enc,
drivers/media/test-drivers/vimc/vimc-debayer.c
273
fmt->format.width, fmt->format.height, fmt->format.code,
drivers/media/test-drivers/vimc/vimc-debayer.c
274
fmt->format.colorspace, fmt->format.quantization,
drivers/media/test-drivers/vimc/vimc-debayer.c
275
fmt->format.xfer_func, fmt->format.ycbcr_enc);
drivers/media/test-drivers/vimc/vimc-debayer.c
277
*format = fmt->format;
drivers/media/test-drivers/vimc/vimc-debayer.c
280
format = v4l2_subdev_state_get_format(sd_state, 1);
drivers/media/test-drivers/vimc/vimc-debayer.c
281
*format = fmt->format;
drivers/media/test-drivers/vimc/vimc-debayer.c
282
format->code = VIMC_DEBAYER_SOURCE_MBUS_FMT;
drivers/media/test-drivers/vimc/vimc-scaler.c
144
struct v4l2_subdev_format *format)
drivers/media/test-drivers/vimc/vimc-scaler.c
150
if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE && vscaler->src_frame)
drivers/media/test-drivers/vimc/vimc-scaler.c
153
fmt = v4l2_subdev_state_get_format(sd_state, format->pad);
drivers/media/test-drivers/vimc/vimc-scaler.c
159
if (format->pad == VIMC_SCALER_SINK) {
drivers/media/test-drivers/vimc/vimc-scaler.c
163
vpix = vimc_pix_map_by_code(format->format.code);
drivers/media/test-drivers/vimc/vimc-scaler.c
165
fmt->code = format->format.code;
drivers/media/test-drivers/vimc/vimc-scaler.c
170
fmt->colorspace = format->format.colorspace;
drivers/media/test-drivers/vimc/vimc-scaler.c
171
fmt->ycbcr_enc = format->format.ycbcr_enc;
drivers/media/test-drivers/vimc/vimc-scaler.c
172
fmt->quantization = format->format.quantization;
drivers/media/test-drivers/vimc/vimc-scaler.c
173
fmt->xfer_func = format->format.xfer_func;
drivers/media/test-drivers/vimc/vimc-scaler.c
178
fmt->width = clamp_t(u32, format->format.width, VIMC_FRAME_MIN_WIDTH,
drivers/media/test-drivers/vimc/vimc-scaler.c
180
fmt->height = clamp_t(u32, format->format.height, VIMC_FRAME_MIN_HEIGHT,
drivers/media/test-drivers/vimc/vimc-scaler.c
187
if (format->pad == VIMC_SCALER_SINK) {
drivers/media/test-drivers/vimc/vimc-scaler.c
201
format->format = *fmt;
drivers/media/test-drivers/vimc/vimc-scaler.c
279
const struct v4l2_mbus_framefmt *format;
drivers/media/test-drivers/vimc/vimc-scaler.c
289
format = v4l2_subdev_state_get_format(state, VIMC_SCALER_SINK);
drivers/media/test-drivers/vimc/vimc-scaler.c
290
vscaler->hw.sink_fmt = *format;
drivers/media/test-drivers/vimc/vimc-scaler.c
291
vscaler->hw.bpp = vimc_pix_map_by_code(format->code)->bpp;
drivers/media/test-drivers/vimc/vimc-scaler.c
294
format = v4l2_subdev_state_get_format(state, VIMC_SCALER_SRC);
drivers/media/test-drivers/vimc/vimc-scaler.c
295
vscaler->hw.src_fmt = *format;
drivers/media/test-drivers/vimc/vimc-scaler.c
296
frame_size = format->width * format->height * vscaler->hw.bpp;
drivers/media/test-drivers/vimc/vimc-sensor.c
101
const struct vimc_pix_map *vpix = vimc_pix_map_by_code(format->code);
drivers/media/test-drivers/vimc/vimc-sensor.c
103
tpg_reset_source(&vsensor->tpg, format->width, format->height,
drivers/media/test-drivers/vimc/vimc-sensor.c
104
format->field);
drivers/media/test-drivers/vimc/vimc-sensor.c
105
tpg_s_bytesperline(&vsensor->tpg, 0, format->width * vpix->bpp);
drivers/media/test-drivers/vimc/vimc-sensor.c
106
tpg_s_buf_height(&vsensor->tpg, format->height);
drivers/media/test-drivers/vimc/vimc-sensor.c
109
tpg_s_field(&vsensor->tpg, format->field, false);
drivers/media/test-drivers/vimc/vimc-sensor.c
110
tpg_s_colorspace(&vsensor->tpg, format->colorspace);
drivers/media/test-drivers/vimc/vimc-sensor.c
111
tpg_s_ycbcr_enc(&vsensor->tpg, format->ycbcr_enc);
drivers/media/test-drivers/vimc/vimc-sensor.c
112
tpg_s_quantization(&vsensor->tpg, format->quantization);
drivers/media/test-drivers/vimc/vimc-sensor.c
113
tpg_s_xfer_func(&vsensor->tpg, format->xfer_func);
drivers/media/test-drivers/vimc/vimc-sensor.c
151
vimc_sensor_adjust_fmt(&fmt->format);
drivers/media/test-drivers/vimc/vimc-sensor.c
161
fmt->format.width, fmt->format.height, fmt->format.code,
drivers/media/test-drivers/vimc/vimc-sensor.c
162
fmt->format.colorspace, fmt->format.quantization,
drivers/media/test-drivers/vimc/vimc-sensor.c
163
fmt->format.xfer_func, fmt->format.ycbcr_enc);
drivers/media/test-drivers/vimc/vimc-sensor.c
165
*mf = fmt->format;
drivers/media/test-drivers/vimc/vimc-sensor.c
234
const struct v4l2_mbus_framefmt *format;
drivers/media/test-drivers/vimc/vimc-sensor.c
240
format = v4l2_subdev_state_get_format(state, 0);
drivers/media/test-drivers/vimc/vimc-sensor.c
243
vimc_sensor_tpg_s_format(vsensor, format);
drivers/media/test-drivers/vimc/vimc-sensor.c
246
vpix = vimc_pix_map_by_code(format->code);
drivers/media/test-drivers/vimc/vimc-sensor.c
247
frame_size = format->width * vpix->bpp * format->height;
drivers/media/test-drivers/vimc/vimc-sensor.c
249
vsensor->hw.size.width = format->width;
drivers/media/test-drivers/vimc/vimc-sensor.c
250
vsensor->hw.size.height = format->height;
drivers/media/test-drivers/vimc/vimc-sensor.c
99
const struct v4l2_mbus_framefmt *format)
drivers/media/test-drivers/vivid/vivid-core.c
722
if (p->format.type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE ||
drivers/media/test-drivers/vivid/vivid-core.c
723
p->format.type == V4L2_BUF_TYPE_VBI_CAPTURE) {
drivers/media/test-drivers/vivid/vivid-core.c
724
r = vb2_queue_change_type(vdev->queue, p->format.type);
drivers/media/tuners/mc44s803.c
19
#define mc_printk(level, format, arg...) \
drivers/media/tuners/mc44s803.c
20
printk(level "mc44s803: " format , ## arg)
drivers/media/tuners/tda18271-priv.h
131
__attribute__((format(printf, 4, 5)))
drivers/media/usb/au0828/au0828-video.c
1127
struct v4l2_format *format)
drivers/media/usb/au0828/au0828-video.c
1130
int width = format->fmt.pix.width;
drivers/media/usb/au0828/au0828-video.c
1131
int height = format->fmt.pix.height;
drivers/media/usb/au0828/au0828-video.c
1135
if (format->fmt.pix.pixelformat != V4L2_PIX_FMT_UYVY)
drivers/media/usb/au0828/au0828-video.c
1144
format->fmt.pix.width = width;
drivers/media/usb/au0828/au0828-video.c
1145
format->fmt.pix.height = height;
drivers/media/usb/au0828/au0828-video.c
1146
format->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY;
drivers/media/usb/au0828/au0828-video.c
1147
format->fmt.pix.bytesperline = width * 2;
drivers/media/usb/au0828/au0828-video.c
1148
format->fmt.pix.sizeimage = width * height * 2;
drivers/media/usb/au0828/au0828-video.c
1149
format->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
drivers/media/usb/au0828/au0828-video.c
1150
format->fmt.pix.field = V4L2_FIELD_INTERLACED;
drivers/media/usb/au0828/au0828-video.c
1576
struct v4l2_format *format)
drivers/media/usb/au0828/au0828-video.c
1583
format->fmt.vbi.samples_per_line = dev->vbi_width;
drivers/media/usb/au0828/au0828-video.c
1584
format->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY;
drivers/media/usb/au0828/au0828-video.c
1585
format->fmt.vbi.offset = 0;
drivers/media/usb/au0828/au0828-video.c
1586
format->fmt.vbi.flags = 0;
drivers/media/usb/au0828/au0828-video.c
1587
format->fmt.vbi.sampling_rate = 6750000 * 4 / 2;
drivers/media/usb/au0828/au0828-video.c
1589
format->fmt.vbi.count[0] = dev->vbi_height;
drivers/media/usb/au0828/au0828-video.c
1590
format->fmt.vbi.count[1] = dev->vbi_height;
drivers/media/usb/au0828/au0828-video.c
1591
format->fmt.vbi.start[0] = 21;
drivers/media/usb/au0828/au0828-video.c
1592
format->fmt.vbi.start[1] = 284;
drivers/media/usb/au0828/au0828-video.c
1593
memset(format->fmt.vbi.reserved, 0, sizeof(format->fmt.vbi.reserved));
drivers/media/usb/cx231xx/cx231xx-417.c
1661
struct v4l2_subdev_format format = {
drivers/media/usb/cx231xx/cx231xx-417.c
1666
format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1);
drivers/media/usb/cx231xx/cx231xx-417.c
1667
format.format.height = cxhdl->height;
drivers/media/usb/cx231xx/cx231xx-417.c
1668
format.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/usb/cx231xx/cx231xx-417.c
1669
v4l2_subdev_call(dev->sd_cx25840, pad, set_fmt, NULL, &format);
drivers/media/usb/cx231xx/cx231xx-video.c
1400
if (unlikely(f->index >= ARRAY_SIZE(format)))
drivers/media/usb/cx231xx/cx231xx-video.c
1403
f->pixelformat = format[f->index].fourcc;
drivers/media/usb/cx231xx/cx231xx-video.c
1768
dev->format = &format[0];
drivers/media/usb/cx231xx/cx231xx-video.c
719
dev->size = (dev->width * dev->height * dev->format->depth + 7) >> 3;
drivers/media/usb/cx231xx/cx231xx-video.c
81
static struct cx231xx_fmt format[] = {
drivers/media/usb/cx231xx/cx231xx-video.c
835
f->fmt.pix.pixelformat = dev->format->fourcc;
drivers/media/usb/cx231xx/cx231xx-video.c
836
f->fmt.pix.bytesperline = (dev->width * dev->format->depth + 7) >> 3;
drivers/media/usb/cx231xx/cx231xx-video.c
849
for (i = 0; i < ARRAY_SIZE(format); i++)
drivers/media/usb/cx231xx/cx231xx-video.c
850
if (format[i].fourcc == fourcc)
drivers/media/usb/cx231xx/cx231xx-video.c
851
return &format[i];
drivers/media/usb/cx231xx/cx231xx-video.c
892
struct v4l2_subdev_format format = {
drivers/media/usb/cx231xx/cx231xx-video.c
909
dev->format = format_by_fourcc(f->fmt.pix.pixelformat);
drivers/media/usb/cx231xx/cx231xx-video.c
911
v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
drivers/media/usb/cx231xx/cx231xx-video.c
912
call_all(dev, pad, set_fmt, NULL, &format);
drivers/media/usb/cx231xx/cx231xx-video.c
913
v4l2_fill_pix_format(&f->fmt.pix, &format.format);
drivers/media/usb/cx231xx/cx231xx-video.c
929
struct v4l2_subdev_format format = {
drivers/media/usb/cx231xx/cx231xx-video.c
950
format.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/usb/cx231xx/cx231xx-video.c
951
format.format.width = dev->width;
drivers/media/usb/cx231xx/cx231xx-video.c
952
format.format.height = dev->height;
drivers/media/usb/cx231xx/cx231xx-video.c
953
call_all(dev, pad, set_fmt, NULL, &format);
drivers/media/usb/cx231xx/cx231xx.h
582
struct cx231xx_fmt *format;
drivers/media/usb/dvb-usb/cxusb-analog.c
1028
subfmt.format.width = f->fmt.pix.width & ~1;
drivers/media/usb/dvb-usb/cxusb-analog.c
1029
subfmt.format.height = f->fmt.pix.height & ~1;
drivers/media/usb/dvb-usb/cxusb-analog.c
1030
subfmt.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/usb/dvb-usb/cxusb-analog.c
1031
subfmt.format.field = field;
drivers/media/usb/dvb-usb/cxusb-analog.c
1032
subfmt.format.colorspace = V4L2_COLORSPACE_SMPTE170M;
drivers/media/usb/dvb-usb/cxusb-analog.c
1038
f->fmt.pix.width = subfmt.format.width;
drivers/media/usb/dvb-usb/cxusb-analog.c
1039
f->fmt.pix.height = subfmt.format.height;
drivers/media/usb/dvb-usb/cxusb-analog.c
1510
subfmt.format.width = cxdev->width;
drivers/media/usb/dvb-usb/cxusb-analog.c
1511
subfmt.format.height = cxdev->height;
drivers/media/usb/dvb-usb/cxusb-analog.c
1512
subfmt.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/usb/dvb-usb/cxusb-analog.c
1513
subfmt.format.field = V4L2_FIELD_SEQ_TB;
drivers/media/usb/dvb-usb/cxusb-analog.c
1514
subfmt.format.colorspace = V4L2_COLORSPACE_SMPTE170M;
drivers/media/usb/dvb-usb/cxusb-analog.c
1522
cxdev->width = subfmt.format.width;
drivers/media/usb/dvb-usb/cxusb-analog.c
1523
cxdev->height = subfmt.format.height;
drivers/media/usb/dvb-usb/dvb-usb.h
55
#define err(format, arg...) printk(KERN_ERR DVB_USB_LOG_PREFIX ": " format "\n" , ## arg)
drivers/media/usb/dvb-usb/dvb-usb.h
57
#define info(format, arg...) printk(KERN_INFO DVB_USB_LOG_PREFIX ": " format "\n" , ## arg)
drivers/media/usb/dvb-usb/dvb-usb.h
59
#define warn(format, arg...) printk(KERN_WARNING DVB_USB_LOG_PREFIX ": " format "\n" , ## arg)
drivers/media/usb/dvb-usb/pctv452e.c
66
#define ci_dbg(format, arg...) \
drivers/media/usb/dvb-usb/pctv452e.c
70
": " format "\n" , ## arg); \
drivers/media/usb/dvb-usb/ttusb2.c
47
#define ci_dbg(format, arg...) \
drivers/media/usb/dvb-usb/ttusb2.c
51
": %s " format "\n" , __func__, ## arg); \
drivers/media/usb/em28xx/em28xx-camera.c
371
struct v4l2_subdev_format format = {
drivers/media/usb/em28xx/em28xx-camera.c
392
format.format.code = MEDIA_BUS_FMT_YUYV8_2X8;
drivers/media/usb/em28xx/em28xx-camera.c
393
format.format.width = 640;
drivers/media/usb/em28xx/em28xx-camera.c
394
format.format.height = 480;
drivers/media/usb/em28xx/em28xx-camera.c
395
v4l2_subdev_call(subdev, pad, set_fmt, NULL, &format);
drivers/media/usb/em28xx/em28xx-video.c
1035
(v4l2->width * v4l2->height * v4l2->format->depth + 7) >> 3;
drivers/media/usb/em28xx/em28xx-video.c
1057
size = (v4l2->width * v4l2->height * v4l2->format->depth + 7) >> 3;
drivers/media/usb/em28xx/em28xx-video.c
1418
f->fmt.pix.pixelformat = v4l2->format->fourcc;
drivers/media/usb/em28xx/em28xx-video.c
1419
f->fmt.pix.bytesperline = (v4l2->width * v4l2->format->depth + 7) >> 3;
drivers/media/usb/em28xx/em28xx-video.c
1436
for (i = 0; i < ARRAY_SIZE(format); i++)
drivers/media/usb/em28xx/em28xx-video.c
1437
if (format[i].fourcc == fourcc)
drivers/media/usb/em28xx/em28xx-video.c
1438
return &format[i];
drivers/media/usb/em28xx/em28xx-video.c
1457
fmt = &format[0];
drivers/media/usb/em28xx/em28xx-video.c
1515
v4l2->format = fmt;
drivers/media/usb/em28xx/em28xx-video.c
1993
if (unlikely(f->index >= ARRAY_SIZE(format)))
drivers/media/usb/em28xx/em28xx-video.c
1996
f->pixelformat = format[f->index].fourcc;
drivers/media/usb/em28xx/em28xx-video.c
2046
struct v4l2_format *format)
drivers/media/usb/em28xx/em28xx-video.c
2051
format->fmt.vbi.samples_per_line = v4l2->vbi_width;
drivers/media/usb/em28xx/em28xx-video.c
2052
format->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY;
drivers/media/usb/em28xx/em28xx-video.c
2053
format->fmt.vbi.offset = 0;
drivers/media/usb/em28xx/em28xx-video.c
2054
format->fmt.vbi.flags = 0;
drivers/media/usb/em28xx/em28xx-video.c
2055
format->fmt.vbi.sampling_rate = 6750000 * 4 / 2;
drivers/media/usb/em28xx/em28xx-video.c
2056
format->fmt.vbi.count[0] = v4l2->vbi_height;
drivers/media/usb/em28xx/em28xx-video.c
2057
format->fmt.vbi.count[1] = v4l2->vbi_height;
drivers/media/usb/em28xx/em28xx-video.c
2058
memset(format->fmt.vbi.reserved, 0, sizeof(format->fmt.vbi.reserved));
drivers/media/usb/em28xx/em28xx-video.c
2063
format->fmt.vbi.start[0] = 10;
drivers/media/usb/em28xx/em28xx-video.c
2064
format->fmt.vbi.start[1] = 273;
drivers/media/usb/em28xx/em28xx-video.c
2067
format->fmt.vbi.start[0] = 6;
drivers/media/usb/em28xx/em28xx-video.c
2068
format->fmt.vbi.start[1] = 318;
drivers/media/usb/em28xx/em28xx-video.c
208
fmt = v4l2->format->reg;
drivers/media/usb/em28xx/em28xx-video.c
2683
v4l2->format = &format[0];
drivers/media/usb/em28xx/em28xx-video.c
2693
em28xx_set_video_format(dev, format[0].fourcc,
drivers/media/usb/em28xx/em28xx-video.c
93
static struct em28xx_fmt format[] = {
drivers/media/usb/em28xx/em28xx.h
572
struct em28xx_fmt *format;
drivers/media/usb/go7007/go7007-driver.c
503
switch (go->format) {
drivers/media/usb/go7007/go7007-driver.c
591
if ((go->format == V4L2_PIX_FMT_MPEG1 ||
drivers/media/usb/go7007/go7007-driver.c
592
go->format == V4L2_PIX_FMT_MPEG2 ||
drivers/media/usb/go7007/go7007-driver.c
593
go->format == V4L2_PIX_FMT_MPEG4) &&
drivers/media/usb/go7007/go7007-driver.c
646
if (go->format == V4L2_PIX_FMT_MJPEG)
drivers/media/usb/go7007/go7007-driver.c
709
go->format = V4L2_PIX_FMT_MJPEG;
drivers/media/usb/go7007/go7007-fw.c
1089
0xc6c3, go->format == V4L2_PIX_FMT_MPEG4 ? 0 :
drivers/media/usb/go7007/go7007-fw.c
1090
(go->format == V4L2_PIX_FMT_H263 ? 0 : 1),
drivers/media/usb/go7007/go7007-fw.c
1091
0xc680, go->format == V4L2_PIX_FMT_MPEG4 ? 0xf1 :
drivers/media/usb/go7007/go7007-fw.c
1092
(go->format == V4L2_PIX_FMT_H263 ? 0x61 :
drivers/media/usb/go7007/go7007-fw.c
1116
(go->format == V4L2_PIX_FMT_MPEG4 ? 0x11 :
drivers/media/usb/go7007/go7007-fw.c
1117
(go->format == V4L2_PIX_FMT_MPEG1 ? 0x02 :
drivers/media/usb/go7007/go7007-fw.c
1118
(go->format == V4L2_PIX_FMT_MPEG2 ? 0x04 :
drivers/media/usb/go7007/go7007-fw.c
1119
(go->format == V4L2_PIX_FMT_H263 ? 0x08 :
drivers/media/usb/go7007/go7007-fw.c
1121
0xbf0a, (go->format == V4L2_PIX_FMT_MPEG4 ? 8 :
drivers/media/usb/go7007/go7007-fw.c
1122
(go->format == V4L2_PIX_FMT_MPEG1 ? 1 :
drivers/media/usb/go7007/go7007-fw.c
1123
(go->format == V4L2_PIX_FMT_MPEG2 ? 2 :
drivers/media/usb/go7007/go7007-fw.c
1124
(go->format == V4L2_PIX_FMT_H263 ? 4 : 16)))) |
drivers/media/usb/go7007/go7007-fw.c
1341
go->format == V4L2_PIX_FMT_MPEG4 ? 0x0404 : 0,
drivers/media/usb/go7007/go7007-fw.c
1344
((go->format == V4L2_PIX_FMT_MPEG4 ? 1 : 0) << 11) |
drivers/media/usb/go7007/go7007-fw.c
1349
(go->format == V4L2_PIX_FMT_MPEG1 ? 0x89a0 :
drivers/media/usb/go7007/go7007-fw.c
1350
(go->format == V4L2_PIX_FMT_MPEG2 ? 0x89a0 :
drivers/media/usb/go7007/go7007-fw.c
1351
(go->format == V4L2_PIX_FMT_MJPEG ? 0x89a0 :
drivers/media/usb/go7007/go7007-fw.c
1352
(go->format == V4L2_PIX_FMT_MPEG4 ? 0x8920 :
drivers/media/usb/go7007/go7007-fw.c
1353
(go->format == V4L2_PIX_FMT_H263 ? 0x8920 : 0))))),
drivers/media/usb/go7007/go7007-fw.c
1499
switch (go->format) {
drivers/media/usb/go7007/go7007-fw.c
1518
switch (go->format) {
drivers/media/usb/go7007/go7007-fw.c
1552
switch (go->format) {
drivers/media/usb/go7007/go7007-fw.c
447
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4);
drivers/media/usb/go7007/go7007-fw.c
449
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4);
drivers/media/usb/go7007/go7007-fw.c
458
if (go->format == V4L2_PIX_FMT_MPEG2) {
drivers/media/usb/go7007/go7007-fw.c
529
if (go->format == V4L2_PIX_FMT_MPEG1) {
drivers/media/usb/go7007/go7007-fw.c
579
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 20000 : 0x3ffff, 18);
drivers/media/usb/go7007/go7007-fw.c
581
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 112 : 20, 10);
drivers/media/usb/go7007/go7007-fw.c
589
if (go->format == V4L2_PIX_FMT_MPEG2) {
drivers/media/usb/go7007/go7007-fw.c
923
int lambda = (go->format == V4L2_PIX_FMT_MJPEG || go->dvd_mode) ?
drivers/media/usb/go7007/go7007-fw.c
926
int vbv_buffer = go->format == V4L2_PIX_FMT_MJPEG ?
drivers/media/usb/go7007/go7007-priv.h
198
u32 format;
drivers/media/usb/go7007/go7007-v4l2.c
101
if (go->format == V4L2_PIX_FMT_MJPEG) {
drivers/media/usb/go7007/go7007-v4l2.c
114
switch (go->format) {
drivers/media/usb/go7007/go7007-v4l2.c
154
if (go->format == V4L2_PIX_FMT_MPEG2)
drivers/media/usb/go7007/go7007-v4l2.c
238
go->format = fmt->fmt.pix.pixelformat;
drivers/media/usb/go7007/go7007-v4l2.c
245
struct v4l2_subdev_format format = {
drivers/media/usb/go7007/go7007-v4l2.c
249
format.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/usb/go7007/go7007-v4l2.c
250
format.format.width = fmt ? fmt->fmt.pix.width : width;
drivers/media/usb/go7007/go7007-v4l2.c
251
format.format.height = height;
drivers/media/usb/go7007/go7007-v4l2.c
255
call_all(&go->v4l2_dev, pad, set_fmt, NULL, &format);
drivers/media/usb/go7007/go7007-v4l2.c
315
fmt->fmt.pix.pixelformat = go->format;
drivers/media/usb/go7007/go7007-v4l2.c
389
u32 frame_type_flag = get_frame_type_flag(go7007_vb, go->format);
drivers/media/usb/go7007/go7007-v4l2.c
45
static u32 get_frame_type_flag(struct go7007_buffer *vb, int format)
drivers/media/usb/go7007/go7007-v4l2.c
49
switch (format) {
drivers/media/usb/go7007/s2250-board.c
402
struct v4l2_subdev_format *format)
drivers/media/usb/go7007/s2250-board.c
404
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/media/usb/go7007/s2250-board.c
408
if (format->pad)
drivers/media/usb/go7007/s2250-board.c
411
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/media/usb/gspca/cpia1.c
1544
sd->params.format.videoSize = VIDEOSIZE_QCIF;
drivers/media/usb/gspca/cpia1.c
1549
sd->params.format.videoSize = VIDEOSIZE_CIF;
drivers/media/usb/gspca/cpia1.c
1693
data[16] == sd->params.format.videoSize &&
drivers/media/usb/gspca/cpia1.c
1694
data[17] == sd->params.format.subSample &&
drivers/media/usb/gspca/cpia1.c
1695
data[18] == sd->params.format.yuvOrder &&
drivers/media/usb/gspca/cpia1.c
334
} format;
drivers/media/usb/gspca/cpia1.c
679
params->format.subSample = SUBSAMPLE_420;
drivers/media/usb/gspca/cpia1.c
680
params->format.yuvOrder = YUVORDER_YUYV;
drivers/media/usb/gspca/cpia1.c
790
sd->params.format.videoSize,
drivers/media/usb/gspca/cpia1.c
791
sd->params.format.subSample,
drivers/media/usb/gspca/cpia1.c
792
sd->params.format.yuvOrder, 0);
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
2918
struct v4l2_subdev_format format = {
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
2922
format.format.width = hdw->res_hor_val;
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
2923
format.format.height = hdw->res_ver_val;
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
2924
format.format.code = MEDIA_BUS_FMT_FIXED;
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
2926
format.format.width, format.format.height);
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
2928
NULL, &format);
drivers/media/usb/s2255/s2255drv.c
1109
if (mode.format != FORMAT_NTSC) {
drivers/media/usb/s2255/s2255drv.c
1111
mode.format = FORMAT_NTSC;
drivers/media/usb/s2255/s2255drv.c
1118
if (mode.format != FORMAT_PAL) {
drivers/media/usb/s2255/s2255drv.c
1120
mode.format = FORMAT_PAL;
drivers/media/usb/s2255/s2255drv.c
1267
def_num = (vc->mode.format == FORMAT_NTSC) ? 1001 : 1000;
drivers/media/usb/s2255/s2255drv.c
1268
def_dem = (vc->mode.format == FORMAT_NTSC) ? 30000 : 25000;
drivers/media/usb/s2255/s2255drv.c
1307
def_num = (mode.format == FORMAT_NTSC) ? 1001 : 1000;
drivers/media/usb/s2255/s2255drv.c
1308
def_dem = (mode.format == FORMAT_NTSC) ? 30000 : 25000;
drivers/media/usb/s2255/s2255drv.c
134
u32 format; /* input video format (NTSC, PAL) */
drivers/media/usb/s2255/s2255drv.c
875
else if (mode.format != vc->mode.format)
drivers/media/usb/s2255/s2255drv.c
908
if (mode->format == FORMAT_NTSC) {
drivers/media/usb/s2255/s2255drv.c
926
} else if (mode->format == FORMAT_PAL) {
drivers/media/usb/s2255/s2255drv.c
965
dev_info(dev, "format: %d\nscale %d\n", mode->format, mode->scale);
drivers/media/usb/stk1160/stk1160-v4l.c
348
f->pixelformat = format[f->index].fourcc;
drivers/media/usb/stk1160/stk1160-v4l.c
47
static struct stk1160_fmt format[] = {
drivers/media/usb/stk1160/stk1160-v4l.c
824
dev->fmt = &format[0];
drivers/media/usb/uvc/uvc_driver.c
228
struct uvc_format *format, struct uvc_frame *frame,
drivers/media/usb/uvc/uvc_driver.c
298
if (!(format->flags & UVC_FMT_FLAG_COMPRESSED))
drivers/media/usb/uvc/uvc_driver.c
299
frame->dwMaxVideoFrameBufferSize = format->bpp * frame->wWidth
drivers/media/usb/uvc/uvc_driver.c
335
struct uvc_streaming *streaming, struct uvc_format *format,
drivers/media/usb/uvc/uvc_driver.c
351
format->type = buffer[2];
drivers/media/usb/uvc/uvc_driver.c
352
format->index = buffer[3];
drivers/media/usb/uvc/uvc_driver.c
353
format->frames = frames;
drivers/media/usb/uvc/uvc_driver.c
380
format->fcc = fmtdesc->fcc;
drivers/media/usb/uvc/uvc_driver.c
381
format->bpp = buffer[21];
drivers/media/usb/uvc/uvc_driver.c
388
if (format->fcc == V4L2_PIX_FMT_YUYV) {
drivers/media/usb/uvc/uvc_driver.c
389
format->fcc = V4L2_PIX_FMT_GREY;
drivers/media/usb/uvc/uvc_driver.c
390
format->bpp = 8;
drivers/media/usb/uvc/uvc_driver.c
398
v4l2_format_info(format->fcc);
drivers/media/usb/uvc/uvc_driver.c
407
format->bpp = DIV_ROUND_UP(8 * n, div);
drivers/media/usb/uvc/uvc_driver.c
416
format->flags = UVC_FMT_FLAG_COMPRESSED;
drivers/media/usb/uvc/uvc_driver.c
429
format->fcc = V4L2_PIX_FMT_MJPEG;
drivers/media/usb/uvc/uvc_driver.c
430
format->flags = UVC_FMT_FLAG_COMPRESSED;
drivers/media/usb/uvc/uvc_driver.c
431
format->bpp = 0;
drivers/media/usb/uvc/uvc_driver.c
452
format->fcc = V4L2_PIX_FMT_DV;
drivers/media/usb/uvc/uvc_driver.c
453
format->flags = UVC_FMT_FLAG_COMPRESSED | UVC_FMT_FLAG_STREAM;
drivers/media/usb/uvc/uvc_driver.c
454
format->bpp = 0;
drivers/media/usb/uvc/uvc_driver.c
464
format->nframes = 1;
drivers/media/usb/uvc/uvc_driver.c
478
uvc_dbg(dev, DESCR, "Found format %p4cc", &format->fcc);
drivers/media/usb/uvc/uvc_driver.c
490
frame = &frames[format->nframes];
drivers/media/usb/uvc/uvc_driver.c
491
ret = uvc_parse_frame(dev, streaming, format, frame,
drivers/media/usb/uvc/uvc_driver.c
496
format->nframes++;
drivers/media/usb/uvc/uvc_driver.c
518
format->colorspace = uvc_colorspace(buffer[3]);
drivers/media/usb/uvc/uvc_driver.c
519
format->xfer_func = uvc_xfer_func(buffer[4]);
drivers/media/usb/uvc/uvc_driver.c
520
format->ycbcr_enc = uvc_ycbcr_enc(buffer[5]);
drivers/media/usb/uvc/uvc_driver.c
525
format->colorspace = V4L2_COLORSPACE_SRGB;
drivers/media/usb/uvc/uvc_driver.c
535
struct uvc_format *format;
drivers/media/usb/uvc/uvc_driver.c
716
size = nformats * sizeof(*format);
drivers/media/usb/uvc/uvc_driver.c
721
format = kzalloc(size, GFP_KERNEL);
drivers/media/usb/uvc/uvc_driver.c
722
if (!format) {
drivers/media/usb/uvc/uvc_driver.c
727
frame = (void *)format + nformats * sizeof(*format);
drivers/media/usb/uvc/uvc_driver.c
732
streaming->formats = format;
drivers/media/usb/uvc/uvc_driver.c
742
ret = uvc_parse_format(dev, streaming, format, frame,
drivers/media/usb/uvc/uvc_driver.c
750
frame += format->nframes;
drivers/media/usb/uvc/uvc_driver.c
751
format++;
drivers/media/usb/uvc/uvc_metadata.c
105
stream->meta.format = fmt->dataformat;
drivers/media/usb/uvc/uvc_metadata.c
231
stream->meta.format = V4L2_META_FMT_UVC;
drivers/media/usb/uvc/uvc_metadata.c
43
struct v4l2_format *format)
drivers/media/usb/uvc/uvc_metadata.c
47
struct v4l2_meta_format *fmt = &format->fmt.meta;
drivers/media/usb/uvc/uvc_metadata.c
49
if (format->type != vfh->vdev->queue->type)
drivers/media/usb/uvc/uvc_metadata.c
52
fmt->dataformat = stream->meta.format;
drivers/media/usb/uvc/uvc_metadata.c
59
struct v4l2_format *format)
drivers/media/usb/uvc/uvc_metadata.c
64
struct v4l2_meta_format *fmt = &format->fmt.meta;
drivers/media/usb/uvc/uvc_metadata.c
67
if (format->type != vfh->vdev->queue->type)
drivers/media/usb/uvc/uvc_metadata.c
86
struct v4l2_format *format)
drivers/media/usb/uvc/uvc_metadata.c
90
struct v4l2_meta_format *fmt = &format->fmt.meta;
drivers/media/usb/uvc/uvc_metadata.c
93
ret = uvc_meta_v4l2_try_format(file, priv, format);
drivers/media/usb/uvc/uvc_v4l2.c
1000
if (i == format->nframes)
drivers/media/usb/uvc/uvc_v4l2.c
223
static u32 uvc_v4l2_get_bytesperline(const struct uvc_format *format,
drivers/media/usb/uvc/uvc_v4l2.c
226
switch (format->fcc) {
drivers/media/usb/uvc/uvc_v4l2.c
234
return format->bpp * frame->wWidth / 8;
drivers/media/usb/uvc/uvc_v4l2.c
243
const struct uvc_format *format = NULL;
drivers/media/usb/uvc/uvc_v4l2.c
266
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_v4l2.c
267
if (format->fcc == fmt->fmt.pix.pixelformat)
drivers/media/usb/uvc/uvc_v4l2.c
272
format = stream->def_format;
drivers/media/usb/uvc/uvc_v4l2.c
273
fmt->fmt.pix.pixelformat = format->fcc;
drivers/media/usb/uvc/uvc_v4l2.c
285
for (i = 0; i < format->nframes; ++i) {
drivers/media/usb/uvc/uvc_v4l2.c
286
u16 w = format->frames[i].wWidth;
drivers/media/usb/uvc/uvc_v4l2.c
287
u16 h = format->frames[i].wHeight;
drivers/media/usb/uvc/uvc_v4l2.c
293
frame = &format->frames[i];
drivers/media/usb/uvc/uvc_v4l2.c
316
probe->bFormatIndex = format->index;
drivers/media/usb/uvc/uvc_v4l2.c
349
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_v4l2.c
359
for (i = 0; i < format->nframes; ++i) {
drivers/media/usb/uvc/uvc_v4l2.c
360
if (probe->bFrameIndex == format->frames[i].bFrameIndex) {
drivers/media/usb/uvc/uvc_v4l2.c
361
frame = &format->frames[i];
drivers/media/usb/uvc/uvc_v4l2.c
366
if (i == format->nframes)
drivers/media/usb/uvc/uvc_v4l2.c
374
fmt->fmt.pix.bytesperline = uvc_v4l2_get_bytesperline(format, frame);
drivers/media/usb/uvc/uvc_v4l2.c
376
fmt->fmt.pix.pixelformat = format->fcc;
drivers/media/usb/uvc/uvc_v4l2.c
377
fmt->fmt.pix.colorspace = format->colorspace;
drivers/media/usb/uvc/uvc_v4l2.c
378
fmt->fmt.pix.xfer_func = format->xfer_func;
drivers/media/usb/uvc/uvc_v4l2.c
379
fmt->fmt.pix.ycbcr_enc = format->ycbcr_enc;
drivers/media/usb/uvc/uvc_v4l2.c
382
*uvc_format = format;
drivers/media/usb/uvc/uvc_v4l2.c
394
const struct uvc_format *format;
drivers/media/usb/uvc/uvc_v4l2.c
400
format = stream->cur_format;
drivers/media/usb/uvc/uvc_v4l2.c
403
if (!format || !frame)
drivers/media/usb/uvc/uvc_v4l2.c
406
fmt->fmt.pix.pixelformat = format->fcc;
drivers/media/usb/uvc/uvc_v4l2.c
410
fmt->fmt.pix.bytesperline = uvc_v4l2_get_bytesperline(format, frame);
drivers/media/usb/uvc/uvc_v4l2.c
412
fmt->fmt.pix.colorspace = format->colorspace;
drivers/media/usb/uvc/uvc_v4l2.c
413
fmt->fmt.pix.xfer_func = format->xfer_func;
drivers/media/usb/uvc/uvc_v4l2.c
414
fmt->fmt.pix.ycbcr_enc = format->ycbcr_enc;
drivers/media/usb/uvc/uvc_v4l2.c
425
const struct uvc_format *format;
drivers/media/usb/uvc/uvc_v4l2.c
432
ret = uvc_v4l2_try_format(stream, fmt, &probe, &format, &frame);
drivers/media/usb/uvc/uvc_v4l2.c
440
stream->cur_format = format;
drivers/media/usb/uvc/uvc_v4l2.c
487
const struct uvc_format *format;
drivers/media/usb/uvc/uvc_v4l2.c
509
format = stream->cur_format;
drivers/media/usb/uvc/uvc_v4l2.c
516
for (i = 0; i < format->nframes && maxd != 0; i++) {
drivers/media/usb/uvc/uvc_v4l2.c
519
if (&format->frames[i] == stream->cur_frame)
drivers/media/usb/uvc/uvc_v4l2.c
522
if (format->frames[i].wWidth != stream->cur_frame->wWidth ||
drivers/media/usb/uvc/uvc_v4l2.c
523
format->frames[i].wHeight != stream->cur_frame->wHeight)
drivers/media/usb/uvc/uvc_v4l2.c
526
ival = uvc_try_frame_interval(&format->frames[i], interval);
drivers/media/usb/uvc/uvc_v4l2.c
531
frame = &format->frames[i];
drivers/media/usb/uvc/uvc_v4l2.c
624
const struct uvc_format *format;
drivers/media/usb/uvc/uvc_v4l2.c
634
format = &stream->formats[fmt->index];
drivers/media/usb/uvc/uvc_v4l2.c
636
if (format->flags & UVC_FMT_FLAG_COMPRESSED)
drivers/media/usb/uvc/uvc_v4l2.c
638
fmt->pixelformat = format->fcc;
drivers/media/usb/uvc/uvc_v4l2.c
933
const struct uvc_format *format = NULL;
drivers/media/usb/uvc/uvc_v4l2.c
941
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_v4l2.c
945
if (format == NULL)
drivers/media/usb/uvc/uvc_v4l2.c
949
for (i = 0, index = 0; i < format->nframes; i++) {
drivers/media/usb/uvc/uvc_v4l2.c
950
if (frame && frame->wWidth == format->frames[i].wWidth &&
drivers/media/usb/uvc/uvc_v4l2.c
951
frame->wHeight == format->frames[i].wHeight)
drivers/media/usb/uvc/uvc_v4l2.c
953
frame = &format->frames[i];
drivers/media/usb/uvc/uvc_v4l2.c
959
if (i == format->nframes)
drivers/media/usb/uvc/uvc_v4l2.c
973
const struct uvc_format *format = NULL;
drivers/media/usb/uvc/uvc_v4l2.c
982
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_v4l2.c
986
if (format == NULL)
drivers/media/usb/uvc/uvc_v4l2.c
990
for (i = 0; i < format->nframes; i++) {
drivers/media/usb/uvc/uvc_v4l2.c
991
if (format->frames[i].wWidth == fival->width &&
drivers/media/usb/uvc/uvc_v4l2.c
992
format->frames[i].wHeight == fival->height) {
drivers/media/usb/uvc/uvc_v4l2.c
993
frame = &format->frames[i];
drivers/media/usb/uvc/uvc_video.c
1443
if (stream->meta.format == V4L2_META_FMT_UVC)
drivers/media/usb/uvc/uvc_video.c
166
const struct uvc_format *format = NULL;
drivers/media/usb/uvc/uvc_video.c
196
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_video.c
201
if (format == NULL)
drivers/media/usb/uvc/uvc_video.c
204
for (i = 0; i < format->nframes; ++i) {
drivers/media/usb/uvc/uvc_video.c
205
if (format->frames[i].bFrameIndex == ctrl->bFrameIndex) {
drivers/media/usb/uvc/uvc_video.c
206
frame = &format->frames[i];
drivers/media/usb/uvc/uvc_video.c
214
if (!(format->flags & UVC_FMT_FLAG_COMPRESSED) ||
drivers/media/usb/uvc/uvc_video.c
2178
const struct uvc_format *format = NULL;
drivers/media/usb/uvc/uvc_video.c
2239
format = &stream->formats[i-1];
drivers/media/usb/uvc/uvc_video.c
2240
if (format->index == probe->bFormatIndex)
drivers/media/usb/uvc/uvc_video.c
2244
if (format->nframes == 0) {
drivers/media/usb/uvc/uvc_video.c
2256
for (i = format->nframes; i > 0; --i) {
drivers/media/usb/uvc/uvc_video.c
2257
frame = &format->frames[i-1];
drivers/media/usb/uvc/uvc_video.c
2262
probe->bFormatIndex = format->index;
drivers/media/usb/uvc/uvc_video.c
2265
stream->def_format = format;
drivers/media/usb/uvc/uvc_video.c
2266
stream->cur_format = format;
drivers/media/usb/uvc/uvc_video.c
229
if (!(format->flags & UVC_FMT_FLAG_COMPRESSED) &&
drivers/media/usb/uvc/uvc_video.c
246
bandwidth = frame->wWidth * frame->wHeight / 8 * format->bpp;
drivers/media/usb/uvc/uvcvideo.h
484
u32 format;
drivers/media/v4l2-core/v4l2-common.c
245
const struct v4l2_format_info *v4l2_format_info(u32 format)
drivers/media/v4l2-core/v4l2-common.c
249
{ .format = V4L2_PIX_FMT_BGR24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
250
{ .format = V4L2_PIX_FMT_RGB24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
251
{ .format = V4L2_PIX_FMT_HSV24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
252
{ .format = V4L2_PIX_FMT_BGR32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
253
{ .format = V4L2_PIX_FMT_XBGR32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
254
{ .format = V4L2_PIX_FMT_BGRX32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
255
{ .format = V4L2_PIX_FMT_RGB32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
256
{ .format = V4L2_PIX_FMT_XRGB32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
257
{ .format = V4L2_PIX_FMT_RGBX32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
258
{ .format = V4L2_PIX_FMT_HSV32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
259
{ .format = V4L2_PIX_FMT_ARGB32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
260
{ .format = V4L2_PIX_FMT_RGBA32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
261
{ .format = V4L2_PIX_FMT_ABGR32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
262
{ .format = V4L2_PIX_FMT_BGRA32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
263
{ .format = V4L2_PIX_FMT_RGB565, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
264
{ .format = V4L2_PIX_FMT_RGB565X, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
265
{ .format = V4L2_PIX_FMT_RGB555, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
266
{ .format = V4L2_PIX_FMT_BGR666, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
267
{ .format = V4L2_PIX_FMT_BGR48_12, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 6, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
268
{ .format = V4L2_PIX_FMT_BGR48, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 6, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
269
{ .format = V4L2_PIX_FMT_RGB48, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 6, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
270
{ .format = V4L2_PIX_FMT_ABGR64_12, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 8, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
271
{ .format = V4L2_PIX_FMT_RGBA1010102, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
272
{ .format = V4L2_PIX_FMT_RGBX1010102, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
273
{ .format = V4L2_PIX_FMT_ARGB2101010, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
276
{ .format = V4L2_PIX_FMT_YUYV, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
277
{ .format = V4L2_PIX_FMT_YVYU, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
278
{ .format = V4L2_PIX_FMT_UYVY, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
279
{ .format = V4L2_PIX_FMT_VYUY, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
280
{ .format = V4L2_PIX_FMT_Y210, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
281
{ .format = V4L2_PIX_FMT_Y212, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
282
{ .format = V4L2_PIX_FMT_Y216, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
283
{ .format = V4L2_PIX_FMT_YUV48_12, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 6, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
284
{ .format = V4L2_PIX_FMT_MT2110T, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 5, 10, 0, 0 }, .bpp_div = { 4, 4, 1, 1 }, .hdiv = 2, .vdiv = 2,
drivers/media/v4l2-core/v4l2-common.c
286
{ .format = V4L2_PIX_FMT_MT2110R, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 5, 10, 0, 0 }, .bpp_div = { 4, 4, 1, 1 }, .hdiv = 2, .vdiv = 2,
drivers/media/v4l2-core/v4l2-common.c
290
{ .format = V4L2_PIX_FMT_NV12, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
291
{ .format = V4L2_PIX_FMT_NV21, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
292
{ .format = V4L2_PIX_FMT_NV15, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 5, 10, 0, 0 }, .bpp_div = { 4, 4, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
293
{ .format = V4L2_PIX_FMT_NV16, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
294
{ .format = V4L2_PIX_FMT_NV61, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
295
{ .format = V4L2_PIX_FMT_NV20, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 5, 10, 0, 0 }, .bpp_div = { 4, 4, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
296
{ .format = V4L2_PIX_FMT_NV24, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
297
{ .format = V4L2_PIX_FMT_NV42, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
298
{ .format = V4L2_PIX_FMT_P010, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 2, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
299
{ .format = V4L2_PIX_FMT_P012, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 2, 4, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
301
{ .format = V4L2_PIX_FMT_YUV410, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 4, .vdiv = 4 },
drivers/media/v4l2-core/v4l2-common.c
302
{ .format = V4L2_PIX_FMT_YVU410, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 4, .vdiv = 4 },
drivers/media/v4l2-core/v4l2-common.c
303
{ .format = V4L2_PIX_FMT_YUV411P, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 4, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
304
{ .format = V4L2_PIX_FMT_YUV420, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
305
{ .format = V4L2_PIX_FMT_YVU420, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
306
{ .format = V4L2_PIX_FMT_YUV422P, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
307
{ .format = V4L2_PIX_FMT_GREY, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
310
{ .format = V4L2_PIX_FMT_NV12_4L4, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
311
{ .format = V4L2_PIX_FMT_NV15_4L4, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 5, 10, 0, 0 }, .bpp_div = { 4, 4, 1, 1 }, .hdiv = 2, .vdiv = 2,
drivers/media/v4l2-core/v4l2-common.c
313
{ .format = V4L2_PIX_FMT_P010_4L4, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 2, .bpp = { 2, 4, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
316
{ .format = V4L2_PIX_FMT_YUV420M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 3, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
317
{ .format = V4L2_PIX_FMT_YVU420M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 3, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
318
{ .format = V4L2_PIX_FMT_YUV422M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 3, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
319
{ .format = V4L2_PIX_FMT_YVU422M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 3, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
320
{ .format = V4L2_PIX_FMT_YUV444M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 3, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
321
{ .format = V4L2_PIX_FMT_YVU444M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 3, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
323
{ .format = V4L2_PIX_FMT_NV12M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
324
{ .format = V4L2_PIX_FMT_NV21M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
325
{ .format = V4L2_PIX_FMT_NV16M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
326
{ .format = V4L2_PIX_FMT_NV61M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
327
{ .format = V4L2_PIX_FMT_P012M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 2, 4, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2 },
drivers/media/v4l2-core/v4l2-common.c
330
{ .format = V4L2_PIX_FMT_NV12MT, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2,
drivers/media/v4l2-core/v4l2-common.c
332
{ .format = V4L2_PIX_FMT_NV12MT_16X16, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 1, 2, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 2,
drivers/media/v4l2-core/v4l2-common.c
336
{ .format = V4L2_PIX_FMT_SBGGR8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
337
{ .format = V4L2_PIX_FMT_SGBRG8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
338
{ .format = V4L2_PIX_FMT_SGRBG8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
339
{ .format = V4L2_PIX_FMT_SRGGB8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
340
{ .format = V4L2_PIX_FMT_SBGGR10, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
341
{ .format = V4L2_PIX_FMT_SGBRG10, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
342
{ .format = V4L2_PIX_FMT_SGRBG10, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
343
{ .format = V4L2_PIX_FMT_SRGGB10, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
344
{ .format = V4L2_PIX_FMT_SBGGR10P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 5, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
345
{ .format = V4L2_PIX_FMT_SGBRG10P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 5, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
346
{ .format = V4L2_PIX_FMT_SGRBG10P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 5, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
347
{ .format = V4L2_PIX_FMT_SRGGB10P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 5, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
348
{ .format = V4L2_PIX_FMT_SBGGR10ALAW8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
349
{ .format = V4L2_PIX_FMT_SGBRG10ALAW8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
350
{ .format = V4L2_PIX_FMT_SGRBG10ALAW8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
351
{ .format = V4L2_PIX_FMT_SRGGB10ALAW8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
352
{ .format = V4L2_PIX_FMT_SBGGR10DPCM8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
353
{ .format = V4L2_PIX_FMT_SGBRG10DPCM8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
354
{ .format = V4L2_PIX_FMT_SGRBG10DPCM8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
355
{ .format = V4L2_PIX_FMT_SRGGB10DPCM8, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
356
{ .format = V4L2_PIX_FMT_SBGGR12, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
357
{ .format = V4L2_PIX_FMT_SGBRG12, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
358
{ .format = V4L2_PIX_FMT_SGRBG12, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
359
{ .format = V4L2_PIX_FMT_SRGGB12, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
360
{ .format = V4L2_PIX_FMT_SBGGR12P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 2, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
361
{ .format = V4L2_PIX_FMT_SGBRG12P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 2, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
362
{ .format = V4L2_PIX_FMT_SGRBG12P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 2, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
363
{ .format = V4L2_PIX_FMT_SRGGB12P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 2, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
364
{ .format = V4L2_PIX_FMT_SBGGR14, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
365
{ .format = V4L2_PIX_FMT_SGBRG14, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
366
{ .format = V4L2_PIX_FMT_SGRBG14, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
367
{ .format = V4L2_PIX_FMT_SRGGB14, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
368
{ .format = V4L2_PIX_FMT_SBGGR14P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 7, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
369
{ .format = V4L2_PIX_FMT_SGBRG14P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 7, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
370
{ .format = V4L2_PIX_FMT_SGRBG14P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 7, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
371
{ .format = V4L2_PIX_FMT_SRGGB14P, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 7, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
372
{ .format = V4L2_PIX_FMT_SBGGR16, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
373
{ .format = V4L2_PIX_FMT_SGBRG16, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
374
{ .format = V4L2_PIX_FMT_SGRBG16, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
375
{ .format = V4L2_PIX_FMT_SRGGB16, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
378
{ .format = V4L2_PIX_FMT_RAW_CRU10, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 8, 0, 0, 0 }, .bpp_div = { 6, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
379
{ .format = V4L2_PIX_FMT_RAW_CRU12, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 8, 0, 0, 0 }, .bpp_div = { 5, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
380
{ .format = V4L2_PIX_FMT_RAW_CRU14, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 8, 0, 0, 0 }, .bpp_div = { 4, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
381
{ .format = V4L2_PIX_FMT_RAW_CRU20, .pixel_enc = V4L2_PIXEL_ENC_BAYER, .mem_planes = 1, .comp_planes = 1, .bpp = { 8, 0, 0, 0 }, .bpp_div = { 3, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 },
drivers/media/v4l2-core/v4l2-common.c
386
if (formats[i].format == format)
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
128
struct v4l2_format32 format;
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
178
offsetof(struct v4l2_create_buffers32, format)))
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
185
return get_v4l2_format32(&p64->format, &p32->format);
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
228
offsetof(struct v4l2_create_buffers32, format)) ||
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
234
return put_v4l2_format32(&p64->format, &p32->format);
drivers/media/v4l2-core/v4l2-ioctl.c
2206
int ret = check_fmt(file, create->format.type);
drivers/media/v4l2-core/v4l2-ioctl.c
2213
v4l_sanitize_format(&create->format);
drivers/media/v4l2-core/v4l2-ioctl.c
2221
if (create->format.type == V4L2_BUF_TYPE_VIDEO_CAPTURE ||
drivers/media/v4l2-core/v4l2-ioctl.c
2222
create->format.type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
drivers/media/v4l2-core/v4l2-ioctl.c
2223
create->format.fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC;
drivers/media/v4l2-core/v4l2-ioctl.c
490
v4l_print_format(&p->format, write_only);
drivers/media/v4l2-core/v4l2-ioctl.c
654
p->start.speed, p->start.format);
drivers/media/v4l2-core/v4l2-mem2mem.c
1490
dc->start.format = V4L2_DEC_START_FMT_NONE;
drivers/media/v4l2-core/v4l2-mem2mem.c
839
vq = v4l2_m2m_get_vq(m2m_ctx, create->format.type);
drivers/media/v4l2-core/v4l2-subdev.c
1272
if (source_fmt->format.width != sink_fmt->format.width) {
drivers/media/v4l2-core/v4l2-subdev.c
1276
source_fmt->format.width, sink_fmt->format.width);
drivers/media/v4l2-core/v4l2-subdev.c
1280
if (source_fmt->format.height != sink_fmt->format.height) {
drivers/media/v4l2-core/v4l2-subdev.c
1284
source_fmt->format.height, sink_fmt->format.height);
drivers/media/v4l2-core/v4l2-subdev.c
1288
if (source_fmt->format.code != sink_fmt->format.code) {
drivers/media/v4l2-core/v4l2-subdev.c
1292
source_fmt->format.code, sink_fmt->format.code);
drivers/media/v4l2-core/v4l2-subdev.c
1300
if (source_fmt->format.field != sink_fmt->format.field &&
drivers/media/v4l2-core/v4l2-subdev.c
1301
sink_fmt->format.field != V4L2_FIELD_NONE) {
drivers/media/v4l2-core/v4l2-subdev.c
1305
source_fmt->format.field, sink_fmt->format.field);
drivers/media/v4l2-core/v4l2-subdev.c
1751
return &state->pads[pad].format;
drivers/media/v4l2-core/v4l2-subdev.c
1923
struct v4l2_subdev_format *format)
drivers/media/v4l2-core/v4l2-subdev.c
1927
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/v4l2-core/v4l2-subdev.c
1931
format->format = *fmt;
drivers/media/v4l2-core/v4l2-subdev.c
238
struct v4l2_subdev_format *format)
drivers/media/v4l2-core/v4l2-subdev.c
240
if (!format)
drivers/media/v4l2-core/v4l2-subdev.c
243
return check_which(format->which) ? : check_pad(sd, format->pad) ? :
drivers/media/v4l2-core/v4l2-subdev.c
244
check_state(sd, state, format->which, format->pad, format->stream);
drivers/media/v4l2-core/v4l2-subdev.c
249
struct v4l2_subdev_format *format)
drivers/media/v4l2-core/v4l2-subdev.c
251
return check_format(sd, state, format) ? :
drivers/media/v4l2-core/v4l2-subdev.c
252
sd->ops->pad->get_fmt(sd, state, format);
drivers/media/v4l2-core/v4l2-subdev.c
257
struct v4l2_subdev_format *format)
drivers/media/v4l2-core/v4l2-subdev.c
259
return check_format(sd, state, format) ? :
drivers/media/v4l2-core/v4l2-subdev.c
260
sd->ops->pad->set_fmt(sd, state, format);
drivers/media/v4l2-core/v4l2-subdev.c
787
struct v4l2_subdev_format *format = arg;
drivers/media/v4l2-core/v4l2-subdev.c
790
format->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
792
memset(format->reserved, 0, sizeof(format->reserved));
drivers/media/v4l2-core/v4l2-subdev.c
793
memset(format->format.reserved, 0, sizeof(format->format.reserved));
drivers/media/v4l2-core/v4l2-subdev.c
794
return v4l2_subdev_call(sd, pad, get_fmt, state, format);
drivers/media/v4l2-core/v4l2-subdev.c
798
struct v4l2_subdev_format *format = arg;
drivers/media/v4l2-core/v4l2-subdev.c
800
if (format->which != V4L2_SUBDEV_FORMAT_TRY && ro_subdev)
drivers/media/v4l2-core/v4l2-subdev.c
804
format->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
806
memset(format->reserved, 0, sizeof(format->reserved));
drivers/media/v4l2-core/v4l2-subdev.c
807
memset(format->format.reserved, 0, sizeof(format->format.reserved));
drivers/media/v4l2-core/v4l2-subdev.c
808
return v4l2_subdev_call(sd, pad, set_fmt, state, format);
drivers/memstick/core/memstick.c
144
#define MEMSTICK_ATTR(name, format) \
drivers/memstick/core/memstick.c
150
return sprintf(buf, format, card->id.name); \
drivers/memstick/core/ms_block.h
276
#define __dbg(level, format, ...) \
drivers/memstick/core/ms_block.h
279
pr_err(format "\n", ## __VA_ARGS__); \
drivers/memstick/core/ms_block.h
283
#define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__)
drivers/memstick/core/ms_block.h
284
#define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__)
drivers/memstick/host/r592.h
157
#define message(format, ...) \
drivers/memstick/host/r592.h
158
printk(KERN_INFO DRV_NAME ": " format "\n", ## __VA_ARGS__)
drivers/memstick/host/r592.h
160
#define __dbg(level, format, ...) \
drivers/memstick/host/r592.h
164
": " format "\n", ## __VA_ARGS__); \
drivers/memstick/host/r592.h
168
#define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__)
drivers/memstick/host/r592.h
169
#define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__)
drivers/memstick/host/r592.h
170
#define dbg_reg(format, ...) __dbg(3, format, ## __VA_ARGS__)
drivers/mfd/ls2k-bmc-core.c
455
pd->format = depth == 32 ? "a8r8g8b8" : "r5g6b5";
drivers/mfd/mc13xxx-core.c
366
const char *format, void *pdata, size_t pdata_size)
drivers/mfd/mc13xxx-core.c
377
if (snprintf(buf, sizeof(buf), format, name) > sizeof(buf))
drivers/mfd/mc13xxx-core.c
388
static int mc13xxx_add_subdevice(struct mc13xxx *mc13xxx, const char *format)
drivers/mfd/mc13xxx-core.c
390
return mc13xxx_add_subdevice_pdata(mc13xxx, format, NULL, 0);
drivers/mfd/wm8350-core.c
50
#define ldbg(format, arg...) printk(format, ## arg)
drivers/mfd/wm8350-core.c
52
#define ldbg(format, arg...)
drivers/misc/cb710/debug.c
58
const char *const format = cb710_regf_##t; \
drivers/misc/cb710/debug.c
72
p += sprintf(p, format, reg[j]); \
drivers/misc/mei/client.h
277
#define cl_dbg(dev, cl, format, arg...) \
drivers/misc/mei/client.h
278
dev_dbg(&(dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
drivers/misc/mei/client.h
280
#define cl_warn(dev, cl, format, arg...) \
drivers/misc/mei/client.h
281
dev_warn(&(dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
drivers/misc/mei/client.h
283
#define cl_err(dev, cl, format, arg...) \
drivers/misc/mei/client.h
284
dev_err(&(dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
drivers/most/most_snd.c
329
int width = snd_pcm_format_physical_width(runtime->format);
drivers/most/most_snd.c
334
if (snd_pcm_format_big_endian(runtime->format) || width == 8)
drivers/most/most_snd.c
343
if (snd_pcm_format_big_endian(runtime->format) || width == 8)
drivers/mtd/maps/pcmciamtd.c
24
#define info(format, arg...) printk(KERN_INFO "pcmciamtd: " format "\n" , ## arg)
drivers/mtd/maps/pcmciamtd.c
340
cistpl_format_t *t = &parse.format;
drivers/mtd/nand/raw/r852.h
145
#define dbg(format, ...) \
drivers/mtd/nand/raw/r852.h
147
pr_debug(format "\n", ## __VA_ARGS__)
drivers/mtd/nand/raw/r852.h
149
#define dbg_verbose(format, ...) \
drivers/mtd/nand/raw/r852.h
151
pr_debug(format "\n", ## __VA_ARGS__)
drivers/mtd/nand/raw/r852.h
154
#define message(format, ...) \
drivers/mtd/nand/raw/r852.h
155
pr_info(format "\n", ## __VA_ARGS__)
drivers/mtd/sm_ftl.h
71
#define sm_printk(format, ...) \
drivers/mtd/sm_ftl.h
72
printk(KERN_WARNING "sm_ftl" ": " format "\n", ## __VA_ARGS__)
drivers/mtd/sm_ftl.h
74
#define dbg(format, ...) \
drivers/mtd/sm_ftl.h
76
printk(KERN_DEBUG "sm_ftl" ": " format "\n", ## __VA_ARGS__)
drivers/mtd/sm_ftl.h
78
#define dbg_verbose(format, ...) \
drivers/mtd/sm_ftl.h
80
printk(KERN_DEBUG "sm_ftl" ": " format "\n", ## __VA_ARGS__)
drivers/net/dsa/realtek/rtl8365mb.c
1853
FIELD_PREP(RTL8365MB_CPU_CTRL_TAG_FORMAT_MASK, cpu->format) |
drivers/net/dsa/realtek/rtl8365mb.c
1876
cpu->format = RTL8365MB_CPU_FORMAT_8BYTES;
drivers/net/dsa/realtek/rtl8365mb.c
1880
cpu->format = RTL8365MB_CPU_FORMAT_8BYTES;
drivers/net/dsa/realtek/rtl8365mb.c
2109
mb->cpu.format = RTL8365MB_CPU_FORMAT_8BYTES;
drivers/net/dsa/realtek/rtl8365mb.c
610
enum rtl8365mb_cpu_format format;
drivers/net/dsa/sja1105/sja1105_static_config.c
708
if (entry->format == SJA1105_VL_FORMAT_PSFP) {
drivers/net/dsa/sja1105/sja1105_static_config.c
742
if (entry->format == SJA1105_VL_FORMAT_PSFP) {
drivers/net/dsa/sja1105/sja1105_static_config.h
385
u64 format;
drivers/net/dsa/sja1105/sja1105_vl.c
403
vl_lookup[k].format = SJA1105_VL_FORMAT_PSFP;
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
682
ssize_t(*format) (struct net_device *, char *))
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
688
len = (*format) (to_net_dev(d), buf);
drivers/net/ethernet/freescale/dpaa/dpaa_eth_trace.h
17
#define fd_format_name(format) { qm_fd_##format, #format }
drivers/net/ethernet/freescale/ucc_geth.c
52
#define ugeth_printk(level, format, arg...) \
drivers/net/ethernet/freescale/ucc_geth.c
53
printk(level format "\n", ## arg)
drivers/net/ethernet/freescale/ucc_geth.c
55
#define ugeth_dbg(format, arg...) \
drivers/net/ethernet/freescale/ucc_geth.c
56
ugeth_printk(KERN_DEBUG , format , ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
315
#define e_dbg(format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
316
netdev_dbg(e1000_get_hw_dev(hw), format, ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
317
#define e_err(msglvl, format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
318
netif_err(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
319
#define e_info(msglvl, format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
320
netif_info(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
321
#define e_warn(msglvl, format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
322
netif_warn(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
323
#define e_notice(msglvl, format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
324
netif_notice(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
325
#define e_dev_info(format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
326
dev_info(&adapter->pdev->dev, format, ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
327
#define e_dev_warn(format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
328
dev_warn(&adapter->pdev->dev, format, ## arg)
drivers/net/ethernet/intel/e1000/e1000.h
329
#define e_dev_err(format, arg...) \
drivers/net/ethernet/intel/e1000/e1000.h
330
dev_err(&adapter->pdev->dev, format, ## arg)
drivers/net/ethernet/intel/e1000e/e1000.h
30
#define e_dbg(format, arg...) \
drivers/net/ethernet/intel/e1000e/e1000.h
31
netdev_dbg(hw->adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000e/e1000.h
32
#define e_err(format, arg...) \
drivers/net/ethernet/intel/e1000e/e1000.h
33
netdev_err(adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000e/e1000.h
34
#define e_info(format, arg...) \
drivers/net/ethernet/intel/e1000e/e1000.h
35
netdev_info(adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000e/e1000.h
36
#define e_warn(format, arg...) \
drivers/net/ethernet/intel/e1000e/e1000.h
37
netdev_warn(adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/e1000e/e1000.h
38
#define e_notice(format, arg...) \
drivers/net/ethernet/intel/e1000e/e1000.h
39
netdev_notice(adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
1357
u8 format;
drivers/net/ethernet/intel/ice/ice_common.c
5751
cmd->format = ICE_INTERNAL_TEMP_SENSOR_FORMAT;
drivers/net/ethernet/intel/igb/e1000_hw.h
545
#define hw_dbg(format, arg...) \
drivers/net/ethernet/intel/igb/e1000_hw.h
546
netdev_dbg(igb_get_hw_dev(hw), format, ##arg)
drivers/net/ethernet/intel/igc/igc_hw.h
279
#define hw_dbg(format, arg...) \
drivers/net/ethernet/intel/igc/igc_hw.h
280
netdev_dbg(igc_get_hw_dev(hw), format, ##arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
185
#define hw_dbg(hw, format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
186
netdev_dbg(ixgbe_hw_to_netdev(hw), format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
187
#define hw_err(hw, format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
188
netdev_err(ixgbe_hw_to_netdev(hw), format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
189
#define e_dev_info(format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
190
dev_info(&adapter->pdev->dev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
191
#define e_dev_warn(format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
192
dev_warn(&adapter->pdev->dev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
193
#define e_dev_err(format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
194
dev_err(&adapter->pdev->dev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
195
#define e_dev_notice(format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
196
dev_notice(&adapter->pdev->dev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
197
#define e_dbg(msglvl, format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
198
netif_dbg(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
199
#define e_info(msglvl, format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
200
netif_info(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
201
#define e_err(msglvl, format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
202
netif_err(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
203
#define e_warn(msglvl, format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
204
netif_warn(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
205
#define e_crit(msglvl, format, arg...) \
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
206
netif_crit(adapter, msglvl, adapter->netdev, format, ## arg)
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
483
#define hw_dbg(hw, format, arg...) \
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
484
netdev_dbg(ixgbevf_hw_to_netdev(hw), format, ## arg)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
803
u64 format, bool v4, u64 *fidx)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
814
NIX_AF_LSO_FORMATX_FIELDX(format, (*fidx)++),
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
827
NIX_AF_LSO_FORMATX_FIELDX(format, (*fidx)++),
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
832
u64 format, u64 *fidx)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
842
NIX_AF_LSO_FORMATX_FIELDX(format, (*fidx)++),
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
851
NIX_AF_LSO_FORMATX_FIELDX(format, (*fidx)++),
drivers/net/ethernet/mellanox/mlx4/en_main.c
82
const char *format, ...)
drivers/net/ethernet/mellanox/mlx4/en_main.c
87
va_start(args, format);
drivers/net/ethernet/mellanox/mlx4/en_main.c
89
vaf.fmt = format;
drivers/net/ethernet/mellanox/mlx4/mlx4.h
219
#define mlx4_dbg(mdev, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4.h
223
&(mdev)->persist->pdev->dev, format, \
drivers/net/ethernet/mellanox/mlx4/mlx4.h
227
#define mlx4_err(mdev, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4.h
228
dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx4/mlx4.h
229
#define mlx4_info(mdev, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4.h
230
dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx4/mlx4.h
231
#define mlx4_warn(mdev, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4.h
232
dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
820
const char *format, ...);
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
822
#define en_dbg(mlevel, priv, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
825
en_print(KERN_DEBUG, priv, format, ##__VA_ARGS__); \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
827
#define en_warn(priv, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
828
en_print(KERN_WARNING, priv, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
829
#define en_err(priv, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
830
en_print(KERN_ERR, priv, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
831
#define en_info(priv, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
832
en_print(KERN_INFO, priv, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
834
#define mlx4_err(mdev, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
835
pr_err(DRV_NAME " %s: " format, \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
837
#define mlx4_info(mdev, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
838
pr_info(DRV_NAME " %s: " format, \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
840
#define mlx4_warn(mdev, format, ...) \
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
841
pr_warn(DRV_NAME " %s: " format, \
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
134
#define PRINT_MASKED_VAL_L2(type, name, fld, p, format) {\
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
136
PRINT_MASKED_VAL(name, p, format); \
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
160
#define PRINT_MASKED_VAL_MISC(type, name, fld, p, format) {\
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
162
PRINT_MASKED_VAL(name, p, format); \
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
53
#define PRINT_MASKED_VAL(name, p, format) { \
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
55
trace_seq_printf(p, __stringify(name) "=" format " ", name.v); \
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
57
#define PRINT_MASKED_VALP(name, cast, p, format) { \
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
59
trace_seq_printf(p, __stringify(name) "=" format " ", \
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
75
ethtool_puts(data, mlx5e_pcie_cong_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en/rss.c
6
#define mlx5e_rss_warn(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/en/rss.c
7
dev_warn((__dev)->device, "%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c
116
ethtool_puts(data, mlx5e_ipsec_sw_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c
85
ethtool_puts(data, mlx5e_ipsec_hw_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_stats.c
71
ethtool_puts(data, mlx5e_ktls_sw_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec_stats.c
47
ethtool_puts(data, mlx5e_macsec_hw_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
142
ethtool_puts(data, sw_rep_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
181
ethtool_puts(data, vport_rep_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
183
ethtool_puts(data, vport_rep_loopback_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1026
ethtool_puts(data, pport_2863_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1085
ethtool_puts(data, pport_2819_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1289
ethtool_puts(data, pport_phy_layer_cntrs_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1292
ethtool_puts(data, pport_phy_statistical_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1299
.format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1303
pport_phy_recovery_cntrs_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1646
ethtool_puts(data, pport_eth_ext_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1725
ethtool_puts(data, pcie_perf_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1729
ethtool_puts(data, pcie_perf_stats_desc64[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1734
pcie_perf_stall_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1825
pport_per_tc_prio_stats_desc[i].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1829
pport_per_tc_congest_prio_stats_desc[i].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
1951
pport_per_prio_traffic_stats_desc[i].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2042
pport_per_prio_pfc_stats_desc[i].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2050
pport_per_prio_pfc_stats_desc[i].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2056
ethtool_puts(data, pport_pfc_stall_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2157
ethtool_puts(data, mlx5e_pme_status_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2160
ethtool_puts(data, mlx5e_pme_error_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2479
ethtool_sprintf(data, qos_sq_stats_desc[i].format, qid);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2527
ethtool_puts(data, ptp_ch_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2533
ptp_sq_stats_desc[i].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2539
ptp_cq_stats_desc[i].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2544
ethtool_puts(data, ptp_rq_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2607
ethtool_sprintf(data, ch_stats_desc[j].format, i);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2611
ethtool_sprintf(data, rq_stats_desc[j].format, i);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2613
ethtool_sprintf(data, xskrq_stats_desc[j].format, i);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2615
ethtool_sprintf(data, rq_xdpsq_stats_desc[j].format, i);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2621
ethtool_sprintf(data, sq_stats_desc[j].format,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2626
ethtool_sprintf(data, xsksq_stats_desc[j].format, i);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2628
ethtool_sprintf(data, xdpsq_stats_desc[j].format, i);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
264
ethtool_puts(data, sw_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
593
ethtool_puts(data, q_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
596
ethtool_puts(data, drop_rq_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
684
ethtool_puts(data, vnic_env_stats_steer_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
687
ethtool_puts(data, vnic_env_stats_dev_oob_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
690
ethtool_puts(data, vnic_env_stats_drop_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
796
ethtool_puts(data, vport_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
799
ethtool_puts(data, vport_loopback_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
865
ethtool_puts(data, pport_802_3_stats_desc[i].format);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
62
char format[ETH_GSTRING_LEN];
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
657
#define esw_info(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
658
dev_info((__dev)->device, "E-Switch: " format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
660
#define esw_warn(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
661
dev_warn((__dev)->device, "E-Switch: " format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
663
#define esw_debug(dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
664
mlx5_core_dbg_mask(dev, MLX5_DEBUG_ESWITCH_MASK, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
62
#define mlx5_fpga_dbg(__adev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
63
mlx5_core_dbg((__adev)->mdev, "FPGA: %s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
66
#define mlx5_fpga_err(__adev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
67
mlx5_core_err((__adev)->mdev, "FPGA: %s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
70
#define mlx5_fpga_warn(__adev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
71
mlx5_core_warn((__adev)->mdev, "FPGA: %s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
74
#define mlx5_fpga_warn_ratelimited(__adev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
76
format, __func__, __LINE__, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
78
#define mlx5_fpga_notice(__adev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
79
mlx5_core_info((__adev)->mdev, "FPGA: " format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
81
#define mlx5_fpga_info(__adev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
82
mlx5_core_info((__adev)->mdev, "FPGA: " format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c
11
#define sd_info(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c
12
dev_info((__dev)->device, "Socket-Direct: " format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c
13
#define sd_warn(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c
14
dev_warn((__dev)->device, "Socket-Direct: " format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
137
static inline void mlx5_printk(struct mlx5_core_dev *dev, int level, const char *format, ...)
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
147
va_start(args, format);
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
148
vaf.fmt = format;
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
156
#define mlx5_log(__dev, level, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
157
mlx5_printk(__dev, level, "%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
48
#define mlx5_core_dbg(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
49
dev_dbg((__dev)->device, "%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
53
#define mlx5_core_dbg_once(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
55
"%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
59
#define mlx5_core_dbg_mask(__dev, mask, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
62
mlx5_core_dbg(__dev, format, ##__VA_ARGS__); \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
65
#define mlx5_core_err(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
66
dev_err((__dev)->device, "%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
70
#define mlx5_core_err_rl(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
72
"%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
76
#define mlx5_core_warn(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
77
dev_warn((__dev)->device, "%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
81
#define mlx5_core_warn_once(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
82
dev_warn_once((__dev)->device, "%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
86
#define mlx5_core_warn_rl(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
88
"%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
92
#define mlx5_core_info(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
93
dev_info((__dev)->device, format, ##__VA_ARGS__)
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
95
#define mlx5_core_info_rl(__dev, format, ...) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
97
"%s:%d:(pid %d): " format, \
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
1129
ret = linecard->hw_revision == be16_to_cpu(ini_file->format.hw_revision) &&
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
1130
linecard->ini_version == be16_to_cpu(ini_file->format.ini_version);
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
1157
*type = ini_file->format.name;
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
28
} format;
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
71
if (ini_file->format.type == card_type)
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
72
return ini_file->format.name;
drivers/net/ethernet/meta/fbnic/fbnic.h
176
fbnic_devlink_fw_report(struct fbnic_dev *fbd, const char *format, ...);
drivers/net/ethernet/meta/fbnic/fbnic_devlink.c
517
fbnic_devlink_fw_report(struct fbnic_dev *fbd, const char *format, ...)
drivers/net/ethernet/meta/fbnic/fbnic_devlink.c
522
va_start(args, format);
drivers/net/ethernet/meta/fbnic/fbnic_devlink.c
523
vsnprintf(msg, FBNIC_FW_LOG_MAX_SIZE, format, args);
drivers/net/ethernet/netronome/nfp/nfp_main.c
72
int nfp_pf_rtsym_read_optional(struct nfp_pf *pf, const char *format,
drivers/net/ethernet/netronome/nfp/nfp_main.c
79
snprintf(name, sizeof(name), format, nfp_cppcore_pcie_unit(pf->cpp));
drivers/net/ethernet/netronome/nfp/nfp_main.h
162
int nfp_pf_rtsym_read_optional(struct nfp_pf *pf, const char *format,
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
556
const char *format, char *name, size_t name_sz,
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
564
snprintf(name, name_sz, format, nfp_net_name(nn));
drivers/net/ethernet/ti/cpsw_priv.h
23
#define cpsw_info(priv, type, format, ...) \
drivers/net/ethernet/ti/cpsw_priv.h
26
dev_info(priv->dev, format, ## __VA_ARGS__); \
drivers/net/ethernet/ti/cpsw_priv.h
29
#define cpsw_err(priv, type, format, ...) \
drivers/net/ethernet/ti/cpsw_priv.h
32
dev_err(priv->dev, format, ## __VA_ARGS__); \
drivers/net/ethernet/ti/cpsw_priv.h
35
#define cpsw_dbg(priv, type, format, ...) \
drivers/net/ethernet/ti/cpsw_priv.h
38
dev_dbg(priv->dev, format, ## __VA_ARGS__); \
drivers/net/ethernet/ti/cpsw_priv.h
41
#define cpsw_notice(priv, type, format, ...) \
drivers/net/ethernet/ti/cpsw_priv.h
44
dev_notice(priv->dev, format, ## __VA_ARGS__); \
drivers/net/ethernet/ti/tlan.h
43
#define TLAN_DBG(lvl, format, args...) \
drivers/net/ethernet/ti/tlan.h
46
printk(KERN_DEBUG "TLAN: " format, ##args); \
drivers/net/fddi/skfp/smt.c
1850
static void smt_string_swap(char *data, const char *format, int len)
drivers/net/fddi/skfp/smt.c
1854
while (len > 0 && *format) {
drivers/net/fddi/skfp/smt.c
1855
switch (*format) {
drivers/net/fddi/skfp/smt.c
1857
open_paren = format ;
drivers/net/fddi/skfp/smt.c
1860
format = open_paren ;
drivers/net/fddi/skfp/smt.c
1871
data += *format - '0' ;
drivers/net/fddi/skfp/smt.c
1872
len -= *format - '0' ;
drivers/net/fddi/skfp/smt.c
1890
format++ ;
drivers/net/fddi/skfp/smt.c
70
static void smt_string_swap(char *data, const char *format, int len);
drivers/net/usb/cdc_ncm.c
360
#define NCM_PARM_ATTR(name, format, tocpu) \
drivers/net/usb/cdc_ncm.c
365
return sprintf(buf, format "\n", tocpu(ctx->ncm_parm.name)); \
drivers/net/wireless/ath/ar5523/ar5523.h
137
#define ar5523_dbg(ar, format, arg...) \
drivers/net/wireless/ath/ar5523/ar5523.h
138
dev_dbg(&(ar)->dev->dev, format, ## arg)
drivers/net/wireless/ath/ar5523/ar5523.h
144
#define ar5523_err(ar, format, arg...) \
drivers/net/wireless/ath/ar5523/ar5523.h
147
dev_err(&(ar)->dev->dev, format, ## arg); \
drivers/net/wireless/ath/ar5523/ar5523.h
150
#define ar5523_info(ar, format, arg...) \
drivers/net/wireless/ath/ar5523/ar5523.h
151
dev_info(&(ar)->dev->dev, format, ## arg)
drivers/net/wireless/ath/ath.h
307
static inline __attribute__ ((format (printf, 3, 4)))
drivers/net/wireless/atmel/at76c50x-usb.c
87
#define at76_dbg(bits, format, arg...) \
drivers/net/wireless/atmel/at76c50x-usb.c
90
printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg); \
drivers/net/wireless/atmel/at76c50x-usb.c
93
#define at76_dbg_dump(bits, buf, len, format, arg...) \
drivers/net/wireless/atmel/at76c50x-usb.c
96
printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg); \
drivers/net/wireless/intel/ipw2x00/libipw.h
432
} format;
drivers/net/wireless/intel/iwlwifi/fw/rs.c
101
u32 format = rate & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/fw/rs.c
105
switch (format) {
drivers/net/wireless/intel/iwlwifi/fw/rs.c
131
mcs = format == RATE_MCS_MOD_TYPE_HT ?
drivers/net/wireless/intel/iwlwifi/fw/rs.c
135
sgi = format == RATE_MCS_MOD_TYPE_HE ?
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
664
char format[] = "traffic=%d\ndbgfs=%d\nvif_type=%d\nactual=%d\n";
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
667
if (WARN_ON(count < sizeof(format)))
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
675
return scnprintf(buf, count, format,
drivers/net/wireless/intel/iwlwifi/mld/mld.h
450
int format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/mld.h
454
if (format == RATE_MCS_MOD_TYPE_LEGACY_OFDM)
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1409
u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1430
switch (format) {
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1488
if (format != RATE_MCS_MOD_TYPE_CCK && is_sgi)
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1500
u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1509
if (format == RATE_MCS_MOD_TYPE_VHT)
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1513
if (format == RATE_MCS_MOD_TYPE_HE)
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1519
if (format == RATE_MCS_MOD_TYPE_EHT)
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1965
u32 format = phy_data->rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1969
switch (format) {
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2275
u32 format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2312
if (format == RATE_MCS_MOD_TYPE_CCK &&
drivers/net/wireless/intel/iwlwifi/mld/rx.c
754
u32 format = phy_data->rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
770
if (format == RATE_MCS_MOD_TYPE_CCK)
drivers/net/wireless/intel/iwlwifi/mld/stats.c
171
u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/stats.c
194
if (format == RATE_MCS_MOD_TYPE_CCK ||
drivers/net/wireless/intel/iwlwifi/mld/stats.c
195
format == RATE_MCS_MOD_TYPE_LEGACY_OFDM) {
drivers/net/wireless/intel/iwlwifi/mld/stats.c
199
if (format == RATE_MCS_MOD_TYPE_LEGACY_OFDM)
drivers/net/wireless/intel/iwlwifi/mld/stats.c
244
if (format == RATE_MCS_MOD_TYPE_HT)
drivers/net/wireless/intel/iwlwifi/mld/stats.c
252
switch (format) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
1018
u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
1039
switch (format) {
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
560
char format[] = "traffic=%d\ndbgfs=%d\nvcmd=%d\nvif_type=%d\n"
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
567
char buf[sizeof(format) + 1] = {};
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
570
len = scnprintf(buf, sizeof(buf) - 1, format,
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
5882
u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
5903
if (format == RATE_MCS_MOD_TYPE_CCK ||
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
5904
format == RATE_MCS_MOD_TYPE_LEGACY_OFDM) {
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
5908
if (format == RATE_MCS_MOD_TYPE_LEGACY_OFDM)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
5953
rinfo->mcs = format == RATE_MCS_MOD_TYPE_HT ?
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
5960
switch (format) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
1982
u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2011
if (format == RATE_MCS_MOD_TYPE_HE)
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2033
if (format == RATE_MCS_MOD_TYPE_EHT)
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2039
is_sgi = format == RATE_MCS_MOD_TYPE_HE ?
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2043
if (!(format == RATE_MCS_MOD_TYPE_CCK) && is_sgi)
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2049
switch (format) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2063
switch (format) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2109
u32 format;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2154
format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2201
if (format == RATE_MCS_MOD_TYPE_CCK &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2419
u32 format;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2442
format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2453
if (format == RATE_MCS_MOD_TYPE_EHT)
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2513
switch (format) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1422
u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1423
u32 rate = format == RATE_MCS_MOD_TYPE_HT ?
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1433
switch (format) {
drivers/net/wireless/intel/iwlwifi/mvm/utils.c
131
int format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK;
drivers/net/wireless/intel/iwlwifi/mvm/utils.c
135
if (format == RATE_MCS_MOD_TYPE_LEGACY_OFDM)
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
2862
req.format = FIELD_PREP(MAX_PAGE_IDX_MASK, total - 1) |
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
2882
.format = EE_FORMAT_WHOLE,
drivers/net/wireless/mediatek/mt76/mt7915/mcu.h
145
u8 format;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
926
u8 format;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
930
.format = EE_FORMAT_WHOLE,
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1485
u8 format;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1491
.format = EE_FORMAT_WHOLE
drivers/net/wireless/mediatek/mt76/mt7925/mcu.h
83
u8 format; /* 0:Legacy, 1:HE */
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3794
req.format = FIELD_PREP(MAX_PAGE_IDX_MASK, total - 1) |
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3816
.format = EE_FORMAT_WHOLE
drivers/net/wireless/mediatek/mt76/mt7996/mcu.h
156
u8 format;
drivers/nubus/nubus.c
770
board->format = nubus_get_rom(&rp, 1, bytelanes);
drivers/nvmem/layouts/u-boot-env.c
125
switch (format) {
drivers/nvmem/layouts/u-boot-env.c
174
enum u_boot_env_format format;
drivers/nvmem/layouts/u-boot-env.c
176
format = (uintptr_t)device_get_match_data(dev);
drivers/nvmem/layouts/u-boot-env.c
178
return u_boot_env_parse(dev, layout->nvmem, format);
drivers/nvmem/layouts/u-boot-env.c
91
enum u_boot_env_format format)
drivers/nvmem/layouts/u-boot-env.h
13
enum u_boot_env_format format);
drivers/nvmem/u-boot-env.c
19
enum u_boot_env_format format;
drivers/nvmem/u-boot-env.c
61
priv->format = (uintptr_t)of_device_get_match_data(dev);
drivers/nvmem/u-boot-env.c
77
return u_boot_env_parse(dev, priv->nvmem, priv->format);
drivers/pci/hotplug/acpi_pcihp.c
25
#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/acpi_pcihp.c
26
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/acpi_pcihp.c
27
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/cpci_hotplug_core.c
32
#define dbg(format, arg...) \
drivers/pci/hotplug/cpci_hotplug_core.c
35
printk(KERN_DEBUG "%s: " format "\n", \
drivers/pci/hotplug/cpci_hotplug_core.c
38
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpci_hotplug_core.c
39
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpci_hotplug_core.c
40
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpci_hotplug_pci.c
22
#define dbg(format, arg...) \
drivers/pci/hotplug/cpci_hotplug_pci.c
25
printk(KERN_DEBUG "%s: " format "\n", \
drivers/pci/hotplug/cpci_hotplug_pci.c
28
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpci_hotplug_pci.c
29
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpci_hotplug_pci.c
30
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpcihp_generic.c
35
#define dbg(format, arg...) \
drivers/pci/hotplug/cpcihp_generic.c
38
printk(KERN_DEBUG "%s: " format "\n", \
drivers/pci/hotplug/cpcihp_generic.c
41
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpcihp_generic.c
42
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpcihp_generic.c
43
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpcihp_zt5550.c
30
#define dbg(format, arg...) \
drivers/pci/hotplug/cpcihp_zt5550.c
33
printk(KERN_DEBUG "%s: " format "\n", \
drivers/pci/hotplug/cpcihp_zt5550.c
36
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpcihp_zt5550.c
37
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpcihp_zt5550.c
38
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME, ## arg)
drivers/pci/hotplug/cpqphp.h
26
#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/cpqphp.h
27
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/cpqphp.h
28
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/ibmphp.h
158
u8 format;
drivers/pci/hotplug/ibmphp.h
212
u8 format;
drivers/pci/hotplug/ibmphp.h
31
#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/ibmphp.h
32
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/ibmphp.h
33
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/ibmphp_ebda.c
233
u8 format, num_ctlrs, rio_complete, hs_complete, ebda_sz;
drivers/pci/hotplug/ibmphp_ebda.c
285
format = readb(io_mem + offset);
drivers/pci/hotplug/ibmphp_ebda.c
288
if (format != 4)
drivers/pci/hotplug/ibmphp_ebda.c
290
debug("hot blk format: %x\n", format);
drivers/pci/hotplug/ibmphp_ebda.c
312
hpc_list_ptr->format = format;
drivers/pci/hotplug/ibmphp_ebda.c
316
debug("hot blk format: %x\n", format);
drivers/pci/hotplug/ibmphp_ebda.c
340
rsrc_list_ptr->format = format;
drivers/pci/hotplug/ibmphp_ebda.c
345
debug("format: %x\n", format);
drivers/pci/hotplug/pci_hotplug_core.c
32
#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/pci_hotplug_core.c
33
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/pci_hotplug_core.c
34
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/pciehp.h
35
#define ctrl_dbg(ctrl, format, arg...) \
drivers/pci/hotplug/pciehp.h
36
pci_dbg(ctrl->pcie->port, format, ## arg)
drivers/pci/hotplug/pciehp.h
37
#define ctrl_err(ctrl, format, arg...) \
drivers/pci/hotplug/pciehp.h
38
pci_err(ctrl->pcie->port, format, ## arg)
drivers/pci/hotplug/pciehp.h
39
#define ctrl_info(ctrl, format, arg...) \
drivers/pci/hotplug/pciehp.h
40
pci_info(ctrl->pcie->port, format, ## arg)
drivers/pci/hotplug/pciehp.h
41
#define ctrl_warn(ctrl, format, arg...) \
drivers/pci/hotplug/pciehp.h
42
pci_warn(ctrl->pcie->port, format, ## arg)
drivers/pci/hotplug/rpaphp.h
36
#define dbg(format, arg...) \
drivers/pci/hotplug/rpaphp.h
39
printk(KERN_DEBUG "%s: " format, \
drivers/pci/hotplug/rpaphp.h
42
#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/rpaphp.h
43
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/rpaphp.h
44
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
drivers/pci/hotplug/shpchp.h
36
#define ctrl_dbg(ctrl, format, arg...) \
drivers/pci/hotplug/shpchp.h
37
pci_dbg(ctrl->pci_dev, format, ## arg)
drivers/pci/hotplug/shpchp.h
38
#define ctrl_err(ctrl, format, arg...) \
drivers/pci/hotplug/shpchp.h
39
pci_err(ctrl->pci_dev, format, ## arg)
drivers/pci/hotplug/shpchp.h
40
#define ctrl_info(ctrl, format, arg...) \
drivers/pci/hotplug/shpchp.h
41
pci_info(ctrl->pci_dev, format, ## arg)
drivers/pci/hotplug/shpchp.h
42
#define ctrl_warn(ctrl, format, arg...) \
drivers/pci/hotplug/shpchp.h
43
pci_warn(ctrl->pci_dev, format, ## arg)
drivers/pcmcia/cistpl.c
1346
ret = parse_format(tuple, &parse->format);
drivers/pcmcia/ds.c
1001
#define pcmcia_device_attr(field, test, format) \
drivers/pcmcia/ds.c
1005
return p_dev->test ? sysfs_emit(buf, format, p_dev->field) : -ENODEV; \
drivers/pinctrl/pinconf-generic.c
97
if (item->format)
drivers/pinctrl/pinconf-generic.c
98
seq_printf(s, " (%u %s)", val, item->format);
drivers/platform/raspberrypi/vchiq-mmal/mmal-msg-port.h
56
u32 format; /* Format of the elementary stream */
drivers/platform/raspberrypi/vchiq-mmal/mmal-msg.h
164
struct mmal_es_format format; /* elementary stream format */
drivers/platform/raspberrypi/vchiq-mmal/mmal-msg.h
175
struct mmal_es_format format;
drivers/platform/raspberrypi/vchiq-mmal/mmal-msg.h
189
struct mmal_es_format format;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
1549
dst->format.encoding = src->format.encoding;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
733
port->format.type,
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
734
port->format.encoding, port->format.encoding_variant);
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
737
port->format.bitrate, port->format.flags);
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
739
if (port->format.type == MMAL_ES_TYPE_VIDEO) {
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
797
m.u.port_info_set.format.type = port->format.type;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
798
m.u.port_info_set.format.encoding = port->format.encoding;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
799
m.u.port_info_set.format.encoding_variant =
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
800
port->format.encoding_variant;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
801
m.u.port_info_set.format.bitrate = port->format.bitrate;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
802
m.u.port_info_set.format.flags = port->format.flags;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
807
m.u.port_info_set.format.extradata_size = port->format.extradata_size;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
808
memcpy(&m.u.port_info_set.extradata, port->format.extradata,
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
809
port->format.extradata_size);
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
898
port->format.type = rmsg->u.port_info_get_reply.format.type;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
899
port->format.encoding = rmsg->u.port_info_get_reply.format.encoding;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
900
port->format.encoding_variant =
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
901
rmsg->u.port_info_get_reply.format.encoding_variant;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
902
port->format.bitrate = rmsg->u.port_info_get_reply.format.bitrate;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
903
port->format.flags = rmsg->u.port_info_get_reply.format.flags;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
909
port->format.es = &port->es;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
911
port->format.extradata_size =
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
912
rmsg->u.port_info_get_reply.format.extradata_size;
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
913
memcpy(port->format.extradata,
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c
915
port->format.extradata_size);
drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.h
67
struct mmal_es_format_local format;
drivers/platform/x86/lenovo/thinkpad_acpi.c
445
#define dbg_printk(a_dbg_level, format, arg...) \
drivers/platform/x86/lenovo/thinkpad_acpi.c
448
printk(KERN_DEBUG pr_fmt("%s: " format), \
drivers/platform/x86/lenovo/thinkpad_acpi.c
457
#define vdbg_printk(a_dbg_level, format, arg...) \
drivers/platform/x86/lenovo/thinkpad_acpi.c
458
do { if (0) no_printk(format, ##arg); } while (0)
drivers/platform/x86/lenovo/thinkpad_acpi.c
467
#define tpacpi_disclose_usertask(what, format, arg...) \
drivers/platform/x86/lenovo/thinkpad_acpi.c
471
printk(KERN_DEBUG pr_fmt("%s: PID %d: " format), \
drivers/pnp/base.h
178
#define pnp_dbg(dev, format, arg...) \
drivers/pnp/base.h
179
({ if (pnp_debug) dev_printk(KERN_DEBUG, dev, format, ## arg); 0; })
drivers/pnp/base.h
181
#define pnp_dbg(dev, format, arg...) \
drivers/pnp/base.h
182
({ if (0) dev_printk(KERN_DEBUG, dev, format, ## arg); 0; })
drivers/ps3/ps3av.c
407
int ps3av_set_audio_mode(u32 ch, u32 fs, u32 word_bits, u32 format, u32 source)
drivers/ps3/ps3av.c
437
fs, word_bits, format, source);
drivers/ps3/ps3av_cmd.c
20
u32 format;
drivers/ps3/ps3av_cmd.c
395
video_mode->video_format = ps3av_video_fmt_table[video_fmt].format;
drivers/ps3/ps3av_cmd.c
420
ps3av_video_fmt_table[video_fmt].format;
drivers/ps3/ps3av_cmd.c
667
u32 ch, u32 fs, u32 word_bits, u32 format,
drivers/ps3/ps3av_cmd.c
673
if (!(ch | fs | format | word_bits | source)) {
drivers/ps3/ps3av_cmd.c
677
format = PS3AV_CMD_AUDIO_FORMAT_PCM;
drivers/ps3/ps3av_cmd.c
690
audio->audio_format = format;
drivers/s390/block/dasd_diag.c
609
info->format = DASD_FORMAT_LDL;
drivers/s390/block/dasd_eckd.c
3116
struct dasd_format_entry *format;
drivers/s390/block/dasd_eckd.c
3131
list_for_each_entry(format, &block->format_list, list) {
drivers/s390/block/dasd_eckd.c
3132
if (format->track == to_format->track) {
drivers/s390/block/dasd_eckd.c
3144
static void clear_format_track(struct dasd_format_entry *format,
drivers/s390/block/dasd_eckd.c
3151
list_del_init(&format->list);
drivers/s390/block/dasd_eckd.c
3162
struct dasd_format_entry *format = data;
drivers/s390/block/dasd_eckd.c
3164
clear_format_track(format, cqr->basedev->block);
drivers/s390/block/dasd_eckd.c
3174
struct dasd_format_entry *format;
drivers/s390/block/dasd_eckd.c
3193
format = &startdev->format_entry;
drivers/s390/block/dasd_eckd.c
3210
format->track = curr_trk;
drivers/s390/block/dasd_eckd.c
3212
if (test_and_set_format_track(format, cqr)) {
drivers/s390/block/dasd_eckd.c
3236
fcqr->callback_data = (void *) format;
drivers/s390/block/dasd_eckd.c
4347
pfxdata.format = 1; /* PFX with LRE */
drivers/s390/block/dasd_eckd.c
5011
info->format = private->uses_cdl ? DASD_FORMAT_CDL : DASD_FORMAT_LDL;
drivers/s390/block/dasd_eckd.c
526
unsigned int format, unsigned int rec_on_trk, int count,
drivers/s390/block/dasd_eckd.c
552
if (format > 1) {
drivers/s390/block/dasd_eckd.c
554
"PFX LRE unknown format 0x%x", format);
drivers/s390/block/dasd_eckd.c
558
pfxdata->format = format;
drivers/s390/block/dasd_eckd.c
582
if (format == 1) {
drivers/s390/block/dasd_eckd.c
6751
messages->format == ATTENTION_FORMAT_CUIR)
drivers/s390/block/dasd_eckd.c
6754
messages->format == ATTENTION_FORMAT_OOS)
drivers/s390/block/dasd_eckd.c
957
if (sneq->flags.identifier == 1 && sneq->format == 1)
drivers/s390/block/dasd_eckd.c
959
else if (sneq->flags.identifier == 1 && sneq->format == 4)
drivers/s390/block/dasd_eckd.h
235
unsigned char format;
drivers/s390/block/dasd_eckd.h
356
__u16 format;
drivers/s390/block/dasd_eckd.h
369
__u16 format;
drivers/s390/block/dasd_eckd.h
397
__u8 format;
drivers/s390/block/dasd_eckd.h
475
__u8 format;
drivers/s390/block/dasd_eckd.h
486
__u8 format;
drivers/s390/block/dasd_fba.c
624
info->format = DASD_FORMAT_LDL;
drivers/s390/block/dasd_ioctl.c
543
dasd_info->format = DASD_FORMAT_NONE;
drivers/s390/cio/chsc.h
150
u8 format:4;
drivers/s390/cio/cmf.c
1267
if (format == CMF_AUTODETECT) {
drivers/s390/cio/cmf.c
1269
format = CMF_BASIC;
drivers/s390/cio/cmf.c
1271
format = CMF_EXTENDED;
drivers/s390/cio/cmf.c
1278
switch (format) {
drivers/s390/cio/cmf.c
85
static int format = CMF_AUTODETECT;
drivers/s390/cio/cmf.c
86
module_param(format, bint, 0444);
drivers/s390/cio/fcx.c
261
tccb->tcah.format = TCCB_FORMAT_DEFAULT;
drivers/s390/cio/fcx.c
87
tcw->format = TCW_FORMAT_DEFAULT;
drivers/s390/crypto/zcrypt_msgtype6.h
74
unsigned char format; /* 0x01 (error) or 0x02 (ok) */
drivers/scsi/BusLogic.h
121
#define blogic_announce(format, args...) \
drivers/scsi/BusLogic.h
122
blogic_msg(BLOGIC_ANNOUNCE_LEVEL, format, ##args)
drivers/scsi/BusLogic.h
124
#define blogic_info(format, args...) \
drivers/scsi/BusLogic.h
125
blogic_msg(BLOGIC_INFO_LEVEL, format, ##args)
drivers/scsi/BusLogic.h
127
#define blogic_notice(format, args...) \
drivers/scsi/BusLogic.h
128
blogic_msg(BLOGIC_NOTICE_LEVEL, format, ##args)
drivers/scsi/BusLogic.h
130
#define blogic_warn(format, args...) \
drivers/scsi/BusLogic.h
131
blogic_msg(BLOGIC_WARN_LEVEL, format, ##args)
drivers/scsi/BusLogic.h
133
#define blogic_err(format, args...) \
drivers/scsi/BusLogic.h
134
blogic_msg(BLOGIC_ERR_LEVEL, format, ##args)
drivers/scsi/advansys.c
2143
#define ASC_DBG(lvl, format, arg...) { \
drivers/scsi/advansys.c
2145
printk(KERN_DEBUG "%s: %s: " format, DRV_NAME, \
drivers/scsi/aic7xxx/aicasm/aicasm.c
340
f3_instr = &cur_instr->format.format3;
drivers/scsi/aic7xxx/aicasm/aicasm.c
373
cur_instr->format.bytes[0],
drivers/scsi/aic7xxx/aicasm/aicasm.c
374
cur_instr->format.bytes[1],
drivers/scsi/aic7xxx/aicasm/aicasm.c
375
cur_instr->format.bytes[2],
drivers/scsi/aic7xxx/aicasm/aicasm.c
376
cur_instr->format.bytes[3]);
drivers/scsi/aic7xxx/aicasm/aicasm.c
378
cur_instr->format.bytes[3],
drivers/scsi/aic7xxx/aicasm/aicasm.c
379
cur_instr->format.bytes[2],
drivers/scsi/aic7xxx/aicasm/aicasm.c
380
cur_instr->format.bytes[1],
drivers/scsi/aic7xxx/aicasm/aicasm.c
381
cur_instr->format.bytes[0]);
drivers/scsi/aic7xxx/aicasm/aicasm.c
616
cur_instr->format.bytes[0],
drivers/scsi/aic7xxx/aicasm/aicasm.c
617
cur_instr->format.bytes[1],
drivers/scsi/aic7xxx/aicasm/aicasm.c
618
cur_instr->format.bytes[2],
drivers/scsi/aic7xxx/aicasm/aicasm.c
619
cur_instr->format.bytes[3]);
drivers/scsi/aic7xxx/aicasm/aicasm.c
621
cur_instr->format.bytes[3],
drivers/scsi/aic7xxx/aicasm/aicasm.c
622
cur_instr->format.bytes[2],
drivers/scsi/aic7xxx/aicasm/aicasm.c
623
cur_instr->format.bytes[1],
drivers/scsi/aic7xxx/aicasm/aicasm.c
624
cur_instr->format.bytes[0]);
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1666
f1_instr = &instr->format.format1;
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1739
f2_instr = &instr->format.format2;
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
1796
f3_instr = &instr->format.format3;
drivers/scsi/aic7xxx/aicasm/aicasm_insformat.h
168
union ins_formats format;
drivers/scsi/bfa/bfa_fc.h
793
u32 format:2;
drivers/scsi/bfa/bfa_fcs_lport.c
5510
enum fc_rscn_format format,
drivers/scsi/bfa/bfa_fcs_lport.c
5517
bfa_trc(port->fcs, format);
drivers/scsi/bfa/bfa_fcs_lport.c
5525
if (__fc_pid_match(c0, c1, format))
drivers/scsi/bfa/bfa_fcs_lport.c
5554
bfa_trc(port->fcs, rscn->event[i].format);
drivers/scsi/bfa/bfa_fcs_lport.c
5572
switch (rscn->event[i].format) {
drivers/scsi/bfa/bfa_fcs_lport.c
5598
rscn->event[i].format,
drivers/scsi/esas2r/esas2r_log.c
123
const char *format,
drivers/scsi/esas2r/esas2r_log.c
160
retval = vsnprintf(buffer, buflen, format, args);
drivers/scsi/esas2r/esas2r_log.c
189
int esas2r_log(const long level, const char *format, ...)
drivers/scsi/esas2r/esas2r_log.c
194
va_start(args, format);
drivers/scsi/esas2r/esas2r_log.c
196
retval = esas2r_log_master(level, NULL, format, args);
drivers/scsi/esas2r/esas2r_log.c
216
const char *format,
drivers/scsi/esas2r/esas2r_log.c
222
va_start(args, format);
drivers/scsi/esas2r/esas2r_log.c
224
retval = esas2r_log_master(level, dev, format, args);
drivers/scsi/esas2r/esas2r_log.h
64
__printf(2, 3) int esas2r_log(const long level, const char *format, ...);
drivers/scsi/esas2r/esas2r_log.h
67
const char *format,
drivers/scsi/fnic/fcpio.h
397
u8 format;
drivers/scsi/fnic/fnic_res.h
139
u32 req_id, u8 format,
drivers/scsi/fnic/fnic_res.h
149
desc->u.flogi_reg.format = format;
drivers/scsi/fnic/fnic_scsi.c
305
enum fcpio_flogi_reg_format_type format;
drivers/scsi/fnic/fnic_scsi.c
322
format = FCPIO_FLOGI_REG_GW_DEST;
drivers/scsi/fnic/fnic_scsi.c
334
format, fc_id, gw_mac);
drivers/scsi/ibmvscsi/ibmvfc.c
1590
void (*done) (struct ibmvfc_event *), u8 format)
drivers/scsi/ibmvscsi/ibmvfc.c
1595
evt->crq.format = format;
drivers/scsi/ibmvscsi/ibmvfc.c
1596
if (format == IBMVFC_CMD_FORMAT)
drivers/scsi/ibmvscsi/ibmvfc.c
1723
if (evt->crq.format == IBMVFC_CMD_FORMAT)
drivers/scsi/ibmvscsi/ibmvfc.c
1725
else if (evt->crq.format == IBMVFC_MAD_FORMAT)
drivers/scsi/ibmvscsi/ibmvfc.c
232
entry->fmt = evt->crq.format;
drivers/scsi/ibmvscsi/ibmvfc.c
269
entry->fmt = evt->crq.format;
drivers/scsi/ibmvscsi/ibmvfc.c
2781
if (evt->crq.format == IBMVFC_CMD_FORMAT &&
drivers/scsi/ibmvscsi/ibmvfc.c
3293
switch (crq->format) {
drivers/scsi/ibmvscsi/ibmvfc.c
3308
dev_err(vhost->dev, "Unknown crq message type: %d\n", crq->format);
drivers/scsi/ibmvscsi/ibmvfc.c
3315
if (crq->format == IBMVFC_PARTITION_MIGRATED) {
drivers/scsi/ibmvscsi/ibmvfc.c
3325
} else if (crq->format == IBMVFC_PARTNER_FAILED || crq->format == IBMVFC_PARTNER_DEREGISTER) {
drivers/scsi/ibmvscsi/ibmvfc.c
3326
dev_err(vhost->dev, "Host partner adapter deregistered or failed (rc=%d)\n", crq->format);
drivers/scsi/ibmvscsi/ibmvfc.c
3331
dev_err(vhost->dev, "Received unknown transport event from partner (rc=%d)\n", crq->format);
drivers/scsi/ibmvscsi/ibmvfc.c
3341
if (crq->format == IBMVFC_ASYNC_EVENT)
drivers/scsi/ibmvscsi/ibmvfc.h
652
volatile u8 format;
drivers/scsi/ibmvscsi/ibmvscsi.c
1778
switch (crq->format) {
drivers/scsi/ibmvscsi/ibmvscsi.c
1798
dev_err(hostdata->dev, "unknown crq message type: %d\n", crq->format);
drivers/scsi/ibmvscsi/ibmvscsi.c
1804
if (crq->format == 0x06) {
drivers/scsi/ibmvscsi/ibmvscsi.c
1813
crq->format);
drivers/scsi/ibmvscsi/ibmvscsi.c
1841
if (crq->format == VIOSRP_SRP_FORMAT)
drivers/scsi/ibmvscsi/ibmvscsi.c
584
u8 format,
drivers/scsi/ibmvscsi/ibmvscsi.c
590
evt_struct->crq.format = format;
drivers/scsi/ibmvscsi/ibmvscsi.c
801
} else if (evt->done && evt->crq.format != VIOSRP_MAD_FORMAT &&
drivers/scsi/ibmvscsi/ibmvscsi.c
887
if (evt_struct->crq.format == VIOSRP_SRP_FORMAT) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
1011
(crq->format != RESUME_FROM_SUSP)))
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
1037
(int)crq->format, vscsi->flags, vscsi->state);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
1039
switch (crq->format) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
1044
if (crq->format == MIGRATED)
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
110
crq->format = MESSAGE_IN_CRQ;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
1144
(uint)crq->format);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
1932
crq->format = cmd->rsp.format;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
1994
cmd->rsp.format = VIOSRP_MAD_FORMAT;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
2310
cmd->rsp.format = VIOSRP_SRP_FORMAT;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
2358
cmd->rsp.format = SRP_FORMAT;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
2479
crq->format = (u8)MESSAGE_IN_CRQ;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
2528
switch (crq->format) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
2556
(uint)crq->format);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
331
static long ibmvscsis_send_init_message(struct scsi_info *vscsi, u8 format)
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
339
crq->format = format;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
358
static long ibmvscsis_check_init_msg(struct scsi_info *vscsi, uint *format)
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
366
*format = (uint)UNUSED_FORMAT;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
367
} else if (crq->valid == VALID_INIT_MSG && crq->format == INIT_MSG) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
368
*format = (uint)INIT_MSG;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
3766
cmd->rsp.format = SRP_FORMAT;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
3782
cmd->rsp.format = SRP_FORMAT;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
381
*format = (uint)(crq->format);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
3816
cmd->rsp.format = SRP_FORMAT;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
387
*format = (uint)(crq->format);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
780
if (crq->format == INIT_MSG) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
782
} else if (crq->format == INIT_COMPLETE_MSG) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
787
(uint)crq->format);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
803
uint format;
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
825
rc = ibmvscsis_check_init_msg(vscsi, &format);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
832
if (format == UNUSED_FORMAT) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
850
} else if (format == INIT_MSG) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
998
(crq->format != RESUME_FROM_SUSP)))) {
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h
147
u8 format;
drivers/scsi/ibmvscsi_tgt/libsrp.c
304
u8 format;
drivers/scsi/ibmvscsi_tgt/libsrp.c
316
format = srp_cmd->buf_fmt >> 4;
drivers/scsi/ibmvscsi_tgt/libsrp.c
318
format = srp_cmd->buf_fmt & ((1U << 4) - 1);
drivers/scsi/ibmvscsi_tgt/libsrp.c
320
switch (format) {
drivers/scsi/ibmvscsi_tgt/libsrp.c
333
pr_err("Unknown format %d %x\n", dir, format);
drivers/scsi/ipr.h
1657
u32 format;
drivers/scsi/ips.h
82
#define IPS_PRINTK(level, pcidev, format, arg...) \
drivers/scsi/ips.h
83
dev_printk(level , &((pcidev)->dev) , format , ## arg)
drivers/scsi/lpfc/lpfc_els.c
6373
lpfc_els_rsp_rnid_acc(struct lpfc_vport *vport, uint8_t format,
drivers/scsi/lpfc/lpfc_els.c
6388
if (format)
drivers/scsi/lpfc/lpfc_els.c
6422
rn->Format = format;
drivers/scsi/lpfc/lpfc_els.c
6426
switch (format) {
drivers/scsi/megaraid/megaraid_sas_base.c
2967
megasas_dump(void *buf, int sz, int format)
drivers/scsi/megaraid/megaraid_sas_base.c
2973
if ((i % format) == 0) {
drivers/scsi/mpi3mr/mpi3mr_app.c
1933
u8 format = 0;
drivers/scsi/mpi3mr/mpi3mr_app.c
1935
format = ((nvme_encap_request->command[0] & 0xc000) >> 14);
drivers/scsi/mpi3mr/mpi3mr_app.c
1936
return format;
drivers/scsi/mvsas/mv_sas.h
40
#define mv_dprintk(format, arg...) \
drivers/scsi/mvsas/mv_sas.h
41
printk(KERN_DEBUG"%s %d:" format, __FILE__, __LINE__, ## arg)
drivers/scsi/mvsas/mv_sas.h
43
#define mv_dprintk(format, arg...) no_printk(format, ## arg)
drivers/scsi/qla1280.c
553
#define dprintk(level, format, a...) \
drivers/scsi/qla1280.c
554
do { if (ql_debug_level >= level) printk(KERN_ERR format, ##a); } while(0)
drivers/scsi/qla1280.c
561
#define dprintk(level, format, a...) do{}while(0)
drivers/scsi/qla2xxx/qla_dbg.h
324
void __attribute__((format (printf, 4, 5)))
drivers/scsi/qla2xxx/qla_dbg.h
326
void __attribute__((format (printf, 4, 5)))
drivers/scsi/qla2xxx/qla_dbg.h
328
void __attribute__((format (printf, 4, 5)))
drivers/scsi/qla2xxx/qla_dbg.h
332
void __attribute__((format (printf, 4, 5)))
drivers/scsi/qla2xxx/qla_dbg.h
334
void __attribute__((format (printf, 4, 5)))
drivers/scsi/qla2xxx/qla_def.h
1659
uint8_t format;
drivers/scsi/qla2xxx/qla_fw.h
1525
uint8_t format;
drivers/scsi/qla2xxx/qla_mbx.c
4051
if (rptid_entry->format == 0) {
drivers/scsi/qla2xxx/qla_mbx.c
4064
} else if (rptid_entry->format == 1) {
drivers/scsi/qla2xxx/qla_mbx.c
4217
} else if (rptid_entry->format == 2) {
drivers/scsi/qla2xxx/qla_mbx.c
4367
qla2x00_send_change_request(scsi_qla_host_t *vha, uint16_t format,
drivers/scsi/qla2xxx/qla_mbx.c
4378
mcp->mb[1] = format;
drivers/scsi/qla4xxx/ql4_def.h
116
#define ql4_printk(level, ha, format, arg...) \
drivers/scsi/qla4xxx/ql4_def.h
117
dev_printk(level , &((ha)->pdev->dev) , format , ## arg)
drivers/scsi/scsi_transport_iscsi.c
139
#define show_transport_attr(name, format) \
drivers/scsi/scsi_transport_iscsi.c
145
return sysfs_emit(buf, format"\n", priv->iscsi_transport->name);\
drivers/scsi/scsi_transport_iscsi.c
4440
#define iscsi_priv_session_attr_show(field, format) \
drivers/scsi/scsi_transport_iscsi.c
4449
return sysfs_emit(buf, format"\n", session->field); \
drivers/scsi/scsi_transport_iscsi.c
4478
#define iscsi_priv_session_rw_attr(field, format) \
drivers/scsi/scsi_transport_iscsi.c
4479
iscsi_priv_session_attr_show(field, format) \
drivers/scsi/sr_ioctl.c
487
static int sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize)
drivers/scsi/sr_ioctl.c
493
lba, format, blksize);
drivers/scsi/sr_ioctl.c
498
cgc.cmd[1] = ((format & 7) << 2);
drivers/scsi/st.c
3364
static int format_medium(struct scsi_tape *STp, int format)
drivers/scsi/st.c
3373
scmd[2] = format;
drivers/soc/mediatek/mtk-svs.c
1965
int format[6], x_roomt[6], o_vtsmcu[5], o_vtsabb, tb_roomt = 0;
drivers/soc/mediatek/mtk-svs.c
2067
format[0] = (o_vtsmcu[0] + 3350 - oe);
drivers/soc/mediatek/mtk-svs.c
2068
format[1] = (o_vtsmcu[1] + 3350 - oe);
drivers/soc/mediatek/mtk-svs.c
2069
format[2] = (o_vtsmcu[2] + 3350 - oe);
drivers/soc/mediatek/mtk-svs.c
2070
format[3] = (o_vtsmcu[3] + 3350 - oe);
drivers/soc/mediatek/mtk-svs.c
2071
format[4] = (o_vtsmcu[4] + 3350 - oe);
drivers/soc/mediatek/mtk-svs.c
2072
format[5] = (o_vtsabb + 3350 - oe);
drivers/soc/mediatek/mtk-svs.c
2075
x_roomt[i] = (((format[i] * 10000) / 4096) * 10000) / gain;
drivers/soc/tegra/cbb/tegra194-cbb.c
113
bool format; // [31] = 1 -> FlexNoC versions 2.7 & above
drivers/soc/tegra/cbb/tegra194-cbb.c
1859
hdr.format = (cbb->errlog0 >> 31);
drivers/soc/tegra/cbb/tegra194-cbb.c
1903
if (hdr.format)
drivers/staging/fbtft/fbtft.h
425
#define fbtft_init_dbg(dev, format, arg...) \
drivers/staging/fbtft/fbtft.h
429
dev_info(dev, format, ##arg); \
drivers/staging/fbtft/fbtft.h
432
#define fbtft_par_dbg(level, par, format, arg...) \
drivers/staging/fbtft/fbtft.h
435
dev_info((par)->info->device, format, ##arg); \
drivers/staging/fbtft/fbtft.h
438
#define fbtft_par_dbg_hex(level, par, dev, type, buf, num, format, arg...) \
drivers/staging/fbtft/fbtft.h
442
(num) * sizeof(type), format, ##arg); \
drivers/staging/greybus/audio_apbridgea.c
13
__u16 i2s_port, __u32 format, __u32 rate,
drivers/staging/greybus/audio_apbridgea.c
20
req.format = cpu_to_le32(format);
drivers/staging/greybus/audio_apbridgea.h
72
__le32 format; /* AUDIO_APBRIDGEA_PCM_FMT_* */
drivers/staging/greybus/audio_codec.c
177
u32 format, rate;
drivers/staging/greybus/audio_codec.c
212
format = params->format;
drivers/staging/greybus/audio_codec.c
218
format, rate, channels, sig_bits);
drivers/staging/greybus/audio_codec.c
398
u32 format, rate;
drivers/staging/greybus/audio_codec.c
438
format = GB_AUDIO_PCM_FMT_S16_LE;
drivers/staging/greybus/audio_codec.c
487
params->format = format;
drivers/staging/greybus/audio_codec.c
51
u32 format, rate;
drivers/staging/greybus/audio_codec.c
86
format = params->format;
drivers/staging/greybus/audio_codec.c
92
format, rate, channels, sig_bits);
drivers/staging/greybus/audio_codec.h
194
u16 data_cport, u32 *format,
drivers/staging/greybus/audio_codec.h
198
u16 data_cport, u32 format,
drivers/staging/greybus/audio_codec.h
214
__u16 i2s_port, __u32 format,
drivers/staging/greybus/audio_codec.h
57
u32 format, rate;
drivers/staging/greybus/audio_gb.c
108
u32 *format, u32 *rate, u8 *channels,
drivers/staging/greybus/audio_gb.c
122
*format = le32_to_cpu(resp.format);
drivers/staging/greybus/audio_gb.c
132
u32 format, u32 rate, u8 channels,
drivers/staging/greybus/audio_gb.c
138
req.format = cpu_to_le32(format);
drivers/staging/greybus/camera.c
229
fmt_info = gb_camera_get_format_info(cfg->format);
drivers/staging/greybus/camera.c
232
cfg->format);
drivers/staging/greybus/camera.c
553
cfg->format = cpu_to_le16(streams[i].format);
drivers/staging/greybus/camera.c
589
streams[i].format = le16_to_cpu(cfg->format);
drivers/staging/greybus/camera.c
70
unsigned int format;
drivers/staging/greybus/camera.c
801
gb_streams[i].format =
drivers/staging/greybus/camera.c
829
gb_camera_gb_to_mbus(gb_streams[i].format);
drivers/staging/greybus/camera.c
966
ret = kstrtouint(token, 16, &stream->format);
drivers/staging/greybus/camera.c
984
stream->format, stream->vc,
drivers/staging/greybus/uart.c
490
newline.format = termios->c_cflag & CSTOPB ?
drivers/staging/greybus/uart.c
888
gb_tty->line_coding.format = GB_SERIAL_1_STOP_BITS;
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
524
struct v4l2_subdev_format *format)
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
526
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
536
if (format->pad)
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
553
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
572
struct v4l2_subdev_format *format)
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
574
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
577
if (format->pad)
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
816
dev->format.code = MEDIA_BUS_FMT_SBGGR10_1X10;
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
627
struct v4l2_subdev_format *format)
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
629
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
636
if (format->pad)
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
655
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
701
struct v4l2_subdev_format *format)
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
703
struct v4l2_mbus_framefmt *fmt = &format->format;
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
706
if (format->pad)
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
978
dev->format.code = MEDIA_BUS_FMT_SBGGR10_1X10;
drivers/staging/media/atomisp/i2c/gc2235.h
136
struct v4l2_mbus_framefmt format;
drivers/staging/media/atomisp/i2c/ov2722.h
185
struct v4l2_mbus_framefmt format;
drivers/staging/media/atomisp/include/linux/atomisp_platform.h
163
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3270
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3272
switch (format) {
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3699
struct v4l2_subdev_format format = {
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3701
.format = *ffmt,
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3749
ret = v4l2_subdev_call(input->sensor, pad, set_fmt, sd_state, &format);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3751
ret, format.format.width, format.format.height);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3761
format.pad = SENSOR_ISP_PAD_SINK;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3762
ret = v4l2_subdev_call(input->sensor_isp, pad, set_fmt, sd_state, &format);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3764
ret, format.format.width, format.format.height);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3767
format.pad = SENSOR_ISP_PAD_SOURCE;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3768
ret = v4l2_subdev_call(input->sensor_isp, pad, set_fmt, sd_state, &format);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3770
ret, format.format.width, format.format.height);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3779
format.pad = CSI2_PAD_SINK;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3780
ret = v4l2_subdev_call(input->csi_port, pad, set_fmt, NULL, &format);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3785
*ffmt = format.format;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4043
const struct atomisp_format_bridge *format;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4065
format = atomisp_get_format_bridge(pix->pixelformat);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4066
if (!format)
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4086
if (format->sh_fmt == IA_CSS_FRAME_FORMAT_RAW &&
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4140
if (format->sh_fmt == IA_CSS_FRAME_FORMAT_RAW) {
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4166
format->planar ? pix->bytesperline :
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4167
pix->bytesperline * 8 / format->depth,
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4168
format->sh_fmt);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4171
format->planar ? pix->bytesperline :
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4172
pix->bytesperline * 8 / format->depth,
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4173
format->sh_fmt);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4176
pix->width, pix->height, format->sh_fmt);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4252
const struct atomisp_format_bridge *format;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4258
format = atomisp_get_format_bridge(f->pixelformat);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4259
if (!format)
drivers/staging/media/atomisp/pci/atomisp_cmd.c
4262
v4l2_fill_mbus_format(&ffmt, f, format->mbus_code);
drivers/staging/media/atomisp/pci/atomisp_compat.h
134
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/atomisp_compat.h
167
enum atomisp_input_format format);
drivers/staging/media/atomisp/pci/atomisp_compat.h
218
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/atomisp_compat.h
223
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/atomisp_compat.h
228
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/atomisp_compat.h
233
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/atomisp_compat.h
241
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/atomisp_compat.h
247
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1499
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1505
s_config->isys_config[isys_stream].format = format;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1510
enum atomisp_input_format format)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1515
s_config->input_config.format = format;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1536
s_config->input_config.format,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1559
s_config->isys_config[IA_CSS_STREAM_ISYS_STREAM_0].format =
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1579
s_config->isys_config[IA_CSS_STREAM_ISYS_STREAM_1].format =
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1673
s_config->input_config.format,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1878
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1892
stream_env->pipe_configs[pipe_id].output_info[0].format = format;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1903
pipe_id, width, height, format);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2189
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2201
stream_env->pipe_configs[pipe_id].vf_output_info[0].format = format;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2206
pipe_id, width, height, format);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2308
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2315
format, IA_CSS_PIPE_ID_COPY);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2322
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2325
min_width, format, IA_CSS_PIPE_ID_PREVIEW);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2332
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2335
min_width, format, IA_CSS_PIPE_ID_CAPTURE);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2342
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2345
min_width, format, IA_CSS_PIPE_ID_VIDEO);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2353
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2355
__configure_vf_output(asd, width, height, min_width, format,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2364
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2366
__configure_vf_output(asd, width, height, min_width, format, IA_CSS_PIPE_ID_CAPTURE);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
319
s_config->isys_config[j].format);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
335
s_config->input_config.format);
drivers/staging/media/atomisp/pci/atomisp_csi2.c
130
&fmt->format);
drivers/staging/media/atomisp/pci/atomisp_csi2.c
64
struct v4l2_mbus_framefmt *format;
drivers/staging/media/atomisp/pci/atomisp_csi2.c
66
format = __csi2_get_format(csi2, sd_state, fmt->which, fmt->pad);
drivers/staging/media/atomisp/pci/atomisp_csi2.c
68
fmt->format = *format;
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
1014
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
1046
ret = camera_sensor_csi_alloc(subdev, port, lanes, format, bayer_order);
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
967
u32 format, u32 bayer_order)
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
978
csi->input_format = format;
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
607
const struct atomisp_format_bridge *format;
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
624
format = &atomisp_output_fmts[i];
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
632
if (format->sh_fmt == IA_CSS_FRAME_FORMAT_RAW)
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
641
strscpy(f->description, format->description,
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
643
f->pixelformat = format->pixelformat;
drivers/staging/media/atomisp/pci/atomisp_subdev.c
541
fmt->format = *atomisp_subdev_get_ffmt(sd, sd_state, fmt->which,
drivers/staging/media/atomisp/pci/atomisp_subdev.c
562
&fmt->format);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
215
if (ia_css_util_is_input_format_yuv(pipe->stream->config.input_config.format))
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
218
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
231
preview_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
332
if (ia_css_util_is_input_format_yuv(pipe->stream->config.input_config.format))
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
337
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
493
in_info->format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
550
if (ia_css_util_is_input_format_yuv(pipe->stream->config.input_config.format))
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
557
in_info->format = IA_CSS_FRAME_FORMAT_RAW_PACKED;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
559
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
574
prim_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
59
descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
608
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
635
in_info->format = IA_CSS_FRAME_FORMAT_QPLANE6;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
662
in_info->format = IA_CSS_FRAME_FORMAT_YUV420_16;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
690
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
708
pre_de_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
729
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
742
pre_anr_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
763
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
793
in_info->format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
822
in_info->format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_util.c
19
return ia_css_util_input_format_bpp(pipe->stream->config.input_config.format,
drivers/staging/media/atomisp/pci/camera/util/src/util.c
139
bool ia_css_util_is_input_format_raw(enum atomisp_input_format format)
drivers/staging/media/atomisp/pci/camera/util/src/util.c
141
return ((format == ATOMISP_INPUT_FORMAT_RAW_6) ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
142
(format == ATOMISP_INPUT_FORMAT_RAW_7) ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
143
(format == ATOMISP_INPUT_FORMAT_RAW_8) ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
144
(format == ATOMISP_INPUT_FORMAT_RAW_10) ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
145
(format == ATOMISP_INPUT_FORMAT_RAW_12));
drivers/staging/media/atomisp/pci/camera/util/src/util.c
152
bool ia_css_util_is_input_format_yuv(enum atomisp_input_format format)
drivers/staging/media/atomisp/pci/camera/util/src/util.c
154
return format == ATOMISP_INPUT_FORMAT_YUV420_8_LEGACY ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
155
format == ATOMISP_INPUT_FORMAT_YUV420_8 ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
156
format == ATOMISP_INPUT_FORMAT_YUV420_10 ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
157
format == ATOMISP_INPUT_FORMAT_YUV420_16 ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
158
format == ATOMISP_INPUT_FORMAT_YUV422_8 ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
159
format == ATOMISP_INPUT_FORMAT_YUV422_10 ||
drivers/staging/media/atomisp/pci/camera/util/src/util.c
160
format == ATOMISP_INPUT_FORMAT_YUV422_16;
drivers/staging/media/atomisp/pci/camera/util/src/util.c
17
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/camera/util/src/util.c
177
!ia_css_util_is_input_format_raw(stream_config->input_config.format))
drivers/staging/media/atomisp/pci/camera/util/src/util.c
181
!ia_css_util_is_input_format_yuv(stream_config->input_config.format))
drivers/staging/media/atomisp/pci/camera/util/src/util.c
22
switch (format) {
drivers/staging/media/atomisp/pci/css_trace.h
263
#define PACK_FORMATTED_TRACEPOINT(format, major, minor, value) \
drivers/staging/media/atomisp/pci/css_trace.h
264
(FIELD_TID_PACK(FIELD_TID_SEL_FORMAT_PAT) | FIELD_FORMAT_PACK(format) | FIELD_MAJOR_PACK(major) | FIELD_MINOR_PACK(minor) | FIELD_VALUE_PACK(value))
drivers/staging/media/atomisp/pci/hive_isp_css_include/print_support.h
28
#define PWARN(format, ...) ia_css_print("warning: ", ##__VA_ARGS__)
drivers/staging/media/atomisp/pci/hive_isp_css_include/print_support.h
29
#define PRINT(format, ...) ia_css_print(format, ##__VA_ARGS__)
drivers/staging/media/atomisp/pci/hive_isp_css_include/print_support.h
30
#define PERROR(format, ...) ia_css_print("error: " format, ##__VA_ARGS__)
drivers/staging/media/atomisp/pci/hive_isp_css_include/print_support.h
31
#define PDEBUG(format, ...) ia_css_print("debug: " format, ##__VA_ARGS__)
drivers/staging/media/atomisp/pci/ia_css_frame_public.h
105
enum ia_css_frame_format format; /** format of the frame data */
drivers/staging/media/atomisp/pci/ia_css_frame_public.h
118
.format = IA_CSS_FRAME_FORMAT_NUM, \
drivers/staging/media/atomisp/pci/ia_css_frame_public.h
208
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/ia_css_mipi.h
34
const enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/ia_css_pipe_public.h
462
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/ia_css_stream_format.h
18
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
441
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
59
enum atomisp_input_format format; /** Format of input stream. This data
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
74
enum atomisp_input_format format; /** Format of input stream. This data
drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.c
237
assert((dvs_in_frame_info->format == IA_CSS_FRAME_FORMAT_NV12)
drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.c
238
|| (dvs_in_frame_info->format == IA_CSS_FRAME_FORMAT_YUV420));
drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.c
249
if (dvs_in_frame_info->format == IA_CSS_FRAME_FORMAT_YUV420) {
drivers/staging/media/atomisp/pci/isp/kernels/fpn/fpn_1.0/ia_css_fpn.host.c
79
my_info.format = info->format;
drivers/staging/media/atomisp/pci/isp/kernels/qplane/qplane_2/ia_css_qplane.host.c
40
to->format = from->info->format;
drivers/staging/media/atomisp/pci/isp/kernels/qplane/qplane_2/ia_css_qplane_param.h
19
u32 format; /* enum ia_css_frame_format */
drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c
75
assert((in_info->format == IA_CSS_FRAME_FORMAT_RAW_PACKED) ||
drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c
80
to->format = in_info->format;
drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw_param.h
20
u32 format; /* enum ia_css_frame_format */
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
1162
if (!binary_supports_output_format(xcandidate, req_bin_out_info->format)) {
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
1165
req_bin_out_info->format));
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
1173
!binary_supports_output_format(xcandidate, req_vf_info->format)) {
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
1177
binary_supports_output_format(xcandidate, req_vf_info->format));
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
1184
!binary_supports_vf_format(xcandidate, req_vf_info->format)) {
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
1189
binary_supports_vf_format(xcandidate, req_vf_info->format));
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
406
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
413
if (info->output_formats[i] == format)
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
421
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
428
if (info->vf_formats[i] == format)
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
709
binary->internal_frame_info.format = bin_out_info->format;
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
740
binary->in_frame_info.format = in_info->format;
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
768
binary->out_frame_info[i].format = out_info[i]->format;
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
795
binary->vf_frame_info.format = vf_info->format;
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
1092
debug_frame_format2str(frame->frame_info.format),
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
1393
debug_frame_format2str(out_frame->frame_info.format),
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
1416
pg_inst.stream_format = stream_config->input_config.format;
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
1437
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "format: %d\n", info->format);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
1599
config->input_config.format);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
401
bi->in_frame_info.format,
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
407
bi->internal_frame_info.format,
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
416
bi->out_frame_info[i].format,
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
424
bi->vf_frame_info.format,
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
461
ia_css_debug_dtrace(2, " format = %d\n", frame->frame_info.format);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
462
switch (frame->frame_info.format) {
drivers/staging/media/atomisp/pci/runtime/frame/interface/ia_css_frame.h
132
unsigned int ia_css_frame_pad_width(unsigned int width, enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/runtime/frame/interface/ia_css_frame.h
40
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/runtime/frame/interface/ia_css_frame.h
55
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/runtime/frame/interface/ia_css_frame_comm.h
68
unsigned char format; /* format of the frame data */
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
104
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
115
width, height, format, padded_width, raw_bit_depth);
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
117
err = frame_allocate_with_data(frame, width, height, format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
160
switch (frame->frame_info.format) {
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
264
unsigned int ia_css_frame_pad_width(unsigned int width, enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
266
switch (format) {
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
308
info->padded_width = ia_css_frame_pad_width(align, info->format);
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
314
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
319
info->format = format;
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
325
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
329
info, width, height, format, aligned);
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
336
info->format = format;
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
403
if (info_a->format != info_b->format)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
418
unsigned int is_raw_packed = info->format == IA_CSS_FRAME_FORMAT_RAW_PACKED;
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
512
if (frame->frame_info.format == IA_CSS_FRAME_FORMAT_NV12_TILEY) {
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
616
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
623
format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
64
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
648
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
661
me->frame_info.format = format;
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
677
if (info->format == IA_CSS_FRAME_FORMAT_RGB565)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
679
if (info->format == IA_CSS_FRAME_FORMAT_YUV420_16)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
681
if (info->format == IA_CSS_FRAME_FORMAT_YUV422_16)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
688
if (info->format == IA_CSS_FRAME_FORMAT_NV12_16)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
691
if (info->format == IA_CSS_FRAME_FORMAT_RAW
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
692
|| (info->format == IA_CSS_FRAME_FORMAT_RAW_PACKED)) {
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
698
if (info->format == IA_CSS_FRAME_FORMAT_PLANAR_RGB888)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
70
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
700
if (info->format == IA_CSS_FRAME_FORMAT_RGBA888)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
702
if (info->format == IA_CSS_FRAME_FORMAT_QPLANE6)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
713
to->format = (uint8_t)from->format;
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
731
frame->frame_info.format = frame_info->format;
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
94
info->format, info->padded_width,
drivers/staging/media/atomisp/pci/runtime/ifmtr/src/ifmtr.c
114
input_format = config->input_config.format;
drivers/staging/media/atomisp/pci/sh_css.c
1129
if (pipe->stream->config.input_config.format != ATOMISP_INPUT_FORMAT_BINARY_8)
drivers/staging/media/atomisp/pci/sh_css.c
193
enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/sh_css.c
2258
ref_info.format = IA_CSS_FRAME_FORMAT_RAW_PACKED;
drivers/staging/media/atomisp/pci/sh_css.c
2263
ref_info.format = IA_CSS_FRAME_FORMAT_RAW;
drivers/staging/media/atomisp/pci/sh_css.c
2268
pipe->pipe_settings.preview.preview_binary.in_frame_info.format =
drivers/staging/media/atomisp/pci/sh_css.c
2269
ref_info.format;
drivers/staging/media/atomisp/pci/sh_css.c
2271
pipe->pipe_settings.video.video_binary.in_frame_info.format = ref_info.format;
drivers/staging/media/atomisp/pci/sh_css.c
2375
need_vf_pp |= pipe_out_info->format != IA_CSS_FRAME_FORMAT_YUV_LINE &&
drivers/staging/media/atomisp/pci/sh_css.c
2376
!(pipe_out_info->format == IA_CSS_FRAME_FORMAT_NV12 ||
drivers/staging/media/atomisp/pci/sh_css.c
2377
pipe_out_info->format == IA_CSS_FRAME_FORMAT_NV12_16 ||
drivers/staging/media/atomisp/pci/sh_css.c
2378
pipe_out_info->format == IA_CSS_FRAME_FORMAT_NV12_TILEY);
drivers/staging/media/atomisp/pci/sh_css.c
2418
(mycs->preview_binary.out_frame_info[0].format != IA_CSS_FRAME_FORMAT_YUV_LINE)) {
drivers/staging/media/atomisp/pci/sh_css.c
260
struct ia_css_frame *frame, enum ia_css_frame_format format);
drivers/staging/media/atomisp/pci/sh_css.c
2937
struct ia_css_frame *frame, enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/sh_css.c
2947
in_frame->frame_info.format = format;
drivers/staging/media/atomisp/pci/sh_css.c
2949
if (IS_ISP2401 && format == IA_CSS_FRAME_FORMAT_RAW) {
drivers/staging/media/atomisp/pci/sh_css.c
2950
in_frame->frame_info.format = (pipe->stream->config.pack_raw_pixels) ?
drivers/staging/media/atomisp/pci/sh_css.c
3753
if (frame->frame_info.format == IA_CSS_FRAME_FORMAT_BINARY_8) {
drivers/staging/media/atomisp/pci/sh_css.c
387
enum ia_css_frame_format out_fmt = pipe->output_info[0].format;
drivers/staging/media/atomisp/pci/sh_css.c
393
switch (pipe->stream->config.input_config.format) {
drivers/staging/media/atomisp/pci/sh_css.c
4291
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/sh_css.c
4297
pipe, width, height, padded_width, format, idx);
drivers/staging/media/atomisp/pci/sh_css.c
4310
pipe->output_info[idx].format != format) {
drivers/staging/media/atomisp/pci/sh_css.c
4315
format,
drivers/staging/media/atomisp/pci/sh_css.c
4411
enum ia_css_frame_format format)
drivers/staging/media/atomisp/pci/sh_css.c
4430
if (supported_formats[i] == format) {
drivers/staging/media/atomisp/pci/sh_css.c
450
bpp = ia_css_util_input_format_bpp(stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
4523
video_bin_out_info.format = IA_CSS_FRAME_FORMAT_NV12;
drivers/staging/media/atomisp/pci/sh_css.c
4620
vf_info_format = video_vf_info->format;
drivers/staging/media/atomisp/pci/sh_css.c
4684
if (mycs->video_binary.vf_frame_info.format
drivers/staging/media/atomisp/pci/sh_css.c
4721
tnr_info.format = IA_CSS_FRAME_FORMAT_YUV_LINE;
drivers/staging/media/atomisp/pci/sh_css.c
474
stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
4874
info->padded_width, info->format,
drivers/staging/media/atomisp/pci/sh_css.c
4883
enum ia_css_frame_format format,
drivers/staging/media/atomisp/pci/sh_css.c
4889
pipe, width, height, min_width, format, idx);
drivers/staging/media/atomisp/pci/sh_css.c
4903
pipe->vf_output_info[idx].format != format)
drivers/staging/media/atomisp/pci/sh_css.c
4905
format, min_width);
drivers/staging/media/atomisp/pci/sh_css.c
508
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/sh_css.c
5091
capt_pp_out_info.format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/sh_css.c
513
switch (format) {
drivers/staging/media/atomisp/pci/sh_css.c
5309
ref_info.format = IA_CSS_FRAME_FORMAT_NV12;
drivers/staging/media/atomisp/pci/sh_css.c
5330
ref_info.format = IA_CSS_FRAME_FORMAT_NV12;
drivers/staging/media/atomisp/pci/sh_css.c
5630
rval &= ((pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
5664
pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_BINARY_8) {
drivers/staging/media/atomisp/pci/sh_css.c
5762
((pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
5764
(pipe->output_info[0].format != IA_CSS_FRAME_FORMAT_CSI_MIPI_LEGACY_YUV420_8));
drivers/staging/media/atomisp/pci/sh_css.c
5866
descr->internal_out_info[i].format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/sh_css.c
5875
descr->out_info[i].format = out_info->format;
drivers/staging/media/atomisp/pci/sh_css.c
5892
descr->internal_out_info[i].format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/sh_css.c
6015
tmp_in_info.format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/sh_css.c
6028
descr->internal_out_info[i].format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/sh_css.c
6037
descr->out_info[i].format = out_info[j]->format;
drivers/staging/media/atomisp/pci/sh_css.c
6055
descr->internal_out_info[i].format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/sh_css.c
6197
(pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_YUV422_8);
drivers/staging/media/atomisp/pci/sh_css.c
6498
if (pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
6501
} else if (pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
6692
pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_BINARY_8) {
drivers/staging/media/atomisp/pci/sh_css.c
6695
} else if (out_frame->frame_info.format == IA_CSS_FRAME_FORMAT_RAW) {
drivers/staging/media/atomisp/pci/sh_css.c
7197
pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_BINARY_8) {
drivers/staging/media/atomisp/pci/sh_css.c
7204
} else if (info->format == IA_CSS_FRAME_FORMAT_RAW ||
drivers/staging/media/atomisp/pci/sh_css.c
7205
info->format == IA_CSS_FRAME_FORMAT_RAW_PACKED) {
drivers/staging/media/atomisp/pci/sh_css.c
7226
stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
7237
stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
7256
enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/sh_css.c
7264
format, data, width);
drivers/staging/media/atomisp/pci/sh_css.c
729
stream_cfg->isys_config[isys_stream_idx].format,
drivers/staging/media/atomisp/pci/sh_css.c
7575
enum ia_css_frame_format format;
drivers/staging/media/atomisp/pci/sh_css.c
7578
format = IA_CSS_FRAME_FORMAT_YUV_LINE;
drivers/staging/media/atomisp/pci/sh_css.c
7583
format, 0);
drivers/staging/media/atomisp/pci/sh_css.c
7586
format = IA_CSS_FRAME_FORMAT_YUV420;
drivers/staging/media/atomisp/pci/sh_css.c
7591
format, 0);
drivers/staging/media/atomisp/pci/sh_css.c
7619
internal_pipe->config.output_info[i].format,
drivers/staging/media/atomisp/pci/sh_css.c
7638
internal_pipe->config.vf_output_info[i].format,
drivers/staging/media/atomisp/pci/sh_css.c
7723
pipe->output_info[0].format = new_format;
drivers/staging/media/atomisp/pci/sh_css.c
7725
pipe->vf_output_info[0].format = new_format;
drivers/staging/media/atomisp/pci/sh_css.c
7840
if (stream_config->input_config.format == ATOMISP_INPUT_FORMAT_BINARY_8 &&
drivers/staging/media/atomisp/pci/sh_css.c
801
fmt_type = stream_cfg->isys_config[isys_stream_idx].format;
drivers/staging/media/atomisp/pci/sh_css.c
8467
return stream->config.input_config.format;
drivers/staging/media/atomisp/pci/sh_css_internal.h
489
u32 format; /* Metadata format in hrt format */
drivers/staging/media/atomisp/pci/sh_css_mipi.c
124
if (format == ATOMISP_INPUT_FORMAT_YUV420_8
drivers/staging/media/atomisp/pci/sh_css_mipi.c
125
|| format == ATOMISP_INPUT_FORMAT_YUV420_10
drivers/staging/media/atomisp/pci/sh_css_mipi.c
126
|| format == ATOMISP_INPUT_FORMAT_YUV420_16) {
drivers/staging/media/atomisp/pci/sh_css_mipi.c
203
enum atomisp_input_format format;
drivers/staging/media/atomisp/pci/sh_css_mipi.c
235
format = stream_cfg->input_config.format;
drivers/staging/media/atomisp/pci/sh_css_mipi.c
258
width_padded, height, format);
drivers/staging/media/atomisp/pci/sh_css_mipi.c
260
bits_per_pixel = sh_css_stream_format_2_bits_per_subpixel(format);
drivers/staging/media/atomisp/pci/sh_css_mipi.c
262
(format == ATOMISP_INPUT_FORMAT_RAW_10 && pack_raw_pixels) ? bits_per_pixel : 16;
drivers/staging/media/atomisp/pci/sh_css_mipi.c
269
if (format == ATOMISP_INPUT_FORMAT_YUV420_8
drivers/staging/media/atomisp/pci/sh_css_mipi.c
270
|| format == ATOMISP_INPUT_FORMAT_YUV420_10) {
drivers/staging/media/atomisp/pci/sh_css_mipi.c
41
const enum atomisp_input_format format,
drivers/staging/media/atomisp/pci/sh_css_mipi.c
69
width_padded, height, format, hasSOLandEOL, embedded_data_size_words);
drivers/staging/media/atomisp/pci/sh_css_mipi.c
71
switch (format) {
drivers/staging/media/atomisp/pci/sh_css_sp.c
1269
&sh_css_sp_group.pipe[thread_id].metadata.format);
drivers/staging/media/atomisp/pci/sh_css_sp.c
435
switch (frame_in->frame_info.format) {
drivers/staging/media/atomisp/pci/sh_css_sp.c
519
switch (frame->frame_info.format) {
drivers/staging/media/atomisp/pci/sh_css_sp.c
550
switch (frame->frame_info.format) {
drivers/staging/media/atomisp/pci/sh_css_sp.c
591
switch (frame->frame_info.format) {
drivers/staging/media/atomisp/pci/sh_css_stream_format.c
11
enum atomisp_input_format format)
drivers/staging/media/atomisp/pci/sh_css_stream_format.c
15
switch (format) {
drivers/staging/media/atomisp/pci/sh_css_stream_format.h
13
enum atomisp_input_format format);
drivers/staging/media/av7110/av7110_av.c
1233
video_displayformat_t format = (video_displayformat_t)arg;
drivers/staging/media/av7110/av7110_av.c
1235
switch (format) {
drivers/staging/media/av7110/av7110_av.c
1250
av7110->videostate.display_format = format;
drivers/staging/media/av7110/av7110_hw.c
841
u16 format;
drivers/staging/media/av7110/av7110_hw.c
850
format = bpp2bit[av7110->osdbpp[av7110->osdwin]];
drivers/staging/media/av7110/av7110_hw.c
853
if (format == OSD_BITMAP8) {
drivers/staging/media/av7110/av7110_hw.c
855
} else if (format == OSD_BITMAP4) {
drivers/staging/media/av7110/av7110_hw.c
857
} else if (format == OSD_BITMAP2) {
drivers/staging/media/av7110/av7110_hw.c
859
} else if (format == OSD_BITMAP1) {
drivers/staging/media/av7110/av7110_hw.c
877
if (format != OSD_BITMAP8) {
drivers/staging/media/av7110/av7110_hw.c
889
ret = av7110_fw_cmd(av7110, COMTYPE_OSD, LoadBmp, 3, format, dx, dy);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1005
v4l2_fill_mbus_format(&format.format, &f->fmt.pix, mbus_code);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1007
set_fmt, NULL, &format);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
862
struct v4l2_subdev_format format = {
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
961
v4l2_fill_mbus_format(&format.format, pixfmt, mbus_code);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
963
&pad_state, &format);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
967
v4l2_fill_pix_format(pixfmt, &format.format);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
995
struct v4l2_subdev_format format = {
drivers/staging/media/imx/imx-ic-prp.c
147
sdformat->format = *fmt;
drivers/staging/media/imx/imx-ic-prp.c
177
v4l_bound_align_image(&sdformat->format.width, MIN_W, MAX_W,
drivers/staging/media/imx/imx-ic-prp.c
178
W_ALIGN, &sdformat->format.height,
drivers/staging/media/imx/imx-ic-prp.c
181
cc = imx_media_find_ipu_format(sdformat->format.code,
drivers/staging/media/imx/imx-ic-prp.c
188
sdformat->format.code = cc->codes[0];
drivers/staging/media/imx/imx-ic-prp.c
191
if (sdformat->format.field == V4L2_FIELD_ANY)
drivers/staging/media/imx/imx-ic-prp.c
192
sdformat->format.field = V4L2_FIELD_NONE;
drivers/staging/media/imx/imx-ic-prp.c
197
sdformat->format = *infmt;
drivers/staging/media/imx/imx-ic-prp.c
201
imx_media_try_colorimetry(&sdformat->format, true);
drivers/staging/media/imx/imx-ic-prp.c
204
*fmt = sdformat->format;
drivers/staging/media/imx/imx-ic-prpencvf.c
1000
format.format.width = -1;
drivers/staging/media/imx/imx-ic-prpencvf.c
1001
format.format.height = -1;
drivers/staging/media/imx/imx-ic-prpencvf.c
1002
prp_try_fmt(priv, sd_state, &format, &cc);
drivers/staging/media/imx/imx-ic-prpencvf.c
1003
fse->max_width = format.format.width;
drivers/staging/media/imx/imx-ic-prpencvf.c
1004
fse->max_height = format.format.height;
drivers/staging/media/imx/imx-ic-prpencvf.c
871
sdformat->format = *fmt;
drivers/staging/media/imx/imx-ic-prpencvf.c
884
*cc = imx_media_find_ipu_format(sdformat->format.code,
drivers/staging/media/imx/imx-ic-prpencvf.c
892
sdformat->format.code = (*cc)->codes[0];
drivers/staging/media/imx/imx-ic-prpencvf.c
899
sdformat->format.field = infmt->field;
drivers/staging/media/imx/imx-ic-prpencvf.c
901
prp_bound_align_output(&sdformat->format, infmt,
drivers/staging/media/imx/imx-ic-prpencvf.c
905
sdformat->format.colorspace = infmt->colorspace;
drivers/staging/media/imx/imx-ic-prpencvf.c
906
sdformat->format.xfer_func = infmt->xfer_func;
drivers/staging/media/imx/imx-ic-prpencvf.c
908
v4l_bound_align_image(&sdformat->format.width,
drivers/staging/media/imx/imx-ic-prpencvf.c
910
&sdformat->format.height,
drivers/staging/media/imx/imx-ic-prpencvf.c
914
if (sdformat->format.field == V4L2_FIELD_ANY)
drivers/staging/media/imx/imx-ic-prpencvf.c
915
sdformat->format.field = V4L2_FIELD_NONE;
drivers/staging/media/imx/imx-ic-prpencvf.c
918
imx_media_try_colorimetry(&sdformat->format, true);
drivers/staging/media/imx/imx-ic-prpencvf.c
943
*fmt = sdformat->format;
drivers/staging/media/imx/imx-ic-prpencvf.c
949
struct v4l2_subdev_format format;
drivers/staging/media/imx/imx-ic-prpencvf.c
951
format.pad = PRPENCVF_SRC_PAD;
drivers/staging/media/imx/imx-ic-prpencvf.c
952
format.which = sdformat->which;
drivers/staging/media/imx/imx-ic-prpencvf.c
953
format.format = sdformat->format;
drivers/staging/media/imx/imx-ic-prpencvf.c
954
prp_try_fmt(priv, sd_state, &format, &outcc);
drivers/staging/media/imx/imx-ic-prpencvf.c
958
*outfmt = format.format;
drivers/staging/media/imx/imx-ic-prpencvf.c
976
struct v4l2_subdev_format format = {};
drivers/staging/media/imx/imx-ic-prpencvf.c
985
format.pad = fse->pad;
drivers/staging/media/imx/imx-ic-prpencvf.c
986
format.which = fse->which;
drivers/staging/media/imx/imx-ic-prpencvf.c
987
format.format.code = fse->code;
drivers/staging/media/imx/imx-ic-prpencvf.c
988
format.format.width = 1;
drivers/staging/media/imx/imx-ic-prpencvf.c
989
format.format.height = 1;
drivers/staging/media/imx/imx-ic-prpencvf.c
990
prp_try_fmt(priv, sd_state, &format, &cc);
drivers/staging/media/imx/imx-ic-prpencvf.c
991
fse->min_width = format.format.width;
drivers/staging/media/imx/imx-ic-prpencvf.c
992
fse->min_height = format.format.height;
drivers/staging/media/imx/imx-ic-prpencvf.c
994
if (format.format.code != fse->code) {
drivers/staging/media/imx/imx-ic-prpencvf.c
999
format.format.code = fse->code;
drivers/staging/media/imx/imx-media-capture.c
368
cc_src = imx_media_find_ipu_format(fmt_src.format.code,
drivers/staging/media/imx/imx-media-capture.c
380
cc_src = imx_media_find_mbus_format(fmt_src.format.code,
drivers/staging/media/imx/imx-media-capture.c
402
cc = capture_find_format(fmt_src->format.code, pixfmt->pixelformat);
drivers/staging/media/imx/imx-media-capture.c
408
switch (fmt_src->format.field) {
drivers/staging/media/imx/imx-media-capture.c
410
fmt_src->format.field = V4L2_FIELD_INTERLACED_TB;
drivers/staging/media/imx/imx-media-capture.c
413
fmt_src->format.field = V4L2_FIELD_INTERLACED_BT;
drivers/staging/media/imx/imx-media-capture.c
420
imx_media_mbus_fmt_to_pix_fmt(pixfmt, &fmt_src->format, cc);
drivers/staging/media/imx/imx-media-capture.c
471
priv->vdev.compose.width = fmt_src.format.width;
drivers/staging/media/imx/imx-media-capture.c
472
priv->vdev.compose.height = fmt_src.format.height;
drivers/staging/media/imx/imx-media-capture.c
697
if (priv->vdev.compose.width != fmt_src.format.width ||
drivers/staging/media/imx/imx-media-capture.c
698
priv->vdev.compose.height != fmt_src.format.height)
drivers/staging/media/imx/imx-media-capture.c
705
cc = capture_find_format(fmt_src.format.code, 0);
drivers/staging/media/imx/imx-media-capture.c
890
fmt_src.format.code = MEDIA_BUS_FMT_UYVY8_2X8;
drivers/staging/media/imx/imx-media-capture.c
891
fmt_src.format.width = IMX_MEDIA_DEF_PIX_WIDTH;
drivers/staging/media/imx/imx-media-capture.c
892
fmt_src.format.height = IMX_MEDIA_DEF_PIX_HEIGHT;
drivers/staging/media/imx/imx-media-capture.c
895
imx_media_mbus_fmt_to_pix_fmt(&vdev->fmt, &fmt_src.format, NULL);
drivers/staging/media/imx/imx-media-capture.c
896
vdev->compose.width = fmt_src.format.width;
drivers/staging/media/imx/imx-media-capture.c
897
vdev->compose.height = fmt_src.format.height;
drivers/staging/media/imx/imx-media-csi.c
1375
sdformat->format = *fmt;
drivers/staging/media/imx/imx-media-csi.c
1393
if (sdformat->format.field == V4L2_FIELD_ANY)
drivers/staging/media/imx/imx-media-csi.c
1394
sdformat->format.field = V4L2_FIELD_NONE;
drivers/staging/media/imx/imx-media-csi.c
1406
if (!V4L2_FIELD_IS_SEQUENTIAL(sdformat->format.field))
drivers/staging/media/imx/imx-media-csi.c
1407
sdformat->format.field = infmt->field;
drivers/staging/media/imx/imx-media-csi.c
1419
if (!V4L2_FIELD_IS_SEQUENTIAL(sdformat->format.field))
drivers/staging/media/imx/imx-media-csi.c
1420
sdformat->format.field = (infmt->height == 480 / 2) ?
drivers/staging/media/imx/imx-media-csi.c
1425
sdformat->format.field = infmt->field;
drivers/staging/media/imx/imx-media-csi.c
1449
sdformat->format.width = compose->width;
drivers/staging/media/imx/imx-media-csi.c
1450
sdformat->format.height = compose->height;
drivers/staging/media/imx/imx-media-csi.c
1453
sdformat->format.code = infmt->code;
drivers/staging/media/imx/imx-media-csi.c
1460
*cc = imx_media_find_ipu_format(sdformat->format.code,
drivers/staging/media/imx/imx-media-csi.c
1465
sdformat->format.code = (*cc)->codes[0];
drivers/staging/media/imx/imx-media-csi.c
1472
sdformat->format.colorspace = infmt->colorspace;
drivers/staging/media/imx/imx-media-csi.c
1473
sdformat->format.xfer_func = infmt->xfer_func;
drivers/staging/media/imx/imx-media-csi.c
1474
sdformat->format.quantization = infmt->quantization;
drivers/staging/media/imx/imx-media-csi.c
1475
sdformat->format.ycbcr_enc = infmt->ycbcr_enc;
drivers/staging/media/imx/imx-media-csi.c
1479
v4l_bound_align_image(&sdformat->format.width, MIN_W, MAX_W,
drivers/staging/media/imx/imx-media-csi.c
1480
W_ALIGN, &sdformat->format.height,
drivers/staging/media/imx/imx-media-csi.c
1483
*cc = imx_media_find_mbus_format(sdformat->format.code,
drivers/staging/media/imx/imx-media-csi.c
1490
sdformat->format.code = (*cc)->codes[0];
drivers/staging/media/imx/imx-media-csi.c
1498
crop->width = sdformat->format.width;
drivers/staging/media/imx/imx-media-csi.c
1499
crop->height = sdformat->format.height;
drivers/staging/media/imx/imx-media-csi.c
1500
if (sdformat->format.field == V4L2_FIELD_ALTERNATE)
drivers/staging/media/imx/imx-media-csi.c
1502
csi_try_crop(priv, crop, sd_state, &sdformat->format, mbus_cfg);
drivers/staging/media/imx/imx-media-csi.c
1511
imx_media_try_colorimetry(&sdformat->format,
drivers/staging/media/imx/imx-media-csi.c
1549
*fmt = sdformat->format;
drivers/staging/media/imx/imx-media-csi.c
1558
struct v4l2_subdev_format format;
drivers/staging/media/imx/imx-media-csi.c
1560
format.pad = pad;
drivers/staging/media/imx/imx-media-csi.c
1561
format.which = sdformat->which;
drivers/staging/media/imx/imx-media-csi.c
1562
format.format = sdformat->format;
drivers/staging/media/imx/imx-media-csi.c
1563
csi_try_fmt(priv, &mbus_cfg, sd_state, &format, NULL,
drivers/staging/media/imx/imx-media-csi.c
1568
*outfmt = format.format;
drivers/staging/media/imx/imx-media-utils.c
439
struct v4l2_subdev_format format = {
drivers/staging/media/imx/imx-media-utils.c
444
ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &format);
drivers/staging/media/imx/imx-media-utils.c
449
*mf_try = format.format;
drivers/staging/media/imx/imx-media-vdic.c
520
sdformat->format = *fmt;
drivers/staging/media/imx/imx-media-vdic.c
533
*cc = imx_media_find_ipu_format(sdformat->format.code,
drivers/staging/media/imx/imx-media-vdic.c
540
sdformat->format.code = (*cc)->codes[0];
drivers/staging/media/imx/imx-media-vdic.c
548
sdformat->format = *infmt;
drivers/staging/media/imx/imx-media-vdic.c
550
sdformat->format.field = V4L2_FIELD_NONE;
drivers/staging/media/imx/imx-media-vdic.c
554
v4l_bound_align_image(&sdformat->format.width,
drivers/staging/media/imx/imx-media-vdic.c
556
&sdformat->format.height,
drivers/staging/media/imx/imx-media-vdic.c
560
if (!V4L2_FIELD_HAS_BOTH(sdformat->format.field))
drivers/staging/media/imx/imx-media-vdic.c
561
sdformat->format.field = V4L2_FIELD_SEQ_TB;
drivers/staging/media/imx/imx-media-vdic.c
565
imx_media_try_colorimetry(&sdformat->format, true);
drivers/staging/media/imx/imx-media-vdic.c
590
*fmt = sdformat->format;
drivers/staging/media/imx/imx-media-vdic.c
597
struct v4l2_subdev_format format;
drivers/staging/media/imx/imx-media-vdic.c
599
format.pad = VDIC_SRC_PAD_DIRECT;
drivers/staging/media/imx/imx-media-vdic.c
600
format.which = sdformat->which;
drivers/staging/media/imx/imx-media-vdic.c
601
format.format = sdformat->format;
drivers/staging/media/imx/imx-media-vdic.c
602
vdic_try_fmt(priv, sd_state, &format, &outcc);
drivers/staging/media/imx/imx-media-vdic.c
606
*outfmt = format.format;
drivers/staging/media/imx/imx6-mipi-csi2.c
520
sdformat->format = *fmt;
drivers/staging/media/imx/imx6-mipi-csi2.c
547
sdformat->format = csi2->format_mbus;
drivers/staging/media/imx/imx6-mipi-csi2.c
551
*fmt = sdformat->format;
drivers/staging/media/ipu3/ipu3-abi.h
1022
u32 format; /* enum imgu_abi_osys_format */
drivers/staging/media/ipu3/ipu3-abi.h
1349
u8 format; /* format of the frame data */
drivers/staging/media/ipu3/ipu3-abi.h
916
u32 format;
drivers/staging/media/ipu3/ipu3-css-params.c
1066
if (frame_params[pin].format ==
drivers/staging/media/ipu3/ipu3-css-params.c
1068
frame_params[pin].format ==
drivers/staging/media/ipu3/ipu3-css-params.c
1147
param->format = frame_params[pin].format;
drivers/staging/media/ipu3/ipu3-css-params.c
310
unsigned int format;
drivers/staging/media/ipu3/ipu3-css-params.c
425
unsigned int format = 0;
drivers/staging/media/ipu3/ipu3-css-params.c
465
imgu_css_osys_set_format(reso.pin_format[pin], &format,
drivers/staging/media/ipu3/ipu3-css-params.c
471
frame_params[pin].format = format;
drivers/staging/media/ipu3/ipu3-css-params.c
995
fr_pr->format = frame_params[pin].format;
drivers/staging/media/ipu3/ipu3-css.c
734
frame_sp_info->format = css_queue_in->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-css.c
743
frame_sp_info->format = css_queue_out->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-css.c
752
frame_sp_info->format = css_queue_out->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-css.c
761
frame_sp_info->format = css_queue_vf->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-css.c
923
frame_sp->info.format = css_queue_in->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-css.c
934
frame_sp->info.format = css_queue_out->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-css.c
950
frame_sp_info->format = css_queue_out->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-css.c
959
frame_sp->info.format = css_queue_vf->css_fmt->frame_format;
drivers/staging/media/ipu3/ipu3-v4l2.c
138
fmt->format = imgu_pipe->nodes[pad].pad_fmt;
drivers/staging/media/ipu3/ipu3-v4l2.c
141
fmt->format = *mf;
drivers/staging/media/ipu3/ipu3-v4l2.c
161
pipe, pad, fmt->format.width, fmt->format.height);
drivers/staging/media/ipu3/ipu3-v4l2.c
169
fmt->format.code = mf->code;
drivers/staging/media/ipu3/ipu3-v4l2.c
172
fmt->format.width = clamp(fmt->format.width,
drivers/staging/media/ipu3/ipu3-v4l2.c
175
fmt->format.height = clamp(fmt->format.height,
drivers/staging/media/ipu3/ipu3-v4l2.c
179
fmt->format.width = clamp(fmt->format.width,
drivers/staging/media/ipu3/ipu3-v4l2.c
182
fmt->format.height = clamp(fmt->format.height,
drivers/staging/media/ipu3/ipu3-v4l2.c
187
*mf = fmt->format;
drivers/staging/media/ipu7/ipu7-isys-queue.c
443
struct v4l2_mbus_framefmt format;
drivers/staging/media/ipu7/ipu7-isys-queue.c
454
&format);
drivers/staging/media/ipu7/ipu7-isys-queue.c
461
if (format.width != av->pix_fmt.width ||
drivers/staging/media/ipu7/ipu7-isys-queue.c
462
format.height != av->pix_fmt.height) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
464
av->pix_fmt.width, av->pix_fmt.height, format.width,
drivers/staging/media/ipu7/ipu7-isys-queue.c
465
format.height);
drivers/staging/media/ipu7/ipu7-isys-queue.c
470
if (format.code != code) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
472
code, format.code);
drivers/staging/media/ipu7/ipu7-isys-subdev.c
103
struct v4l2_subdev_format *format)
drivers/staging/media/ipu7/ipu7-isys-subdev.c
114
if ((sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SOURCE) &&
drivers/staging/media/ipu7/ipu7-isys-subdev.c
116
return v4l2_subdev_get_fmt(sd, state, format);
drivers/staging/media/ipu7/ipu7-isys-subdev.c
118
format->format.width = clamp(format->format.width, IPU_ISYS_MIN_WIDTH,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
120
format->format.height = clamp(format->format.height,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
125
if (asd->supported_codes[i] == format->format.code) {
drivers/staging/media/ipu7/ipu7-isys-subdev.c
130
format->format.code = code;
drivers/staging/media/ipu7/ipu7-isys-subdev.c
131
format->format.field = V4L2_FIELD_NONE;
drivers/staging/media/ipu7/ipu7-isys-subdev.c
134
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/staging/media/ipu7/ipu7-isys-subdev.c
138
*fmt = format->format;
drivers/staging/media/ipu7/ipu7-isys-subdev.c
140
if (!(sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SINK))
drivers/staging/media/ipu7/ipu7-isys-subdev.c
144
fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
145
format->stream);
drivers/staging/media/ipu7/ipu7-isys-subdev.c
149
*fmt = format->format;
drivers/staging/media/ipu7/ipu7-isys-subdev.c
152
format->pad,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
153
format->stream,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
217
struct v4l2_mbus_framefmt *format)
drivers/staging/media/ipu7/ipu7-isys-subdev.c
222
if (!sd || !format)
drivers/staging/media/ipu7/ipu7-isys-subdev.c
228
*format = *fmt;
drivers/staging/media/ipu7/ipu7-isys-subdev.h
35
struct v4l2_subdev_format *format);
drivers/staging/media/ipu7/ipu7-isys-subdev.h
41
struct v4l2_mbus_framefmt *format);
drivers/staging/media/ipu7/ipu7-isys-video.c
1017
struct v4l2_format format = {
drivers/staging/media/ipu7/ipu7-isys-video.c
1049
__ipu_isys_vidioc_try_fmt_vid_cap(av, &format);
drivers/staging/media/ipu7/ipu7-isys-video.c
1050
av->pix_fmt = format.fmt.pix;
drivers/staging/media/ipu7/ipu7-isys-video.c
179
u32 *format, u32 *width, u32 *height,
drivers/staging/media/ipu7/ipu7-isys-video.c
183
ipu7_isys_get_isys_format(*format);
drivers/staging/media/ipu7/ipu7-isys-video.c
185
*format = pfmt->pixelformat;
drivers/staging/media/ipu7/ipu7-isys-video.c
270
av->aq.vbq.is_multiplanar = V4L2_TYPE_IS_MULTIPLANAR(p->format.type);
drivers/staging/media/ipu7/ipu7-isys-video.c
271
av->aq.vbq.is_output = V4L2_TYPE_IS_OUTPUT(p->format.type);
drivers/staging/media/ipu7/ipu7-isys-video.c
273
ret = vb2_queue_change_type(&av->aq.vbq, p->format.type);
drivers/staging/media/meson/vdec/vdec.c
602
struct v4l2_format format;
drivers/staging/media/meson/vdec/vdec.c
619
memset(&format, 0, sizeof(format));
drivers/staging/media/meson/vdec/vdec.c
621
format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
drivers/staging/media/meson/vdec/vdec.c
622
format.fmt.pix_mp.pixelformat = pixfmt_out;
drivers/staging/media/meson/vdec/vdec.c
623
format.fmt.pix_mp.width = orig_pixmp.width;
drivers/staging/media/meson/vdec/vdec.c
624
format.fmt.pix_mp.height = orig_pixmp.height;
drivers/staging/media/meson/vdec/vdec.c
625
vdec_try_fmt_common(sess, num_formats, &format);
drivers/staging/media/meson/vdec/vdec.c
628
sess->width = format.fmt.pix_mp.width;
drivers/staging/media/meson/vdec/vdec.c
629
sess->height = format.fmt.pix_mp.height;
drivers/staging/media/meson/vdec/vdec.c
637
memset(&format, 0, sizeof(format));
drivers/staging/media/meson/vdec/vdec.c
639
format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
drivers/staging/media/meson/vdec/vdec.c
640
format.fmt.pix_mp.pixelformat = pixfmt_cap;
drivers/staging/media/meson/vdec/vdec.c
641
format.fmt.pix_mp.width = orig_pixmp.width;
drivers/staging/media/meson/vdec/vdec.c
642
format.fmt.pix_mp.height = orig_pixmp.height;
drivers/staging/media/meson/vdec/vdec.c
643
vdec_try_fmt_common(sess, num_formats, &format);
drivers/staging/media/meson/vdec/vdec.c
645
sess->width = format.fmt.pix_mp.width;
drivers/staging/media/meson/vdec/vdec.c
646
sess->height = format.fmt.pix_mp.height;
drivers/staging/media/meson/vdec/vdec.c
651
sess->pixfmt_cap = format.fmt.pix_mp.pixelformat;
drivers/staging/media/starfive/camss/stf-isp.c
145
struct v4l2_mbus_framefmt *format;
drivers/staging/media/starfive/camss/stf-isp.c
147
format = v4l2_subdev_state_get_format(state, fmt->pad);
drivers/staging/media/starfive/camss/stf-isp.c
148
if (!format)
drivers/staging/media/starfive/camss/stf-isp.c
151
isp_try_format(isp_dev, state, fmt->pad, &fmt->format);
drivers/staging/media/starfive/camss/stf-isp.c
152
*format = fmt->format;
drivers/staging/media/starfive/camss/stf-isp.c
155
fmt->format.code);
drivers/staging/media/starfive/camss/stf-isp.c
165
sel.r.width = fmt->format.width;
drivers/staging/media/starfive/camss/stf-isp.c
166
sel.r.height = fmt->format.height;
drivers/staging/media/starfive/camss/stf-isp.c
208
fmt.format = *v4l2_subdev_state_get_format(state,
drivers/staging/media/starfive/camss/stf-isp.c
212
sel->r.width = fmt.format.width;
drivers/staging/media/starfive/camss/stf-isp.c
213
sel->r.height = fmt.format.height;
drivers/staging/media/starfive/camss/stf-isp.c
276
fmt.format.width = rect->width;
drivers/staging/media/starfive/camss/stf-isp.c
277
fmt.format.height = rect->height;
drivers/staging/media/starfive/camss/stf-isp.c
290
struct v4l2_subdev_format format = {
drivers/staging/media/starfive/camss/stf-isp.c
293
.format = {
drivers/staging/media/starfive/camss/stf-isp.c
300
return isp_set_format(sd, sd_state, &format);
drivers/staging/media/starfive/camss/stf-video.c
109
struct v4l2_format format = {
drivers/staging/media/starfive/camss/stf-video.c
118
ret = __video_try_fmt(video, &format);
drivers/staging/media/starfive/camss/stf-video.c
123
video->active_fmt = format;
drivers/staging/media/starfive/camss/stf-video.c
139
const struct v4l2_pix_format *format = &video->active_fmt.fmt.pix;
drivers/staging/media/starfive/camss/stf-video.c
145
if (sizes[0] < format->sizeimage)
drivers/staging/media/starfive/camss/stf-video.c
149
sizes[0] = format->sizeimage;
drivers/staging/media/starfive/camss/stf-video.c
256
fi = video_g_fi_by_mcode(video, sd_fmt.format.code);
drivers/staging/media/starfive/camss/stf-video.c
261
pix->height != sd_fmt.format.height ||
drivers/staging/media/starfive/camss/stf-video.c
262
pix->width != sd_fmt.format.width ||
drivers/staging/media/starfive/camss/stf-video.c
263
pix->field != sd_fmt.format.field)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
113
const struct sun6i_isp_capture_format *format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
120
format = sun6i_isp_capture_format_find(pixelformat);
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
121
if (WARN_ON(!format))
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
142
SUN6I_ISP_MCH_CFG_OUTPUT_FMT(format->output_format) |
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
25
*width = isp_dev->capture.format.fmt.pix.width;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
267
unsigned int size = isp_dev->capture.format.fmt.pix.sizeimage;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
27
*height = isp_dev->capture.format.fmt.pix.height;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
283
unsigned int size = isp_dev->capture.format.fmt.pix.sizeimage;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
34
*pixelformat = isp_dev->capture.format.fmt.pix.pixelformat;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
375
static void sun6i_isp_capture_format_prepare(struct v4l2_format *format)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
377
struct v4l2_pix_format *pix_format = &format->fmt.pix;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
450
struct v4l2_format *format)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
454
*format = isp_dev->capture.format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
460
struct v4l2_format *format)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
467
sun6i_isp_capture_format_prepare(format);
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
469
isp_dev->capture.format = *format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
475
struct v4l2_format *format)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
477
sun6i_isp_capture_format_prepare(format);
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
631
struct v4l2_format *format = &capture->format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
632
struct v4l2_pix_format *pix_format = &format->fmt.pix;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
675
format->type = queue->type;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
680
sun6i_isp_capture_format_prepare(format);
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.h
47
struct v4l2_format format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
299
unsigned int size = isp_dev->params.format.fmt.meta.buffersize;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
315
unsigned int size = isp_dev->params.format.fmt.meta.buffersize;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
405
&isp_dev->params.format.fmt.meta;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
416
struct v4l2_format *format)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
420
*format = isp_dev->params.format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
464
struct v4l2_format *format = &isp_dev->params.format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
465
struct v4l2_meta_format *params_format = &format->fmt.meta;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
504
format->type = queue->type;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.h
34
struct v4l2_format format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
143
const struct sun6i_isp_proc_format *format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
154
format = sun6i_isp_proc_format_find(mbus_format->code);
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
155
if (WARN_ON(!format))
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
159
SUN6I_ISP_MODE_INPUT_FMT(format->input_format) |
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
160
SUN6I_ISP_MODE_INPUT_YUV_SEQ(format->input_yuv_seq) |
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
296
struct v4l2_subdev_format *format)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
299
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
304
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
306
format->pad);
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
317
struct v4l2_subdev_format *format)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
320
struct v4l2_mbus_framefmt *mbus_format = &format->format;
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
327
if (format->which == V4L2_SUBDEV_FORMAT_TRY)
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
328
*v4l2_subdev_state_get_format(state, format->pad) =
drivers/staging/media/tegra-video/csi.c
187
struct v4l2_mbus_framefmt *format = &fmt->format;
drivers/staging/media/tegra-video/csi.c
197
format->width, format->width);
drivers/staging/media/tegra-video/csi.c
198
format->width = sizes->width;
drivers/staging/media/tegra-video/csi.c
199
format->height = sizes->height;
drivers/staging/media/tegra-video/csi.c
202
if (format->code == tegra_csi_tpg_fmts[i].code)
drivers/staging/media/tegra-video/csi.c
208
format->code = tegra_csi_tpg_fmts[i].code;
drivers/staging/media/tegra-video/csi.c
209
format->field = V4L2_FIELD_NONE;
drivers/staging/media/tegra-video/csi.c
215
csi_chan_update_blank_intervals(csi_chan, format->code,
drivers/staging/media/tegra-video/csi.c
216
format->width, format->height);
drivers/staging/media/tegra-video/csi.c
217
csi_chan->format = *format;
drivers/staging/media/tegra-video/csi.c
605
chan->format.code = MEDIA_BUS_FMT_SRGGB10_1X10;
drivers/staging/media/tegra-video/csi.c
606
chan->format.field = V4L2_FIELD_NONE;
drivers/staging/media/tegra-video/csi.c
607
chan->format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/staging/media/tegra-video/csi.c
608
chan->format.width = TEGRA_DEF_WIDTH;
drivers/staging/media/tegra-video/csi.c
609
chan->format.height = TEGRA_DEF_HEIGHT;
drivers/staging/media/tegra-video/csi.c
610
csi_chan_update_blank_intervals(chan, chan->format.code,
drivers/staging/media/tegra-video/csi.c
611
chan->format.width,
drivers/staging/media/tegra-video/csi.c
612
chan->format.height);
drivers/staging/media/tegra-video/csi.c
89
fmt->format = csi_chan->format;
drivers/staging/media/tegra-video/csi.h
73
struct v4l2_mbus_framefmt format;
drivers/staging/media/tegra-video/tegra20.c
193
u32 output_fourcc = chan->format.pixelformat;
drivers/staging/media/tegra-video/tegra20.c
298
unsigned int stride = chan->format.bytesperline;
drivers/staging/media/tegra-video/tegra20.c
299
unsigned int height = chan->format.height;
drivers/staging/media/tegra-video/tegra20.c
303
switch (chan->format.pixelformat) {
drivers/staging/media/tegra-video/tegra20.c
320
if (chan->format.pixelformat == V4L2_PIX_FMT_YVU420)
drivers/staging/media/tegra-video/tegra20.c
453
u32 output_fourcc = chan->format.pixelformat;
drivers/staging/media/tegra-video/tegra20.c
454
int width = chan->format.width;
drivers/staging/media/tegra-video/tegra20.c
455
int height = chan->format.height;
drivers/staging/media/tegra-video/tegra20.c
456
int stride_l = chan->format.bytesperline;
drivers/staging/media/tegra-video/tegra20.c
609
int width = vi_chan->format.width;
drivers/staging/media/tegra-video/tegra20.c
610
int height = vi_chan->format.height;
drivers/staging/media/tegra-video/tegra210.c
263
u32 height = chan->format.height;
drivers/staging/media/tegra-video/tegra210.c
264
u32 width = chan->format.width;
drivers/staging/media/tegra-video/tegra210.c
265
u32 format = chan->fmtinfo->img_fmt;
drivers/staging/media/tegra-video/tegra210.c
295
(format << IMAGE_DEF_FORMAT_OFFSET) |
drivers/staging/media/tegra-video/tegra210.c
388
int bytesperline = chan->format.bytesperline;
drivers/staging/media/tegra-video/tegra210.c
389
u32 sizeimage = chan->format.sizeimage;
drivers/staging/media/tegra-video/tegra210.c
416
int gang_bpl = (chan->format.width >> 1) * chan->fmtinfo->bpp;
drivers/staging/media/tegra-video/vi.c
1124
chan->format.pixelformat = chan->fmtinfo->fourcc;
drivers/staging/media/tegra-video/vi.c
1125
chan->format.colorspace = V4L2_COLORSPACE_SRGB;
drivers/staging/media/tegra-video/vi.c
1126
chan->format.field = V4L2_FIELD_NONE;
drivers/staging/media/tegra-video/vi.c
1127
chan->format.width = TEGRA_DEF_WIDTH;
drivers/staging/media/tegra-video/vi.c
1128
chan->format.height = TEGRA_DEF_HEIGHT;
drivers/staging/media/tegra-video/vi.c
1129
chan->format.bytesperline = TEGRA_DEF_WIDTH * chan->fmtinfo->bpp;
drivers/staging/media/tegra-video/vi.c
1130
chan->format.sizeimage = chan->format.bytesperline * TEGRA_DEF_HEIGHT;
drivers/staging/media/tegra-video/vi.c
1131
vi->ops->vi_fmt_align(&chan->format, chan->fmtinfo->bpp);
drivers/staging/media/tegra-video/vi.c
115
return sizes[0] < chan->format.sizeimage ? -EINVAL : 0;
drivers/staging/media/tegra-video/vi.c
118
sizes[0] = chan->format.sizeimage;
drivers/staging/media/tegra-video/vi.c
132
unsigned long size = chan->format.sizeimage;
drivers/staging/media/tegra-video/vi.c
414
struct v4l2_format *format)
drivers/staging/media/tegra-video/vi.c
418
format->fmt.pix = chan->format;
drivers/staging/media/tegra-video/vi.c
461
pix->pixelformat = chan->format.pixelformat;
drivers/staging/media/tegra-video/vi.c
462
pix->colorspace = chan->format.colorspace;
drivers/staging/media/tegra-video/vi.c
469
v4l2_fill_mbus_format(&fmt.format, pix, fmtinfo->code);
drivers/staging/media/tegra-video/vi.c
502
v4l2_fill_pix_format(pix, &fmt.format);
drivers/staging/media/tegra-video/vi.c
512
struct v4l2_format *format)
drivers/staging/media/tegra-video/vi.c
516
return __tegra_channel_try_format(chan, &format->fmt.pix);
drivers/staging/media/tegra-video/vi.c
521
if (chan->format.width <= 1920)
drivers/staging/media/tegra-video/vi.c
528
struct v4l2_format *format)
drivers/staging/media/tegra-video/vi.c
536
struct v4l2_pix_format *pix = &format->fmt.pix;
drivers/staging/media/tegra-video/vi.c
550
v4l2_fill_mbus_format(&fmt.format, pix, fmtinfo->code);
drivers/staging/media/tegra-video/vi.c
556
v4l2_fill_pix_format(pix, &fmt.format);
drivers/staging/media/tegra-video/vi.c
559
chan->format = *pix;
drivers/staging/media/tegra-video/vi.c
583
index = tegra_get_format_idx_by_code(chan->vi, fmt.format.code, 0);
drivers/staging/media/tegra-video/vi.c
588
v4l2_fill_pix_format(&chan->format, &fmt.format);
drivers/staging/media/tegra-video/vi.c
589
chan->format.pixelformat = chan->fmtinfo->fourcc;
drivers/staging/media/tegra-video/vi.c
590
chan->format.bytesperline = chan->format.width * chan->fmtinfo->bpp;
drivers/staging/media/tegra-video/vi.c
591
chan->format.sizeimage = chan->format.bytesperline *
drivers/staging/media/tegra-video/vi.c
592
chan->format.height;
drivers/staging/media/tegra-video/vi.c
593
chan->vi->ops->vi_fmt_align(&chan->format, chan->fmtinfo->bpp);
drivers/staging/media/tegra-video/vi.c
647
sel->r.width = fmt.format.width;
drivers/staging/media/tegra-video/vi.c
648
sel->r.height = fmt.format.height;
drivers/staging/media/tegra-video/vi.c
758
chan->format.width = bt->width;
drivers/staging/media/tegra-video/vi.c
759
chan->format.height = bt->height;
drivers/staging/media/tegra-video/vi.c
760
chan->format.bytesperline = bt->width * chan->fmtinfo->bpp;
drivers/staging/media/tegra-video/vi.c
761
chan->format.sizeimage = chan->format.bytesperline * bt->height;
drivers/staging/media/tegra-video/vi.c
762
chan->vi->ops->vi_fmt_align(&chan->format, chan->fmtinfo->bpp);
drivers/staging/media/tegra-video/vi.h
200
struct v4l2_pix_format format;
drivers/staging/most/video/video.c
234
struct v4l2_format *format)
drivers/staging/most/video/video.c
236
if (format->fmt.pix.pixelformat != V4L2_PIX_FMT_MPEG)
drivers/staging/most/video/video.c
242
comp_set_format_struct(format);
drivers/staging/rtl8723bs/include/osdep_service.h
107
#define rtw_sprintf(buf, size, format, arg...) snprintf(buf, size, format, ##arg)
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
214
snd_pcm_format_width(runtime->format));
drivers/target/tcm_fc/tcm_fc.h
19
__u8 format;
drivers/thermal/qcom/tsens.c
207
const struct tsens_legacy_calibration_format *format,
drivers/thermal/qcom/tsens.c
215
mode = tsens_read_cell(&format->mode, 2, cdata0, cdata1);
drivers/thermal/qcom/tsens.c
216
invalid = tsens_read_cell(&format->invalid, 1, cdata0, cdata1);
drivers/thermal/qcom/tsens.c
221
base1 = tsens_read_cell(&format->base[0], format->base_len, cdata0, cdata1);
drivers/thermal/qcom/tsens.c
222
base2 = tsens_read_cell(&format->base[1], format->base_len, cdata0, cdata1);
drivers/thermal/qcom/tsens.c
225
p1[i] = tsens_read_cell(&format->sp[i][0], format->sp_len, cdata0, cdata1);
drivers/thermal/qcom/tsens.c
226
p2[i] = tsens_read_cell(&format->sp[i][1], format->sp_len, cdata0, cdata1);
drivers/thermal/qcom/tsens.c
232
p1[i] = p1[i] + (base1 << format->base_shift);
drivers/thermal/qcom/tsens.c
236
p2[i] = (p2[i] + base2) << format->base_shift;
drivers/thermal/qcom/tsens.c
240
p1[i] = (p1[i] + base1) << format->base_shift;
drivers/thermal/qcom/tsens.h
630
const struct tsens_legacy_calibration_format *format,
drivers/thunderbolt/ctl.c
58
#define tb_ctl_WARN(ctl, format, arg...) \
drivers/thunderbolt/ctl.c
59
dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg)
drivers/thunderbolt/ctl.c
61
#define tb_ctl_err(ctl, format, arg...) \
drivers/thunderbolt/ctl.c
62
dev_err(&(ctl)->nhi->pdev->dev, format, ## arg)
drivers/thunderbolt/ctl.c
64
#define tb_ctl_warn(ctl, format, arg...) \
drivers/thunderbolt/ctl.c
65
dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg)
drivers/thunderbolt/ctl.c
67
#define tb_ctl_info(ctl, format, arg...) \
drivers/thunderbolt/ctl.c
68
dev_info(&(ctl)->nhi->pdev->dev, format, ## arg)
drivers/thunderbolt/ctl.c
70
#define tb_ctl_dbg(ctl, format, arg...) \
drivers/thunderbolt/ctl.c
71
dev_dbg(&(ctl)->nhi->pdev->dev, format, ## arg)
drivers/thunderbolt/ctl.c
73
#define tb_ctl_dbg_once(ctl, format, arg...) \
drivers/thunderbolt/ctl.c
74
dev_dbg_once(&(ctl)->nhi->pdev->dev, format, ## arg)
drivers/usb/atm/ueagle-atm.c
39
#define uea_dbg(usb_dev, format, args...) \
drivers/usb/atm/ueagle-atm.c
43
"[ueagle-atm dbg] %s: " format, \
drivers/usb/atm/ueagle-atm.c
47
#define uea_vdbg(usb_dev, format, args...) \
drivers/usb/atm/ueagle-atm.c
51
"[ueagle-atm vdbg] " format, ##args); \
drivers/usb/atm/ueagle-atm.c
60
#define uea_err(usb_dev, format, args...) \
drivers/usb/atm/ueagle-atm.c
61
dev_err(&(usb_dev)->dev , "[UEAGLE-ATM] " format , ##args)
drivers/usb/atm/ueagle-atm.c
63
#define uea_warn(usb_dev, format, args...) \
drivers/usb/atm/ueagle-atm.c
64
dev_warn(&(usb_dev)->dev , "[Ueagle-atm] " format, ##args)
drivers/usb/atm/ueagle-atm.c
66
#define uea_info(usb_dev, format, args...) \
drivers/usb/atm/ueagle-atm.c
67
dev_info(&(usb_dev)->dev , "[ueagle-atm] " format, ##args)
drivers/usb/atm/usbatm.h
29
#define usb_err(instance, format, arg...) \
drivers/usb/atm/usbatm.h
30
dev_err(&(instance)->usb_intf->dev , format , ## arg)
drivers/usb/atm/usbatm.h
31
#define usb_info(instance, format, arg...) \
drivers/usb/atm/usbatm.h
32
dev_info(&(instance)->usb_intf->dev , format , ## arg)
drivers/usb/atm/usbatm.h
33
#define usb_warn(instance, format, arg...) \
drivers/usb/atm/usbatm.h
34
dev_warn(&(instance)->usb_intf->dev , format , ## arg)
drivers/usb/atm/usbatm.h
35
#define usb_dbg(instance, format, arg...) \
drivers/usb/atm/usbatm.h
36
dev_dbg(&(instance)->usb_intf->dev , format , ## arg)
drivers/usb/atm/usbatm.h
39
#define atm_printk(level, instance, format, arg...) \
drivers/usb/atm/usbatm.h
40
printk(level "ATM dev %d: " format , \
drivers/usb/atm/usbatm.h
43
#define atm_err(instance, format, arg...) \
drivers/usb/atm/usbatm.h
44
atm_printk(KERN_ERR, instance , format , ## arg)
drivers/usb/atm/usbatm.h
45
#define atm_info(instance, format, arg...) \
drivers/usb/atm/usbatm.h
46
atm_printk(KERN_INFO, instance , format , ## arg)
drivers/usb/atm/usbatm.h
47
#define atm_warn(instance, format, arg...) \
drivers/usb/atm/usbatm.h
48
atm_printk(KERN_WARNING, instance , format , ## arg)
drivers/usb/atm/usbatm.h
49
#define atm_dbg(instance, format, ...) \
drivers/usb/atm/usbatm.h
50
pr_debug("ATM dev %d: " format, \
drivers/usb/atm/usbatm.h
52
#define atm_rldbg(instance, format, ...) \
drivers/usb/atm/usbatm.h
53
pr_debug_ratelimited("ATM dev %d: " format, \
drivers/usb/core/devio.c
121
#define snoop(dev, format, arg...) \
drivers/usb/core/devio.c
124
dev_info(dev, format, ## arg); \
drivers/usb/gadget/function/f_mass_storage.c
1210
u8 format;
drivers/usb/gadget/function/f_mass_storage.c
1213
format = common->cmnd[2] & 0xf;
drivers/usb/gadget/function/f_mass_storage.c
1216
(start_track > 1 && format != 0x1)) {
drivers/usb/gadget/function/f_mass_storage.c
1226
if (format == 0)
drivers/usb/gadget/function/f_mass_storage.c
1227
format = (common->cmnd[9] >> 6) & 0x3;
drivers/usb/gadget/function/f_mass_storage.c
1229
switch (format) {
drivers/usb/gadget/function/f_midi2.c
2116
u32 val, const char *format, char *page)
drivers/usb/gadget/function/f_midi2.c
2121
result = sprintf(page, format, val);
drivers/usb/gadget/function/f_midi2.c
2226
#define F_MIDI2_BLOCK_OPT(name, format, minval, maxval) \
drivers/usb/gadget/function/f_midi2.c
2232
format "\n", page); \
drivers/usb/gadget/function/f_midi2.c
2413
#define F_MIDI2_EP_OPT(name, format, minval, maxval) \
drivers/usb/gadget/function/f_midi2.c
2419
format "\n", page); \
drivers/usb/gadget/function/f_midi2.c
611
unsigned int format, status, blk;
drivers/usb/gadget/function/f_midi2.c
613
format = ump_stream_message_format(*data);
drivers/usb/gadget/function/f_midi2.c
617
if (format)
drivers/usb/gadget/function/f_midi2.c
642
if (format)
drivers/usb/gadget/function/f_ncm.c
759
uint16_t format;
drivers/usb/gadget/function/f_ncm.c
763
format = (ncm->parser_opts == &ndp16_opts) ? 0x0000 : 0x0001;
drivers/usb/gadget/function/f_ncm.c
764
put_unaligned_le16(format, req->buf);
drivers/usb/gadget/function/f_ncm.c
766
VDBG(cdev, "Host asked NTB FORMAT, sending %d\n", format);
drivers/usb/gadget/function/u_uac1_legacy.c
105
snd->format = SNDRV_PCM_FORMAT_S16_LE;
drivers/usb/gadget/function/u_uac1_legacy.c
117
snd->format, 0);
drivers/usb/gadget/function/u_uac1_legacy.c
136
snd->format = params_format(params);
drivers/usb/gadget/function/u_uac1_legacy.c
144
snd->access, snd->format, snd->channels, snd->rate);
drivers/usb/gadget/function/u_uac1_legacy.h
39
int format;
drivers/usb/gadget/function/uvc_configfs.c
2298
const struct uvc_format_desc *format;
drivers/usb/gadget/function/uvc_configfs.c
2316
format = uvc_format_by_guid(tmpguidFormat);
drivers/usb/gadget/function/uvc_configfs.c
2317
if (!format) {
drivers/usb/gadget/function/uvc_v4l2.c
106
struct uvcg_format_ptr *format;
drivers/usb/gadget/function/uvc_v4l2.c
110
list_for_each_entry(format, &uvc->header->formats, entry) {
drivers/usb/gadget/function/uvc_v4l2.c
111
if (format->fmt->type != uformat->type)
drivers/usb/gadget/function/uvc_v4l2.c
113
list_for_each_entry(frame, &format->fmt->frames, entry) {
drivers/usb/gadget/function/uvc_v4l2.c
127
struct uvcg_format_ptr *format;
drivers/usb/gadget/function/uvc_v4l2.c
130
list_for_each_entry(format, &uvc->header->formats, entry) {
drivers/usb/gadget/function/uvc_v4l2.c
131
const struct uvc_format_desc *fmtdesc = to_uvc_format(format->fmt);
drivers/usb/gadget/function/uvc_v4l2.c
137
uformat = format->fmt;
drivers/usb/gadget/function/uvc_v4l2.c
150
struct uvcg_format_ptr *format;
drivers/usb/gadget/function/uvc_v4l2.c
161
list_for_each_entry(format, &uvc->header->formats, entry) {
drivers/usb/gadget/function/uvc_v4l2.c
162
if (format->fmt->type != uformat->type)
drivers/usb/gadget/function/uvc_v4l2.c
165
list_for_each_entry(frame, &format->fmt->frames, entry) {
drivers/usb/gadget/function/uvc_v4l2.c
33
const struct uvc_format_desc *format;
drivers/usb/gadget/function/uvc_v4l2.c
53
format = uvc_format_by_guid(guid);
drivers/usb/gadget/function/uvc_v4l2.c
54
if (!format)
drivers/usb/gadget/function/uvc_v4l2.c
57
return format;
drivers/usb/gadget/function/uvc_v4l2.c
87
struct uvcg_format_ptr *format;
drivers/usb/gadget/function/uvc_v4l2.c
91
list_for_each_entry(format, &uvc->header->formats, entry) {
drivers/usb/gadget/function/uvc_v4l2.c
93
uformat = format->fmt;
drivers/usb/host/ohci-dbg.c
23
#define ohci_dbg_sw(ohci, next, size, format, arg...) \
drivers/usb/host/ohci-dbg.c
27
s_len = scnprintf (*next, *size, format, ## arg ); \
drivers/usb/host/ohci-dbg.c
30
ohci_dbg(ohci,format, ## arg ); \
drivers/usb/host/ohci-dbg.c
34
#define ohci_dbg_nosw(ohci, next, size, format, arg...) \
drivers/usb/host/ohci-dbg.c
37
s_len = scnprintf(*next, *size, format, ## arg); \
drivers/usb/misc/chaoskey.c
32
#define usb_dbg(usb_if, format, arg...) \
drivers/usb/misc/chaoskey.c
33
dev_dbg(&(usb_if)->dev, format, ## arg)
drivers/usb/misc/chaoskey.c
35
#define usb_err(usb_if, format, arg...) \
drivers/usb/misc/chaoskey.c
36
dev_err(&(usb_if)->dev, format, ## arg)
drivers/usb/musb/musb_debug.h
13
#define yprintk(facility, format, args...) \
drivers/usb/musb/musb_debug.h
14
do { printk(facility "%s %d: " format , \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
170
#define mlx5_vdpa_err(__dev, format, ...) \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
171
dev_err((__dev)->mdev->device, "%s:%d:(pid %d) error: " format, __func__, __LINE__, \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
175
#define mlx5_vdpa_warn(__dev, format, ...) \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
176
dev_warn((__dev)->mdev->device, "%s:%d:(pid %d) warning: " format, __func__, __LINE__, \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
179
#define mlx5_vdpa_info(__dev, format, ...) \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
180
dev_info((__dev)->mdev->device, "%s:%d:(pid %d): " format, __func__, __LINE__, \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
183
#define mlx5_vdpa_dbg(__dev, format, ...) \
drivers/vdpa/mlx5/core/mlx5_vdpa.h
184
dev_debug((__dev)->mdev->device, "%s:%d:(pid %d): " format, __func__, __LINE__, \
drivers/video/fbdev/aty/atyfb_base.c
3187
u32 format;
drivers/video/fbdev/aty/atyfb_base.c
3229
format = *(u32 *)(par->lcd_table+57);
drivers/video/fbdev/aty/atyfb_base.c
3231
switch (format & 7) {
drivers/video/fbdev/aty/atyfb_base.c
3245
switch (format & 7) {
drivers/video/fbdev/aty/radeon_base.c
1649
int format = 0;
drivers/video/fbdev/aty/radeon_base.c
1724
format = radeon_get_dstbpp(depth);
drivers/video/fbdev/aty/radeon_base.c
1727
hsync_fudge = hsync_fudge_fp[format-1];
drivers/video/fbdev/aty/radeon_base.c
1729
hsync_fudge = hsync_adj_tab[format-1];
drivers/video/fbdev/aty/radeon_base.c
1734
(format << 8);
drivers/video/fbdev/cirrusfb.c
1121
format |= 0x1400;
drivers/video/fbdev/cirrusfb.c
1179
format |= 0x2400;
drivers/video/fbdev/cirrusfb.c
1247
fb_writew(format, cinfo->laguna_mmio + 0xc0);
drivers/video/fbdev/cirrusfb.c
671
unsigned int control = 0, format = 0, threshold = 0;
drivers/video/fbdev/cirrusfb.c
882
format = 0;
drivers/video/fbdev/omap/hwa742.c
1003
hwa742.auto_update_window.format = 0;
drivers/video/fbdev/omap/hwa742.c
435
flags = win->format & ~OMAPFB_FORMAT_MASK;
drivers/video/fbdev/omap/hwa742.c
436
color_mode = win->format & OMAPFB_FORMAT_MASK;
drivers/video/fbdev/omap/hwa742.c
506
if (unlikely(win->format &
drivers/video/fbdev/omap/omapfb.h
44
enum omapfb_color_format format;/* OMAPFB_COLOR_* */
drivers/video/fbdev/omap/omapfb_main.c
758
win.format = 0;
drivers/video/fbdev/omap2/omapfb/dss/dss.h
27
#define DSSDBG(format, ...) \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
28
pr_debug(format, ## __VA_ARGS__)
drivers/video/fbdev/omap2/omapfb/dss/dss.h
31
#define DSSERR(format, ...) \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
32
printk(KERN_ERR "omapdss " DSS_SUBSYS_NAME " error: " format, \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
35
#define DSSERR(format, ...) \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
36
printk(KERN_ERR "omapdss error: " format, ## __VA_ARGS__)
drivers/video/fbdev/omap2/omapfb/dss/dss.h
40
#define DSSINFO(format, ...) \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
41
printk(KERN_INFO "omapdss " DSS_SUBSYS_NAME ": " format, \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
44
#define DSSINFO(format, ...) \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
45
printk(KERN_INFO "omapdss: " format, ## __VA_ARGS__)
drivers/video/fbdev/omap2/omapfb/dss/dss.h
49
#define DSSWARN(format, ...) \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
50
printk(KERN_WARNING "omapdss " DSS_SUBSYS_NAME ": " format, \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
53
#define DSSWARN(format, ...) \
drivers/video/fbdev/omap2/omapfb/dss/dss.h
54
printk(KERN_WARNING "omapdss: " format, ## __VA_ARGS__)
drivers/video/fbdev/omap2/omapfb/omapfb.h
26
#define DBG(format, ...) \
drivers/video/fbdev/omap2/omapfb/omapfb.h
29
printk(KERN_DEBUG "OMAPFB: " format, ## __VA_ARGS__); \
drivers/video/fbdev/omap2/omapfb/omapfb.h
32
#define DBG(format, ...) no_printk(format, ## __VA_ARGS__)
drivers/video/fbdev/omap2/omapfb/vrfb.c
24
#define DBG(format, ...) pr_debug("VRFB: " format, ## __VA_ARGS__)
drivers/video/fbdev/omap2/omapfb/vrfb.c
26
#define DBG(format, ...)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1119
const struct sh_mobile_lcdc_format_info *format;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1121
format = sh_mobile_format_info(var->grayscale);
drivers/video/fbdev/sh_mobile_lcdcfb.c
1122
if (format == NULL)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1124
var->bits_per_pixel = format->bpp;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1129
if (!format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1378
if (!ovl->format->yuv) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
1380
* ovl->format->bpp / 8;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1383
unsigned int xsub = ovl->format->bpp < 24 ? 2 : 1;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1384
unsigned int ysub = ovl->format->bpp < 16 ? 2 : 1;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1441
ovl->format =
drivers/video/fbdev/sh_mobile_lcdcfb.c
1449
if (ovl->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1452
ovl->pitch = info->var.xres_virtual * ovl->format->bpp / 8;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1582
if (ovl->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1587
switch (ovl->format->fourcc) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
1609
if (!ovl->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1610
var->bits_per_pixel = ovl->format->bpp;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1612
var->grayscale = ovl->format->fourcc;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1687
if (!ch->format->yuv) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
1689
* ch->format->bpp / 8;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1692
unsigned int xsub = ch->format->bpp < 24 ? 2 : 1;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1693
unsigned int ysub = ch->format->bpp < 16 ? 2 : 1;
drivers/video/fbdev/sh_mobile_lcdcfb.c
1716
if (ch->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1879
ch->format = sh_mobile_format_info(sh_mobile_format_fourcc(&info->var));
drivers/video/fbdev/sh_mobile_lcdcfb.c
1887
if (ch->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
1890
ch->pitch = info->var.xres_virtual * ch->format->bpp / 8;
drivers/video/fbdev/sh_mobile_lcdcfb.c
195
const struct sh_mobile_lcdc_format_info *format;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2077
if (ch->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
2082
switch (ch->format->fourcc) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
2106
if (!ch->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
2107
var->bits_per_pixel = ch->format->bpp;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2109
var->grayscale = ch->format->fourcc;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2341
const struct sh_mobile_lcdc_format_info *format;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2349
format = sh_mobile_format_info(ovl->cfg->fourcc);
drivers/video/fbdev/sh_mobile_lcdcfb.c
2350
if (format == NULL) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
2365
ovl->format = format;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2371
if (!format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
2372
ovl->pitch = ovl->xres_virtual * format->bpp / 8;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2378
* format->bpp / 8 * 2;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2396
const struct sh_mobile_lcdc_format_info *format;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2406
format = sh_mobile_format_info(cfg->fourcc);
drivers/video/fbdev/sh_mobile_lcdcfb.c
2407
if (format == NULL) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
2452
ch->format = format;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2458
if (!format->yuv) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
2460
ch->pitch = ch->xres_virtual * format->bpp / 8;
drivers/video/fbdev/sh_mobile_lcdcfb.c
2471
ch->fb_size = max_size * format->bpp / 8 * 2;
drivers/video/fbdev/sh_mobile_lcdcfb.c
775
u32 format = 0;
drivers/video/fbdev/sh_mobile_lcdcfb.c
791
format = LDBBSIFR_EN | (ovl->alpha << LDBBSIFR_LAY_SHIFT);
drivers/video/fbdev/sh_mobile_lcdcfb.c
795
format = LDBBSIFR_EN | LDBBSIFR_BRSEL
drivers/video/fbdev/sh_mobile_lcdcfb.c
800
switch (ovl->format->fourcc) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
805
format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW;
drivers/video/fbdev/sh_mobile_lcdcfb.c
811
format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW | LDBBSIFR_SWPB;
drivers/video/fbdev/sh_mobile_lcdcfb.c
815
format |= LDBBSIFR_SWPL;
drivers/video/fbdev/sh_mobile_lcdcfb.c
819
switch (ovl->format->fourcc) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
821
format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB16;
drivers/video/fbdev/sh_mobile_lcdcfb.c
824
format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB24;
drivers/video/fbdev/sh_mobile_lcdcfb.c
827
format |= LDBBSIFR_AL_PK | LDBBSIFR_RY | LDBBSIFR_RPKF_ARGB32;
drivers/video/fbdev/sh_mobile_lcdcfb.c
831
format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_420;
drivers/video/fbdev/sh_mobile_lcdcfb.c
835
format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_422;
drivers/video/fbdev/sh_mobile_lcdcfb.c
839
format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_444;
drivers/video/fbdev/sh_mobile_lcdcfb.c
845
lcdc_write_overlay(ovl, LDBnBSIFR(ovl->index), format);
drivers/video/fbdev/sh_mobile_lcdcfb.c
922
tmp = ch->format->lddfr;
drivers/video/fbdev/sh_mobile_lcdcfb.c
924
if (ch->format->yuv) {
drivers/video/fbdev/sh_mobile_lcdcfb.c
938
if (ch->format->yuv)
drivers/video/fbdev/sh_mobile_lcdcfb.c
955
switch (priv->ch[0].format->fourcc) {
drivers/video/fbdev/sh_mobile_lcdcfb.h
78
const struct sh_mobile_lcdc_format_info *format;
drivers/video/fbdev/simplefb.c
132
struct simplefb_format *format;
drivers/video/fbdev/simplefb.c
141
const char *format;
drivers/video/fbdev/simplefb.c
162
ret = of_property_read_string(np, "format", &format);
drivers/video/fbdev/simplefb.c
167
params->format = NULL;
drivers/video/fbdev/simplefb.c
169
if (strcmp(format, simplefb_formats[i].name))
drivers/video/fbdev/simplefb.c
171
params->format = &simplefb_formats[i];
drivers/video/fbdev/simplefb.c
174
if (!params->format) {
drivers/video/fbdev/simplefb.c
200
params->format = NULL;
drivers/video/fbdev/simplefb.c
202
if (strcmp(pd->format, simplefb_formats[i].name))
drivers/video/fbdev/simplefb.c
205
params->format = &simplefb_formats[i];
drivers/video/fbdev/simplefb.c
209
if (!params->format) {
drivers/video/fbdev/simplefb.c
592
info->var.bits_per_pixel = params.format->bits_per_pixel;
drivers/video/fbdev/simplefb.c
593
info->var.red = params.format->red;
drivers/video/fbdev/simplefb.c
594
info->var.green = params.format->green;
drivers/video/fbdev/simplefb.c
595
info->var.blue = params.format->blue;
drivers/video/fbdev/simplefb.c
596
info->var.transp = params.format->transp;
drivers/video/fbdev/simplefb.c
628
params.format->name,
drivers/video/logo/pnmtologo.c
74
__attribute__((noreturn)) __attribute((format (printf, 1, 2)));
drivers/watchdog/machzwd.c
138
#define dprintk(format, args...)
drivers/watchdog/machzwd.c
140
#define dprintk(format, args...) \
drivers/watchdog/machzwd.c
141
pr_debug(":%s:%d: " format, __func__, __LINE__ , ## args)
drivers/xen/xen-balloon.c
136
#define BALLOON_SHOW(name, format, args...) \
drivers/xen/xen-balloon.c
141
return sprintf(buf, format, ##args); \
fs/bfs/bfs.h
52
#define printf(format, args...) \
fs/bfs/bfs.h
53
printk(KERN_ERR "BFS-fs: %s(): " format, __func__, ## args)
fs/erofs/decompressor_lzma.c
85
if (lzma->format) {
fs/erofs/decompressor_lzma.c
87
le16_to_cpu(lzma->format));
fs/erofs/decompressor_zstd.c
84
if (!zstd || size < sizeof(struct z_erofs_zstd_cfgs) || zstd->format) {
fs/erofs/erofs_fs.h
143
__le16 format; /* chunk blkbits, etc. */
fs/erofs/erofs_fs.h
322
__le16 format;
fs/erofs/erofs_fs.h
336
u8 format;
fs/erofs/inode.c
200
vi->chunkformat = le16_to_cpu(copied.i_u.c.format);
fs/gfs2/util.h
132
u16 format)
fs/gfs2/util.h
137
mh->mh_format = cpu_to_be32(format);
fs/nfsd/nfsctl.c
543
const char *format = minor < 0 ? "%s%c%u" : "%s%c%u.%u";
fs/nfsd/nfsctl.c
556
return snprintf(buf, remaining, format, sep,
fs/overlayfs/inode.c
958
struct dentry *realdentry, const char *format)
fs/overlayfs/inode.c
965
len = snprintf(buf, sizeof(buf), format,
fs/smb/client/smb1pdu.h
2095
__le16 format;
fs/smb/server/mgmt/user_session.c
170
const char *format,
fs/smb/server/mgmt/user_session.c
179
seq_printf(m, format, table[i].name);
fs/smb/server/misc.h
58
const char *format,
fs/xfs/libxfs/xfs_fs.h
1142
__u8 format; /* output format */
fs/xfs/libxfs/xfs_inode_fork.c
309
enum xfs_dinode_fmt format,
fs/xfs/libxfs/xfs_inode_fork.c
319
ip->i_af.if_format = format;
fs/xfs/libxfs/xfs_inode_fork.h
162
void xfs_ifork_init_attr(struct xfs_inode *ip, enum xfs_dinode_fmt format,
fs/xfs/scrub/trace.h
2436
__field(uint8_t, format)
fs/xfs/scrub/trace.h
2456
__entry->format = dip->di_format;
fs/xfs/scrub/trace.h
2476
__entry->format,
fs/xfs/scrub/trace.h
2520
__field(uint8_t, format)
fs/xfs/scrub/trace.h
2532
__entry->format = sc->ip->i_df.if_format;
fs/xfs/scrub/trace.h
2544
__entry->format,
fs/xfs/xfs_healthmon.c
1051
if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
fs/xfs/xfs_healthmon.c
1250
trace_xfs_healthmon_create(mp->m_super->s_dev, hmo.flags, hmo.format);
fs/xfs/xfs_trace.h
2579
__field(int, format)
fs/xfs/xfs_trace.h
2588
__entry->format = ip->i_df.if_format;
fs/xfs/xfs_trace.h
2598
__print_symbolic(__entry->format, XFS_INODE_FORMAT_STR),
fs/xfs/xfs_trace.h
5289
__field(int, format)
fs/xfs/xfs_trace.h
5298
__entry->format = ip->i_df.if_format;
fs/xfs/xfs_trace.h
5306
__print_symbolic(__entry->format, XFS_INODE_FORMAT_STR),
fs/xfs/xfs_trace.h
5956
TP_PROTO(dev_t dev, u64 flags, u8 format),
fs/xfs/xfs_trace.h
5957
TP_ARGS(dev, flags, format),
fs/xfs/xfs_trace.h
5961
__field(u8, format)
fs/xfs/xfs_trace.h
5966
__entry->format = format;
fs/xfs/xfs_trace.h
5971
__print_symbolic(__entry->format, XFS_HEALTHMON_FMT_STRINGS))
fs/zonefs/zonefs.h
251
#define zonefs_info(sb, format, args...) \
fs/zonefs/zonefs.h
252
pr_info("zonefs (%s): " format, sb->s_id, ## args)
fs/zonefs/zonefs.h
253
#define zonefs_err(sb, format, args...) \
fs/zonefs/zonefs.h
254
pr_err("zonefs (%s) ERROR: " format, sb->s_id, ## args)
fs/zonefs/zonefs.h
255
#define zonefs_warn(sb, format, args...) \
fs/zonefs/zonefs.h
256
pr_warn("zonefs (%s) WARNING: " format, sb->s_id, ## args)
include/acpi/acpi_bus.h
28
struct acpi_buffer *format, struct acpi_buffer *buffer);
include/acpi/acpiosxf.h
334
void ACPI_INTERNAL_VAR_XFACE acpi_os_printf(const char *format, ...);
include/acpi/acpiosxf.h
338
void acpi_os_vprintf(const char *format, va_list args);
include/acpi/acpixf.h
911
const char *format, ...))
include/acpi/acpixf.h
917
const char *format, ...))
include/acpi/acpixf.h
922
const char *format, ...))
include/acpi/acpixf.h
925
acpi_info(const char *format, ...))
include/acpi/acpixf.h
930
const char *format, ...))
include/acpi/acpixf.h
936
const char *format, ...))
include/acpi/acpixf.h
941
const char *format, ...))
include/acpi/acpixf.h
953
const char *format, ...))
include/acpi/acpixf.h
961
const char *format, ...))
include/acpi/actbl2.h
2559
struct acpi_nhlt_wave_formatext format;
include/acpi/actbl2.h
3653
u16 format;
include/asm-generic/bug.h
163
#define WARN(condition, format...) ({ \
include/asm-generic/bug.h
166
__WARN_printf(TAINT_WARN, format); \
include/asm-generic/bug.h
171
#define WARN_TAINT(condition, taint, format...) ({ \
include/asm-generic/bug.h
174
__WARN_printf(taint, format); \
include/asm-generic/bug.h
184
#define WARN_ONCE(condition, format...) \
include/asm-generic/bug.h
185
DO_ONCE_LITE_IF(condition, WARN, 1, format)
include/asm-generic/bug.h
188
#define WARN_TAINT_ONCE(condition, taint, format...) \
include/asm-generic/bug.h
189
DO_ONCE_LITE_IF(condition, WARN_TAINT, 1, taint, format)
include/asm-generic/bug.h
211
#define WARN(condition, format...) ({ \
include/asm-generic/bug.h
213
no_printk(format); \
include/asm-generic/bug.h
219
#define WARN_ONCE(condition, format...) WARN(condition, format)
include/asm-generic/bug.h
220
#define WARN_TAINT(condition, taint, format...) WARN(condition, format)
include/asm-generic/bug.h
221
#define WARN_TAINT_ONCE(condition, taint, format...) WARN(condition, format)
include/asm-generic/bug.h
51
BUG_REL(const char *, format);
include/drm/bridge/dw_mipi_dsi.h
39
unsigned long mode_flags, u32 lanes, u32 format,
include/drm/bridge/dw_mipi_dsi.h
60
u32 lanes, u32 format);
include/drm/bridge/dw_mipi_dsi2.h
49
unsigned long mode_flags, u32 lanes, u32 format,
include/drm/bridge/dw_mipi_dsi2.h
70
u32 lanes, u32 format);
include/drm/bridge/samsung-dsim.h
119
u32 format;
include/drm/clients/drm_client_setup.h
12
void drm_client_setup(struct drm_device *dev, const struct drm_format_info *format);
include/drm/clients/drm_client_setup.h
17
const struct drm_format_info *format)
include/drm/drm_atomic.h
1315
u32 format;
include/drm/drm_client.h
199
drm_client_buffer_create_dumb(struct drm_client_dev *client, u32 width, u32 height, u32 format);
include/drm/drm_edid.h
353
u8 format;
include/drm/drm_format_helper.h
70
unsigned int drm_fb_clip_offset(unsigned int pitch, const struct drm_format_info *format,
include/drm/drm_fourcc.h
307
const struct drm_format_info *__drm_format_info(u32 format);
include/drm/drm_fourcc.h
308
const struct drm_format_info *drm_format_info(u32 format);
include/drm/drm_fourcc.h
63
u32 format;
include/drm/drm_framebuffer.h
144
const struct drm_format_info *format;
include/drm/drm_mipi_dsi.h
192
enum mipi_dsi_pixel_format format;
include/drm/drm_mipi_dsi.h
350
int mipi_dsi_dcs_get_pixel_format(struct mipi_dsi_device *dsi, u8 *format);
include/drm/drm_mipi_dsi.h
361
int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format);
include/drm/drm_mipi_dsi.h
384
u8 format);
include/drm/drm_panic.h
30
const struct drm_format_info *format;
include/drm/drm_plane.h
1009
u32 format, u64 modifier);
include/drm/drm_plane.h
1011
u32 format, u64 modifier);
include/drm/drm_plane.h
558
bool (*format_mod_supported)(struct drm_plane *plane, uint32_t format,
include/drm/drm_plane.h
575
u32 format, u64 modifier);
include/drm/drm_print.h
509
const char *format, ...);
include/drm/drm_print.h
513
enum drm_debug_category category, const char *format, ...);
include/drm/drm_print.h
678
void __drm_err(const char *format, ...);
include/drm/drm_print.h
778
#define drm_WARN(drm, condition, format, arg...) \
include/drm/drm_print.h
779
WARN(condition, "%s %s: [drm] " format, \
include/drm/drm_print.h
783
#define drm_WARN_ONCE(drm, condition, format, arg...) \
include/drm/drm_print.h
784
WARN_ONCE(condition, "%s %s: [drm] " format, \
include/drm/gud.h
176
__u8 format;
include/hyperv/hvgdk_mini.h
220
u64 format;
include/keys/encrypted-type.h
20
char *format; /* datablob: format */
include/linux/bpf.h
378
#define BPF_WARN_ONCE(cond, format...) WARN_ONCE(cond, format)
include/linux/bpf.h
380
#define BPF_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/dev_printk.h
271
#define dev_WARN(dev, format, arg...) \
include/linux/dev_printk.h
272
WARN(1, "%s %s: " format, dev_driver_string(dev), dev_name(dev), ## arg)
include/linux/dev_printk.h
274
#define dev_WARN_ONCE(dev, condition, format, arg...) \
include/linux/dev_printk.h
275
WARN_ONCE(condition, "%s %s: " format, \
include/linux/dynamic_debug.h
176
.format = (fmt), \
include/linux/dynamic_debug.h
24
const char *format;
include/linux/fs_context.h
191
extern __attribute__((format(printf, 4, 5)))
include/linux/greybus/greybus_protocols.h
1321
__u8 format;
include/linux/greybus/greybus_protocols.h
1562
__le16 format;
include/linux/greybus/greybus_protocols.h
1578
__le16 format;
include/linux/greybus/greybus_protocols.h
2097
__le32 format;
include/linux/greybus/greybus_protocols.h
2105
__le32 format;
include/linux/hid.h
38
unsigned format;
include/linux/intel-ish-client-if.h
20
const char *format, ...);
include/linux/ipack.h
269
.format = (_format), \
include/linux/kobject.h
220
int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...);
include/linux/maple_tree.h
620
void mt_dump(const struct maple_tree *mt, enum mt_dump_format format);
include/linux/mmdebug.h
124
#define VM_WARN_ONCE(cond, format...) (void)WARN_ONCE(cond, format)
include/linux/mmdebug.h
125
#define VM_WARN(cond, format...) (void)WARN(cond, format)
include/linux/mmdebug.h
141
#define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
142
#define VM_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/mod_devicetable.h
720
__u8 format; /* Format version or IPACK_ANY_ID */
include/linux/netdevice.h
5638
#define netdev_WARN(dev, format, args...) \
include/linux/netdevice.h
5639
WARN(1, "netdevice: %s%s: " format, netdev_name(dev), \
include/linux/netdevice.h
5642
#define netdev_WARN_ONCE(dev, format, args...) \
include/linux/netdevice.h
5643
WARN_ONCE(1, "netdevice: %s%s: " format, netdev_name(dev), \
include/linux/nubus.h
58
unsigned char format;
include/linux/nvme.h
1986
struct nvme_format_cmd format;
include/linux/phy.h
2222
#define phydev_err(_phydev, format, args...) \
include/linux/phy.h
2223
dev_err(&_phydev->mdio.dev, format, ##args)
include/linux/phy.h
2225
#define phydev_err_probe(_phydev, err, format, args...) \
include/linux/phy.h
2226
dev_err_probe(&_phydev->mdio.dev, err, format, ##args)
include/linux/phy.h
2228
#define phydev_info(_phydev, format, args...) \
include/linux/phy.h
2229
dev_info(&_phydev->mdio.dev, format, ##args)
include/linux/phy.h
2231
#define phydev_warn(_phydev, format, args...) \
include/linux/phy.h
2232
dev_warn(&_phydev->mdio.dev, format, ##args)
include/linux/phy.h
2234
#define phydev_dbg(_phydev, format, args...) \
include/linux/phy.h
2235
dev_dbg(&_phydev->mdio.dev, format, ##args)
include/linux/pinctrl/pinconf-generic.h
193
.param = a, .display = b, .format = c, .has_arg = d, \
include/linux/pinctrl/pinconf-generic.h
202
const char * const format;
include/linux/platform_data/simplefb.h
59
const char *format;
include/linux/raid/pq.h
176
# define pr_err(format, ...) fprintf(stderr, format, ## __VA_ARGS__)
include/linux/raid/pq.h
177
# define pr_info(format, ...) fprintf(stdout, format, ## __VA_ARGS__)
include/linux/ratelimit.h
100
int rtn = WARN(condition, format, ##__VA_ARGS__); \
include/linux/ratelimit.h
80
#define WARN_RATELIMIT(condition, format, ...) \
include/linux/ratelimit.h
88
WARN(rtn, format, ##__VA_ARGS__); \
include/linux/ratelimit.h
98
#define WARN_RATELIMIT(condition, format, ...) \
include/linux/vfsdebug.h
15
#define VFS_WARN_ONCE(cond, format...) (void)WARN_ONCE(cond, format)
include/linux/vfsdebug.h
16
#define VFS_WARN(cond, format...) (void)WARN(cond, format)
include/linux/vfsdebug.h
38
#define VFS_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/vfsdebug.h
39
#define VFS_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/zstd_lib.h
1224
#define ZSTD_FRAMEHEADERSIZE_PREFIX(format) ((format) == ZSTD_f_zstd1 ? 5 : 1) /* minimum input size required to query frame header size */
include/linux/zstd_lib.h
1225
#define ZSTD_FRAMEHEADERSIZE_MIN(format) ((format) == ZSTD_f_zstd1 ? 6 : 2)
include/linux/zstd_lib.h
1501
ZSTDLIB_STATIC_API size_t ZSTD_getFrameHeader_advanced(ZSTD_FrameHeader* zfhPtr, const void* src, size_t srcSize, ZSTD_format_e format);
include/linux/zstd_lib.h
2569
size_t ZSTD_DCtx_setFormat(ZSTD_DCtx* dctx, ZSTD_format_e format);
include/media/v4l2-common.h
525
u32 format;
include/media/v4l2-common.h
552
const struct v4l2_format_info *v4l2_format_info(u32 format);
include/media/v4l2-subdev.h
1368
__v4l2_subdev_state_gen_call(format, ##__VA_ARGS__, , _pad) \
include/media/v4l2-subdev.h
1459
struct v4l2_subdev_format *format);
include/media/v4l2-subdev.h
681
struct v4l2_mbus_framefmt format;
include/media/v4l2-subdev.h
839
struct v4l2_subdev_format *format);
include/media/v4l2-subdev.h
842
struct v4l2_subdev_format *format);
include/net/cfg80211.h
10089
#define wiphy_printk(level, wiphy, format, args...) \
include/net/cfg80211.h
10090
dev_printk(level, &(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10091
#define wiphy_emerg(wiphy, format, args...) \
include/net/cfg80211.h
10092
dev_emerg(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10093
#define wiphy_alert(wiphy, format, args...) \
include/net/cfg80211.h
10094
dev_alert(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10095
#define wiphy_crit(wiphy, format, args...) \
include/net/cfg80211.h
10096
dev_crit(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10097
#define wiphy_err(wiphy, format, args...) \
include/net/cfg80211.h
10098
dev_err(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10099
#define wiphy_warn(wiphy, format, args...) \
include/net/cfg80211.h
10100
dev_warn(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10101
#define wiphy_notice(wiphy, format, args...) \
include/net/cfg80211.h
10102
dev_notice(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10103
#define wiphy_info(wiphy, format, args...) \
include/net/cfg80211.h
10104
dev_info(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10105
#define wiphy_info_once(wiphy, format, args...) \
include/net/cfg80211.h
10106
dev_info_once(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10108
#define wiphy_err_ratelimited(wiphy, format, args...) \
include/net/cfg80211.h
10109
dev_err_ratelimited(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10110
#define wiphy_warn_ratelimited(wiphy, format, args...) \
include/net/cfg80211.h
10111
dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10113
#define wiphy_debug(wiphy, format, args...) \
include/net/cfg80211.h
10114
wiphy_printk(KERN_DEBUG, wiphy, format, ##args)
include/net/cfg80211.h
10116
#define wiphy_dbg(wiphy, format, args...) \
include/net/cfg80211.h
10117
dev_dbg(&(wiphy)->dev, format, ##args)
include/net/cfg80211.h
10122
#define wiphy_vdbg(wiphy, format, args...) \
include/net/cfg80211.h
10125
wiphy_printk(KERN_DEBUG, wiphy, format, ##args); \
include/net/cfg80211.h
10135
#define wiphy_WARN(wiphy, format, args...) \
include/net/cfg80211.h
10136
WARN(1, "wiphy: %s\n" format, wiphy_name(wiphy), ##args);
include/net/net_debug.h
113
#define netif_dbg(priv, type, netdev, format, args...) \
include/net/net_debug.h
116
dynamic_netdev_dbg(netdev, format, ##args); \
include/net/net_debug.h
119
#define netif_dbg(priv, type, dev, format, args...) \
include/net/net_debug.h
12
const char *format, ...);
include/net/net_debug.h
120
netif_printk(priv, type, KERN_DEBUG, dev, format, ##args)
include/net/net_debug.h
122
#define netif_dbg(priv, type, dev, format, args...) \
include/net/net_debug.h
125
netif_printk(priv, type, KERN_DEBUG, dev, format, ##args); \
include/net/net_debug.h
14
void netdev_emerg(const struct net_device *dev, const char *format, ...);
include/net/net_debug.h
142
#define netif_vdbg(priv, type, dev, format, args...) \
include/net/net_debug.h
145
netif_printk(priv, type, KERN_DEBUG, dev, format, ##args); \
include/net/net_debug.h
153
#define DEBUG_NET_WARN_ONCE(cond, format...) ((void)WARN_ONCE(cond, format))
include/net/net_debug.h
156
#define DEBUG_NET_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/net/net_debug.h
16
void netdev_alert(const struct net_device *dev, const char *format, ...);
include/net/net_debug.h
18
void netdev_crit(const struct net_device *dev, const char *format, ...);
include/net/net_debug.h
20
void netdev_err(const struct net_device *dev, const char *format, ...);
include/net/net_debug.h
22
void netdev_warn(const struct net_device *dev, const char *format, ...);
include/net/net_debug.h
24
void netdev_notice(const struct net_device *dev, const char *format, ...);
include/net/net_debug.h
26
void netdev_info(const struct net_device *dev, const char *format, ...);
include/net/net_debug.h
55
#define netdev_dbg(__dev, format, args...) \
include/net/net_debug.h
57
dynamic_netdev_dbg(__dev, format, ##args); \
include/net/net_debug.h
60
#define netdev_dbg(__dev, format, args...) \
include/net/net_debug.h
61
netdev_printk(KERN_DEBUG, __dev, format, ##args)
include/net/net_debug.h
63
#define netdev_dbg(__dev, format, args...) \
include/net/net_debug.h
66
netdev_printk(KERN_DEBUG, __dev, format, ##args); \
include/net/net_debug.h
74
#define netdev_vdbg(dev, format, args...) \
include/net/net_debug.h
77
netdev_printk(KERN_DEBUG, dev, format, ##args); \
include/pcmcia/cistpl.h
551
cistpl_format_t format;
include/rdma/ib_verbs.h
130
void ibdev_dbg_ratelimited(const struct ib_device *ibdev, const char *format, ...) {}
include/rdma/ib_verbs.h
66
void ibdev_emerg(const struct ib_device *ibdev, const char *format, ...);
include/rdma/ib_verbs.h
68
void ibdev_alert(const struct ib_device *ibdev, const char *format, ...);
include/rdma/ib_verbs.h
70
void ibdev_crit(const struct ib_device *ibdev, const char *format, ...);
include/rdma/ib_verbs.h
72
void ibdev_err(const struct ib_device *ibdev, const char *format, ...);
include/rdma/ib_verbs.h
74
void ibdev_warn(const struct ib_device *ibdev, const char *format, ...);
include/rdma/ib_verbs.h
76
void ibdev_notice(const struct ib_device *ibdev, const char *format, ...);
include/rdma/ib_verbs.h
78
void ibdev_info(const struct ib_device *ibdev, const char *format, ...);
include/rdma/ib_verbs.h
82
#define ibdev_dbg(__dev, format, args...) \
include/rdma/ib_verbs.h
83
dynamic_ibdev_dbg(__dev, format, ##args)
include/rdma/ib_verbs.h
87
void ibdev_dbg(const struct ib_device *ibdev, const char *format, ...) {}
include/scsi/viosrp.h
77
u8 format; /* SCSI vs out-of-band */
include/soc/fsl/dpaa2-fd.h
253
enum dpaa2_fd_format format)
include/soc/fsl/dpaa2-fd.h
257
fd->simple.format_offset |= cpu_to_le16(format << FD_FORMAT_SHIFT);
include/soc/fsl/dpaa2-fd.h
397
enum dpaa2_sg_format format)
include/soc/fsl/dpaa2-fd.h
400
sg->format_offset |= cpu_to_le16(format << SG_FORMAT_SHIFT);
include/soc/fsl/dpaa2-fd.h
630
enum dpaa2_fl_format format)
include/soc/fsl/dpaa2-fd.h
633
fle->format_offset |= cpu_to_le16(format << FL_FORMAT_SHIFT);
include/sound/hda_codec.h
130
unsigned int stream_tag, unsigned int format,
include/sound/hda_codec.h
437
unsigned int format,
include/sound/hda_codec.h
445
int channel_id, int format);
include/sound/hda_codec.h
544
int snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format,
include/sound/hda_codec.h
552
snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format,
include/sound/hdaudio.h
143
unsigned int snd_hdac_stream_format_bits(snd_pcm_format_t format, snd_pcm_subformat_t subformat,
include/sound/hdaudio.h
152
unsigned int format);
include/sound/hdaudio.h
659
int snd_hdac_dsp_prepare(struct hdac_stream *azx_dev, unsigned int format,
include/sound/hdaudio.h
671
snd_hdac_dsp_prepare(struct hdac_stream *azx_dev, unsigned int format,
include/sound/hdaudio_ext.h
142
u32 format;
include/sound/pcm.h
1138
int snd_pcm_format_signed(snd_pcm_format_t format);
include/sound/pcm.h
1139
int snd_pcm_format_unsigned(snd_pcm_format_t format);
include/sound/pcm.h
1140
int snd_pcm_format_linear(snd_pcm_format_t format);
include/sound/pcm.h
1141
int snd_pcm_format_little_endian(snd_pcm_format_t format);
include/sound/pcm.h
1142
int snd_pcm_format_big_endian(snd_pcm_format_t format);
include/sound/pcm.h
1151
int snd_pcm_format_cpu_endian(snd_pcm_format_t format);
include/sound/pcm.h
1154
#define snd_pcm_format_cpu_endian(format) snd_pcm_format_little_endian(format)
include/sound/pcm.h
1156
#define snd_pcm_format_cpu_endian(format) snd_pcm_format_big_endian(format)
include/sound/pcm.h
1158
int snd_pcm_format_width(snd_pcm_format_t format); /* in bits */
include/sound/pcm.h
1159
int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */
include/sound/pcm.h
1160
ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
include/sound/pcm.h
1161
const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format);
include/sound/pcm.h
1162
int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames);
include/sound/pcm.h
1426
const char *snd_pcm_format_name(snd_pcm_format_t format);
include/sound/pcm.h
380
snd_pcm_format_t format; /* SNDRV_PCM_FORMAT_* */
include/sound/pcm_drm_eld.h
46
int format; /* (format == 0) indicates invalid SAD */
include/sound/pcm_oss.h
30
int format; /* requested OSS format */
include/sound/pcm_params.h
133
snd_pcm_format_t format)
include/sound/pcm_params.h
135
return snd_mask_test(mask, (__force unsigned int)format);
include/sound/pcm_params.h
72
snd_pcm_format_t format)
include/sound/pcm_params.h
74
snd_mask_set(mask, (__force unsigned int)format);
include/sound/seq_oss.h
42
int (*load_patch)(struct snd_seq_oss_arg *p, int format, const char __user *buf, int offs, int count);
include/sound/soc-acpi.h
18
struct acpi_buffer *format;
include/sound/sof/dai-mediatek.h
17
u32 format;
include/sound/sof/dai.h
102
uint16_t format; /**< SOF_DAI_FMT_ */
include/sound/ump_msg.h
545
u32 format:2;
include/sound/ump_msg.h
559
u32 format:2;
include/sound/ump_msg.h
574
u32 format:2;
include/sound/ump_msg.h
592
u32 format:2;
include/sound/ump_msg.h
611
u32 format:2;
include/sound/ump_msg.h
627
u32 format:2;
include/sound/ump_msg.h
646
u32 format:2;
include/sound/ump_msg.h
659
u32 format:2;
include/sound/ump_msg.h
671
u32 format:2;
include/sound/ump_msg.h
682
u32 format:2;
include/sound/ump_msg.h
694
u32 format:2;
include/sound/ump_msg.h
718
u32 format:2;
include/sound/ump_msg.h
735
u16 format:2;
include/sound/ump_msg.h
746
u16 format:2;
include/uapi/drm/qxl_drm.h
120
__u32 format;
include/uapi/drm/radeon_drm.h
679
int format;
include/uapi/drm/virtgpu_drm.h
111
__u32 format;
include/uapi/drm/vmwgfx_drm.h
209
__u32 format;
include/uapi/drm/vmwgfx_drm.h
504
__s32 format;
include/uapi/drm/vmwgfx_drm.h
941
__u32 format;
include/uapi/linux/dvb/video.h
90
__u32 format;
include/uapi/linux/media/raspberrypi/pisp_common.h
18
__u32 format;
include/uapi/linux/media/raspberrypi/pisp_fe_config.h
88
struct pisp_image_format_config format;
include/uapi/linux/media/raspberrypi/pisp_fe_config.h
96
struct pisp_image_format_config format;
include/uapi/linux/omap3isp.h
507
enum omap3isp_cfa_fmt format;
include/uapi/linux/omapfb.h
114
__u32 format;
include/uapi/linux/omapfb.h
123
__u32 format;
include/uapi/linux/v4l2-subdev.h
41
struct v4l2_mbus_framefmt format;
include/uapi/linux/videodev2.h
2289
__u32 format;
include/uapi/linux/videodev2.h
2705
struct v4l2_format format;
include/uapi/linux/virtio_gpu.h
185
__le32 format;
include/uapi/linux/virtio_gpu.h
270
__le32 format;
include/uapi/linux/virtio_gpu.h
427
__le32 format;
include/uapi/linux/virtio_snd.h
266
__u8 format;
include/uapi/sound/asoc.h
322
__le64 format; /* SNDRV_PCM_FMTBIT_* */
include/uapi/sound/compress_params.h
468
__u32 format;
include/uapi/sound/hdspm.h
99
enum hdspm_ltc_format format;
include/video/imx-ipu-v3.h
343
bool ipu_prg_format_supported(struct ipu_soc *ipu, uint32_t format,
include/video/imx-ipu-v3.h
351
u32 format, uint64_t modifier, unsigned long *eba);
kernel/debug/kdb/kdb_private.h
234
#define kdb_func_printf(format, args...) \
kernel/debug/kdb/kdb_private.h
235
kdb_printf("%s: " format, __func__, ## args)
kernel/debug/kdb/kdb_private.h
237
#define kdb_dbg_printf(mask, format, args...) \
kernel/debug/kdb/kdb_private.h
240
kdb_func_printf(format, ## args); \
kernel/dma/debug.c
222
#define err_printk(dev, entry, format, arg...) do { \
kernel/dma/debug.c
226
WARN(1, pr_fmt("%s %s: ") format, \
kernel/params.c
215
#define STANDARD_PARAM_DEF(name, type, format, strtolfn) \
kernel/params.c
222
return scnprintf(buffer, PAGE_SIZE, format "\n", \
lib/bug.c
144
const char *format = NULL;
lib/bug.c
155
format = (const char *)&bug->format_disp + bug->format_disp;
lib/bug.c
156
if (format && format[0] == '\0')
lib/bug.c
157
format = NULL;
lib/bug.c
159
format = bug->format;
lib/bug.c
162
return format;
lib/dynamic_debug.c
1150
seq_escape_str(m, dp->format, ESCAPE_SPACE, "\t\r\n\"");
lib/dynamic_debug.c
136
if (query->format) {
lib/dynamic_debug.c
137
fmtlen = strlen(query->format);
lib/dynamic_debug.c
138
while (fmtlen && query->format[fmtlen - 1] == '\n')
lib/dynamic_debug.c
147
fmtlen, query->format ?: "",
lib/dynamic_debug.c
226
if (query->format) {
lib/dynamic_debug.c
227
if (*query->format == '^') {
lib/dynamic_debug.c
230
p = strstr(dp->format, query->format+1);
lib/dynamic_debug.c
231
if (p != dp->format)
lib/dynamic_debug.c
233
} else if (!strstr(dp->format, query->format))
lib/dynamic_debug.c
459
rc = check_set(&query->format, arg, "format");
lib/dynamic_debug.c
58
const char *format;
lib/kobject_uevent.c
668
int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...)
lib/kobject_uevent.c
678
va_start(args, format);
lib/kobject_uevent.c
681
format, args);
lib/kunit/assert_test.c
85
char *expected, const char *format, ...)
lib/kunit/assert_test.c
89
.fmt = format,
lib/kunit/assert_test.c
93
va_start(list, format);
lib/maple_tree.c
6667
enum mt_dump_format format);
lib/maple_tree.c
6669
unsigned int depth, enum mt_dump_format format)
lib/maple_tree.c
6673
switch(format) {
lib/maple_tree.c
6689
unsigned int depth, enum mt_dump_format format)
lib/maple_tree.c
6691
mt_dump_range(min, max, depth, format);
lib/maple_tree.c
6706
enum mt_dump_format format)
lib/maple_tree.c
6715
switch(format) {
lib/maple_tree.c
6735
first, last, depth + 1, format);
lib/maple_tree.c
6738
first, last, depth + 1, format);
lib/maple_tree.c
6743
switch(format) {
lib/maple_tree.c
6759
enum mt_dump_format format)
lib/maple_tree.c
6767
switch (format) {
lib/maple_tree.c
6777
switch (format) {
lib/maple_tree.c
6797
first, last, depth + 1, format);
lib/maple_tree.c
6802
switch(format) {
lib/maple_tree.c
6818
enum mt_dump_format format)
lib/maple_tree.c
6824
mt_dump_range(min, max, depth, format);
lib/maple_tree.c
6835
min + i, min + i, depth, format);
lib/maple_tree.c
6840
mt_dump_range64(mt, entry, min, max, depth, format);
lib/maple_tree.c
6843
mt_dump_arange64(mt, entry, min, max, depth, format);
lib/maple_tree.c
6851
void mt_dump(const struct maple_tree *mt, enum mt_dump_format format)
lib/maple_tree.c
6858
mt_dump_node(mt, entry, 0, mt_node_max(entry), 0, format);
lib/maple_tree.c
6860
mt_dump_entry(entry, 0, 0, 0, format);
lib/ts_bm.c
47
#define DEBUGP(args, format...)
lib/zstd/common/error_private.h
80
void _force_has_format_string(const char *format, ...) {
lib/zstd/common/error_private.h
81
(void)format;
lib/zstd/compress/zstd_compress.c
4630
if (params->format == ZSTD_f_zstd1) {
lib/zstd/compress/zstd_compress.c
6322
return ZSTD_FRAMEHEADERSIZE_MIN(cctx->requestedParams.format); /* at least some header to produce */
lib/zstd/compress/zstd_compress.c
760
CCtxParams->format = (ZSTD_format_e)value;
lib/zstd/compress/zstd_compress.c
761
return (size_t)CCtxParams->format;
lib/zstd/compress/zstd_compress.c
988
*value = (int)CCtxParams->format;
lib/zstd/compress/zstd_compress_internal.h
361
ZSTD_format_e format;
lib/zstd/decompress/zstd_decompress.c
1043
while (srcSize >= ZSTD_startingInputLength(dctx->format)) {
lib/zstd/decompress/zstd_decompress.c
1046
if (dctx->format == ZSTD_f_zstd1 && srcSize >= 4) {
lib/zstd/decompress/zstd_decompress.c
1214
if (dctx->format == ZSTD_f_zstd1) { /* allows header */
lib/zstd/decompress/zstd_decompress.c
1222
dctx->headerSize = ZSTD_frameHeaderSize_internal(src, srcSize, dctx->format);
lib/zstd/decompress/zstd_decompress.c
1343
assert(dctx->format != ZSTD_f_zstd1_magicless);
lib/zstd/decompress/zstd_decompress.c
1489
dctx->expected = ZSTD_startingInputLength(dctx->format); /* dctx->format must be properly set */
lib/zstd/decompress/zstd_decompress.c
1669
return ZSTD_startingInputLength(zds->format);
lib/zstd/decompress/zstd_decompress.c
1678
return ZSTD_startingInputLength(zds->format);
lib/zstd/decompress/zstd_decompress.c
1689
return ZSTD_startingInputLength(dctx->format);
lib/zstd/decompress/zstd_decompress.c
1699
return ZSTD_startingInputLength(dctx->format);
lib/zstd/decompress/zstd_decompress.c
1739
size_t ZSTD_DCtx_setFormat(ZSTD_DCtx* dctx, ZSTD_format_e format)
lib/zstd/decompress/zstd_decompress.c
1741
return ZSTD_DCtx_setParameter(dctx, ZSTD_d_format, (int)format);
lib/zstd/decompress/zstd_decompress.c
1807
*value = (int)dctx->format;
lib/zstd/decompress/zstd_decompress.c
1840
dctx->format = (ZSTD_format_e)value;
lib/zstd/decompress/zstd_decompress.c
2049
{ size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format);
lib/zstd/decompress/zstd_decompress.c
2068
ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format),
lib/zstd/decompress/zstd_decompress.c
2071
return (MAX((size_t)ZSTD_FRAMEHEADERSIZE_MIN(zds->format), hSize) - zds->lhSize) + ZSTD_blockHeaderSize; /* remaining header bytes + next block header */
lib/zstd/decompress/zstd_decompress.c
2082
size_t const cSize = ZSTD_findFrameCompressedSize_advanced(istart, (size_t)(iend-istart), zds->format);
lib/zstd/decompress/zstd_decompress.c
2109
if (zds->format == ZSTD_f_zstd1
lib/zstd/decompress/zstd_decompress.c
227
static size_t ZSTD_startingInputLength(ZSTD_format_e format)
lib/zstd/decompress/zstd_decompress.c
229
size_t const startingInputLength = ZSTD_FRAMEHEADERSIZE_PREFIX(format);
lib/zstd/decompress/zstd_decompress.c
231
assert( (format == ZSTD_f_zstd1) || (format == ZSTD_f_zstd1_magicless) );
lib/zstd/decompress/zstd_decompress.c
238
dctx->format = ZSTD_f_zstd1;
lib/zstd/decompress/zstd_decompress.c
400
static size_t ZSTD_frameHeaderSize_internal(const void* src, size_t srcSize, ZSTD_format_e format)
lib/zstd/decompress/zstd_decompress.c
402
size_t const minInputSize = ZSTD_startingInputLength(format);
lib/zstd/decompress/zstd_decompress.c
431
size_t ZSTD_getFrameHeader_advanced(ZSTD_FrameHeader* zfhPtr, const void* src, size_t srcSize, ZSTD_format_e format)
lib/zstd/decompress/zstd_decompress.c
434
size_t const minInputSize = ZSTD_startingInputLength(format);
lib/zstd/decompress/zstd_decompress.c
443
if (srcSize > 0 && format != ZSTD_f_zstd1_magicless) {
lib/zstd/decompress/zstd_decompress.c
464
if ( (format != ZSTD_f_zstd1_magicless)
lib/zstd/decompress/zstd_decompress.c
481
{ size_t const fhsize = ZSTD_frameHeaderSize_internal(src, srcSize, format);
lib/zstd/decompress/zstd_decompress.c
682
size_t const result = ZSTD_getFrameHeader_advanced(&(dctx->fParams), src, headerSize, dctx->format);
lib/zstd/decompress/zstd_decompress.c
712
static ZSTD_frameSizeInfo ZSTD_findFrameSizeInfo(const void* src, size_t srcSize, ZSTD_format_e format)
lib/zstd/decompress/zstd_decompress.c
718
if (format == ZSTD_f_zstd1 && (srcSize >= ZSTD_SKIPPABLEHEADERSIZE)
lib/zstd/decompress/zstd_decompress.c
732
{ size_t const ret = ZSTD_getFrameHeader_advanced(&zfh, src, srcSize, format);
lib/zstd/decompress/zstd_decompress.c
775
static size_t ZSTD_findFrameCompressedSize_advanced(const void *src, size_t srcSize, ZSTD_format_e format) {
lib/zstd/decompress/zstd_decompress.c
776
ZSTD_frameSizeInfo const frameSizeInfo = ZSTD_findFrameSizeInfo(src, srcSize, format);
lib/zstd/decompress/zstd_decompress.c
924
remainingSrcSize < ZSTD_FRAMEHEADERSIZE_MIN(dctx->format)+ZSTD_blockHeaderSize,
lib/zstd/decompress/zstd_decompress.c
929
ip, ZSTD_FRAMEHEADERSIZE_PREFIX(dctx->format), dctx->format);
lib/zstd/decompress/zstd_decompress_internal.h
149
ZSTD_format_e format;
net/atm/lec.c
1243
#define pr_debug(format, args...)
net/atm/mpc.c
43
#define dprintk(format, args...) \
net/atm/mpc.c
44
printk(KERN_DEBUG "mpoa:%s: " format, __func__, ##args)
net/atm/mpc.c
45
#define dprintk_cont(format, args...) printk(KERN_CONT format, ##args)
net/atm/mpc.c
47
#define dprintk(format, args...) \
net/atm/mpc.c
49
printk(KERN_DEBUG "mpoa:%s: " format, __func__, ##args);\
net/atm/mpc.c
51
#define dprintk_cont(format, args...) \
net/atm/mpc.c
52
do { if (0) printk(KERN_CONT format, ##args); } while (0)
net/atm/mpc.c
56
#define ddprintk(format, args...) \
net/atm/mpc.c
57
printk(KERN_DEBUG "mpoa:%s: " format, __func__, ##args)
net/atm/mpc.c
58
#define ddprintk_cont(format, args...) printk(KERN_CONT format, ##args)
net/atm/mpc.c
60
#define ddprintk(format, args...) \
net/atm/mpc.c
62
printk(KERN_DEBUG "mpoa:%s: " format, __func__, ##args);\
net/atm/mpc.c
64
#define ddprintk_cont(format, args...) \
net/atm/mpc.c
65
do { if (0) printk(KERN_CONT format, ##args); } while (0)
net/atm/mpoa_caches.c
16
#define dprintk(format, args...) \
net/atm/mpoa_caches.c
17
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args) /* debug */
net/atm/mpoa_caches.c
19
#define dprintk(format, args...) \
net/atm/mpoa_caches.c
21
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args);\
net/atm/mpoa_caches.c
26
#define ddprintk(format, args...) \
net/atm/mpoa_caches.c
27
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args) /* debug */
net/atm/mpoa_caches.c
29
#define ddprintk(format, args...) \
net/atm/mpoa_caches.c
31
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args);\
net/atm/mpoa_proc.c
26
#define dprintk(format, args...) \
net/atm/mpoa_proc.c
27
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args) /* debug */
net/atm/mpoa_proc.c
29
#define dprintk(format, args...) \
net/atm/mpoa_proc.c
31
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args);\
net/atm/mpoa_proc.c
36
#define ddprintk(format, args...) \
net/atm/mpoa_proc.c
37
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args) /* debug */
net/atm/mpoa_proc.c
39
#define ddprintk(format, args...) \
net/atm/mpoa_proc.c
41
printk(KERN_DEBUG "mpoa:%s: " format, __FILE__, ##args);\
net/bluetooth/hci_sock.c
563
u16 format;
net/bluetooth/hci_sock.c
573
format = 0x0000;
net/bluetooth/hci_sock.c
578
format = 0x0001;
net/bluetooth/hci_sock.c
583
format = 0x0002;
net/bluetooth/hci_sock.c
600
put_unaligned_le16(format, skb_put(skb, 2));
net/bluetooth/lib.c
246
void bt_info(const char *format, ...)
net/bluetooth/lib.c
251
va_start(args, format);
net/bluetooth/lib.c
253
vaf.fmt = format;
net/bluetooth/lib.c
266
void bt_warn(const char *format, ...)
net/bluetooth/lib.c
271
va_start(args, format);
net/bluetooth/lib.c
273
vaf.fmt = format;
net/bluetooth/lib.c
286
void bt_err(const char *format, ...)
net/bluetooth/lib.c
291
va_start(args, format);
net/bluetooth/lib.c
293
vaf.fmt = format;
net/bluetooth/lib.c
319
void bt_dbg(const char *format, ...)
net/bluetooth/lib.c
327
va_start(args, format);
net/bluetooth/lib.c
329
vaf.fmt = format;
net/bluetooth/lib.c
346
void bt_warn_ratelimited(const char *format, ...)
net/bluetooth/lib.c
351
va_start(args, format);
net/bluetooth/lib.c
353
vaf.fmt = format;
net/bluetooth/lib.c
369
void bt_err_ratelimited(const char *format, ...)
net/bluetooth/lib.c
374
va_start(args, format);
net/bluetooth/lib.c
376
vaf.fmt = format;
net/bridge/br_private.h
635
#define br_printk(level, br, format, args...) \
net/bridge/br_private.h
636
printk(level "%s: " format, (br)->dev->name, ##args)
net/bridge/br_private.h
638
#define br_err(__br, format, args...) \
net/bridge/br_private.h
639
br_printk(KERN_ERR, __br, format, ##args)
net/bridge/br_private.h
640
#define br_warn(__br, format, args...) \
net/bridge/br_private.h
641
br_printk(KERN_WARNING, __br, format, ##args)
net/bridge/br_private.h
642
#define br_notice(__br, format, args...) \
net/bridge/br_private.h
643
br_printk(KERN_NOTICE, __br, format, ##args)
net/bridge/br_private.h
644
#define br_info(__br, format, args...) \
net/bridge/br_private.h
645
br_printk(KERN_INFO, __br, format, ##args)
net/bridge/br_private.h
647
#define br_debug(br, format, args...) \
net/bridge/br_private.h
648
pr_debug("%s: " format, (br)->dev->name, ##args)
net/core/dev.c
12967
const char *format, ...)
net/core/dev.c
12972
va_start(args, format);
net/core/dev.c
12974
vaf.fmt = format;
net/core/net-sysfs.c
130
ssize_t (*format)(const struct net_device *, char *))
net/core/net-sysfs.c
137
ret = (*format)(ndev, buf);
net/mac80211/debugfs_key.c
41
#define KEY_FILE(name, format) \
net/mac80211/debugfs_key.c
42
KEY_READ_##format(name) \
net/mac80211/debugfs_key.c
55
#define KEY_CONF_FILE(name, format) \
net/mac80211/debugfs_key.c
56
KEY_CONF_READ_##format(name) \
net/mac80211/debugfs_netdev.c
111
return d->format(d->link, buf, bufsize);
net/mac80211/debugfs_netdev.c
118
ssize_t (*format)(const struct ieee80211_link_data *link, char *, int))
net/mac80211/debugfs_netdev.c
122
.format = format,
net/mac80211/debugfs_netdev.c
265
#define IEEE80211_IF_FILE(name, field, format) \
net/mac80211/debugfs_netdev.c
266
IEEE80211_IF_FMT_##format(name, struct ieee80211_sub_if_data, field) \
net/mac80211/debugfs_netdev.c
27
ssize_t (*format)(const struct ieee80211_sub_if_data *, char *, int);
net/mac80211/debugfs_netdev.c
303
#define IEEE80211_IF_LINK_FILE(name, field, format) \
net/mac80211/debugfs_netdev.c
304
IEEE80211_IF_FMT_##format(name, struct ieee80211_link_data, field) \
net/mac80211/debugfs_netdev.c
39
return d->format(d->sdata, buf, bufsize);
net/mac80211/debugfs_netdev.c
46
ssize_t (*format)(const struct ieee80211_sub_if_data *sdata, char *, int))
net/mac80211/debugfs_netdev.c
50
.format = format,
net/mac80211/debugfs_netdev.c
99
ssize_t (*format)(const struct ieee80211_link_data *, char *, int);
net/mac80211/debugfs_sta.c
45
#define STA_FILE(name, field, format) \
net/mac80211/debugfs_sta.c
46
STA_READ_##format(name, field) \
net/sunrpc/clnt.c
1413
enum rpc_display_format_t format)
net/sunrpc/clnt.c
1419
if (xprt->address_strings[format] != NULL)
net/sunrpc/clnt.c
1420
return xprt->address_strings[format];
net/tipc/netlink_compat.c
1027
dump.format = __tipc_nl_compat_publ_dump;
net/tipc/netlink_compat.c
1205
dump.format = tipc_nl_compat_bearer_dump;
net/tipc/netlink_compat.c
1222
dump.format = tipc_nl_compat_link_stat_dump;
net/tipc/netlink_compat.c
1228
dump.format = tipc_nl_compat_link_dump;
net/tipc/netlink_compat.c
1248
dump.format = tipc_nl_compat_name_table_dump;
net/tipc/netlink_compat.c
1254
dump.format = tipc_nl_compat_sk_dump;
net/tipc/netlink_compat.c
1259
dump.format = tipc_nl_compat_media_dump;
net/tipc/netlink_compat.c
1264
dump.format = tipc_nl_compat_node_dump;
net/tipc/netlink_compat.c
1279
dump.format = tipc_nl_compat_net_dump;
net/tipc/netlink_compat.c
234
err = (*cmd->format)(msg, attrbuf);
net/tipc/netlink_compat.c
69
int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs);
samples/v4l/v4l2-pci-skeleton.c
134
if (skel->format.field == V4L2_FIELD_ALTERNATE) {
samples/v4l/v4l2-pci-skeleton.c
160
skel->field = skel->format.field;
samples/v4l/v4l2-pci-skeleton.c
175
return sizes[0] < skel->format.sizeimage ? -EINVAL : 0;
samples/v4l/v4l2-pci-skeleton.c
177
sizes[0] = skel->format.sizeimage;
samples/v4l/v4l2-pci-skeleton.c
188
unsigned long size = skel->format.sizeimage;
samples/v4l/v4l2-pci-skeleton.c
372
skel->format = f->fmt.pix;
samples/v4l/v4l2-pci-skeleton.c
381
f->fmt.pix = skel->format;
samples/v4l/v4l2-pci-skeleton.c
423
skeleton_fill_pix_format(skel, &skel->format);
samples/v4l/v4l2-pci-skeleton.c
508
skeleton_fill_pix_format(skel, &skel->format);
samples/v4l/v4l2-pci-skeleton.c
60
struct v4l2_pix_format format;
samples/v4l/v4l2-pci-skeleton.c
630
skeleton_fill_pix_format(skel, &skel->format);
samples/v4l/v4l2-pci-skeleton.c
779
skeleton_fill_pix_format(skel, &skel->format);
samples/vfio-mdev/mdpy-fb.c
101
u32 format, width, height;
samples/vfio-mdev/mdpy-fb.c
112
pci_read_config_dword(pdev, MDPY_FORMAT_OFFSET, &format);
samples/vfio-mdev/mdpy-fb.c
115
if (format != DRM_FORMAT_XRGB8888) {
samples/vfio-mdev/mdpy-fb.c
117
format, DRM_FORMAT_XRGB8888);
samples/vfio-mdev/mdpy.c
141
mdev_state->type->format);
samples/vfio-mdev/mdpy.c
500
plane->drm_format = mdev_state->type->format;
samples/vfio-mdev/mdpy.c
52
u32 format;
samples/vfio-mdev/mdpy.c
60
.format = DRM_FORMAT_XRGB8888,
samples/vfio-mdev/mdpy.c
67
.format = DRM_FORMAT_XRGB8888,
samples/vfio-mdev/mdpy.c
74
.format = DRM_FORMAT_XRGB8888,
samples/vfs/samples-vfs.h
11
#define die_errno(format, ...) \
samples/vfs/samples-vfs.h
13
fprintf(stderr, "%m | %s: %d: %s: " format "\n", __FILE__, \
scripts/asn1_compiler.c
1263
__attribute__((format(printf, 2, 3)))
scripts/asn1_compiler.c
1277
__attribute__((format(printf, 2, 3)))
scripts/dtc/livetree.c
674
const char *name, int format)
scripts/dtc/livetree.c
678
if (!(phandle_format & format))
scripts/dtc/util.h
17
#define PRINTF(i, j) __attribute__((format (__MINGW_PRINTF_FORMAT, i, j)))
scripts/dtc/util.h
19
#define PRINTF(i, j) __attribute__((format (gnu_printf, i, j)))
scripts/dtc/util.h
21
#define PRINTF(i, j) __attribute__((format (printf, i, j)))
scripts/gendwarfksyms/gendwarfksyms.h
34
#define __println(prefix, format, ...) \
scripts/gendwarfksyms/gendwarfksyms.h
35
fprintf(stderr, prefix __PREFIX "%s: " format "\n", __func__, \
scripts/gendwarfksyms/gendwarfksyms.h
38
#define debug(format, ...) \
scripts/gendwarfksyms/gendwarfksyms.h
41
__println("", format, ##__VA_ARGS__); \
scripts/gendwarfksyms/gendwarfksyms.h
44
#define warn(format, ...) __println("warning: ", format, ##__VA_ARGS__)
scripts/gendwarfksyms/gendwarfksyms.h
45
#define error(format, ...) \
scripts/gendwarfksyms/gendwarfksyms.h
47
__println("error: ", format, ##__VA_ARGS__); \
scripts/gendwarfksyms/gendwarfksyms.h
51
#define __die_debug(color, format, ...) \
scripts/gendwarfksyms/gendwarfksyms.h
55
"\033[" #color "m<" format ">\033[39m", \
scripts/gendwarfksyms/gendwarfksyms.h
59
#define die_debug_r(format, ...) __die_debug(91, format, __VA_ARGS__)
scripts/gendwarfksyms/gendwarfksyms.h
60
#define die_debug_g(format, ...) __die_debug(92, format, __VA_ARGS__)
scripts/gendwarfksyms/gendwarfksyms.h
61
#define die_debug_b(format, ...) __die_debug(94, format, __VA_ARGS__)
scripts/genksyms/genksyms.h
72
void error_with_pos(const char *, ...) __attribute__ ((format(printf, 1, 2)));
scripts/insert-sys-cert.c
33
#define info(format, args...) fprintf(stderr, "INFO: " format, ## args)
scripts/insert-sys-cert.c
34
#define warn(format, args...) fprintf(stdout, "WARNING: " format, ## args)
scripts/insert-sys-cert.c
35
#define err(format, args...) fprintf(stderr, "ERROR: " format, ## args)
scripts/kconfig/confdata.c
154
__attribute__ ((format (printf, 1, 2)));
scripts/kconfig/confdata.c
157
__attribute__ ((format (printf, 1, 2)));
scripts/kconfig/preprocess.c
22
static void __attribute__((noreturn)) pperror(const char *format, ...)
scripts/kconfig/preprocess.c
27
va_start(ap, format);
scripts/kconfig/preprocess.c
28
vfprintf(stderr, format, ap);
scripts/mod/devicetable-offsets.c
182
DEVID_FIELD(ipack_device_id, format);
scripts/mod/file2alias.c
47
static void __attribute__((format (printf, 3, 4)))
scripts/mod/file2alias.c
988
DEF_FIELD(symval, ipack_device_id, format);
scripts/mod/file2alias.c
992
ADD(alias, "f", format != IPACK_ANY_FORMAT, format);
scripts/mod/modpost.c
1678
void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf,
scripts/mod/modpost.h
226
void __attribute__((format(printf, 2, 3)))
scripts/mod/modpost.h
92
void __attribute__((format(printf, 2, 3)))
scripts/sign-file.c
230
default: format();
scripts/sign-file.c
237
format();
security/integrity/platform_certs/load_powerpc.c
73
len = secvar_ops->format(buf, sizeof(buf));
security/keys/encrypted-keys/encrypted.c
172
static int datablob_parse(char *datablob, const char **format,
security/keys/encrypted-keys/encrypted.c
201
*format = p;
security/keys/encrypted-keys/encrypted.c
287
len = sprintf(ascii_buf, "%s %s %s ", epayload->format,
security/keys/encrypted-keys/encrypted.c
479
digest = epayload->format + epayload->datablob_len;
security/keys/encrypted-keys/encrypted.c
481
epayload->format, epayload->datablob_len,
security/keys/encrypted-keys/encrypted.c
491
const u8 *format, const u8 *master_key,
security/keys/encrypted-keys/encrypted.c
505
if (!format) {
security/keys/encrypted-keys/encrypted.c
507
len -= strlen(epayload->format) + 1;
security/keys/encrypted-keys/encrypted.c
509
p = epayload->format;
security/keys/encrypted-keys/encrypted.c
513
ret = crypto_memneq(digest, epayload->format + epayload->datablob_len,
security/keys/encrypted-keys/encrypted.c
518
epayload->format + epayload->datablob_len,
security/keys/encrypted-keys/encrypted.c
575
const char *format,
security/keys/encrypted-keys/encrypted.c
594
format_len = (!format) ? strlen(key_format_default) : strlen(format);
security/keys/encrypted-keys/encrypted.c
615
if (format) {
security/keys/encrypted-keys/encrypted.c
616
if (!strcmp(format, key_format_ecryptfs)) {
security/keys/encrypted-keys/encrypted.c
624
} else if (!strcmp(format, key_format_enc32)) {
security/keys/encrypted-keys/encrypted.c
655
const char *format, const char *hex_encoded_iv)
security/keys/encrypted-keys/encrypted.c
681
hmac = epayload->format + epayload->datablob_len;
security/keys/encrypted-keys/encrypted.c
691
ret = datablob_hmac_verify(epayload, format, master_key, master_keylen);
security/keys/encrypted-keys/encrypted.c
712
const char *format, const char *master_desc,
security/keys/encrypted-keys/encrypted.c
717
format_len = (!format) ? strlen(key_format_default) : strlen(format);
security/keys/encrypted-keys/encrypted.c
718
epayload->format = epayload->payload_data + epayload->payload_datalen;
security/keys/encrypted-keys/encrypted.c
719
epayload->master_desc = epayload->format + format_len + 1;
security/keys/encrypted-keys/encrypted.c
725
if (!format)
security/keys/encrypted-keys/encrypted.c
726
memcpy(epayload->format, key_format_default, format_len);
security/keys/encrypted-keys/encrypted.c
728
if (!strcmp(format, key_format_ecryptfs))
security/keys/encrypted-keys/encrypted.c
732
memcpy(epayload->format, format, format_len);
security/keys/encrypted-keys/encrypted.c
747
const char *key_desc, const char *format,
security/keys/encrypted-keys/encrypted.c
753
if (format && !strcmp(format, key_format_ecryptfs)) {
security/keys/encrypted-keys/encrypted.c
762
__ekey_init(epayload, format, master_desc, datalen);
security/keys/encrypted-keys/encrypted.c
764
ret = encrypted_key_decrypt(epayload, format, hex_encoded_iv);
security/keys/encrypted-keys/encrypted.c
791
const char *format = NULL;
security/keys/encrypted-keys/encrypted.c
807
ret = datablob_parse(datablob, &format, &master_desc,
security/keys/encrypted-keys/encrypted.c
812
epayload = encrypted_key_alloc(key, format, master_desc,
security/keys/encrypted-keys/encrypted.c
818
ret = encrypted_init(epayload, key->description, format, master_desc,
security/keys/encrypted-keys/encrypted.c
854
const char *format = NULL;
security/keys/encrypted-keys/encrypted.c
869
ret = datablob_parse(buf, &format, &new_master_desc, NULL, NULL, NULL);
security/keys/encrypted-keys/encrypted.c
877
new_epayload = encrypted_key_alloc(key, epayload->format,
security/keys/encrypted-keys/encrypted.c
884
__ekey_init(new_epayload, epayload->format, new_master_desc,
security/smack/smackfs.c
2296
size_t count, loff_t *ppos, int format)
security/smack/smackfs.c
2306
if (format == SMK_FIXED24_FMT) {
security/smack/smackfs.c
2331
if (format == SMK_FIXED24_FMT)
security/smack/smackfs.c
448
struct mutex *rule_lock, int format)
security/smack/smackfs.c
464
if (format == SMK_FIXED24_FMT) {
security/smack/smackfs.c
495
tokens = (format == SMK_CHANGE_FMT ? 4 : 3);
security/smack/smackfs.c
497
if (format == SMK_FIXED24_FMT) {
security/smack/smackfs.c
833
size_t count, loff_t *ppos, int format)
security/smack/smackfs.c
857
if (format == SMK_FIXED24_FMT &&
security/smack/smackfs.c
880
if (format == SMK_FIXED24_FMT)
security/smack/smackfs.c
904
if (format == SMK_FIXED24_FMT &&
sound/aoa/codecs/onyx.c
683
if (substream->runtime->format == SNDRV_PCM_FMTBIT_COMPRESSED_16BE) {
sound/aoa/soundbus/i2sbus/i2sbus.h
70
snd_pcm_format_t format;
sound/aoa/soundbus/i2sbus/pcm.c
177
hw->formats &= pcm_format_to_bits(i2sdev->format);
sound/aoa/soundbus/i2sbus/pcm.c
340
((i2sdev->format != runtime->format)
sound/aoa/soundbus/i2sbus/pcm.c
344
i2sdev->format = runtime->format;
sound/aoa/soundbus/i2sbus/pcm.c
387
switch (runtime->format) {
sound/atmel/ac97c.c
213
switch (runtime->format) {
sound/atmel/ac97c.c
295
switch (runtime->format) {
sound/core/oss/copy.c
34
snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format);
sound/core/oss/copy.c
39
snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.format);
sound/core/oss/copy.c
59
if (snd_BUG_ON(src_format->format != dst_format->format))
sound/core/oss/copy.c
66
width = snd_pcm_format_physical_width(src_format->format);
sound/core/oss/io.c
106
format.format = params_format(params);
sound/core/oss/io.c
107
format.rate = params_rate(params);
sound/core/oss/io.c
108
format.channels = params_channels(params);
sound/core/oss/io.c
110
&format, &format,
sound/core/oss/io.c
111
sizeof(void *) * format.channels,
sound/core/oss/io.c
98
struct snd_pcm_plugin_format format;
sound/core/oss/linear.c
151
if (snd_BUG_ON(!snd_pcm_format_linear(src_format->format) ||
sound/core/oss/linear.c
152
!snd_pcm_format_linear(dst_format->format)))
sound/core/oss/linear.c
161
init_data(data, src_format->format, dst_format->format);
sound/core/oss/linear.c
55
snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format);
sound/core/oss/mulaw.c
169
snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format);
sound/core/oss/mulaw.c
215
snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format);
sound/core/oss/mulaw.c
265
static void init_data(struct mulaw_priv *data, snd_pcm_format_t format)
sound/core/oss/mulaw.c
268
data->cvt_endian = snd_pcm_format_big_endian(format) > 0;
sound/core/oss/mulaw.c
270
data->cvt_endian = snd_pcm_format_little_endian(format) > 0;
sound/core/oss/mulaw.c
272
if (!snd_pcm_format_signed(format))
sound/core/oss/mulaw.c
274
data->native_bytes = snd_pcm_format_physical_width(format) / 8;
sound/core/oss/mulaw.c
276
if (snd_pcm_format_little_endian(format)) {
sound/core/oss/mulaw.c
282
snd_pcm_format_width(format) / 8;
sound/core/oss/mulaw.c
294
struct snd_pcm_plugin_format *format;
sound/core/oss/mulaw.c
306
if (dst_format->format == SNDRV_PCM_FORMAT_MU_LAW) {
sound/core/oss/mulaw.c
307
format = src_format;
sound/core/oss/mulaw.c
310
else if (src_format->format == SNDRV_PCM_FORMAT_MU_LAW) {
sound/core/oss/mulaw.c
311
format = dst_format;
sound/core/oss/mulaw.c
318
if (!snd_pcm_format_linear(format->format))
sound/core/oss/mulaw.c
328
init_data(data, format->format);
sound/core/oss/pcm_oss.c
1065
runtime->oss.format = snd_pcm_oss_format_to(params_format(params));
sound/core/oss/pcm_oss.c
1657
snd_pcm_format_t format;
sound/core/oss/pcm_oss.c
1674
format = snd_pcm_oss_format_from(runtime->oss.format);
sound/core/oss/pcm_oss.c
1675
width = snd_pcm_format_physical_width(format);
sound/core/oss/pcm_oss.c
1681
snd_pcm_format_set_silence(format,
sound/core/oss/pcm_oss.c
1692
snd_pcm_format_set_silence(format,
sound/core/oss/pcm_oss.c
1881
static int snd_pcm_oss_set_format(struct snd_pcm_oss_file *pcm_oss_file, int format)
sound/core/oss/pcm_oss.c
1886
if (format != AFMT_QUERY) {
sound/core/oss/pcm_oss.c
1890
if (!(formats & format))
sound/core/oss/pcm_oss.c
1891
format = AFMT_U8;
sound/core/oss/pcm_oss.c
1901
if (runtime->oss.format != format) {
sound/core/oss/pcm_oss.c
1903
runtime->oss.format = format;
sound/core/oss/pcm_oss.c
1919
return substream->runtime->oss.format;
sound/core/oss/pcm_oss.c
2377
runtime->oss.format = AFMT_U8;
sound/core/oss/pcm_oss.c
2380
runtime->oss.format = AFMT_S16_LE;
sound/core/oss/pcm_oss.c
2383
runtime->oss.format = AFMT_MU_LAW;
sound/core/oss/pcm_oss.c
627
static snd_pcm_format_t snd_pcm_oss_format_from(int format)
sound/core/oss/pcm_oss.c
629
switch (format) {
sound/core/oss/pcm_oss.c
651
static int snd_pcm_oss_format_to(snd_pcm_format_t format)
sound/core/oss/pcm_oss.c
653
switch (format) {
sound/core/oss/pcm_oss.c
857
snd_pcm_format_t format, sformat;
sound/core/oss/pcm_oss.c
904
format = snd_pcm_oss_format_from(runtime->oss.format);
sound/core/oss/pcm_oss.c
908
sformat = format;
sound/core/oss/pcm_oss.c
910
sformat = snd_pcm_plug_slave_format(format, sformat_mask);
sound/core/oss/pcm_oss.c
935
(__force int)snd_pcm_oss_format_from(runtime->oss.format), 0);
sound/core/oss/pcm_plugin.c
157
plugin->src_width = snd_pcm_format_physical_width(src_format->format);
sound/core/oss/pcm_plugin.c
160
plugin->dst_width = snd_pcm_format_physical_width(dst_format->format);
sound/core/oss/pcm_plugin.c
263
snd_pcm_format_t format)
sound/core/oss/pcm_plugin.c
281
return snd_mask_test(&formats, (__force int)format);
sound/core/oss/pcm_plugin.c
305
snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format,
sound/core/oss/pcm_plugin.c
310
if (snd_mask_test(format_mask, (__force int)format))
sound/core/oss/pcm_plugin.c
311
return format;
sound/core/oss/pcm_plugin.c
312
if (!snd_pcm_plug_formats(format_mask, format))
sound/core/oss/pcm_plugin.c
314
if (snd_pcm_format_linear(format)) {
sound/core/oss/pcm_plugin.c
315
unsigned int width = snd_pcm_format_width(format);
sound/core/oss/pcm_plugin.c
316
int unsignd = snd_pcm_format_unsigned(format) > 0;
sound/core/oss/pcm_plugin.c
317
int big = snd_pcm_format_big_endian(format) > 0;
sound/core/oss/pcm_plugin.c
342
switch (format) {
sound/core/oss/pcm_plugin.c
36
struct snd_pcm_plugin_format *format;
sound/core/oss/pcm_plugin.c
372
dstformat.format = params_format(slave_params);
sound/core/oss/pcm_plugin.c
375
srcformat.format = params_format(params);
sound/core/oss/pcm_plugin.c
383
dstformat.format = params_format(params);
sound/core/oss/pcm_plugin.c
386
srcformat.format = params_format(slave_params);
sound/core/oss/pcm_plugin.c
400
srcformat.format,
sound/core/oss/pcm_plugin.c
404
dstformat.format,
sound/core/oss/pcm_plugin.c
410
! snd_pcm_format_linear(srcformat.format)) {
sound/core/oss/pcm_plugin.c
411
if (srcformat.format != SNDRV_PCM_FORMAT_MU_LAW)
sound/core/oss/pcm_plugin.c
413
tmpformat.format = SNDRV_PCM_FORMAT_S16;
sound/core/oss/pcm_plugin.c
43
format = &plugin->src_format;
sound/core/oss/pcm_plugin.c
446
if (srcformat.format != SNDRV_PCM_FORMAT_S16) {
sound/core/oss/pcm_plugin.c
448
tmpformat.format = SNDRV_PCM_FORMAT_S16;
sound/core/oss/pcm_plugin.c
45
format = &plugin->dst_format;
sound/core/oss/pcm_plugin.c
47
width = snd_pcm_format_physical_width(format->format);
sound/core/oss/pcm_plugin.c
479
if (srcformat.format != dstformat.format) {
sound/core/oss/pcm_plugin.c
480
tmpformat.format = dstformat.format;
sound/core/oss/pcm_plugin.c
481
if (srcformat.format == SNDRV_PCM_FORMAT_MU_LAW ||
sound/core/oss/pcm_plugin.c
482
tmpformat.format == SNDRV_PCM_FORMAT_MU_LAW) {
sound/core/oss/pcm_plugin.c
487
else if (snd_pcm_format_linear(srcformat.format) &&
sound/core/oss/pcm_plugin.c
488
snd_pcm_format_linear(tmpformat.format)) {
sound/core/oss/pcm_plugin.c
495
pdprintf("format change: src=%i, dst=%i returns %i\n", srcformat.format, tmpformat.format, err);
sound/core/oss/pcm_plugin.c
50
size = array3_size(frames, format->channels, width);
sound/core/oss/pcm_plugin.c
549
struct snd_pcm_plugin_format *format;
sound/core/oss/pcm_plugin.c
557
format = &plugin->src_format;
sound/core/oss/pcm_plugin.c
560
format = &plugin->dst_format;
sound/core/oss/pcm_plugin.c
564
width = snd_pcm_format_physical_width(format->format);
sound/core/oss/pcm_plugin.c
567
nchannels = format->channels;
sound/core/oss/pcm_plugin.c
569
format->channels > 1))
sound/core/oss/pcm_plugin.c
658
size_t samples, snd_pcm_format_t format)
sound/core/oss/pcm_plugin.c
668
width = snd_pcm_format_physical_width(format);
sound/core/oss/pcm_plugin.c
672
return snd_pcm_format_set_silence(format, dst, samples);
sound/core/oss/pcm_plugin.c
673
silence = snd_pcm_format_silence_64(format);
sound/core/oss/pcm_plugin.c
68
for (channel = 0; channel < format->channels; channel++, c++) {
sound/core/oss/pcm_plugin.c
705
size_t samples, snd_pcm_format_t format)
sound/core/oss/pcm_plugin.c
713
return snd_pcm_area_silence(dst_area, dst_offset, samples, format);
sound/core/oss/pcm_plugin.c
717
width = snd_pcm_format_physical_width(format);
sound/core/oss/pcm_plugin.c
74
c->area.step = format->channels * width;
sound/core/oss/pcm_plugin.c
77
if (snd_BUG_ON(size % format->channels))
sound/core/oss/pcm_plugin.c
79
size /= format->channels;
sound/core/oss/pcm_plugin.c
80
for (channel = 0; channel < format->channels; channel++, c++) {
sound/core/oss/pcm_plugin.h
112
snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format,
sound/core/oss/pcm_plugin.h
134
size_t samples, snd_pcm_format_t format);
sound/core/oss/pcm_plugin.h
139
size_t samples, snd_pcm_format_t format);
sound/core/oss/pcm_plugin.h
145
static inline int snd_pcm_plug_slave_format(int format, const struct snd_mask *format_mask) { return format; }
sound/core/oss/pcm_plugin.h
34
snd_pcm_format_t format;
sound/core/oss/rate.c
129
snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format);
sound/core/oss/rate.c
302
if (snd_BUG_ON(src_format->format != SNDRV_PCM_FORMAT_S16))
sound/core/oss/rate.c
304
if (snd_BUG_ON(dst_format->format != SNDRV_PCM_FORMAT_S16))
sound/core/oss/rate.c
70
snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format);
sound/core/oss/route.c
13
snd_pcm_uframes_t frames, snd_pcm_format_t format)
sound/core/oss/route.c
18
snd_pcm_area_silence(&dvp->area, 0, frames, format);
sound/core/oss/route.c
26
snd_pcm_uframes_t frames, snd_pcm_format_t format)
sound/core/oss/route.c
29
snd_pcm_area_copy(&src_channel->area, 0, &dst_channel->area, 0, frames, format);
sound/core/oss/route.c
39
snd_pcm_format_t format;
sound/core/oss/route.c
51
format = plugin->dst_format.format;
sound/core/oss/route.c
56
copy_area(src_channels, dvp, frames, format);
sound/core/oss/route.c
63
copy_area(src_channels, dvp, frames, format);
sound/core/oss/route.c
68
zero_areas(dvp, ndsts - dst, frames, format);
sound/core/oss/route.c
85
if (snd_BUG_ON(src_format->format != dst_format->format))
sound/core/pcm.c
212
const char *snd_pcm_format_name(snd_pcm_format_t format)
sound/core/pcm.c
214
unsigned int format_num = (__force unsigned int)format;
sound/core/pcm.c
299
static const char *snd_pcm_oss_format_name(int format)
sound/core/pcm.c
301
switch (format) {
sound/core/pcm.c
389
snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format));
sound/core/pcm.c
397
snd_iprintf(buffer, "OSS format: %s\n", snd_pcm_oss_format_name(runtime->oss.format));
sound/core/pcm_drm_eld.c
266
a->format = GRAB_BITS(buf, 0, 3, 4);
sound/core/pcm_drm_eld.c
267
switch (a->format) {
sound/core/pcm_drm_eld.c
310
a->format = GRAB_BITS(buf, 2, 3, 5);
sound/core/pcm_drm_eld.c
311
if (a->format == AUDIO_CODING_XTYPE_HE_REF_CT ||
sound/core/pcm_drm_eld.c
312
a->format >= AUDIO_CODING_XTYPE_FIRST_RESERVED) {
sound/core/pcm_drm_eld.c
315
a->format);
sound/core/pcm_drm_eld.c
316
a->format = 0;
sound/core/pcm_drm_eld.c
318
a->format += AUDIO_CODING_TYPE_HE_AAC -
sound/core/pcm_drm_eld.c
430
if (!a->format)
sound/core/pcm_drm_eld.c
435
if (a->format == AUDIO_CODING_TYPE_LPCM)
sound/core/pcm_drm_eld.c
445
cea_audio_coding_type_names[a->format],
sound/core/pcm_drm_eld.c
488
i, a->format, cea_audio_coding_type_names[a->format]);
sound/core/pcm_drm_eld.c
494
if (a->format == AUDIO_CODING_TYPE_LPCM) {
sound/core/pcm_iec958.c
137
snd_pcm_format_width(runtime->format),
sound/core/pcm_lib.c
1739
snd_pcm_format_t format = params_format(p);
sound/core/pcm_lib.c
1741
switch (format) {
sound/core/pcm_lib.c
1758
return snd_pcm_format_width(format);
sound/core/pcm_lib.c
1789
width = snd_pcm_format_physical_width(runtime->format);
sound/core/pcm_lib.c
1818
snd_pcm_format_t format;
sound/core/pcm_lib.c
1824
format = params_format(params);
sound/core/pcm_lib.c
1826
frame_size = snd_pcm_format_size(format, channels);
sound/core/pcm_lib.c
2081
snd_pcm_format_set_silence(runtime->format,
sound/core/pcm_misc.c
249
int snd_pcm_format_signed(snd_pcm_format_t format)
sound/core/pcm_misc.c
252
if (!valid_format(format))
sound/core/pcm_misc.c
254
val = pcm_formats[(INT)format].signd;
sound/core/pcm_misc.c
268
int snd_pcm_format_unsigned(snd_pcm_format_t format)
sound/core/pcm_misc.c
272
val = snd_pcm_format_signed(format);
sound/core/pcm_misc.c
285
int snd_pcm_format_linear(snd_pcm_format_t format)
sound/core/pcm_misc.c
287
return snd_pcm_format_signed(format) >= 0;
sound/core/pcm_misc.c
298
int snd_pcm_format_little_endian(snd_pcm_format_t format)
sound/core/pcm_misc.c
30
static bool valid_format(snd_pcm_format_t format)
sound/core/pcm_misc.c
301
if (!valid_format(format))
sound/core/pcm_misc.c
303
val = pcm_formats[(INT)format].le;
sound/core/pcm_misc.c
317
int snd_pcm_format_big_endian(snd_pcm_format_t format)
sound/core/pcm_misc.c
32
return (INT)format >= 0 && (INT)format <= (INT)SNDRV_PCM_FORMAT_LAST;
sound/core/pcm_misc.c
321
val = snd_pcm_format_little_endian(format);
sound/core/pcm_misc.c
335
int snd_pcm_format_width(snd_pcm_format_t format)
sound/core/pcm_misc.c
338
if (!valid_format(format))
sound/core/pcm_misc.c
340
val = pcm_formats[(INT)format].width;
sound/core/pcm_misc.c
354
int snd_pcm_format_physical_width(snd_pcm_format_t format)
sound/core/pcm_misc.c
357
if (!valid_format(format))
sound/core/pcm_misc.c
359
val = pcm_formats[(INT)format].phys;
sound/core/pcm_misc.c
374
ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples)
sound/core/pcm_misc.c
376
int phys_width = snd_pcm_format_physical_width(format);
sound/core/pcm_misc.c
389
const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format)
sound/core/pcm_misc.c
391
if (!valid_format(format))
sound/core/pcm_misc.c
393
if (! pcm_formats[(INT)format].phys)
sound/core/pcm_misc.c
395
return pcm_formats[(INT)format].silence;
sound/core/pcm_misc.c
409
int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples)
sound/core/pcm_misc.c
415
if (!valid_format(format))
sound/core/pcm_misc.c
419
width = pcm_formats[(INT)format].phys; /* physical width */
sound/core/pcm_misc.c
422
pat = pcm_formats[(INT)format].silence;
sound/core/pcm_misc.c
424
if (pcm_formats[(INT)format].signd == 1 || width <= 8) {
sound/core/pcm_native.c
492
snd_pcm_format_t format = (__force snd_pcm_format_t)snd_mask_min(m);
sound/core/pcm_native.c
493
params->msbits = snd_pcm_format_width(format);
sound/core/pcm_native.c
500
snd_pcm_format_t format = (__force snd_pcm_format_t)snd_mask_min(m);
sound/core/pcm_native.c
502
if (snd_pcm_format_linear(format) &&
sound/core/pcm_native.c
503
snd_pcm_format_width(format) != params->msbits) {
sound/core/pcm_native.c
741
snd_pcm_format_set_silence(runtime->format, runtime->dma_area,
sound/core/pcm_native.c
815
runtime->format = params_format(params);
sound/core/pcm_native.c
829
bits = snd_pcm_format_physical_width(runtime->format);
sound/core/sound_kunit.c
104
KUNIT_EXPECT_EQ(test, snd_pcm_format_physical_width(valid_fmt[i].format),
sound/core/sound_kunit.c
117
KUNIT_EXPECT_EQ(test, snd_pcm_format_width(valid_fmt[i].format),
sound/core/sound_kunit.c
130
KUNIT_EXPECT_EQ(test, snd_pcm_format_signed(valid_fmt[i].format),
sound/core/sound_kunit.c
132
KUNIT_EXPECT_EQ(test, snd_pcm_format_unsigned(valid_fmt[i].format),
sound/core/sound_kunit.c
145
KUNIT_EXPECT_EQ(test, snd_pcm_format_little_endian(valid_fmt[i].format),
sound/core/sound_kunit.c
147
KUNIT_EXPECT_EQ(test, snd_pcm_format_big_endian(valid_fmt[i].format),
sound/core/sound_kunit.c
15
.format = SNDRV_PCM_FORMAT_##fmt, .physical_bits = pbits, \
sound/core/sound_kunit.c
163
KUNIT_ASSERT_EQ(test, snd_pcm_format_set_silence(data->format, buffer, samples_count), 0);
sound/core/sound_kunit.c
281
name = snd_pcm_format_name(valid_fmt[i].format);
sound/core/sound_kunit.c
32
snd_pcm_format_t format;
sound/core/ump.c
662
unsigned char format;
sound/core/ump.c
665
format = ump_stream_message_format(buf[0]);
sound/core/ump.c
666
if (format == UMP_STREAM_MSG_FORMAT_SINGLE ||
sound/core/ump.c
667
format == UMP_STREAM_MSG_FORMAT_START) {
sound/core/ump.c
683
return (format == UMP_STREAM_MSG_FORMAT_SINGLE ||
sound/core/ump.c
684
format == UMP_STREAM_MSG_FORMAT_END);
sound/drivers/aloop.c
121
snd_pcm_format_t format;
sound/drivers/aloop.c
1493
[kcontrol->id.device].format;
sound/drivers/aloop.c
1639
setup->format = SNDRV_PCM_FORMAT_S16_LE;
sound/drivers/aloop.c
360
check = runtime->format != cruntime->format ||
sound/drivers/aloop.c
376
if (setup->format != runtime->format) {
sound/drivers/aloop.c
379
setup->format = runtime->format;
sound/drivers/aloop.c
475
cable->hw.formats = pcm_format_to_bits(runtime->format);
sound/drivers/aloop.c
502
salign = (snd_pcm_format_physical_width(runtime->format) *
sound/drivers/aloop.c
514
snd_pcm_format_set_silence(runtime->format, runtime->dma_area,
sound/drivers/aloop.c
549
snd_pcm_format_set_silence(runtime->format, dst + dst_off,
sound/drivers/dummy.c
928
const char *format;
sound/drivers/dummy.c
934
.format = fmt, \
sound/drivers/dummy.c
961
snd_iprintf(buffer, fields[i].format,
sound/drivers/dummy.c
964
snd_iprintf(buffer, fields[i].format,
sound/drivers/opl3/opl3_oss.c
14
static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, const char __user *buf, int offs, int count);
sound/drivers/opl3/opl3_oss.c
176
static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
sound/drivers/opl3/opl3_oss.c
188
if (format == FM_PATCH)
sound/drivers/opl3/opl3_oss.c
190
else if (format == OPL3_PATCH)
sound/drivers/pcsp/pcsp_lib.c
237
snd_pcm_format_physical_width(substream->runtime->format) >> 3;
sound/drivers/pcsp/pcsp_lib.c
238
chip->is_signed = snd_pcm_format_signed(substream->runtime->format);
sound/drivers/vx/vx_pcm.c
157
if (snd_pcm_format_little_endian(runtime->format))
sound/drivers/vx/vx_pcm.c
164
switch (snd_pcm_format_physical_width(runtime->format)) {
sound/firewire/bebob/bebob_stream.c
708
unsigned int i, e, channels, format;
sound/firewire/bebob/bebob_stream.c
731
format = buf[6 + e * 2];
sound/firewire/bebob/bebob_stream.c
733
switch (format) {
sound/firewire/oxfw/oxfw-command.c
11
unsigned int pid, u8 *format, unsigned int len)
sound/firewire/oxfw/oxfw-command.c
30
memcpy(buf + 10, format, len);
sound/firewire/oxfw/oxfw-proc.c
15
u8 *format;
sound/firewire/oxfw/oxfw-proc.c
29
format = oxfw->rx_stream_formats[i];
sound/firewire/oxfw/oxfw-proc.c
30
if (format == NULL)
sound/firewire/oxfw/oxfw-proc.c
33
err = snd_oxfw_stream_parse_format(format, &formation);
sound/firewire/oxfw/oxfw-proc.c
59
format = oxfw->tx_stream_formats[i];
sound/firewire/oxfw/oxfw-proc.c
60
if (format == NULL)
sound/firewire/oxfw/oxfw-proc.c
63
err = snd_oxfw_stream_parse_format(format, &formation);
sound/firewire/oxfw/oxfw-stream.c
494
u8 *format;
sound/firewire/oxfw/oxfw-stream.c
498
format = kmalloc(len, GFP_KERNEL);
sound/firewire/oxfw/oxfw-stream.c
499
if (format == NULL)
sound/firewire/oxfw/oxfw-stream.c
502
err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len);
sound/firewire/oxfw/oxfw-stream.c
507
err = snd_oxfw_stream_parse_format(format, formation);
sound/firewire/oxfw/oxfw-stream.c
510
kfree(format);
sound/firewire/oxfw/oxfw-stream.c
551
int snd_oxfw_stream_parse_format(const u8 *format,
sound/firewire/oxfw/oxfw-stream.c
563
if ((format[0] != 0x90) || (format[1] != 0x40))
sound/firewire/oxfw/oxfw-stream.c
568
if (format[2] == avc_stream_rate_table[i])
sound/firewire/oxfw/oxfw-stream.c
576
for (e = 0; e < format[4]; e++) {
sound/firewire/oxfw/oxfw-stream.c
577
channels = format[5 + e * 2];
sound/firewire/oxfw/oxfw-stream.c
578
type = format[6 + e * 2];
sound/firewire/oxfw/oxfw-stream.c
786
u8 *format;
sound/firewire/oxfw/oxfw-stream.c
813
format = oxfw->tx_stream_formats[i];
sound/firewire/oxfw/oxfw-stream.c
814
if (format == NULL)
sound/firewire/oxfw/oxfw-stream.c
816
err = snd_oxfw_stream_parse_format(format,
sound/firewire/oxfw/oxfw-stream.c
841
format = oxfw->rx_stream_formats[i];
sound/firewire/oxfw/oxfw-stream.c
842
if (format == NULL)
sound/firewire/oxfw/oxfw-stream.c
844
err = snd_oxfw_stream_parse_format(format,
sound/firewire/oxfw/oxfw.h
100
unsigned int pid, u8 *format, unsigned int len);
sound/firewire/oxfw/oxfw.h
144
int snd_oxfw_stream_parse_format(const u8 *format,
sound/hda/codecs/ca0132.c
3081
unsigned short *format)
sound/hda/codecs/ca0132.c
3083
if (format)
sound/hda/codecs/ca0132.c
3084
*format = dma->m_converter_format;
sound/hda/codecs/ca0132.c
3877
unsigned int format,
sound/hda/codecs/ca0132.c
3882
snd_hda_codec_setup_stream(codec, spec->dacs[0], stream_tag, 0, format);
sound/hda/codecs/ca0132.c
3945
unsigned int format,
sound/hda/codecs/ca0132.c
3950
stream_tag, format, substream);
sound/hda/codecs/ca0132.c
3975
unsigned int format,
sound/hda/codecs/ca0132.c
3979
stream_tag, 0, format);
sound/hda/codecs/generic.c
5340
unsigned int format,
sound/hda/codecs/generic.c
5347
stream_tag, format, substream);
sound/hda/codecs/generic.c
5392
unsigned int format,
sound/hda/codecs/generic.c
5395
snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format);
sound/hda/codecs/generic.c
5452
unsigned int format,
sound/hda/codecs/generic.c
5455
snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format);
sound/hda/codecs/generic.c
5485
unsigned int format,
sound/hda/codecs/generic.c
5490
stream_tag, format, substream);
sound/hda/codecs/generic.c
5518
unsigned int format,
sound/hda/codecs/generic.c
5524
stream_tag, 0, format);
sound/hda/codecs/generic.c
5648
unsigned int format,
sound/hda/codecs/generic.c
5654
spec->cur_adc_format = format;
sound/hda/codecs/generic.c
5655
snd_hda_codec_setup_stream(codec, spec->cur_adc, stream_tag, 0, format);
sound/hda/codecs/hdmi/atihdmi.c
468
u32 stream_tag, int format)
sound/hda/codecs/hdmi/atihdmi.c
473
if (format & AC_FMT_TYPE_NON_PCM)
sound/hda/codecs/hdmi/atihdmi.c
480
stream_tag, format);
sound/hda/codecs/hdmi/eld.c
170
e->sad[n].format = val;
sound/hda/codecs/hdmi/eld.c
211
if (a->format == AUDIO_CODING_TYPE_LPCM) {
sound/hda/codecs/hdmi/hdmi.c
1644
unsigned int format,
sound/hda/codecs/hdmi/hdmi.c
1663
stream_tag, 0, format);
sound/hda/codecs/hdmi/hdmi.c
1712
per_pin->dev_id, stream_tag, format);
sound/hda/codecs/hdmi/hdmi.c
680
#define is_hbr_format(format) \
sound/hda/codecs/hdmi/hdmi.c
681
((format & AC_FMT_TYPE_NON_PCM) && (format & AC_FMT_CHAN_MASK) == 7)
sound/hda/codecs/hdmi/hdmi.c
721
u32 stream_tag, int format)
sound/hda/codecs/hdmi/hdmi.c
728
is_hbr_format(format));
sound/hda/codecs/hdmi/hdmi.c
748
if (is_hbr_format(format))
sound/hda/codecs/hdmi/hdmi.c
755
snd_hda_codec_setup_stream(codec, cvt_nid, stream_tag, 0, format);
sound/hda/codecs/hdmi/hdmi_local.h
259
u32 stream_tag, int format);
sound/hda/codecs/hdmi/hdmi_local.h
264
unsigned int format,
sound/hda/codecs/hdmi/hdmi_local.h
75
int format);
sound/hda/codecs/hdmi/intelhdmi.c
203
unsigned int format;
sound/hda/codecs/hdmi/intelhdmi.c
209
format = snd_hdac_stream_format(I915_SILENT_CHANNELS, I915_SILENT_FORMAT_BITS,
sound/hda/codecs/hdmi/intelhdmi.c
212
I915_SILENT_FMT_MASK, I915_SILENT_FMT_MASK, format);
sound/hda/codecs/hdmi/intelhdmi.c
214
snd_hda_codec_setup_stream(codec, per_pin->cvt_nid, I915_SILENT_FMT_MASK, 0, format);
sound/hda/codecs/hdmi/intelhdmi.c
424
int format)
sound/hda/codecs/hdmi/intelhdmi.c
445
stream_tag, format);
sound/hda/codecs/hdmi/nvhdmi-mcp.c
124
unsigned int format,
sound/hda/codecs/hdmi/nvhdmi-mcp.c
156
AC_VERB_SET_STREAM_FORMAT, format);
sound/hda/codecs/hdmi/nvhdmi-mcp.c
199
format);
sound/hda/codecs/hdmi/simplehdmi.c
151
unsigned int format,
sound/hda/codecs/hdmi/simplehdmi.c
157
stream_tag, format, substream);
sound/hda/codecs/hdmi/tegrahdmi.c
104
if (format == 0)
sound/hda/codecs/hdmi/tegrahdmi.c
136
unsigned int format,
sound/hda/codecs/hdmi/tegrahdmi.c
142
format, substream);
sound/hda/codecs/hdmi/tegrahdmi.c
147
tegra_hdmi_set_format(codec, hinfo->nid, format);
sound/hda/codecs/hdmi/tegrahdmi.c
68
unsigned int format)
sound/hda/codecs/hdmi/tegrahdmi.c
91
(format >> 0) & 0xff);
sound/hda/codecs/hdmi/tegrahdmi.c
94
(format >> 8) & 0xff);
sound/hda/codecs/si3054.c
138
unsigned int format,
sound/hda/codecs/si3054.c
150
stream_tag, 0, format);
sound/hda/common/codec.c
1093
hda_nid_t nid, int format)
sound/hda/common/codec.c
1097
if (p->format_id != format) {
sound/hda/common/codec.c
1100
if (oldval != format) {
sound/hda/common/codec.c
1104
format);
sound/hda/common/codec.c
1106
p->format_id = format;
sound/hda/common/codec.c
1120
int channel_id, int format)
sound/hda/common/codec.c
1133
nid, stream_tag, channel_id, format);
sound/hda/common/codec.c
1141
update_pcm_format(codec, p, nid, format);
sound/hda/common/codec.c
1144
update_pcm_format(codec, p, nid, format);
sound/hda/common/codec.c
3105
unsigned int format,
sound/hda/common/codec.c
3108
snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format);
sound/hda/common/codec.c
3169
unsigned int format,
sound/hda/common/codec.c
3176
ret = hinfo->ops.prepare(hinfo, codec, stream, format,
sound/hda/common/codec.c
3574
unsigned int stream_tag, unsigned int format)
sound/hda/common/codec.c
3591
curr_fmt != format;
sound/hda/common/codec.c
3599
snd_hda_codec_setup_stream(codec, nid, stream_tag, 0, format);
sound/hda/common/codec.c
3604
format);
sound/hda/common/codec.c
3650
unsigned int format,
sound/hda/common/codec.c
3654
setup_dig_out_stream(codec, mout->dig_out_nid, stream_tag, format);
sound/hda/common/codec.c
3755
unsigned int format,
sound/hda/common/codec.c
3769
format) &&
sound/hda/common/codec.c
3773
stream_tag, format);
sound/hda/common/codec.c
3783
0, format);
sound/hda/common/codec.c
3788
0, format);
sound/hda/common/codec.c
3794
stream_tag, 0, format);
sound/hda/common/codec.c
3800
i * 2, format);
sound/hda/common/codec.c
3803
0, format);
sound/hda/common/codec.c
3816
stream_tag, ch, format);
sound/hda/common/controller.c
171
bits = snd_hdac_stream_format_bits(runtime->format, SNDRV_PCM_SUBFORMAT_STD, hinfo->maxbps);
sound/hda/common/controller.c
177
runtime->rate, runtime->channels, runtime->format);
sound/hda/common/controller.c
952
int snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format,
sound/hda/common/controller.c
972
err = snd_hdac_dsp_prepare(hstr, format, byte_size, bufp);
sound/hda/common/hda_local.h
235
unsigned int format,
sound/hda/common/hda_local.h
246
unsigned int format,
sound/hda/core/device.c
1007
rate = format & 0xff00;
sound/hda/core/device.c
1022
switch (format & 0xf0) {
sound/hda/core/device.c
726
static snd_pcm_format_t snd_hdac_format_normalize(snd_pcm_format_t format)
sound/hda/core/device.c
728
switch (format) {
sound/hda/core/device.c
746
return format;
sound/hda/core/device.c
758
unsigned int snd_hdac_stream_format_bits(snd_pcm_format_t format, snd_pcm_subformat_t subformat,
sound/hda/core/device.c
766
params_set_format(¶ms, snd_hdac_format_normalize(format));
sound/hda/core/device.c
998
unsigned int format)
sound/hda/core/stream.c
917
int snd_hdac_dsp_prepare(struct hdac_stream *azx_dev, unsigned int format,
sound/hda/core/stream.c
939
azx_dev->format_val = format;
sound/isa/ad1816a/ad1816a_lib.c
222
snd_ad1816a_get_format(chip, runtime->format,
sound/isa/ad1816a/ad1816a_lib.c
251
snd_ad1816a_get_format(chip, runtime->format,
sound/isa/ad1816a/ad1816a_lib.c
76
snd_pcm_format_t format,
sound/isa/ad1816a/ad1816a_lib.c
81
switch (format) {
sound/isa/es1688/es1688_lib.c
347
if (snd_pcm_format_width(runtime->format) == 8) {
sound/isa/es1688/es1688_lib.c
359
if (snd_pcm_format_width(runtime->format) == 8) {
sound/isa/es1688/es1688_lib.c
408
if (snd_pcm_format_width(runtime->format) == 8) {
sound/isa/es1688/es1688_lib.c
418
if (snd_pcm_format_width(runtime->format) == 8) {
sound/isa/es18xx.c
458
(snd_pcm_format_width(runtime->format) == 16 ? 0x01 : 0x00) |
sound/isa/es18xx.c
459
(snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x04));
sound/isa/es18xx.c
563
snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71);
sound/isa/es18xx.c
566
(snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) |
sound/isa/es18xx.c
567
(snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20));
sound/isa/es18xx.c
625
snd_pcm_format_unsigned(runtime->format) ? 0x80 : 0x00);
sound/isa/es18xx.c
627
snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71);
sound/isa/es18xx.c
630
(snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) |
sound/isa/es18xx.c
631
(snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20));
sound/isa/gus/gus_pcm.c
107
voice_ctrl = snd_pcm_format_width(runtime->format) == 16 ? 0x24 : 0x20;
sound/isa/gus/gus_pcm.c
118
end -= snd_pcm_format_width(runtime->format) == 16 ? 2 : 1;
sound/isa/gus/gus_pcm.c
343
w16 = (snd_pcm_format_width(runtime->format) == 16);
sound/isa/gus/gus_pcm.c
344
invert = snd_pcm_format_unsigned(runtime->format);
sound/isa/gus/gus_pcm.c
378
snd_pcm_format_set_silence(runtime->format, runtime->dma_area + bpos,
sound/isa/gus/gus_pcm.c
72
if (snd_pcm_format_unsigned(runtime->format))
sound/isa/gus/gus_pcm.c
74
if (snd_pcm_format_width(runtime->format) == 16)
sound/isa/sb/sb16_main.c
106
if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) {
sound/isa/sb/sb16_main.c
235
unsigned char format;
sound/isa/sb/sb16_main.c
239
if (snd_pcm_format_unsigned(runtime->format) > 0) {
sound/isa/sb/sb16_main.c
240
format = runtime->channels > 1 ? SB_DSP4_MODE_UNS_STEREO : SB_DSP4_MODE_UNS_MONO;
sound/isa/sb/sb16_main.c
242
format = runtime->channels > 1 ? SB_DSP4_MODE_SIGN_STEREO : SB_DSP4_MODE_SIGN_MONO;
sound/isa/sb/sb16_main.c
256
snd_sbdsp_command(chip, format);
sound/isa/sb/sb16_main.c
263
snd_sbdsp_command(chip, format);
sound/isa/sb/sb16_main.c
301
unsigned char format;
sound/isa/sb/sb16_main.c
305
if (snd_pcm_format_unsigned(runtime->format) > 0) {
sound/isa/sb/sb16_main.c
306
format = runtime->channels > 1 ? SB_DSP4_MODE_UNS_STEREO : SB_DSP4_MODE_UNS_MONO;
sound/isa/sb/sb16_main.c
308
format = runtime->channels > 1 ? SB_DSP4_MODE_SIGN_STEREO : SB_DSP4_MODE_SIGN_MONO;
sound/isa/sb/sb16_main.c
321
snd_sbdsp_command(chip, format);
sound/isa/sb/sb16_main.c
328
snd_sbdsp_command(chip, format);
sound/isa/sb/sb16_main.c
38
((unsigned int)pcm_format_to_bits((runtime)->format))
sound/isa/sb/sb16_main.c
68
if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) {
sound/isa/sb/sb8_main.c
102
if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) {
sound/isa/sb/sb8_main.c
135
format = stereo ? SB_DSP_STEREO_16BIT : SB_DSP_MONO_16BIT;
sound/isa/sb/sb8_main.c
138
format = stereo ? SB_DSP_STEREO_8BIT : SB_DSP_MONO_8BIT;
sound/isa/sb/sb8_main.c
147
snd_sbdsp_command(chip, format);
sound/isa/sb/sb8_main.c
229
unsigned char format;
sound/isa/sb/sb8_main.c
236
if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) {
sound/isa/sb/sb8_main.c
270
format = stereo ? SB_DSP_STEREO_16BIT : SB_DSP_MONO_16BIT;
sound/isa/sb/sb8_main.c
273
format = stereo ? SB_DSP_STEREO_8BIT : SB_DSP_MONO_8BIT;
sound/isa/sb/sb8_main.c
282
snd_sbdsp_command(chip, format);
sound/isa/sb/sb8_main.c
95
unsigned char format;
sound/isa/wss/wss_lib.c
451
static unsigned int snd_wss_get_count(unsigned char format, unsigned int size)
sound/isa/wss/wss_lib.c
453
switch (format & 0xe0) {
sound/isa/wss/wss_lib.c
461
if (format & CS4231_STEREO)
sound/isa/wss/wss_lib.c
529
snd_pcm_format_t format,
sound/isa/wss/wss_lib.c
535
switch (format) {
sound/isa/wss/wss_lib.c
545
dev_dbg(chip->card->dev, "get_format: 0x%x (mode=0x%x)\n", format, mode);
sound/oss/dmasound/dmasound.h
96
int format; /* AFMT_* */
sound/oss/dmasound/dmasound_atari.c
1113
static int FalconSetFormat(int format)
sound/oss/dmasound/dmasound_atari.c
1118
switch (format) {
sound/oss/dmasound/dmasound_atari.c
1120
return dmasound.soft.format;
sound/oss/dmasound/dmasound_atari.c
1135
format = AFMT_S8;
sound/oss/dmasound/dmasound_atari.c
1138
dmasound.soft.format = format;
sound/oss/dmasound/dmasound_atari.c
1141
dmasound.dsp.format = format;
sound/oss/dmasound/dmasound_atari.c
1147
return format;
sound/oss/dmasound/dmasound_atari.c
128
static int TTSetFormat(int format);
sound/oss/dmasound/dmasound_atari.c
133
static int FalconSetFormat(int format);
sound/oss/dmasound/dmasound_atari.c
1509
.format = AFMT_S8,
sound/oss/dmasound/dmasound_atari.c
1516
.format = AFMT_S8,
sound/oss/dmasound/dmasound_atari.c
1523
.format = AFMT_U8,
sound/oss/dmasound/dmasound_atari.c
159
char *table = dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8
sound/oss/dmasound/dmasound_atari.c
389
char *table = dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8
sound/oss/dmasound/dmasound_atari.c
957
static int TTSetFormat(int format)
sound/oss/dmasound/dmasound_atari.c
961
switch (format) {
sound/oss/dmasound/dmasound_atari.c
963
return dmasound.soft.format;
sound/oss/dmasound/dmasound_atari.c
970
format = AFMT_S8;
sound/oss/dmasound/dmasound_atari.c
973
dmasound.soft.format = format;
sound/oss/dmasound/dmasound_atari.c
976
dmasound.dsp.format = format;
sound/oss/dmasound/dmasound_atari.c
981
return format;
sound/oss/dmasound/dmasound_core.c
1080
int format;
sound/oss/dmasound/dmasound_core.c
1083
format = sound_set_format(data);
sound/oss/dmasound/dmasound_core.c
1084
result = IOCTL_OUT(arg, format);
sound/oss/dmasound/dmasound_core.c
1087
if (format != data && data != AFMT_QUERY)
sound/oss/dmasound/dmasound_core.c
1286
get_afmt_string(dmasound.soft.format),
sound/oss/dmasound/dmasound_core.c
1287
get_afmt_string(dmasound.hard.format));
sound/oss/dmasound/dmasound_core.c
229
static inline int sound_set_format(int format)
sound/oss/dmasound/dmasound_core.c
231
return dmasound.mach.setFormat(format);
sound/oss/dmasound/dmasound_core.c
277
switch (dmasound.soft.format) {
sound/oss/dmasound/dmasound_paula.c
385
static int AmiSetFormat(int format)
sound/oss/dmasound/dmasound_paula.c
391
switch (format) {
sound/oss/dmasound/dmasound_paula.c
393
return dmasound.soft.format;
sound/oss/dmasound/dmasound_paula.c
408
format = AFMT_S8;
sound/oss/dmasound/dmasound_paula.c
411
dmasound.soft.format = format;
sound/oss/dmasound/dmasound_paula.c
414
dmasound.dsp.format = format;
sound/oss/dmasound/dmasound_paula.c
419
return format;
sound/oss/dmasound/dmasound_paula.c
672
.format = AFMT_S8,
sound/oss/dmasound/dmasound_paula.c
679
.format = AFMT_U8,
sound/oss/dmasound/dmasound_paula.c
82
static int AmiSetFormat(int format);
sound/oss/dmasound/dmasound_q40.c
123
(dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8: dmasound_alaw2dma8);
sound/oss/dmasound/dmasound_q40.c
233
(dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8: dmasound_alaw2dma8);
sound/oss/dmasound/dmasound_q40.c
48
static int Q40SetFormat(int format);
sound/oss/dmasound/dmasound_q40.c
545
static int Q40SetFormat(int format)
sound/oss/dmasound/dmasound_q40.c
549
switch (format) {
sound/oss/dmasound/dmasound_q40.c
551
return(dmasound.soft.format);
sound/oss/dmasound/dmasound_q40.c
558
format = AFMT_S8;
sound/oss/dmasound/dmasound_q40.c
561
dmasound.soft.format = format;
sound/oss/dmasound/dmasound_q40.c
564
dmasound.dsp.format = format;
sound/oss/dmasound/dmasound_q40.c
569
return(format);
sound/oss/dmasound/dmasound_q40.c
581
.format = AFMT_U8,
sound/oss/dmasound/dmasound_q40.c
588
.format = AFMT_U8,
sound/oss/dmasound/dmasound_q40.c
66
char *table = dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8: dmasound_alaw2dma8;
sound/parisc/harmony.c
164
(h->st.format << 6) |
sound/parisc/harmony.c
354
int o = h->st.format;
sound/parisc/harmony.c
397
h->st.format = snd_harmony_set_data_format(h, rt->format, 0);
sound/parisc/harmony.c
427
h->st.format = snd_harmony_set_data_format(h, rt->format, 0);
sound/parisc/harmony.c
623
h->st.format = snd_harmony_set_data_format(h,
sound/parisc/harmony.h
28
u32 format;
sound/pci/ad1889.c
349
if (snd_pcm_format_width(rt->format) == 16)
sound/pci/ad1889.c
397
if (snd_pcm_format_width(rt->format) == 16)
sound/pci/ali5451/ali5451.c
1048
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/ali5451/ali5451.c
1050
if (!snd_pcm_format_unsigned(runtime->format))
sound/pci/als300.c
79
#define snd_als300_dbgplay(format, args...) printk(KERN_ERR format, ##args)
sound/pci/als300.c
81
#define snd_als300_dbgplay(format, args...)
sound/pci/als4000.c
309
if (snd_pcm_format_signed(runtime->format))
sound/pci/als4000.c
311
if (snd_pcm_format_physical_width(runtime->format) == 16)
sound/pci/als4000.c
320
unsigned char dsp_cmd, dma_on, dma_off, format;
sound/pci/als4000.c
412
snd_sbdsp_command(chip, playback_cmd(chip).format);
sound/pci/asihpi/asihpi.c
1111
u16 format;
sound/pci/asihpi/asihpi.c
1127
for (format = HPI_FORMAT_PCM8_UNSIGNED;
sound/pci/asihpi/asihpi.c
1128
format <= HPI_FORMAT_PCM24_SIGNED; format++) {
sound/pci/asihpi/asihpi.c
1131
format, sample_rate, 128000, 0);
sound/pci/asihpi/asihpi.c
1134
if (!err && (hpi_to_alsa_formats[format] != INVALID_FORMAT))
sound/pci/asihpi/asihpi.c
1135
formats |= pcm_format_to_bits(hpi_to_alsa_formats[format]);
sound/pci/asihpi/asihpi.c
141
struct hpi_format format;
sound/pci/asihpi/asihpi.c
316
u16 format;
sound/pci/asihpi/asihpi.c
318
for (format = HPI_FORMAT_PCM8_UNSIGNED;
sound/pci/asihpi/asihpi.c
319
format <= HPI_FORMAT_PCM24_SIGNED; format++) {
sound/pci/asihpi/asihpi.c
320
if (hpi_to_alsa_formats[format] == alsa_format) {
sound/pci/asihpi/asihpi.c
321
*hpi_format = format;
sound/pci/asihpi/asihpi.c
40
#define asihpi_dbg(format, args...) pr_debug(format, ##args)
sound/pci/asihpi/asihpi.c
42
#define asihpi_dbg(format, args...) do { } while (0)
sound/pci/asihpi/asihpi.c
430
u16 format;
sound/pci/asihpi/asihpi.c
435
err = snd_card_asihpi_format_alsa2hpi(card, params_format(params), &format);
sound/pci/asihpi/asihpi.c
439
hpi_handle_error(hpi_format_create(&dpcm->format,
sound/pci/asihpi/asihpi.c
441
format, params_rate(params), 0, 0));
sound/pci/asihpi/asihpi.c
448
dpcm->h_stream, &dpcm->format) != 0)
sound/pci/asihpi/asihpi.c
591
&ds->format));
sound/pci/asihpi/asihpi.c
856
&ds->format));
sound/pci/asihpi/asihpi.c
868
&ds->format));
sound/pci/asihpi/asihpi.c
941
u16 format;
sound/pci/asihpi/asihpi.c
958
for (format = HPI_FORMAT_PCM8_UNSIGNED;
sound/pci/asihpi/asihpi.c
959
format <= HPI_FORMAT_PCM24_SIGNED; format++) {
sound/pci/asihpi/asihpi.c
961
format, sample_rate, 128000, 0);
sound/pci/asihpi/asihpi.c
964
if (!err && (hpi_to_alsa_formats[format] != INVALID_FORMAT))
sound/pci/asihpi/asihpi.c
965
formats |= pcm_format_to_bits(hpi_to_alsa_formats[format]);
sound/pci/asihpi/hpi.h
1122
u16 format; /**< HPI_FORMAT_PCM16, _MPEG etc. see #HPI_FORMATS. */
sound/pci/asihpi/hpi.h
1705
u16 hpi_format_create(struct hpi_format *p_format, u16 channels, u16 format,
sound/pci/asihpi/hpi_internal.h
1304
u32 format;
sound/pci/asihpi/hpi_internal.h
1309
u32 format;
sound/pci/asihpi/hpi_internal.h
570
u16 format; /**< HPI_FORMAT_PCM16, _MPEG etc. see \ref HPI_FORMATS. */
sound/pci/asihpi/hpi_internal.h
576
struct hpi_msg_format format;
sound/pci/asihpi/hpi_internal.h
586
struct hpi_format format;
sound/pci/asihpi/hpi_internal.h
594
struct hpi_msg_format format;
sound/pci/asihpi/hpicmn.c
406
phr->u.c.param1 = pC->u.aes3rx.format;
sound/pci/asihpi/hpicmn.c
412
phr->u.c.param1 = pC->u.aes3tx.format;
sound/pci/asihpi/hpicmn.c
594
pC->u.aes3tx.format = phm->u.c.param1;
sound/pci/asihpi/hpicmn.c
598
pC->u.aes3rx.format = phm->u.c.param1;
sound/pci/asihpi/hpifunc.c
1035
hm.u.d.u.data.format.attributes = bytes_per_frame;
sound/pci/asihpi/hpifunc.c
1036
hm.u.d.u.data.format.format = (mode << 8) | (alignment & 0xff);
sound/pci/asihpi/hpifunc.c
1037
hm.u.d.u.data.format.channels = idle_bit;
sound/pci/asihpi/hpifunc.c
1480
u16 hpi_aesebu_receiver_set_format(u32 h_control, u16 format)
sound/pci/asihpi/hpifunc.c
1482
return hpi_control_param_set(h_control, HPI_AESEBURX_FORMAT, format,
sound/pci/asihpi/hpifunc.c
284
u16 hpi_format_create(struct hpi_format *p_format, u16 channels, u16 format,
sound/pci/asihpi/hpifunc.c
304
switch (format) {
sound/pci/asihpi/hpifunc.c
326
fmt.format = format;
sound/pci/asihpi/hpifunc.c
338
switch (format) {
sound/pci/asihpi/hpifunc.c
359
switch (format) {
sound/pci/asihpi/hpifunc.c
390
switch (pF->format) {
sound/pci/asihpi/hpifunc.c
510
hpi_format_to_msg(&hm.u.d.u.data.format, p_format);
sound/pci/asihpi/hpifunc.c
597
hpi_format_to_msg(&hm.u.d.u.data.format, p_format);
sound/pci/asihpi/hpifunc.c
614
hpi_format_to_msg(&hm.u.d.u.data.format, p_format);
sound/pci/asihpi/hpifunc.c
665
hm.u.d.u.data.format.channels = mode;
sound/pci/asihpi/hpifunc.c
69
pMF->format = pF->format;
sound/pci/asihpi/hpifunc.c
79
pF->format = pMF->format;
sound/pci/asihpi/hpifunc.c
899
hpi_format_to_msg(&hm.u.d.u.data.format, p_format);
sound/pci/asihpi/hpifunc.c
915
hpi_format_to_msg(&hm.u.d.u.data.format, p_format);
sound/pci/atiixp.c
872
substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ?
sound/pci/atiixp.c
913
substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ?
sound/pci/atiixp.c
932
substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ?
sound/pci/au88x0/au88x0_pcm.c
315
fmt = vortex_alsafmt_aspfmt(runtime->format, chip);
sound/pci/azt3328.c
1425
snd_pcm_format_width(runtime->format),
sound/pci/azt3328.c
1458
snd_pcm_format_width(runtime->format),
sound/pci/bt87x.c
473
if (runtime->format == SNDRV_PCM_FORMAT_S8)
sound/pci/ca0106/ca0106_main.c
731
channel, runtime->rate, runtime->format,
sound/pci/ca0106/ca0106_main.c
769
switch (runtime->format) {
sound/pci/ca0106/ca0106_main.c
838
channel, runtime->rate, runtime->format,
sound/pci/ca0106/ca0106_main.c
871
switch (runtime->format) {
sound/pci/cmipci.c
1192
if (snd_pcm_format_width(subs->runtime->format) > 16) {
sound/pci/cmipci.c
1261
substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE &&
sound/pci/cmipci.c
1377
if (snd_pcm_format_width(substream->runtime->format) > 16)
sound/pci/cmipci.c
756
if (snd_pcm_format_width(runtime->format) >= 16) {
sound/pci/cmipci.c
758
if (snd_pcm_format_width(runtime->format) > 16)
sound/pci/cs4281.c
722
if (snd_pcm_format_unsigned(runtime->format) > 0)
sound/pci/cs4281.c
724
if (snd_pcm_format_big_endian(runtime->format) > 0)
sound/pci/cs4281.c
726
switch (snd_pcm_format_width(runtime->format)) {
sound/pci/cs46xx/cs46xx_lib.c
1203
if (snd_pcm_format_width(runtime->format) == 8) {
sound/pci/cs46xx/cs46xx_lib.c
1208
if (snd_pcm_format_unsigned(runtime->format))
sound/pci/cs46xx/cs46xx_lib.c
1212
if (snd_pcm_format_width(runtime->format) != 8) {
sound/pci/cs46xx/cs46xx_lib.c
1214
if (snd_pcm_format_big_endian(runtime->format))
sound/pci/ctxfi/ctatc.c
274
src->ops->set_sf(src, convert_format(apcm->substream->runtime->format,
sound/pci/ctxfi/ctatc.c
747
src->ops->set_sf(src, convert_format(apcm->substream->runtime->format,
sound/pci/ctxfi/ctatc.c
817
src->ops->set_sf(src, convert_format(apcm->substream->runtime->format,
sound/pci/echoaudio/echoaudio.c
676
struct audioformat format;
sound/pci/echoaudio/echoaudio.c
680
runtime->rate, runtime->format, runtime->channels);
sound/pci/echoaudio/echoaudio.c
681
format.interleave = runtime->channels;
sound/pci/echoaudio/echoaudio.c
682
format.data_are_bigendian = 0;
sound/pci/echoaudio/echoaudio.c
683
format.mono_to_stereo = 0;
sound/pci/echoaudio/echoaudio.c
684
switch (runtime->format) {
sound/pci/echoaudio/echoaudio.c
686
format.bits_per_sample = 8;
sound/pci/echoaudio/echoaudio.c
689
format.bits_per_sample = 16;
sound/pci/echoaudio/echoaudio.c
692
format.bits_per_sample = 24;
sound/pci/echoaudio/echoaudio.c
695
format.data_are_bigendian = 1;
sound/pci/echoaudio/echoaudio.c
698
format.bits_per_sample = 32;
sound/pci/echoaudio/echoaudio.c
703
runtime->format);
sound/pci/echoaudio/echoaudio.c
720
set_audio_format(chip, pipe_index, &format);
sound/pci/echoaudio/echoaudio_dsp.c
767
const struct audioformat *format)
sound/pci/echoaudio/echoaudio_dsp.c
774
if (format->interleave > 2) {
sound/pci/echoaudio/echoaudio_dsp.c
775
switch (format->bits_per_sample) {
sound/pci/echoaudio/echoaudio_dsp.c
786
dsp_format |= format->interleave;
sound/pci/echoaudio/echoaudio_dsp.c
787
} else if (format->data_are_bigendian) {
sound/pci/echoaudio/echoaudio_dsp.c
789
switch (format->interleave) {
sound/pci/echoaudio/echoaudio_dsp.c
799
} else if (format->interleave == 1 &&
sound/pci/echoaudio/echoaudio_dsp.c
800
format->bits_per_sample == 32 && !format->mono_to_stereo) {
sound/pci/echoaudio/echoaudio_dsp.c
805
switch (format->bits_per_sample) {
sound/pci/echoaudio/echoaudio_dsp.c
807
if (format->interleave == 2)
sound/pci/echoaudio/echoaudio_dsp.c
814
if (format->interleave == 2)
sound/pci/echoaudio/echoaudio_dsp.c
820
if (format->interleave == 2)
sound/pci/echoaudio/echoaudio_dsp.c
826
if (format->interleave == 2)
sound/pci/emu10k1/emupcm.c
423
bool w_16 = snd_pcm_format_width(runtime->format) == 16;
sound/pci/emu10k1/emupcm.c
726
bool w_16 = snd_pcm_format_width(runtime->format) == 16;
sound/pci/emu10k1/p16v.c
251
channel, runtime->rate, runtime->format, runtime->channels,
sound/pci/ens1370.c
855
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/ens1370.c
903
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/ens1370.c
943
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/es1938.c
609
is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
sound/pci/es1938.c
610
u = snd_pcm_format_unsigned(runtime->format);
sound/pci/es1938.c
657
is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
sound/pci/es1938.c
658
u = snd_pcm_format_unsigned(runtime->format);
sound/pci/es1938.c
694
is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
sound/pci/es1938.c
695
u = snd_pcm_format_unsigned(runtime->format);
sound/pci/es1968.c
1170
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/fm801.c
466
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/fm801.c
497
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/ice1712/ice1712.c
556
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/ice1712/ice1712.c
587
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/ice1712/ice1712.c
622
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/lola/lola.h
239
unsigned int format;
sound/pci/lola/lola_clock.c
160
int format = LOLA_CLOCK_FORMAT_NONE;
sound/pci/lola/lola_clock.c
177
format = LOLA_CLOCK_FORMAT_NTSC;
sound/pci/lola/lola_clock.c
179
format = LOLA_CLOCK_FORMAT_PAL;
sound/pci/lola/lola_clock.c
185
sc->format = format;
sound/pci/lola/lola_pcm.c
366
switch (substream->runtime->format) {
sound/pci/lx6464es/lx_core.c
656
if (snd_pcm_format_little_endian(runtime->format))
sound/pci/maestro3.c
1237
snd_pcm_format_width(runtime->format) == 16 ? 0 : 1);
sound/pci/maestro3.c
1407
if (runtime->format != SNDRV_PCM_FORMAT_U8 &&
sound/pci/maestro3.c
1408
runtime->format != SNDRV_PCM_FORMAT_S16_LE)
sound/pci/mixart/mixart.c
503
static int mixart_set_format(struct mixart_stream *stream, snd_pcm_format_t format)
sound/pci/mixart/mixart.c
522
switch(format){
sound/pci/mixart/mixart.c
596
snd_pcm_format_t format;
sound/pci/mixart/mixart.c
604
format = params_format(hw);
sound/pci/mixart/mixart.c
620
err = mixart_set_format(stream, format);
sound/pci/mixart/mixart_core.h
314
u32 format;
sound/pci/nm256/nm256.c
419
if (snd_pcm_format_width(runtime->format) == 16) {
sound/pci/pcxhr/pcxhr.c
550
switch (stream->format) {
sound/pci/pcxhr/pcxhr.c
939
stream->format = params_format(hw);
sound/pci/pcxhr/pcxhr.h
127
snd_pcm_format_t format;
sound/pci/riptide/riptide.c
1004
unsigned char channels, snd_pcm_format_t format)
sound/pci/riptide/riptide.c
1010
__func__, mixer, id, channels, format);
sound/pci/riptide/riptide.c
1012
w = snd_pcm_format_width(format) == 8;
sound/pci/riptide/riptide.c
1013
sig = snd_pcm_format_unsigned(format) != 0;
sound/pci/riptide/riptide.c
1014
order = snd_pcm_format_big_endian(format) != 0;
sound/pci/riptide/riptide.c
1449
snd_pcm_format_t format;
sound/pci/riptide/riptide.c
1455
runtime->channels, runtime->format, runtime->rate);
sound/pci/riptide/riptide.c
1459
format = runtime->format;
sound/pci/riptide/riptide.c
1463
if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE)
sound/pci/riptide/riptide.c
1469
if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE)
sound/pci/riptide/riptide.c
1525
if (data->rate != rate || data->format != format ||
sound/pci/riptide/riptide.c
1528
data->format = format;
sound/pci/riptide/riptide.c
1531
(cif, data->mixer, data->id, channels, format)
sound/pci/riptide/riptide.c
473
snd_pcm_format_t format;
sound/pci/rme32.c
618
static int snd_rme32_setformat(struct rme32 *rme32, snd_pcm_format_t format)
sound/pci/rme32.c
620
switch (format) {
sound/pci/rme96.c
901
snd_rme96_playback_setformat(struct rme96 *rme96, snd_pcm_format_t format)
sound/pci/rme96.c
903
switch (format) {
sound/pci/rme96.c
918
snd_rme96_capture_setformat(struct rme96 *rme96, snd_pcm_format_t format)
sound/pci/rme96.c
920
switch (format) {
sound/pci/rme9652/hdspm.c
6157
ltc.format = fps_24;
sound/pci/rme9652/hdspm.c
6160
ltc.format = fps_25;
sound/pci/rme9652/hdspm.c
6163
ltc.format = fps_2997;
sound/pci/rme9652/hdspm.c
6166
ltc.format = fps_30;
sound/pci/rme9652/hdspm.c
6175
ltc.format = format_invalid;
sound/pci/sis7019.c
493
u32 format, dma_addr, control, sso_eso, delta, reg;
sound/pci/sis7019.c
499
format = 0;
sound/pci/sis7019.c
500
if (snd_pcm_format_width(runtime->format) == 8)
sound/pci/sis7019.c
501
format |= SIS_PLAY_DMA_FORMAT_8BIT;
sound/pci/sis7019.c
502
if (!snd_pcm_format_signed(runtime->format))
sound/pci/sis7019.c
503
format |= SIS_PLAY_DMA_FORMAT_UNSIGNED;
sound/pci/sis7019.c
505
format |= SIS_PLAY_DMA_FORMAT_MONO;
sound/pci/sis7019.c
532
writel(format, ctrl_base + SIS_PLAY_DMA_FORMAT_CSO);
sound/pci/sis7019.c
691
u32 format, control, sso_eso, delta;
sound/pci/sis7019.c
698
buffer_size /= snd_pcm_format_size(runtime->format, 1);
sound/pci/sis7019.c
754
format = 0;
sound/pci/sis7019.c
755
if (snd_pcm_format_width(runtime->format) == 8)
sound/pci/sis7019.c
756
format = SIS_CAPTURE_DMA_FORMAT_8BIT;
sound/pci/sis7019.c
758
format |= SIS_CAPTURE_DMA_FORMAT_MONO;
sound/pci/sis7019.c
769
writel(format, play_base + SIS_PLAY_DMA_FORMAT_CSO);
sound/pci/sis7019.c
790
u32 format, dma_addr, control;
sound/pci/sis7019.c
796
format = 0;
sound/pci/sis7019.c
797
if (snd_pcm_format_width(runtime->format) == 8)
sound/pci/sis7019.c
798
format = SIS_CAPTURE_DMA_FORMAT_8BIT;
sound/pci/sis7019.c
799
if (!snd_pcm_format_signed(runtime->format))
sound/pci/sis7019.c
800
format |= SIS_CAPTURE_DMA_FORMAT_UNSIGNED;
sound/pci/sis7019.c
802
format |= SIS_CAPTURE_DMA_FORMAT_MONO;
sound/pci/sis7019.c
820
writel(format, rec_base + SIS_CAPTURE_DMA_FORMAT_CSO);
sound/pci/sonicvibes.c
200
unsigned char format;
sound/pci/sonicvibes.c
449
sonic->format = inb(SV_REG(sonic, DATA));
sound/pci/sonicvibes.c
452
sonic->format = (sonic->format & mask) | value;
sound/pci/sonicvibes.c
453
outb(sonic->format, SV_REG(sonic, DATA));
sound/pci/sonicvibes.c
678
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/sonicvibes.c
702
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/trident/trident_main.c
1033
if (snd_pcm_format_width(runtime->format) == 16) {
sound/pci/trident/trident_main.c
1045
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/trident/trident_main.c
1047
if (snd_pcm_format_signed(runtime->format))
sound/pci/trident/trident_main.c
751
if (snd_pcm_format_width(runtime->format) == 16)
sound/pci/trident/trident_main.c
753
if (snd_pcm_format_signed(runtime->format))
sound/pci/via82xx.c
1039
outl((runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA8233_REG_TYPE_16BIT : 0) | /* format */
sound/pci/via82xx.c
1069
fmt = (runtime->format == SNDRV_PCM_FORMAT_S16_LE) ?
sound/pci/via82xx.c
1113
outl((runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA8233_REG_TYPE_16BIT : 0) |
sound/pci/via82xx.c
957
(runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA_REG_TYPE_16BIT : 0) |
sound/pci/ymfpci/ymfpci.h
173
__le32 format;
sound/pci/ymfpci/ymfpci_main.c
464
u32 format;
sound/pci/ymfpci/ymfpci_main.c
492
format = runtime->channels == 2 ? 0x00010000 : 0;
sound/pci/ymfpci/ymfpci_main.c
493
if (snd_pcm_format_width(runtime->format) == 8)
sound/pci/ymfpci/ymfpci_main.c
494
format |= 0x80000000;
sound/pci/ymfpci/ymfpci_main.c
501
format |= 0x10000000;
sound/pci/ymfpci/ymfpci_main.c
504
(format & 0x10000000) == 0) {
sound/pci/ymfpci/ymfpci_main.c
509
format |= 1;
sound/pci/ymfpci/ymfpci_main.c
514
bank->format = cpu_to_le32(format);
sound/pci/ymfpci/ymfpci_main.c
674
u32 rate, format;
sound/pci/ymfpci/ymfpci_main.c
682
format = 0;
sound/pci/ymfpci/ymfpci_main.c
684
format |= 2;
sound/pci/ymfpci/ymfpci_main.c
687
if (snd_pcm_format_width(runtime->format) == 8)
sound/pci/ymfpci/ymfpci_main.c
688
format |= 1;
sound/pci/ymfpci/ymfpci_main.c
693
snd_ymfpci_writel(chip, YDSXGR_RECFORMAT, format);
sound/pci/ymfpci/ymfpci_main.c
697
snd_ymfpci_writel(chip, YDSXGR_ADCFORMAT, format);
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
101
chip->pcm_swab = snd_pcm_format_big_endian(runtime->format) > 0;
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
106
if (snd_pcm_format_unsigned(runtime->format))
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
114
switch (runtime->format) {
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
124
switch (runtime->format) {
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
99
chip->pcm_little = snd_pcm_format_little_endian(runtime->format) > 0;
sound/ppc/pmac.c
145
out_le32(&chip->awacs->byteswap, chip->format == SNDRV_PCM_FORMAT_S16_LE ? 1 : 0);
sound/ppc/pmac.c
199
astr->cur_formats = 1 << runtime->format;
sound/ppc/pmac.c
201
chip->format = runtime->format;
sound/ppc/pmac.h
113
int format; /* current format */
sound/ppc/snd_ps3.c
446
snd_pcm_format_width(substream->runtime->format));
sound/ppc/snd_ps3.c
472
switch (snd_pcm_format_width(substream->runtime->format)) {
sound/ppc/snd_ps3.c
481
snd_pcm_format_width(substream->runtime->format));
sound/ppc/snd_ps3.c
543
ret = snd_pcm_format_size(substream->runtime->format,
sound/ppc/snd_ps3.c
551
snd_pcm_format_size(substream->runtime->format, rate),
sound/sh/aica.c
376
if ((substream->runtime)->format == SNDRV_PCM_FORMAT_S16_LE)
sound/soc/amd/acp/acp-mach-common.c
232
unsigned int fmt, srate, ch, format;
sound/soc/amd/acp/acp-mach-common.c
236
format = params_physical_width(params);
sound/soc/amd/acp/acp-mach-common.c
308
ret = snd_soc_dai_set_bclk_ratio(codec_dai, ch * format);
sound/soc/amd/acp/acp-mach-common.c
315
ret = acp_clk_enable(drvdata, srate, ch * format);
sound/soc/amd/acp/acp-mach-common.c
436
unsigned int fmt, srate, ch, format;
sound/soc/amd/acp/acp-mach-common.c
440
format = params_physical_width(params);
sound/soc/amd/acp/acp-mach-common.c
512
ret = snd_soc_dai_set_bclk_ratio(codec_dai, ch * format);
sound/soc/amd/acp/acp-mach-common.c
519
clk_set_rate(drvdata->bclk, srate * ch * format);
sound/soc/amd/acp/acp-mach-common.c
521
ret = acp_clk_enable(drvdata, srate, ch * format);
sound/soc/amd/acp/acp-mach-common.c
630
unsigned int fmt, srate, ch, format;
sound/soc/amd/acp/acp-mach-common.c
634
format = params_physical_width(params);
sound/soc/amd/acp/acp-mach-common.c
672
TDM_CHANNELS * format * srate, 256 * srate);
sound/soc/amd/acp/acp-mach-common.c
675
ch * format * srate, 256 * srate);
sound/soc/amd/acp/acp-mach-common.c
714
ret = acp_clk_enable(drvdata, srate, ch * format);
sound/soc/amd/acp/acp-mach-common.c
794
unsigned int fmt, srate, ch, format;
sound/soc/amd/acp/acp-mach-common.c
799
format = params_physical_width(params);
sound/soc/amd/acp/acp-mach-common.c
829
ret = acp_clk_enable(drvdata, srate, ch * format);
sound/soc/bcm/bcm2835-i2s.c
339
unsigned int mode, format;
sound/soc/bcm/bcm2835-i2s.c
431
format = BCM2835_I2S_CHEN;
sound/soc/bcm/bcm2835-i2s.c
434
format |= BCM2835_I2S_CHWEX;
sound/soc/bcm/bcm2835-i2s.c
436
format |= BCM2835_I2S_CHWID((data_length-8)&0xf);
sound/soc/bcm/bcm2835-i2s.c
439
format = BCM2835_I2S_CH1(format) | BCM2835_I2S_CH2(format);
sound/soc/bcm/bcm2835-i2s.c
517
format
sound/soc/bcm/bcm2835-i2s.c
521
format
sound/soc/codecs/ak4104.c
62
unsigned int format)
sound/soc/codecs/ak4104.c
70
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/ak4104.c
85
if ((format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) != SND_SOC_DAIFMT_CBC_CFC)
sound/soc/codecs/ak4118.c
154
unsigned int format)
sound/soc/codecs/ak4118.c
158
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/ak4118.c
176
unsigned int format)
sound/soc/codecs/ak4118.c
180
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/ak4118.c
196
unsigned int format)
sound/soc/codecs/ak4118.c
203
switch (format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
sound/soc/codecs/ak4118.c
205
dif = ak4118_set_dai_fmt_provider(ak4118, format);
sound/soc/codecs/ak4118.c
208
dif = ak4118_set_dai_fmt_consumer(ak4118, format);
sound/soc/codecs/ak4458.c
350
u8 format, dsdsel0, dsdsel1, dchn;
sound/soc/codecs/ak4458.c
407
format = AK4458_DIF_24BIT_I2S;
sound/soc/codecs/ak4458.c
409
format = AK4458_DIF_16BIT_LSB;
sound/soc/codecs/ak4458.c
414
format = AK4458_DIF_32BIT_I2S;
sound/soc/codecs/ak4458.c
417
format = AK4458_DIF_32BIT_MSB;
sound/soc/codecs/ak4458.c
420
format = AK4458_DIF_32BIT_LSB;
sound/soc/codecs/ak4458.c
423
format = AK4458_DIF_32BIT_MSB;
sound/soc/codecs/ak4458.c
426
format = AK4458_DIF_32BIT_MSB;
sound/soc/codecs/ak4458.c
437
AK4458_DIF_MASK, format);
sound/soc/codecs/ak4613.c
529
static int ak4613_dai_set_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/ak4613.c
535
fmt = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/ak4613.c
545
fmt = format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK;
sound/soc/codecs/ak4671.c
518
u8 format;
sound/soc/codecs/ak4671.c
535
format = snd_soc_component_read(component, AK4671_FORMAT_SELECT);
sound/soc/codecs/ak4671.c
536
format &= ~AK4671_DIF;
sound/soc/codecs/ak4671.c
540
format |= AK4671_DIF_I2S_MODE;
sound/soc/codecs/ak4671.c
543
format |= AK4671_DIF_MSB_MODE;
sound/soc/codecs/ak4671.c
546
format |= AK4671_DIF_DSP_MODE;
sound/soc/codecs/ak4671.c
547
format |= AK4671_BCKP;
sound/soc/codecs/ak4671.c
548
format |= AK4671_MSBS;
sound/soc/codecs/ak4671.c
556
snd_soc_component_write(component, AK4671_FORMAT_SELECT, format);
sound/soc/codecs/ak5386.c
84
unsigned int format)
sound/soc/codecs/ak5386.c
88
format &= SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/ak5386.c
89
if (format != SND_SOC_DAIFMT_LEFT_J &&
sound/soc/codecs/ak5386.c
90
format != SND_SOC_DAIFMT_I2S) {
sound/soc/codecs/ak5558.c
199
u8 format;
sound/soc/codecs/ak5558.c
216
format = AK5558_DIF_I2S_MODE;
sound/soc/codecs/ak5558.c
219
format = AK5558_DIF_MSB_MODE;
sound/soc/codecs/ak5558.c
222
format = AK5558_DIF_MSB_MODE;
sound/soc/codecs/ak5558.c
228
snd_soc_component_update_bits(component, AK5558_02_CONTROL1, AK5558_DIF, format);
sound/soc/codecs/cs4234.c
288
static int cs4234_dai_set_fmt(struct snd_soc_dai *codec_dai, unsigned int format)
sound/soc/codecs/cs4234.c
294
cs4234->format = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/cs4234.c
295
switch (cs4234->format) {
sound/soc/codecs/cs4234.c
310
switch (format & SND_SOC_DAIFMT_MASTER_MASK) {
sound/soc/codecs/cs4234.c
314
if (cs4234->format == SND_SOC_DAIFMT_DSP_A) {
sound/soc/codecs/cs4234.c
325
switch (format & SND_SOC_DAIFMT_INV_MASK) {
sound/soc/codecs/cs4234.c
39
unsigned int format;
sound/soc/codecs/cs4234.c
471
switch (cs4234->format) {
sound/soc/codecs/cs4265.c
33
u8 format;
sound/soc/codecs/cs4265.c
376
cs4265->format = iface;
sound/soc/codecs/cs4265.c
411
((cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK)
sound/soc/codecs/cs4265.c
428
switch (cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/cs4270.c
272
unsigned int format)
sound/soc/codecs/cs4270.c
278
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/cs4270.c
281
cs4270->mode = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/cs4270.c
289
switch (format & SND_SOC_DAIFMT_MASTER_MASK) {
sound/soc/codecs/cs4271.c
206
unsigned int format)
sound/soc/codecs/cs4271.c
213
switch (format & SND_SOC_DAIFMT_MASTER_MASK) {
sound/soc/codecs/cs4271.c
226
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/cs42l51.c
308
unsigned int format)
sound/soc/codecs/cs42l51.c
313
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/cs42l51.c
317
cs42l51->audio_mode = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/cs42l51.c
324
switch (format & SND_SOC_DAIFMT_MASTER_MASK) {
sound/soc/codecs/cs42l52.c
1058
cs42l52->config.format = CS42L52_DEFAULT_FORMAT;
sound/soc/codecs/cs42l52.c
34
u8 spc, format, spfs;
sound/soc/codecs/cs42l52.c
800
cs42l52->config.format = iface;
sound/soc/codecs/cs42l52.c
801
snd_soc_component_write(component, CS42L52_IFACE_CTL1, cs42l52->config.format);
sound/soc/codecs/cs42l73.c
946
unsigned int inv, format;
sound/soc/codecs/cs42l73.c
965
format = (fmt & SND_SOC_DAIFMT_FORMAT_MASK);
sound/soc/codecs/cs42l73.c
968
switch (format) {
sound/soc/codecs/cs42l73.c
993
switch (format) {
sound/soc/codecs/cs42xx8.c
214
unsigned int format)
sound/soc/codecs/cs42xx8.c
221
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/cs42xx8.c
244
switch (format & SND_SOC_DAIFMT_MASTER_MASK) {
sound/soc/codecs/cs4341.c
46
static int cs4341_set_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/cs4341.c
51
switch (format & SND_SOC_DAIFMT_MASTER_MASK) {
sound/soc/codecs/cs4341.c
58
switch (format & SND_SOC_DAIFMT_INV_MASK) {
sound/soc/codecs/cs4341.c
65
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/cs4341.c
69
cs4341->fmt = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/cs4349.c
71
unsigned int format)
sound/soc/codecs/cs4349.c
77
fmt = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/cs4349.c
83
cs4349->mode = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/framer-codec.c
116
snd_pcm_format_t format;
sound/soc/codecs/framer-codec.c
127
pcm_for_each_format(format) {
sound/soc/codecs/framer-codec.c
128
if (snd_mask_test_format(f_old, format)) {
sound/soc/codecs/framer-codec.c
129
if (snd_pcm_format_physical_width(format) <= slot_width)
sound/soc/codecs/framer-codec.c
130
snd_mask_set_format(&f_new, format);
sound/soc/codecs/framer-codec.c
159
snd_pcm_format_t format;
sound/soc/codecs/framer-codec.c
167
pcm_for_each_format(format) {
sound/soc/codecs/framer-codec.c
169
format_width = snd_pcm_format_physical_width(format);
sound/soc/codecs/framer-codec.c
180
formats_mask |= pcm_format_to_bits(format);
sound/soc/codecs/framer-codec.c
192
u64 format;
sound/soc/codecs/framer-codec.c
196
format = framer_formats(framer->max_chan_capture);
sound/soc/codecs/framer-codec.c
201
format = framer_formats(framer->max_chan_playback);
sound/soc/codecs/framer-codec.c
208
SNDRV_PCM_HW_PARAM_FORMAT, format);
sound/soc/codecs/framer-codec.c
74
snd_pcm_format_t format = params_format(params);
sound/soc/codecs/framer-codec.c
78
width = snd_pcm_format_physical_width(format);
sound/soc/codecs/hda-dai.c
78
unsigned int format;
sound/soc/codecs/hda-dai.c
86
bits = snd_hdac_stream_format_bits(runtime->format, runtime->subformat,
sound/soc/codecs/hda-dai.c
88
format = snd_hdac_stream_format(runtime->channels, bits, runtime->rate);
sound/soc/codecs/hda-dai.c
90
ret = snd_hda_codec_prepare(codec, stream_info, stream->stream_tag, format, substream);
sound/soc/codecs/hdac_hdmi.c
105
int format;
sound/soc/codecs/hdac_hdmi.c
471
int format;
sound/soc/codecs/hdac_hdmi.c
477
format = snd_hdac_stream_format(params_channels(hparams), bits, params_rate(hparams));
sound/soc/codecs/hdac_hdmi.c
483
pcm->format = format;
sound/soc/codecs/hdac_hdmi.c
845
AC_VERB_SET_STREAM_FORMAT, pcm->format);
sound/soc/codecs/hdmi-codec.c
614
unsigned int width = snd_pcm_format_width(runtime->format);
sound/soc/codecs/hdmi-codec.c
638
cf->bit_fmt = runtime->format;
sound/soc/codecs/max98373-i2c.c
125
unsigned int format = 0;
sound/soc/codecs/max98373-i2c.c
149
format = MAX98373_PCM_FORMAT_I2S;
sound/soc/codecs/max98373-i2c.c
152
format = MAX98373_PCM_FORMAT_LJ;
sound/soc/codecs/max98373-i2c.c
155
format = MAX98373_PCM_FORMAT_TDM_MODE1;
sound/soc/codecs/max98373-i2c.c
158
format = MAX98373_PCM_FORMAT_TDM_MODE0;
sound/soc/codecs/max98373-i2c.c
167
format << MAX98373_PCM_MODE_CFG_FORMAT_SHIFT);
sound/soc/codecs/max98388.c
467
unsigned int format = 0;
sound/soc/codecs/max98388.c
491
format = MAX98388_PCM_FORMAT_I2S;
sound/soc/codecs/max98388.c
494
format = MAX98388_PCM_FORMAT_LJ;
sound/soc/codecs/max98388.c
497
format = MAX98388_PCM_FORMAT_TDM_MODE1;
sound/soc/codecs/max98388.c
500
format = MAX98388_PCM_FORMAT_TDM_MODE0;
sound/soc/codecs/max98388.c
509
format << MAX98388_PCM_MODE_CFG_FORMAT_SHIFT);
sound/soc/codecs/max98390.c
169
unsigned int format;
sound/soc/codecs/max98390.c
211
format = MAX98390_PCM_FORMAT_I2S;
sound/soc/codecs/max98390.c
214
format = MAX98390_PCM_FORMAT_LJ;
sound/soc/codecs/max98390.c
217
format = MAX98390_PCM_FORMAT_TDM_MODE1;
sound/soc/codecs/max98390.c
220
format = MAX98390_PCM_FORMAT_TDM_MODE0;
sound/soc/codecs/max98390.c
229
format << MAX98390_PCM_MODE_CFG_FORMAT_SHIFT);
sound/soc/codecs/max98396.c
351
unsigned int format_mask, format = 0;
sound/soc/codecs/max98396.c
366
format = MAX98396_PCM_MODE_CFG_LRCLKEDGE;
sound/soc/codecs/max98396.c
373
format = MAX98396_PCM_MODE_CFG_LRCLKEDGE;
sound/soc/codecs/max98396.c
385
format |= MAX98396_PCM_FORMAT_I2S;
sound/soc/codecs/max98396.c
388
format |= MAX98396_PCM_FORMAT_LJ;
sound/soc/codecs/max98396.c
391
format |= MAX98396_PCM_FORMAT_TDM_MODE1;
sound/soc/codecs/max98396.c
394
format |= MAX98396_PCM_FORMAT_TDM_MODE0;
sound/soc/codecs/max98396.c
410
if (format != (reg & format_mask)) {
sound/soc/codecs/max98396.c
427
format_mask, format);
sound/soc/codecs/max98520.c
102
format = MAX98520_PCM_FORMAT_LJ;
sound/soc/codecs/max98520.c
105
format = MAX98520_PCM_FORMAT_TDM_MODE1;
sound/soc/codecs/max98520.c
108
format = MAX98520_PCM_FORMAT_TDM_MODE0;
sound/soc/codecs/max98520.c
117
format << MAX98520_PCM_MODE_CFG_FORMAT_SHIFT);
sound/soc/codecs/max98520.c
75
unsigned int format = 0;
sound/soc/codecs/max98520.c
99
format = MAX98520_PCM_FORMAT_I2S;
sound/soc/codecs/max98927.c
143
unsigned int format = 0;
sound/soc/codecs/max98927.c
183
format = MAX98927_PCM_FORMAT_I2S;
sound/soc/codecs/max98927.c
186
format = MAX98927_PCM_FORMAT_LJ;
sound/soc/codecs/max98927.c
189
format = MAX98927_PCM_FORMAT_TDM_MODE1;
sound/soc/codecs/max98927.c
192
format = MAX98927_PCM_FORMAT_TDM_MODE0;
sound/soc/codecs/max98927.c
211
format << MAX98927_PCM_MODE_CFG_FORMAT_SHIFT);
sound/soc/codecs/ntp8835.c
327
switch (ntp8835->format) {
sound/soc/codecs/ntp8835.c
380
ntp8835->format = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/ntp8835.c
66
unsigned int format;
sound/soc/codecs/ntp8918.c
239
switch (ntp8918->format) {
sound/soc/codecs/ntp8918.c
292
ntp8918->format = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/ntp8918.c
62
unsigned int format;
sound/soc/codecs/pcm1681.c
131
unsigned int format)
sound/soc/codecs/pcm1681.c
137
if ((format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) != SND_SOC_DAIFMT_CBC_CFC) {
sound/soc/codecs/pcm1681.c
142
priv->format = format;
sound/soc/codecs/pcm1681.c
171
switch (priv->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/pcm1681.c
72
unsigned int format;
sound/soc/codecs/pcm1754.c
17
unsigned int format;
sound/soc/codecs/pcm1754.c
23
unsigned int format)
sound/soc/codecs/pcm1754.c
28
priv->format = format;
sound/soc/codecs/pcm1754.c
39
int format;
sound/soc/codecs/pcm1754.c
41
switch (priv->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/pcm1754.c
45
format = 1;
sound/soc/codecs/pcm1754.c
56
format = 0;
sound/soc/codecs/pcm1754.c
67
gpiod_set_value_cansleep(priv->gpiod_format, format);
sound/soc/codecs/pcm1789.c
28
unsigned int format;
sound/soc/codecs/pcm1789.c
53
unsigned int format)
sound/soc/codecs/pcm1789.c
58
priv->format = format;
sound/soc/codecs/pcm1789.c
83
switch (priv->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/pcm179x.c
103
switch (priv->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/pcm179x.c
64
unsigned int format;
sound/soc/codecs/pcm179x.c
69
unsigned int format)
sound/soc/codecs/pcm179x.c
74
priv->format = format;
sound/soc/codecs/pcm186x.c
267
snd_pcm_format_t format = params_format(params);
sound/soc/codecs/pcm186x.c
276
__func__, rate, format, width, channels);
sound/soc/codecs/pcm186x.c
357
static int pcm186x_set_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/pcm186x.c
364
dev_dbg(component->dev, "%s() format=0x%x\n", __func__, format);
sound/soc/codecs/pcm186x.c
366
switch (format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
sound/soc/codecs/pcm186x.c
384
switch (format & SND_SOC_DAIFMT_INV_MASK) {
sound/soc/codecs/pcm186x.c
393
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/pcm3168a.c
333
if (io_params->format == SND_SOC_DAIFMT_RIGHT_J) {
sound/soc/codecs/pcm3168a.c
354
static int pcm3168a_set_dai_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/pcm3168a.c
361
switch (format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/pcm3168a.c
373
switch (format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
sound/soc/codecs/pcm3168a.c
385
switch (format & SND_SOC_DAIFMT_INV_MASK) {
sound/soc/codecs/pcm3168a.c
393
io_params->format = format & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/pcm3168a.c
443
unsigned int format;
sound/soc/codecs/pcm3168a.c
481
format = io_params->format;
sound/soc/codecs/pcm3168a.c
490
if (provider_mode || (format != SND_SOC_DAIFMT_RIGHT_J)) {
sound/soc/codecs/pcm3168a.c
496
if (!provider_mode && ((format == SND_SOC_DAIFMT_DSP_A) ||
sound/soc/codecs/pcm3168a.c
497
(format == SND_SOC_DAIFMT_DSP_B))) {
sound/soc/codecs/pcm3168a.c
51
unsigned int format;
sound/soc/codecs/pcm3168a.c
525
switch (format) {
sound/soc/codecs/pcm3168a.c
538
switch (format) {
sound/soc/codecs/rt1011.c
1268
unsigned int r0_integer, r0_factor, format;
sound/soc/codecs/rt1011.c
1280
format = 2147483648U; /* 2^24 * 128 */
sound/soc/codecs/rt1011.c
1281
r0_integer = format / rt1011->r0_reg / 128;
sound/soc/codecs/rt1011.c
1282
r0_factor = ((format / rt1011->r0_reg * 100) / 128)
sound/soc/codecs/rt1011.c
2214
unsigned int r0_integer, r0_factor, format;
sound/soc/codecs/rt1011.c
2320
format = 2147483648U; /* 2^24 * 128 */
sound/soc/codecs/rt1011.c
2321
r0_integer = format / r0[0] / 128;
sound/soc/codecs/rt1011.c
2322
r0_factor = ((format / r0[0] * 100) / 128)
sound/soc/codecs/rt1011.c
2373
unsigned int r0_integer, r0_factor, format;
sound/soc/codecs/rt1011.c
2401
format = 2147483648U; /* 2^24 * 128 */
sound/soc/codecs/rt1011.c
2402
r0_integer = format / rt1011->r0_reg / 128;
sound/soc/codecs/rt1011.c
2403
r0_factor = ((format / rt1011->r0_reg * 100) / 128)
sound/soc/codecs/rt1318.c
1193
unsigned int format = 16777216; /* 2^24 */
sound/soc/codecs/rt1318.c
1200
r0_l_integer = format / r0_l;
sound/soc/codecs/rt1318.c
1201
r0_l_factor = (format * 10) / r0_l - r0_l_integer * 10;
sound/soc/codecs/rt1318.c
1208
r0_r_integer = format / r0_r;
sound/soc/codecs/rt1318.c
1209
r0_r_factor = (format * 10) / r0_r - r0_r_integer * 10;
sound/soc/codecs/rt9120.c
206
unsigned int format;
sound/soc/codecs/rt9120.c
210
format = RT9120_CFG_FMT_I2S;
sound/soc/codecs/rt9120.c
213
format = RT9120_CFG_FMT_LEFTJ;
sound/soc/codecs/rt9120.c
216
format = RT9120_CFG_FMT_RIGHTJ;
sound/soc/codecs/rt9120.c
219
format = RT9120_CFG_FMT_DSPA;
sound/soc/codecs/rt9120.c
222
format = RT9120_CFG_FMT_DSPB;
sound/soc/codecs/rt9120.c
231
format << RT9120_I2SFMT_SHIFT);
sound/soc/codecs/si476x.c
102
format |= SI476X_DAUDIO_MODE_IB;
sound/soc/codecs/si476x.c
115
format |= SI476X_DAUDIO_MODE_IB |
sound/soc/codecs/si476x.c
119
format |= SI476X_DAUDIO_MODE_IB;
sound/soc/codecs/si476x.c
122
format |= SI476X_DAUDIO_MODE_IF;
sound/soc/codecs/si476x.c
136
format);
sound/soc/codecs/si476x.c
70
u16 format = 0;
sound/soc/codecs/si476x.c
77
format |= SI476X_DAUDIO_MODE_DSP_A;
sound/soc/codecs/si476x.c
80
format |= SI476X_DAUDIO_MODE_DSP_B;
sound/soc/codecs/si476x.c
83
format |= SI476X_DAUDIO_MODE_I2S;
sound/soc/codecs/si476x.c
86
format |= SI476X_DAUDIO_MODE_RIGHT_J;
sound/soc/codecs/si476x.c
89
format |= SI476X_DAUDIO_MODE_LEFT_J;
sound/soc/codecs/sma1303.c
1086
switch (sma1303->format) {
sound/soc/codecs/sma1303.c
1266
sma1303->format = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/sma1303.c
73
unsigned int format;
sound/soc/codecs/sma1303.c
981
if (sma1303->format == SND_SOC_DAIFMT_DSP_A)
sound/soc/codecs/sma1307.c
1169
if (sma1307->format == SND_SOC_DAIFMT_DSP_A)
sound/soc/codecs/sma1307.c
1252
switch (sma1307->format) {
sound/soc/codecs/sma1307.c
1376
sma1307->format = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/sma1307.c
1952
sma1307->format = SND_SOC_DAIFMT_I2S;
sound/soc/codecs/sma1307.c
71
unsigned int format;
sound/soc/codecs/sta32x.c
144
unsigned int format;
sound/soc/codecs/sta32x.c
614
sta32x->format = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/sta32x.c
699
switch (sta32x->format) {
sound/soc/codecs/sta32x.c
714
switch (sta32x->format) {
sound/soc/codecs/sta32x.c
729
switch (sta32x->format) {
sound/soc/codecs/sta32x.c
744
switch (sta32x->format) {
sound/soc/codecs/sta350.c
167
unsigned int format;
sound/soc/codecs/sta350.c
643
sta350->format = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/sta350.c
728
switch (sta350->format) {
sound/soc/codecs/sta350.c
743
switch (sta350->format) {
sound/soc/codecs/sta350.c
758
switch (sta350->format) {
sound/soc/codecs/sta350.c
773
switch (sta350->format) {
sound/soc/codecs/tas5086.c
241
unsigned int format;
sound/soc/codecs/tas5086.c
314
unsigned int format)
sound/soc/codecs/tas5086.c
320
if ((format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) != SND_SOC_DAIFMT_CBC_CFC) {
sound/soc/codecs/tas5086.c
326
priv->format = format;
sound/soc/codecs/tas5086.c
406
switch (priv->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/tas571x.c
265
static int tas571x_set_dai_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/tas571x.c
269
priv->format = format;
sound/soc/codecs/tas571x.c
281
switch (priv->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/codecs/tas571x.c
50
unsigned int format;
sound/soc/codecs/tlv320adc3xxx.c
1304
u8 clkdir = 0, format = 0;
sound/soc/codecs/tlv320adc3xxx.c
1327
format = ADC3XXX_FORMAT_I2S;
sound/soc/codecs/tlv320adc3xxx.c
1330
format = ADC3XXX_FORMAT_DSP;
sound/soc/codecs/tlv320adc3xxx.c
1333
format = ADC3XXX_FORMAT_DSP;
sound/soc/codecs/tlv320adc3xxx.c
1336
format = ADC3XXX_FORMAT_RJF;
sound/soc/codecs/tlv320adc3xxx.c
1339
format = ADC3XXX_FORMAT_LJF;
sound/soc/codecs/tlv320adc3xxx.c
1359
clkdir | format);
sound/soc/codecs/tlv320dac33.c
1032
if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE)
sound/soc/codecs/tlv320dac33.c
890
switch (substream->runtime->format) {
sound/soc/codecs/tlv320dac33.c
900
substream->runtime->format);
sound/soc/codecs/tscs42xx.c
812
snd_pcm_format_t format)
sound/soc/codecs/tscs42xx.c
817
switch (format) {
sound/soc/codecs/tscs454.c
3113
snd_pcm_format_t format,
sound/soc/codecs/tscs454.c
3120
switch (snd_pcm_format_width(format)) {
sound/soc/codecs/twl4030.c
1699
u8 mode, old_mode, format, old_format;
sound/soc/codecs/twl4030.c
1703
format = twl4030_read(component, TWL4030_REG_AUDIO_IF);
sound/soc/codecs/twl4030.c
1709
((format & TWL4030_AIF_FORMAT) == TWL4030_AIF_FORMAT_TDM))
sound/soc/codecs/twl4030.c
1763
format = old_format;
sound/soc/codecs/twl4030.c
1764
format &= ~TWL4030_DATA_WIDTH;
sound/soc/codecs/twl4030.c
1767
format |= TWL4030_DATA_WIDTH_16S_16W;
sound/soc/codecs/twl4030.c
1770
format |= TWL4030_DATA_WIDTH_32S_24W;
sound/soc/codecs/twl4030.c
1778
if (format != old_format || mode != old_mode) {
sound/soc/codecs/twl4030.c
1786
twl4030_write(component, TWL4030_REG_AUDIO_IF, format);
sound/soc/codecs/twl4030.c
1790
twl4030_write(component, TWL4030_REG_AUDIO_IF, format);
sound/soc/codecs/twl4030.c
1841
u8 old_format, format;
sound/soc/codecs/twl4030.c
1845
format = old_format;
sound/soc/codecs/twl4030.c
1849
format &= ~(TWL4030_AIF_SLAVE_EN);
sound/soc/codecs/twl4030.c
1850
format &= ~(TWL4030_CLK256FS_EN);
sound/soc/codecs/twl4030.c
1853
format |= TWL4030_AIF_SLAVE_EN;
sound/soc/codecs/twl4030.c
1854
format |= TWL4030_CLK256FS_EN;
sound/soc/codecs/twl4030.c
1861
format &= ~TWL4030_AIF_FORMAT;
sound/soc/codecs/twl4030.c
1864
format |= TWL4030_AIF_FORMAT_CODEC;
sound/soc/codecs/twl4030.c
1867
format |= TWL4030_AIF_FORMAT_TDM;
sound/soc/codecs/twl4030.c
1873
if (format != old_format) {
sound/soc/codecs/twl4030.c
1880
twl4030_write(component, TWL4030_REG_AUDIO_IF, format);
sound/soc/codecs/twl4030.c
1883
twl4030_write(component, TWL4030_REG_AUDIO_IF, format);
sound/soc/codecs/twl4030.c
2038
u8 old_format, format;
sound/soc/codecs/twl4030.c
2042
format = old_format;
sound/soc/codecs/twl4030.c
2046
format &= ~(TWL4030_VIF_SLAVE_EN);
sound/soc/codecs/twl4030.c
2049
format |= TWL4030_VIF_SLAVE_EN;
sound/soc/codecs/twl4030.c
2058
format &= ~(TWL4030_VIF_FORMAT);
sound/soc/codecs/twl4030.c
2061
format |= TWL4030_VIF_FORMAT;
sound/soc/codecs/twl4030.c
2067
if (format != old_format) {
sound/soc/codecs/twl4030.c
2074
twl4030_write(component, TWL4030_REG_VOICE_IF, format);
sound/soc/codecs/twl4030.c
2077
twl4030_write(component, TWL4030_REG_VOICE_IF, format);
sound/soc/codecs/wm8804.c
218
u16 format, master, bcp, lrp;
sound/soc/codecs/wm8804.c
224
format = 0x2;
sound/soc/codecs/wm8804.c
227
format = 0x0;
sound/soc/codecs/wm8804.c
230
format = 0x1;
sound/soc/codecs/wm8804.c
234
format = 0x3;
sound/soc/codecs/wm8804.c
242
snd_soc_component_update_bits(component, WM8804_AIFTX, 0x3, format);
sound/soc/codecs/wm8804.c
243
snd_soc_component_update_bits(component, WM8804_AIFRX, 0x3, format);
sound/soc/codecs/wm8983.c
572
u16 format, master, bcp, lrp;
sound/soc/codecs/wm8983.c
576
format = 0x2;
sound/soc/codecs/wm8983.c
579
format = 0x0;
sound/soc/codecs/wm8983.c
582
format = 0x1;
sound/soc/codecs/wm8983.c
586
format = 0x3;
sound/soc/codecs/wm8983.c
594
WM8983_FMT_MASK, format << WM8983_FMT_SHIFT);
sound/soc/codecs/wm8985.c
664
u16 format, master, bcp, lrp;
sound/soc/codecs/wm8985.c
670
format = 0x2;
sound/soc/codecs/wm8985.c
673
format = 0x0;
sound/soc/codecs/wm8985.c
676
format = 0x1;
sound/soc/codecs/wm8985.c
680
format = 0x3;
sound/soc/codecs/wm8985.c
688
WM8985_FMT_MASK, format << WM8985_FMT_SHIFT);
sound/soc/codecs/wm_adsp.c
1339
if (!(desc->formats & (1 << params->codec.format)))
sound/soc/codecs/wm_adsp.c
1349
params->codec.sample_rate, params->codec.format);
sound/soc/fsl/fsl_asrc_m2m.c
370
if (pcm_format_to_bits((__force snd_pcm_format_t)params->codec.format) & cap.fmt_in)
sound/soc/fsl/fsl_asrc_m2m.c
371
pair->sample_format[IN] = (__force snd_pcm_format_t)params->codec.format;
sound/soc/fsl/fsl_easrc.c
1455
snd_pcm_format_t format = params_format(params);
sound/soc/fsl/fsl_easrc.c
1472
ctx_priv->in_params.sample_format = format;
sound/soc/fsl/fsl_easrc.c
1477
ctx_priv->out_params.sample_format = format;
sound/soc/fsl/fsl_micfil.c
862
snd_pcm_format_t format = params_format(params);
sound/soc/fsl/fsl_micfil.c
905
if (format == SNDRV_PCM_FORMAT_DSD_U32_LE) {
sound/soc/fsl/fsl_qmc_audio.c
375
snd_pcm_format_t format = params_format(params);
sound/soc/fsl/fsl_qmc_audio.c
378
switch (snd_pcm_format_physical_width(format)) {
sound/soc/fsl/fsl_qmc_audio.c
393
snd_pcm_format_physical_width(format));
sound/soc/fsl/fsl_qmc_audio.c
425
snd_pcm_format_t format;
sound/soc/fsl/fsl_qmc_audio.c
437
pcm_for_each_format(format) {
sound/soc/fsl/fsl_qmc_audio.c
438
if (snd_mask_test_format(f_old, format)) {
sound/soc/fsl/fsl_qmc_audio.c
439
if (snd_pcm_format_physical_width(format) <= slot_width)
sound/soc/fsl/fsl_qmc_audio.c
440
snd_mask_set_format(&f_new, format);
sound/soc/fsl/fsl_qmc_audio.c
703
snd_pcm_format_t format;
sound/soc/fsl/fsl_qmc_audio.c
711
pcm_for_each_format(format) {
sound/soc/fsl/fsl_qmc_audio.c
716
if (snd_pcm_format_little_endian(format) == 1)
sound/soc/fsl/fsl_qmc_audio.c
720
format_width = snd_pcm_format_physical_width(format);
sound/soc/fsl/fsl_qmc_audio.c
738
formats_mask |= pcm_format_to_bits(format);
sound/soc/fsl/imx-card.c
246
snd_pcm_format_t format = params_format(params);
sound/soc/fsl/imx-card.c
248
switch (format) {
sound/soc/fsl/imx-pcm-rpmsg.c
157
msg->s_msg.param.format = RPMSG_S16_LE;
sound/soc/fsl/imx-pcm-rpmsg.c
160
msg->s_msg.param.format = RPMSG_S24_LE;
sound/soc/fsl/imx-pcm-rpmsg.c
163
msg->s_msg.param.format = RPMSG_DSD_U16_LE;
sound/soc/fsl/imx-pcm-rpmsg.c
166
msg->s_msg.param.format = RPMSG_DSD_U32_LE;
sound/soc/fsl/imx-pcm-rpmsg.c
169
msg->s_msg.param.format = RPMSG_S32_LE;
sound/soc/fsl/imx-pcm-rpmsg.h
390
unsigned char format;
sound/soc/fsl/mpc5200_psc_i2s.c
106
static int psc_i2s_set_fmt(struct snd_soc_dai *cpu_dai, unsigned int format)
sound/soc/fsl/mpc5200_psc_i2s.c
110
cpu_dai, format);
sound/soc/fsl/mpc5200_psc_i2s.c
111
return (format == SND_SOC_DAIFMT_I2S) ? 0 : -EINVAL;
sound/soc/generic/test-component.c
66
unsigned int format = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/generic/test-component.c
75
switch (format) {
sound/soc/hisilicon/hi6210-i2s.c
246
i2s->format = fmt;
sound/soc/hisilicon/hi6210-i2s.c
247
i2s->master = (i2s->format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) ==
sound/soc/hisilicon/hi6210-i2s.c
377
switch (i2s->format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
sound/soc/hisilicon/hi6210-i2s.c
395
switch (i2s->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/hisilicon/hi6210-i2s.c
46
int format;
sound/soc/img/img-i2s-in.c
223
snd_pcm_format_t format;
sound/soc/img/img-i2s-in.c
226
format = params_format(params);
sound/soc/img/img-i2s-in.c
230
switch (format) {
sound/soc/img/img-i2s-out.c
221
snd_pcm_format_t format;
sound/soc/img/img-i2s-out.c
224
format = params_format(params);
sound/soc/img/img-i2s-out.c
228
if (format != SNDRV_PCM_FORMAT_S32_LE)
sound/soc/img/img-spdif-in.c
670
snd_pcm_format_t format;
sound/soc/img/img-spdif-in.c
674
format = params_format(params);
sound/soc/img/img-spdif-in.c
676
if (format != SNDRV_PCM_FORMAT_S32_LE)
sound/soc/img/img-spdif-out.c
239
snd_pcm_format_t format;
sound/soc/img/img-spdif-out.c
242
format = params_format(params);
sound/soc/img/img-spdif-out.c
246
rate, channels, format);
sound/soc/img/img-spdif-out.c
248
if (format != SNDRV_PCM_FORMAT_S32_LE)
sound/soc/intel/atom/sst-atom-controls.c
1057
cmd.param.part.cfg.format = ids->format; /* stereo/Mono */
sound/soc/intel/atom/sst-atom-controls.c
807
int format;
sound/soc/intel/atom/sst-atom-controls.c
809
format = fmt & SND_SOC_DAIFMT_INV_MASK;
sound/soc/intel/atom/sst-atom-controls.c
810
dev_dbg(dai->dev, "Enter:%s, format=%x\n", __func__, format);
sound/soc/intel/atom/sst-atom-controls.c
812
switch (format) {
sound/soc/intel/atom/sst-atom-controls.c
820
dev_err(dai->dev, "Invalid frame sync polarity %d\n", format);
sound/soc/intel/atom/sst-atom-controls.c
828
int format;
sound/soc/intel/atom/sst-atom-controls.c
830
format = (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK);
sound/soc/intel/atom/sst-atom-controls.c
831
dev_dbg(dai->dev, "Enter:%s, format=%x\n", __func__, format);
sound/soc/intel/atom/sst-atom-controls.c
833
switch (format) {
sound/soc/intel/atom/sst-atom-controls.c
839
dev_err(dai->dev, "Invalid ssp protocol: %d\n", format);
sound/soc/intel/atom/sst-atom-controls.h
385
u8 format:3;
sound/soc/intel/atom/sst-atom-controls.h
578
u8 format;
sound/soc/intel/atom/sst-atom-controls.h
651
.format = wformat,} \
sound/soc/intel/atom/sst-atom-controls.h
669
#define SST_PATH_MEDIA_LOOP_OUTPUT(name, task_id, loc_id, format, event) \
sound/soc/intel/atom/sst-atom-controls.h
670
SST_PATH_MEDIA_LOOP(name, task_id, loc_id, format, event, SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD)
sound/soc/intel/atom/sst-mfld-platform-compress.c
128
if (params->codec.format == SND_AUDIOSTREAMFORMAT_MP4ADTS)
sound/soc/intel/atom/sst-mfld-platform-compress.c
131
else if (params->codec.format == SND_AUDIOSTREAMFORMAT_RAW)
sound/soc/intel/atom/sst-mfld-platform-compress.c
135
pr_err("Undefined format%d\n", params->codec.format);
sound/soc/intel/avs/pcm.c
768
bits = snd_hdac_stream_format_bits(runtime->format, runtime->subformat,
sound/soc/intel/avs/probes.c
147
bps = snd_pcm_format_physical_width(params->codec.format);
sound/soc/intel/boards/bytcr_rt5640.c
1796
struct acpi_buffer format = {sizeof("NN"), "NN"};
sound/soc/intel/boards/bytcr_rt5640.c
1806
pkg_ctx.format = &format;
sound/soc/intel/boards/bytcr_rt5651.c
364
snd_pcm_format_t format = params_format(params);
sound/soc/intel/boards/bytcr_rt5651.c
368
if (format == SNDRV_PCM_FORMAT_S16_LE)
sound/soc/intel/boards/bytcr_rt5651.c
971
struct acpi_buffer format = {sizeof("NN"), "NN"};
sound/soc/intel/boards/bytcr_rt5651.c
981
pkg_ctx.format = &format;
sound/soc/intel/boards/cht_bsw_rt5645.c
616
struct acpi_buffer format = {sizeof("NN"), "NN"};
sound/soc/intel/boards/cht_bsw_rt5645.c
626
pkg_ctx.format = &format;
sound/soc/jz4740/jz4740-i2s.c
179
unsigned int conf = 0, format = 0;
sound/soc/jz4740/jz4740-i2s.c
184
format |= JZ_AIC_I2S_FMT_ENABLE_SYS_CLK;
sound/soc/jz4740/jz4740-i2s.c
200
format |= JZ_AIC_I2S_FMT_MSB;
sound/soc/jz4740/jz4740-i2s.c
216
regmap_write(i2s->regmap, JZ_REG_AIC_I2S_FMT, format);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
130
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
137
channels, rate, format,
sound/soc/mediatek/common/mtk-afe-fe-dai.c
173
ret = mtk_memif_set_format(afe, id, format);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
176
__func__, id, format, ret);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
529
int id, snd_pcm_format_t format)
sound/soc/mediatek/common/mtk-afe-fe-dai.c
536
switch (format) {
sound/soc/mediatek/common/mtk-afe-fe-dai.c
557
__func__, format);
sound/soc/mediatek/common/mtk-afe-fe-dai.h
48
int id, snd_pcm_format_t format);
sound/soc/mediatek/common/mtk-btcvsd.c
278
if (runtime->format == SNDRV_PCM_FORMAT_S32_LE ||
sound/soc/mediatek/common/mtk-btcvsd.c
279
runtime->format == SNDRV_PCM_FORMAT_U32_LE)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
188
val |= FIELD_PREP(ETDM_FMT_MASK, etdm_data->format);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
317
etdm_data->format = MTK_DAI_ETDM_FORMAT_I2S;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
320
etdm_data->format = MTK_DAI_ETDM_FORMAT_DSPA;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
323
etdm_data->format = MTK_DAI_ETDM_FORMAT_DSPB;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
43
unsigned int format;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
55
static unsigned int get_i2s_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
57
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
706
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
725
i2s_con |= get_i2s_wlen(format) << I2S_WLEN_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
733
i2s_con |= get_i2s_wlen(format) << I2S2_WLEN_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
741
i2s_con |= get_i2s_wlen(format) << I2S3_WLEN_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
748
i2s_con |= get_i2s_wlen(format) << I2S4_WLEN_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
755
i2s_con |= get_i2s_wlen(format) << I2S5_WLEN_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
477
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
491
snd_pcm_format_physical_width(format);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
501
tdm_id, rate, channels, format,
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
517
tdm_con |= get_tdm_lrck_width(format) << LRCK_TDM_WIDTH_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
524
tdm_con |= get_tdm_wlen(format) << WLEN_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
526
tdm_con |= get_tdm_channel_bck(format) << CHANNEL_BCK_CYCLES_SFT;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
577
get_hdmi_wlen(format) << AFE_HDMI_OUT_BIT_WIDTH_SFT);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
72
static unsigned int get_hdmi_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
74
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
78
static unsigned int get_tdm_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
80
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
84
static unsigned int get_tdm_channel_bck(snd_pcm_format_t format)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
86
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
90
static unsigned int get_tdm_lrck_width(snd_pcm_format_t format)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
92
return snd_pcm_format_physical_width(format) - 1;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
54
static unsigned int get_i2s_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
56
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
934
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
939
__func__, i2s_id, rate, format);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
948
i2s_con |= get_i2s_wlen(format) << I2S_WLEN_SFT;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
956
i2s_con |= get_i2s_wlen(format) << I2S2_WLEN_SFT;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
964
i2s_con |= get_i2s_wlen(format) << I2S3_WLEN_SFT;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
971
i2s_con |= get_i2s_wlen(format) << I2S4_WLEN_SFT;
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
227
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
229
snd_pcm_format_width(format);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
231
snd_pcm_format_physical_width(format);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
375
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
377
snd_pcm_format_physical_width(format);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
381
get_tdm_lrck_width(format, tdm_mode);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
59
static unsigned int get_tdm_lrck_width(snd_pcm_format_t format,
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
65
return snd_pcm_format_physical_width(format) - 1;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
100
unsigned int format;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2127
__func__, etdm_data->format, etdm_data->data_mode,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2149
val |= FIELD_PREP(ETDM_CON0_FORMAT_MASK, etdm_data->format);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2332
etdm_data->format = MTK_DAI_ETDM_FORMAT_I2S;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2335
etdm_data->format = MTK_DAI_ETDM_FORMAT_LJ;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2338
etdm_data->format = MTK_DAI_ETDM_FORMAT_RJ;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2341
etdm_data->format = MTK_DAI_ETDM_FORMAT_DSPA;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2344
etdm_data->format = MTK_DAI_ETDM_FORMAT_DSPB;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2407
static unsigned int mtk_dai_get_dptx_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2409
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2422
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2423
int width = snd_pcm_format_physical_width(format);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2439
mtk_dai_get_dptx_wlen(format));
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
144
fmt = pcmif_priv->format;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
252
pcmif_priv->format = MTK_DAI_PCM_FMT_I2S;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
255
pcmif_priv->format = MTK_DAI_PCM_FMT_MODEA;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
258
pcmif_priv->format = MTK_DAI_PCM_FMT_MODEB;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
41
unsigned int format;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1027
get_etdm_lrck_width(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1031
get_etdm_wlen(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1096
get_etdm_lrck_width(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1100
get_etdm_wlen(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1144
get_etdm_lrck_width(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1148
get_etdm_wlen(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1192
get_etdm_lrck_width(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1196
get_etdm_wlen(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1240
get_etdm_lrck_width(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1244
get_etdm_wlen(format) <<
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
140
static unsigned int get_etdm_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
142
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
146
static unsigned int get_etdm_lrck_width(snd_pcm_format_t format)
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
148
if (snd_pcm_format_physical_width(format) <= 1)
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
152
return snd_pcm_format_physical_width(format) - 1;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
955
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
968
__func__, i2s_id, rate, format);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
141
static unsigned int get_dptx_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
143
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
407
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
426
snd_pcm_format_physical_width(format);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
435
tdm_id, rate, channels, format,
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
440
tdm_con |= get_tdm_wlen(format) << WLEN_SFT;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
442
tdm_con |= get_tdm_channel_bck(format) << CHANNEL_BCK_CYCLES_SFT;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
443
tdm_con |= get_tdm_lrck_width(format) << LRCK_TDM_WIDTH_SFT;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
458
get_dptx_wlen(format) << DPTX_16BIT_SFT);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
78
static unsigned int get_tdm_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
80
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
84
static unsigned int get_tdm_channel_bck(snd_pcm_format_t format)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
86
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
90
static unsigned int get_tdm_lrck_width(snd_pcm_format_t format)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
92
return snd_pcm_format_physical_width(format) - 1;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1672
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1677
__func__, i2s_id, rate, format);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1689
i2s_con |= get_i2s_wlen(format) << I2S_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1697
i2s_con |= get_i2s_wlen(format) << I2S2_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1705
i2s_con |= get_i2s_wlen(format) << I2S3_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1712
i2s_con |= get_i2s_wlen(format) << I2S4_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1719
i2s_con |= get_i2s_wlen(format) << I2S5_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1726
i2s_con |= get_i2s_wlen(format) << I2S6_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1733
i2s_con |= get_i2s_wlen(format) << I2S7_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1740
i2s_con |= get_i2s_wlen(format) << I2S8_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1747
i2s_con |= get_i2s_wlen(format) << I2S9_WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
55
static unsigned int get_i2s_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
57
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
526
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
540
snd_pcm_format_physical_width(format);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
550
tdm_id, rate, channels, format,
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
567
tdm_con |= get_tdm_lrck_width(format) << LRCK_TDM_WIDTH_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
577
tdm_con |= get_tdm_wlen(format) << WLEN_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
579
tdm_con |= get_tdm_channel_bck(format) << CHANNEL_BCK_CYCLES_SFT;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
70
static unsigned int get_tdm_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
72
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
76
static unsigned int get_tdm_channel_bck(snd_pcm_format_t format)
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
78
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
82
static unsigned int get_tdm_lrck_width(snd_pcm_format_t format)
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
84
return snd_pcm_format_physical_width(format) - 1;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
109
unsigned int format;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1991
__func__, etdm_data->format, etdm_data->data_mode,
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2013
val |= ETDM_CON0_FORMAT(etdm_data->format);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2241
etdm_data->format = MTK_DAI_ETDM_FORMAT_I2S;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2244
etdm_data->format = MTK_DAI_ETDM_FORMAT_LJ;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2247
etdm_data->format = MTK_DAI_ETDM_FORMAT_RJ;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2250
etdm_data->format = MTK_DAI_ETDM_FORMAT_DSPA;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2253
etdm_data->format = MTK_DAI_ETDM_FORMAT_DSPB;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2344
static unsigned int mtk_dai_get_dptx_wlen(snd_pcm_format_t format)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2346
return snd_pcm_format_physical_width(format) <= 16 ?
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2359
snd_pcm_format_t format = params_format(params);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2360
int width = snd_pcm_format_physical_width(format);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2378
mtk_dai_get_dptx_wlen(format));
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
143
fmt = pcmif_priv->format;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
253
pcmif_priv->format = MTK_DAI_PCM_FMT_I2S;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
256
pcmif_priv->format = MTK_DAI_PCM_FMT_MODEA;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
259
pcmif_priv->format = MTK_DAI_PCM_FMT_MODEB;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
39
unsigned int format;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
678
switch (substream->runtime->format) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
189
int bit_width = snd_pcm_format_width(substream->runtime->format);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
599
int bit_width = snd_pcm_format_width(substream->runtime->format);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
164
pcm_priv->format = MT8365_PCM_FORMAT_I2S;
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
20
unsigned int format;
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
46
unsigned int fmt = pcm_priv->format;
sound/soc/qcom/lpass-cpu.c
140
snd_pcm_format_t format = params_format(params);
sound/soc/qcom/lpass-cpu.c
147
bitwidth = snd_pcm_format_width(format);
sound/soc/qcom/lpass-hdmi.c
23
snd_pcm_format_t format = params_format(params);
sound/soc/qcom/lpass-hdmi.c
37
bitwidth = snd_pcm_format_width(format);
sound/soc/qcom/lpass-platform.c
425
snd_pcm_format_t format = params_format(params);
sound/soc/qcom/lpass-platform.c
437
bitwidth = snd_pcm_format_width(format);
sound/soc/qcom/qdsp6/q6asm.c
1446
uint32_t format, uint16_t bits_per_sample)
sound/soc/qcom/qdsp6/q6asm.c
1471
switch (format) {
sound/soc/qcom/qdsp6/q6asm.c
1477
pr_err("Invalid format[%d]\n", format);
sound/soc/qcom/qdsp6/q6asm.c
1494
uint32_t format, uint16_t bits_per_sample)
sound/soc/qcom/qdsp6/q6asm.c
1496
return __q6asm_open_read(ac, stream_id, format, bits_per_sample);
sound/soc/qcom/qdsp6/q6asm.c
925
uint32_t format, u32 codec_profile,
sound/soc/qcom/qdsp6/q6asm.c
951
switch (format) {
sound/soc/qcom/qdsp6/q6asm.c
986
dev_err(ac->dev, "Invalid format 0x%x\n", format);
sound/soc/qcom/qdsp6/q6asm.h
101
uint32_t format, u32 codec_profile,
sound/soc/qcom/qdsp6/q6asm.h
105
uint32_t format, uint16_t bits_per_sample);
sound/soc/qcom/storm.c
24
snd_pcm_format_t format = params_format(params);
sound/soc/qcom/storm.c
29
bitwidth = snd_pcm_format_width(format);
sound/soc/renesas/rcar/core.c
355
switch (snd_pcm_format_width(runtime->format)) {
sound/soc/renesas/rcar/core.c
420
if (mod == target && snd_pcm_format_width(runtime->format) == 16) {
sound/soc/renesas/rcar/core.c
456
if (snd_pcm_format_width(runtime->format) != 24)
sound/soc/renesas/rcar/dma.c
156
int bits = snd_pcm_format_physical_width(runtime->format);
sound/soc/renesas/rcar/msiof.c
174
int width = snd_pcm_format_width(runtime->format);
sound/soc/renesas/rcar/ssi.c
420
width = snd_pcm_format_width(runtime->format);
sound/soc/renesas/rcar/ssi.c
884
if (snd_pcm_format_width(runtime->format) == 24)
sound/soc/renesas/siu.h
101
snd_pcm_format_t format;
sound/soc/renesas/siu_pcm.c
391
siu_stream->format = rt->format;
sound/soc/renesas/siu_pcm.c
398
siu_stream->format, rt->channels, (int)xfer_cnt);
sound/soc/soc-acpi.c
81
pkg_ctx->format, pkg_ctx->state);
sound/soc/soc-core.c
3357
unsigned int format = 0;
sound/soc/soc-core.c
3393
format |= of_fmt_table[i].val;
sound/soc/soc-core.c
3405
format |= SND_SOC_DAIFMT_CONT;
sound/soc/soc-core.c
3407
format |= SND_SOC_DAIFMT_GATED;
sound/soc/soc-core.c
3422
format |= SND_SOC_DAIFMT_IB_IF;
sound/soc/soc-core.c
3425
format |= SND_SOC_DAIFMT_IB_NF;
sound/soc/soc-core.c
3428
format |= SND_SOC_DAIFMT_NB_IF;
sound/soc/soc-core.c
3435
return format;
sound/soc/soc-dapm.c
4060
runtime->format = params_format(params);
sound/soc/sof/intel/hda-dai-ops.c
247
snd_pcm_format_t format;
sound/soc/sof/intel/hda-dai-ops.c
253
format = params_format(params);
sound/soc/sof/intel/hda-dai-ops.c
256
if (format == SNDRV_PCM_FORMAT_S16_LE) {
sound/soc/sof/intel/hda-dai-ops.c
257
format = SNDRV_PCM_FORMAT_S32_LE;
sound/soc/sof/intel/hda-dai-ops.c
262
bits = snd_hdac_stream_format_bits(format, SNDRV_PCM_SUBFORMAT_STD, width);
sound/soc/sof/intel/hda-dai-ops.c
266
params_rate(params), channels, format);
sound/soc/sof/intel/hda-loader.c
52
hda_cl_prepare(struct device *dev, unsigned int format, unsigned int size,
sound/soc/sof/intel/hda-loader.c
56
return hda_data_stream_prepare(dev, format, size, dmab, persistent_buffer,
sound/soc/sof/intel/hda-sdw-bpt.c
116
format |= (num_channels - 1);
sound/soc/sof/intel/hda-sdw-bpt.c
117
format |= BPT_MULTIPLIER << AC_FMT_MULT_SHIFT;
sound/soc/sof/intel/hda-sdw-bpt.c
119
dev_dbg(dev, "direction %d format_val %#x\n", direction, format);
sound/soc/sof/intel/hda-sdw-bpt.c
121
bpt_stream = hda_data_stream_prepare(dev, format, bpt_num_bytes, dmab_bdl,
sound/soc/sof/intel/hda-sdw-bpt.c
142
snd_hdac_ext_stream_setup(bpt_stream, format);
sound/soc/sof/intel/hda-sdw-bpt.c
99
unsigned int format = HDA_CL_STREAM_FORMAT;
sound/soc/sof/intel/hda-stream.c
1248
hda_data_stream_prepare(struct device *dev, unsigned int format, unsigned int size,
sound/soc/sof/intel/hda-stream.c
1285
hstream->format_val = format;
sound/soc/sof/intel/hda.h
735
struct hdac_ext_stream *hda_cl_prepare(struct device *dev, unsigned int format,
sound/soc/sof/intel/hda.h
909
hda_data_stream_prepare(struct device *dev, unsigned int format, unsigned int size,
sound/soc/sof/ipc3-pcm.c
315
switch (private->dai_config->afe.format) {
sound/soc/sof/ipc3-topology.c
1036
config->format &= ~SOF_DAI_FMT_CLOCK_PROVIDER_MASK;
sound/soc/sof/ipc3-topology.c
1040
config->format |= SOF_DAI_FMT_CBP_CFP;
sound/soc/sof/ipc3-topology.c
1042
config->format |= SOF_DAI_FMT_CBP_CFC;
sound/soc/sof/ipc3-topology.c
1046
config->format |= SOF_DAI_FMT_CBC_CFP;
sound/soc/sof/ipc3-topology.c
1048
config->format |= SOF_DAI_FMT_CBC_CFC;
sound/soc/sof/ipc3-topology.c
1052
config->format &= ~SOF_DAI_FMT_INV_MASK;
sound/soc/sof/ipc3-topology.c
1055
config->format |= SOF_DAI_FMT_IB_IF;
sound/soc/sof/ipc3-topology.c
1057
config->format |= SOF_DAI_FMT_IB_NF;
sound/soc/sof/ipc3-topology.c
1060
config->format |= SOF_DAI_FMT_NB_IF;
sound/soc/sof/ipc3-topology.c
1062
config->format |= SOF_DAI_FMT_NB_NF;
sound/soc/sof/ipc3-topology.c
1099
config->dai_index, config->format,
sound/soc/sof/ipc3-topology.c
1149
config->dai_index, config->format,
sound/soc/sof/ipc3-topology.c
1374
config->afe.rate, config->afe.channels, config->afe.format);
sound/soc/sof/ipc3-topology.c
1432
config[i].dai_index, config[i].format,
sound/soc/sof/ipc3-topology.c
1640
config[i].format = le32_to_cpu(slink->hw_configs[i].fmt);
sound/soc/sof/ipc3-topology.c
271
offsetof(struct sof_ipc_dai_mtk_afe_params, format)},
sound/soc/sof/ipc4-topology.c
3427
struct sof_ipc4_copier_config_set_sink_format format;
sound/soc/sof/ipc4-topology.c
3444
format.sink_id = sroute->src_queue_id;
sound/soc/sof/ipc4-topology.c
3445
memcpy(&format.source_fmt, &src_config->audio_fmt, sizeof(format.source_fmt));
sound/soc/sof/ipc4-topology.c
3456
memcpy(&format.sink_fmt, pin_fmt, sizeof(format.sink_fmt));
sound/soc/sof/ipc4-topology.c
3458
msg.data_size = sizeof(format);
sound/soc/sof/ipc4-topology.c
3459
msg.data_ptr = &format;
sound/soc/spear/spdif_in.c
104
format = params_format(params);
sound/soc/spear/spdif_in.c
105
host->saved_params.format = format;
sound/soc/spear/spdif_in.c
126
spdif_in_format(host, host->saved_params.format);
sound/soc/spear/spdif_in.c
31
u32 format;
sound/soc/spear/spdif_in.c
77
static void spdif_in_format(struct spdif_in_dev *host, u32 format)
sound/soc/spear/spdif_in.c
81
switch (format) {
sound/soc/spear/spdif_in.c
99
u32 format;
sound/soc/sprd/sprd-pcm-compress.c
298
compr_params.format = params->codec.id;
sound/soc/sprd/sprd-pcm-dma.h
30
u32 format;
sound/soc/sti/sti_uniperif.c
184
u64 format;
sound/soc/sti/sti_uniperif.c
188
format = SNDRV_PCM_FMTBIT_S16_LE;
sound/soc/sti/sti_uniperif.c
191
format = SNDRV_PCM_FMTBIT_S32_LE;
sound/soc/sti/sti_uniperif.c
199
maskp->bits[0] &= (u_int32_t)format;
sound/soc/sti/sti_uniperif.c
200
maskp->bits[1] &= (u_int32_t)(format >> 32);
sound/soc/sti/uniperif.h
1394
return (runtime->channels * snd_pcm_format_width(runtime->format) / 8);
sound/soc/sti/uniperif_player.c
327
switch (runtime->format) {
sound/soc/sti/uniperif_player.c
426
slot_width = snd_pcm_format_width(runtime->format);
sound/soc/sti/uniperif_player.c
464
switch (runtime->format) {
sound/soc/sti/uniperif_reader.c
117
switch (runtime->format) {
sound/soc/sti/uniperif_reader.c
91
switch (runtime->format) {
sound/soc/stm/stm32_adfsdm.c
177
snd_pcm_format_t format = priv->substream->runtime->format;
sound/soc/stm/stm32_adfsdm.c
179
if (format == SNDRV_PCM_FORMAT_S16_LE)
sound/soc/stm/stm32_adfsdm.c
187
if (format == SNDRV_PCM_FORMAT_S16_LE)
sound/soc/stm/stm32_adfsdm.c
197
if (format == SNDRV_PCM_FORMAT_S16_LE)
sound/soc/stm/stm32_i2s.c
861
int format = params_width(params);
sound/soc/stm/stm32_i2s.c
866
switch (format) {
sound/soc/stm/stm32_i2s.c
877
dev_err(cpu_dai->dev, "Unexpected format %d", format);
sound/soc/stm/stm32_sai_sub.c
1037
int fs_active, offset, format;
sound/soc/stm/stm32_sai_sub.c
1040
format = sai->fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/stm/stm32_sai_sub.c
1044
if ((format == SND_SOC_DAIFMT_DSP_A) ||
sound/soc/stm/stm32_sai_sub.c
1045
(format == SND_SOC_DAIFMT_DSP_B))
sound/soc/sunxi/sun4i-i2s.c
217
unsigned int format;
sound/soc/sunxi/sun4i-i2s.c
505
switch (i2s->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/sunxi/sun4i-i2s.c
566
switch (i2s->format & SND_SOC_DAIFMT_FORMAT_MASK) {
sound/soc/sunxi/sun4i-i2s.c
957
i2s->format = fmt;
sound/soc/sunxi/sun8i-codec.c
345
u32 dsp_format, format, invert, value;
sound/soc/sunxi/sun8i-codec.c
377
format = 0x0;
sound/soc/sunxi/sun8i-codec.c
380
format = 0x1;
sound/soc/sunxi/sun8i-codec.c
383
format = 0x2;
sound/soc/sunxi/sun8i-codec.c
386
format = 0x3;
sound/soc/sunxi/sun8i-codec.c
390
format = 0x3;
sound/soc/sunxi/sun8i-codec.c
399
if (format != 3)
sound/soc/sunxi/sun8i-codec.c
404
format << SUN8I_AIF_CLK_CTRL_DATA_FMT);
sound/soc/sunxi/sun8i-codec.c
425
if (format == 0x3) {
sound/soc/tegra/tegra210_adx.c
128
snd_pcm_format_t format,
sound/soc/tegra/tegra210_adx.c
140
switch (format) {
sound/soc/tegra/tegra_isomgr_bw.c
49
sample_bytes = snd_pcm_format_width(runtime->format) / 8;
sound/soc/ti/omap-mcbsp.c
1046
switch (format) {
sound/soc/ti/omap-mcbsp.c
923
unsigned int format, div, framesize, master;
sound/soc/ti/omap-mcbsp.c
992
format = mcbsp->fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/ti/omap-mcbsp.c
994
if (channels == 2 && (format == SND_SOC_DAIFMT_I2S ||
sound/soc/ti/omap-mcbsp.c
995
format == SND_SOC_DAIFMT_LEFT_J)) {
sound/soc/xilinx/xlnx_i2s.c
175
u32 format;
sound/soc/xilinx/xlnx_i2s.c
201
format = SNDRV_PCM_FMTBIT_S16_LE;
sound/soc/xilinx/xlnx_i2s.c
204
format = SNDRV_PCM_FMTBIT_S24_LE;
sound/soc/xilinx/xlnx_i2s.c
213
drv_data->dai_drv.playback.formats = format;
sound/soc/xilinx/xlnx_i2s.c
221
drv_data->dai_drv.capture.formats = format;
sound/sparc/amd7930.c
586
if (runtime->format == SNDRV_PCM_FORMAT_A_LAW)
sound/sparc/amd7930.c
615
if (runtime->format == SNDRV_PCM_FORMAT_A_LAW)
sound/sparc/cs4231.c
533
static unsigned char snd_cs4231_get_format(struct snd_cs4231 *chip, int format,
sound/sparc/cs4231.c
539
switch (format) {
sound/sparc/dbri.c
1581
snd_pcm_format_t format, unsigned int channels)
sound/sparc/dbri.c
1596
switch (format) {
sound/sparc/dbri.c
1614
printk(KERN_WARNING "DBRI: Unsupported format %d\n", format);
sound/synth/emux/emux_oss.c
190
snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
sound/synth/emux/emux_oss.c
207
if (format == GUS_PATCH)
sound/synth/emux/emux_oss.c
209
else if (format == SNDRV_OSS_SOUNDFONT_PATCH) {
sound/synth/emux/emux_oss.c
23
static int snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
sound/usb/6fire/pcm.c
216
if (alsa_rt->format == SNDRV_PCM_FORMAT_S24_LE)
sound/usb/6fire/pcm.c
218
else if (alsa_rt->format == SNDRV_PCM_FORMAT_S32_LE)
sound/usb/6fire/pcm.c
254
if (alsa_rt->format == SNDRV_PCM_FORMAT_S32_LE)
sound/usb/6fire/pcm.c
256
else if (alsa_rt->format == SNDRV_PCM_FORMAT_S24_LE)
sound/usb/format.c
138
if (format & BIT(UAC_FORMAT_TYPE_I_PCM8)) {
sound/usb/format.c
146
if (format & BIT(UAC_FORMAT_TYPE_I_IEEE_FLOAT))
sound/usb/format.c
148
if (format & BIT(UAC_FORMAT_TYPE_I_ALAW))
sound/usb/format.c
150
if (format & BIT(UAC_FORMAT_TYPE_I_MULAW))
sound/usb/format.c
152
if (format & ~0x3f) {
sound/usb/format.c
155
fp->iface, fp->altsetting, format);
sound/usb/format.c
33
u64 format, void *_fmt)
sound/usb/format.c
43
if (format >= 64) {
sound/usb/format.c
46
fp->iface, fp->altsetting, format);
sound/usb/format.c
47
format = UAC_FORMAT_TYPE_I_PCM;
sound/usb/format.c
51
format = 1ULL << format;
sound/usb/format.c
60
if (format & UAC2_FORMAT_TYPE_I_RAW_DATA) {
sound/usb/format.c
65
format &= ~UAC2_FORMAT_TYPE_I_RAW_DATA;
sound/usb/format.c
68
format <<= 1;
sound/usb/format.c
723
struct audioformat *fp, u64 format,
sound/usb/format.c
765
fp->formats = parse_audio_format_i_type(chip, fp, format, _fmt);
sound/usb/format.c
77
if (format & UAC3_FORMAT_TYPE_I_RAW_DATA) {
sound/usb/format.c
80
format &= ~UAC3_FORMAT_TYPE_I_RAW_DATA;
sound/usb/format.c
807
u64 format, void *_fmt)
sound/usb/format.c
811
switch (format) {
sound/usb/format.c
823
fp->iface, fp->altsetting, format);
sound/usb/format.c
83
format <<= 1;
sound/usb/format.c
856
struct audioformat *fp, u64 format,
sound/usb/format.c
865
err = parse_audio_format_i(chip, fp, format, fmt);
sound/usb/format.c
868
err = parse_audio_format_ii(chip, fp, format, fmt);
sound/usb/format.c
902
u64 format = le64_to_cpu(as->bmFormats);
sound/usb/format.c
909
if (format & 0x7f)
sound/usb/format.c
914
err = parse_audio_format_i(chip, fp, format, as);
sound/usb/format.c
92
(format == 0 || format == BIT(UAC_FORMAT_TYPE_I_UNDEFINED))) {
sound/usb/format.c
96
format = BIT(UAC_FORMAT_TYPE_I_PCM);
sound/usb/format.c
98
if (format & BIT(UAC_FORMAT_TYPE_I_PCM)) {
sound/usb/format.h
6
struct audioformat *fp, u64 format,
sound/usb/hiface/pcm.c
262
WARN_ON(alsa_rt->format != SNDRV_PCM_FORMAT_S32_LE);
sound/usb/mixer_quirks.c
3573
static const char *const format[] = {
sound/usb/mixer_quirks.c
3578
ARRAY_SIZE(format), format);
sound/usb/mixer_scarlett2.c
7068
const char * const format =
sound/usb/mixer_scarlett2.c
7086
scnprintf(name, sizeof(name), format,
sound/usb/pcm.c
101
if (!(fp->formats & pcm_format_to_bits(format)))
sound/usb/pcm.c
152
snd_usb_find_format(struct list_head *fmt_list_head, snd_pcm_format_t format,
sound/usb/pcm.c
156
return find_format(fmt_list_head, format, rate, channels, strict_match,
sound/usb/pcm.c
91
find_format(struct list_head *fmt_list_head, snd_pcm_format_t format,
sound/usb/pcm.h
19
snd_usb_find_format(struct list_head *fmt_list_head, snd_pcm_format_t format,
sound/usb/stream.c
727
u64 format;
sound/usb/stream.c
752
format = le16_to_cpu(as->wFormatTag); /* remember the format value */
sound/usb/stream.c
783
format = le32_to_cpu(as->bmFormats);
sound/usb/stream.c
856
if (snd_usb_parse_audio_format(chip, fp, format,
sound/usb/usx2y/usbusx2y.h
64
format;
sound/usb/usx2y/usbusx2yaudio.c
716
static int usx2y_format_set(struct usx2ydev *usx2y, snd_pcm_format_t format)
sound/usb/usx2y/usbusx2yaudio.c
721
if (format == SNDRV_PCM_FORMAT_S24_3LE) {
sound/usb/usx2y/usbusx2yaudio.c
743
usx2y->format = format;
sound/usb/usx2y/usbusx2yaudio.c
753
snd_pcm_format_t format = params_format(hw_params);
sound/usb/usx2y/usbusx2yaudio.c
773
if ((test_substream->runtime->format &&
sound/usb/usx2y/usbusx2yaudio.c
774
test_substream->runtime->format != format) ||
sound/usb/usx2y/usbusx2yaudio.c
836
if (usx2y->format != runtime->format) {
sound/usb/usx2y/usbusx2yaudio.c
837
err = usx2y_format_set(usx2y, runtime->format);
sound/usb/usx2y/usx2yhwdeppcm.c
520
if (usx2y->format != runtime->format) {
sound/usb/usx2y/usx2yhwdeppcm.c
521
err = usx2y_format_set(usx2y, runtime->format);
sound/virtio/virtio_pcm_ops.c
157
snd_pcm_format_t format,
sound/virtio/virtio_pcm_ops.c
167
if (g_a2v_format_map[i].alsa_bit == format) {
sound/virtio/virtio_pcm_ops.c
192
request->format = vformat;
sound/virtio/virtio_pcm_ops.c
293
runtime->format, runtime->rate);
sound/x86/intel_hdmi_audio.c
323
switch (substream->runtime->format) {
sound/x86/intel_hdmi_audio.c
368
if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE)
sound/x86/intel_hdmi_audio.c
371
if (substream->runtime->format == SNDRV_PCM_FORMAT_S32_LE)
sound/x86/intel_hdmi_lpe_audio.h
139
u32 format:3;
sound/x86/intel_hdmi_lpe_audio.h
292
u32 format:8;
sound/xen/xen_snd_front.c
85
u8 format, unsigned int channels,
sound/xen/xen_snd_front.c
96
req->op.open.pcm_format = format;
sound/xen/xen_snd_front.h
39
u8 format, unsigned int channels,
sound/xen/xen_snd_front_alsa.c
175
static int to_sndif_format(snd_pcm_format_t format)
sound/xen/xen_snd_front_alsa.c
180
if (ALSA_SNDIF_FORMATS[i].alsa == format)
sound/xen/xen_snd_front_alsa.c
515
ret = to_sndif_format(runtime->format);
sound/xen/xen_snd_front_alsa.c
519
runtime->format);
tools/arch/x86/include/uapi/asm/kvm.h
540
__u16 format;
tools/bpf/bpf_dbg.c
87
__attribute__ ((format (printf, (pos_fmtstr), (pos_fmtargs))))
tools/bpf/bpftool/common.c
807
const char *format, va_list args)
tools/bpf/bpftool/common.c
809
return vfprintf(stderr, format, args);
tools/bpf/bpftool/main.h
257
const char *format, va_list args);
tools/bpf/bpftool/pids.c
94
__maybe_unused const char *format,
tools/bpf/bpftool/tracelog.c
65
char type[100], format[32];
tools/bpf/bpftool/tracelog.c
79
snprintf(format, sizeof(format), "%%*s %%%zus %%99s %%*s %%*d %%*d\\n",
tools/bpf/bpftool/tracelog.c
81
while (fscanf(fp, format, mnt, type) == 2)
tools/build/feature/test-cplus-demangle.c
2
extern int printf(const char *format, ...);
tools/build/feature/test-jvmti.c
9
jvmtiJlocationFormat format __attribute__((unused));
tools/build/feature/test-libbfd.c
4
extern int printf(const char *format, ...);
tools/include/asm/bug.h
10
#define WARN(condition, format...) ({ \
tools/include/asm/bug.h
13
__WARN_printf(format); \
tools/include/asm/bug.h
36
#define WARN_ONCE(condition, format...) ({ \
tools/include/asm/bug.h
41
if (WARN(!__warned, format)) \
tools/include/linux/compiler-gcc.h
41
#define __printf(a, b) __attribute__((format(printf, a, b)))
tools/include/linux/compiler-gcc.h
42
#define __scanf(a, b) __attribute__((format(scanf, a, b)))
tools/include/nolibc/stdio.h
301
static __attribute__((unused, format(printf, 4, 0)))
tools/include/nolibc/stdio.h
440
static __attribute__((unused, format(printf, 2, 0)))
tools/include/nolibc/stdio.h
446
static __attribute__((unused, format(printf, 1, 0)))
tools/include/nolibc/stdio.h
452
static __attribute__((unused, format(printf, 2, 3)))
tools/include/nolibc/stdio.h
464
static __attribute__((unused, format(printf, 1, 2)))
tools/include/nolibc/stdio.h
476
static __attribute__((unused, format(printf, 2, 0)))
tools/include/nolibc/stdio.h
488
static __attribute__((unused, format(printf, 2, 3)))
tools/include/nolibc/stdio.h
510
static __attribute__((unused, format(printf, 3, 0)))
tools/include/nolibc/stdio.h
523
static __attribute__((unused, format(printf, 3, 4)))
tools/include/nolibc/stdio.h
536
static __attribute__((unused, format(printf, 2, 0)))
tools/include/nolibc/stdio.h
542
static __attribute__((unused, format(printf, 2, 3)))
tools/include/nolibc/stdio.h
556
int vsscanf(const char *str, const char *format, va_list args)
tools/include/nolibc/stdio.h
568
if (*format == '%') {
tools/include/nolibc/stdio.h
571
format++;
tools/include/nolibc/stdio.h
573
if (*format == 'l') {
tools/include/nolibc/stdio.h
576
format++;
tools/include/nolibc/stdio.h
577
if (*format == 'l') {
tools/include/nolibc/stdio.h
579
format++;
tools/include/nolibc/stdio.h
583
if (*format == '%') {
tools/include/nolibc/stdio.h
588
format++;
tools/include/nolibc/stdio.h
590
} else if (*format == 'd') {
tools/include/nolibc/stdio.h
598
} else if (*format == 'u' || *format == 'x' || *format == 'X') {
tools/include/nolibc/stdio.h
599
base = *format == 'u' ? 10 : 16;
tools/include/nolibc/stdio.h
607
} else if (*format == 'p') {
tools/include/nolibc/stdio.h
614
format++;
tools/include/nolibc/stdio.h
618
} else if (*format == '\0') {
tools/include/nolibc/stdio.h
620
} else if (isspace(*format)) {
tools/include/nolibc/stdio.h
622
while (isspace(*format))
tools/include/nolibc/stdio.h
623
format++;
tools/include/nolibc/stdio.h
626
} else if (*format == *str) {
tools/include/nolibc/stdio.h
628
format++;
tools/include/nolibc/stdio.h
641
static __attribute__((unused, format(scanf, 2, 3)))
tools/include/nolibc/stdio.h
642
int sscanf(const char *str, const char *format, ...)
tools/include/nolibc/stdio.h
647
va_start(args, format);
tools/include/nolibc/stdio.h
648
ret = vsscanf(str, format, args);
tools/lib/api/debug.c
12
va_start(args, format);
tools/lib/api/debug.c
13
err = vfprintf(stderr, format, args);
tools/lib/api/debug.c
7
static int __base_pr(const char *format, ...)
tools/lib/bpf/libbpf.c
233
static int __base_pr(enum libbpf_print_level level, const char *format,
tools/lib/bpf/libbpf.c
262
return vfprintf(stderr, format, args);
tools/lib/bpf/libbpf.c
277
void libbpf_print(enum libbpf_print_level level, const char *format, ...)
tools/lib/bpf/libbpf.c
289
va_start(args, format);
tools/lib/bpf/libbpf.c
290
print_fn(level, format, args);
tools/lib/bpf/libbpf.c
73
#define __printf(a, b) __attribute__((format(printf, a, b)))
tools/lib/bpf/libbpf_internal.h
165
const char *format, ...)
tools/lib/bpf/libbpf_internal.h
166
__attribute__((format(printf, 2, 3)));
tools/lib/perf/core.c
13
static int __base_pr(enum libperf_print_level level __maybe_unused, const char *format,
tools/lib/perf/core.c
16
return vfprintf(stderr, format, args);
tools/lib/perf/core.c
22
void libperf_print(enum libperf_print_level level, const char *format, ...)
tools/lib/perf/core.c
29
va_start(args, format);
tools/lib/perf/core.c
3
#define __printf(a, b) __attribute__((format(printf, a, b)))
tools/lib/perf/core.c
30
__libperf_pr(level, format, args);
tools/lib/perf/internal.h
8
const char *format, ...)
tools/lib/perf/internal.h
9
__attribute__((format(printf, 2, 3)));
tools/lib/subcmd/parse-options.h
184
extern __noreturn __attribute__((format(printf,3,4)))
tools/net/ynl/ynltool/json_writer.h
37
void __attribute__((format(printf, 2, 0))) jsonw_vprintf_enquote(json_writer_t *self,
tools/net/ynl/ynltool/json_writer.h
40
void __attribute__((format(printf, 2, 3))) jsonw_printf(json_writer_t *self,
tools/net/ynl/ynltool/main.h
47
void __attribute__((format(printf, 1, 2))) p_err(const char *fmt, ...);
tools/net/ynl/ynltool/main.h
48
void __attribute__((format(printf, 1, 2))) p_info(const char *fmt, ...);
tools/objtool/disas.c
434
int depth, const char *format, va_list ap)
tools/objtool/disas.c
461
if (format)
tools/objtool/disas.c
462
n += vfprintf(stream, format, ap);
tools/objtool/disas.c
468
int depth, const char *format, ...)
tools/objtool/disas.c
473
va_start(args, format);
tools/objtool/disas.c
474
len = disas_vprint(stream, sec, offset, depth, format, args);
tools/objtool/disas.c
487
const char *format, ...)
tools/objtool/disas.c
501
va_start(args, format);
tools/objtool/disas.c
502
disas_vprint(stream, sec, off, depth, format, args);
tools/objtool/disas.c
512
const char *format, ...)
tools/objtool/disas.c
538
if (!format)
tools/objtool/disas.c
541
if (strcmp(format, "\n") == 0) {
tools/objtool/disas.c
547
va_start(args, format);
tools/objtool/disas.c
548
vfprintf(stream, format, args);
tools/objtool/include/objtool/disas.h
25
const char *format, ...);
tools/objtool/include/objtool/disas.h
28
const char *format, ...);
tools/objtool/include/objtool/disas.h
65
int depth, const char *format, ...) {}
tools/objtool/include/objtool/disas.h
68
const char *format, ...) {}
tools/objtool/include/objtool/util.h
13
ERROR("snprintf() failed for '" format "'", args); \
tools/objtool/include/objtool/util.h
7
#define snprintf_check(str, size, format, args...) \
tools/objtool/include/objtool/util.h
9
int __ret = snprintf(str, size, format, args); \
tools/objtool/include/objtool/warn.h
106
#define ERROR(format, ...) __WARN(ERROR_STR, format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
107
#define ERROR_ELF(format, ...) __WARN_ELF(ERROR_STR, format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
108
#define ERROR_GLIBC(format, ...) __WARN_GLIBC(ERROR_STR, format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
109
#define ERROR_FUNC(sec, offset, format, ...) __WARN_FUNC(ERROR_STR, sec, offset, format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
110
#define ERROR_INSN(insn, format, ...) ERROR_FUNC(insn->sec, insn->offset, format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
126
#define __dbg(format, ...) \
tools/objtool/include/objtool/warn.h
128
"DEBUG: %s%s" format "\n", \
tools/objtool/include/objtool/warn.h
139
#define __dbg_indent(format, ...) \
tools/objtool/include/objtool/warn.h
142
__dbg("%*s" format, indent * 8, "", ##__VA_ARGS__); \
tools/objtool/include/objtool/warn.h
45
#define ___WARN(severity, extra, format, ...) \
tools/objtool/include/objtool/warn.h
47
"%s%s%s: objtool" extra ": " format "\n", \
tools/objtool/include/objtool/warn.h
53
#define __WARN(severity, format, ...) \
tools/objtool/include/objtool/warn.h
54
___WARN(severity, "", format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
56
#define __WARN_LINE(severity, format, ...) \
tools/objtool/include/objtool/warn.h
57
___WARN(severity, " [%s:%d]", format, __FILE__, __LINE__, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
59
#define __WARN_ELF(severity, format, ...) \
tools/objtool/include/objtool/warn.h
60
__WARN_LINE(severity, "%s: " format " failed: %s", __func__, ##__VA_ARGS__, elf_errmsg(-1))
tools/objtool/include/objtool/warn.h
62
#define __WARN_GLIBC(severity, format, ...) \
tools/objtool/include/objtool/warn.h
63
__WARN_LINE(severity, "%s: " format " failed: %s", __func__, ##__VA_ARGS__, strerror(errno))
tools/objtool/include/objtool/warn.h
65
#define __WARN_FUNC(severity, sec, offset, format, ...) \
tools/objtool/include/objtool/warn.h
68
__WARN(severity, "%s: " format, _str, ##__VA_ARGS__); \
tools/objtool/include/objtool/warn.h
74
#define WARN(format, ...) __WARN(WARN_STR, format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
75
#define WARN_FUNC(sec, offset, format, ...) __WARN_FUNC(WARN_STR, sec, offset, format, ##__VA_ARGS__)
tools/objtool/include/objtool/warn.h
77
#define WARN_INSN(insn, format, ...) \
tools/objtool/include/objtool/warn.h
81
WARN_FUNC(_insn->sec, _insn->offset, format, \
tools/objtool/include/objtool/warn.h
89
#define BT_INSN(insn, format, ...) \
tools/objtool/include/objtool/warn.h
96
_len = snprintf(NULL, 0, " %s: " format, _str, ##__VA_ARGS__); \
tools/objtool/include/objtool/warn.h
98
WARN(" %s: " format " %*s%s", _str, ##__VA_ARGS__, _len, "", _istr); \
tools/perf/bench/pmu-scan.c
108
list_for_each(list, &pmu->format)
tools/perf/bench/pmu-scan.c
64
list_for_each(list, &pmu->format)
tools/perf/builtin-help.c
47
static enum help_format parse_help_format(const char *format)
tools/perf/builtin-help.c
49
if (!strcmp(format, "man"))
tools/perf/builtin-help.c
51
if (!strcmp(format, "info"))
tools/perf/builtin-help.c
53
if (!strcmp(format, "web") || !strcmp(format, "html"))
tools/perf/builtin-help.c
56
pr_err("unrecognized help format '%s'", format);
tools/perf/builtin-kmem.c
1066
const char *format;
tools/perf/builtin-kmem.c
1076
format = " %16llu | %'16llu | %'9d | %5d | %8s | %-*s | %s\n";
tools/perf/builtin-kmem.c
1078
format = " %016llx | %'16llu | %'9d | %5d | %8s | %-*s | %s\n";
tools/perf/builtin-kmem.c
1094
printf(format, (unsigned long long)data->page,
tools/perf/builtin-trace.c
2204
if (syscall__alloc_arg_fmts(sc, sc->tp_format->format.nr_fields - 1))
tools/perf/builtin-trace.c
2207
sc->args = sc->tp_format->format.fields;
tools/perf/builtin-trace.c
2245
syscall_arg_fmt__init_array(fmt, tp_format->format.fields, use_btf);
tools/perf/builtin-trace.c
3190
struct tep_format_field *field = tp_format ? tp_format->format.fields : NULL;
tools/perf/builtin-trace.c
411
et->fmt = calloc(tp_format->format.nr_fields, sizeof(struct syscall_arg_fmt));
tools/perf/builtin-trace.c
4245
for (const struct tep_format_field *field = tp_format->format.fields; field;
tools/perf/builtin-trace.c
5106
if (strcmp(tp_format->format.fields->name, "__syscall_nr") == 0 ||
tools/perf/builtin-trace.c
5107
strcmp(tp_format->format.fields->name, "nr") == 0)
tools/perf/builtin-trace.c
5111
(tp_format->format.nr_fields - skip) * sizeof(*fmt));
tools/perf/jvmti/libjvmti.c
342
jvmtiJlocationFormat format;
tools/perf/jvmti/libjvmti.c
373
ret = (*jvmti)->GetJLocationFormat(jvmti, &format);
tools/perf/jvmti/libjvmti.c
374
if (ret == JVMTI_ERROR_NONE && format == JVMTI_JLOCATION_JVMBCI) {
tools/perf/tests/pmu-events.c
734
if (list_empty(&pmu->format)) {
tools/perf/tests/pmu.c
107
const struct test_format *format = &test_formats[i];
tools/perf/tests/pmu.c
109
if (scnprintf(name, PATH_MAX, "perf-pmu-test/format/%s", format->name) < 0) {
tools/perf/tests/pmu.c
110
pr_err("Failure to set up path for \"%s\"\n", format->name);
tools/perf/tests/pmu.c
119
if (write(file, format->value, strlen(format->value)) < 0) {
tools/perf/ui/browser.c
211
const char *format, ...)
tools/perf/ui/browser.c
217
va_start(args, format);
tools/perf/ui/browser.c
218
err = vasprintf(&text, format, args);
tools/perf/ui/browser.c
222
va_start(args, format);
tools/perf/ui/browser.c
223
ui_helpline__vpush(format, args);
tools/perf/ui/browser.h
68
const char *format, ...);
tools/perf/ui/gtk/util.c
31
static int perf_gtk__error(const char *format, va_list args)
tools/perf/ui/gtk/util.c
37
vasprintf(&msg, format, args) < 0) {
tools/perf/ui/gtk/util.c
39
vfprintf(stderr, format, args);
tools/perf/ui/gtk/util.c
57
static int perf_gtk__warning_info_bar(const char *format, va_list args)
tools/perf/ui/gtk/util.c
62
vasprintf(&msg, format, args) < 0) {
tools/perf/ui/gtk/util.c
64
vfprintf(stderr, format, args);
tools/perf/ui/gtk/util.c
78
static int perf_gtk__warning_statusbar(const char *format, va_list args)
tools/perf/ui/gtk/util.c
83
vasprintf(&msg, format, args) < 0) {
tools/perf/ui/gtk/util.c
85
vfprintf(stderr, format, args);
tools/perf/ui/hist.c
886
struct perf_hpp_fmt *format)
tools/perf/ui/hist.c
888
list_add_tail(&format->list, &list->fields);
tools/perf/ui/hist.c
892
struct perf_hpp_fmt *format)
tools/perf/ui/hist.c
894
list_add_tail(&format->sort_list, &list->sorts);
tools/perf/ui/hist.c
898
struct perf_hpp_fmt *format)
tools/perf/ui/hist.c
900
list_add(&format->sort_list, &list->sorts);
tools/perf/ui/hist.c
903
static void perf_hpp__column_unregister(struct perf_hpp_fmt *format)
tools/perf/ui/hist.c
905
list_del_init(&format->list);
tools/perf/ui/hist.c
906
list_del_init(&format->sort_list);
tools/perf/ui/hist.c
907
fmt_free(format);
tools/perf/ui/tui/helpline.c
30
static int tui_helpline__show(const char *format, va_list ap)
tools/perf/ui/tui/helpline.c
37
sizeof(ui_helpline__last_msg) - backlog, format, ap);
tools/perf/ui/tui/util.c
244
static int __ui__warning(const char *title, const char *format, va_list args)
tools/perf/ui/tui/util.c
248
if (vasprintf(&s, format, args) > 0) {
tools/perf/ui/tui/util.c
257
vfprintf(stderr, format, args);
tools/perf/ui/tui/util.c
261
static int perf_tui__error(const char *format, va_list args)
tools/perf/ui/tui/util.c
263
return __ui__warning("Error:", format, args);
tools/perf/ui/tui/util.c
266
static int perf_tui__warning(const char *format, va_list args)
tools/perf/ui/tui/util.c
268
return __ui__warning("Warning:", format, args);
tools/perf/ui/util.c
12
vfprintf(stderr, format, args);
tools/perf/ui/util.c
16
static int perf_stdio__warning(const char *format, va_list args)
tools/perf/ui/util.c
22
vfprintf(stderr, format, args);
tools/perf/ui/util.c
35
int ui__error(const char *format, ...)
tools/perf/ui/util.c
40
va_start(args, format);
tools/perf/ui/util.c
41
ret = perf_eops->error(format, args);
tools/perf/ui/util.c
47
int ui__warning(const char *format, ...)
tools/perf/ui/util.c
54
va_start(args, format);
tools/perf/ui/util.c
55
ret = perf_eops->warning(format, args);
tools/perf/ui/util.c
9
static int perf_stdio__error(const char *format, va_list args)
tools/perf/ui/util.h
17
int (*error)(const char *format, va_list args);
tools/perf/ui/util.h
18
int (*warning)(const char *format, va_list args);
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
703
ocsd_dcd_tree_src_t format;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
717
format = (d_params->formatted ? OCSD_TRC_SRC_FRAME_FORMATTED :
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
731
decoder->dcd_tree = ocsd_create_dcd_tree(format, flags);
tools/perf/util/cs-etm.c
111
enum cs_etm_format format;
tools/perf/util/cs-etm.c
301
if (etmq->format == UNFORMATTED)
tools/perf/util/cs-etm.c
3014
enum cs_etm_format format;
tools/perf/util/cs-etm.c
3099
format = (aux_event->flags & PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW) ?
tools/perf/util/cs-etm.c
3101
if (etmq->format != UNSET && format != etmq->format) {
tools/perf/util/cs-etm.c
3105
etmq->format = format;
tools/perf/util/cs-etm.c
3283
if (etmq->format == UNFORMATTED)
tools/perf/util/cs-etm.c
3339
assert(empty || etmq->format != UNSET);
tools/perf/util/cs-etm.c
865
d_params->formatted = etmq->format == FORMATTED;
tools/perf/util/data-convert-bt.c
1081
struct tep_format_field *common_fields = tp_format ? tp_format->format.common_fields : NULL;
tools/perf/util/data-convert-bt.c
1082
struct tep_format_field *fields = tp_format ? tp_format->format.fields : NULL;
tools/perf/util/data-convert-bt.c
437
struct tep_format_field *common_fields = tp_format->format.common_fields;
tools/perf/util/data-convert-bt.c
438
struct tep_format_field *fields = tp_format->format.fields;
tools/perf/util/data-convert-json.c
101
va_start(args, format);
tools/perf/util/data-convert-json.c
102
vfprintf(out, format, args);
tools/perf/util/data-convert-json.c
119
const char *key, const char *format, ...)
tools/perf/util/data-convert-json.c
126
va_start(args, format);
tools/perf/util/data-convert-json.c
127
vfprintf(out, format, args);
tools/perf/util/data-convert-json.c
96
static void output_json_format(FILE *out, bool comma, int depth, const char *format, ...)
tools/perf/util/debug.h
65
int ui__error(const char *format, ...) __printf(1, 2);
tools/perf/util/debug.h
66
int ui__warning(const char *format, ...) __printf(1, 2);
tools/perf/util/debug.h
67
#define ui__warning_once(format, ...) ({ \
tools/perf/util/debug.h
70
ui__warning(format, ##__VA_ARGS__); \
tools/perf/util/evsel.c
1344
struct perf_pmu_format *format = pmu_find_format(&evsel->pmu->format,
tools/perf/util/evsel.c
1349
if (!format)
tools/perf/util/evsel.c
1352
switch (format->value) {
tools/perf/util/evsel.c
1374
pr_err("Unknown format value: %d\n", format->value);
tools/perf/util/evsel.c
1378
if (!format)
tools/perf/util/evsel.c
1385
for_each_set_bit(fbit, format->bits, PERF_PMU_FORMAT_BITS)
tools/perf/util/evsel.c
1390
perf_pmu__format_pack(format->bits, val, vp, /*zero=*/true);
tools/perf/util/evsel.c
1397
struct perf_pmu_format *format = pmu_find_format(&evsel->pmu->format, config_name);
tools/perf/util/evsel.c
1399
if (!format || bitmap_empty(format->bits, PERF_PMU_FORMAT_BITS)) {
tools/perf/util/evsel.c
1405
switch (format->value) {
tools/perf/util/evsel.c
1407
*val = perf_pmu__format_unpack(format->bits,
tools/perf/util/evsel.c
1411
*val = perf_pmu__format_unpack(format->bits,
tools/perf/util/evsel.c
1415
*val = perf_pmu__format_unpack(format->bits,
tools/perf/util/evsel.c
1419
*val = perf_pmu__format_unpack(format->bits,
tools/perf/util/evsel.c
1423
*val = perf_pmu__format_unpack(format->bits,
tools/perf/util/evsel.c
1427
pr_err("Unknown format value: %d\n", format->value);
tools/perf/util/evsel.c
581
struct evsel *evsel__newtp_idx(const char *sys, const char *name, int idx, bool format)
tools/perf/util/evsel.c
610
if (format) {
tools/perf/util/evsel.h
270
struct evsel *evsel__newtp_idx(const char *sys, const char *name, int idx, bool format);
tools/perf/util/evsel_fprintf.c
92
field = tp_format ? tp_format->format.fields : NULL;
tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.c
138
"Format", dw0.format, "Type", dw0.type, "T9", dw0.t9,
tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.c
78
uint32_t format : 2;
tools/perf/util/hist.h
537
struct perf_hpp_fmt *format);
tools/perf/util/hist.h
539
struct perf_hpp_fmt *format);
tools/perf/util/hist.h
541
struct perf_hpp_fmt *format);
tools/perf/util/hist.h
543
static inline void perf_hpp__column_register(struct perf_hpp_fmt *format)
tools/perf/util/hist.h
545
perf_hpp_list__column_register(&perf_hpp_list, format);
tools/perf/util/hist.h
548
static inline void perf_hpp__register_sort_field(struct perf_hpp_fmt *format)
tools/perf/util/hist.h
550
perf_hpp_list__register_sort_field(&perf_hpp_list, format);
tools/perf/util/hist.h
553
static inline void perf_hpp__prepend_sort_field(struct perf_hpp_fmt *format)
tools/perf/util/hist.h
555
perf_hpp_list__prepend_sort_field(&perf_hpp_list, format);
tools/perf/util/hist.h
558
#define perf_hpp_list__for_each_format(_list, format) \
tools/perf/util/hist.h
559
list_for_each_entry(format, &(_list)->fields, list)
tools/perf/util/hist.h
561
#define perf_hpp_list__for_each_format_safe(_list, format, tmp) \
tools/perf/util/hist.h
562
list_for_each_entry_safe(format, tmp, &(_list)->fields, list)
tools/perf/util/hist.h
564
#define perf_hpp_list__for_each_sort_list(_list, format) \
tools/perf/util/hist.h
565
list_for_each_entry(format, &(_list)->sorts, sort_list)
tools/perf/util/hist.h
567
#define perf_hpp_list__for_each_sort_list_safe(_list, format, tmp) \
tools/perf/util/hist.h
568
list_for_each_entry_safe(format, tmp, &(_list)->sorts, sort_list)
tools/perf/util/hist.h
570
#define hists__for_each_format(hists, format) \
tools/perf/util/hist.h
571
perf_hpp_list__for_each_format((hists)->hpp_list, format)
tools/perf/util/hist.h
573
#define hists__for_each_sort_list(hists, format) \
tools/perf/util/hist.h
574
perf_hpp_list__for_each_sort_list((hists)->hpp_list, format)
tools/perf/util/hist.h
614
bool perf_hpp__is_sort_entry(struct perf_hpp_fmt *format);
tools/perf/util/hist.h
615
bool perf_hpp__is_dynamic_entry(struct perf_hpp_fmt *format);
tools/perf/util/hist.h
630
static inline bool perf_hpp__should_skip(struct perf_hpp_fmt *format,
tools/perf/util/hist.h
633
if (format->elide)
tools/perf/util/hist.h
636
if (perf_hpp__is_dynamic_entry(format) &&
tools/perf/util/hist.h
637
!perf_hpp__defined_dynamic_entry(format, hists))
tools/perf/util/hwmon_pmu.c
384
INIT_LIST_HEAD(&hwm->pmu.format);
tools/perf/util/pmu.c
1185
INIT_LIST_HEAD(&pmu->format);
tools/perf/util/pmu.c
125
struct perf_pmu_format *format;
tools/perf/util/pmu.c
127
format = zalloc(sizeof(*format));
tools/perf/util/pmu.c
128
if (!format)
tools/perf/util/pmu.c
1306
INIT_LIST_HEAD(&pmu->format);
tools/perf/util/pmu.c
131
format->name = strdup(name);
tools/perf/util/pmu.c
132
if (!format->name) {
tools/perf/util/pmu.c
1320
struct perf_pmu_format *format;
tools/perf/util/pmu.c
133
free(format);
tools/perf/util/pmu.c
1331
list_for_each_entry(format, &pmu->format, list) {
tools/perf/util/pmu.c
1332
perf_pmu_format__load(pmu, format);
tools/perf/util/pmu.c
1333
if (format->value >= PERF_PMU_FORMAT_VALUE_CONFIG_END) {
tools/perf/util/pmu.c
1336
pmu->name, format->name, format->value);
tools/perf/util/pmu.c
1347
u64 perf_pmu__format_unpack(unsigned long *format, u64 config_val)
tools/perf/util/pmu.c
1353
for_each_set_bit(fmt_bit, format, PERF_PMU_FORMAT_BITS) {
tools/perf/util/pmu.c
136
list_add_tail(&format->list, list);
tools/perf/util/pmu.c
1365
struct perf_pmu_format *format;
tools/perf/util/pmu.c
1367
list_for_each_entry(format, formats, list)
tools/perf/util/pmu.c
1368
if (!strcmp(format->name, name))
tools/perf/util/pmu.c
1369
return format;
tools/perf/util/pmu.c
137
return format;
tools/perf/util/pmu.c
1376
struct perf_pmu_format *format = pmu_find_format(&pmu->format, name);
tools/perf/util/pmu.c
1380
if (!format)
tools/perf/util/pmu.c
1383
for_each_set_bit(fbit, format->bits, PERF_PMU_FORMAT_BITS)
tools/perf/util/pmu.c
1391
struct perf_pmu_format *format = pmu_find_format(&pmu->format, name);
tools/perf/util/pmu.c
1393
if (!format)
tools/perf/util/pmu.c
1396
perf_pmu_format__load(pmu, format);
tools/perf/util/pmu.c
1397
return format->value;
tools/perf/util/pmu.c
1404
void perf_pmu__format_pack(unsigned long *format, __u64 value, __u64 *v,
tools/perf/util/pmu.c
1411
if (!test_bit(fbit, format))
tools/perf/util/pmu.c
1421
static __u64 pmu_format_max_value(const unsigned long *format)
tools/perf/util/pmu.c
1425
w = bitmap_weight(format, PERF_PMU_FORMAT_BITS);
tools/perf/util/pmu.c
143
struct perf_pmu_format *format = vformat;
tools/perf/util/pmu.c
145
format->value = config;
tools/perf/util/pmu.c
146
memcpy(format->bits, bits, sizeof(format->bits));
tools/perf/util/pmu.c
1463
struct perf_pmu_format *format;
tools/perf/util/pmu.c
1472
list_for_each_entry(format, formats, list)
tools/perf/util/pmu.c
1473
if (strbuf_addf(&buf, i++ ? ",%s" : "%s", format->name) < 0)
tools/perf/util/pmu.c
149
static void __perf_pmu_format__load(struct perf_pmu_format *format, FILE *file)
tools/perf/util/pmu.c
1494
struct perf_pmu_format *format;
tools/perf/util/pmu.c
1579
format = pmu_find_format(&pmu->format, term->config);
tools/perf/util/pmu.c
1580
if (!format) {
tools/perf/util/pmu.c
1581
char *pmu_term = pmu_formats_string(&pmu->format);
tools/perf/util/pmu.c
159
ret = perf_pmu_parse(format, scanner);
tools/perf/util/pmu.c
1601
perf_pmu_format__load(pmu, format);
tools/perf/util/pmu.c
1602
switch (format->value) {
tools/perf/util/pmu.c
161
format->loaded = true;
tools/perf/util/pmu.c
1628
bitmap_weight(format->bits, PERF_PMU_FORMAT_BITS) > 1) {
tools/perf/util/pmu.c
164
static void perf_pmu_format__load(const struct perf_pmu *pmu, struct perf_pmu_format *format)
tools/perf/util/pmu.c
1657
max_val = pmu_format_max_value(format->bits);
tools/perf/util/pmu.c
1664
format->name, (unsigned long long)max_val) < 0) {
tools/perf/util/pmu.c
1676
perf_pmu__format_pack(format->bits, val, vp, zero);
tools/perf/util/pmu.c
169
if (format->loaded)
tools/perf/util/pmu.c
1732
if (pmu_find_format(&pmu->format, term->config))
tools/perf/util/pmu.c
175
assert(strlen(path) + strlen(format->name) + 2 < sizeof(path));
tools/perf/util/pmu.c
177
strcat(path, format->name);
tools/perf/util/pmu.c
182
__perf_pmu_format__load(format, file);
tools/perf/util/pmu.c
1961
struct perf_pmu_format *format;
tools/perf/util/pmu.c
1963
list_for_each_entry(format, &pmu->format, list) {
tools/perf/util/pmu.c
1964
if (!strcmp(format->name, name))
tools/perf/util/pmu.c
199
struct perf_pmu_format *format;
tools/perf/util/pmu.c
2000
struct perf_pmu_format *format;
tools/perf/util/pmu.c
2010
list_for_each_entry(format, &pmu->format, list) {
tools/perf/util/pmu.c
2011
perf_pmu_format__load(pmu, format);
tools/perf/util/pmu.c
2012
ret = cb(state, format->name, (int)format->value, format->bits);
tools/perf/util/pmu.c
205
format = perf_pmu__new_format(&pmu->format, name);
tools/perf/util/pmu.c
206
if (!format) {
tools/perf/util/pmu.c
224
__perf_pmu_format__load(format, file);
tools/perf/util/pmu.c
2569
struct perf_pmu_format *format;
tools/perf/util/pmu.c
2574
list_for_each_entry(format, &pmu->format, list) {
tools/perf/util/pmu.c
2578
if (format->value >= PERF_PMU_FORMAT_VALUE_CONFIG_END)
tools/perf/util/pmu.c
2582
mask = &pmu->config_masks[format->value];
tools/perf/util/pmu.c
2584
for_each_set_bit(i, format->bits, PERF_PMU_FORMAT_BITS)
tools/perf/util/pmu.c
2703
perf_pmu__del_formats(&pmu->format);
tools/perf/util/pmu.h
139
struct list_head format;
tools/perf/util/pmu.h
282
void perf_pmu__format_pack(unsigned long *format, __u64 value, __u64 *v,
tools/perf/util/pmu.h
286
void perf_pmu_format__set_value(void *format, int config, unsigned long *bits);
tools/perf/util/pmu.h
289
u64 perf_pmu__format_unpack(unsigned long *format, u64 config_val);
tools/perf/util/pmu.y
2
%parse-param {void *format}
tools/perf/util/pmu.y
27
static void perf_pmu_error(void *format, void *scanner, const char *msg);
tools/perf/util/pmu.y
57
format:
tools/perf/util/pmu.y
58
format format_term
tools/perf/util/pmu.y
65
perf_pmu_format__set_value(format, PERF_PMU_FORMAT_VALUE_CONFIG, $3);
tools/perf/util/pmu.y
70
perf_pmu_format__set_value(format, $2, $4);
tools/perf/util/pmu.y
97
static void perf_pmu_error(void *format __maybe_unused,
tools/perf/util/pmus.c
883
.format = LIST_HEAD_INIT(fake.format),
tools/perf/util/probe-event.c
65
int e_snprintf(char *str, size_t size, const char *format, ...)
tools/perf/util/probe-event.c
69
va_start(ap, format);
tools/perf/util/probe-event.c
70
ret = vsnprintf(str, size, format, ap);
tools/perf/util/probe-event.h
186
int e_snprintf(char *str, size_t size, const char *format, ...) __printf(3, 4);
tools/perf/util/scripting-engines/trace-event-perl.c
396
for (field = event->format.fields; field; field = field->next) {
tools/perf/util/scripting-engines/trace-event-perl.c
641
for (f = event->format.fields; f; f = f->next) {
tools/perf/util/scripting-engines/trace-event-perl.c
660
for (f = event->format.fields; f; f = f->next) {
tools/perf/util/scripting-engines/trace-event-perl.c
684
for (f = event->format.fields; f; f = f->next) {
tools/perf/util/scripting-engines/trace-event-python.c
1017
for (field = event->format.fields; field; field = field->next) {
tools/perf/util/scripting-engines/trace-event-python.c
2062
for (f = event->format.fields; f; f = f->next) {
tools/perf/util/scripting-engines/trace-event-python.c
2087
for (f = event->format.fields; f; f = f->next) {
tools/perf/util/scripting-engines/trace-event-python.c
2112
for (f = event->format.fields; f; f = f->next) {
tools/perf/util/sort.c
2805
bool perf_hpp__is_sort_entry(struct perf_hpp_fmt *format)
tools/perf/util/sort.c
2807
return format->header == __sort__hpp_header;
tools/perf/util/sort.c
3399
struct tep_format_field *field = tp_format ? tp_format->format.fields : NULL;
tools/perf/util/stat-display.c
152
#define json_out(os, format, ...) fprintf((os)->fh, "%s" format, json_sep(os), ##__VA_ARGS__)
tools/perf/util/tp_pmu.c
113
char *format = NULL;
tools/perf/util/tp_pmu.c
136
err = filename__read_str(path, &format, &format_size);
tools/perf/util/tp_pmu.c
138
info.long_desc = format;
tools/perf/util/tp_pmu.c
141
if (format[i] == '\t')
tools/perf/util/tp_pmu.c
142
format[i] = ' ';
tools/perf/util/tp_pmu.c
148
free(format);
tools/perf/util/trace-event-info.c
165
char *format;
tools/perf/util/trace-event-info.c
181
if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) {
tools/perf/util/trace-event-info.c
185
ret = stat(format, &st);
tools/perf/util/trace-event-info.c
186
free(format);
tools/perf/util/trace-event-info.c
203
if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) {
tools/perf/util/trace-event-info.c
207
ret = stat(format, &st);
tools/perf/util/trace-event-info.c
210
err = record_file(format, 8);
tools/perf/util/trace-event-info.c
212
free(format);
tools/perf/util/trace-event-info.c
216
free(format);
tools/perf/util/unwind-libunwind-local.c
471
di.format = UNW_INFO_FORMAT_REMOTE_TABLE;
tools/power/acpi/os_specific/service_layers/oslinuxtbl.c
406
char format[32];
tools/power/acpi/os_specific/service_layers/oslinuxtbl.c
408
snprintf(format, 32, "%s=%s", keyword, "%llx");
tools/power/acpi/os_specific/service_layers/oslinuxtbl.c
411
if (sscanf(buffer, format, &address) == 1) {
tools/power/x86/intel-speed-select/isst-config.c
105
void debug_printf(const char *format, ...)
tools/power/x86/intel-speed-select/isst-config.c
109
va_start(args, format);
tools/power/x86/intel-speed-select/isst-config.c
112
vprintf(format, args);
tools/power/x86/intel-speed-select/isst.h
226
extern void debug_printf(const char *format, ...);
tools/power/x86/turbostat/turbostat.c
10045
int parse_telem_info_file(int fd_dir, const char *info_filename, const char *format, unsigned long *output)
tools/power/x86/turbostat/turbostat.c
10061
if (fscanf(file_telem_info, format, &value) != 1) {
tools/power/x86/turbostat/turbostat.c
10277
enum counter_format format, unsigned int domain_id, enum pmt_open_mode mode)
tools/power/x86/turbostat/turbostat.c
10326
pcounter->format = format;
tools/power/x86/turbostat/turbostat.c
10332
conflict += pcounter->format != format;
tools/power/x86/turbostat/turbostat.c
10575
unsigned int width, enum counter_scope scope, enum counter_type type, enum counter_format format, int flags, int id)
tools/power/x86/turbostat/turbostat.c
10584
__func__, msr_num, path, name, width, scope, type, format, flags, id);
tools/power/x86/turbostat/turbostat.c
10638
msrp->format = format;
tools/power/x86/turbostat/turbostat.c
10684
unsigned int width, enum counter_scope scope, enum counter_type type, enum counter_format format)
tools/power/x86/turbostat/turbostat.c
10699
pinfo->format = format;
tools/power/x86/turbostat/turbostat.c
10705
enum counter_scope scope, enum counter_type type, enum counter_format format)
tools/power/x86/turbostat/turbostat.c
10732
pinfo = make_perf_counter_info(perf_device, perf_event, name_buffer, width, scope, type, format);
tools/power/x86/turbostat/turbostat.c
10775
enum counter_format format = FORMAT_DELTA;
tools/power/x86/turbostat/turbostat.c
10825
format = FORMAT_RAW;
tools/power/x86/turbostat/turbostat.c
10829
format = FORMAT_AVERAGE;
tools/power/x86/turbostat/turbostat.c
10833
format = FORMAT_DELTA;
tools/power/x86/turbostat/turbostat.c
10837
format = FORMAT_PERCENT;
tools/power/x86/turbostat/turbostat.c
10873
sprintf(name_buffer, "M0x%x%s", msr_num, format == FORMAT_PERCENT ? "%" : "");
tools/power/x86/turbostat/turbostat.c
10875
sprintf(name_buffer, "M0X%x%s", msr_num, format == FORMAT_PERCENT ? "%" : "");
tools/power/x86/turbostat/turbostat.c
10880
if (add_perf_counter(perf_device, perf_event, name_buffer, width, scope, type, format))
tools/power/x86/turbostat/turbostat.c
10883
if (add_counter(msr_num, path, name_buffer, width, scope, type, format, 0, 0))
tools/power/x86/turbostat/turbostat.c
10993
enum counter_format format = FORMAT_RAW;
tools/power/x86/turbostat/turbostat.c
11097
format = FORMAT_RAW;
tools/power/x86/turbostat/turbostat.c
11102
format = FORMAT_AVERAGE;
tools/power/x86/turbostat/turbostat.c
11107
format = FORMAT_DELTA;
tools/power/x86/turbostat/turbostat.c
11186
pmt_add_counter(guid, seq, name, type, lsb, msb, offset, scope, format, domain_id, PMT_OPEN_REQUIRED);
tools/power/x86/turbostat/turbostat.c
118
enum counter_format format;
tools/power/x86/turbostat/turbostat.c
138
enum counter_format format;
tools/power/x86/turbostat/turbostat.c
1974
enum counter_format format;
tools/power/x86/turbostat/turbostat.c
2835
static inline int print_name(int width, int *printed, char *delim, char *name, enum counter_type type, enum counter_format format)
tools/power/x86/turbostat/turbostat.c
2839
if (format == FORMAT_RAW && width >= 64)
tools/power/x86/turbostat/turbostat.c
2934
outp += print_name(mp->width, &printed, delim, mp->name, mp->type, mp->format);
tools/power/x86/turbostat/turbostat.c
2937
outp += print_name(pp->width, &printed, delim, pp->name, pp->type, pp->format);
tools/power/x86/turbostat/turbostat.c
2943
outp += print_name(pmt_counter_get_width(ppmt), &printed, delim, ppmt->name, COUNTER_ITEMS, ppmt->format);
tools/power/x86/turbostat/turbostat.c
2948
outp += print_name(32, &printed, delim, ppmt->name, COUNTER_ITEMS, ppmt->format);
tools/power/x86/turbostat/turbostat.c
2982
outp += print_name(mp->width, &printed, delim, mp->name, mp->type, mp->format);
tools/power/x86/turbostat/turbostat.c
2985
outp += print_name(pp->width, &printed, delim, pp->name, pp->type, pp->format);
tools/power/x86/turbostat/turbostat.c
2991
outp += print_name(pmt_counter_get_width(ppmt), &printed, delim, ppmt->name, COUNTER_ITEMS, ppmt->format);
tools/power/x86/turbostat/turbostat.c
2997
outp += print_name(32, &printed, delim, ppmt->name, COUNTER_ITEMS, ppmt->format);
tools/power/x86/turbostat/turbostat.c
3085
outp += print_name(mp->width, &printed, delim, mp->name, mp->type, mp->format);
tools/power/x86/turbostat/turbostat.c
3088
outp += print_name(pp->width, &printed, delim, pp->name, pp->type, pp->format);
tools/power/x86/turbostat/turbostat.c
3094
outp += print_name(pmt_counter_get_width(ppmt), &printed, delim, ppmt->name, COUNTER_ITEMS, ppmt->format);
tools/power/x86/turbostat/turbostat.c
3099
outp += print_name(32, &printed, delim, ppmt->name, COUNTER_ITEMS, ppmt->format);
tools/power/x86/turbostat/turbostat.c
3456
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3458
else if (mp->format == FORMAT_DELTA || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3460
else if (mp->format == FORMAT_PERCENT) {
tools/power/x86/turbostat/turbostat.c
3470
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3472
else if (pp->format == FORMAT_DELTA || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3474
else if (pp->format == FORMAT_PERCENT) {
tools/power/x86/turbostat/turbostat.c
3530
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3532
else if (mp->format == FORMAT_DELTA || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3534
else if (mp->format == FORMAT_PERCENT)
tools/power/x86/turbostat/turbostat.c
3540
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3542
else if (pp->format == FORMAT_DELTA || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3544
else if (pp->format == FORMAT_PERCENT)
tools/power/x86/turbostat/turbostat.c
3682
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3686
else if (mp->format == FORMAT_DELTA || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3688
else if (mp->format == FORMAT_PERCENT)
tools/power/x86/turbostat/turbostat.c
3694
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3698
else if (pp->format == FORMAT_DELTA || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3700
else if (pp->format == FORMAT_PERCENT)
tools/power/x86/turbostat/turbostat.c
3836
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3838
else if (mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3845
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3847
else if (pp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3854
if (ppmt->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3880
if (mp->format == FORMAT_RAW || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
3887
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
3894
if (ppmt->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4004
if (mp->format == FORMAT_RAW || mp->format == FORMAT_AVERAGE)
tools/power/x86/turbostat/turbostat.c
4011
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4018
if (ppmt->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4198
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4204
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4228
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4234
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4290
if ((mp->format == FORMAT_RAW) && (topo.num_packages == 0))
tools/power/x86/turbostat/turbostat.c
4297
if ((pp->format == FORMAT_RAW) && (topo.num_packages == 0))
tools/power/x86/turbostat/turbostat.c
4367
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4377
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4386
if (mp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4396
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4406
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4415
if (pp->format == FORMAT_RAW)
tools/power/x86/turbostat/turbostat.c
4675
const char *const format = "%u";
tools/power/x86/turbostat/turbostat.c
4680
return read_perf_counter_info_n(path, format);
tools/power/x86/turbostat/turbostat.c
4737
const char *const format = "%s";
tools/power/x86/turbostat/turbostat.c
4743
read_perf_counter_info(path, format, &unit_buffer);
tools/power/x86/turbostat/turbostat.c
4753
const char *const format = "%lf";
tools/power/x86/turbostat/turbostat.c
4759
if (read_perf_counter_info(path, format, &scale))
tools/power/x86/turbostat/turbostat.c
572
unsigned int width, enum counter_scope scope, enum counter_type type, enum counter_format format, int flags, int package_num);
tools/sched_ext/include/scx/common.bpf.h
114
static inline __attribute__((format(printf, 1, 2)))
tools/sched_ext/scx_central.c
34
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_central.c
38
return vfprintf(stderr, format, args);
tools/sched_ext/scx_cpu0.c
28
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_cpu0.c
32
return vfprintf(stderr, format, args);
tools/sched_ext/scx_flatcg.c
41
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_flatcg.c
45
return vfprintf(stderr, format, args);
tools/sched_ext/scx_pair.c
33
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_pair.c
37
return vfprintf(stderr, format, args);
tools/sched_ext/scx_qmap.c
44
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_qmap.c
48
return vfprintf(stderr, format, args);
tools/sched_ext/scx_sdt.c
31
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_sdt.c
35
return vfprintf(stderr, format, args);
tools/sched_ext/scx_simple.c
30
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_simple.c
34
return vfprintf(stderr, format, args);
tools/sched_ext/scx_userland.c
102
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/sched_ext/scx_userland.c
106
return vfprintf(stderr, format, args);
tools/testing/nvdimm/test/ndtest.c
645
static DEVICE_ATTR_RO(format);
tools/testing/selftests/alsa/pcm-test.c
294
snd_pcm_format_t format, old_format;
tools/testing/selftests/alsa/pcm-test.c
335
format = snd_pcm_format_value(cs);
tools/testing/selftests/alsa/pcm-test.c
336
if (format == SND_PCM_FORMAT_UNKNOWN)
tools/testing/selftests/alsa/pcm-test.c
345
samples = malloc((rate * channels * snd_pcm_format_physical_width(format)) / 8);
tools/testing/selftests/alsa/pcm-test.c
348
snd_pcm_format_set_silence(format, samples, rate * channels);
tools/testing/selftests/alsa/pcm-test.c
375
err = snd_pcm_hw_params_set_format(handle, hw_params, format);
tools/testing/selftests/alsa/pcm-test.c
379
old_format = format;
tools/testing/selftests/alsa/pcm-test.c
380
format = snd_pcm_format_value(alt_formats[i]);
tools/testing/selftests/alsa/pcm-test.c
381
if (format != SND_PCM_FORMAT_UNKNOWN) {
tools/testing/selftests/alsa/pcm-test.c
388
snd_pcm_format_name(format));
tools/testing/selftests/alsa/pcm-test.c
390
snd_pcm_format_physical_width(format)) / 8);
tools/testing/selftests/alsa/pcm-test.c
393
snd_pcm_format_set_silence(format, samples, rate * channels);
tools/testing/selftests/alsa/pcm-test.c
398
snd_pcm_format_name(format), snd_strerror(err));
tools/testing/selftests/alsa/pcm-test.c
465
snd_pcm_format_name(format),
tools/testing/selftests/alsa/test-pcmtest-driver.c
143
self->params.format = SND_PCM_FORMAT_S16_LE;
tools/testing/selftests/alsa/test-pcmtest-driver.c
145
self->params.sample_size = snd_pcm_format_physical_width(self->params.format) / 8;
tools/testing/selftests/alsa/test-pcmtest-driver.c
148
self->params.format);
tools/testing/selftests/alsa/test-pcmtest-driver.c
183
snd_pcm_format_set_silence(params->format, samples,
tools/testing/selftests/alsa/test-pcmtest-driver.c
222
snd_pcm_format_set_silence(params->format, samples,
tools/testing/selftests/alsa/test-pcmtest-driver.c
30
snd_pcm_format_t format;
tools/testing/selftests/alsa/test-pcmtest-driver.c
78
static size_t get_sec_buf_len(unsigned int rate, unsigned long channels, snd_pcm_format_t format)
tools/testing/selftests/alsa/test-pcmtest-driver.c
80
return rate * channels * snd_pcm_format_physical_width(format) / 8;
tools/testing/selftests/alsa/test-pcmtest-driver.c
97
snd_pcm_hw_params_set_format(*handle, hwparams, params->format);
tools/testing/selftests/bpf/bench.c
26
const char *format, va_list args)
tools/testing/selftests/bpf/bench.c
30
return vfprintf(stderr, format, args);
tools/testing/selftests/bpf/network_helpers.c
830
static int __base_pr(const char *format, va_list args)
tools/testing/selftests/bpf/network_helpers.c
832
return vfprintf(stdout, format, args);
tools/testing/selftests/bpf/network_helpers.c
846
void tm_print(const char *format, ...)
tools/testing/selftests/bpf/network_helpers.c
855
va_start(args, format);
tools/testing/selftests/bpf/network_helpers.c
856
print_fn(format, args);
tools/testing/selftests/bpf/network_helpers.h
256
typedef int (*tm_print_fn_t)(const char *format, va_list args);
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
221
const char *format, va_list args)
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
226
!strstr(format, "-- BEGIN PROG LOAD LOG --")) {
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
227
vprintf(format, args);
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
238
printf(format, prog_name, log_buf);
tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
12
if (!strstr(format, "verifier log"))
tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
5
const char *format, va_list args)
tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
8
vprintf(format, args);
tools/testing/selftests/bpf/prog_tests/btf.c
35
#define CHECK(condition, format...) _CHECK(condition, "check", duration, format)
tools/testing/selftests/bpf/prog_tests/select_reuseport.c
46
#define RET_IF(condition, tag, format...) ({ \
tools/testing/selftests/bpf/prog_tests/select_reuseport.c
48
printf(tag " " format); \
tools/testing/selftests/bpf/prog_tests/select_reuseport.c
53
#define RET_ERR(condition, tag, format...) ({ \
tools/testing/selftests/bpf/prog_tests/select_reuseport.c
55
printf(tag " " format); \
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
669
const char *format, va_list args)
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
672
vprintf(format, args);
tools/testing/selftests/bpf/test_maps.h
13
printf(format); \
tools/testing/selftests/bpf/test_maps.h
9
#define CHECK(condition, tag, format...) ({ \
tools/testing/selftests/bpf/test_progs.c
125
static int traffic_monitor_print_fn(const char *format, va_list args)
tools/testing/selftests/bpf/test_progs.c
128
vfprintf(stdout, format, args);
tools/testing/selftests/bpf/test_progs.c
953
const char *format, va_list args)
tools/testing/selftests/bpf/test_progs.c
959
vfprintf(libbpf_capture_stream, format, args2);
tools/testing/selftests/bpf/test_progs.c
966
vfprintf(stdout, format, args);
tools/testing/selftests/bpf/test_progs.h
191
#define PRINT_FAIL(format...) \
tools/testing/selftests/bpf/test_progs.h
195
fprintf(stdout, ##format); \
tools/testing/selftests/bpf/test_progs.h
198
#define _CHECK(condition, tag, duration, format...) ({ \
tools/testing/selftests/bpf/test_progs.h
204
fprintf(stdout, ##format); \
tools/testing/selftests/bpf/test_progs.h
224
#define CHECK(condition, tag, format...) \
tools/testing/selftests/bpf/test_progs.h
225
_CHECK(condition, tag, duration, format)
tools/testing/selftests/bpf/test_progs.h
226
#define CHECK_ATTR(condition, tag, format...) \
tools/testing/selftests/bpf/test_progs.h
227
_CHECK(condition, tag, tattr.duration, format)
tools/testing/selftests/bpf/veristat.c
1360
__attribute__((format(printf, 2, 3)))
tools/testing/selftests/bpf/veristat.c
1381
__attribute__((format(scanf, 3, 4)))
tools/testing/selftests/bpf/veristat.c
239
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
tools/testing/selftests/bpf/veristat.c
245
return vfprintf(stderr, format, args);
tools/testing/selftests/bpf/veristat.c
250
__attribute__((format(printf, 3, 4)))
tools/testing/selftests/bpf/xdp_features.c
46
const char *format, va_list args)
tools/testing/selftests/bpf/xdp_features.c
50
return vfprintf(stderr, format, args);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
329
static int ethtool_add_flow(const char *format, ...)
tools/testing/selftests/drivers/net/hw/ncdevmem.c
346
snprintf(cmd, sizeof(cmd), "ethtool -N %s %s", ifname, format);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
348
va_start(args, format);
tools/testing/selftests/filesystems/utils.c
29
#define syserror(format, ...) \
tools/testing/selftests/filesystems/utils.c
31
fprintf(stderr, "%m - " format "\n", ##__VA_ARGS__); \
tools/testing/selftests/filesystems/utils.c
35
#define syserror_set(__ret__, format, ...) \
tools/testing/selftests/filesystems/utils.c
39
fprintf(stderr, "%m - " format "\n", ##__VA_ARGS__); \
tools/testing/selftests/hid/hid_bpf.c
891
const char *format, va_list args)
tools/testing/selftests/hid/hid_bpf.c
898
snprintf(buf, sizeof(buf), "# %s", format);
tools/testing/selftests/kselftest.h
94
#define __printf(a, b) __attribute__((format(printf, a, b)))
tools/testing/selftests/kvm/include/test_util.h
237
char *strdup_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2), nonnull(1)));
tools/testing/selftests/kvm/include/test_util.h
27
static inline __printf(1, 2) int _no_printf(const char *format, ...) { return 0; }
tools/testing/selftests/kvm/x86/hyperv_ipi.c
121
ipi_ex->vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_ipi.c
143
ipi_ex->vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_ipi.c
165
ipi_ex->vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_ipi.c
188
ipi_ex->vp_set.format = HV_GENERIC_SET_ALL;
tools/testing/selftests/kvm/x86/hyperv_ipi.c
24
u64 format;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
25
u64 format;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
272
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
287
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
305
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
323
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
344
flush_ex->hv_vp_set.format = HV_GENERIC_SET_ALL;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
357
flush_ex->hv_vp_set.format = HV_GENERIC_SET_ALL;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
431
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
447
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
466
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
485
flush_ex->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
508
flush_ex->hv_vp_set.format = HV_GENERIC_SET_ALL;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
523
flush_ex->hv_vp_set.format = HV_GENERIC_SET_ALL;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
268
state->format = 1;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
284
state->format = 0;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
70
state->format = 0;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
79
state->format = 0;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
96
state->format = 1;
tools/testing/selftests/mm/pkey-helpers.h
40
static inline void sigsafe_printf(const char *format, ...)
tools/testing/selftests/mm/pkey-helpers.h
45
va_start(ap, format);
tools/testing/selftests/mm/pkey-helpers.h
46
vprintf(format, ap);
tools/testing/selftests/mm/pkey-helpers.h
56
ret = write(1, format, strlen(format));
tools/testing/selftests/net/nettest.c
160
static void log_msg(const char *format, ...)
tools/testing/selftests/net/nettest.c
171
va_start(args, format);
tools/testing/selftests/net/nettest.c
172
vfprintf(stdout, format, args);
tools/testing/selftests/net/nettest.c
178
static void log_error(const char *format, ...)
tools/testing/selftests/net/nettest.c
189
va_start(args, format);
tools/testing/selftests/net/nettest.c
190
vfprintf(stderr, format, args);
tools/testing/selftests/powerpc/tm/tm-trap.c
45
#define pr_error(error_code, format, ...) \
tools/testing/selftests/powerpc/tm/tm-trap.c
46
error_at_line(1, error_code, __FILE__, __LINE__, format, ##__VA_ARGS__)
tools/testing/selftests/powerpc/tm/tm-unavailable.c
37
#define err_at_line(status, errnum, format, ...) \
tools/testing/selftests/powerpc/tm/tm-unavailable.c
38
error_at_line(status, errnum, __FILE__, __LINE__, format ##__VA_ARGS__)
tools/testing/selftests/powerpc/tm/tm-unavailable.c
40
#define pr_warn(code, format, ...) err_at_line(0, code, format, ##__VA_ARGS__)
tools/testing/selftests/powerpc/tm/tm-unavailable.c
41
#define pr_err(code, format, ...) err_at_line(1, code, format, ##__VA_ARGS__)
tools/thermal/lib/log.c
34
extern void logit(int level, const char *format, ...)
tools/thermal/lib/log.c
38
va_start(args, format);
tools/thermal/lib/log.c
41
vsyslog(level, format, args);
tools/thermal/lib/log.c
44
vfprintf(stderr, format, args);
tools/thermal/lib/log.c
47
vfprintf(stdout, format, args);
tools/thermal/lib/log.h
16
extern void logit(int level, const char *format, ...);
tools/usb/usbip/libsrc/usbip_common.c
142
const char *format)
tools/usb/usbip/libsrc/usbip_common.c
164
ret = sscanf(attr, format, &num);
tools/usb/usbip/libsrc/usbip_common.c
199
#define READ_ATTR(object, type, dev, name, format) \
tools/usb/usbip/libsrc/usbip_common.c
202
format); \
tools/usb/usbip/libsrc/usbip_common.h
137
const char *format);
tools/verification/rv/src/in_kernel.c
312
char *format;
tools/verification/rv/src/in_kernel.c
316
format = tracefs_instance_file_read(NULL, path, NULL);
tools/verification/rv/src/in_kernel.c
317
if (!format) {
tools/verification/rv/src/in_kernel.c
323
has_id = !!strstr(format, "REC->id");
tools/verification/rv/src/in_kernel.c
327
free(format);
tools/virtio/linux/kernel.h
129
#define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
tools/virtio/linux/kernel.h
131
#define pr_debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
tools/virtio/linux/kernel.h
133
#define pr_debug(format, ...) do {} while (0)
tools/virtio/linux/kernel.h
135
#define dev_err(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__)
tools/virtio/linux/kernel.h
136
#define dev_warn(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__)
tools/virtio/linux/kernel.h
137
#define dev_warn_once(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__)
tools/virtio/linux/kernel.h
139
#define dev_WARN_ONCE(dev, condition, format...) \
tools/virtio/linux/kernel.h
140
WARN_ONCE(condition, format)
tools/virtio/linux/kernel.h
52
#define __printf(a,b) __attribute__((format(printf,a,b)))
tools/virtio/virtio-trace/trace-agent.h
68
#define pr_err(format, ...) fprintf(stderr, format, ## __VA_ARGS__)
tools/virtio/virtio-trace/trace-agent.h
69
#define pr_info(format, ...) fprintf(stdout, format, ## __VA_ARGS__)
tools/virtio/virtio-trace/trace-agent.h
71
#define pr_debug(format, ...) fprintf(stderr, format, ## __VA_ARGS__)
tools/virtio/virtio-trace/trace-agent.h
73
#define pr_debug(format, ...) do {} while (0)