Symbol: protocol
arch/m68k/emu/nfeth.c
121
skb->protocol = eth_type_trans(skb, dev);
arch/powerpc/platforms/ps3/gelic_udbg.c
173
h_ip->protocol = 0x11;
arch/s390/include/asm/diag.h
299
u8 protocol:2;
arch/sparc/net/bpf_jit_comp_32.c
524
emit_skb_load16(protocol, r_A);
arch/um/drivers/vector_kern.c
1010
skb->protocol = eth_type_trans(skb, skb->dev);
arch/um/drivers/vector_kern.c
883
skb->protocol = eth_type_trans(skb, skb->dev);
arch/x86/include/asm/efi.h
266
#define __efi64_argmap_handle_protocol(handle, protocol, interface) \
arch/x86/include/asm/efi.h
267
((handle), (protocol), efi64_zero_upper(interface))
arch/x86/include/asm/efi.h
269
#define __efi64_argmap_locate_protocol(protocol, reg, interface) \
arch/x86/include/asm/efi.h
270
((protocol), (reg), efi64_zero_upper(interface))
arch/x86/include/asm/efi.h
272
#define __efi64_argmap_locate_device_path(protocol, path, handle) \
arch/x86/include/asm/efi.h
273
((protocol), (path), efi64_zero_upper(handle))
arch/x86/include/asm/efi.h
279
#define __efi64_argmap_get_location(protocol, seg, bus, dev, func) \
arch/x86/include/asm/efi.h
280
((protocol), efi64_zero_upper(seg), efi64_zero_upper(bus), \
arch/x86/include/asm/efi.h
284
#define __efi64_argmap_load_file(protocol, path, policy, bufsize, buf) \
arch/x86/include/asm/efi.h
285
((protocol), (path), (policy), efi64_zero_upper(bufsize), (buf))
arch/x86/include/asm/efi.h
314
#define __efi64_argmap_get_memory_attributes(protocol, phys, size, flags) \
arch/x86/include/asm/efi.h
315
((protocol), __efi64_split(phys), __efi64_split(size), (flags))
arch/x86/include/asm/efi.h
317
#define __efi64_argmap_set_memory_attributes(protocol, phys, size, flags) \
arch/x86/include/asm/efi.h
318
((protocol), __efi64_split(phys), __efi64_split(size), __efi64_split(flags))
arch/x86/include/asm/efi.h
320
#define __efi64_argmap_clear_memory_attributes(protocol, phys, size, flags) \
arch/x86/include/asm/efi.h
321
((protocol), __efi64_split(phys), __efi64_split(size), __efi64_split(flags))
arch/x86/include/asm/efi.h
324
#define __efi64_argmap_get_next(protocol, smbioshandle, type, record, phandle) \
arch/x86/include/asm/efi.h
325
((protocol), (smbioshandle), (type), efi64_zero_upper(record), \
arch/x86/xen/platform-pci-unplug.c
31
char protocol;
arch/x86/xen/platform-pci-unplug.c
39
protocol = inb(XEN_IOPORT_PROTOVER);
arch/x86/xen/platform-pci-unplug.c
42
protocol);
arch/x86/xen/platform-pci-unplug.c
44
switch (protocol) {
arch/xtensa/platforms/iss/network.c
220
.protocol = tuntap_protocol,
arch/xtensa/platforms/iss/network.c
305
skb->protocol = lp->tp.net_ops->protocol(skb);
arch/xtensa/platforms/iss/network.c
63
unsigned short (*protocol)(struct sk_buff *skb);
block/bsg-lib.c
37
if (hdr->protocol != BSG_PROTOCOL_SCSI ||
crypto/af_alg.c
503
static int alg_create(struct net *net, struct socket *sock, int protocol,
crypto/af_alg.c
511
if (protocol != 0)
drivers/acpi/sbshc.c
104
static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol,
drivers/acpi/sbshc.c
124
if (!(protocol & 0x01)) {
drivers/acpi/sbshc.c
130
smb_hc_write(hc, ACPI_SMB_PROTOCOL, protocol);
drivers/acpi/sbshc.c
136
if (ret || !(protocol & 0x01))
drivers/acpi/sbshc.c
138
switch (protocol) {
drivers/acpi/sbshc.c
161
int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address,
drivers/acpi/sbshc.c
164
return acpi_smbus_transaction(hc, protocol, address, command, data, 0);
drivers/acpi/sbshc.c
169
int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 address,
drivers/acpi/sbshc.c
172
return acpi_smbus_transaction(hc, protocol, address, command, data, length);
drivers/acpi/sbshc.h
26
extern int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address,
drivers/acpi/sbshc.h
28
extern int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 slave_address,
drivers/ata/acard-ahci.c
217
int is_atapi = ata_is_atapi(qc->tf.protocol);
drivers/ata/acard-ahci.c
267
if (qc->tf.protocol == ATA_PROT_PIO && qc->dma_dir == DMA_FROM_DEVICE &&
drivers/ata/libahci.c
1688
int is_atapi = ata_is_atapi(qc->tf.protocol);
drivers/ata/libahci.c
2056
if (ata_is_ncq(qc->tf.protocol))
drivers/ata/libahci.c
2089
if (qc->tf.protocol == ATA_PROT_PIO && qc->dma_dir == DMA_FROM_DEVICE &&
drivers/ata/libahci.c
2104
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libahci.c
2150
if (qc && ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libahci.c
2172
if (qc && ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libata-acpi.c
623
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
1239
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
1298
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
1593
if (tf->protocol == ATAPI_PROT_DMA && (dev->flags & ATA_DFLAG_DMADIR) &&
drivers/ata/libata-core.c
1824
tf.protocol = ATA_PROT_PIO;
drivers/ata/libata-core.c
1987
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
2014
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
2156
tf.protocol = ATA_PROT_DMA;
drivers/ata/libata-core.c
2160
tf.protocol = ATA_PROT_PIO;
drivers/ata/libata-core.c
4692
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
4735
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
4774
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
4838
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libata-core.c
4987
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libata-core.c
5033
if (!ata_is_data(qc->tf.protocol))
drivers/ata/libata-core.c
5036
if ((dev->mwdma_mask || dev->udma_mask) && ata_is_pio(qc->tf.protocol))
drivers/ata/libata-core.c
5198
u8 prot = qc->tf.protocol;
drivers/ata/libata-core.c
631
tf->protocol = ATA_PROT_PIO;
drivers/ata/libata-core.c
635
tf->protocol = ATA_PROT_PIO;
drivers/ata/libata-core.c
638
tf->protocol = ATA_PROT_DMA;
drivers/ata/libata-core.c
707
if (tf->protocol == ATA_PROT_NCQ)
drivers/ata/libata-core.c
754
tf->protocol = ATA_PROT_NCQ;
drivers/ata/libata-eh.c
1433
tf.protocol = ATAPI_PROT_NODATA;
drivers/ata/libata-eh.c
1512
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-eh.c
1579
tf.protocol = ATAPI_PROT_DMA;
drivers/ata/libata-eh.c
1582
tf.protocol = ATAPI_PROT_PIO;
drivers/ata/libata-eh.c
2695
switch (qc->tf.protocol) {
drivers/ata/libata-eh.c
2728
if (ata_is_atapi(qc->tf.protocol)) {
drivers/ata/libata-eh.c
3293
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-eh.c
3590
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-pmp.c
47
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-pmp.c
83
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
1312
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
1409
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
1908
if (!ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libata-scsi.c
3117
qc->tf.protocol = ATAPI_PROT_NODATA;
drivers/ata/libata-scsi.c
3119
qc->tf.protocol = ATAPI_PROT_PIO;
drivers/ata/libata-scsi.c
3122
qc->tf.protocol = ATAPI_PROT_DMA;
drivers/ata/libata-scsi.c
3280
tf->protocol = ata_scsi_map_proto(cdb[1 + cdb_offset]);
drivers/ata/libata-scsi.c
3281
if (tf->protocol == ATA_PROT_UNKNOWN) {
drivers/ata/libata-scsi.c
3296
if (ata_is_ncq(tf->protocol))
drivers/ata/libata-scsi.c
3297
tf->protocol = ATA_PROT_NCQ_NODATA;
drivers/ata/libata-scsi.c
3377
if (ata_is_ncq(tf->protocol))
drivers/ata/libata-scsi.c
3390
if (tf->protocol != ATA_PROT_PIO || tf->nsect != 1) {
drivers/ata/libata-scsi.c
3456
if (tf->protocol == ATA_PROT_DMA && !ata_dma_enabled(dev)) {
drivers/ata/libata-scsi.c
3462
if (ata_is_ncq(tf->protocol) && !ata_ncq_enabled(dev)) {
drivers/ata/libata-scsi.c
3654
tf->protocol = ATA_PROT_NCQ;
drivers/ata/libata-scsi.c
3663
tf->protocol = ATA_PROT_DMA;
drivers/ata/libata-scsi.c
3914
tf->protocol = ATA_PROT_NCQ;
drivers/ata/libata-scsi.c
3924
tf->protocol = ATA_PROT_DMA;
drivers/ata/libata-scsi.c
4003
tf->protocol = ATA_PROT_NCQ_NODATA;
drivers/ata/libata-scsi.c
4009
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
4081
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
4178
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
4434
tf->protocol = dma ? ATA_PROT_DMA : ATA_PROT_PIO;
drivers/ata/libata-sff.c
1006
if (qc->tf.protocol == ATAPI_PROT_PIO) {
drivers/ata/libata-sff.c
1297
switch (qc->tf.protocol) {
drivers/ata/libata-sff.c
2647
if (!ata_is_dma(qc->tf.protocol))
drivers/ata/libata-sff.c
2654
switch (qc->tf.protocol) {
drivers/ata/libata-sff.c
2710
if (ap->hsm_task_state == HSM_ST_LAST && ata_is_dma(qc->tf.protocol)) {
drivers/ata/libata-sff.c
2733
if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol))
drivers/ata/libata-sff.c
2786
if (qc && ata_is_dma(qc->tf.protocol)) {
drivers/ata/libata-sff.c
2834
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/libata-sff.c
699
switch (qc->tf.protocol) {
drivers/ata/libata-sff.c
860
if (qc->tf.protocol == ATA_PROT_PIO &&
drivers/ata/libata-sff.c
864
if (ata_is_atapi(qc->tf.protocol) &&
drivers/ata/libata-sff.c
984
if (qc->tf.protocol == ATA_PROT_PIO) {
drivers/ata/libata-zpodd.c
47
tf.protocol = ATAPI_PROT_NODATA;
drivers/ata/libata-zpodd.c
75
tf.protocol = ATAPI_PROT_PIO;
drivers/ata/pata_arasan_cf.c
373
if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol))
drivers/ata/pata_arasan_cf.c
696
if (!ata_is_dma(qc->tf.protocol))
drivers/ata/pata_arasan_cf.c
705
switch (qc->tf.protocol) {
drivers/ata/pata_octeon_cf.c
628
if (unlikely(qc->err_mask) && (qc->tf.protocol == ATA_PROT_DMA))
drivers/ata/pata_octeon_cf.c
765
switch (qc->tf.protocol) {
drivers/ata/pata_parport/pata_parport.c
629
char protocol[8] = "auto";
drivers/ata/pata_parport/pata_parport.c
638
port, protocol, &mode, &unit, &delay) < 1)
drivers/ata/pata_parport/pata_parport.c
649
drv = driver_find(protocol, &pata_parport_bus_type);
drivers/ata/pata_parport/pata_parport.c
651
if (strcmp(protocol, "auto")) {
drivers/ata/pata_parport/pata_parport.c
652
pr_err("protocol %s not found\n", protocol);
drivers/ata/pata_pdc202xx_old.c
199
if ((tf->flags & ATA_TFLAG_LBA48) || tf->protocol == ATAPI_PROT_DMA) {
drivers/ata/pata_pdc202xx_old.c
238
if (tf->protocol == ATAPI_PROT_DMA || (tf->flags & ATA_TFLAG_LBA48)) {
drivers/ata/pdc_adma.c
302
if (qc->tf.protocol != ATA_PROT_DMA)
drivers/ata/pdc_adma.c
368
switch (qc->tf.protocol) {
drivers/ata/sata_dwc_460ex.c
1006
if (!ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_dwc_460ex.c
1009
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
1017
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
260
static const char *get_prot_descript(u8 protocol)
drivers/ata/sata_dwc_460ex.c
262
switch (protocol) {
drivers/ata/sata_dwc_460ex.c
550
__func__, get_prot_descript(qc->tf.protocol));
drivers/ata/sata_dwc_460ex.c
552
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
570
} else if (ata_is_pio(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
635
get_prot_descript(qc->tf.protocol));
drivers/ata/sata_dwc_460ex.c
636
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
714
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
745
qc->tf.command, status, ap->print_id, qc->tf.protocol);
drivers/ata/sata_dwc_460ex.c
940
if (!ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_dwc_460ex.c
993
if (!ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_fsl.c
1200
if (qc && ata_is_atapi(qc->tf.protocol)) {
drivers/ata/sata_fsl.c
517
if (ata_is_atapi(qc->tf.protocol)) {
drivers/ata/sata_fsl.c
528
if (qc->tf.protocol == ATA_PROT_NCQ)
drivers/ata/sata_inic162x.c
467
if (ata_is_dma(qc->tf.protocol))
drivers/ata/sata_inic162x.c
487
bool is_atapi = ata_is_atapi(qc->tf.protocol);
drivers/ata/sata_inic162x.c
488
bool is_data = ata_is_data(qc->tf.protocol);
drivers/ata/sata_mv.c
1133
struct mv_port_priv *pp, u8 protocol)
drivers/ata/sata_mv.c
1135
int want_ncq = (protocol == ATA_PROT_NCQ);
drivers/ata/sata_mv.c
1432
if (ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_mv.c
2008
switch (tf->protocol) {
drivers/ata/sata_mv.c
2109
if ((tf->protocol != ATA_PROT_DMA) &&
drivers/ata/sata_mv.c
2110
(tf->protocol != ATA_PROT_NCQ))
drivers/ata/sata_mv.c
2262
switch (qc->tf.protocol) {
drivers/ata/sata_mv.c
2309
switch (qc->tf.protocol) {
drivers/ata/sata_mv.c
2318
mv_start_edma(ap, port_mmio, pp, qc->tf.protocol);
drivers/ata/sata_nv.c
1370
(qc->tf.protocol == ATA_PROT_NODATA))
drivers/ata/sata_nv.c
1401
if (qc->tf.protocol == ATA_PROT_NCQ)
drivers/ata/sata_nv.c
1426
int curr_ncq = (qc->tf.protocol == ATA_PROT_NCQ);
drivers/ata/sata_nv.c
1431
if (unlikely(qc->tf.protocol == ATA_PROT_NCQ &&
drivers/ata/sata_nv.c
1982
if (qc->tf.protocol != ATA_PROT_NCQ) {
drivers/ata/sata_nv.c
2058
if (qc->tf.protocol != ATA_PROT_NCQ)
drivers/ata/sata_promise.c
1007
switch (qc->tf.protocol) {
drivers/ata/sata_promise.c
1028
WARN_ON(tf->protocol == ATA_PROT_DMA || tf->protocol == ATAPI_PROT_DMA);
drivers/ata/sata_promise.c
1035
WARN_ON(tf->protocol == ATA_PROT_DMA || tf->protocol == ATAPI_PROT_DMA);
drivers/ata/sata_promise.c
493
switch (qc->tf.protocol) {
drivers/ata/sata_promise.c
527
if (qc->tf.protocol != ATAPI_PROT_DMA)
drivers/ata/sata_promise.c
635
switch (qc->tf.protocol) {
drivers/ata/sata_promise.c
888
switch (qc->tf.protocol) {
drivers/ata/sata_promise.h
38
switch (tf->protocol) {
drivers/ata/sata_qstor.c
269
if (qc->tf.protocol != ATA_PROT_DMA)
drivers/ata/sata_qstor.c
312
switch (qc->tf.protocol) {
drivers/ata/sata_sil.c
467
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_sil.c
494
if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol))
drivers/ata/sata_sil24.c
790
u8 prot = qc->tf.protocol;
drivers/ata/sata_sil24.c
846
if (!ata_is_atapi(qc->tf.protocol)) {
drivers/ata/sata_sil24.c
849
if (ata_is_data(qc->tf.protocol)) {
drivers/ata/sata_sil24.c
852
if (ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_sil24.c
866
if (ata_is_data(qc->tf.protocol)) {
drivers/ata/sata_svw.c
250
if (qc->tf.protocol != ATA_PROT_DMA)
drivers/ata/sata_svw.c
294
if (qc->tf.protocol == ATA_PROT_DMA)
drivers/ata/sata_sx4.c
347
if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
drivers/ata/sata_sx4.c
349
else if (tf->protocol == ATA_PROT_NODATA)
drivers/ata/sata_sx4.c
359
if (tf->protocol == ATA_PROT_NODATA)
drivers/ata/sata_sx4.c
401
if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
drivers/ata/sata_sx4.c
508
switch (qc->tf.protocol) {
drivers/ata/sata_sx4.c
609
if (rw && qc->tf.protocol == ATA_PROT_DMA) {
drivers/ata/sata_sx4.c
634
switch (qc->tf.protocol) {
drivers/ata/sata_sx4.c
665
if ((qc->tf.protocol == ATA_PROT_DMA) && /* read */
drivers/ata/sata_sx4.c
691
} else if (qc->tf.protocol == ATA_PROT_DMA) { /* write */
drivers/ata/sata_sx4.c
719
} else if (qc->tf.protocol == ATA_PROT_NODATA) {
drivers/ata/sata_sx4.c
904
WARN_ON(tf->protocol == ATA_PROT_DMA ||
drivers/ata/sata_sx4.c
905
tf->protocol == ATAPI_PROT_DMA);
drivers/ata/sata_sx4.c
912
WARN_ON(tf->protocol == ATA_PROT_DMA ||
drivers/ata/sata_sx4.c
913
tf->protocol == ATAPI_PROT_DMA);
drivers/block/aoe/aoecmd.c
71
skb->protocol = __constant_htons(ETH_P_AOE);
drivers/block/drbd/drbd_main.c
772
p->protocol = cpu_to_be32(nc->wire_protocol);
drivers/block/drbd/drbd_protocol.h
302
u32 protocol;
drivers/block/drbd/drbd_protocol.h
385
u32 protocol;
drivers/block/drbd/drbd_receiver.c
3460
p_proto = be32_to_cpu(p->protocol);
drivers/block/xen-blkback/xenbus.c
1058
char protocol[64] = "";
drivers/block/xen-blkback/xenbus.c
1070
"%63s", protocol);
drivers/block/xen-blkback/xenbus.c
1072
strcpy(protocol, "unspecified, assuming default");
drivers/block/xen-blkback/xenbus.c
1073
else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_NATIVE))
drivers/block/xen-blkback/xenbus.c
1075
else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_X86_32))
drivers/block/xen-blkback/xenbus.c
1077
else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_X86_64))
drivers/block/xen-blkback/xenbus.c
1080
xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol);
drivers/block/xen-blkback/xenbus.c
1110
blkif->nr_rings, blkif->blk_protocol, protocol,
drivers/char/ipmi/ipmi_msghandler.c
263
unsigned char protocol;
drivers/char/ipmi/ipmi_msghandler.c
3444
intf->wchannels[set].c[0].protocol
drivers/char/ipmi/ipmi_msghandler.c
3461
chans[ch].protocol = msg->msg.data[3] & 0x1f;
drivers/char/ipmi/ipmi_msghandler.c
3539
intf->wchannels[set].c[0].protocol = IPMI_CHANNEL_PROTOCOL_IPMB;
drivers/crypto/bcm/spu2.c
612
enum spu2_proto_sel protocol,
drivers/crypto/bcm/spu2.c
626
if (protocol)
drivers/crypto/bcm/spu2.c
627
ctrl0 |= (u64)protocol << SPU2_PROTO_SEL_SHIFT;
drivers/dma/qcom/gpi.c
1279
GPII_n_CH_k_SCRATCH_0(pair_chid, chan->protocol, chan->seid));
drivers/dma/qcom/gpi.c
1471
schid = (gchan->protocol == QCOM_GPI_UART) ? gchan->chid : 0;
drivers/dma/qcom/gpi.c
1472
echid = (gchan->protocol == QCOM_GPI_UART) ? schid + 1 : MAX_CHANNELS_PER_GPII;
drivers/dma/qcom/gpi.c
1844
if (gchan->protocol == QCOM_GPI_SPI) {
drivers/dma/qcom/gpi.c
1846
} else if (gchan->protocol == QCOM_GPI_I2C) {
drivers/dma/qcom/gpi.c
1849
dev_err(dev, "invalid peripheral: %d\n", gchan->protocol);
drivers/dma/qcom/gpi.c
1915
if (gpii->gchan[0].protocol != gpii->gchan[1].protocol) {
drivers/dma/qcom/gpi.c
1917
gpii->gchan[0].protocol, gpii->gchan[1].protocol);
drivers/dma/qcom/gpi.c
2156
gchan->protocol = args->args[2];
drivers/dma/qcom/gpi.c
485
u32 protocol;
drivers/firewire/net.c
511
__be16 protocol;
drivers/firewire/net.c
529
protocol = eth->h_proto;
drivers/firewire/net.c
533
protocol = htons(ETH_P_802_3);
drivers/firewire/net.c
535
protocol = htons(ETH_P_802_2);
drivers/firewire/net.c
537
skb->protocol = protocol;
drivers/firewire/net.c
988
switch (ptask->skb->protocol) {
drivers/firmware/arm_scmi/bus.c
418
int protocol, const char *name)
drivers/firmware/arm_scmi/bus.c
430
scmi_dev = scmi_child_dev_find(parent, protocol, name);
drivers/firmware/arm_scmi/bus.c
441
if (protocol == SCMI_PROTOCOL_SYSTEM &&
drivers/firmware/arm_scmi/bus.c
466
scmi_dev->protocol_id = protocol;
drivers/firmware/arm_scmi/bus.c
478
parent->of_node, dev_name(&scmi_dev->dev), protocol, name);
drivers/firmware/arm_scmi/bus.c
489
int protocol, const char *name)
drivers/firmware/arm_scmi/bus.c
493
sdev = __scmi_device_create(np, parent, protocol, name);
drivers/firmware/arm_scmi/bus.c
496
parent->of_node, protocol, name);
drivers/firmware/arm_scmi/bus.c
525
struct device *parent, int protocol,
drivers/firmware/arm_scmi/bus.c
533
return _scmi_device_create(np, parent, protocol, name);
drivers/firmware/arm_scmi/bus.c
536
phead = idr_find(&scmi_requested_devices, protocol);
drivers/firmware/arm_scmi/bus.c
560
void scmi_device_destroy(struct device *parent, int protocol, const char *name)
drivers/firmware/arm_scmi/bus.c
564
scmi_dev = scmi_child_dev_find(parent, protocol, name);
drivers/firmware/arm_scmi/common.h
154
struct device *parent, int protocol,
drivers/firmware/arm_scmi/common.h
156
void scmi_device_destroy(struct device *parent, int protocol, const char *name);
drivers/firmware/efi/libstub/efi-stub-helper.c
264
void *protocol;
drivers/firmware/efi/libstub/efi-stub-helper.c
275
protocol = tcg2;
drivers/firmware/efi/libstub/efi-stub-helper.c
299
protocol = cc;
drivers/firmware/efi/libstub/efi-stub-helper.c
317
status = efi_fn_call(&method, hash_log_extend_event, protocol, 0,
drivers/gpu/drm/i915/display/intel_dp_hdcp.c
743
.protocol = HDCP_PROTOCOL_DP,
drivers/gpu/drm/i915/display/intel_dp_hdcp.c
886
.protocol = HDCP_PROTOCOL_DP,
drivers/gpu/drm/i915/display/intel_hdcp.c
2336
data->protocol = (u8)shim->protocol;
drivers/gpu/drm/i915/display/intel_hdcp_gsc_message.c
45
session_init_in.protocol = data->protocol;
drivers/gpu/drm/i915/display/intel_hdcp_shim.h
102
enum hdcp_wired_protocol protocol;
drivers/gpu/drm/i915/display/intel_hdmi.c
1821
.protocol = HDCP_PROTOCOL_HDMI,
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/disp.c
1284
switch (ctrl->protocol) {
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/disp.c
795
proto = ctrl->protocol;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm/disp.h
92
NvU32 protocol;
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c
103
static int vmw_open_channel(struct rpc_channel *channel, unsigned int protocol)
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c
108
(protocol | GUESTMSG_FLAG_COOKIE), 0,
drivers/hid/intel-ish-hid/ipc/hw-ish-regs.h
164
#define IPC_BUILD_HEADER(length, protocol, busy) \
drivers/hid/intel-ish-hid/ipc/hw-ish-regs.h
166
((protocol) << IPC_HEADER_PROTOCOL_OFFSET) | \
drivers/hsi/clients/ssi_protocol.c
633
skb->protocol = htons(ETH_P_PHONET);
drivers/hsi/clients/ssi_protocol.c
976
if ((skb->protocol != htons(ETH_P_PHONET)) ||
drivers/hwtracing/stm/policy.c
318
CONFIGFS_ATTR_RO(stp_policy_, protocol);
drivers/i2c/busses/i2c-amd8111.c
194
unsigned char protocol, len, pec, temp[2];
drivers/i2c/busses/i2c-amd8111.c
197
protocol = (read_write == I2C_SMBUS_READ) ? AMD_SMB_PRTCL_READ
drivers/i2c/busses/i2c-amd8111.c
203
protocol |= AMD_SMB_PRTCL_QUICK;
drivers/i2c/busses/i2c-amd8111.c
214
protocol |= AMD_SMB_PRTCL_BYTE;
drivers/i2c/busses/i2c-amd8111.c
227
protocol |= AMD_SMB_PRTCL_BYTE_DATA;
drivers/i2c/busses/i2c-amd8111.c
244
protocol |= AMD_SMB_PRTCL_WORD_DATA | pec;
drivers/i2c/busses/i2c-amd8111.c
265
protocol |= AMD_SMB_PRTCL_BLOCK_DATA | pec;
drivers/i2c/busses/i2c-amd8111.c
285
protocol |= AMD_SMB_PRTCL_I2C_BLOCK_DATA;
drivers/i2c/busses/i2c-amd8111.c
300
protocol = AMD_SMB_PRTCL_PROC_CALL | pec;
drivers/i2c/busses/i2c-amd8111.c
319
protocol = AMD_SMB_PRTCL_BLOCK_PROC_CALL | pec;
drivers/i2c/busses/i2c-amd8111.c
331
status = amd_ec_write(smbus, AMD_SMB_PRTCL, protocol);
drivers/i2c/busses/i2c-bcm-iproc.c
928
u32 protocol;
drivers/i2c/busses/i2c-bcm-iproc.c
945
protocol = process_call ?
drivers/i2c/busses/i2c-bcm-iproc.c
948
val |= (protocol << M_CMD_PROTOCOL_SHIFT) |
drivers/i2c/busses/i2c-nforce2.c
169
unsigned char protocol, pec;
drivers/i2c/busses/i2c-nforce2.c
173
protocol = (read_write == I2C_SMBUS_READ) ? NVIDIA_SMB_PRTCL_READ :
drivers/i2c/busses/i2c-nforce2.c
179
protocol |= NVIDIA_SMB_PRTCL_QUICK;
drivers/i2c/busses/i2c-nforce2.c
186
protocol |= NVIDIA_SMB_PRTCL_BYTE;
drivers/i2c/busses/i2c-nforce2.c
193
protocol |= NVIDIA_SMB_PRTCL_BYTE_DATA;
drivers/i2c/busses/i2c-nforce2.c
202
protocol |= NVIDIA_SMB_PRTCL_WORD_DATA | pec;
drivers/i2c/busses/i2c-nforce2.c
220
protocol |= NVIDIA_SMB_PRTCL_BLOCK_DATA | pec;
drivers/i2c/busses/i2c-nforce2.c
229
outb_p(protocol, NVIDIA_SMB_PRTCL);
drivers/i2c/busses/i2c-scmi.c
105
protocol = ACPI_SMBUS_PRTCL_BYTE;
drivers/i2c/busses/i2c-scmi.c
117
protocol = ACPI_SMBUS_PRTCL_BYTE_DATA;
drivers/i2c/busses/i2c-scmi.c
127
protocol = ACPI_SMBUS_PRTCL_WORD_DATA;
drivers/i2c/busses/i2c-scmi.c
137
protocol = ACPI_SMBUS_PRTCL_BLOCK_DATA;
drivers/i2c/busses/i2c-scmi.c
156
protocol |= ACPI_SMBUS_PRTCL_READ;
drivers/i2c/busses/i2c-scmi.c
160
protocol |= ACPI_SMBUS_PRTCL_WRITE;
drivers/i2c/busses/i2c-scmi.c
167
mt_params[0].integer.value = protocol;
drivers/i2c/busses/i2c-scmi.c
80
unsigned char protocol;
drivers/i2c/busses/i2c-scmi.c
94
protocol = ACPI_SMBUS_PRTCL_QUICK;
drivers/i2c/busses/i2c-xgene-slimpro.c
236
u32 addr, u32 addrlen, u32 protocol,
drivers/i2c/busses/i2c-xgene-slimpro.c
242
SLIMPRO_IIC_READ, protocol, addrlen, readlen);
drivers/i2c/busses/i2c-xgene-slimpro.c
250
u32 addr, u32 addrlen, u32 protocol, u32 writelen,
drivers/i2c/busses/i2c-xgene-slimpro.c
256
SLIMPRO_IIC_WRITE, protocol, addrlen, writelen);
drivers/i2c/busses/i2c-xgene-slimpro.c
264
u32 addrlen, u32 protocol, u32 readlen,
drivers/i2c/busses/i2c-xgene-slimpro.c
279
protocol, addrlen, readlen);
drivers/i2c/busses/i2c-xgene-slimpro.c
296
u32 addr, u32 addrlen, u32 protocol, u32 writelen,
drivers/i2c/busses/i2c-xgene-slimpro.c
316
protocol, addrlen, writelen);
drivers/i2c/i2c-core-smbus.c
539
u8 command, int protocol, union i2c_smbus_data *data)
drivers/i2c/i2c-core-smbus.c
548
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
557
u8 command, int protocol, union i2c_smbus_data *data)
drivers/i2c/i2c-core-smbus.c
574
(protocol == I2C_SMBUS_I2C_BLOCK_DATA ||
drivers/i2c/i2c-core-smbus.c
575
protocol == I2C_SMBUS_BLOCK_PROC_CALL ||
drivers/i2c/i2c-core-smbus.c
576
(protocol == I2C_SMBUS_BLOCK_DATA &&
drivers/i2c/i2c-core-smbus.c
586
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
588
command, protocol);
drivers/i2c/i2c-core-smbus.c
605
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
622
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
627
command, protocol, data, res);
drivers/i2c/i2c-core-smbus.c
629
command, protocol, res);
drivers/infiniband/core/lag.c
47
iph->protocol = IPPROTO_UDP;
drivers/infiniband/core/lag.c
72
skb->protocol = eth->h_proto = htons(is_ipv4 ? ETH_P_IP : ETH_P_IPV6);
drivers/infiniband/core/ud_header.c
149
{ STRUCT_FIELD(ip4, protocol),
drivers/infiniband/core/ud_header.c
294
iph.protocol = header->ip4.protocol;
drivers/infiniband/core/ud_header.c
377
header->ip4.protocol = IPPROTO_UDP;
drivers/infiniband/hw/hfi1/ipoib_rx.c
15
skb->protocol = *((__be16 *)data);
drivers/infiniband/hw/irdma/cm.c
500
iph->protocol = IPPROTO_TCP;
drivers/infiniband/hw/mlx4/main.c
3339
.protocol = MLX4_PROT_IB_IPV6,
drivers/infiniband/hw/mlx5/fs.c
415
ntohs(ib_spec->gre.mask.protocol));
drivers/infiniband/hw/mlx5/fs.c
417
ntohs(ib_spec->gre.val.protocol));
drivers/infiniband/hw/ocrdma/ocrdma_ah.c
134
ipv4.protocol = nxthdr;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
466
udh->ip4.protocol = IPPROTO_UDP;
drivers/infiniband/hw/usnic/usnic_fwd.h
116
filter->u.ipv4.protocol = PROTO_UDP;
drivers/infiniband/sw/rxe/rxe_icrc.c
44
(skb->protocol == htons(ETH_P_IP) ?
drivers/infiniband/sw/rxe/rxe_icrc.c
58
if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */
drivers/infiniband/sw/rxe/rxe_net.c
333
iph->protocol = proto;
drivers/infiniband/sw/rxe/rxe_net.c
421
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
423
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/infiniband/sw/rxe/rxe_net.c
457
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
480
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
582
skb->protocol = htons(ETH_P_IP);
drivers/infiniband/sw/rxe/rxe_net.c
584
skb->protocol = htons(ETH_P_IPV6);
drivers/infiniband/sw/rxe/rxe_recv.c
111
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/sw/rxe/rxe_recv.c
121
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/infiniband/sw/rxe/rxe_recv.c
199
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_recv.c
202
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/infiniband/sw/rxe/rxe_recv.c
294
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/sw/rxe/rxe_resp.c
1056
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/sw/rxe/rxe_resp.c
1176
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/ulp/ipoib/ipoib_cm.c
1438
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/ulp/ipoib/ipoib_cm.c
1443
else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/infiniband/ulp/ipoib/ipoib_cm.c
668
skb->protocol = ((struct ipoib_header *) skb->data)->proto;
drivers/infiniband/ulp/ipoib/ipoib_ib.c
255
skb->protocol = ((struct ipoib_header *) skb->data)->proto;
drivers/infiniband/ulp/srpt/ib_dm_mad.h
110
__be16 protocol;
drivers/infiniband/ulp/srpt/ib_srpt.c
421
iocp->protocol = cpu_to_be16(SRP_PROTOCOL);
drivers/input/mouse/alps.c
2728
const struct alps_protocol_info *protocol)
drivers/input/mouse/alps.c
2734
priv->proto_version = protocol->version;
drivers/input/mouse/alps.c
2735
priv->byte0 = protocol->byte0;
drivers/input/mouse/alps.c
2736
priv->mask0 = protocol->mask0;
drivers/input/mouse/alps.c
2737
priv->flags = protocol->flags;
drivers/input/mouse/alps.c
2888
const struct alps_protocol_info *protocol;
drivers/input/mouse/alps.c
2916
protocol = alps_match_table(e7, ec);
drivers/input/mouse/alps.c
2917
if (!protocol) {
drivers/input/mouse/alps.c
2920
protocol = &alps_v4_protocol_data;
drivers/input/mouse/alps.c
2923
protocol = &alps_v5_protocol_data;
drivers/input/mouse/alps.c
2926
protocol = &alps_v7_protocol_data;
drivers/input/mouse/alps.c
2928
protocol = &alps_v3_rushmore_data;
drivers/input/mouse/alps.c
2931
protocol = &alps_v3_protocol_data;
drivers/input/mouse/alps.c
2934
protocol = &alps_v8_protocol_data;
drivers/input/mouse/alps.c
2936
protocol = &alps_v9_protocol_data;
drivers/input/mouse/alps.c
2952
error = alps_set_protocol(psmouse, priv, protocol);
drivers/input/mouse/psmouse-base.c
1515
psmouse->protocol = selected_proto;
drivers/input/mouse/psmouse-base.c
1541
input_dev->id.product = psmouse->protocol->type;
drivers/input/mouse/psmouse-base.c
1602
if (!psmouse->protocol->smbus_companion) {
drivers/input/mouse/psmouse-base.c
162
switch (psmouse->protocol->type) {
drivers/input/mouse/psmouse-base.c
1622
if (!psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
1686
if (psmouse->protocol->type != type)
drivers/input/mouse/psmouse-base.c
1694
if (!psmouse->protocol->smbus_companion) {
drivers/input/mouse/psmouse-base.c
1706
if (!psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
1771
if (psmouse->protocol->smbus_companion &&
drivers/input/mouse/psmouse-base.c
1792
if (psmouse->protocol->smbus_companion &&
drivers/input/mouse/psmouse-base.c
1809
if (!psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
1816
if (retval != -ENODEV && !psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
1853
return sprintf(buf, "%s\n", psmouse->protocol->name);
drivers/input/mouse/psmouse-base.c
1869
if (psmouse->protocol == proto)
drivers/input/mouse/psmouse-base.c
1893
if (psmouse->protocol == proto) {
drivers/input/mouse/psmouse-base.c
1906
old_proto = psmouse->protocol;
drivers/input/mouse/psmouse-base.c
1925
if (psmouse->protocol->smbus_companion) {
drivers/input/mouse/psmouse-base.c
341
!psmouse->protocol->ignore_parity))) {
drivers/input/mouse/psmouse-base.c
80
PSMOUSE_DEFINE_ATTR(protocol, S_IWUSR | S_IRUGO,
drivers/input/mouse/psmouse-base.c
959
psmouse->protocol = &psmouse_protocols[0];
drivers/input/mouse/psmouse.h
96
const struct psmouse_protocol *protocol;
drivers/mailbox/arm_mhuv2.c
503
int channel = 0, i, j, offset = 0, windows, protocol, ch_wn;
drivers/mailbox/arm_mhuv2.c
514
protocol = mhu->protocols[j];
drivers/mailbox/arm_mhuv2.c
518
if (protocol == DOORBELL)
drivers/mailbox/arm_mhuv2.c
528
if (protocol == DOORBELL)
drivers/mailbox/arm_mhuv2.c
797
int channel = 0, i, offset, doorbell, protocol, windows;
drivers/mailbox/arm_mhuv2.c
808
protocol = mhu->protocols[i];
drivers/mailbox/arm_mhuv2.c
811
if (protocol == DOORBELL) {
drivers/mailbox/arm_mhuv2.c
839
int protocol, windows, channels = 0, total_windows = 0, i;
drivers/mailbox/arm_mhuv2.c
842
protocol = mhu->protocols[i];
drivers/mailbox/arm_mhuv2.c
851
if (protocol == DOORBELL) {
drivers/mailbox/arm_mhuv2.c
853
} else if (protocol == DATA_TRANSFER) {
drivers/mailbox/arm_mhuv2.c
857
protocol, MHUV2_PROTOCOL_PROP, i);
drivers/mailbox/arm_mhuv2.c
878
int protocol, windows = 0, next_window = 0, i, j, k;
drivers/mailbox/arm_mhuv2.c
889
protocol = mhu->protocols[i];
drivers/mailbox/arm_mhuv2.c
892
if (protocol == DATA_TRANSFER) {
drivers/media/dvb-core/dvb_net.c
747
h->priv->ule_skb->protocol = dvb_net_eth_type_trans(h->priv->ule_skb,
drivers/media/dvb-core/dvb_net.c
980
skb->protocol = dvb_net_eth_type_trans(skb, dev);
drivers/media/i2c/ir-kbd-i2c.c
100
*protocol = RC_PROTO_RC5;
drivers/media/i2c/ir-kbd-i2c.c
112
*protocol = RC_PROTO_RC6_MCE;
drivers/media/i2c/ir-kbd-i2c.c
119
*protocol = RC_PROTO_RC6_6A_32;
drivers/media/i2c/ir-kbd-i2c.c
133
static int get_key_haup(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/i2c/ir-kbd-i2c.c
136
return get_key_haup_common(ir, protocol, scancode, toggle, 3);
drivers/media/i2c/ir-kbd-i2c.c
139
static int get_key_haup_xvr(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/i2c/ir-kbd-i2c.c
155
return get_key_haup_common(ir, protocol, scancode, toggle, 6);
drivers/media/i2c/ir-kbd-i2c.c
158
static int get_key_pixelview(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/i2c/ir-kbd-i2c.c
173
*protocol = RC_PROTO_OTHER;
drivers/media/i2c/ir-kbd-i2c.c
179
static int get_key_fusionhdtv(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/i2c/ir-kbd-i2c.c
201
*protocol = RC_PROTO_UNKNOWN;
drivers/media/i2c/ir-kbd-i2c.c
207
static int get_key_knc1(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/i2c/ir-kbd-i2c.c
235
*protocol = RC_PROTO_UNKNOWN;
drivers/media/i2c/ir-kbd-i2c.c
241
static int get_key_geniatech(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/i2c/ir-kbd-i2c.c
272
*protocol = RC_PROTO_RC5;
drivers/media/i2c/ir-kbd-i2c.c
278
static int get_key_avermedia_cardbus(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/i2c/ir-kbd-i2c.c
312
*protocol = RC_PROTO_UNKNOWN;
drivers/media/i2c/ir-kbd-i2c.c
324
enum rc_proto protocol = 0;
drivers/media/i2c/ir-kbd-i2c.c
330
rc = ir->get_key(ir, &protocol, &scancode, &toggle);
drivers/media/i2c/ir-kbd-i2c.c
338
__func__, protocol, scancode);
drivers/media/i2c/ir-kbd-i2c.c
339
rc_keydown(ir->rc, protocol, scancode, toggle);
drivers/media/i2c/ir-kbd-i2c.c
59
static int get_key_haup_common(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/bt8xx/bttv-input.c
323
static int get_key_pv951(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/bt8xx/bttv-input.c
355
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/cx88/cx88-input.c
554
static int get_key_pvr2000(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/cx88/cx88-input.c
579
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/ivtv/ivtv-i2c.c
137
static int get_key_adaptec(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/ivtv/ivtv-i2c.c
157
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/saa7134/saa7134-input.c
105
static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
154
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/saa7134/saa7134-input.c
161
enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
205
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/saa7134/saa7134-input.c
212
static int get_key_kworld_pc150u(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
257
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/saa7134/saa7134-input.c
263
static int get_key_purpletv(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
286
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/saa7134/saa7134-input.c
292
static int get_key_beholdm6xx(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
323
*protocol = RC_PROTO_NECX;
drivers/media/pci/saa7134/saa7134-input.c
332
static int get_key_pinnacle(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
373
*protocol = RC_PROTO_UNKNOWN;
drivers/media/pci/saa7134/saa7134-input.c
390
static int get_key_pinnacle_grey(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
394
return get_key_pinnacle(ir, protocol, scancode, toggle, 1, 0xfe, 0xff);
drivers/media/pci/saa7134/saa7134-input.c
402
static int get_key_pinnacle_color(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/saa7134/saa7134-input.c
411
return get_key_pinnacle(ir, protocol, scancode, toggle, 2, 0x80, 0x88);
drivers/media/rc/bpf-lirc.c
38
BPF_CALL_4(bpf_rc_keydown, u32*, sample, u32, protocol, u64, scancode,
drivers/media/rc/bpf-lirc.c
45
rc_keydown(ctrl->dev, protocol, scancode, toggle != 0);
drivers/media/rc/img-ir/img-ir-hw.c
822
request.protocol = RC_PROTO_UNKNOWN;
drivers/media/rc/img-ir/img-ir-hw.c
836
rc_keydown(hw->rdev, request.protocol, request.scancode,
drivers/media/rc/img-ir/img-ir-hw.h
140
enum rc_proto protocol;
drivers/media/rc/img-ir/img-ir-jvc.c
22
request->protocol = RC_PROTO_JVC;
drivers/media/rc/img-ir/img-ir-nec.c
34
request->protocol = RC_PROTO_NEC32;
drivers/media/rc/img-ir/img-ir-nec.c
41
request->protocol = RC_PROTO_NECX;
drivers/media/rc/img-ir/img-ir-nec.c
47
request->protocol = RC_PROTO_NEC;
drivers/media/rc/img-ir/img-ir-rc5.c
32
request->protocol = RC_PROTO_RC5;
drivers/media/rc/img-ir/img-ir-rc6.c
53
request->protocol = RC_PROTO_RC6_0;
drivers/media/rc/img-ir/img-ir-sanyo.c
43
request->protocol = RC_PROTO_SANYO;
drivers/media/rc/img-ir/img-ir-sharp.c
31
request->protocol = RC_PROTO_SHARP;
drivers/media/rc/img-ir/img-ir-sony.c
24
request->protocol = RC_PROTO_SONY12;
drivers/media/rc/img-ir/img-ir-sony.c
33
request->protocol = RC_PROTO_SONY15;
drivers/media/rc/img-ir/img-ir-sony.c
43
request->protocol = RC_PROTO_SONY20;
drivers/media/rc/ir-imon-decoder.c
190
static int ir_imon_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-jvc-decoder.c
188
static int ir_jvc_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-mce_kbd-decoder.c
400
static int ir_mce_kbd_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-mce_kbd-decoder.c
407
if (protocol == RC_PROTO_MCIR2_KBD) {
drivers/media/rc/ir-nec-decoder.c
176
static u32 ir_nec_scancode_to_raw(enum rc_proto protocol, u32 scancode)
drivers/media/rc/ir-nec-decoder.c
182
if (protocol == RC_PROTO_NEC32) {
drivers/media/rc/ir-nec-decoder.c
188
} else if (protocol == RC_PROTO_NECX) {
drivers/media/rc/ir-nec-decoder.c
232
static int ir_nec_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-nec-decoder.c
240
raw = ir_nec_scancode_to_raw(protocol, scancode);
drivers/media/rc/ir-rc5-decoder.c
125
protocol = RC_PROTO_RC5X_20;
drivers/media/rc/ir-rc5-decoder.c
139
protocol = RC_PROTO_RC5;
drivers/media/rc/ir-rc5-decoder.c
152
protocol = RC_PROTO_RC5_SZ;
drivers/media/rc/ir-rc5-decoder.c
158
scancode, protocol, toggle);
drivers/media/rc/ir-rc5-decoder.c
160
rc_keydown(dev, protocol, scancode, toggle);
drivers/media/rc/ir-rc5-decoder.c
209
static int ir_rc5_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-rc5-decoder.c
217
if (protocol == RC_PROTO_RC5) {
drivers/media/rc/ir-rc5-decoder.c
230
} else if (protocol == RC_PROTO_RC5X_20) {
drivers/media/rc/ir-rc5-decoder.c
253
} else if (protocol == RC_PROTO_RC5_SZ) {
drivers/media/rc/ir-rc5-decoder.c
45
enum rc_proto protocol;
drivers/media/rc/ir-rc6-decoder.c
216
protocol = RC_PROTO_RC6_0;
drivers/media/rc/ir-rc6-decoder.c
231
protocol = RC_PROTO_RC6_6A_20;
drivers/media/rc/ir-rc6-decoder.c
235
protocol = RC_PROTO_RC6_6A_24;
drivers/media/rc/ir-rc6-decoder.c
243
protocol = RC_PROTO_RC6_MCE;
drivers/media/rc/ir-rc6-decoder.c
248
protocol = RC_PROTO_RC6_6A_32;
drivers/media/rc/ir-rc6-decoder.c
259
protocol, scancode, toggle);
drivers/media/rc/ir-rc6-decoder.c
266
rc_keydown(dev, protocol, scancode, toggle);
drivers/media/rc/ir-rc6-decoder.c
309
static int ir_rc6_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-rc6-decoder.c
315
if (protocol == RC_PROTO_RC6_0) {
drivers/media/rc/ir-rc6-decoder.c
339
switch (protocol) {
drivers/media/rc/ir-rc6-decoder.c
85
enum rc_proto protocol;
drivers/media/rc/ir-rcmm-decoder.c
201
static int ir_rcmm_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-rcmm-decoder.c
207
switch (protocol) {
drivers/media/rc/ir-sanyo-decoder.c
189
static int ir_sanyo_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-sharp-decoder.c
192
static int ir_sharp_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-sony-decoder.c
122
protocol = RC_PROTO_SONY12;
drivers/media/rc/ir-sony-decoder.c
131
protocol = RC_PROTO_SONY15;
drivers/media/rc/ir-sony-decoder.c
140
protocol = RC_PROTO_SONY20;
drivers/media/rc/ir-sony-decoder.c
151
rc_keydown(dev, protocol, scancode, 0);
drivers/media/rc/ir-sony-decoder.c
187
static int ir_sony_encode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/ir-sony-decoder.c
194
if (protocol == RC_PROTO_SONY12) {
drivers/media/rc/ir-sony-decoder.c
197
} else if (protocol == RC_PROTO_SONY15) {
drivers/media/rc/ir-sony-decoder.c
37
enum rc_proto protocol;
drivers/media/rc/meson-ir.c
243
u8 protocol;
drivers/media/rc/meson-ir.c
251
protocol = DEC_MODE_NEC;
drivers/media/rc/meson-ir.c
256
if (protocol_timings[i].hw_protocol == protocol)
drivers/media/rc/meson-ir.c
261
protocol);
drivers/media/rc/meson-ir.c
401
dev_info(&dev->dev, "hw decoder init, protocol: %d\n", protocol);
drivers/media/rc/rc-core-priv.h
38
int (*encode)(enum rc_proto protocol, u32 scancode,
drivers/media/rc/rc-ir-raw.c
519
int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode,
drivers/media/rc/rc-ir-raw.c
524
u64 mask = 1ULL << protocol;
drivers/media/rc/rc-ir-raw.c
531
ret = handler->encode(protocol, scancode, events, max);
drivers/media/rc/rc-ir-raw.c
591
int ir_raw_encode_carrier(enum rc_proto protocol)
drivers/media/rc/rc-ir-raw.c
595
u64 mask = BIT_ULL(protocol);
drivers/media/rc/rc-main.c
1550
enum rc_proto protocol = RC_PROTO_UNKNOWN;
drivers/media/rc/rc-main.c
1567
protocol = i;
drivers/media/rc/rc-main.c
1578
u64 mask = 1ULL << protocol;
drivers/media/rc/rc-main.c
1588
if (dev->wakeup_protocol != protocol) {
drivers/media/rc/rc-main.c
1589
dev->wakeup_protocol = protocol;
drivers/media/rc/rc-main.c
1590
dev_dbg(&dev->dev, "Wakeup protocol changed to %d\n", protocol);
drivers/media/rc/rc-main.c
1592
if (protocol == RC_PROTO_RC6_MCE)
drivers/media/rc/rc-main.c
721
static unsigned int repeat_period(int protocol)
drivers/media/rc/rc-main.c
723
if (protocol >= ARRAY_SIZE(protocols))
drivers/media/rc/rc-main.c
726
return protocols[protocol].repeat_period;
drivers/media/rc/rc-main.c
780
static void ir_do_keydown(struct rc_dev *dev, enum rc_proto protocol,
drivers/media/rc/rc-main.c
784
dev->last_protocol != protocol ||
drivers/media/rc/rc-main.c
788
.scancode = scancode, .rc_proto = protocol,
drivers/media/rc/rc-main.c
803
dev->last_protocol = protocol;
drivers/media/rc/rc-main.c
813
dev->device_name, keycode, protocol, scancode);
drivers/media/rc/rc-main.c
849
void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u64 scancode,
drivers/media/rc/rc-main.c
856
ir_do_keydown(dev, protocol, scancode, keycode, toggle);
drivers/media/rc/rc-main.c
860
msecs_to_jiffies(repeat_period(protocol));
drivers/media/rc/rc-main.c
879
void rc_keydown_notimeout(struct rc_dev *dev, enum rc_proto protocol,
drivers/media/rc/rc-main.c
886
ir_do_keydown(dev, protocol, scancode, keycode, toggle);
drivers/media/rc/rc-main.c
948
enum rc_proto protocol = dev->wakeup_protocol;
drivers/media/rc/rc-main.c
950
if (protocol >= ARRAY_SIZE(protocols))
drivers/media/rc/rc-main.c
953
mask = protocols[protocol].scancode_bits;
drivers/media/rc/rc-main.c
955
if (!rc_validate_scancode(protocol, s))
drivers/media/usb/cx231xx/cx231xx-input.c
17
static int get_key_isdbt(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/usb/cx231xx/cx231xx-input.c
43
*protocol = RC_PROTO_OTHER;
drivers/media/usb/dvb-usb/dib0700_core.c
680
d->props.rc.core.protocol = *rc_proto;
drivers/media/usb/dvb-usb/dib0700_core.c
712
enum rc_proto protocol;
drivers/media/usb/dvb-usb/dib0700_core.c
744
switch (d->props.rc.core.protocol) {
drivers/media/usb/dvb-usb/dib0700_core.c
764
protocol = RC_PROTO_NEC32;
drivers/media/usb/dvb-usb/dib0700_core.c
771
protocol = RC_PROTO_NECX;
drivers/media/usb/dvb-usb/dib0700_core.c
776
protocol = RC_PROTO_NEC;
drivers/media/usb/dvb-usb/dib0700_core.c
782
protocol = RC_PROTO_RC5;
drivers/media/usb/dvb-usb/dib0700_core.c
797
rc_keydown(d->rc_dev, protocol, keycode, toggle);
drivers/media/usb/dvb-usb/dib0700_devices.c
518
enum rc_proto protocol;
drivers/media/usb/dvb-usb/dib0700_devices.c
550
switch (d->props.rc.core.protocol) {
drivers/media/usb/dvb-usb/dib0700_devices.c
559
protocol = RC_PROTO_NEC;
drivers/media/usb/dvb-usb/dib0700_devices.c
566
protocol = RC_PROTO_RC5;
drivers/media/usb/dvb-usb/dib0700_devices.c
572
rc_keydown(d->rc_dev, protocol, scancode, toggle);
drivers/media/usb/dvb-usb/dvb-usb.h
208
u64 protocol;
drivers/media/usb/em28xx/em28xx-input.c
104
enum rc_proto *protocol, u32 *scancode)
drivers/media/usb/em28xx/em28xx-input.c
128
*protocol = RC_PROTO_RC5;
drivers/media/usb/em28xx/em28xx-input.c
134
enum rc_proto *protocol,
drivers/media/usb/em28xx/em28xx-input.c
147
*protocol = RC_PROTO_UNKNOWN;
drivers/media/usb/em28xx/em28xx-input.c
153
enum rc_proto *protocol,
drivers/media/usb/em28xx/em28xx-input.c
184
*protocol = RC_PROTO_UNKNOWN;
drivers/media/usb/em28xx/em28xx-input.c
219
poll_result->protocol = RC_PROTO_RC5;
drivers/media/usb/em28xx/em28xx-input.c
224
poll_result->protocol = RC_PROTO_NEC;
drivers/media/usb/em28xx/em28xx-input.c
229
poll_result->protocol = RC_PROTO_UNKNOWN;
drivers/media/usb/em28xx/em28xx-input.c
265
poll_result->protocol = RC_PROTO_RC5;
drivers/media/usb/em28xx/em28xx-input.c
271
&poll_result->protocol);
drivers/media/usb/em28xx/em28xx-input.c
275
poll_result->protocol = RC_PROTO_RC6_0;
drivers/media/usb/em28xx/em28xx-input.c
280
poll_result->protocol = RC_PROTO_UNKNOWN;
drivers/media/usb/em28xx/em28xx-input.c
296
enum rc_proto protocol;
drivers/media/usb/em28xx/em28xx-input.c
299
rc = ir->get_key_i2c(ir->i2c_client, &protocol, &scancode);
drivers/media/usb/em28xx/em28xx-input.c
307
__func__, protocol, scancode);
drivers/media/usb/em28xx/em28xx-input.c
308
rc_keydown(ir->rc, protocol, scancode, 0);
drivers/media/usb/em28xx/em28xx-input.c
331
poll_result.protocol,
drivers/media/usb/em28xx/em28xx-input.c
45
enum rc_proto protocol;
drivers/media/usb/em28xx/em28xx-input.c
63
int (*get_key_i2c)(struct i2c_client *ir, enum rc_proto *protocol,
drivers/media/usb/em28xx/em28xx-input.c
73
enum rc_proto *protocol, u32 *scancode)
drivers/media/usb/em28xx/em28xx-input.c
98
*protocol = RC_PROTO_UNKNOWN;
drivers/message/fusion/mptlan.c
815
skb->protocol = mpt_lan_type_trans(skb, dev);
drivers/misc/mei/hdcp/mei_hdcp.c
63
session_init_in.protocol = data->protocol;
drivers/misc/sgi-xp/xpnet.c
238
skb->protocol = eth_type_trans(skb, xpnet_device);
drivers/net/amt.c
2333
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2347
skb->protocol = htons(ETH_P_IPV6);
drivers/net/amt.c
2427
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2454
skb->protocol = htons(ETH_P_IPV6);
drivers/net/amt.c
2503
if (iptunnel_pull_header(skb, hdr_size, skb->protocol, false))
drivers/net/amt.c
2546
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2566
skb->protocol = htons(ETH_P_IPV6);
drivers/net/amt.c
2667
iph->protocol = IPPROTO_UDP;
drivers/net/amt.c
532
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
549
iph->protocol = IPPROTO_IGMP;
drivers/net/amt.c
687
iph->protocol = IPPROTO_UDP;
drivers/net/amt.c
778
iph->protocol = IPPROTO_UDP;
drivers/net/amt.c
829
skb->protocol = htons(ETH_P_IPV6);
drivers/net/arcnet/arc-rawmode.c
77
skb->protocol = cpu_to_be16(ETH_P_ARCNET);
drivers/net/arcnet/arcnet.c
709
lp->hw.status(dev), lp->cur_tx, lp->next_tx, skb->len, skb->protocol);
drivers/net/arcnet/capmode.c
193
lp->outgoing.skb->protocol, acked);
drivers/net/arcnet/capmode.c
218
ackskb->protocol = cpu_to_be16(ETH_P_ARCNET);
drivers/net/arcnet/capmode.c
91
skb->protocol = cpu_to_be16(ETH_P_ARCNET);
drivers/net/arcnet/rfc1051.c
157
skb->protocol = type_trans(skb, dev);
drivers/net/arcnet/rfc1201.c
235
skb->protocol = type_trans(skb, dev);
drivers/net/arcnet/rfc1201.c
371
skb->protocol = type_trans(skb, dev);
drivers/net/bareudp.c
317
if (skb_vlan_inet_prepare(skb, skb->protocol != htons(ETH_P_TEB)))
drivers/net/bareudp.c
387
if (skb_vlan_inet_prepare(skb, skb->protocol != htons(ETH_P_TEB)))
drivers/net/bareudp.c
465
if (!bareudp_proto_valid(bareudp, skb->protocol)) {
drivers/net/bareudp.c
77
if (skb->protocol == htons(ETH_P_IP))
drivers/net/bonding/bond_3ad.c
1013
skb->protocol = PKT_TYPE_LACPDU;
drivers/net/bonding/bond_3ad.c
2926
if (skb->protocol != PKT_TYPE_LACPDU)
drivers/net/bonding/bond_3ad.c
959
skb->protocol = PKT_TYPE_LACPDU;
drivers/net/bonding/bond_alb.c
1382
switch (skb->protocol) {
drivers/net/bonding/bond_alb.c
1433
switch (ntohs(skb->protocol)) {
drivers/net/bonding/bond_alb.c
1443
if (iph->daddr == ip_bcast || iph->protocol == IPPROTO_IGMP) {
drivers/net/bonding/bond_alb.c
277
if (skb->protocol != cpu_to_be16(ETH_P_ARP))
drivers/net/bonding/bond_alb.c
939
skb->protocol = pkt.type;
drivers/net/bonding/bond_main.c
3427
bool is_ipv6 = skb->protocol == __cpu_to_be16(ETH_P_IPV6);
drivers/net/bonding/bond_main.c
3429
bool is_arp = skb->protocol == __cpu_to_be16(ETH_P_ARP);
drivers/net/bonding/bond_main.c
4143
*ip_proto = iph->protocol;
drivers/net/bonding/bond_main.c
4293
return __bond_xmit_hash(bond, skb, skb->data, skb->protocol,
drivers/net/bonding/bond_main.c
4979
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/bonding/bond_main.c
4987
if (iph->protocol == IPPROTO_IGMP) {
drivers/net/bonding/bond_main.c
5028
if (iph->protocol == IPPROTO_IGMP) {
drivers/net/bonding/bond_main.c
5284
if (skb->protocol == htons(ETH_P_ARP))
drivers/net/bonding/bond_main.c
5287
if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/can/dev/skb.c
230
skb->protocol = htons(ETH_P_CAN);
drivers/net/can/dev/skb.c
261
skb->protocol = htons(ETH_P_CANFD);
drivers/net/can/dev/skb.c
299
skb->protocol = htons(ETH_P_CANXL);
drivers/net/can/dev/skb.c
375
switch (ntohs(skb->protocol)) {
drivers/net/can/dev/skb.c
62
(skb->protocol != htons(ETH_P_CAN) &&
drivers/net/can/dev/skb.c
63
skb->protocol != htons(ETH_P_CANFD) &&
drivers/net/can/dev/skb.c
64
skb->protocol != htons(ETH_P_CANXL))) {
drivers/net/can/janz-ican3.c
1309
skb->protocol = htons(ETH_P_CAN);
drivers/net/ethernet/3com/3c509.c
1023
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/3com/3c59x.c
2571
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/3com/3c59x.c
2663
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/3com/typhoon.c
1700
new_skb->protocol = eth_type_trans(new_skb, tp->dev);
drivers/net/ethernet/8390/lib8390.c
740
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/actions/owl-emac.c
830
curr_skb->protocol = eth_type_trans(curr_skb, netdev);
drivers/net/ethernet/adaptec/starfire.c
1487
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/adi/adin1110.c
355
rxb->protocol = eth_type_trans(rxb, port_priv->netdev);
drivers/net/ethernet/aeroflex/greth.c
810
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/aeroflex/greth.c
924
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/agere/et131x.c
2283
skb->protocol = eth_type_trans(skb, adapter->netdev);
drivers/net/ethernet/airoha/airoha_eth.c
710
q->skb->protocol = eth_type_trans(q->skb, netdev);
drivers/net/ethernet/airoha/airoha_eth.h
386
u8 protocol;
drivers/net/ethernet/airoha/airoha_eth.h
432
u8 protocol;
drivers/net/ethernet/alacritech/slicoss.c
605
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/alibaba/eea/eea_rx.c
427
skb->protocol = eth_type_trans(skb, enet->netdev);
drivers/net/ethernet/allwinner/sun4i-emac.c
254
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/allwinner/sun4i-emac.c
752
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/altera/altera_tse_main.c
409
skb->protocol = eth_type_trans(skb, priv->dev);
drivers/net/ethernet/amazon/ena/ena_netdev.c
1003
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/amazon/ena/ena_netdev.c
1026
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/amazon/ena/ena_netdev.c
2464
l4_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/amd/7990.c
338
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/a2065.c
306
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/amd8111e.c
754
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/ariadne.c
215
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/atarilance.c
1025
skb->protocol = eth_type_trans( skb, dev );
drivers/net/ethernet/amd/au1000_eth.c
797
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/declance.c
628
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/pcnet32.c
1274
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/sun3lance.c
835
skb->protocol = eth_type_trans( skb, dev );
drivers/net/ethernet/amd/sunlance.c
548
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/sunlance.c
716
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1484
switch (skb->protocol) {
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1486
if (ip_hdr(skb)->protocol != IPPROTO_UDP)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2391
(skb->protocol == htons(ETH_P_8021Q)))
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2435
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
77
if (ih->protocol != IPPROTO_TCP)
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
86
if (ih->protocol != IPPROTO_UDP)
drivers/net/ethernet/apm/xgene-v2/main.c
327
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
319
if (unlikely(skb->protocol != htons(ETH_P_IP)) &&
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
320
unlikely(skb->protocol != htons(ETH_P_8021Q)))
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
330
if (likely(iph->protocol == IPPROTO_TCP)) {
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
362
} else if (iph->protocol == IPPROTO_UDP) {
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
596
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
602
if (iph->protocol != IPPROTO_TCP && iph->protocol != IPPROTO_UDP)
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
651
skb->protocol == htons(ETH_P_8021Q))
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
707
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/apple/bmac.c
708
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/apple/mace.c
933
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/apple/macmace.c
665
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/aquantia/atlantic/aq_main.c
110
if (unlikely(skb->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/aquantia/atlantic/aq_main.c
111
ip_hdr(skb)->protocol == IPPROTO_UDP &&
drivers/net/ethernet/aquantia/atlantic/aq_main.c
117
if (unlikely(skb->protocol == htons(ETH_P_IPV6) &&
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
720
l4proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
780
dx_buff->is_ip_cso = (htons(ETH_P_IP) == skb->protocol);
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
702
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/arc/emac_main.c
250
rx_buff->skb->protocol = eth_type_trans(rx_buff->skb, ndev);
drivers/net/ethernet/asix/ax88796c_main.c
431
skb->protocol = eth_type_trans(skb, ax_local->ndev);
drivers/net/ethernet/asix/ax88796c_main.c
434
skb->len + sizeof(struct ethhdr), skb->protocol);
drivers/net/ethernet/atheros/ag71xx.c
1658
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/atheros/alx/main.c
1438
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/atheros/alx/main.c
260
skb->protocol = eth_type_trans(skb, rxq->netdev);
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
1935
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1458
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1613
if (skb->protocol == htons(ETH_P_IP) ||
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1897
if (skb->protocol == htons(ETH_P_8021Q))
drivers/net/ethernet/atheros/atlx/atl1.c
2012
skb->protocol = eth_type_trans(skb, adapter->netdev);
drivers/net/ethernet/atheros/atlx/atl1.c
2118
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/atheros/atlx/atl1.c
2405
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/atheros/atlx/atl2.c
428
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
180
switch (skb->protocol) {
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
185
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
563
skb->protocol = eth_type_trans(skb, intf->ndev);
drivers/net/ethernet/broadcom/b44.c
825
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/broadcom/bcm4908_enet.c
630
skb->protocol = eth_type_trans(skb, enet->netdev);
drivers/net/ethernet/broadcom/bcm63xx_enet.c
401
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/broadcom/bcmsysport.c
1248
ip_ver = skb->protocol;
drivers/net/ethernet/broadcom/bcmsysport.c
1251
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/bcmsysport.c
828
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/broadcom/bgmac.c
482
skb->protocol = eth_type_trans(skb, bgmac->net_dev);
drivers/net/ethernet/broadcom/bnge/bnge_txrx.c
507
if (iph->protocol == IPPROTO_UDP)
drivers/net/ethernet/broadcom/bnge/bnge_txrx.c
675
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/broadcom/bnge/bnge_txrx.c
960
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/broadcom/bnx2.c
3264
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/broadcom/bnx2.c
3267
skb->protocol != htons(0x8100) &&
drivers/net/ethernet/broadcom/bnx2.c
3268
skb->protocol != htons(ETH_P_8021AD)) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
1081
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3366
__be16 protocol;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3371
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3372
if (protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3377
prot = ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3387
if (inner_ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3621
((skb->protocol == cpu_to_be16(ETH_P_8021Q)) <<
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3721
((skb->protocol == cpu_to_be16(ETH_P_8021Q)) <<
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3724
if (ip_hdr(skb)->protocol == IPPROTO_UDP) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3816
txq_index, skb->ip_summed, skb->protocol, ipv6_hdr(skb)->nexthdr,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
3817
ip_hdr(skb)->protocol, skb_shinfo(skb)->gso_type, xmit_type,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
748
switch (be16_to_cpu(skb->protocol)) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
758
be16_to_cpu(skb->protocol));
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
812
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2522
table[j++].protocol = ent->app_id;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
716
app.protocol = ent->app_id;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
14168
l4_proto = &ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1677
if (iph->protocol == IPPROTO_UDP)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1831
bnxt_gro_tunnel(skb, skb->protocol);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
2000
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
2352
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
367
if (fw_app->protocol_id == cpu_to_be16(app->protocol) &&
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
379
fw_app->protocol_id = cpu_to_be16(app->protocol);
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
461
dscp2pri->dscp = app->protocol;
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
662
if (app->protocol > bp->max_dscp_value)
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
686
app->protocol == ETH_P_IBOE) ||
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
688
app->protocol == ROCE_V2_UDP_DPORT))
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
714
app->protocol == ETH_P_IBOE) ||
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
716
app->protocol == ROCE_V2_UDP_DPORT))
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
915
encap_ipv4->protocol = IPPROTO_UDP;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
2078
ip_ver = skb->protocol;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
2081
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
2432
skb->protocol = eth_type_trans(skb, priv->dev);
drivers/net/ethernet/broadcom/sb1250-mac.c
1144
sb->protocol = eth_type_trans(sb,d->sbdma_eth->sbm_dev);
drivers/net/ethernet/broadcom/tg3.c
6959
skb->protocol = eth_type_trans(skb, tp->dev);
drivers/net/ethernet/broadcom/tg3.c
6962
skb->protocol != htons(ETH_P_8021Q) &&
drivers/net/ethernet/broadcom/tg3.c
6963
skb->protocol != htons(ETH_P_8021AD)) {
drivers/net/ethernet/broadcom/tg3.c
8019
if (skb->protocol == htons(ETH_P_8021Q) ||
drivers/net/ethernet/broadcom/tg3.c
8020
skb->protocol == htons(ETH_P_8021AD)) {
drivers/net/ethernet/broadcom/tg3.c
8082
if (skb->protocol == htons(ETH_P_8021Q) ||
drivers/net/ethernet/broadcom/tg3.c
8083
skb->protocol == htons(ETH_P_8021AD)) {
drivers/net/ethernet/brocade/bna/bnad.c
2858
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/brocade/bna/bnad.c
581
skb->protocol = eth_type_trans(skb, bnad->netdev);
drivers/net/ethernet/cadence/macb_main.c
1643
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/cadence/macb_main.c
1745
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/cadence/macb_main.c
2214
if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/cadence/macb_main.c
2376
if (!skb_is_nonlinear(skb) || (ip_hdr(skb)->protocol != IPPROTO_UDP))
drivers/net/ethernet/cadence/macb_main.c
2499
if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/cadence/macb_main.c
5190
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/calxeda/xgmac.c
1205
skb->protocol = eth_type_trans(skb, priv->dev);
drivers/net/ethernet/cavium/liquidio/lio_core.c
668
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c
328
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
417
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
832
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1366
proto = (ip.v4->version == 4) ? ip.v4->protocol :
drivers/net/ethernet/chelsio/cxgb/sge.c
1379
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/chelsio/cxgb/sge.c
1381
skb->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/chelsio/cxgb/sge.c
1817
if (skb->protocol == htons(ETH_P_CPL5))
drivers/net/ethernet/chelsio/cxgb/sge.c
1866
ip_hdr(skb)->protocol == IPPROTO_UDP) {
drivers/net/ethernet/chelsio/cxgb/sge.c
1878
if (skb->protocol == htons(ETH_P_ARP) &&
drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
881
skb->protocol = htons(0xffff);
drivers/net/ethernet/chelsio/cxgb3/sge.c
2056
return skb->protocol == htons(ETH_P_ARP);
drivers/net/ethernet/chelsio/cxgb3/sge.c
2092
skb->protocol = eth_type_trans(skb, adap->port[p->iff]);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
1032
if (!(app->selector && app->protocol))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
1036
prio = __cxgb4_getapp(dev, app->selector - 1, app->protocol, 0);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
1054
if (!(app->selector && app->protocol))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
1062
ret = __cxgb4_setapp(dev, app->selector - 1, app->protocol,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
1171
table[i].protocol =
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
367
.protocol = be16_to_cpu(fwap->protocolid),
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
389
app.selector, app.protocol, app.priority, -err);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
75
app.protocol = dcb->app_priority[i].protocolid;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
90
app.protocol, -err);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
906
.protocol = app_id,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
1158
if (skb->protocol == htons(ETH_P_FCOE))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
1172
ip_hdr(skb)->protocol;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c
65
likely(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c
66
ip_hdr(skb)->protocol == IPPROTO_UDP &&
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c
154
__be16 protocol = cls->common.protocol;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c
167
if (protocol != htons(ETH_P_IP) && protocol != htons(ETH_P_IPV6))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c
170
inet_family = (protocol == htons(ETH_P_IPV6)) ? PF_INET6 : PF_INET;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c
205
if (protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/chelsio/cxgb4/sge.c
1156
proto = (ver == 4) ? inner_ip_hdr(skb)->protocol :
drivers/net/ethernet/chelsio/cxgb4/sge.c
1160
proto = (ver == 4) ? ip_hdr(skb)->protocol :
drivers/net/ethernet/chelsio/cxgb4/sge.c
1242
if (skb->protocol != htons(ETH_P_FCOE))
drivers/net/ethernet/chelsio/cxgb4/sge.c
1280
l4_hdr = ip_hdr(skb)->protocol;
drivers/net/ethernet/chelsio/cxgb4/sge.c
1687
if (skb->protocol == htons(ETH_P_FCOE))
drivers/net/ethernet/chelsio/cxgb4/sge.c
2198
proto = (ver == 6) ? ipv6_hdr(skb)->nexthdr : ip_hdr(skb)->protocol;
drivers/net/ethernet/chelsio/cxgb4/sge.c
3402
skb->protocol = htons(0xffff);
drivers/net/ethernet/chelsio/cxgb4/sge.c
3742
skb->protocol = eth_type_trans(skb, q->netdev);
drivers/net/ethernet/chelsio/cxgb4vf/sge.c
1086
if (iph->protocol == IPPROTO_TCP)
drivers/net/ethernet/chelsio/cxgb4vf/sge.c
1088
else if (iph->protocol == IPPROTO_UDP)
drivers/net/ethernet/chelsio/cxgb4vf/sge.c
1644
skb->protocol = eth_type_trans(skb, rspq->netdev);
drivers/net/ethernet/cirrus/cs89x0.c
471
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/cirrus/ep93xx_eth.c
290
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/cirrus/mac89x0.c
474
skb->protocol=eth_type_trans(skb,dev);
drivers/net/ethernet/cisco/enic/enic_clsf.c
28
data.u.ipv4.protocol = PROTO_TCP;
drivers/net/ethernet/cisco/enic/enic_clsf.c
31
data.u.ipv4.protocol = PROTO_UDP;
drivers/net/ethernet/cisco/enic/enic_main.c
266
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/cisco/enic/enic_main.c
659
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/cisco/enic/enic_main.c
663
} else if (skb->protocol == cpu_to_be16(ETH_P_IPV6)) {
drivers/net/ethernet/cisco/enic/vnic_devcmd.h
602
u32 protocol;
drivers/net/ethernet/cortina/gemini.c
1158
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/cortina/gemini.c
1159
tcp = (ip_hdr(skb)->protocol == IPPROTO_TCP);
drivers/net/ethernet/cortina/gemini.c
1218
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/davicom/dm9000.c
1170
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/davicom/dm9051.c
803
skb->protocol = eth_type_trans(skb, db->ndev);
drivers/net/ethernet/dec/tulip/de2104x.c
466
skb->protocol = eth_type_trans (skb, de->dev);
drivers/net/ethernet/dec/tulip/dmfe.c
1013
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/dec/tulip/interrupt.c
253
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/dec/tulip/interrupt.c
482
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/dec/tulip/uli526x.c
864
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/dec/tulip/winbond-840.c
1249
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/dec/tulip/xircom_cb.c
1128
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/dlink/dl2k.c
998
skb->protocol = eth_type_trans (skb, dev);
drivers/net/ethernet/dlink/sundance.c
1392
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/ec_bhf.c
218
skb->protocol = eth_type_trans(skb, priv->net_dev);
drivers/net/ethernet/emulex/benet/be.h
895
val = (ip_hdr(skb)->protocol == IPPROTO_TCP);
drivers/net/ethernet/emulex/benet/be.h
907
val = (ip_hdr(skb)->protocol == IPPROTO_UDP);
drivers/net/ethernet/emulex/benet/be.h
916
return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4;
drivers/net/ethernet/emulex/benet/be_main.c
1135
eth_hdr_len = ntohs(skb->protocol) == ETH_P_8021Q ?
drivers/net/ethernet/emulex/benet/be_main.c
1268
#define is_arp(skb) (skb->protocol == htons(ETH_P_ARP))
drivers/net/ethernet/emulex/benet/be_main.c
1318
if ((*skb)->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/emulex/benet/be_main.c
1463
if (ip_hdr(skb)->protocol == IPPROTO_TCP) {
drivers/net/ethernet/emulex/benet/be_main.c
1473
} else if (ip_hdr(skb)->protocol ==
drivers/net/ethernet/emulex/benet/be_main.c
1482
j, skb, skb->len, skb->protocol);
drivers/net/ethernet/emulex/benet/be_main.c
2417
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/emulex/benet/be_main.c
5101
l4_hdr = ip_hdr(skb)->protocol;
drivers/net/ethernet/emulex/benet/be_main.c
806
inner_ip_hdr(skb)->protocol : inner_ipv6_hdr(skb)->nexthdr;
drivers/net/ethernet/emulex/benet/be_main.c
812
ip_hdr(skb)->protocol : ipv6_hdr(skb)->nexthdr;
drivers/net/ethernet/engleder/tsnep_main.c
1407
skb->protocol = eth_type_trans(skb, rx->adapter->netdev);
drivers/net/ethernet/ethoc.c
455
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/ezchip/nps_enet.c
116
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/faraday/ftgmac100.c
604
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/faraday/ftgmac100.c
738
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/faraday/ftgmac100.c
739
u8 ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/faraday/ftmac100.c
481
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/fealnx.c
1727
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
1478
u16 ethertype = ntohs(skb->protocol);
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
1508
l4_proto = iph->protocol;
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
1521
ntohs(skb->protocol));
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
2813
skb->protocol = eth_type_trans(skb, net_dev);
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
567
skb->protocol = eth_type_trans(skb, priv->net_dev);
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
2546
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/freescale/dpaa2/dpmac.c
226
enum dpmac_eth_if protocol)
drivers/net/ethernet/freescale/dpaa2/dpmac.c
234
cmd_params->eth_if = protocol;
drivers/net/ethernet/freescale/dpaa2/dpmac.h
298
enum dpmac_eth_if protocol);
drivers/net/ethernet/freescale/enetc/enetc.c
1590
skb->protocol = eth_type_trans(skb, rx_ring->ndev);
drivers/net/ethernet/freescale/enetc/enetc.c
636
len, ip_hdr(skb)->protocol, sum);
drivers/net/ethernet/freescale/fec_main.c
1883
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/freescale/fec_main.c
4398
if (eth_type_vlan(skb->protocol)) {
drivers/net/ethernet/freescale/fec_main.c
449
return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4;
drivers/net/ethernet/freescale/fec_mpc52xx.c
431
rskb->protocol = eth_type_trans(rskb, dev);
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
261
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/freescale/gianfar.c
1695
if (ip_hdr(skb)->protocol == IPPROTO_UDP) {
drivers/net/ethernet/freescale/gianfar.c
2539
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/freescale/ucc_geth.c
2933
skb->protocol = eth_type_trans(skb, ugeth->ndev);
drivers/net/ethernet/fungible/funeth/funeth_rx.c
412
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/google/gve/gve_utils.c
78
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c
517
buffer->skb->protocol = eth_type_trans(buffer->skb,
drivers/net/ethernet/hisilicon/hip04_eth.c
622
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/hisilicon/hisi_femac.c
283
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
551
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/hisilicon/hns/hns_enet.c
151
__be16 protocol;
drivers/net/ethernet/hisilicon/hns/hns_enet.c
173
protocol = skb->protocol;
drivers/net/ethernet/hisilicon/hns/hns_enet.c
177
if (protocol == htons(ETH_P_8021Q)) {
drivers/net/ethernet/hisilicon/hns/hns_enet.c
179
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns/hns_enet.c
180
skb->protocol = protocol;
drivers/net/ethernet/hisilicon/hns/hns_enet.c
183
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns/hns_enet.c
188
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/hisilicon/hns/hns_enet.c
44
__be16 protocol;
drivers/net/ethernet/hisilicon/hns/hns_enet.c
722
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/hisilicon/hns/hns_enet.c
74
protocol = skb->protocol;
drivers/net/ethernet/hisilicon/hns/hns_enet.c
77
if (protocol == htons(ETH_P_8021Q)) {
drivers/net/ethernet/hisilicon/hns/hns_enet.c
79
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns/hns_enet.c
80
skb->protocol = protocol;
drivers/net/ethernet/hisilicon/hns/hns_enet.c
83
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns/hns_enet.c
89
if (iphdr->protocol == IPPROTO_TCP &&
drivers/net/ethernet/hisilicon/hns/hns_enet.c
97
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1285
if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1291
} else if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1292
l4_proto_tmp = l3.v4->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1316
l4_proto_tmp = l3.v4->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1378
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1387
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1525
if (!(skb->protocol == htons(ETH_P_8021Q) ||
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1540
if (skb->protocol == htons(ETH_P_8021Q) &&
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1546
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1554
if (skb->protocol == htons(ETH_P_8021Q) &&
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1561
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1573
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3038
__be16 protocol = skb->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3041
if (protocol == htons(ETH_P_8021Q))
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3042
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3044
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3046
else if (protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3878
__be16 type = skb->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
4357
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
403
app->protocol >= HNAE3_MAX_DSCP ||
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
408
app->protocol, app->priority);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
410
if (app->priority == h->kinfo.dscp_prio[app->protocol])
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
418
old_app.protocol = app->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
419
old_app.priority = h->kinfo.dscp_prio[app->protocol];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
421
h->kinfo.dscp_prio[app->protocol] = app->priority;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
426
h->kinfo.dscp_prio[app->protocol] = old_app.priority;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
448
app->protocol >= HNAE3_MAX_DSCP ||
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
450
app->priority != h->kinfo.dscp_prio[app->protocol])
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
454
app->protocol, app->priority);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
460
h->kinfo.dscp_prio[app->protocol] = HNAE3_PRIO_ID_INVALID;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
465
h->kinfo.dscp_prio[app->protocol] = app->priority;
drivers/net/ethernet/huawei/hinic/hinic_rx.c
422
skb->protocol = eth_type_trans(skb, rxq->netdev);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
211
*l4_proto = ip->v4->protocol;
drivers/net/ethernet/huawei/hinic/hinic_tx.c
375
l4_proto = ip.v4->protocol;
drivers/net/ethernet/huawei/hinic3/hinic3_rx.c
413
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
244
l4_proto = ip.v4->protocol;
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
283
*l4_proto = ip->v4->protocol;
drivers/net/ethernet/i825xx/82596.c
814
skb->protocol=eth_type_trans(skb,dev);
drivers/net/ethernet/i825xx/ether1.c
868
skb->protocol = eth_type_trans (skb, dev);
drivers/net/ethernet/i825xx/lib82596.c
764
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/i825xx/sun3_82586.c
784
skb->protocol=eth_type_trans(skb,dev);
drivers/net/ethernet/ibm/ehea/ehea_main.c
1970
switch (ip_hdr(skb)->protocol) {
drivers/net/ethernet/ibm/ehea/ehea_main.c
550
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/ibm/emac/core.c
1795
skb->protocol = eth_type_trans(skb, dev->ndev);
drivers/net/ethernet/ibm/ibmveth.c
1245
((skb->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/ibm/ibmveth.c
1246
ip_hdr(skb)->protocol != IPPROTO_TCP) ||
drivers/net/ethernet/ibm/ibmveth.c
1247
(skb->protocol == htons(ETH_P_IPV6) &&
drivers/net/ethernet/ibm/ibmveth.c
1339
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/ibm/ibmveth.c
1342
if (iph->protocol == IPPROTO_TCP) {
drivers/net/ethernet/ibm/ibmveth.c
1348
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/ibm/ibmveth.c
1389
skb_proto = be16_to_cpu(skb->protocol);
drivers/net/ethernet/ibm/ibmveth.c
1404
iph_proto = iph->protocol;
drivers/net/ethernet/ibm/ibmveth.c
1513
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/ibm/ibmveth.c
1518
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/ibm/ibmvnic.c
2186
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/ibm/ibmvnic.c
2187
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/ethernet/ibm/ibmvnic.c
2189
else if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/ibm/ibmvnic.c
2191
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/ibm/ibmvnic.c
2571
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/ibm/ibmvnic.c
2573
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/ibm/ibmvnic.c
2574
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/ibm/ibmvnic.c
3594
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/e100.c
2017
skb->protocol = eth_type_trans(skb, nic->netdev);
drivers/net/ethernet/intel/e1000/e1000_main.c
2696
__be16 protocol)
drivers/net/ethernet/intel/e1000/e1000_main.c
2714
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/intel/e1000/e1000_main.c
2766
__be16 protocol)
drivers/net/ethernet/intel/e1000/e1000_main.c
2777
switch (protocol) {
drivers/net/ethernet/intel/e1000/e1000_main.c
2779
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/ethernet/intel/e1000/e1000_main.c
2790
skb->protocol);
drivers/net/ethernet/intel/e1000/e1000_main.c
3112
__be16 protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/e1000/e1000_main.c
3224
tso = e1000_tso(adapter, tx_ring, skb, protocol);
drivers/net/ethernet/intel/e1000/e1000_main.c
3234
} else if (likely(e1000_tx_csum(adapter, tx_ring, skb, protocol)))
drivers/net/ethernet/intel/e1000/e1000_main.c
3237
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/e1000/e1000_main.c
4002
skb->protocol = eth_type_trans(skb, adapter->netdev);
drivers/net/ethernet/intel/e1000e/netdev.c
5467
__be16 protocol)
drivers/net/ethernet/intel/e1000e/netdev.c
5486
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/intel/e1000e/netdev.c
5532
__be16 protocol)
drivers/net/ethernet/intel/e1000e/netdev.c
5544
switch (protocol) {
drivers/net/ethernet/intel/e1000e/netdev.c
5546
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/ethernet/intel/e1000e/netdev.c
5557
be16_to_cpu(protocol));
drivers/net/ethernet/intel/e1000e/netdev.c
573
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/e1000e/netdev.c
5768
if (ip->protocol != IPPROTO_UDP)
drivers/net/ethernet/intel/e1000e/netdev.c
5828
__be16 protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/e1000e/netdev.c
5900
tso = e1000_tso(tx_ring, skb, protocol);
drivers/net/ethernet/intel/e1000e/netdev.c
5908
else if (e1000_tx_csum(tx_ring, skb, protocol))
drivers/net/ethernet/intel/e1000e/netdev.c
5915
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/fm10k/fm10k_main.c
435
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/intel/fm10k/fm10k_main.c
687
l4_hdr = ip_hdr(skb)->protocol;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
712
inner_l4_hdr = inner_ip_hdr(skb)->protocol;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
801
__be16 protocol;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
808
protocol = fm10k_tx_encap_offload(skb);
drivers/net/ethernet/intel/fm10k/fm10k_main.c
809
if (!protocol) {
drivers/net/ethernet/intel/fm10k/fm10k_main.c
820
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/fm10k/fm10k_main.c
825
switch (protocol) {
drivers/net/ethernet/intel/fm10k/fm10k_main.c
827
l4_hdr = network_hdr.ipv4->protocol;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
856
protocol, l4_hdr);
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
520
if ((skb->protocol == htons(ETH_P_8021Q)) &&
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
552
skb->protocol = (ntohs(proto) >= 1536) ? proto :
drivers/net/ethernet/intel/i40e/i40e_dcb.c
381
dcbcfg->app[i].protocolid = ntohs(app->protocol);
drivers/net/ethernet/intel/i40e/i40e_dcb.h
139
__be16 protocol;
drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
213
new_app.protocolid = app->protocol;
drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
270
app->protocol == pf->tmp_cfg.app[i].protocolid &&
drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
760
.protocol = id,
drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
907
sapp.protocol = dcbxcfg->app[i].protocolid;
drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
935
sapp.protocol = app->protocolid;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
178
ip.protocol = l4proto;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
1871
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2899
l4_proto = hdr.ipv4->protocol;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3005
__be16 protocol = skb->protocol;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3008
if (protocol == htons(ETH_P_8021Q) &&
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3017
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3026
} else if (protocol == htons(ETH_P_8021Q)) {
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3033
protocol = vhdr->h_vlan_encapsulated_proto;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3080
__be16 protocol;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3105
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3107
if (eth_p_mpls(protocol))
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3260
__be16 protocol;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3266
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3268
if (eth_p_mpls(protocol)) {
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3295
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3366
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3731
hash = (__force u16)skb->protocol ^ skb->hash;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
326
iph->protocol = fltr->ip_data.proto;
drivers/net/ethernet/intel/iavf/iavf_main.c
4227
switch (ntohs(cls_u32->common.protocol)) {
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1160
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1882
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1950
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
2299
__be16 protocol;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
2345
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
2348
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/iavf/iavf_txrx.c
2350
else if (protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/intel/ice/ice_dcb.c
488
dcbcfg->app[i].prot_id = ntohs(app->protocol);
drivers/net/ethernet/intel/ice/ice_dcb.h
134
__be16 protocol;
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
1072
sapp.protocol = dcbxcfg->app[i].prot_id;
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
1096
sapp.protocol = app->prot_id;
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
695
.protocol = id,
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
757
if (app->protocol >= DSCP_MAX) {
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
759
app->protocol);
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
785
if (test_and_set_bit(app->protocol, new_cfg->dscp_mapped)) {
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
787
app->protocol);
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
796
new_app.prot_id = app->protocol;
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
845
new_cfg->dscp_map[app->protocol] = app->priority;
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
895
app->protocol == new_cfg->app[i].prot_id &&
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
926
clear_bit(app->protocol, new_cfg->dscp_mapped);
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
928
new_cfg->dscp_map[app->protocol] = app->protocol %
drivers/net/ethernet/intel/ice/ice_protocol_type.h
184
u8 protocol;
drivers/net/ethernet/intel/ice/ice_protocol_type.h
257
__be16 protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1608
__be16 frag_off, protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1616
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1618
if (eth_p_mpls(protocol)) {
drivers/net/ethernet/intel/ice/ice_txrx.c
1647
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1718
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1815
if (!skb_vlan_tag_present(skb) && eth_type_vlan(skb->protocol))
drivers/net/ethernet/intel/ice/ice_txrx.c
1855
__be16 protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1870
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1872
if (eth_p_mpls(protocol))
drivers/net/ethernet/intel/ice/ice_txrx.c
2299
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ice/ice_txrx.c
2301
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/intel/ice/ice_txrx_lib.c
236
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/ice/virt/fdir.c
971
input->ip.v4.proto = iph->protocol;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
124
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
419
__be16 protocol;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
438
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
439
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
441
else if (protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
57
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/igb/igb.h
277
__be16 protocol;
drivers/net/ethernet/intel/igb/igb_main.c
6469
tx_buffer->protocol = 0;
drivers/net/ethernet/intel/igb/igb_main.c
6534
__be16 protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/igb/igb_main.c
6587
first->protocol = protocol;
drivers/net/ethernet/intel/igb/igb_main.c
8929
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/intel/igb/igb_main.c
9580
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/igbvf/netdev.c
2067
u32 tx_flags, __be16 protocol)
drivers/net/ethernet/intel/igbvf/netdev.c
2274
__be16 protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/igbvf/netdev.c
2303
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/igbvf/netdev.c
2316
else if (igbvf_tx_csum(tx_ring, skb, tx_flags, protocol) &&
drivers/net/ethernet/intel/igbvf/netdev.c
352
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/igc/igc.h
100
__be16 protocol;
drivers/net/ethernet/intel/igc/igc_main.c
1107
buffer->protocol = 0;
drivers/net/ethernet/intel/igc/igc_main.c
1606
__be16 protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/igc/igc_main.c
1693
first->protocol = protocol;
drivers/net/ethernet/intel/igc/igc_main.c
1859
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/intel/igc/igc_main.c
2431
buffer->protocol = 0;
drivers/net/ethernet/intel/igc/igc_main.c
3103
bi->protocol = 0;
drivers/net/ethernet/intel/igc/igc_main.c
7534
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/igc/igc_tsn.c
39
buffer->protocol = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe.h
268
__be16 protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
34
.protocol = ETH_P_FCOE,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
370
.protocol = ETH_P_FCOE,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
477
.protocol = id,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
629
app->protocol == ETH_P_FCOE) {
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
642
app->protocol == 0) {
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
672
app->protocol == ETH_P_FCOE) {
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
685
app->protocol == 0 && adapter->default_up == app->priority) {
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
1100
if (first->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
10221
__be16 protocol = cls->common.protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
10242
if (protocol != htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
1921
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8080
.protocol = 0,
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8760
if (eth_p_mpls(first->protocol))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9146
if ((first->protocol != htons(ETH_P_IP)) &&
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9147
(first->protocol != htons(ETH_P_IPV6)))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9156
first->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9157
hdr.ipv4->protocol == IPPROTO_UDP) {
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9185
l4_proto = hdr.ipv4->protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9234
common.port.src ^= th->dest ^ first->protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9348
tx_buff->protocol = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9404
__be16 protocol = skb->protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9434
} else if (protocol == htons(ETH_P_8021Q)) {
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9444
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9494
first->protocol = protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9498
if ((protocol == htons(ETH_P_FCOE)) &&
drivers/net/ethernet/intel/ixgbevf/ipsec.c
499
if (first->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
39
__be16 protocol;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
1021
tx_buffer->protocol = 0;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3855
if (eth_p_mpls(first->protocol))
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3952
if (first->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
4237
first->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
551
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/jme.c
1019
skb->protocol = eth_type_trans(skb, jme->dev);
drivers/net/ethernet/jme.c
2048
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/jme.c
2072
switch (skb->protocol) {
drivers/net/ethernet/jme.c
2074
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/jme.c
946
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/jme.c
950
if (ip_hdr(skb)->protocol != IPPROTO_UDP ||
drivers/net/ethernet/korina.c
656
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/lantiq_etop.c
144
skb->protocol = eth_type_trans(skb, ch->netdev);
drivers/net/ethernet/lantiq_xrx200.c
269
ch->skb_head->protocol = eth_type_trans(ch->skb_head, net_dev);
drivers/net/ethernet/litex/litex_liteeth.c
79
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/marvell/mv643xx_eth.c
570
skb->protocol = eth_type_trans(skb, mp->dev);
drivers/net/ethernet/marvell/mv643xx_eth.c
680
BUG_ON(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/marvell/mv643xx_eth.c
681
skb->protocol != htons(ETH_P_8021Q));
drivers/net/ethernet/marvell/mv643xx_eth.c
706
switch (ip_hdr(skb)->protocol) {
drivers/net/ethernet/marvell/mvneta.c
1967
l4_proto = ip4h->protocol;
drivers/net/ethernet/marvell/mvneta.c
2515
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/marvell/mvneta.c
2602
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/marvell/mvneta.c
2651
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
3618
l4_proto = ip4h->protocol;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
4058
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c
500
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_rx.c
490
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
1053
if ((ip_hdr(skb)->protocol == IPPROTO_UDP) ||
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
825
if (eth_type_vlan(skb->protocol))
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
826
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
828
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
829
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
834
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/marvell/prestera/prestera_matchall.c
66
__be16 protocol = f->common.protocol;
drivers/net/ethernet/marvell/prestera/prestera_matchall.c
88
if (protocol != htons(ETH_P_ALL))
drivers/net/ethernet/marvell/prestera/prestera_rxtx.c
249
skb->protocol = eth_type_trans(skb, port->dev);
drivers/net/ethernet/marvell/pxa168_eth.c
831
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/marvell/skge.c
2776
if (ipip_hdr(skb)->protocol == IPPROTO_UDP &&
drivers/net/ethernet/marvell/skge.c
3118
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/marvell/sky2.c
1906
if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/marvell/sky2.c
2753
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/mediatek/mtk_eth_soc.c
2369
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/mediatek/mtk_ppe.c
785
switch (skb->protocol) {
drivers/net/ethernet/mediatek/mtk_ppe.h
151
u8 protocol;
drivers/net/ethernet/mediatek/mtk_ppe.h
195
u8 protocol;
drivers/net/ethernet/mediatek/mtk_star_emac.c
1321
desc_data.skb->protocol = eth_type_trans(desc_data.skb, ndev);
drivers/net/ethernet/mediatek/mtk_wed.c
1973
skb->protocol = eh->h_proto;
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
262
.protocol = id,
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
281
app.protocol = id;
drivers/net/ethernet/mellanox/mlx4/en_main.c
396
.protocol = MLX4_PROT_ETH,
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
381
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
388
if ((ip->protocol != IPPROTO_TCP) && (ip->protocol != IPPROTO_UDP))
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
392
ip_proto = ip->protocol;
drivers/net/ethernet/mellanox/mlx4/en_rx.c
555
__u8 ipproto = iph->protocol;
drivers/net/ethernet/mellanox/mlx4/en_tx.c
1050
proto = (ip.v4->version == 4) ? ip.v4->protocol :
drivers/net/ethernet/mellanox/mlx4/intf.c
192
enum mlx4_protocol protocol;
drivers/net/ethernet/mellanox/mlx4/intf.c
213
madrv->protocol);
drivers/net/ethernet/mellanox/mlx4/intf.c
218
protocol = madrv->protocol;
drivers/net/ethernet/mellanox/mlx4/intf.c
232
protocol, enable ? "enabled" : "disabled");
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
145
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
147
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
297
&ip->protocol, e);
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
402
&ip->protocol, e);
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c
46
greh->protocol = htons(ETH_P_TEB);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
67
l4_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
87
swp_spec.tun_l4_proto = inner_ip_hdr(skb)->protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1812
iphdr->protocol = IPPROTO_ESP;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
237
(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
238
skb->protocol != htons(ETH_P_IPV6))))
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
244
((struct iphdr *)skb_network_header(skb))->protocol :
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
284
(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
285
skb->protocol != htons(ETH_P_IPV6)))) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
65
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
94
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
153
if (unlikely(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
154
skb->protocol != htons(ETH_P_IPV6)))
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
194
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
44
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
69
skb_inner_network_offset(skb)))->protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
88
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
1144
temp.protocol = i;
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
499
(app->protocol >= MLX5E_MAX_DSCP))
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
504
temp.protocol = app->protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
505
temp.priority = priv->dcbx_dp.dscp2prio[app->protocol];
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
515
if (app->priority != priv->dcbx_dp.dscp2prio[app->protocol]) {
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
516
err = mlx5e_set_dscp2prio(priv, app->protocol, app->priority);
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
552
(app->protocol >= MLX5E_MAX_DSCP))
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
560
if (app->priority != priv->dcbx_dp.dscp2prio[app->protocol])
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
569
err = mlx5e_set_dscp2prio(priv, app->protocol, 0);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
5090
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1223
if (ipv4->protocol == IPPROTO_TCP)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1286
return (proto == htons(ETH_P_IP)) ? ((struct iphdr *)ip_p)->protocol :
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1501
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
2573
skb->protocol = *((__be16 *)(skb->data));
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c
123
iph->protocol = IPPROTO_UDP;
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c
143
skb->protocol = htons(ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c
181
if (iph->protocol != IPPROTO_UDP)
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3481
__u8 protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3517
ttl_word->protocol ||
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
1412
curr_fc->byte_off += MLX5_BYTE_OFF(header_vxlan_gpe, protocol);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
1413
curr_fc->bit_mask = __mlx5_mask(header_vxlan_gpe, protocol);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
1414
curr_fc->bit_off = __mlx5_dw_bit_off(header_vxlan_gpe, protocol);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.h
711
u8 protocol[0x8];
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v0.c
1187
DR_STE_SET_TAG(eth_l4, tag, protocol, spec, ip_protocol);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v0.c
858
DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, protocol, spec, ip_protocol);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
1096
DR_STE_SET_TAG(eth_l3_ipv4_5_tuple_v1, tag, protocol, spec, ip_protocol);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
1406
DR_STE_SET_TAG(eth_l4_v1, tag, protocol, spec, ip_protocol);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5_ifc_dr.h
262
u8 protocol[0x8];
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5_ifc_dr.h
328
u8 protocol[0x8];
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5_ifc_dr_ste_v1.h
313
u8 protocol[0x8];
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5_ifc_dr_ste_v1.h
360
u8 protocol[0x8];
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_rx.c
299
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/mellanox/mlxsw/reg.h
3120
MLXSW_ITEM32(reg, pemrbt, protocol, 0x00, 0, 1);
drivers/net/ethernet/mellanox/mlxsw/reg.h
3130
mlxsw_reg_pemrbt_pack(char *payload, enum mlxsw_reg_pemrbt_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
3134
mlxsw_reg_pemrbt_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7223
enum mlxsw_reg_ritr_loopback_protocol protocol =
drivers/net/ethernet/mellanox/mlxsw/reg.h
7226
mlxsw_reg_ritr_loopback_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7766
MLXSW_ITEM32(reg, ralta, protocol, 0x00, 24, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7777
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
7782
mlxsw_reg_ralta_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7878
MLXSW_ITEM32(reg, raltb, protocol, 0x00, 12, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7889
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
7894
mlxsw_reg_raltb_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7912
MLXSW_ITEM32(reg, ralue, protocol, 0x00, 24, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8103
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8108
mlxsw_reg_ralue_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8118
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8123
mlxsw_reg_ralue_pack(payload, protocol, op, virtual_router, prefix_len);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8128
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8133
mlxsw_reg_ralue_pack(payload, protocol, op, virtual_router, prefix_len);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8346
MLXSW_ITEM32(reg, raleu, protocol, 0x00, 24, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8380
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8387
mlxsw_reg_raleu_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
2318
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c
35
enum mlxsw_reg_pemrbt_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c
43
mlxsw_reg_pemrbt_pack(pemrbt_pl, protocol, group_id);
drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c
179
if (app->protocol >= 64) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c
181
app->protocol);
drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c
187
if (app->protocol) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c
206
__be16 protocol = f->common.protocol;
drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c
241
if (protocol != htons(ETH_P_ALL)) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
2012
if (f->common.protocol != htons(ETH_P_ALL)) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
425
ip_tunnel_init_flow(&fl4, parms.iph.protocol, *daddrp, *saddrp,
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c
83
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/micrel/ks8842.c
624
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/micrel/ks8842.c
679
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/micrel/ks8851_common.c
282
skb->protocol = eth_type_trans(skb, ks->netdev);
drivers/net/ethernet/micrel/ksz884x.c
4436
skb->protocol = old->protocol;
drivers/net/ethernet/micrel/ksz884x.c
4489
skb->protocol == htons(ETH_P_IPV6))) {
drivers/net/ethernet/micrel/ksz884x.c
4590
unsigned short protocol;
drivers/net/ethernet/micrel/ksz884x.c
4593
protocol = skb->protocol;
drivers/net/ethernet/micrel/ksz884x.c
4596
if (protocol == htons(ETH_P_8021Q)) {
drivers/net/ethernet/micrel/ksz884x.c
4597
protocol = iph->tot_len;
drivers/net/ethernet/micrel/ksz884x.c
4601
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/micrel/ksz884x.c
4602
if (iph->protocol == IPPROTO_TCP)
drivers/net/ethernet/micrel/ksz884x.c
4640
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/microchip/enc28j60.c
973
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/microchip/encx24j600.c
347
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/microchip/lan743x_main.c
2593
rx->skb_head->protocol = eth_type_trans(rx->skb_head,
drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c
148
if (app->protocol)
drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c
155
if (app->protocol >= LAN966X_PORT_QOS_DSCP_COUNT)
drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c
162
if (app->protocol >= LAN966X_PORT_QOS_PCP_DEI_COUNT)
drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c
173
netdev_err(dev, "Invalid entry: %d:%d\n", app->protocol,
drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c
318
app_itr.protocol = proto;
drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c
60
app_itr.protocol = i;
drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c
67
app_itr.protocol = i;
drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c
457
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
537
if (eth_type_vlan(skb->protocol)) {
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
543
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
544
ip_hdr(skb)->protocol == IPPROTO_IGMP)
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
548
skb->protocol == htons(ETH_P_IPV6) &&
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
713
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/microchip/sparx5/lan969x/lan969x_fdma.c
134
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/microchip/sparx5/sparx5_dcb.c
160
app_itr.protocol = i;
drivers/net/ethernet/microchip/sparx5/sparx5_dcb.c
167
app_itr.protocol = i;
drivers/net/ethernet/microchip/sparx5/sparx5_dcb.c
358
app_itr.protocol = proto;
drivers/net/ethernet/microchip/sparx5/sparx5_dcb.c
54
if (app->protocol != 0)
drivers/net/ethernet/microchip/sparx5/sparx5_dcb.c
61
if (app->protocol >= SPARX5_PORT_QOS_DSCP_COUNT)
drivers/net/ethernet/microchip/sparx5/sparx5_dcb.c
68
if (app->protocol >= SPARX5_PORT_QOS_PCP_DEI_COUNT)
drivers/net/ethernet/microchip/sparx5/sparx5_dcb.c
79
netdev_err(dev, "Invalid entry: %d:%d\n", app->protocol,
drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c
170
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
161
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/microsoft/mana/mana_en.c
151
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/microsoft/mana/mana_en.c
154
if (ip->protocol == IPPROTO_TCP)
drivers/net/ethernet/microsoft/mana/mana_en.c
157
if (ip->protocol == IPPROTO_UDP)
drivers/net/ethernet/microsoft/mana/mana_en.c
159
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/microsoft/mana/mana_en.c
2057
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/microsoft/mana/mana_en.c
427
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/microsoft/mana/mana_en.c
429
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/moxa/moxart_ether.c
252
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/mscc/ocelot.c
1387
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/mscc/ocelot_fdma.c
374
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/mscc/ocelot_flower.c
609
u16 proto = ntohs(f->common.protocol);
drivers/net/ethernet/mscc/ocelot_net.c
271
if (f->common.protocol != htons(ETH_P_ALL))
drivers/net/ethernet/natsemi/natsemi.c
2376
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/natsemi/ns83820.c
1101
if (IPPROTO_TCP == ip_hdr(skb)->protocol)
drivers/net/ethernet/natsemi/ns83820.c
1103
else if (IPPROTO_UDP == ip_hdr(skb)->protocol)
drivers/net/ethernet/natsemi/ns83820.c
897
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/natsemi/sonic.c
590
used_skb->protocol = eth_type_trans(used_skb,
drivers/net/ethernet/netronome/nfp/abm/cls.c
244
if (cls_u32->common.protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/netronome/nfp/abm/cls.c
245
cls_u32->common.protocol != htons(ETH_P_IPV6)) {
drivers/net/ethernet/netronome/nfp/abm/cls.c
255
cls_u32->common.protocol,
drivers/net/ethernet/netronome/nfp/bpf/main.c
126
if (cls_bpf->common.protocol != htons(ETH_P_ALL)) {
drivers/net/ethernet/netronome/nfp/flower/action.c
565
__u8 protocol;
drivers/net/ethernet/netronome/nfp/flower/action.c
611
if (ttl_word_mask->protocol || ttl_word_mask->check) {
drivers/net/ethernet/netronome/nfp/flower/offload.c
1735
if (!eth_proto_is_802_3(flower->common.protocol))
drivers/net/ethernet/netronome/nfp/nfd3/dp.c
1098
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/netronome/nfp/nfd3/dp.c
146
l4_hdr = iph->protocol;
drivers/net/ethernet/netronome/nfp/nfd3/xsk.c
93
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/netronome/nfp/nfdk/dp.c
1217
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
2136
l4_hdr = ip_hdr(skb)->protocol;
drivers/net/ethernet/netronome/nfp/nic/dcb.c
446
old_app.protocol = app->protocol;
drivers/net/ethernet/netronome/nfp/nic/dcb.c
447
old_app.priority = dcb->dscp2prio[app->protocol];
drivers/net/ethernet/netronome/nfp/nic/dcb.c
458
err = nfp_nic_set_dscp2prio(nn, app->protocol, app->priority);
drivers/net/ethernet/netronome/nfp/nic/dcb.c
490
if (app->priority != dcb->dscp2prio[app->protocol])
drivers/net/ethernet/netronome/nfp/nic/dcb.c
494
err = nfp_nic_set_dscp2prio(nn, app->protocol, 0);
drivers/net/ethernet/ni/nixge.c
626
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/nvidia/forcedeth.c
2960
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/nvidia/forcedeth.c
3031
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/nxp/lpc_eth.c
946
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/oa_tc6.c
799
tc6->rx_skb->protocol = eth_type_trans(tc6->rx_skb, tc6->netdev);
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
1097
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
1101
if (iph->protocol == IPPROTO_TCP) {
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
1112
} else if (iph->protocol == IPPROTO_UDP) {
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
1691
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/pasemi/pasemi_mac.c
1357
switch (ip_hdr(skb)->protocol) {
drivers/net/ethernet/pasemi/pasemi_mac.c
1464
switch (ip_hdr(skb)->protocol) {
drivers/net/ethernet/pasemi/pasemi_mac.c
769
skb->protocol = eth_type_trans(skb, mac->netdev);
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
1352
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
1358
} else if (skb->protocol == cpu_to_be16(ETH_P_IPV6)) {
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
1376
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
1382
} else if (skb->protocol == cpu_to_be16(ETH_P_IPV6)) {
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
263
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
1550
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
1613
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
1615
if (skb->protocol == htons(ETH_P_8021Q))
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1846
__be16 protocol = skb->protocol;
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1853
if (protocol == cpu_to_be16(ETH_P_8021Q)) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1856
protocol = vh->h_vlan_encapsulated_proto;
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1881
opcode = (protocol == cpu_to_be16(ETH_P_IPV6)) ?
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1888
if (protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1889
l4proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1895
} else if (protocol == cpu_to_be16(ETH_P_IPV6)) {
drivers/net/ethernet/qlogic/qed/qed.h
811
u8 protocol;
drivers/net/ethernet/qlogic/qed/qed.h
812
#define IS_QED_ETH_IF(cdev) ((cdev)->protocol == QED_PROTOCOL_ETH)
drivers/net/ethernet/qlogic/qed/qed.h
813
#define IS_QED_FCOE_IF(cdev) ((cdev)->protocol == QED_PROTOCOL_FCOE)
drivers/net/ethernet/qlogic/qed/qed_cxt.c
1971
if (p_hwfn->mcp_info->func_info.protocol == QED_PCI_ETH_RDMA) {
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
1979
table[i].protocol =
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
2261
app->selector, app->protocol);
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
2282
(entry->proto_id == app->protocol)) {
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
2290
app->protocol);
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
2313
app->selector, app->protocol, app->priority);
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
2345
(entry->proto_id == app->protocol))
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
2361
dcbx_set.config.params.app_entry[i].proto_id = app->protocol;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1090
filter.protocol.type = type;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1091
filter.protocol.source_port_or_eth_type = source_port_or_eth_type;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1092
filter.protocol.dest_port = dest_port;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1210
filter.protocol.type = type;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1211
filter.protocol.source_port_or_eth_type = source_port_or_eth_type;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1212
filter.protocol.dest_port = dest_port;
drivers/net/ethernet/qlogic/qed/qed_dev.c
340
struct qed_llh_protocol_filter protocol;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4553
enum qed_pci_personality protocol;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4555
protocol = p_hwfn->mcp_info->func_info.protocol;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4556
p_hwfn->hw_info.personality = protocol;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1718
if (iph->protocol != IPPROTO_TCP) {
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1721
iph->protocol);
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1737
iph->protocol);
drivers/net/ethernet/qlogic/qed/qed_ll2.c
222
skb->protocol = eth_hdr(skb)->h_proto;
drivers/net/ethernet/qlogic/qed/qed_main.c
495
cdev->protocol = params->protocol;
drivers/net/ethernet/qlogic/qed/qed_mcp.c
2530
&info->protocol)) {
drivers/net/ethernet/qlogic/qed/qed_mcp.c
2577
info->pause_on_host, info->protocol,
drivers/net/ethernet/qlogic/qed/qed_mcp.h
133
enum qed_pci_personality protocol;
drivers/net/ethernet/qlogic/qed/qed_sp.h
401
u8 protocol,
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
39
u8 cmd, u8 protocol, struct qed_sp_init_data *p_data)
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
57
p_ent->elem.hdr.protocol_id = protocol;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
91
opaque_cid, qed_get_ramrod_cmd_id_str(protocol, cmd),
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
92
cmd, qed_get_protocol_type_str(protocol), protocol,
drivers/net/ethernet/qlogic/qed/qed_spq.c
454
enum protocol_type protocol)
drivers/net/ethernet/qlogic/qede/qede_filter.c
1436
ip->protocol = t->ip_proto;
drivers/net/ethernet/qlogic/qede/qede_filter.c
369
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qede/qede_filter.c
395
tpos->tuple.eth_proto == skb->protocol &&
drivers/net/ethernet/qlogic/qede/qede_filter.c
445
if (skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/qlogic/qede/qede_filter.c
446
skb->protocol != htons(ETH_P_IPV6))
drivers/net/ethernet/qlogic/qede/qede_filter.c
449
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qede/qede_filter.c
450
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/qlogic/qede/qede_filter.c
502
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qede/qede_filter.c
513
eth->h_proto = skb->protocol;
drivers/net/ethernet/qlogic/qede/qede_filter.c
514
n->tuple.eth_proto = skb->protocol;
drivers/net/ethernet/qlogic/qede/qede_fp.c
1015
skb->protocol = eth_type_trans(skb, edev->ndev);
drivers/net/ethernet/qlogic/qede/qede_fp.c
1333
skb->protocol = eth_type_trans(skb, edev->ndev);
drivers/net/ethernet/qlogic/qede/qede_fp.c
1775
l4_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/qlogic/qede/qede_fp.c
229
l4_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/qlogic/qede/qede_fp.c
943
switch (skb->protocol) {
drivers/net/ethernet/qlogic/qede/qede_fp.c
953
ntohs(skb->protocol));
drivers/net/ethernet/qlogic/qede/qede_main.c
1211
probe_params.protocol = QED_PROTOCOL_ETH;
drivers/net/ethernet/qlogic/qede/qede_main.c
661
return qede_set_flower(edev, f, f->common.protocol);
drivers/net/ethernet/qlogic/qla3xxx.c
2027
skb->protocol = eth_type_trans(skb, qdev->ndev);
drivers/net/ethernet/qlogic/qla3xxx.c
2096
skb2->protocol = eth_type_trans(skb2, qdev->ndev);
drivers/net/ethernet/qlogic/qla3xxx.c
2286
if (ip->protocol == IPPROTO_TCP) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
1058
table[j++].protocol = app->protocol;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
150
u16 protocol;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
726
app->protocol = QLC_DCB_GET_PROTO_ID_APP(each->app[i]);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
727
new_app.protocol = app->protocol;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
933
.protocol = id,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1243
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1319
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1321
if (ntohs(skb->protocol) == ETH_P_IPV6) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1340
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1762
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1841
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1842
if (ntohs(skb->protocol) == ETH_P_IPV6) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1862
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
308
u16 protocol = ntohs(skb->protocol);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
320
if (protocol == ETH_P_8021Q) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
430
if (inner_ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
466
u16 protocol = ntohs(skb->protocol);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
469
if (protocol == ETH_P_8021Q) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
473
protocol = ntohs(vh->h_vlan_encapsulated_proto);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
502
opcode = (protocol == ETH_P_IPV6) ? QLCNIC_TX_TCP_LSO6 :
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
556
if (protocol == ETH_P_IP) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
557
l4proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
563
} else if (protocol == ETH_P_IPV6) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
659
u16 protocol;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
751
protocol = ntohs(skb->protocol);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
752
if (protocol == ETH_P_IP)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
753
l4_is_udp = ip_hdr(skb)->protocol == IPPROTO_UDP;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
754
else if (protocol == ETH_P_IPV6)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1145
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1260
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qualcomm/qca_spi.c
424
qca->rx_skb->protocol = eth_type_trans(
drivers/net/ethernet/qualcomm/qca_uart.c
93
qca->rx_skb->protocol = eth_type_trans(
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
181
skb->protocol = htons(ETH_P_MAP);
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
26
skb->protocol = htons(ETH_P_IP);
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
29
skb->protocol = htons(ETH_P_IPV6);
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
32
skb->protocol = htons(ETH_P_MAP);
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c
61
skb->protocol = htons(ETH_P_MAP);
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
174
if (ip4h->protocol == IPPROTO_TCP || ip4h->protocol == IPPROTO_UDP) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
175
csum = (u16 *)rmnet_map_get_csum_field(ip4h->protocol, txphdr);
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
188
if (iphdr->protocol == IPPROTO_UDP)
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
20
static __sum16 *rmnet_map_get_csum_field(unsigned char protocol,
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
23
if (protocol == IPPROTO_TCP)
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
26
if (protocol == IPPROTO_UDP)
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
261
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
264
proto = ((struct iphdr *)iph)->protocol;
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
267
skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
428
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
431
if (IS_ENABLED(CONFIG_IPV6) && skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
459
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
465
if (IS_ENABLED(CONFIG_IPV6) && skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
58
csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr);
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
625
port->skbagg_head->protocol = htons(ETH_P_MAP);
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
65
if (!*csum_field && ip4h->protocol == IPPROTO_UDP) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
679
skb->protocol = htons(ETH_P_MAP);
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
95
ip4h->protocol, 0);
drivers/net/ethernet/rdc/r6040.c
557
skb_ptr->protocol = eth_type_trans(skb_ptr, priv->dev);
drivers/net/ethernet/realtek/8139cp.c
423
skb->protocol = eth_type_trans (skb, cp->dev);
drivers/net/ethernet/realtek/8139cp.c
454
unsigned int protocol = (status >> 16) & 0x3;
drivers/net/ethernet/realtek/8139cp.c
456
if (((protocol == RxProtoTCP) && !(status & TCPFail)) ||
drivers/net/ethernet/realtek/8139cp.c
457
((protocol == RxProtoUDP) && !(status & UDPFail)))
drivers/net/ethernet/realtek/8139cp.c
767
if (ip->protocol == IPPROTO_TCP)
drivers/net/ethernet/realtek/8139cp.c
769
else if (ip->protocol == IPPROTO_UDP)
drivers/net/ethernet/realtek/8139too.c
2035
skb->protocol = eth_type_trans (skb, dev);
drivers/net/ethernet/realtek/r8169_main.c
4393
return ih && ih->protocol == IPPROTO_UDP;
drivers/net/ethernet/realtek/r8169_main.c
4467
if (ip->protocol == IPPROTO_TCP)
drivers/net/ethernet/realtek/r8169_main.c
4469
else if (ip->protocol == IPPROTO_UDP)
drivers/net/ethernet/realtek/r8169_main.c
4503
ip_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/realtek/r8169_main.c
4840
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/realtek/rtase/rtase_main.c
1232
ip_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/realtek/rtase/rtase_main.c
1339
if (ih->protocol == IPPROTO_TCP) {
drivers/net/ethernet/realtek/rtase/rtase_main.c
1355
if (ih->protocol != IPPROTO_UDP)
drivers/net/ethernet/realtek/rtase/rtase_main.c
566
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/renesas/ravb_main.c
1041
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/renesas/ravb_main.c
2087
u16 net_protocol = ntohs(skb->protocol);
drivers/net/ethernet/renesas/ravb_main.c
2109
inner_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/renesas/ravb_main.c
923
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/renesas/rswitch_main.c
859
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/renesas/rtsn.c
204
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/renesas/sh_eth.c
1654
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/rocker/rocker_main.c
2436
skb->protocol = eth_type_trans(skb, rocker_port->dev);
drivers/net/ethernet/seeq/ether3.c
646
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/seeq/sgiseeq.c
383
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/sfc/ef100_rep.c
465
skb->protocol = eth_type_trans(skb, efv->net_dev);
drivers/net/ethernet/sfc/efx_common.c
1285
switch (skb->protocol) {
drivers/net/ethernet/sfc/efx_common.c
1287
ipproto = ip_hdr(skb)->protocol;
drivers/net/ethernet/sfc/falcon/rx.c
524
skb->protocol = eth_type_trans(skb, efx->net_dev);
drivers/net/ethernet/sfc/falcon/selftest.c
400
payload->ip.protocol = IPPROTO_UDP;
drivers/net/ethernet/sfc/ptp.c
1380
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/ptp.c
1382
ip_hdr(skb)->protocol == IPPROTO_UDP &&
drivers/net/ethernet/sfc/ptp.c
1384
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/sfc/ptp.c
1404
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/ptp.c
1722
likely(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/sfc/ptp.c
1725
ip_hdr(skb)->protocol == IPPROTO_UDP &&
drivers/net/ethernet/sfc/rx.c
114
skb->protocol = eth_type_trans(skb, efx->net_dev);
drivers/net/ethernet/sfc/selftest.c
397
payload->ip.protocol = IPPROTO_UDP;
drivers/net/ethernet/sfc/siena/efx_common.c
1312
switch (skb->protocol) {
drivers/net/ethernet/sfc/siena/efx_common.c
1314
ipproto = ip_hdr(skb)->protocol;
drivers/net/ethernet/sfc/siena/ptp.c
1603
likely(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/sfc/siena/ptp.c
1606
ip_hdr(skb)->protocol == IPPROTO_UDP &&
drivers/net/ethernet/sfc/siena/rx.c
114
skb->protocol = eth_type_trans(skb, efx->net_dev);
drivers/net/ethernet/sfc/siena/selftest.c
398
payload->ip.protocol = IPPROTO_UDP;
drivers/net/ethernet/sfc/tc_encap_actions.c
278
ip->protocol = ipproto;
drivers/net/ethernet/sfc/tx_tso.c
145
__be16 protocol = skb->protocol;
drivers/net/ethernet/sfc/tx_tso.c
148
protocol);
drivers/net/ethernet/sfc/tx_tso.c
149
if (protocol == htons(ETH_P_8021Q)) {
drivers/net/ethernet/sfc/tx_tso.c
152
protocol = veh->h_vlan_encapsulated_proto;
drivers/net/ethernet/sfc/tx_tso.c
155
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/tx_tso.c
156
EFX_WARN_ON_ONCE_PARANOID(ip_hdr(skb)->protocol != IPPROTO_TCP);
drivers/net/ethernet/sfc/tx_tso.c
158
EFX_WARN_ON_ONCE_PARANOID(protocol != htons(ETH_P_IPV6));
drivers/net/ethernet/sfc/tx_tso.c
165
return protocol;
drivers/net/ethernet/sfc/tx_tso.c
183
if (st->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/tx_tso.c
376
state.protocol = efx_tso_check_protocol(skb);
drivers/net/ethernet/sfc/tx_tso.c
70
__be16 protocol;
drivers/net/ethernet/sgi/ioc3-eth.c
326
proto = ih->protocol;
drivers/net/ethernet/sgi/ioc3-eth.c
333
htons((u16)ih->protocol) +
drivers/net/ethernet/sgi/ioc3-eth.c
388
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/sgi/ioc3-eth.c
997
const int proto = ntohs(ih->protocol);
drivers/net/ethernet/sgi/meth.c
427
skb_c->protocol = eth_type_trans(skb_c, dev);
drivers/net/ethernet/silan/sc92031.c
805
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/sis/sis190.c
628
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/sis/sis900.c
1816
rx_skb->protocol = eth_type_trans(rx_skb, net_dev);
drivers/net/ethernet/smsc/epic100.c
1204
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/smsc/smc91x.c
490
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/smsc/smsc911x.c
1272
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/smsc/smsc9420.c
774
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/socionext/netsec.c
1054
skb->protocol = eth_type_trans(skb, priv->ndev);
drivers/net/ethernet/socionext/netsec.c
1165
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/socionext/sni_ave.c
782
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/spacemit/k1_emac.c
638
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
5396
skb->protocol = eth_type_trans(skb, priv->dev);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
5891
skb->protocol = eth_type_trans(skb, priv->dev);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
1122
cls_u32.common.protocol = htons(ETH_P_ALL);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
1300
skb->protocol = htons(proto);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
168
ihdr->protocol = IPPROTO_TCP;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
170
ihdr->protocol = IPPROTO_UDP;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
209
skb->protocol = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
287
if (ihdr->protocol != IPPROTO_TCP)
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
296
if (ihdr->protocol != IPPROTO_UDP)
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
875
if (ihdr->protocol != IPPROTO_UDP)
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
108
switch (ntohs(cls->common.protocol)) {
drivers/net/ethernet/sun/cassini.c
2090
skb->protocol = eth_type_trans(skb, cp->dev);
drivers/net/ethernet/sun/cassini.c
2091
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sun/niu.c
3506
skb->protocol = eth_type_trans(skb, np->dev);
drivers/net/ethernet/sun/niu.c
6577
switch (skb->protocol) {
drivers/net/ethernet/sun/niu.c
6579
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/sun/sunbmac.c
875
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/sun/sungem.c
845
skb->protocol = eth_type_trans(skb, gp->dev);
drivers/net/ethernet/sun/sunhme.c
1849
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/sun/sunqe.c
447
skb->protocol = eth_type_trans(skb, qep->dev);
drivers/net/ethernet/sun/sunvnet_common.c
1144
nskb->protocol = skb->protocol;
drivers/net/ethernet/sun/sunvnet_common.c
1175
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sun/sunvnet_common.c
1178
if (iph->protocol == IPPROTO_TCP ||
drivers/net/ethernet/sun/sunvnet_common.c
1179
iph->protocol == IPPROTO_UDP) {
drivers/net/ethernet/sun/sunvnet_common.c
1183
iph->protocol,
drivers/net/ethernet/sun/sunvnet_common.c
1186
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/sun/sunvnet_common.c
1234
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
1235
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/sun/sunvnet_common.c
1236
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/sun/sunvnet_common.c
1245
"protocol %d tproto %d\n", skb->protocol, proto);
drivers/net/ethernet/sun/sunvnet_common.c
1302
if (ip_hdr(curr)->protocol == IPPROTO_TCP)
drivers/net/ethernet/sun/sunvnet_common.c
1304
else if (ip_hdr(curr)->protocol == IPPROTO_UDP)
drivers/net/ethernet/sun/sunvnet_common.c
1354
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
1358
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/sun/sunvnet_common.c
1370
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
1373
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/sun/sunvnet_common.c
313
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
315
if (iph->protocol != IPPROTO_TCP &&
drivers/net/ethernet/sun/sunvnet_common.c
316
iph->protocol != IPPROTO_UDP)
drivers/net/ethernet/sun/sunvnet_common.c
321
if (iph->protocol == IPPROTO_TCP) {
drivers/net/ethernet/sun/sunvnet_common.c
329
} else if (iph->protocol == IPPROTO_UDP) {
drivers/net/ethernet/sun/sunvnet_common.c
346
if (skb->protocol != htons(ETH_P_IPV6))
drivers/net/ethernet/sun/sunvnet_common.c
412
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/sun/sunvnet_common.c
420
if (skb->protocol == ETH_P_IP) {
drivers/net/ethernet/sun/sunvnet_common.c
429
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sun/sunvnet_common.c
436
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/sunplus/spl2sw_int.c
66
skb->protocol = eth_type_trans(skb, comm->ndev[port]);
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1223
(skb->protocol == htons(ETH_P_8021Q)))
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1257
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/tehuti/tehuti.c
1274
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/tehuti/tn40.c
389
skb->protocol = eth_type_trans(skb, priv->ndev);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1355
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/cpsw.c
454
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/cpsw_new.c
398
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/davinci_emac.c
903
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/icssg/icssg_common.c
1132
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/icssg/icssg_common.c
939
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/icssm/icssm_prueth.c
747
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/netcp_core.c
767
skb->protocol = eth_type_trans(skb, netcp->ndev);
drivers/net/ethernet/ti/tlan.c
1504
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/toshiba/ps3_gelic_net.c
725
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/toshiba/ps3_gelic_net.c
726
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/ethernet/toshiba/ps3_gelic_net.c
731
else if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/toshiba/ps3_gelic_net.c
955
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/toshiba/tc35815.c
1515
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/tundra/tsi108_eth.c
769
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/vertexcom/mse102x.c
372
skb->protocol = eth_type_trans(skb, mse->ndev);
drivers/net/ethernet/via/via-rhine.c
2128
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/via/via-velocity.c
2082
skb->protocol = eth_type_trans(skb, vptr->netdev);
drivers/net/ethernet/via/via-velocity.c
2606
if (ip->protocol == IPPROTO_TCP)
drivers/net/ethernet/via/via-velocity.c
2608
else if (ip->protocol == IPPROTO_UDP)
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1208
switch (first->protocol) {
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1210
tun_prot = ip_hdr(skb)->protocol;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1259
l4_prot = hdr.ipv4->protocol;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1273
switch (first->protocol) {
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1275
l4_prot = ip_hdr(skb)->protocol;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1376
switch (first->protocol) {
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1378
tun_prot = ip_hdr(skb)->protocol;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1472
switch (first->protocol) {
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1474
tun_prot = ip_hdr(skb)->protocol;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1525
l4_prot = network_hdr.ipv4->protocol;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1609
} else if (eth_type_vlan(skb->protocol)) {
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1629
first->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/wangxun/libwx/wx_lib.c
653
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/wangxun/libwx/wx_type.h
1023
__be16 protocol;
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
280
common.port.src ^= th->dest ^ first->skb->protocol;
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
284
common.port.src ^= th->dest ^ first->protocol;
drivers/net/ethernet/wiznet/w5100.c
550
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/xilinx/ll_temac_main.c
1007
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/xilinx/ll_temac_main.c
1012
(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
1186
skb->protocol = eth_type_trans(skb, lp->ndev);
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
1244
skb->protocol = eth_type_trans(skb, lp->ndev);
drivers/net/ethernet/xilinx/xilinx_emaclite.c
618
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/xircom/xirc2ps_cs.c
1095
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/xscale/ixp4xx_eth.c
788
skb->protocol = eth_type_trans(skb, dev);
drivers/net/fddi/defxx.c
3206
skb->protocol = fddi_type_trans(skb, bp->dev);
drivers/net/fddi/defza.c
752
skb->protocol = fddi_type_trans(skb, dev);
drivers/net/fddi/skfp/skfddi.c
1648
skb->protocol = fddi_type_trans(skb, bp->dev);
drivers/net/fddi/skfp/skfddi.c
1904
skb->protocol = fddi_type_trans(skb, smc->os.dev);
drivers/net/fjes/fjes_main.c
942
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/geneve.c
1239
nested_is_v6 = skb->protocol == htons(ETH_P_IPV6);
drivers/net/geneve.c
1249
if (ip_hdr(skb)->protocol != IPPROTO_UDP)
drivers/net/geneve.c
1256
hint->nested_is_v6 = skb->protocol == htons(ETH_P_IPV6);
drivers/net/geneve.c
1312
inner_proto = inner_proto_inherit ? skb->protocol : htons(ETH_P_TEB);
drivers/net/geneve.c
1411
skb->protocol = eth_type_trans(skb, geneve->dev);
drivers/net/geneve.c
1527
skb->protocol = eth_type_trans(skb, geneve->dev);
drivers/net/geneve.c
314
skb->protocol = eth_type_trans(skb, geneve->dev);
drivers/net/geneve.c
526
iph->protocol != IPPROTO_UDP || ip_fast_csum((u8 *)iph, 5))
drivers/net/geneve.c
875
if ((iph->protocol ^ iph2->protocol) |
drivers/net/gtp.c
1270
unsigned int proto = ntohs(skb->protocol);
drivers/net/hyperv/netvsc_drv.c
396
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/hyperv/netvsc_drv.c
399
if (ip->protocol == IPPROTO_TCP)
drivers/net/hyperv/netvsc_drv.c
401
else if (ip->protocol == IPPROTO_UDP)
drivers/net/hyperv/netvsc_drv.c
533
if (skb->protocol == htons(ETH_P_8021Q)) {
drivers/net/hyperv/netvsc_drv.c
574
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/hyperv/netvsc_drv.c
600
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/hyperv/netvsc_drv.c
603
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/hyperv/netvsc_drv.c
795
skb->protocol = eth_type_trans(skb, net);
drivers/net/hyperv/netvsc_drv.c
807
skb->protocol == htons(ETH_P_IP)) {
drivers/net/ipa/ipa_modem.c
135
if (endpoint->config.qmap && skb->protocol != htons(ETH_P_MAP))
drivers/net/ipa/ipa_modem.c
202
skb->protocol = htons(ETH_P_MAP);
drivers/net/ipvlan/ipvlan_core.c
153
switch (skb->protocol) {
drivers/net/ipvlan/ipvlan_core.c
552
ntohs(skb->protocol));
drivers/net/ipvlan/ipvlan_core.c
562
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ipvlan/ipvlan_core.c
564
else if (skb->protocol == htons(ETH_P_IP))
drivers/net/ipvlan/ipvlan_core.c
568
ntohs(skb->protocol));
drivers/net/ipvlan/ipvlan_core.c
578
if (skb->protocol == htons(ETH_P_PAUSE)) {
drivers/net/loopback.c
87
skb->protocol = eth_type_trans(skb, dev);
drivers/net/macsec.c
507
skb->protocol = eth_hdr(skb)->h_proto;
drivers/net/macsec.c
826
skb->protocol = eth_type_trans(skb, dev);
drivers/net/macvlan.c
276
if (skb->protocol == htons(ETH_P_PAUSE))
drivers/net/mctp/mctp-i2c.c
323
skb->protocol = htons(ETH_P_MCTP);
drivers/net/mctp/mctp-i3c.c
118
skb->protocol = htons(ETH_P_MCTP);
drivers/net/mctp/mctp-serial.c
286
skb->protocol = htons(ETH_P_MCTP);
drivers/net/mctp/mctp-usb.c
237
skb->protocol = htons(ETH_P_MCTP);
drivers/net/mdio/mdio-i2c.c
449
enum mdio_i2c_proto protocol)
drivers/net/mdio/mdio-i2c.c
455
protocol == MDIO_I2C_MARVELL_C22)
drivers/net/mdio/mdio-i2c.c
462
enum mdio_i2c_proto protocol)
drivers/net/mdio/mdio-i2c.c
467
if (!mdio_i2c_check_functionality(i2c, protocol))
drivers/net/mdio/mdio-i2c.c
486
switch (protocol) {
drivers/net/mhi_net.c
213
skb->protocol = htons(ETH_P_IP);
drivers/net/mhi_net.c
216
skb->protocol = htons(ETH_P_IPV6);
drivers/net/mhi_net.c
219
skb->protocol = htons(ETH_P_MAP);
drivers/net/netconsole.c
1833
iph->protocol = IPPROTO_UDP;
drivers/net/netconsole.c
1838
skb->protocol = htons(ETH_P_IP);
drivers/net/netconsole.c
1861
skb->protocol = htons(ETH_P_IPV6);
drivers/net/netdevsim/bpf.c
129
if (cls_bpf->common.protocol != htons(ETH_P_ALL)) {
drivers/net/netdevsim/dev.c
829
skb->protocol = htons(ETH_P_IP);
drivers/net/netdevsim/dev.c
833
iph->protocol = IPPROTO_UDP;
drivers/net/netdevsim/psample.c
56
skb->protocol = htons(ETH_P_IP);
drivers/net/netdevsim/psample.c
60
iph->protocol = IPPROTO_UDP;
drivers/net/netdevsim/psp.c
97
switch (skb->protocol) {
drivers/net/ntb_netdev.c
148
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ovpn/bind.h
69
switch (skb->protocol) {
drivers/net/ovpn/io.c
184
skb->protocol = proto;
drivers/net/ovpn/io.c
188
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ovpn/io.c
371
if (unlikely(!proto || skb->protocol != proto))
drivers/net/ovpn/io.c
377
switch (skb->protocol) {
drivers/net/ovpn/peer.c
214
switch (skb->protocol) {
drivers/net/ovpn/peer.c
392
switch (skb->protocol) {
drivers/net/ovpn/peer.c
755
switch (skb->protocol) {
drivers/net/ovpn/peer.c
881
switch (skb->protocol) {
drivers/net/pfcp.c
86
if (unlikely(iptunnel_pull_header(skb, PFCP_HLEN, skb->protocol,
drivers/net/phy/mscc/mscc_ptp.c
366
if (iphdr->version != 4 || iphdr->protocol != IPPROTO_UDP)
drivers/net/plip/plip.c
678
rcv->skb->protocol=plip_type_trans(rcv->skb, dev);
drivers/net/ppp/ppp_generic.c
1456
npi = ethertype_to_npindex(ntohs(skb->protocol));
drivers/net/ppp/ppp_generic.c
2531
skb->protocol = htons(npindex_to_ethertype[npi]);
drivers/net/ppp/ppp_generic.c
913
err = proto_to_npindex(npi.protocol);
drivers/net/ppp/pppoe.c
1231
orig_type = skb->protocol;
drivers/net/ppp/pppoe.c
1244
skb->protocol = orig_type;
drivers/net/ppp/pppoe.c
813
skb->protocol = cpu_to_be16(ETH_P_PPP_SES);
drivers/net/ppp/pppoe.c
882
skb->protocol = cpu_to_be16(ETH_P_PPP_SES);
drivers/net/ppp/pppox.c
111
static int pppox_create(struct net *net, struct socket *sock, int protocol,
drivers/net/ppp/pppox.c
116
if (protocol < 0 || protocol > PX_MAX_PROTO)
drivers/net/ppp/pppox.c
120
if (!pppox_protos[protocol])
drivers/net/ppp/pppox.c
121
request_module("net-pf-%d-proto-%d", PF_PPPOX, protocol);
drivers/net/ppp/pppox.c
122
if (!pppox_protos[protocol] ||
drivers/net/ppp/pppox.c
123
!try_module_get(pppox_protos[protocol]->owner))
drivers/net/ppp/pppox.c
126
rc = pppox_protos[protocol]->create(net, sock, kern);
drivers/net/ppp/pppox.c
128
module_put(pppox_protos[protocol]->owner);
drivers/net/ppp/pptp.c
220
hdr->gre_hd.protocol = GRE_PROTO_PPP;
drivers/net/ppp/pptp.c
247
iph->protocol = IPPROTO_GRE;
drivers/net/ppp/pptp.c
366
if (header->gre_hd.protocol != GRE_PROTO_PPP || /* PPTP-GRE protocol for PPTP */
drivers/net/rionet.c
110
rnet->rx_skb[i]->protocol =
drivers/net/slip/slhc.c
259
if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) {
drivers/net/slip/slhc.c
261
if(ip->protocol != IPPROTO_TCP)
drivers/net/slip/slhc.c
683
index = iph->protocol;
drivers/net/slip/slhc.c
684
iph->protocol = IPPROTO_TCP;
drivers/net/slip/slip.c
370
skb->protocol = htons(ETH_P_IP);
drivers/net/tap.c
1075
skb->protocol = eth_hdr(skb)->h_proto;
drivers/net/tap.c
1084
if (eth_type_vlan(skb->protocol) &&
drivers/net/tap.c
1085
vlan_get_protocol_and_depth(skb, skb->protocol, &depth) != 0)
drivers/net/tap.c
639
skb->protocol = eth_hdr(skb)->h_proto;
drivers/net/tap.c
662
if (eth_type_vlan(skb->protocol) &&
drivers/net/tap.c
663
vlan_get_protocol_and_depth(skb, skb->protocol, &depth) != 0)
drivers/net/team/team_mode_loadbalance.c
20
if (unlikely(skb->protocol == htons(ETH_P_SLOW))) {
drivers/net/thunderbolt/main.c
1001
__be16 protocol = skb->protocol;
drivers/net/thunderbolt/main.c
1024
if (protocol == htons(ETH_P_8021Q)) {
drivers/net/thunderbolt/main.c
1031
protocol = vhdr->h_vlan_encapsulated_proto;
drivers/net/thunderbolt/main.c
1039
if (protocol == htons(ETH_P_IP)) {
drivers/net/thunderbolt/main.c
1046
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/thunderbolt/main.c
1048
else if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/thunderbolt/main.c
1055
ip_hdr(skb)->protocol, 0);
drivers/net/thunderbolt/main.c
1061
} else if (protocol == htons(ETH_P_IPV6)) {
drivers/net/thunderbolt/main.c
888
skb->protocol = eth_type_trans(skb, net->dev);
drivers/net/tun.c
1841
skb->protocol = pi.proto;
drivers/net/tun.c
1850
skb->protocol = eth_type_trans(skb, tun->dev);
drivers/net/tun.c
2040
struct tun_pi pi = { 0, skb->protocol };
drivers/net/tun.c
2468
skb->protocol = eth_type_trans(skb, tun->dev);
drivers/net/usb/catc.c
253
skb->protocol = eth_type_trans(skb, catc->netdev);
drivers/net/usb/cdc-phonet.c
177
skb->protocol = htons(ETH_P_PHONET);
drivers/net/usb/cdc-phonet.c
55
if (skb->protocol != htons(ETH_P_PHONET))
drivers/net/usb/hso.c
924
odev->skb_rx_buf->protocol = cpu_to_be16(ETH_P_IP);
drivers/net/usb/ipheth.c
194
skb->protocol = eth_type_trans(skb, dev->net);
drivers/net/usb/kaweth.c
570
skb->protocol = eth_type_trans(skb, net);
drivers/net/usb/lan78xx.c
3896
skb->protocol = eth_type_trans(skb, dev->net);
drivers/net/usb/lan78xx.c
3899
skb->len + sizeof(struct ethhdr), skb->protocol);
drivers/net/usb/pegasus.c
541
pegasus->rx_skb->protocol = eth_type_trans(pegasus->rx_skb, net);
drivers/net/usb/qmi_wwan.c
203
skbn->protocol = htons(ETH_P_IP);
drivers/net/usb/qmi_wwan.c
206
skbn->protocol = htons(ETH_P_IPV6);
drivers/net/usb/qmi_wwan.c
577
skb->protocol = htons(ETH_P_MAP);
drivers/net/usb/qmi_wwan.c
605
skb->protocol = proto;
drivers/net/usb/r8152.c
2686
ip_protocol = ip_hdr(skb)->protocol;
drivers/net/usb/r8152.c
3099
skb->protocol = eth_type_trans(skb,
drivers/net/usb/r8152.c
3110
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/usb/rtl8150.c
422
dev->rx_skb->protocol = eth_type_trans(dev->rx_skb, netdev);
drivers/net/usb/sierra_net.c
121
u8 protocol;
drivers/net/usb/sierra_net.c
206
return skb->protocol == cpu_to_be16(ETH_P_IP) ||
drivers/net/usb/sierra_net.c
207
skb->protocol == cpu_to_be16(ETH_P_IPV6);
drivers/net/usb/sierra_net.c
226
skb->protocol = eth_hdr(skb)->h_proto;
drivers/net/usb/sierra_net.c
374
if (lsi->protocol == SIERRA_NET_PROTOCOL_UMTS) {
drivers/net/usb/sierra_net.c
385
} else if (lsi->protocol == SIERRA_NET_PROTOCOL_UMTS_DS) {
drivers/net/usb/sierra_net.c
389
lsi->protocol);
drivers/net/usb/usbnet.c
1536
"> tx, len %u, type 0x%x\n", length, skb->protocol);
drivers/net/usb/usbnet.c
338
if (skb->protocol == 0)
drivers/net/usb/usbnet.c
339
skb->protocol = eth_type_trans(skb, dev->net);
drivers/net/usb/usbnet.c
347
skb->len + sizeof(struct ethhdr), skb->protocol);
drivers/net/veth.c
881
skb->protocol = eth_type_trans(skb, rq->dev);
drivers/net/virtio_net.c
2529
skb->protocol = eth_type_trans(skb, dev);
drivers/net/virtio_net.c
2531
ntohs(skb->protocol), skb->len, skb->pkt_type);
drivers/net/vmxnet3/vmxnet3_drv.c
1003
protocol = iph->protocol;
drivers/net/vmxnet3/vmxnet3_drv.c
1008
protocol = ipv6h->nexthdr;
drivers/net/vmxnet3/vmxnet3_drv.c
1012
switch (protocol) {
drivers/net/vmxnet3/vmxnet3_drv.c
1543
if (skb->protocol == cpu_to_be16(ETH_P_8021Q) ||
drivers/net/vmxnet3/vmxnet3_drv.c
1544
skb->protocol == cpu_to_be16(ETH_P_8021AD))
drivers/net/vmxnet3/vmxnet3_drv.c
1556
if (hdr.ipv4->protocol != IPPROTO_TCP)
drivers/net/vmxnet3/vmxnet3_drv.c
1593
if (iph->protocol == IPPROTO_UDP)
drivers/net/vmxnet3/vmxnet3_drv.c
1914
skb->protocol = eth_type_trans(skb, adapter->netdev);
drivers/net/vmxnet3/vmxnet3_drv.c
1923
vmxnet3_lro_tunnel(skb, skb->protocol);
drivers/net/vmxnet3/vmxnet3_drv.c
967
u8 protocol = 0;
drivers/net/vmxnet3/vmxnet3_drv.c
992
protocol = iph->protocol;
drivers/net/vmxnet3/vmxnet3_drv.c
997
protocol = ipv6h->nexthdr;
drivers/net/vmxnet3/vmxnet3_ethtool.c
297
l4_proto = ip_hdr(skb)->protocol;
drivers/net/vrf.c
1175
skb->protocol = eth->h_proto;
drivers/net/vrf.c
372
skb->protocol = eth_type_trans(skb, dev);
drivers/net/vrf.c
510
fl4.flowi4_proto = ip4h->protocol;
drivers/net/vrf.c
552
switch (skb->protocol) {
drivers/net/vrf.c
587
eth->h_proto = skb->protocol;
drivers/net/vrf.c
612
skb->protocol = htons(ETH_P_IPV6);
drivers/net/vrf.c
675
skb->protocol = htons(ETH_P_IPV6);
drivers/net/vrf.c
841
skb->protocol = htons(ETH_P_IP);
drivers/net/vrf.c
881
skb->protocol = htons(ETH_P_IP);
drivers/net/vxlan/vxlan_core.c
1597
skb->protocol = eth_type_trans(skb, vxlan->dev);
drivers/net/vxlan/vxlan_core.c
1654
__be16 protocol = htons(ETH_P_TEB);
drivers/net/vxlan/vxlan_core.c
1707
if (!vxlan_parse_gpe_proto(vh, &protocol))
drivers/net/vxlan/vxlan_core.c
1712
if (__iptunnel_pull_header(skb, VXLAN_HLEN, protocol, raw_proto,
drivers/net/vxlan/vxlan_core.c
1958
reply->protocol = htons(ETH_P_IPV6);
drivers/net/vxlan/vxlan_core.c
1986
reply->protocol = htons(ETH_P_IPV6);
drivers/net/vxlan/vxlan_core.c
2183
static int vxlan_build_gpe_hdr(struct vxlanhdr *vxh, __be16 protocol)
drivers/net/vxlan/vxlan_core.c
2188
gpe->next_protocol = tun_p_from_eth_p(protocol);
drivers/net/vxlan/vxlan_core.c
2250
err = vxlan_build_gpe_hdr(vxh, skb->protocol);
drivers/net/vxlan/vxlan_core.c
2253
inner_protocol = skb->protocol;
drivers/net/vxlan/vxlan_core.c
2376
no_eth_encap = flags & VXLAN_F_GPE && skb->protocol != htons(ETH_P_TEB);
drivers/net/vxlan/vxlan_core.c
603
static bool vxlan_parse_gpe_proto(const struct vxlanhdr *hdr, __be16 *protocol)
drivers/net/vxlan/vxlan_core.c
622
*protocol = tun_p_to_eth_p(gpe->next_protocol);
drivers/net/vxlan/vxlan_core.c
623
if (!*protocol)
drivers/net/vxlan/vxlan_core.c
733
__be16 protocol;
drivers/net/vxlan/vxlan_core.c
738
if (!vxlan_parse_gpe_proto(vh, &protocol))
drivers/net/vxlan/vxlan_core.c
740
ptype = gro_find_receive_by_type(protocol);
drivers/net/vxlan/vxlan_core.c
764
__be16 protocol;
drivers/net/vxlan/vxlan_core.c
766
if (!vxlan_parse_gpe_proto(vh, &protocol))
drivers/net/vxlan/vxlan_core.c
768
ptype = gro_find_complete_by_type(protocol);
drivers/net/vxlan/vxlan_mdb.c
1632
switch (skb->protocol) {
drivers/net/vxlan/vxlan_mdb.c
1669
switch (skb->protocol) {
drivers/net/wan/farsync.c
1244
skb->protocol = farsync_type_trans(skb, dev);
drivers/net/wan/farsync.c
1246
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/farsync.c
840
skb->protocol = farsync_type_trans(skb, dev);
drivers/net/wan/farsync.c
842
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/fsl_qmc_hdlc.c
287
desc->skb->protocol = hdlc_type_trans(desc->skb, netdev);
drivers/net/wan/fsl_ucc_hdlc.c
592
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/hd64570.c
279
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/hd64572.c
218
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/hdlc_cisco.c
112
skb->protocol = htons(ETH_P_HDLC);
drivers/net/wan/hdlc_cisco.c
129
switch (data->protocol) {
drivers/net/wan/hdlc_cisco.c
134
return data->protocol;
drivers/net/wan/hdlc_cisco.c
158
switch (ntohs(data->protocol)) {
drivers/net/wan/hdlc_cisco.c
235
netdev_info(dev, "Unsupported protocol %x\n", ntohs(data->protocol));
drivers/net/wan/hdlc_cisco.c
34
__be16 protocol;
drivers/net/wan/hdlc_cisco.c
82
data->protocol = htons(type);
drivers/net/wan/hdlc_fr.c
279
switch (skb->protocol) {
drivers/net/wan/hdlc_fr.c
299
*(__be16 *)(skb->data + 8) = skb->protocol;
drivers/net/wan/hdlc_fr.c
427
skb->protocol = htons(ETH_P_HDLC);
drivers/net/wan/hdlc_fr.c
544
skb->protocol = htons(ETH_P_HDLC);
drivers/net/wan/hdlc_fr.c
858
skb->protocol = *(__be16 *)(skb->data + 3); /* Ethertype */
drivers/net/wan/hdlc_fr.c
875
skb->protocol = eth_type_trans(skb, pvc->ether);
drivers/net/wan/hdlc_fr.c
951
skb->protocol = htons(ETH_P_IP);
drivers/net/wan/hdlc_fr.c
959
skb->protocol = htons(ETH_P_IPV6);
drivers/net/wan/hdlc_ppp.c
148
switch (data->protocol) {
drivers/net/wan/hdlc_ppp.c
178
data->protocol = htons(PID_IP);
drivers/net/wan/hdlc_ppp.c
181
data->protocol = htons(PID_IPV6);
drivers/net/wan/hdlc_ppp.c
186
data->protocol = htons(type);
drivers/net/wan/hdlc_ppp.c
189
data->protocol = 0;
drivers/net/wan/hdlc_ppp.c
251
skb->protocol = htons(ETH_P_HDLC);
drivers/net/wan/hdlc_ppp.c
455
pid = ntohs(hdr->protocol);
drivers/net/wan/hdlc_ppp.c
460
++ppp->seq, skb->len + 2, &hdr->protocol);
drivers/net/wan/hdlc_ppp.c
53
__be16 protocol;
drivers/net/wan/hdlc_x25.c
108
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/hdlc_x25.c
65
skb->protocol = x25_type_trans(skb, dev);
drivers/net/wan/hdlc_x25.c
96
skb->protocol = x25_type_trans(skb, dev);
drivers/net/wan/ixp4xx_hss.c
776
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/lapbether.c
176
skb->protocol = x25_type_trans(skb, dev);
drivers/net/wan/lapbether.c
254
skb->protocol = htons(ETH_P_DEC);
drivers/net/wan/lapbether.c
275
skb->protocol = x25_type_trans(skb, dev);
drivers/net/wan/lapbether.c
293
skb->protocol = x25_type_trans(skb, dev);
drivers/net/wan/wanxl.c
237
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wireguard/allowedips.c
394
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/allowedips.c
396
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/wireguard/allowedips.c
405
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/allowedips.c
407
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/wireguard/cookie.c
107
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/cookie.c
110
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/wireguard/device.c
156
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/device.c
159
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/wireguard/device.c
226
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/device.c
228
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/wireguard/queueing.h
73
return real_protocol && skb->protocol == real_protocol;
drivers/net/wireguard/ratelimiter.c
101
else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/wireguard/ratelimiter.c
95
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireguard/receive.c
384
skb->protocol = ip_tunnel_parse_protocol(skb);
drivers/net/wireguard/receive.c
385
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireguard/receive.c
390
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/wireguard/selftest/ratelimiter.c
150
skb4->protocol = htons(ETH_P_IP);
drivers/net/wireguard/selftest/ratelimiter.c
162
skb6->protocol = htons(ETH_P_IPV6);
drivers/net/wireguard/socket.c
238
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireguard/socket.c
244
} else if (IS_ENABLED(CONFIG_IPV6) && skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
214
if (skb->protocol == cpu_to_be16(ETH_P_PAE) || is_null_frame)
drivers/net/wireless/ath/ath6kl/txrx.c
840
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/wireless/ath/ath6kl/wmi.c
349
if (skb->protocol == cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
425
!(skb->protocol == cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/ath/wil6210/txrx.c
1026
skb->protocol = htons(ETH_P_802_2);
drivers/net/wireless/ath/wil6210/txrx.c
1416
skb->protocol != cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/txrx.c
1466
skb->protocol != cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/txrx.c
1505
skb->protocol != cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/txrx.c
1572
skb->protocol != cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/txrx.c
1600
skb->protocol != cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/txrx.c
1668
int protocol;
drivers/net/wireless/ath/wil6210/txrx.c
1675
switch (skb->protocol) {
drivers/net/wireless/ath/wil6210/txrx.c
1677
protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/ath/wil6210/txrx.c
1681
protocol = ipv6_hdr(skb)->nexthdr;
drivers/net/wireless/ath/wil6210/txrx.c
1687
switch (protocol) {
drivers/net/wireless/ath/wil6210/txrx.c
2506
if (skb->protocol == cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/txrx.c
944
xmit_skb->protocol = htons(ETH_P_802_3);
drivers/net/wireless/ath/wil6210/txrx.c
952
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/wireless/ath/wil6210/txrx.c
955
if (skb->protocol == cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/txrx_edma.c
1265
if (skb->protocol == cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ath/wil6210/wmi.c
1201
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
430
brcmf_dbg(DATA, "rx proto=0x%X\n", ntohs(skb->protocol));
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
478
skb->protocol = htons(ETH_P_802_2);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
498
skb->protocol = eth_type_trans(skb, (*ifp)->ndev);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h
373
if (skb->protocol != cpu_to_be16(ETH_P_LINK_CTL))
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
1137
skb->protocol = eth_type_trans(skb, ifp->ndev);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
1200
skb->protocol = eth_type_trans(skb, ifp->ndev);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
8194
skb->protocol = cpu_to_be16(ETH_P_80211_STATS);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
43
skb->protocol = htons(ETH_P_80211_RAW);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
788
skb2->protocol = htons(ETH_P_802_3);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
797
skb->protocol = eth_type_trans(skb, dev);
drivers/net/wireless/intel/iwlwifi/iwl-utils.c
23
bool ipv4 = (skb->protocol == htons(ETH_P_IP));
drivers/net/wireless/intel/iwlwifi/mei/main.c
1116
skb->protocol = ethhdr->h_proto;
drivers/net/wireless/intel/iwlwifi/mei/net.c
160
ip_hdr(skb)->protocol != IPPROTO_UDP)
drivers/net/wireless/intel/iwlwifi/mei/net.c
164
ip_hdr(skb)->protocol != IPPROTO_TCP)
drivers/net/wireless/intel/iwlwifi/mei/net.c
208
switch (ip_hdr(skb)->protocol) {
drivers/net/wireless/intel/iwlwifi/mei/net.c
308
switch (skb->protocol) {
drivers/net/wireless/intel/iwlwifi/mei/net.c
379
if (origskb->protocol != htons(ETH_P_IP) ||
drivers/net/wireless/intel/iwlwifi/mei/net.c
380
ip_hdr(origskb)->protocol != IPPROTO_UDP ||
drivers/net/wireless/intel/iwlwifi/mei/net.c
393
skb->protocol = origskb->protocol;
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
2072
u8 protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
2074
return protocol == IPPROTO_TCP || protocol == IPPROTO_UDP;
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
2085
if (skb->protocol != htons(ETH_P_IP))
drivers/net/wireless/intel/iwlwifi/mld/tx.c
220
u8 protocol = 0;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
232
if (WARN_ONCE(skb->protocol != htons(ETH_P_IP) &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
233
skb->protocol != htons(ETH_P_IPV6),
drivers/net/wireless/intel/iwlwifi/mld/tx.c
239
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
240
protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
247
protocol = ipv6h->nexthdr;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
248
while (protocol != NEXTHDR_NONE && ipv6_ext_hdr(protocol)) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
252
if (protocol != NEXTHDR_ROUTING &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
253
protocol != NEXTHDR_HOP &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
254
protocol != NEXTHDR_DEST) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
260
protocol = hp->nexthdr;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
267
if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
283
if (skb->protocol == htons(ETH_P_IP) && amsdu) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
289
if (protocol == IPPROTO_TCP)
drivers/net/wireless/intel/iwlwifi/mld/tx.c
839
if (skb->protocol == htons(ETH_P_IPV6) &&
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
6309
u8 protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
6314
return protocol == IPPROTO_TCP || protocol == IPPROTO_UDP;
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
6324
if (skb->protocol != htons(ETH_P_IP))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
113
if (skb->protocol == htons(ETH_P_IP) && amsdu) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
119
if (protocol == IPPROTO_TCP)
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
53
u8 protocol = 0;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
61
(skb->protocol != htons(ETH_P_IP) &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
62
skb->protocol != htons(ETH_P_IPV6)),
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
68
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
69
protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
76
protocol = ipv6h->nexthdr;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
77
while (protocol != NEXTHDR_NONE && ipv6_ext_hdr(protocol)) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
81
if (protocol != NEXTHDR_ROUTING &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
82
protocol != NEXTHDR_HOP &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
83
protocol != NEXTHDR_DEST) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
89
protocol = hp->nexthdr;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
919
if (skb->protocol == htons(ETH_P_IPV6) &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
96
if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP) {
drivers/net/wireless/marvell/libertas/rx.c
149
skb->protocol = eth_type_trans(skb, dev);
drivers/net/wireless/marvell/libertas/rx.c
264
skb->protocol = eth_type_trans(skb, priv->dev);
drivers/net/wireless/marvell/libertas/tx.c
201
priv->currenttxskb->protocol = eth_type_trans(priv->currenttxskb,
drivers/net/wireless/marvell/mwifiex/ioctl.h
97
u16 protocol;
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
104
bss_config->protocol = PROTOCOL_STATIC_WEP;
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
22
bss_config->protocol = PROTOCOL_NO_SECURITY;
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
49
bss_config->protocol = 0;
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
51
bss_config->protocol |= PROTOCOL_WPA;
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
53
bss_config->protocol |= PROTOCOL_WPA2;
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
596
if ((bss_cfg->protocol & PROTOCOL_WPA) ||
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
597
(bss_cfg->protocol & PROTOCOL_WPA2) ||
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
598
(bss_cfg->protocol & PROTOCOL_EAP))
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
614
if (bss_cfg->protocol) {
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
621
encrypt_protocol->proto = cpu_to_le16(bss_cfg->protocol);
drivers/net/wireless/marvell/mwifiex/uap_txrx.c
333
skb->protocol = eth_type_trans(skb, priv->netdev);
drivers/net/wireless/marvell/mwifiex/util.c
548
skb->protocol = eth_type_trans(skb, priv->netdev);
drivers/net/wireless/marvell/mwl8k.c
1936
if (skb->protocol == cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
1199
if (sta && likely(t->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
834
if (sta && likely(e->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
1088
if (likely(t->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
1476
if (sta && likely(e->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1024
likely(tx_info->skb->protocol != cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1058
if (tx_info->skb->protocol == cpu_to_be16(ETH_P_PAE) && sta->mlo) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1258
if (likely(t->skb->protocol != cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
844
(multicast || unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE))))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
938
skb->protocol == cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
986
if (unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/microchip/wilc1000/mon.c
185
skb2->protocol = htons(ETH_P_802_2);
drivers/net/wireless/microchip/wilc1000/mon.c
92
skb->protocol = htons(ETH_P_802_2);
drivers/net/wireless/microchip/wilc1000/netdev.c
851
skb->protocol = eth_type_trans(skb, wilc_netdev);
drivers/net/wireless/microchip/wilc1000/wlan.c
140
if (ip_hdr_ptr->protocol != IPPROTO_TCP)
drivers/net/wireless/microchip/wilc1000/wlan.c
319
switch (skb->protocol) {
drivers/net/wireless/quantenna/qtnfmac/core.c
127
if (unlikely(skb->protocol == htons(ETH_P_PAE))) {
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
760
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c
666
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5561
!(skb->protocol == cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/realtek/rtlwifi/base.c
1511
if (IPPROTO_UDP == ip->protocol) {
drivers/net/wireless/realtek/rtlwifi/rc.c
233
!(skb->protocol == cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/realtek/rtw88/tx.c
596
if (unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/realtek/rtw89/core.c
1133
if (skb->protocol == htons(ETH_P_ARP)) {
drivers/net/wireless/realtek/rtw89/core.c
1138
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/wireless/realtek/rtw89/core.c
1139
ip_hdr(skb)->protocol == IPPROTO_UDP) {
drivers/net/wireless/realtek/rtw89/core.c
1149
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/wireless/realtek/rtw89/core.c
1150
ip_hdr(skb)->protocol == IPPROTO_ICMP) {
drivers/net/wireless/realtek/rtw89/core.c
347
switch (ip_hdr(skb)->protocol) {
drivers/net/wireless/realtek/rtw89/core.c
4682
if (unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/realtek/rtw89/mac.c
3229
u8 protocol;
drivers/net/wireless/realtek/rtw89/mac.c
3277
protocol = u32_get_bits(phycap->w1, RTW89_C2HREG_PHYCAP_W1_PROT);
drivers/net/wireless/realtek/rtw89/mac.c
3278
if (protocol < RTW89_C2HREG_PHYCAP_W1_PROT_11BE)
drivers/net/wireless/ti/wl18xx/main.c
1293
desc->wl18xx_checksum_data |= (ip_hdr->protocol & 0x01);
drivers/net/wireless/ti/wlcore/tx.c
321
if (skb->protocol == cpu_to_be16(ETH_P_PAE))
drivers/net/wireless/ti/wlcore/tx.c
333
skb->protocol == cpu_to_be16(ETH_P_PAE) ||
drivers/net/wireless/virtual/mac80211_hwsim_main.c
1384
skb->protocol = htons(ETH_P_802_2);
drivers/net/wireless/virtual/mac80211_hwsim_main.c
1427
skb->protocol = htons(ETH_P_802_2);
drivers/net/wwan/iosm/iosm_ipc_imem.c
145
cfg->protocol = ipc_imem->mmio->mux_protocol;
drivers/net/wwan/iosm/iosm_ipc_imem.c
589
ret = ipc_imem_wwan_channel_init(ipc_imem, mux_cfg.protocol);
drivers/net/wwan/iosm/iosm_ipc_imem.c
749
if (ipc_imem->mux->protocol == MUX_AGGREGATION)
drivers/net/wwan/iosm/iosm_ipc_mux.c
290
ipc_mux->protocol = mux_cfg->protocol;
drivers/net/wwan/iosm/iosm_ipc_mux.c
325
if (ipc_mux->protocol != MUX_LITE) {
drivers/net/wwan/iosm/iosm_ipc_mux.c
421
return ipc_mux ? ipc_mux->protocol : MUX_UNKNOWN;
drivers/net/wwan/iosm/iosm_ipc_mux.c
483
if (ipc_mux->protocol != MUX_LITE) {
drivers/net/wwan/iosm/iosm_ipc_mux.h
355
enum ipc_mux_protocol protocol;
drivers/net/wwan/iosm/iosm_ipc_mux.h
379
enum ipc_mux_protocol protocol;
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
1407
if (ipc_mux->protocol == MUX_LITE)
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
1476
if (ipc_mux->protocol == MUX_LITE) {
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
1510
if (ipc_mux->protocol == MUX_AGGREGATION)
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
158
if (ipc_mux->protocol == MUX_LITE) {
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
204
if (ipc_mux->protocol != MUX_LITE)
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
215
if (ipc_mux->protocol == MUX_LITE)
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
272
if (ipc_mux->protocol == MUX_AGGREGATION) {
drivers/net/wwan/iosm/iosm_ipc_wwan.c
228
skb->protocol = htons(ETH_P_IP);
drivers/net/wwan/iosm/iosm_ipc_wwan.c
231
skb->protocol = htons(ETH_P_IPV6);
drivers/net/wwan/mhi_wwan_mbim.c
327
skbn->protocol = htons(ETH_P_IP);
drivers/net/wwan/mhi_wwan_mbim.c
330
skbn->protocol = htons(ETH_P_IPV6);
drivers/net/wwan/qcom_bam_dmux.c
526
skb->protocol = htons(ETH_P_IP);
drivers/net/wwan/qcom_bam_dmux.c
529
skb->protocol = htons(ETH_P_IPV6);
drivers/net/wwan/qcom_bam_dmux.c
532
skb->protocol = htons(ETH_P_MAP);
drivers/net/wwan/t7xx/t7xx_netdev.c
433
skb->protocol = htons(ETH_P_IPV6);
drivers/net/wwan/t7xx/t7xx_netdev.c
435
skb->protocol = htons(ETH_P_IP);
drivers/net/xen-netback/hash.c
162
switch (skb->protocol) {
drivers/net/xen-netback/hash.c
188
switch (skb->protocol) {
drivers/net/xen-netback/netback.c
1226
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/net/xen-netback/rx.c
310
skb->protocol == htons(ETH_P_IP) ?
drivers/net/xen-netback/rx.c
315
skb->protocol == htons(ETH_P_IP) ?
drivers/net/xen-netfront.c
1241
skb->protocol = eth_type_trans(skb, queue->info->netdev);
drivers/nfc/pn533/pn533.c
1798
struct nfc_target *target, u32 protocol)
drivers/nfc/pn533/pn533.c
1803
dev_dbg(dev->dev, "%s: protocol=%u\n", __func__, protocol);
drivers/nfc/pn533/pn533.c
1823
if (!(dev->tgt_available_prots & (1 << protocol))) {
drivers/nfc/pn533/pn533.c
1826
protocol);
drivers/nfc/pn533/pn533.c
1830
if (protocol == NFC_PROTO_NFC_DEP) {
drivers/nfc/pn533/pn533.c
1839
dev->tgt_active_prot = protocol;
drivers/nfc/st-nci/se.c
562
spec_params.protocol = NCI_NFCEE_INTERFACE_HCI_ACCESS;
drivers/parport/parport_pc.c
3032
dev_info(&dev->dev, "reported by %s\n", dev->protocol->name);
drivers/phy/cadence/phy-cadence-torrent.c
2490
u32 num_regs, num_protocols, protocol;
drivers/phy/cadence/phy-cadence-torrent.c
2578
for (protocol = 0; protocol < num_protocols; protocol++) {
drivers/phy/cadence/phy-cadence-torrent.c
2586
if (protocol == 1) {
drivers/phy/freescale/phy-fsl-lynx-28g.c
1100
u32 pccr, pss, protocol;
drivers/phy/freescale/phy-fsl-lynx-28g.c
1103
protocol = FIELD_GET(LNaPSS_TYPE, pss);
drivers/phy/freescale/phy-fsl-lynx-28g.c
1104
switch (protocol) {
drivers/phy/xilinx/phy-zynqmp.c
212
u8 protocol;
drivers/phy/xilinx/phy-zynqmp.c
351
u8 protocol = gtr_phy->protocol;
drivers/phy/xilinx/phy-zynqmp.c
360
if ((protocol == ICM_PROTOCOL_DP || protocol == ICM_PROTOCOL_PCIE) &&
drivers/phy/xilinx/phy-zynqmp.c
367
if (gtr_phy->protocol == protocol && !gtr_phy->instance)
drivers/phy/xilinx/phy-zynqmp.c
394
gtr_phy->lane, gtr_phy->protocol, gtr_phy->instance);
drivers/phy/xilinx/phy-zynqmp.c
482
u8 protocol = gtr_phy->protocol;
drivers/phy/xilinx/phy-zynqmp.c
486
xpsgtr_clr_set(gtr_dev, ICM_CFG0, ICM_CFG0_L0_MASK, protocol);
drivers/phy/xilinx/phy-zynqmp.c
490
protocol << ICM_CFG_SHIFT);
drivers/phy/xilinx/phy-zynqmp.c
493
xpsgtr_clr_set(gtr_dev, ICM_CFG1, ICM_CFG0_L0_MASK, protocol);
drivers/phy/xilinx/phy-zynqmp.c
497
protocol << ICM_CFG_SHIFT);
drivers/phy/xilinx/phy-zynqmp.c
602
if (gtr_phy->protocol == ICM_PROTOCOL_USB && gtr_phy->skip_phy_init)
drivers/phy/xilinx/phy-zynqmp.c
714
switch (gtr_phy->protocol) {
drivers/phy/xilinx/phy-zynqmp.c
769
if (gtr_phy->protocol != ICM_PROTOCOL_DP)
drivers/phy/xilinx/phy-zynqmp.c
798
gtr_phy->protocol = ICM_PROTOCOL_SATA;
drivers/phy/xilinx/phy-zynqmp.c
802
gtr_phy->protocol = ICM_PROTOCOL_USB;
drivers/phy/xilinx/phy-zynqmp.c
806
gtr_phy->protocol = ICM_PROTOCOL_DP;
drivers/phy/xilinx/phy-zynqmp.c
810
gtr_phy->protocol = ICM_PROTOCOL_PCIE;
drivers/phy/xilinx/phy-zynqmp.c
814
gtr_phy->protocol = ICM_PROTOCOL_SGMII;
drivers/phy/xilinx/phy-zynqmp.c
920
xpsgtr_icm_str[gtr_phy->protocol]);
drivers/pnp/base.h
11
int pnp_register_protocol(struct pnp_protocol *protocol);
drivers/pnp/card.c
157
struct pnp_card *pnp_alloc_card(struct pnp_protocol *protocol, int id, char *pnpid)
drivers/pnp/card.c
166
card->protocol = protocol;
drivers/pnp/card.c
169
card->dev.parent = &card->protocol->dev;
drivers/pnp/card.c
170
dev_set_name(&card->dev, "%02x:%02x", card->protocol->number, card->number);
drivers/pnp/card.c
251
list_add_tail(&card->protocol_list, &card->protocol->cards);
drivers/pnp/card.c
282
dev->protocol->number, card->number, dev->number);
drivers/pnp/core.c
119
struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id,
drivers/pnp/core.c
131
dev->protocol = protocol;
drivers/pnp/core.c
135
dev->dev.parent = &dev->protocol->dev;
drivers/pnp/core.c
147
dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number);
drivers/pnp/core.c
170
list_add_tail(&dev->protocol_list, &dev->protocol->devices);
drivers/pnp/core.c
177
else if (dev->protocol->can_wakeup)
drivers/pnp/core.c
179
dev->protocol->can_wakeup(dev));
drivers/pnp/core.c
208
dev_dbg(&dev->dev, "%s device, IDs%s (%s)\n", dev->protocol->name, buf,
drivers/pnp/core.c
34
static void pnp_remove_protocol(struct pnp_protocol *protocol)
drivers/pnp/core.c
37
list_del(&protocol->protocol_list);
drivers/pnp/core.c
47
int pnp_register_protocol(struct pnp_protocol *protocol)
drivers/pnp/core.c
52
INIT_LIST_HEAD(&protocol->devices);
drivers/pnp/core.c
53
INIT_LIST_HEAD(&protocol->cards);
drivers/pnp/core.c
67
protocol->number = nodenum;
drivers/pnp/core.c
68
dev_set_name(&protocol->dev, "pnp%d", nodenum);
drivers/pnp/core.c
70
list_add_tail(&protocol->protocol_list, &pnp_protocols);
drivers/pnp/core.c
74
ret = device_register(&protocol->dev);
drivers/pnp/core.c
76
pnp_remove_protocol(protocol);
drivers/pnp/driver.c
211
pnp_dev->protocol->suspend(pnp_dev, state);
drivers/pnp/driver.c
239
if (pnp_dev->protocol->resume) {
drivers/pnp/driver.c
240
error = pnp_dev->protocol->resume(pnp_dev);
drivers/pnp/interface.c
381
dev->protocol->get(dev);
drivers/pnp/isapnp/core.c
799
if (card->protocol == &isapnp_protocol)
drivers/pnp/manager.c
345
if (dev->protocol->set(dev) < 0) {
drivers/pnp/manager.c
367
if (dev->protocol->disable(dev) < 0) {
drivers/s390/net/ctcm_fsms.c
1294
if (be16_to_cpu(skb->protocol) == ETH_P_SNAP)
drivers/s390/net/ctcm_fsms.c
1500
fsm_getstate(gptr->fsm), ch->protocol);
drivers/s390/net/ctcm_fsms.c
386
switch (ch->protocol) {
drivers/s390/net/ctcm_fsms.c
449
(ch->protocol == CTCM_PROTO_OS390)) {
drivers/s390/net/ctcm_fsms.c
470
(ch->protocol != CTCM_PROTO_S390))
drivers/s390/net/ctcm_fsms.c
492
(ch->protocol == CTCM_PROTO_S390)) {
drivers/s390/net/ctcm_main.c
109
pskb->protocol = cpu_to_be16(header->type);
drivers/s390/net/ctcm_main.c
1308
__func__, dev_name(&cdev->dev), type, priv->protocol);
drivers/s390/net/ctcm_main.c
1314
ch->protocol = priv->protocol;
drivers/s390/net/ctcm_main.c
1550
priv->channel[direction]->protocol = priv->protocol;
drivers/s390/net/ctcm_main.c
1566
priv->channel[CTCM_WRITE]->id, priv->protocol);
drivers/s390/net/ctcm_main.c
1571
priv->channel[CTCM_WRITE]->id, priv->protocol);
drivers/s390/net/ctcm_main.c
159
skb->protocol = pskb->protocol;
drivers/s390/net/ctcm_main.c
1644
cgdev, priv->protocol);
drivers/s390/net/ctcm_main.c
488
header.type = be16_to_cpu(skb->protocol);
drivers/s390/net/ctcm_main.c
506
header.type = be16_to_cpu(skb->protocol);
drivers/s390/net/ctcm_main.c
671
if (be16_to_cpu(skb->protocol) == ETH_P_SNAP) {
drivers/s390/net/ctcm_main.c
718
if (be16_to_cpu(skb->protocol) == ETH_P_SNAP) {
drivers/s390/net/ctcm_main.c
90
if ((ch->protocol == CTCM_PROTO_S390) &&
drivers/s390/net/ctcm_main.c
912
newskb->protocol = skb->protocol;
drivers/s390/net/ctcm_main.h
145
__u16 protocol; /* protocol of this channel (4 = MPC) */
drivers/s390/net/ctcm_main.h
215
__u16 protocol;
drivers/s390/net/ctcm_main.h
297
#define IS_MPC(p) ((p)->protocol == CTCM_PROTO_MPC)
drivers/s390/net/ctcm_mpc.c
1102
pskb->protocol = htons(ETH_P_SNAP);
drivers/s390/net/ctcm_mpc.c
1104
pskb->protocol = htons(ETH_P_SNA_DIX);
drivers/s390/net/ctcm_mpc.c
1143
skb->protocol = pskb->protocol;
drivers/s390/net/ctcm_mpc.c
2112
skb->protocol = htons(ETH_P_SNAP);
drivers/s390/net/ctcm_sysfs.c
144
return sysfs_emit(buf, "%d\n", priv->protocol);
drivers/s390/net/ctcm_sysfs.c
162
priv->protocol = value;
drivers/s390/net/ctcm_sysfs.c
191
static DEVICE_ATTR(protocol, 0644, ctcm_proto_show, ctcm_proto_store);
drivers/s390/net/qeth_core.h
991
if ((proto == htons(ETH_P_IP) && ip_hdr(skb)->protocol == IPPROTO_UDP) ||
drivers/s390/net/qeth_core_main.c
1868
if (response->protocol == VNIC_INFO_PROT_L2)
drivers/s390/net/qeth_core_main.c
1870
else if (response->protocol == VNIC_INFO_PROT_L3)
drivers/s390/net/qeth_core_main.c
5548
skb->protocol = eth_type_trans(skb, skb->dev);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
369
skb->protocol = htons(ETH_P_FCOE);
drivers/scsi/csiostor/csio_lnode.c
1541
if (rdev_wr->protocol != PROT_FCOE) {
drivers/scsi/csiostor/csio_lnode.c
1545
rdev_wr->protocol,
drivers/scsi/csiostor/t4fw_api_stor.h
118
u8 protocol;
drivers/scsi/csiostor/t4fw_api_stor.h
126
u8 protocol;
drivers/scsi/csiostor/t4fw_api_stor.h
145
u8 protocol;
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
1741
.protocol = 3260
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
2409
if (iscsi_app->app.protocol != 3260)
drivers/scsi/fcoe/fcoe.c
1530
skb->protocol = htons(ETH_P_FCOE);
drivers/scsi/fcoe/fcoe.c
1796
if (entry->app.protocol == ETH_P_FIP ||
drivers/scsi/fcoe/fcoe.c
1797
entry->app.protocol == ETH_P_FCOE)
drivers/scsi/fcoe/fcoe.c
1800
if (entry->app.protocol == ETH_P_FCOE)
drivers/scsi/fcoe/fcoe.c
2120
.protocol = ETH_P_FCOE
drivers/scsi/fcoe/fcoe.c
2130
app.protocol = ETH_P_FIP;
drivers/scsi/fcoe/fcoe.c
2135
app.protocol = ETH_P_FIP;
drivers/scsi/fcoe/fcoe_ctlr.c
2101
skb->protocol = htons(ETH_P_FIP);
drivers/scsi/fcoe/fcoe_ctlr.c
2937
skb->protocol = htons(ETH_P_FIP);
drivers/scsi/fcoe/fcoe_ctlr.c
423
skb->protocol = htons(ETH_P_FIP);
drivers/scsi/fcoe/fcoe_ctlr.c
581
skb->protocol = htons(ETH_P_FIP);
drivers/scsi/fcoe/fcoe_ctlr.c
674
skb->protocol = htons(ETH_P_FIP);
drivers/scsi/hisi_sas/hisi_sas_main.c
39
switch (qc->tf.protocol) {
drivers/scsi/ibmvscsi/ibmvfc.c
5949
switch (channels->protocol) {
drivers/scsi/ibmvscsi/ibmvfc.c
5962
channels->protocol);
drivers/scsi/ibmvscsi/ibmvfc.c
6168
(channels->protocol == IBMVFC_PROTO_SCSI) ? "SCSI" : "NVMe");
drivers/scsi/ibmvscsi/ibmvfc.c
6356
vhost->scsi_scrqs.protocol = IBMVFC_PROTO_SCSI;
drivers/scsi/ibmvscsi/ibmvfc.h
727
enum ibmvfc_protocol protocol;
drivers/scsi/ibmvscsi/ibmvfc.h
827
enum ibmvfc_protocol protocol;
drivers/scsi/isci/host.c
1778
if (iphy->protocol == SAS_PROTOCOL_SSP) {
drivers/scsi/isci/host.c
1852
current_phy->protocol == SAS_PROTOCOL_SSP &&
drivers/scsi/isci/phy.c
1279
iphy->protocol = SAS_PROTOCOL_NONE;
drivers/scsi/isci/phy.c
1314
if (iphy->protocol == SAS_PROTOCOL_SSP) {
drivers/scsi/isci/phy.c
1380
iphy->protocol = SAS_PROTOCOL_NONE;
drivers/scsi/isci/phy.c
580
iphy->protocol = SAS_PROTOCOL_SSP;
drivers/scsi/isci/phy.c
591
iphy->protocol = SAS_PROTOCOL_SATA;
drivers/scsi/isci/phy.c
843
iphy->protocol = SAS_PROTOCOL_SATA;
drivers/scsi/isci/phy.h
91
enum sas_protocol protocol;
drivers/scsi/isci/port.c
188
if (iphy->protocol == SAS_PROTOCOL_SATA) {
drivers/scsi/isci/port.c
208
} else if (iphy->protocol == SAS_PROTOCOL_SSP) {
drivers/scsi/isci/port.c
522
if (iphy->protocol != SAS_PROTOCOL_SATA) {
drivers/scsi/isci/port.c
629
if (iphy->protocol != SAS_PROTOCOL_SATA && (flags & PF_RESUME))
drivers/scsi/isci/port.c
761
(iphy->protocol == SAS_PROTOCOL_SATA)) {
drivers/scsi/isci/request.c
1068
if (ireq->protocol == SAS_PROTOCOL_STP) {
drivers/scsi/isci/request.c
2342
switch (ireq->protocol) {
drivers/scsi/isci/request.c
3067
ireq->protocol = SAS_PROTOCOL_NONE;
drivers/scsi/isci/request.c
3119
ireq->protocol = SAS_PROTOCOL_STP;
drivers/scsi/isci/request.c
3121
ireq->protocol = SAS_PROTOCOL_SSP;
drivers/scsi/isci/request.c
3217
ireq->protocol = SAS_PROTOCOL_SMP;
drivers/scsi/isci/request.c
728
ireq->protocol = SAS_PROTOCOL_SSP;
drivers/scsi/isci/request.c
758
ireq->protocol = SAS_PROTOCOL_STP;
drivers/scsi/isci/request.h
117
enum sas_protocol protocol;
drivers/scsi/libsas/sas_ata.c
183
if (ata_is_ncq(qc->tf.protocol))
drivers/scsi/libsas/sas_ata.c
188
if (ata_is_atapi(qc->tf.protocol)) {
drivers/scsi/libsas/sas_ata.c
193
} else if (!ata_is_data(qc->tf.protocol)) {
drivers/scsi/libsas/sas_ata.c
206
task->ata_task.use_ncq = ata_is_ncq(qc->tf.protocol);
drivers/scsi/libsas/sas_ata.c
207
task->ata_task.dma_xfer = ata_is_dma(qc->tf.protocol);
drivers/scsi/lpfc/lpfc_attr.c
3142
static DEVICE_ATTR(protocol, S_IRUGO, lpfc_sli4_protocol_show, NULL);
drivers/scsi/mpi3mr/mpi3mr_fw.c
4009
u8 protocol;
drivers/scsi/mpi3mr/mpi3mr_fw.c
4151
char protocol[50] = {0};
drivers/scsi/mpi3mr/mpi3mr_fw.c
4175
mpi3mr_protocols[i].protocol) {
drivers/scsi/mpi3mr/mpi3mr_fw.c
4176
bytes_written += scnprintf(protocol + bytes_written,
drivers/scsi/mpi3mr/mpi3mr_fw.c
4177
sizeof(protocol) - bytes_written, "%s%s",
drivers/scsi/mpi3mr/mpi3mr_fw.c
4195
protocol, capabilities);
drivers/scsi/pm8001/pm8001_sas.c
390
if (qc && ata_is_ncq(qc->tf.protocol)) {
drivers/scsi/qedf/qedf_fip.c
54
skb->protocol = htons(ETH_P_FIP);
drivers/scsi/qedf/qedf_main.c
1203
skb->protocol = htons(ETH_P_FCOE);
drivers/scsi/qedf/qedf_main.c
3398
qed_params.protocol = QED_PROTOCOL_FCOE;
drivers/scsi/qedi/qedi_main.c
2549
qed_params.protocol = QED_PROTOCOL_ISCSI;
drivers/scsi/scsi_bsg.c
114
if (cmd->protocol != BSG_PROTOCOL_SCSI ||
drivers/scsi/scsi_bsg.c
193
if (hdr->protocol != BSG_PROTOCOL_SCSI ||
drivers/scsi/scsi_transport_sas.c
143
sas_bitfield_name_match(protocol, sas_protocol_names)
drivers/scsi/snic/snic_fwint.h
105
hdr->protocol = 0;
drivers/scsi/snic/snic_fwint.h
92
u8 protocol; /* Protocol specific, may needed for RoCE*/
drivers/soc/fsl/qe/ucc_slow.c
184
qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, id, us_info->protocol,
drivers/soc/fsl/qe/ucc_slow.c
337
qe_issue_cmd(command, id, us_info->protocol, 0);
drivers/soc/qcom/qcom-geni-se.c
1238
enum geni_se_protocol_type protocol)
drivers/soc/qcom/qcom-geni-se.c
1295
if (le32_to_cpu(sefw->serial_protocol) != protocol)
drivers/soc/qcom/qcom-geni-se.c
1319
dev_err(dev, "Failed to get %s protocol firmware\n", protocol_name[protocol]);
drivers/soc/qcom/qcom-geni-se.c
1422
enum geni_se_xfer_mode mode, enum geni_se_protocol_type protocol)
drivers/soc/qcom/qcom-geni-se.c
1430
hdr = geni_find_protocol_fw(se->dev, fw, protocol);
drivers/soc/qcom/qcom-geni-se.c
1546
int geni_load_se_firmware(struct geni_se *se, enum geni_se_protocol_type protocol)
drivers/soc/qcom/qcom-geni-se.c
1553
if (protocol >= ARRAY_SIZE(protocol_name)) {
drivers/soc/qcom/qcom-geni-se.c
1554
dev_err(se->dev, "Invalid geni-se protocol: %d", protocol);
drivers/soc/qcom/qcom-geni-se.c
1568
if (protocol == GENI_SE_UART)
drivers/soc/qcom/qcom-geni-se.c
1577
fw_name, protocol, ret);
drivers/soc/qcom/qcom-geni-se.c
1581
ret = geni_load_se_fw(se, fw, mode, protocol);
drivers/soc/qcom/qcom-geni-se.c
1586
protocol, ret);
drivers/soc/qcom/qcom-geni-se.c
1591
protocol_name[protocol], mode);
drivers/spi/spi-microchip-core-spi.c
289
const char *protocol = "motorola";
drivers/spi/spi-microchip-core-spi.c
313
&protocol);
drivers/spi/spi-microchip-core-spi.c
316
if (strcmp(protocol, "motorola") != 0)
drivers/spi/spi-microchip-core-spi.c
319
protocol);
drivers/staging/most/net/net.c
482
skb->protocol = eth_type_trans(skb, dev);
drivers/staging/octeon/ethernet-rx.c
331
skb->protocol = eth_type_trans(skb, dev);
drivers/staging/octeon/ethernet-tx.c
362
if ((skb->protocol == htons(ETH_P_IP)) &&
drivers/staging/octeon/ethernet-tx.c
367
((ip_hdr(skb)->protocol == IPPROTO_TCP) ||
drivers/staging/octeon/ethernet-tx.c
368
(ip_hdr(skb)->protocol == IPPROTO_UDP))) {
drivers/staging/octeon/ethernet-tx.c
572
if (skb->protocol == htons(ETH_P_IP)) {
drivers/staging/octeon/ethernet-tx.c
575
(ip_hdr(skb)->protocol == IPPROTO_TCP) ||
drivers/staging/octeon/ethernet-tx.c
576
(ip_hdr(skb)->protocol == IPPROTO_UDP);
drivers/staging/octeon/ethernet-tx.c
591
work->word2.snoip.is_rarp = skb->protocol == htons(ETH_P_RARP);
drivers/staging/octeon/ethernet-tx.c
592
work->word2.snoip.is_arp = skb->protocol == htons(ETH_P_ARP);
drivers/staging/rtl8723bs/core/rtw_recv.c
1657
pkt->protocol = eth_type_trans(pkt, padapter->pnetdev);
drivers/staging/rtl8723bs/core/rtw_xmit.c
728
if (piphdr->protocol == 0x1) /* protocol type in ip header 0x1 is ICMP */
drivers/staging/rtl8723bs/os_dep/os_intfs.c
327
switch (skb->protocol) {
drivers/target/iscsi/cxgbit/cxgbit_cm.c
871
.protocol = local_port
drivers/target/iscsi/cxgbit/cxgbit_main.c
636
iscsi_app->app.protocol);
drivers/tty/ipwireless/hardware.c
1253
unsigned char protocol)
drivers/tty/ipwireless/hardware.c
1264
packet->protocol = protocol;
drivers/tty/ipwireless/hardware.c
1272
unsigned char protocol,
drivers/tty/ipwireless/hardware.c
1287
packet->header.protocol = protocol;
drivers/tty/ipwireless/hardware.c
136
unsigned char protocol:3;
drivers/tty/ipwireless/hardware.c
144
unsigned char protocol:3;
drivers/tty/ipwireless/hardware.c
299
unsigned char protocol;
drivers/tty/ipwireless/hardware.c
339
unsigned int protocol;
drivers/tty/ipwireless/hardware.c
351
switch (hdr->protocol) {
drivers/tty/ipwireless/hardware.c
478
pkt.hdr_first.protocol = packet->protocol;
drivers/tty/ipwireless/hardware.c
620
unsigned int protocol,
drivers/tty/ipwireless/hardware.c
639
if (protocol == TL_PROTOCOLID_COM_DATA) {
drivers/tty/ipwireless/hardware.c
653
(*assem)->protocol = protocol;
drivers/tty/ipwireless/hardware.c
677
packet->protocol = protocol;
drivers/tty/ipwireless/hardware.c
724
if (packet->protocol == TL_PROTOCOLID_COM_DATA) {
drivers/tty/ipwireless/hardware.c
815
unsigned int protocol = packet->hdr.protocol;
drivers/tty/ipwireless/hardware.c
829
switch (protocol) {
drivers/tty/ipwireless/hardware.c
832
queue_received_packet(hw, protocol, address, data, data_len,
drivers/tty/n_gsm.c
3992
skb->protocol = htons(ETH_P_IP);
drivers/tty/n_gsm.c
4051
if (nc->protocol != htons(ETH_P_IP))
drivers/ufs/core/ufs-sysfs.c
1151
UFS_DEVICE_DESC_PARAM(protocol, _PRTCL, 1);
drivers/usb/chipidea/debug.c
244
seq_printf(s, "protocol: %d\n", fsm->protocol);
drivers/usb/chipidea/udc.c
2175
ci->fsm.protocol = PROTO_UNDEF;
drivers/usb/class/usblp.c
1034
usblp->protocol[usblp->current_protocol].epread->bEndpointAddress),
drivers/usb/class/usblp.c
1140
int protocol;
drivers/usb/class/usblp.c
1193
protocol = usblp_select_alts(usblp);
drivers/usb/class/usblp.c
1194
if (protocol < 0) {
drivers/usb/class/usblp.c
1204
if (usblp_set_protocol(usblp, protocol) < 0) {
drivers/usb/class/usblp.c
1232
usblp->protocol[usblp->current_protocol].alt_setting,
drivers/usb/class/usblp.c
1285
usblp->protocol[p].alt_setting = -1;
drivers/usb/class/usblp.c
1321
usblp->protocol[ifd->desc.bInterfaceProtocol].alt_setting =
drivers/usb/class/usblp.c
1323
usblp->protocol[ifd->desc.bInterfaceProtocol].epwrite = epwrite;
drivers/usb/class/usblp.c
1324
usblp->protocol[ifd->desc.bInterfaceProtocol].epread = epread;
drivers/usb/class/usblp.c
1330
usblp->protocol[proto_bias].alt_setting != -1)
drivers/usb/class/usblp.c
1334
if (usblp->protocol[2].alt_setting != -1)
drivers/usb/class/usblp.c
1336
if (usblp->protocol[1].alt_setting != -1)
drivers/usb/class/usblp.c
1338
if (usblp->protocol[3].alt_setting != -1)
drivers/usb/class/usblp.c
1345
static int usblp_set_protocol(struct usblp *usblp, int protocol)
drivers/usb/class/usblp.c
1349
if (protocol < USBLP_FIRST_PROTOCOL || protocol > USBLP_LAST_PROTOCOL)
drivers/usb/class/usblp.c
1352
alts = usblp->protocol[protocol].alt_setting;
drivers/usb/class/usblp.c
1366
usblp->bidir = (usblp->protocol[protocol].epread != NULL);
drivers/usb/class/usblp.c
1367
usblp->current_protocol = protocol;
drivers/usb/class/usblp.c
1369
usblp->minor, protocol);
drivers/usb/class/usblp.c
152
} protocol[USBLP_MAX_PROTOCOLS];
drivers/usb/class/usblp.c
182
usblp->protocol[p].alt_setting);
drivers/usb/class/usblp.c
184
usblp->protocol[p].epwrite);
drivers/usb/class/usblp.c
186
usblp->protocol[p].epread);
drivers/usb/class/usblp.c
240
static int usblp_set_protocol(struct usblp *usblp, int protocol);
drivers/usb/class/usblp.c
260
index = (usblp->ifnum<<8)|usblp->protocol[usblp->current_protocol].alt_setting;
drivers/usb/class/usblp.c
578
if (usblp->protocol[i].alt_setting >= 0)
drivers/usb/class/usblp.c
737
usblp->protocol[usblp->current_protocol].epwrite->bEndpointAddress),
drivers/usb/common/usb-otg-fsm.c
29
static int otg_set_protocol(struct otg_fsm *fsm, int protocol)
drivers/usb/common/usb-otg-fsm.c
33
if (fsm->protocol != protocol) {
drivers/usb/common/usb-otg-fsm.c
35
fsm->protocol, protocol);
drivers/usb/common/usb-otg-fsm.c
37
if (fsm->protocol == PROTO_HOST)
drivers/usb/common/usb-otg-fsm.c
39
else if (fsm->protocol == PROTO_GADGET)
drivers/usb/common/usb-otg-fsm.c
45
if (protocol == PROTO_HOST)
drivers/usb/common/usb-otg-fsm.c
47
else if (protocol == PROTO_GADGET)
drivers/usb/common/usb-otg-fsm.c
52
fsm->protocol = protocol;
drivers/usb/dwc3/gadget.c
2193
int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)
drivers/usb/dwc3/gadget.c
2222
if (!protocol && ((dep->direction && transfer_in_flight) ||
drivers/usb/dwc3/gadget.c
2253
if (protocol)
drivers/usb/dwc3/gadget.h
119
int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol);
drivers/usb/gadget/function/f_acm.c
772
acm->bInterfaceProtocol = opts->protocol;
drivers/usb/gadget/function/f_acm.c
827
return sprintf(page, "%u\n", to_f_serial_opts(item)->protocol);
drivers/usb/gadget/function/f_acm.c
843
ret = kstrtou8(page, 0, &opts->protocol);
drivers/usb/gadget/function/f_acm.c
853
CONFIGFS_ATTR(f_acm_, protocol);
drivers/usb/gadget/function/f_acm.c
888
opts->protocol = USB_CDC_ACM_PROTO_AT_V25TER;
drivers/usb/gadget/function/f_hid.c
1198
hidg->protocol = HID_REPORT_PROTOCOL;
drivers/usb/gadget/function/f_hid.c
1382
F_HID_OPT(protocol, 8, 255);
drivers/usb/gadget/function/f_hid.c
1628
hidg->bInterfaceProtocol = opts->protocol;
drivers/usb/gadget/function/f_hid.c
60
unsigned char protocol;
drivers/usb/gadget/function/f_hid.c
879
((u8 *) req->buf)[0] = hidg->protocol;
drivers/usb/gadget/function/f_hid.c
912
hidg->protocol = value;
drivers/usb/gadget/function/f_midi2.c
1080
to_ump_protocol(ep->info.protocol),
drivers/usb/gadget/function/f_midi2.c
1387
if (ep->info.protocol == 2)
drivers/usb/gadget/function/f_midi2.c
1564
ump->info.protocol = to_ump_protocol(ep->info.protocol);
drivers/usb/gadget/function/f_midi2.c
2451
F_MIDI2_EP_OPT(protocol, "0x%x", 1, 2);
drivers/usb/gadget/function/f_midi2.c
2512
ep_opts->info.protocol = 2;
drivers/usb/gadget/function/f_midi2.c
2732
if (!(ep->protocol_caps & ep->protocol)) {
drivers/usb/gadget/function/f_midi2.c
2734
ep->protocol, ep->protocol_caps, i);
drivers/usb/gadget/function/f_midi2.c
468
.protocol = (UMP_STREAM_MSG_EP_INFO_CAP_MIDI1 |
drivers/usb/gadget/function/f_midi2.c
570
if (ep->info.protocol == 2)
drivers/usb/gadget/function/f_midi2.c
571
rep.protocol = UMP_STREAM_MSG_EP_INFO_CAP_MIDI2 >> 8;
drivers/usb/gadget/function/f_midi2.c
573
rep.protocol = UMP_STREAM_MSG_EP_INFO_CAP_MIDI1 >> 8;
drivers/usb/gadget/function/f_midi2.c
632
ep->info.protocol = 2;
drivers/usb/gadget/function/f_midi2.c
635
ep->info.protocol = 1;
drivers/usb/gadget/function/f_midi2.c
638
snd_ump_switch_protocol(ep->ump, to_ump_protocol(ep->info.protocol));
drivers/usb/gadget/function/f_phonet.c
231
if (skb->protocol != htons(ETH_P_PHONET))
drivers/usb/gadget/function/f_phonet.c
346
skb->protocol = htons(ETH_P_PHONET);
drivers/usb/gadget/function/f_rndis.c
686
rndis_iad_descriptor.bFunctionProtocol = rndis_opts->protocol;
drivers/usb/gadget/function/f_rndis.c
853
USB_ETHER_CONFIGFS_ITEM_ATTR_U8_RW(rndis, protocol);
drivers/usb/gadget/function/f_rndis.c
912
opts->protocol = rndis_iad_descriptor.bFunctionProtocol;
drivers/usb/gadget/function/u_ether.c
265
skb2->protocol = eth_type_trans(skb2, dev->net);
drivers/usb/gadget/function/u_hid.h
22
unsigned char protocol;
drivers/usb/gadget/function/u_midi2.h
34
unsigned int protocol; /* default protocol: 1-2 */
drivers/usb/gadget/function/u_rndis.h
54
u8 protocol;
drivers/usb/gadget/function/u_serial.h
20
u8 protocol;
drivers/usb/gadget/legacy/hid.c
153
hid_opts->protocol = iter_n->func->protocol;
drivers/usb/phy/phy-fsl-usb.c
588
fsm->protocol = PROTO_UNDEF;
drivers/usb/storage/scsiglue.c
273
us->protocol == USB_PR_BULK)
drivers/usb/storage/scsiglue.c
313
if ((us->protocol == USB_PR_CB || us->protocol == USB_PR_CBI) &&
drivers/usb/storage/scsiglue.c
79
if (us->protocol == USB_PR_BULK && us->max_lun > 0)
drivers/usb/storage/sddr09.c
1760
if (us->protocol == USB_PR_DPCM_USB) {
drivers/usb/storage/transport.c
1010
if (us->protocol != USB_PR_CBI)
drivers/usb/storage/transport.c
653
if ((us->protocol == USB_PR_CB || us->protocol == USB_PR_DPCM_USB) &&
drivers/usb/storage/usb.c
683
us->protocol = (unusual_dev->useTransport == USB_PR_DEVICE) ?
drivers/usb/storage/usb.c
725
us->protocol == idesc->bInterfaceProtocol)
drivers/usb/storage/usb.c
750
switch (us->protocol) {
drivers/usb/storage/usb.c
834
if (res && us->protocol == USB_PR_CBI) {
drivers/usb/storage/usb.c
984
if (us->protocol == USB_PR_BULK &&
drivers/usb/storage/usb.h
111
u8 protocol;
drivers/xen/pvcalls-back.c
272
(req->u.socket.protocol != IPPROTO_IP &&
drivers/xen/pvcalls-back.c
273
req->u.socket.protocol != AF_INET))
drivers/xen/pvcalls-front.c
360
req->u.socket.protocol = IPPROTO_IP;
fs/afs/vl_list.c
211
bs.protocol = *b++;
fs/afs/vl_list.c
218
bs.port, bs.protocol, bs.nr_addrs,
fs/afs/vl_list.c
225
if (bs.protocol == DNS_SERVER_PROTOCOL_UNSPECIFIED) {
fs/afs/vl_list.c
226
bs.protocol = DNS_SERVER_PROTOCOL_UDP;
fs/afs/vl_list.c
227
} else if (bs.protocol != DNS_SERVER_PROTOCOL_UDP) {
fs/afs/vl_list.c
228
_leave(" = [proto %u]", bs.protocol);
fs/dlm/config.c
238
CLUSTER_ATTR(protocol, dlm_check_protocol_and_dlm_running);
fs/lockd/clntlock.c
56
nlm_init->protocol, nlm_version,
fs/lockd/host.c
144
host->h_proto = ni->protocol;
fs/lockd/host.c
217
const unsigned short protocol,
fs/lockd/host.c
228
.protocol = protocol,
fs/lockd/host.c
243
(protocol == IPPROTO_UDP ? "udp" : "tcp"));
fs/lockd/host.c
258
if (host->h_proto != protocol)
fs/lockd/host.c
370
.protocol = rqstp->rq_prot,
fs/lockd/host.c
398
if (host->h_proto != ni.protocol)
fs/lockd/host.c
481
.protocol = host->h_proto,
fs/lockd/host.c
57
const unsigned short protocol; /* transport to search for*/
fs/lockd/lockd.h
279
const unsigned short protocol,
fs/lockd/mon.c
76
.protocol = XPRT_TRANSPORT_TCP,
fs/nfs/client.c
528
.protocol = clp->cl_proto,
fs/nfs/client.c
613
nlm_init.protocol = IPPROTO_TCP;
fs/nfs/client.c
617
nlm_init.protocol = IPPROTO_UDP;
fs/nfs/client.c
744
.proto = ctx->nfs_server.protocol,
fs/nfs/client.c
755
nfs_init_timeout_values(&timeparms, ctx->nfs_server.protocol,
fs/nfs/client.c
828
server->mountd_protocol = ctx->mount_server.protocol;
fs/nfs/fs_context.c
1239
ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP;
fs/nfs/fs_context.c
1462
ctx->nfs_server.protocol = data->proto;
fs/nfs/fs_context.c
1546
if (ctx->nfs_server.protocol == XPRT_TRANSPORT_RDMA)
fs/nfs/fs_context.c
1560
if (ctx->nfs_server.protocol == XPRT_TRANSPORT_RDMA)
fs/nfs/fs_context.c
1748
ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP;
fs/nfs/fs_context.c
363
switch (ctx->nfs_server.protocol) {
fs/nfs/fs_context.c
372
ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP;
fs/nfs/fs_context.c
376
switch (ctx->nfs_server.protocol) {
fs/nfs/fs_context.c
378
ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP_TLS;
fs/nfs/fs_context.c
397
if (ctx->mount_server.protocol == XPRT_TRANSPORT_UDP ||
fs/nfs/fs_context.c
398
ctx->mount_server.protocol == XPRT_TRANSPORT_TCP)
fs/nfs/fs_context.c
400
switch (ctx->nfs_server.protocol) {
fs/nfs/fs_context.c
402
ctx->mount_server.protocol = XPRT_TRANSPORT_UDP;
fs/nfs/fs_context.c
406
ctx->mount_server.protocol = XPRT_TRANSPORT_TCP;
fs/nfs/fs_context.c
678
ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP;
fs/nfs/fs_context.c
686
ctx->nfs_server.protocol = ret;
fs/nfs/fs_context.c
865
ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP;
fs/nfs/fs_context.c
872
ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP;
fs/nfs/fs_context.c
883
ctx->nfs_server.protocol = ret;
fs/nfs/fs_context.c
902
ctx->mount_server.protocol = XPRT_TRANSPORT_UDP;
fs/nfs/fs_context.c
908
ctx->mount_server.protocol = XPRT_TRANSPORT_TCP;
fs/nfs/internal.h
128
unsigned short protocol;
fs/nfs/internal.h
140
unsigned short protocol;
fs/nfs/internal.h
200
unsigned short protocol;
fs/nfs/mount_clnt.c
155
.protocol = info->protocol,
fs/nfs/mount_clnt.c
178
nfs_init_timeout_values(&mnt_timeout, info->protocol, timeo, retrans);
fs/nfs/nfs4client.c
966
.proto = ctx->nfs_server.protocol,
fs/nfs/nfs4client.c
976
nfs_init_timeout_values(&timeparms, ctx->nfs_server.protocol,
fs/nfs/super.c
839
.protocol = ctx->mount_server.protocol,
fs/nfs/super.c
879
if ((request.protocol == XPRT_TRANSPORT_UDP) ==
fs/nfs_common/localio_trace.h
26
__field(unsigned int, protocol)
fs/nfs_common/localio_trace.h
31
__entry->protocol = clp->rpc_ops->version;
fs/nfs_common/localio_trace.h
36
"server=%s NFSv%u", __get_str(server), __entry->protocol
fs/nfsd/nfs4callback.c
1147
args.protocol = XPRT_TRANSPORT_TCP;
fs/nfsd/nfs4callback.c
1156
args.protocol = conn->cb_xprt->xpt_class->xcl_ident |
fs/smb/server/mgmt/user_session.c
659
static struct ksmbd_session *__session_create(int protocol)
fs/smb/server/mgmt/user_session.c
664
if (protocol != CIFDS_SESSION_FLAG_SMB2)
fs/smb/server/mgmt/user_session.c
678
set_session_flag(sess, protocol);
include/acpi/actbl1.h
591
u8 protocol;
include/acpi/actbl2.h
1858
u8 protocol;
include/drm/intel/i915_hdcp_interface.h
380
u8 protocol; /* for HDMI vs DP */
include/drm/intel/i915_hdcp_interface.h
96
u8 protocol;
include/linux/bnxt/hsi.h
8178
u8 protocol;
include/linux/can/core.h
32
int protocol;
include/linux/ceph/auth.h
91
u32 protocol; /* CEPH_AUTH_* */
include/linux/filter.h
1671
u16 protocol;
include/linux/filter.h
1743
static inline bool bpf_sk_lookup_run_v4(const struct net *net, int protocol,
include/linux/filter.h
1757
.protocol = protocol,
include/linux/filter.h
1780
static inline bool bpf_sk_lookup_run_v6(const struct net *net, int protocol,
include/linux/filter.h
1796
.protocol = protocol,
include/linux/i2c.h
141
int protocol, union i2c_smbus_data *data);
include/linux/i2c.h
146
int protocol, union i2c_smbus_data *data);
include/linux/i2c.h
288
void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol,
include/linux/if_vlan.h
391
veth->h_vlan_encapsulated_proto = skb->protocol;
include/linux/if_vlan.h
491
skb->protocol = vlan_proto;
include/linux/if_vlan.h
660
return __vlan_get_protocol(skb, skb->protocol, NULL);
include/linux/if_vlan.h
689
return skb_vlan_tag_present(skb) ? skb->vlan_proto : skb->protocol;
include/linux/if_vlan.h
707
skb->protocol = proto;
include/linux/if_vlan.h
720
skb->protocol = htons(ETH_P_802_3);
include/linux/if_vlan.h
725
skb->protocol = htons(ETH_P_802_2);
include/linux/if_vlan.h
757
likely(!eth_type_vlan(skb->protocol)))
include/linux/if_vlan.h
772
__be16 protocol = skb->protocol;
include/linux/if_vlan.h
777
if (likely(!eth_type_vlan(protocol)))
include/linux/if_vlan.h
784
protocol = veh->h_vlan_encapsulated_proto;
include/linux/if_vlan.h
787
if (!eth_type_vlan(protocol))
include/linux/libata.h
566
u8 protocol; /* ATA_PROT_xxx */
include/linux/lockd/bind.h
39
unsigned short protocol;
include/linux/lsm_hook_defs.h
334
LSM_HOOK(int, 0, socket_create, int family, int type, int protocol, int kern)
include/linux/lsm_hook_defs.h
336
int protocol, int kern)
include/linux/mdio/mdio-i2c.h
22
enum mdio_i2c_proto protocol);
include/linux/mlx4/device.h
1173
enum mlx4_protocol protocol, u64 *reg_id);
include/linux/mlx4/device.h
1175
enum mlx4_protocol protocol, u64 reg_id);
include/linux/mlx4/driver.h
63
enum mlx4_protocol protocol;
include/linux/net.h
258
int protocol, int kern);
include/linux/netdevice.h
5327
__be16 protocol)
include/linux/netdevice.h
5329
if (protocol == htons(ETH_P_FCOE))
include/linux/netdevice.h
5339
switch (protocol) {
include/linux/netdevice.h
5529
return skb->protocol == htons(ETH_P_IPV6) ?
include/linux/netdevice.h
5538
return skb->protocol == htons(ETH_P_IPV6) ?
include/linux/netfilter.h
369
unsigned int dataoff, u_int8_t protocol,
include/linux/netfilter.h
374
u_int8_t protocol, unsigned short family);
include/linux/netfilter/ipset/ip_set.h
214
u8 protocol;
include/linux/netfilter_ipv4.h
25
unsigned int dataoff, u_int8_t protocol);
include/linux/netfilter_ipv4.h
30
unsigned int dataoff, u_int8_t protocol)
include/linux/netfilter_ipv6.h
116
unsigned int dataoff, u_int8_t protocol);
include/linux/netlink.h
314
int protocol;
include/linux/pnp.h
209
struct pnp_protocol *protocol;
include/linux/pnp.h
254
struct pnp_protocol *protocol;
include/linux/pnp.h
309
#define pnp_can_read(dev) (((dev)->protocol->get) && \
include/linux/pnp.h
311
#define pnp_can_write(dev) (((dev)->protocol->set) && \
include/linux/pnp.h
313
#define pnp_can_disable(dev) (((dev)->protocol->disable) && \
include/linux/pnp.h
319
#define pnp_can_suspend(dev) (((dev)->protocol->suspend) && \
include/linux/pnp.h
326
#define pnp_device_is_isapnp(dev) ((dev)->protocol == (&isapnp_protocol))
include/linux/pnp.h
335
#define pnp_device_is_pnpbios(dev) ((dev)->protocol == (&pnpbios_protocol))
include/linux/pnp.h
346
if (dev->protocol == &pnpacpi_protocol)
include/linux/pnp.h
433
#define protocol_for_each_card(protocol, card) \
include/linux/pnp.h
434
list_for_each_entry(card, &(protocol)->cards, protocol_list)
include/linux/pnp.h
435
#define protocol_for_each_dev(protocol, dev) \
include/linux/pnp.h
436
list_for_each_entry(dev, &(protocol)->devices, protocol_list)
include/linux/qed/qed_if.h
758
enum qed_protocol protocol;
include/linux/security.h
1668
int security_socket_create(int family, int type, int protocol, int kern);
include/linux/security.h
1670
int type, int protocol, int kern);
include/linux/security.h
1740
int protocol, int kern)
include/linux/security.h
1748
int protocol, int kern)
include/linux/skbuff.h
1082
__be16 protocol;
include/linux/skbuff.h
2975
__be16 protocol)
include/linux/skbuff.h
2977
skb->inner_protocol = protocol;
include/linux/soc/qcom/geni-se.h
550
int geni_load_se_firmware(struct geni_se *se, enum geni_se_protocol_type protocol);
include/linux/socket.h
459
extern int __sys_socket(int family, int type, int protocol);
include/linux/socket.h
460
extern struct file *__sys_socket_file(int family, int type, int protocol);
include/linux/socket.h
474
extern int __sys_socketpair(int family, int type, int protocol,
include/linux/sunrpc/clnt.h
137
int protocol;
include/linux/usb/g_hid.h
13
unsigned char protocol;
include/linux/usb/otg-fsm.h
182
int protocol;
include/linux/virtio_net.h
12
static inline bool virtio_net_hdr_match_proto(__be16 protocol, __u8 gso_type)
include/linux/virtio_net.h
120
if (!skb->protocol) {
include/linux/virtio_net.h
121
__be16 protocol = dev_parse_header_protocol(skb);
include/linux/virtio_net.h
123
if (!protocol)
include/linux/virtio_net.h
125
else if (!virtio_net_hdr_match_proto(protocol,
include/linux/virtio_net.h
129
skb->protocol = protocol;
include/linux/virtio_net.h
137
skb->protocol == htons(ETH_P_IP)) {
include/linux/virtio_net.h
138
skb->protocol = htons(ETH_P_IPV6);
include/linux/virtio_net.h
16
return protocol == cpu_to_be16(ETH_P_IP);
include/linux/virtio_net.h
18
return protocol == cpu_to_be16(ETH_P_IPV6);
include/linux/virtio_net.h
21
return protocol == cpu_to_be16(ETH_P_IP) ||
include/linux/virtio_net.h
22
protocol == cpu_to_be16(ETH_P_IPV6);
include/linux/virtio_net.h
31
if (skb->protocol)
include/linux/virtio_net.h
38
skb->protocol = cpu_to_be16(ETH_P_IP);
include/linux/virtio_net.h
41
skb->protocol = cpu_to_be16(ETH_P_IPV6);
include/linux/virtio_net.h
462
if (skb->protocol == htons(ETH_P_IPV6))
include/media/i2c/ir-kbd-i2c.h
24
enum rc_proto *protocol,
include/media/i2c/ir-kbd-i2c.h
56
enum rc_proto *protocol,
include/media/rc-core.h
277
void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u64 scancode,
include/media/rc-core.h
279
void rc_keydown_notimeout(struct rc_dev *dev, enum rc_proto protocol,
include/media/rc-core.h
316
int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode,
include/media/rc-core.h
318
int ir_raw_encode_carrier(enum rc_proto protocol);
include/media/rc-core.h
347
enum rc_proto *protocol)
include/media/rc-core.h
359
*protocol = RC_PROTO_NEC32;
include/media/rc-core.h
365
*protocol = RC_PROTO_NECX;
include/media/rc-core.h
369
*protocol = RC_PROTO_NEC;
include/net/cfg80211.h
5521
enum nl80211_crit_proto_id protocol,
include/net/flow_offload.h
688
__be16 protocol;
include/net/fou.h
16
u8 *protocol, __be16 *sport, int type);
include/net/fou.h
18
u8 *protocol, __be16 *sport, int type);
include/net/garp.h
13
__be16 protocol;
include/net/gre.h
10
__be16 protocol;
include/net/gre.h
115
greh->protocol = proto;
include/net/gso.h
100
skb->protocol = protocol;
include/net/gso.h
96
static inline void skb_gso_error_unwind(struct sk_buff *skb, __be16 protocol,
include/net/inet6_hashtables.h
77
int protocol,
include/net/inet_common.h
60
unsigned short type, unsigned char protocol,
include/net/inet_frag.h
54
u16 protocol;
include/net/inet_hashtables.h
393
int protocol,
include/net/ip.h
104
ipcm->protocol = READ_ONCE(inet->inet_num);
include/net/ip.h
82
__u8 protocol;
include/net/ip6_tunnel.h
110
u8 *protocol, struct flowi6 *fl6)
include/net/ip6_tunnel.h
124
ret = ops->build_header(skb, &t->encap, protocol, fl6);
include/net/ip6_tunnel.h
72
u8 *protocol, struct flowi6 *fl6);
include/net/ip_fib.h
272
unsigned char protocol;
include/net/ip_tunnels.h
405
const struct iphdr *tnl_params, const u8 protocol);
include/net/ip_tunnels.h
446
u8 *protocol, struct flowi4 *fl4);
include/net/ip_tunnels.h
468
switch (skb->protocol) {
include/net/ip_tunnels.h
495
__be16 type = skb->protocol;
include/net/ip_tunnels.h
548
u8 *protocol, struct flowi4 *fl4)
include/net/ip_tunnels.h
562
ret = ops->build_header(skb, e, protocol, fl4);
include/net/ip_vs.h
1003
__u16 protocol; /* which protocol (TCP/UDP) */
include/net/ip_vs.h
1064
__u16 protocol;
include/net/ip_vs.h
112
iphdr->protocol = ipv6_find_hdr(skb, &iphdr->len, -1,
include/net/ip_vs.h
115
if (iphdr->protocol < 0)
include/net/ip_vs.h
128
iphdr->protocol = iph->protocol;
include/net/ip_vs.h
1631
static inline void ip_vs_conn_fill_param(struct netns_ipvs *ipvs, int af, int protocol,
include/net/ip_vs.h
1640
p->protocol = protocol;
include/net/ip_vs.h
1869
ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
include/net/ip_vs.h
1872
bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
include/net/ip_vs.h
1876
ip_vs_find_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
include/net/ip_vs.h
1892
__u16 protocol, __u32 fwmark, __u32 flags);
include/net/ip_vs.h
717
u16 protocol;
include/net/ip_vs.h
76
__s16 protocol;
include/net/ip_vs.h
793
__u16 protocol;
include/net/ip_vs.h
842
__u16 protocol; /* Which protocol (TCP/UDP) */
include/net/ip_vs.h
889
u16 protocol;
include/net/ip_vs.h
933
__u16 protocol; /* which protocol (TCP/UDP) */
include/net/llc_pdu.h
344
if (ev_skb->protocol == htons(ETH_P_802_2)) {
include/net/neighbour.h
157
u8 protocol;
include/net/neighbour.h
190
u8 protocol;
include/net/neighbour.h
213
__be16 protocol;
include/net/neighbour.h
395
struct net_device *dev, u32 flags, u8 protocol,
include/net/netfilter/nf_flow_table.h
327
u8 protocol, enum flow_offload_tuple_dir dir);
include/net/netfilter/nf_flow_table.h
330
u8 protocol, enum flow_offload_tuple_dir dir);
include/net/netfilter/nf_queue.h
58
(__force u32)iph->daddr, iph->protocol, initval);
include/net/netfilter/nf_queue.h
61
(__force u32)iph->saddr, iph->protocol, initval);
include/net/netfilter/nf_tables.h
88
pkt->ethertype = pkt->skb->protocol;
include/net/netfilter/nf_tables_ipv4.h
14
pkt->tprot = ip->protocol;
include/net/netfilter/nf_tables_ipv4.h
15
pkt->ethertype = pkt->skb->protocol;
include/net/netfilter/nf_tables_ipv4.h
47
pkt->tprot = iph->protocol;
include/net/netfilter/nf_tables_ipv4.h
48
pkt->ethertype = pkt->skb->protocol;
include/net/netfilter/nf_tables_ipv4.h
86
pkt->ethertype = pkt->skb->protocol;
include/net/netfilter/nf_tables_ipv4.h
88
pkt->tprot = iph->protocol;
include/net/netfilter/nf_tables_ipv6.h
106
pkt->ethertype = pkt->skb->protocol;
include/net/netfilter/nf_tables_ipv6.h
23
pkt->ethertype = pkt->skb->protocol;
include/net/netfilter/nf_tables_ipv6.h
58
pkt->ethertype = pkt->skb->protocol;
include/net/netfilter/nf_tproxy.h
123
const u8 protocol,
include/net/netfilter/nf_tproxy.h
84
const u8 protocol,
include/net/nexthop.h
152
u8 protocol; /* app managing this nh */
include/net/nfc/nci.h
251
__u8 protocol;
include/net/nfc/nfc.h
288
int nfc_tm_activated(struct nfc_dev *dev, u32 protocol, u8 comm_mode,
include/net/nfc/nfc.h
58
u32 protocol);
include/net/phonet/phonet.h
102
int phonet_proto_register(unsigned int protocol,
include/net/phonet/phonet.h
104
void phonet_proto_unregister(unsigned int protocol,
include/net/pkt_cls.h
770
cls_common->protocol = tp->protocol;
include/net/protocol.h
84
unsigned short protocol; /* This is the L4 protocol number. */
include/net/route.h
247
u8 protocol);
include/net/route.h
249
void ipv4_redirect(struct sk_buff *skb, struct net *net, int oif, u8 protocol);
include/net/route.h
320
__be32 src, int oif, u8 protocol,
include/net/route.h
333
ip_sock_rt_scope(sk), protocol, flow_flags, dst,
include/net/route.h
338
__be32 src, int oif, u8 protocol,
include/net/route.h
345
ip_route_connect_init(fl4, dst, src, oif, protocol, sport, dport, sk);
include/net/rtnetlink.h
47
int protocol;
include/net/rtnetlink.h
54
void rtnl_unregister_all(int protocol);
include/net/sch_generic.h
435
__be16 protocol;
include/net/sock.h
1409
int sock_load_diag_module(int family, int protocol);
include/net/tcp.h
2021
__u8 protocol;
include/net/tcp.h
2029
__be32 protocol; /* including padding */
include/net/udp.h
361
(__force u32) skb->protocol);
include/net/vxlan.h
375
l4_hdr = ip_hdr(skb)->protocol;
include/net/xfrm.h
1837
int xfrm4_protocol_register(struct xfrm4_protocol *handler, unsigned char protocol);
include/net/xfrm.h
1838
int xfrm4_protocol_deregister(struct xfrm4_protocol *handler, unsigned char protocol);
include/net/xfrm.h
1852
int xfrm6_protocol_register(struct xfrm6_protocol *handler, unsigned char protocol);
include/net/xfrm.h
1853
int xfrm6_protocol_deregister(struct xfrm6_protocol *handler, unsigned char protocol);
include/net/xfrm.h
438
int (*callback)(struct sk_buff *skb, u8 protocol,
include/net/xfrm.h
796
u8 protocol;
include/rdma/ib_pack.h
224
u8 protocol;
include/rdma/ib_verbs.h
2172
__be16 protocol;
include/rdma/ib_verbs.h
2264
enum ib_uverbs_flow_action_esp_keymat protocol;
include/rdma/ib_verbs.h
2271
enum ib_uverbs_flow_action_esp_replay protocol;
include/soc/fsl/qe/ucc_slow.h
147
int protocol; /* QE_CR_PROTOCOL_xxx */
include/sound/ump.h
126
int snd_ump_switch_protocol(struct snd_ump_endpoint *ump, unsigned int protocol);
include/sound/ump_convert.h
38
unsigned int protocol, unsigned char c);
include/sound/ump_msg.h
582
u32 protocol:8;
include/sound/ump_msg.h
597
u32 protocol:8;
include/sound/ump_msg.h
648
u32 protocol:8;
include/sound/ump_msg.h
657
u32 protocol:8;
include/trace/events/icmp.h
31
int proto_4 = iph->protocol;
include/trace/events/libata.h
213
__entry->proto = qc->tf.protocol;
include/trace/events/libata.h
343
__entry->proto = tf->protocol;
include/trace/events/libata.h
389
__entry->proto = tf->protocol;
include/trace/events/libata.h
645
__field( unsigned int, protocol )
include/trace/events/libata.h
655
__entry->protocol = qc->tf.protocol;
include/trace/events/libata.h
662
show_protocol_name(__entry->protocol),
include/trace/events/net.h
194
__field( u16, protocol )
include/trace/events/net.h
222
__entry->protocol = ntohs(skb->protocol);
include/trace/events/net.h
240
__entry->vlan_tci, __entry->protocol, __entry->ip_summed,
include/trace/events/net.h
28
__field( u16, protocol )
include/trace/events/net.h
49
__entry->protocol = ntohs(skb->protocol);
include/trace/events/net.h
68
__entry->protocol, __entry->ip_summed, __entry->len,
include/trace/events/skb.h
35
__field(unsigned short, protocol)
include/trace/events/skb.h
43
__entry->protocol = ntohs(skb->protocol);
include/trace/events/skb.h
48
__entry->skbaddr, __entry->rx_sk, __entry->protocol,
include/trace/events/smbus.h
104
__field(__u32, protocol )
include/trace/events/smbus.h
111
__entry->protocol = protocol;
include/trace/events/smbus.h
118
__print_symbolic(__entry->protocol,
include/trace/events/smbus.h
136
char read_write, u8 command, int protocol,
include/trace/events/smbus.h
138
TP_ARGS(adap, addr, flags, read_write, command, protocol, data, res),
include/trace/events/smbus.h
146
__field(__u32, protocol )
include/trace/events/smbus.h
153
__entry->protocol = protocol;
include/trace/events/smbus.h
155
switch (protocol) {
include/trace/events/smbus.h
182
__print_symbolic(__entry->protocol,
include/trace/events/smbus.h
202
char read_write, u8 command, int protocol,
include/trace/events/smbus.h
204
TP_ARGS(adap, addr, flags, read_write, command, protocol, res),
include/trace/events/smbus.h
212
__field(__u32, protocol )
include/trace/events/smbus.h
220
__entry->protocol = protocol;
include/trace/events/smbus.h
228
__print_symbolic(__entry->protocol,
include/trace/events/smbus.h
26
char read_write, u8 command, int protocol,
include/trace/events/smbus.h
28
TP_ARGS(adap, addr, flags, read_write, command, protocol, data),
include/trace/events/smbus.h
30
protocol == I2C_SMBUS_PROC_CALL ||
include/trace/events/smbus.h
31
protocol == I2C_SMBUS_BLOCK_PROC_CALL),
include/trace/events/smbus.h
38
__field(__u32, protocol )
include/trace/events/smbus.h
45
__entry->protocol = protocol;
include/trace/events/smbus.h
47
switch (protocol) {
include/trace/events/smbus.h
74
__print_symbolic(__entry->protocol,
include/trace/events/smbus.h
94
char read_write, u8 command, int protocol),
include/trace/events/smbus.h
95
TP_ARGS(adap, addr, flags, read_write, command, protocol),
include/trace/events/smbus.h
97
protocol == I2C_SMBUS_PROC_CALL ||
include/trace/events/smbus.h
98
protocol == I2C_SMBUS_BLOCK_PROC_CALL)),
include/trace/events/sock.h
153
__field(__u16, protocol)
include/trace/events/sock.h
169
__entry->protocol = sk->sk_protocol;
include/trace/events/sock.h
185
show_inet_protocol_name(__entry->protocol),
include/trace/events/sock.h
204
__field(__u16, protocol)
include/trace/events/sock.h
217
__entry->protocol = sk->sk_protocol;
include/trace/events/sock.h
233
show_inet_protocol_name(__entry->protocol),
include/trace/events/sock.h
249
__field(__u16, protocol)
include/trace/events/sock.h
256
__entry->protocol = sk->sk_protocol;
include/trace/events/sock.h
261
__entry->family, __entry->protocol, (void *)__entry->ip)
include/trace/events/sock.h
276
__field(__u16, protocol)
include/trace/events/sock.h
284
__entry->protocol = sk->sk_protocol;
include/trace/events/sock.h
291
show_inet_protocol_name(__entry->protocol),
include/trace/events/sunrpc.h
1387
__field(int, protocol)
include/trace/events/sunrpc.h
1397
__entry->protocol = task->tk_xprt->prot;
include/trace/events/sunrpc.h
1405
__entry->program, __entry->version, __entry->protocol,
include/trace/events/sunrpc.h
1443
int protocol,
include/trace/events/sunrpc.h
1447
TP_ARGS(program, version, protocol, port),
include/trace/events/sunrpc.h
1452
__field(int, protocol)
include/trace/events/sunrpc.h
1459
__entry->protocol = protocol;
include/trace/events/sunrpc.h
1465
__entry->protocol, __entry->port
include/trace/events/sunrpc.h
1958
const char *protocol,
include/trace/events/sunrpc.h
1964
TP_ARGS(program, protocol, sap, salen, xprt),
include/trace/events/sunrpc.h
1969
__string(protocol, protocol)
include/trace/events/sunrpc.h
1976
__assign_str(protocol);
include/trace/events/sunrpc.h
1981
__get_sockaddr(addr), __get_str(program), __get_str(protocol),
include/trace/events/sunrpc.h
2109
__string(protocol, xprt->xpt_class->xcl_name)
include/trace/events/sunrpc.h
2116
__assign_str(protocol);
include/trace/events/sunrpc.h
2122
__get_str(protocol), __get_str(service)
include/trace/events/sunrpc.h
2453
const unsigned short protocol,
include/trace/events/sunrpc.h
2458
TP_ARGS(program, version, family, protocol, port, error),
include/trace/events/sunrpc.h
2463
__field(unsigned short, protocol)
include/trace/events/sunrpc.h
2472
__entry->protocol = protocol;
include/trace/events/sunrpc.h
2480
__entry->protocol == IPPROTO_UDP ? "udp" : "tcp",
include/trace/events/sunrpc.h
2492
const unsigned short protocol, \
include/trace/events/sunrpc.h
2496
TP_ARGS(program, version, family, protocol, \
include/uapi/linux/bpf.h
6372
__u32 protocol;
include/uapi/linux/bpf.h
6475
__u32 protocol;
include/uapi/linux/bpf.h
6914
__u32 protocol; /* Allows 4-byte read, but no write */
include/uapi/linux/bpf.h
7571
__u32 protocol; /* IP protocol (IPPROTO_TCP, IPPROTO_UDP) */
include/uapi/linux/bsg.h
27
__u32 protocol; /* [i] 0 -> SCSI , .... */
include/uapi/linux/bsg.h
72
__u32 protocol; /* [i] protocol type (BSG_PROTOCOL_*) */
include/uapi/linux/dcbnl.h
250
__u16 protocol;
include/uapi/linux/dns_resolver.h
104
__u8 protocol; /* enum dns_payload_protocol_type */
include/uapi/linux/gsmmux.h
80
unsigned short protocol;
include/uapi/linux/io_uring/bpf_filter.h
23
__u32 protocol;
include/uapi/linux/ip.h
102
__u8 protocol;
include/uapi/linux/ip_vs.h
146
__u16 protocol;
include/uapi/linux/ip_vs.h
208
__u16 protocol;
include/uapi/linux/ip_vs.h
248
__u16 protocol;
include/uapi/linux/netfilter_bridge/ebt_ip.h
40
__u8 protocol;
include/uapi/linux/netfilter_bridge/ebt_ip6.h
39
__u8 protocol;
include/uapi/linux/ppp-ioctl.h
56
int protocol; /* PPP protocol, e.g. PPP_IP */
include/uapi/linux/usb/audio.h
273
int protocol)
include/uapi/linux/usb/audio.h
275
if (protocol == UAC_VERSION_1)
include/uapi/linux/usb/audio.h
286
int protocol)
include/uapi/linux/usb/audio.h
288
return (protocol == UAC_VERSION_1) ?
include/uapi/linux/usb/audio.h
294
int protocol)
include/uapi/linux/usb/audio.h
296
switch (protocol) {
include/uapi/linux/usb/audio.h
370
int protocol)
include/uapi/linux/usb/audio.h
372
if (protocol == UAC_VERSION_1)
include/uapi/linux/usb/audio.h
383
int protocol)
include/uapi/linux/usb/audio.h
385
return (protocol == UAC_VERSION_1) ?
include/uapi/linux/usb/audio.h
391
int protocol)
include/uapi/linux/usb/audio.h
393
switch (protocol) {
include/uapi/linux/usb/audio.h
406
int protocol)
include/uapi/linux/usb/audio.h
408
switch (protocol) {
include/uapi/linux/usb/audio.h
421
int protocol)
include/uapi/linux/usb/audio.h
423
__u8 control_size = uac_processing_unit_bControlSize(desc, protocol);
include/uapi/linux/usb/audio.h
425
switch (protocol) {
include/uapi/linux/usb/audio.h
429
return *(uac_processing_unit_bmControls(desc, protocol)
include/uapi/linux/usb/audio.h
437
int protocol)
include/uapi/linux/usb/audio.h
439
__u8 control_size = uac_processing_unit_bControlSize(desc, protocol);
include/uapi/linux/usb/audio.h
441
switch (protocol) {
include/uapi/linux/usb/audio.h
445
return uac_processing_unit_bmControls(desc, protocol)
include/uapi/linux/usb/audio.h
448
return uac_processing_unit_bmControls(desc, protocol)
include/uapi/linux/usb/audio.h
460
int protocol)
include/uapi/linux/usb/audio.h
462
switch (protocol) {
include/uapi/linux/usb/audio.h
475
int protocol)
include/uapi/linux/usb/audio.h
477
__u8 control_size = uac_extension_unit_bControlSize(desc, protocol);
include/uapi/linux/usb/audio.h
479
switch (protocol) {
include/uapi/linux/usb/audio.h
483
return *(uac_processing_unit_bmControls(desc, protocol)
include/uapi/rdma/ib_user_verbs.h
1118
__be16 protocol;
include/uapi/sound/asound.h
812
unsigned int protocol; /* current protocol */
include/xen/interface/io/pvcalls.h
47
uint32_t protocol;
io_uring/net.c
1718
bctx->socket.protocol = sock->protocol;
io_uring/net.c
1770
sock->protocol = READ_ONCE(sqe->len);
io_uring/net.c
1794
file = __sys_socket_file(sock->domain, sock->type, sock->protocol);
io_uring/net.c
42
int protocol;
kernel/audit.c
2541
switch (ih->protocol) {
kernel/audit.c
2552
&ih->saddr, &ih->daddr, ih->protocol,
kernel/audit.c
2567
&ih->saddr, &ih->daddr, ih->protocol,
kernel/audit.c
2581
&ih->saddr, &ih->daddr, ih->protocol,
kernel/audit.c
2587
&ih->saddr, &ih->daddr, ih->protocol);
lib/test_bpf.c
14911
skb->protocol = htons(ETH_P_IP);
lib/test_bpf.c
15190
skb[i]->protocol = htons(ETH_P_IP);
lib/test_bpf.c
15244
skb[i]->protocol = htons(ETH_P_IPV6);
lib/tests/blackhole_dev_kunit.c
63
skb->protocol = htons(ETH_P_IPV6);
net/6lowpan/iphc.c
1140
if (skb->protocol != htons(ETH_P_IPV6))
net/802/garp.c
232
skb->protocol = htons(ETH_P_802_2);
net/802/garp.c
236
put_unaligned(htons(GARP_PROTOCOL_ID), &gp->protocol);
net/802/garp.c
533
if (get_unaligned(&gp->protocol) != htons(GARP_PROTOCOL_ID))
net/802/mrp.c
320
skb->protocol = app->app->pkttype.type;
net/8021q/vlan.c
128
__be16 protocol, u16 vlan_id,
net/8021q/vlan.c
140
if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) {
net/8021q/vlan.h
150
__be16 protocol, u16 vlan_id,
net/8021q/vlan_dev.c
73
skb->protocol = vlan->vlan_proto;
net/atm/br2684.c
229
unsigned short prot = ntohs(skb->protocol);
net/atm/br2684.c
457
skb->protocol = htons(ETH_P_IPV6);
net/atm/br2684.c
460
skb->protocol = htons(ETH_P_IP);
net/atm/br2684.c
474
skb->protocol = eth_type_trans(skb, net_dev);
net/atm/br2684.c
485
skb->protocol = htons(ETH_P_IP);
net/atm/br2684.c
487
skb->protocol = htons(ETH_P_IPV6);
net/atm/br2684.c
496
skb->protocol = eth_type_trans(skb, net_dev);
net/atm/br2684.c
501
if (unlikely(packet_fails_filter(skb->protocol, brvcc, skb)))
net/atm/br2684.c
506
pr_debug("received packet's protocol: %x\n", ntohs(skb->protocol));
net/atm/common.c
139
int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern)
net/atm/common.h
14
int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern);
net/atm/pvc.c
132
static int pvc_create(struct net *net, struct socket *sock, int protocol,
net/atm/pvc.c
139
return vcc_create(net, sock, protocol, PF_ATMPVC, kern);
net/batman-adv/bridge_loop_avoidance.c
445
skb->protocol = eth_type_trans(skb, mesh_iface);
net/batman-adv/distributed-arp-table.c
1210
skb_new->protocol = eth_type_trans(skb_new, mesh_iface);
net/batman-adv/distributed-arp-table.c
1464
if (iphdr->protocol != IPPROTO_UDP)
net/batman-adv/gateway_client.c
598
if (iphdr->protocol != IPPROTO_UDP)
net/batman-adv/mesh-interface.c
453
skb->protocol = eth_type_trans(skb, mesh_iface);
net/batman-adv/multicast.c
1157
int protocol)
net/batman-adv/multicast.c
1159
switch (protocol) {
net/batman-adv/send.c
92
skb->protocol = htons(ETH_P_BATMAN);
net/bluetooth/6lowpan.c
295
local_skb->protocol = htons(ETH_P_IPV6);
net/bluetooth/6lowpan.c
326
local_skb->protocol = htons(ETH_P_IPV6);
net/bluetooth/bnep/core.c
422
nskb->protocol = eth_type_trans(nskb, dev);
net/bluetooth/bnep/sock.c
195
static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/bnep/sock.c
205
sk = bt_sock_alloc(net, sock, &bnep_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/hci_sock.c
2202
static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hci_sock.c
2214
sk = bt_sock_alloc(net, sock, &hci_sk_proto, protocol, GFP_ATOMIC,
net/bluetooth/hidp/sock.c
246
static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hidp/sock.c
256
sk = bt_sock_alloc(net, sock, &hidp_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/iso.c
1025
static int iso_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/iso.c
1039
sk = iso_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/l2cap_sock.c
1995
static int l2cap_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/l2cap_sock.c
2018
sk = l2cap_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern, chan);
net/bluetooth/rfcomm/sock.c
316
int protocol, int kern)
net/bluetooth/rfcomm/sock.c
329
sk = rfcomm_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/sco.c
635
static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/sco.c
649
sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bpf/test_run.c
1168
skb->protocol = eth_type_trans(skb, dev);
net/bpf/test_run.c
1171
switch (skb->protocol) {
net/bpf/test_run.c
1618
ctx.protocol = (u16)user_ctx->protocol;
net/bpf/test_run.c
1840
skb->protocol = eth_type_trans(skb, dev);
net/bpf/test_run.c
1841
switch (skb->protocol) {
net/bpf/test_run.c
1859
skb->protocol = nfproto_eth(hook_state.pf);
net/bridge/br_arp_nd_proxy.c
280
reply->protocol = htons(ETH_P_IPV6);
net/bridge/br_arp_nd_proxy.c
315
reply->protocol = htons(ETH_P_IPV6);
net/bridge/br_cfm.c
193
skb->protocol = htons(ETH_P_CFM);
net/bridge/br_device.c
78
skb->protocol == htons(ETH_P_IPV6) &&
net/bridge/br_forward.c
42
eth_type_vlan(skb->protocol)) {
net/bridge/br_forward.c
45
if (!vlan_get_protocol_and_depth(skb, skb->protocol, &depth))
net/bridge/br_input.c
170
(skb->protocol == htons(ETH_P_ARP) ||
net/bridge/br_input.c
171
skb->protocol == htons(ETH_P_RARP))) {
net/bridge/br_input.c
174
skb->protocol == htons(ETH_P_IPV6) &&
net/bridge/br_input.c
329
if (unlikely(tmp->type == skb->protocol))
net/bridge/br_mrp.c
145
skb->protocol = htons(ETH_P_MRP);
net/bridge/br_multicast.c
1123
skb->protocol = htons(ETH_P_IPV6);
net/bridge/br_multicast.c
163
ip.proto = skb->protocol;
net/bridge/br_multicast.c
166
switch (skb->protocol) {
net/bridge/br_multicast.c
3862
if (ip_hdr(skb)->protocol != IPPROTO_IGMP ||
net/bridge/br_multicast.c
3889
if (ip_hdr(skb)->protocol == IPPROTO_PIM)
net/bridge/br_multicast.c
3897
br_multicast_err_count(brmctx->br, p, skb->protocol);
net/bridge/br_multicast.c
3963
br_multicast_err_count(brmctx->br, p, skb->protocol);
net/bridge/br_multicast.c
4030
switch (skb->protocol) {
net/bridge/br_multicast.c
5075
__be16 proto = skb->protocol;
net/bridge/br_multicast.c
975
skb->protocol = htons(ETH_P_IP);
net/bridge/br_multicast.c
995
iph->protocol = IPPROTO_IGMP;
net/bridge/br_netfilter_hooks.c
125
return skb->protocol == htons(ETH_P_PPP_SES) &&
net/bridge/br_netfilter_hooks.c
134
return skb->protocol == htons(ETH_P_PPP_SES) &&
net/bridge/br_netfilter_hooks.c
175
switch (skb->protocol) {
net/bridge/br_netfilter_hooks.c
261
skb->protocol = htons(ETH_P_8021Q);
net/bridge/br_netfilter_hooks.c
264
skb->protocol = htons(ETH_P_PPP_SES);
net/bridge/br_netfilter_hooks.c
467
if (skb->protocol == htons(ETH_P_8021Q))
net/bridge/br_netfilter_hooks.c
469
else if (skb->protocol == htons(ETH_P_PPP_SES))
net/bridge/br_netfilter_hooks.c
536
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
646
if (skb->protocol == htons(ETH_P_IP))
net/bridge/br_netfilter_hooks.c
649
if (skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_netfilter_hooks.c
708
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
713
skb->protocol = htons(ETH_P_IPV6);
net/bridge/br_netfilter_hooks.c
74
(!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
net/bridge/br_netfilter_hooks.c
77
(!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_netfilter_hooks.c
80
(!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
net/bridge/br_netfilter_hooks.c
85
return skb->protocol;
net/bridge/br_netfilter_hooks.c
86
else if (skb->protocol == htons(ETH_P_8021Q))
net/bridge/br_netfilter_hooks.c
868
skb->protocol == htons(ETH_P_IP)) {
net/bridge/br_netfilter_hooks.c
897
skb->protocol == htons(ETH_P_IPV6)) {
net/bridge/br_netfilter_hooks.c
960
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
962
skb->protocol = htons(ETH_P_IPV6);
net/bridge/br_netfilter_ipv6.c
180
skb->protocol = htons(ETH_P_IPV6);
net/bridge/br_private.h
1100
if (skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_private.h
1112
if (skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_private.h
1148
if (skb->protocol == htons(ETH_P_IP))
net/bridge/br_private.h
1150
else if (skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_stp_bpdu.c
45
skb->protocol = htons(ETH_P_802_2);
net/bridge/br_vlan.c
557
skb->protocol == br->vlan_proto)) {
net/bridge/netfilter/ebt_ip.c
117
if (info->protocol != IPPROTO_TCP &&
net/bridge/netfilter/ebt_ip.c
118
info->protocol != IPPROTO_UDP &&
net/bridge/netfilter/ebt_ip.c
119
info->protocol != IPPROTO_UDPLITE &&
net/bridge/netfilter/ebt_ip.c
120
info->protocol != IPPROTO_SCTP &&
net/bridge/netfilter/ebt_ip.c
121
info->protocol != IPPROTO_DCCP)
net/bridge/netfilter/ebt_ip.c
130
info->protocol != IPPROTO_ICMP)
net/bridge/netfilter/ebt_ip.c
138
info->protocol != IPPROTO_IGMP)
net/bridge/netfilter/ebt_ip.c
61
if (NF_INVF(info, EBT_IP_PROTO, info->protocol != ih->protocol))
net/bridge/netfilter/ebt_ip6.c
118
if (info->protocol != IPPROTO_TCP &&
net/bridge/netfilter/ebt_ip6.c
119
info->protocol != IPPROTO_UDP &&
net/bridge/netfilter/ebt_ip6.c
120
info->protocol != IPPROTO_UDPLITE &&
net/bridge/netfilter/ebt_ip6.c
121
info->protocol != IPPROTO_SCTP &&
net/bridge/netfilter/ebt_ip6.c
122
info->protocol != IPPROTO_DCCP)
net/bridge/netfilter/ebt_ip6.c
131
info->protocol != IPPROTO_ICMPV6)
net/bridge/netfilter/ebt_ip6.c
70
if (NF_INVF(info, EBT_IP6_PROTO, info->protocol != nexthdr))
net/bridge/netfilter/ebt_log.c
108
&ih->saddr, &ih->daddr, ih->tos, ih->protocol);
net/bridge/netfilter/ebt_log.c
109
print_ports(skb, ih->protocol, ih->ihl*4);
net/bridge/netfilter/ebt_log.c
53
print_ports(const struct sk_buff *skb, uint8_t protocol, int offset)
net/bridge/netfilter/ebt_log.c
55
if (protocol == IPPROTO_TCP ||
net/bridge/netfilter/ebt_log.c
56
protocol == IPPROTO_UDP ||
net/bridge/netfilter/ebt_log.c
57
protocol == IPPROTO_UDPLITE ||
net/bridge/netfilter/ebt_log.c
58
protocol == IPPROTO_SCTP ||
net/bridge/netfilter/ebt_log.c
59
protocol == IPPROTO_DCCP) {
net/bridge/netfilter/ebt_vlan.c
38
encap = skb->protocol;
net/bridge/netfilter/nf_conntrack_bridge.c
253
switch (skb->protocol) {
net/bridge/netfilter/nf_conntrack_bridge.c
348
switch (skb->protocol) {
net/can/af_can.c
101
cp = rcu_dereference(proto_tab[protocol]);
net/can/af_can.c
114
static int can_create(struct net *net, struct socket *sock, int protocol,
net/can/af_can.c
123
if (protocol < 0 || protocol >= CAN_NPROTO)
net/can/af_can.c
126
cp = can_get_proto(protocol);
net/can/af_can.c
132
err = request_module("can-proto-%d", protocol);
net/can/af_can.c
140
protocol);
net/can/af_can.c
142
cp = can_get_proto(protocol);
net/can/af_can.c
209
skb->protocol = htons(ETH_P_CANXL);
net/can/af_can.c
211
skb->protocol = htons(ETH_P_CAN);
net/can/af_can.c
215
skb->protocol = htons(ETH_P_CANFD);
net/can/af_can.c
749
int proto = cp->protocol;
net/can/af_can.c
785
int proto = cp->protocol;
net/can/af_can.c
96
static const struct can_proto *can_get_proto(int protocol)
net/can/bcm.c
2137
.protocol = CAN_BCM,
net/can/gw.c
1306
{.owner = THIS_MODULE, .protocol = PF_CAN, .msgtype = RTM_NEWROUTE,
net/can/gw.c
1308
{.owner = THIS_MODULE, .protocol = PF_CAN, .msgtype = RTM_DELROUTE,
net/can/gw.c
1310
{.owner = THIS_MODULE, .protocol = PF_CAN, .msgtype = RTM_GETROUTE,
net/can/isotp.c
2035
.protocol = CAN_ISOTP,
net/can/j1939/socket.c
1403
.protocol = CAN_J1939,
net/can/raw.c
1097
.protocol = CAN_RAW,
net/ceph/auth.c
177
ceph_encode_32_safe(&p, end, ac->protocol, e_range);
net/ceph/auth.c
184
ceph_auth_proto_name(ac->protocol), ret);
net/ceph/auth.c
204
int protocol;
net/ceph/auth.c
216
protocol = ceph_decode_32(&p);
net/ceph/auth.c
238
if (!protocol && result < 0) {
net/ceph/auth.c
243
if (ac->protocol && ac->protocol != protocol) {
net/ceph/auth.c
245
ac->protocol = 0;
net/ceph/auth.c
248
if (!ac->protocol) {
net/ceph/auth.c
249
ret = init_protocol(ac, protocol);
net/ceph/auth.c
252
ceph_auth_proto_name(protocol), ret);
net/ceph/auth.c
262
ceph_auth_proto_name(ac->protocol), result);
net/ceph/auth.c
331
*proto = ac->protocol;
net/ceph/auth.c
438
if (ac->protocol == CEPH_AUTH_UNKNOWN) {
net/ceph/auth.c
446
WARN_ON(ac->protocol != proto);
net/ceph/auth.c
451
ceph_encode_32_safe(&p, end, ac->protocol, e_range);
net/ceph/auth.c
515
WARN_ON(used_proto != ac->protocol);
net/ceph/auth.c
518
if (!contains(allowed_protos, proto_cnt, ac->protocol)) {
net/ceph/auth.c
520
ceph_auth_proto_name(ac->protocol));
net/ceph/auth.c
539
ceph_auth_proto_name(ac->protocol), result);
net/ceph/auth.c
621
WARN_ON(used_proto != ac->protocol);
net/ceph/auth.c
624
if (!contains(allowed_protos, proto_cnt, ac->protocol)) {
net/ceph/auth.c
626
ceph_auth_proto_name(ac->protocol),
net/ceph/auth.c
648
ceph_auth_proto_name(ac->protocol),
net/ceph/auth_none.c
142
ac->protocol = CEPH_AUTH_NONE;
net/ceph/auth_x.c
1215
ac->protocol = CEPH_AUTH_CEPHX;
net/core/dev.c
2444
skb->protocol = eth_type_trans(skb, dev);
net/core/dev.c
2590
ntohs(skb2->protocol),
net/core/dev.c
3666
__be16 type = skb->protocol;
net/core/dev.c
5535
skb->protocol = eth_type_trans(skb, skb->dev);
net/core/dev.c
5951
switch (skb->protocol) {
net/core/dev.c
6032
if (eth_type_vlan(skb->protocol)) {
net/core/dev.c
6122
} else if (eth_type_vlan(skb->protocol)) {
net/core/dev.c
6152
type = skb->protocol;
net/core/drop_monitor.c
671
if (nla_put_u16(msg, NET_DM_ATTR_PROTO, be16_to_cpu(skb->protocol)))
net/core/drop_monitor.c
829
if (nla_put_u16(msg, NET_DM_ATTR_PROTO, be16_to_cpu(skb->protocol)))
net/core/filter.c
10307
case offsetof(struct bpf_sock, protocol):
net/core/filter.c
10626
case offsetof(struct bpf_sock_addr, protocol):
net/core/filter.c
11724
if (size < sizeof_field(struct sk_buff, protocol))
net/core/filter.c
11776
SK_REUSEPORT_LOAD_SKB_FIELD(protocol);
net/core/filter.c
11833
if (sk && sk->sk_protocol != ctx->protocol)
net/core/filter.c
11890
case bpf_ctx_range(struct bpf_sk_lookup, protocol):
net/core/filter.c
11938
case offsetof(struct bpf_sk_lookup, protocol):
net/core/filter.c
11941
protocol, 2, target_size));
net/core/filter.c
12370
switch (skb->protocol) {
net/core/filter.c
2389
.flowi4_proto = ip4h->protocol,
net/core/filter.c
2443
if (skb->protocol == htons(ETH_P_IP))
net/core/filter.c
2445
else if (skb->protocol == htons(ETH_P_IPV6))
net/core/filter.c
3436
skb->protocol = htons(ETH_P_IPV6);
net/core/filter.c
3467
skb->protocol = htons(ETH_P_IP);
net/core/filter.c
3475
__be16 from_proto = skb->protocol;
net/core/filter.c
3554
switch (skb->protocol) {
net/core/filter.c
3601
if (skb->protocol != htons(ETH_P_IP) &&
net/core/filter.c
3602
skb->protocol != htons(ETH_P_IPV6))
net/core/filter.c
3639
skb_set_inner_protocol(skb, skb->protocol);
net/core/filter.c
3664
skb->protocol = htons(ETH_P_IPV6);
net/core/filter.c
3666
skb->protocol = htons(ETH_P_IP);
net/core/filter.c
369
BUILD_BUG_ON(sizeof_field(struct sk_buff, protocol) != 2);
net/core/filter.c
3723
skb->protocol = htons(ETH_P_IPV6);
net/core/filter.c
3725
skb->protocol = htons(ETH_P_IP);
net/core/filter.c
373
offsetof(struct sk_buff, protocol));
net/core/filter.c
3795
__be16 proto = skb->protocol;
net/core/filter.c
6717
if (skb->protocol != htons(ETH_P_IPV6))
net/core/filter.c
8082
if (skb->protocol != htons(ETH_P_IP) &&
net/core/filter.c
8083
skb->protocol != htons(ETH_P_IPV6))
net/core/filter.c
9151
case offsetof(struct bpf_sock, protocol):
net/core/filter.c
9531
case bpf_ctx_range(struct bpf_sock_addr, protocol):
net/core/filter.c
9894
case offsetof(struct __sk_buff, protocol):
net/core/filter.c
9896
bpf_target_off(struct sk_buff, protocol, 2,
net/core/flow_dissector.c
1079
skb->vlan_proto : skb->protocol;
net/core/flow_dissector.c
1157
n_proto = skb->protocol;
net/core/flow_dissector.c
1219
ip_proto = iph->protocol;
net/core/flow_dissector.c
1313
proto = skb->protocol;
net/core/flow_dissector.c
679
*p_proto = hdr->protocol;
net/core/gro.c
270
__be16 type = skb->protocol;
net/core/gro.c
483
__be16 type = skb->protocol;
net/core/gro.c
713
skb->protocol = eth_type_trans(skb, skb->dev);
net/core/gro.c
772
skb->protocol = eth->h_proto;
net/core/lwt_bpf.c
103
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/core/lwt_bpf.c
192
if (skb->protocol == htons(ETH_P_IP))
net/core/lwt_bpf.c
194
else if (skb->protocol == htons(ETH_P_IPV6))
net/core/lwt_bpf.c
218
fl4.flowi4_proto = iph->protocol;
net/core/lwt_bpf.c
286
__be16 proto = skb->protocol;
net/core/lwt_bpf.c
296
if (skb->protocol != proto) {
net/core/lwt_bpf.c
550
__u8 protocol;
net/core/lwt_bpf.c
560
protocol = ip_hdr(skb)->protocol;
net/core/lwt_bpf.c
564
protocol = ipv6_hdr(skb)->nexthdr;
net/core/lwt_bpf.c
569
switch (protocol) {
net/core/lwt_bpf.c
618
is_udp_tunnel = iph->protocol == IPPROTO_UDP;
net/core/lwt_bpf.c
643
skb_set_inner_protocol(skb, skb->protocol);
net/core/lwt_bpf.c
659
skb->protocol = htons(ETH_P_IP);
net/core/lwt_bpf.c
666
skb->protocol = htons(ETH_P_IPV6);
net/core/lwt_bpf.c
93
if (skb->protocol == htons(ETH_P_IP)) {
net/core/neighbour.c
1580
__be16 prot = n->tbl->protocol;
net/core/neighbour.c
1611
err = dev_hard_header(skb, dev, ntohs(skb->protocol),
net/core/neighbour.c
1640
err = dev_hard_header(skb, dev, ntohs(skb->protocol),
net/core/neighbour.c
2022
u8 protocol = 0;
net/core/neighbour.c
2074
protocol = nla_get_u8(tb[NDA_PROTOCOL]);
net/core/neighbour.c
2081
err = pneigh_create(tbl, net, dst, dev, ndm_flags, protocol,
net/core/neighbour.c
2168
if (protocol)
net/core/neighbour.c
2169
neigh->protocol = protocol;
net/core/neighbour.c
2688
if (neigh->protocol && nla_put_u8(skb, NDA_PROTOCOL, neigh->protocol))
net/core/neighbour.c
2722
u8 protocol;
net/core/neighbour.c
2744
protocol = READ_ONCE(pn->protocol);
net/core/neighbour.c
2745
if (protocol && nla_put_u8(skb, NDA_PROTOCOL, protocol))
net/core/neighbour.c
3228
err = dev_hard_header(skb, dev, ntohs(skb->protocol),
net/core/neighbour.c
781
u32 flags, u8 protocol, bool permanent)
net/core/neighbour.c
819
if (protocol)
net/core/neighbour.c
820
WRITE_ONCE(n->protocol, protocol);
net/core/net_test.c
23
skb->protocol = htons(ETH_P_ATALK);
net/core/pktgen.c
2757
struct sk_buff *skb, __be16 protocol)
net/core/pktgen.c
2788
eth->h_proto = protocol;
net/core/pktgen.c
2935
__be16 protocol = htons(ETH_P_IP);
net/core/pktgen.c
2944
protocol = htons(ETH_P_MPLS_UC);
net/core/pktgen.c
2947
protocol = htons(ETH_P_8021Q);
net/core/pktgen.c
2998
*(__be16 *)&eth[12] = protocol;
net/core/pktgen.c
3015
iph->protocol = IPPROTO_UDP; /* UDP */
net/core/pktgen.c
3024
skb->protocol = protocol;
net/core/pktgen.c
3048
if (!process_ipsec(pkt_dev, skb, protocol))
net/core/pktgen.c
3063
__be16 protocol = htons(ETH_P_IPV6);
net/core/pktgen.c
3072
protocol = htons(ETH_P_MPLS_UC);
net/core/pktgen.c
3075
protocol = htons(ETH_P_8021Q);
net/core/pktgen.c
3126
*(__be16 *) &eth[12] = protocol;
net/core/pktgen.c
3159
skb->protocol = protocol;
net/core/pktgen.c
3567
skb->protocol = eth_type_trans(skb, skb->dev);
net/core/rtnetlink.c
373
static struct rtnl_link *rtnl_get_link(int protocol, int msgtype)
net/core/rtnetlink.c
377
if (protocol >= ARRAY_SIZE(rtnl_msg_handlers))
net/core/rtnetlink.c
378
protocol = PF_UNSPEC;
net/core/rtnetlink.c
380
tab = rcu_dereference_rtnl(rtnl_msg_handlers[protocol]);
net/core/rtnetlink.c
388
int protocol, int msgtype,
net/core/rtnetlink.c
397
BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
net/core/rtnetlink.c
401
tab = rtnl_dereference(rtnl_msg_handlers[protocol]);
net/core/rtnetlink.c
408
rcu_assign_pointer(rtnl_msg_handlers[protocol], tab);
net/core/rtnetlink.c
453
static int rtnl_unregister(int protocol, int msgtype)
net/core/rtnetlink.c
459
BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
net/core/rtnetlink.c
463
tab = rtnl_dereference(rtnl_msg_handlers[protocol]);
net/core/rtnetlink.c
484
void rtnl_unregister_all(int protocol)
net/core/rtnetlink.c
490
BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
net/core/rtnetlink.c
493
tab = rcu_replace_pointer_rtnl(rtnl_msg_handlers[protocol], NULL);
net/core/rtnetlink.c
536
err = rtnl_register_internal(handler->owner, handler->protocol,
net/core/rtnetlink.c
559
rtnl_unregister(handler->protocol, handler->msgtype);
net/core/rtnetlink.c
7198
{.protocol = PF_BRIDGE, .msgtype = RTM_GETLINK,
net/core/rtnetlink.c
7200
{.protocol = PF_BRIDGE, .msgtype = RTM_DELLINK,
net/core/rtnetlink.c
7202
{.protocol = PF_BRIDGE, .msgtype = RTM_SETLINK,
net/core/rtnetlink.c
7204
{.protocol = PF_BRIDGE, .msgtype = RTM_NEWNEIGH, .doit = rtnl_fdb_add},
net/core/rtnetlink.c
7205
{.protocol = PF_BRIDGE, .msgtype = RTM_DELNEIGH, .doit = rtnl_fdb_del,
net/core/rtnetlink.c
7207
{.protocol = PF_BRIDGE, .msgtype = RTM_GETNEIGH, .doit = rtnl_fdb_get,
net/core/rtnetlink.c
7209
{.protocol = PF_BRIDGE, .msgtype = RTM_NEWMDB, .doit = rtnl_mdb_add},
net/core/rtnetlink.c
7210
{.protocol = PF_BRIDGE, .msgtype = RTM_DELMDB, .doit = rtnl_mdb_del,
net/core/rtnetlink.c
7212
{.protocol = PF_BRIDGE, .msgtype = RTM_GETMDB, .doit = rtnl_mdb_get,
net/core/selftests.c
151
skb->protocol = htons(ETH_P_IP);
net/core/selftests.c
198
if (ihdr->protocol != IPPROTO_TCP)
net/core/selftests.c
207
if (ihdr->protocol != IPPROTO_UDP)
net/core/selftests.c
86
ihdr->protocol = IPPROTO_TCP;
net/core/selftests.c
88
ihdr->protocol = IPPROTO_UDP;
net/core/skbuff.c
1351
ntohs(skb->protocol), skb->pkt_type, skb->skb_iif,
net/core/skbuff.c
1572
CHECK_SKB_FIELD(protocol);
net/core/skbuff.c
5911
csum = skb_checksum_setup_ip(skb, ip_hdr(skb)->protocol, off);
net/core/skbuff.c
5919
ip_hdr(skb)->protocol, 0);
net/core/skbuff.c
6043
switch (skb->protocol) {
net/core/skbuff.c
6347
__vlan_hwaccel_put_tag(skb, skb->protocol, vlan_tci);
net/core/skbuff.c
6451
if (unlikely(!eth_type_vlan(skb->protocol)))
net/core/skbuff.c
6459
if (likely(!eth_type_vlan(skb->protocol)))
net/core/skbuff.c
6462
vlan_proto = skb->protocol;
net/core/skbuff.c
6492
skb->protocol = skb->vlan_proto;
net/core/skbuff.c
6561
eth->h_proto = skb->protocol;
net/core/skbuff.c
6616
skb_set_inner_protocol(skb, skb->protocol);
net/core/skbuff.c
6632
skb->protocol = mpls_proto;
net/core/skbuff.c
6655
if (unlikely(!eth_p_mpls(skb->protocol)))
net/core/skbuff.c
6677
skb->protocol = next_proto;
net/core/skbuff.c
6697
if (unlikely(!eth_p_mpls(skb->protocol)))
net/core/skbuff.c
6730
if (unlikely(!eth_p_mpls(skb->protocol)))
net/core/sock.c
4321
int sock_load_diag_module(int family, int protocol)
net/core/sock.c
4323
if (!protocol) {
net/core/sock.c
4333
protocol != IPPROTO_RAW &&
net/core/sock.c
4334
protocol < MAX_INET_PROTOS &&
net/core/sock.c
4335
!rcu_access_pointer(inet_protos[protocol]))
net/core/sock.c
4340
NETLINK_SOCK_DIAG, family, protocol);
net/core/xdp.c
670
skb->protocol = eth_type_trans(skb, rxq->dev);
net/core/xdp.c
786
skb->protocol = eth_type_trans(skb, rxq->dev);
net/core/xdp.c
831
skb->protocol = eth_type_trans(skb, dev);
net/dcb/dcbnl.c
1424
itr->app.protocol);
net/dcb/dcbnl.c
1978
((proto == -1) || itr->app.protocol == proto))
net/dcb/dcbnl.c
1992
itr->app.protocol == app->protocol &&
net/dcb/dcbnl.c
2117
proto = itr->app.protocol;
net/dcb/dcbnl.c
2131
if (dcb_rewr_lookup(new, dev->ifindex, new->protocol)) {
net/dcb/dcbnl.c
2152
itr = dcb_rewr_lookup(del, dev->ifindex, del->protocol);
net/dcb/dcbnl.c
2250
itr->app.protocol < 16 &&
net/dcb/dcbnl.c
2253
p_map->map[prio] |= 1 << itr->app.protocol;
net/dcb/dcbnl.c
2276
itr->app.protocol < 64 &&
net/dcb/dcbnl.c
2279
p_map->map[prio] |= 1ULL << itr->app.protocol;
net/dcb/dcbnl.c
2305
itr->app.protocol < 64 &&
net/dcb/dcbnl.c
2308
p_map->map[prio] |= 1ULL << itr->app.protocol;
net/dcb/dcbnl.c
2334
itr->app.protocol < 64 &&
net/dcb/dcbnl.c
2336
p_map->map[itr->app.protocol] |= 1 << itr->app.priority;
net/dcb/dcbnl.c
2362
itr->app.protocol == 0 &&
net/dcb/dcbnl.c
505
.protocol = id,
net/dcb/dcbnl.c
574
app.protocol = id;
net/devlink/health.c
1323
devlink_fmsg_put(fmsg, "proto", ntohs(skb->protocol));
net/dsa/tag.c
96
skb->protocol = eth_type_trans(skb, skb->dev);
net/dsa/tag.h
165
if (!skb_vlan_tag_present(skb) && skb->protocol == htons(proto)) {
net/dsa/tag_dsa.c
164
if (skb->protocol == htons(ETH_P_8021Q) &&
net/dsa/tag_mtk.c
38
switch (skb->protocol) {
net/dsa/user.c
1381
if (cls->common.protocol != htons(ETH_P_ALL)) {
net/dsa/user.c
2299
u8 dscp = app->protocol;
net/dsa/user.c
2342
switch (app->protocol) {
net/dsa/user.c
2389
u8 dscp = app->protocol;
net/dsa/user.c
2424
switch (app->protocol) {
net/dsa/user.c
2452
.protocol = 0,
net/dsa/user.c
2465
int protocol;
net/dsa/user.c
2467
for (protocol = 0; protocol < 64; protocol++) {
net/dsa/user.c
2470
.protocol = protocol,
net/dsa/user.c
2474
prio = ds->ops->port_get_dscp_prio(ds, port, protocol);
net/hsr/hsr_forward.c
174
skb->protocol = eth_hdr(skb)->h_proto;
net/hsr/hsr_forward.c
262
skb->protocol = eth_hdr(skb)->h_proto;
net/hsr/hsr_forward.c
323
skb->protocol = hsr_ethhdr->ethhdr.h_proto;
net/hsr/hsr_main.h
177
bool (*invalid_dan_ingress_frame)(__be16 protocol);
net/hsr/hsr_slave.c
19
bool hsr_invalid_dan_ingress_frame(__be16 protocol)
net/hsr/hsr_slave.c
21
return (protocol != htons(ETH_P_PRP) && protocol != htons(ETH_P_HSR));
net/hsr/hsr_slave.c
29
__be16 protocol;
net/hsr/hsr_slave.c
55
protocol = eth_hdr(skb)->h_proto;
net/hsr/hsr_slave.c
60
hsr->proto_ops->invalid_dan_ingress_frame(protocol))
net/hsr/hsr_slave.c
65
if ((!hsr->prot_version && protocol == htons(ETH_P_PRP)) ||
net/hsr/hsr_slave.c
66
protocol == htons(ETH_P_HSR)) {
net/hsr/hsr_slave.h
35
bool hsr_invalid_dan_ingress_frame(__be16 protocol);
net/ieee802154/6lowpan/rx.c
23
skb->protocol = htons(ETH_P_IPV6);
net/ieee802154/6lowpan/tx.c
258
if (skb->protocol != htons(ETH_P_IPV6)) {
net/ieee802154/socket.c
1002
int protocol, int kern)
net/ieee802154/socket.c
297
skb->protocol = htons(ETH_P_IEEE802154);
net/ieee802154/socket.c
687
skb->protocol = htons(ETH_P_IEEE802154);
net/ipv4/af_inet.c
1166
.protocol = IPPROTO_TCP,
net/ipv4/af_inet.c
1175
.protocol = IPPROTO_UDP,
net/ipv4/af_inet.c
1183
.protocol = IPPROTO_ICMP,
net/ipv4/af_inet.c
1191
.protocol = IPPROTO_IP, /* wild card */
net/ipv4/af_inet.c
1204
int protocol = p->protocol;
net/ipv4/af_inet.c
1219
if (protocol == answer->protocol)
net/ipv4/af_inet.c
1237
pr_err("Attempt to override permanent protocol %d\n", protocol);
net/ipv4/af_inet.c
1251
p->protocol);
net/ipv4/af_inet.c
1388
proto = iph->protocol;
net/ipv4/af_inet.c
1485
proto = iph->protocol;
net/ipv4/af_inet.c
1515
if ((iph->protocol ^ iph2->protocol) |
net/ipv4/af_inet.c
1599
int proto = iph->protocol;
net/ipv4/af_inet.c
1635
unsigned short type, unsigned char protocol,
net/ipv4/af_inet.c
1639
int rc = sock_create_kern(net, family, type, protocol, &sock);
net/ipv4/af_inet.c
259
static int inet_create(struct net *net, struct socket *sock, int protocol,
net/ipv4/af_inet.c
270
if (protocol < 0 || protocol >= IPPROTO_MAX)
net/ipv4/af_inet.c
283
if (protocol == answer->protocol) {
net/ipv4/af_inet.c
284
if (protocol != IPPROTO_IP)
net/ipv4/af_inet.c
288
if (IPPROTO_IP == protocol) {
net/ipv4/af_inet.c
289
protocol = answer->protocol;
net/ipv4/af_inet.c
292
if (IPPROTO_IP == answer->protocol)
net/ipv4/af_inet.c
307
PF_INET, protocol, sock->type);
net/ipv4/af_inet.c
314
PF_INET, protocol);
net/ipv4/af_inet.c
350
inet->inet_num = protocol;
net/ipv4/af_inet.c
351
if (IPPROTO_RAW == protocol)
net/ipv4/af_inet.c
365
sk->sk_protocol = protocol;
net/ipv4/arp.c
155
.protocol = cpu_to_be16(ETH_P_IP),
net/ipv4/arp.c
569
skb->protocol = htons(ETH_P_ARP);
net/ipv4/cipso_ipv4.c
1720
if (ip_hdr(skb)->protocol == IPPROTO_ICMP || error != -EACCES)
net/ipv4/devinet.c
2954
{.protocol = PF_INET, .msgtype = RTM_NEWADDR, .doit = inet_rtm_newaddr,
net/ipv4/devinet.c
2956
{.protocol = PF_INET, .msgtype = RTM_DELADDR, .doit = inet_rtm_deladdr,
net/ipv4/devinet.c
2958
{.protocol = PF_INET, .msgtype = RTM_GETADDR, .dumpit = inet_dump_ifaddr,
net/ipv4/devinet.c
2960
{.protocol = PF_INET, .msgtype = RTM_GETNETCONF,
net/ipv4/devinet.c
2963
{.owner = THIS_MODULE, .protocol = PF_INET, .msgtype = RTM_GETMULTICAST,
net/ipv4/esp4_offload.c
109
int proto = iph->protocol;
net/ipv4/esp4_offload.c
346
ip_hdr(skb)->protocol = IPPROTO_UDP;
net/ipv4/fib_frontend.c
1004
if (filter->flags || filter->protocol || filter->rt_type ||
net/ipv4/fib_frontend.c
1689
{.protocol = PF_INET, .msgtype = RTM_NEWROUTE,
net/ipv4/fib_frontend.c
1691
{.protocol = PF_INET, .msgtype = RTM_DELROUTE,
net/ipv4/fib_frontend.c
1693
{.protocol = PF_INET, .msgtype = RTM_GETROUTE, .dumpit = inet_dump_fib,
net/ipv4/fib_frontend.c
972
filter->protocol = rtm->rtm_protocol;
net/ipv4/fib_semantics.c
315
static unsigned int fib_info_hashfn_1(int init_val, u8 protocol, u8 scope,
net/ipv4/fib_semantics.c
320
val ^= (protocol << 8) | scope;
net/ipv4/fib_trie.c
2273
if ((filter->protocol &&
net/ipv4/fib_trie.c
2274
fi->fib_protocol != filter->protocol))
net/ipv4/fou_core.c
1032
struct flowi4 *fl4, u8 *protocol, __be16 sport)
net/ipv4/fou_core.c
1047
*protocol = IPPROTO_UDP;
net/ipv4/fou_core.c
1051
u8 *protocol, struct flowi4 *fl4)
net/ipv4/fou_core.c
1058
err = __fou_build_header(skb, e, protocol, &sport, type);
net/ipv4/fou_core.c
1062
fou_build_udp(skb, e, fl4, protocol, sport);
net/ipv4/fou_core.c
1068
u8 *protocol, struct flowi4 *fl4)
net/ipv4/fou_core.c
1075
err = __gue_build_header(skb, e, protocol, &sport, type);
net/ipv4/fou_core.c
1079
fou_build_udp(skb, e, fl4, protocol, sport);
net/ipv4/fou_core.c
26
u8 protocol;
net/ipv4/fou_core.c
266
ops = fou_gro_ops(sk, fou->protocol);
net/ipv4/fou_core.c
288
ops = fou_gro_ops(sk, fou->protocol);
net/ipv4/fou_core.c
39
u8 protocol;
net/ipv4/fou_core.c
606
fou->protocol = cfg->protocol;
net/ipv4/fou_core.c
694
cfg->protocol = nla_get_u8(info->attrs[FOU_ATTR_IPPROTO]);
net/ipv4/fou_core.c
784
nla_put_u8(msg, FOU_ATTR_IPPROTO, fou->protocol) ||
net/ipv4/fou_core.c
83
return -fou->protocol;
net/ipv4/fou_core.c
941
u8 *protocol, __be16 *sport, int type)
net/ipv4/fou_core.c
957
u8 *protocol, __be16 *sport, int type)
net/ipv4/fou_core.c
992
guehdr->proto_ctype = *protocol;
net/ipv4/gre_demux.c
131
if ((greh->protocol == htons(ETH_P_ERSPAN) && hdr_len != 4) ||
net/ipv4/gre_demux.c
132
greh->protocol == htons(ETH_P_ERSPAN2)) {
net/ipv4/gre_demux.c
83
tpi->proto = greh->protocol;
net/ipv4/gre_offload.c
162
type = greh->protocol;
net/ipv4/gre_offload.c
209
greh2->protocol != greh->protocol) {
net/ipv4/gre_offload.c
23
__be16 protocol = skb->protocol;
net/ipv4/gre_offload.c
247
type = greh->protocol;
net/ipv4/gre_offload.c
43
skb->protocol = skb->inner_protocol;
net/ipv4/gre_offload.c
60
skb_gso_error_unwind(skb, protocol, tnl_hlen, mac_offset,
net/ipv4/gre_offload.c
81
skb->protocol = protocol;
net/ipv4/icmp.c
1072
int protocol = iph->protocol;
net/ipv4/icmp.c
1081
if (protocol == IPPROTO_RAW)
net/ipv4/icmp.c
1084
raw_icmp_error(skb, protocol, info);
net/ipv4/icmp.c
1086
ipprot = rcu_dereference(inet_protos[protocol]);
net/ipv4/icmp.c
1160
if (!icmp_tag_validation(iph->protocol))
net/ipv4/icmp.c
883
if (iph->protocol == IPPROTO_ICMP) {
net/ipv4/igmp.c
1742
if (ip_hdr(skb)->protocol != IPPROTO_IGMP)
net/ipv4/igmp.c
431
pip->protocol = IPPROTO_IGMP;
net/ipv4/igmp.c
812
iph->protocol = IPPROTO_IGMP;
net/ipv4/inet_diag.c
223
int protocol;
net/ipv4/inet_diag.c
226
protocol = inet_diag_get_protocol(req, cb_data);
net/ipv4/inet_diag.c
229
handler = rcu_dereference_protected(inet_diag_table[protocol], 1);
net/ipv4/inet_diag.c
409
int err, protocol;
net/ipv4/inet_diag.c
416
protocol = inet_diag_get_protocol(req, &dump_data);
net/ipv4/inet_diag.c
418
handler = inet_diag_lock_handler(protocol);
net/ipv4/inet_diag.c
815
int protocol, err = 0;
net/ipv4/inet_diag.c
817
protocol = inet_diag_get_protocol(r, cb_data);
net/ipv4/inet_diag.c
821
handler = inet_diag_lock_handler(protocol);
net/ipv4/inet_hashtables.c
444
int protocol,
net/ipv4/inet_hashtables.c
453
no_reuseport = bpf_sk_lookup_run_v4(net, protocol, saddr, sport,
net/ipv4/ip_fragment.c
208
.protocol = iph->protocol,
net/ipv4/ip_fragment.c
509
if (skb->protocol != htons(ETH_P_IP))
net/ipv4/ip_gre.c
1013
tunnel->parms.iph.protocol = IPPROTO_GRE;
net/ipv4/ip_gre.c
1192
parms->iph.protocol = IPPROTO_GRE;
net/ipv4/ip_gre.c
1359
tunnel->parms.iph.protocol = IPPROTO_GRE;
net/ipv4/ip_gre.c
491
ip_tunnel_xmit(skb, dev, tnl_params, tnl_params->protocol);
net/ipv4/ip_gre.c
585
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/ip_gre.c
589
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ip_gre.c
662
gre_fb_xmit(skb, dev, skb->protocol);
net/ipv4/ip_gre.c
695
__gre_xmit(skb, dev, tnl_params, skb->protocol);
net/ipv4/ip_gre.c
832
if (p->iph.version != 4 || p->iph.protocol != IPPROTO_GRE ||
net/ipv4/ip_gre.c
908
greh->protocol = htons(type);
net/ipv4/ip_input.c
153
u8 protocol = ip_hdr(skb)->protocol;
net/ipv4/ip_input.c
164
if (sk && inet_sk(sk)->inet_num == protocol &&
net/ipv4/ip_input.c
189
void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol)
net/ipv4/ip_input.c
195
raw = raw_local_deliver(skb, protocol);
net/ipv4/ip_input.c
197
ipprot = rcu_dereference(inet_protos[protocol]);
net/ipv4/ip_input.c
210
protocol = -ret;
net/ipv4/ip_input.c
241
ip_protocol_deliver_rcu(net, skb, ip_hdr(skb)->protocol);
net/ipv4/ip_input.c
380
switch (iph->protocol) {
net/ipv4/ip_output.c
118
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
1460
iph->protocol = sk->sk_protocol;
net/ipv4/ip_output.c
1482
if (iph->protocol == IPPROTO_ICMP) {
net/ipv4/ip_output.c
1638
RT_SCOPE_UNIVERSE, ip_hdr(skb)->protocol,
net/ipv4/ip_output.c
1650
sk->sk_protocol = ip_hdr(skb)->protocol;
net/ipv4/ip_output.c
170
iph->protocol = sk->sk_protocol;
net/ipv4/ip_output.c
376
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
435
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
516
iph->protocol = sk->sk_protocol;
net/ipv4/ip_output.c
555
to->protocol = from->protocol;
net/ipv4/ip_sockglue.c
326
ipc->protocol = val;
net/ipv4/ip_tunnel.c
296
ip_tunnel_init_flow(&fl4, iph->protocol, iph->daddr,
net/ipv4/ip_tunnel.c
368
if (iph->protocol != IPPROTO_UDP)
net/ipv4/ip_tunnel.c
439
skb->protocol = eth_type_trans(skb, tunnel->dev);
net/ipv4/ip_tunnel.c
535
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ip_tunnel.c
544
else if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ip_tunnel.c
594
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/ip_tunnel.c
596
else if (skb->protocol == htons(ETH_P_IPV6))
net/ipv4/ip_tunnel.c
640
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/ip_tunnel.c
642
else if (skb->protocol == htons(ETH_P_IPV6))
net/ipv4/ip_tunnel.c
670
const struct iphdr *tnl_params, u8 protocol)
net/ipv4/ip_tunnel.c
763
ip_tunnel_init_flow(&fl4, protocol, dst, tnl_params->saddr,
net/ipv4/ip_tunnel.c
768
if (ip_tunnel_encap(skb, &tunnel->encap, &protocol, &fl4) < 0)
net/ipv4/ip_tunnel.c
848
iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl,
net/ipv4/ip_tunnel_core.c
1195
parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]);
net/ipv4/ip_tunnel_core.c
125
skb->protocol = eh->h_proto;
net/ipv4/ip_tunnel_core.c
127
skb->protocol = htons(ETH_P_802_2);
net/ipv4/ip_tunnel_core.c
130
skb->protocol = inner_proto;
net/ipv4/ip_tunnel_core.c
259
.protocol = IPPROTO_ICMP,
net/ipv4/ip_tunnel_core.c
293
if (iph->protocol == IPPROTO_ICMP) {
net/ipv4/ip_tunnel_core.c
451
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/ip_tunnel_core.c
455
if (skb->protocol == htons(ETH_P_IPV6))
net/ipv4/ip_tunnel_core.c
90
iph->protocol = proto;
net/ipv4/ip_vti.c
124
inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol);
net/ipv4/ip_vti.c
181
switch (skb->protocol) {
net/ipv4/ip_vti.c
243
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ip_vti.c
291
switch (skb->protocol) {
net/ipv4/ip_vti.c
326
int protocol = iph->protocol;
net/ipv4/ip_vti.c
339
switch (protocol) {
net/ipv4/ip_vti.c
368
spi, protocol, AF_INET);
net/ipv4/ip_vti.c
373
ipv4_update_pmtu(skb, net, info, 0, protocol);
net/ipv4/ip_vti.c
375
ipv4_redirect(skb, net, 0, protocol);
net/ipv4/ip_vti.c
388
if (p->iph.version != 4 || p->iph.protocol != IPPROTO_IPIP ||
net/ipv4/ip_vti.c
458
iph->protocol = IPPROTO_IPIP;
net/ipv4/ip_vti.c
551
parms->iph.protocol = IPPROTO_IPIP;
net/ipv4/ip_vti.c
89
return vti_input(skb, ip_hdr(skb)->protocol, spi, 0, update_skb_dev);
net/ipv4/ipconfig.c
1010
if (h->ihl != 5 || h->version != 4 || h->protocol != IPPROTO_UDP)
net/ipv4/ipconfig.c
843
h->protocol = IPPROTO_UDP;
net/ipv4/ipconfig.c
881
skb->protocol = htons(ETH_P_IP);
net/ipv4/ipconfig.c
882
if (dev_hard_header(skb, dev, ntohs(skb->protocol),
net/ipv4/ipip.c
176
ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol);
net/ipv4/ipip.c
181
ipv4_redirect(skb, net, t->parms.link, iph->protocol);
net/ipv4/ipip.c
232
if (tunnel->parms.iph.protocol != ipproto &&
net/ipv4/ipip.c
233
tunnel->parms.iph.protocol != 0)
net/ipv4/ipip.c
292
switch (skb->protocol) {
net/ipv4/ipip.c
305
if (tiph->protocol != ipproto && tiph->protocol != 0)
net/ipv4/ipip.c
345
!ipip_tunnel_ioctl_verify_protocol(p->iph.protocol) ||
net/ipv4/ipip.c
448
parms->iph.protocol = IPPROTO_IPIP;
net/ipv4/ipip.c
560
nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
net/ipv4/ipmr.c
1111
ip_hdr(skb)->protocol = 0;
net/ipv4/ipmr.c
1855
iph->protocol = IPPROTO_IPIP;
net/ipv4/ipmr.c
2225
} else if (ip_hdr(skb)->protocol == IPPROTO_IGMP) {
net/ipv4/ipmr.c
3361
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_GETLINK,
net/ipv4/ipmr.c
3363
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_NEWROUTE,
net/ipv4/ipmr.c
3365
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_DELROUTE,
net/ipv4/ipmr.c
3367
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_GETROUTE,
net/ipv4/ipmr.c
492
p.iph.protocol = IPPROTO_IPIP;
net/ipv4/ipmr.c
645
skb->protocol = htons(ETH_P_IP);
net/ipv4/ipmr_base.c
375
if (filter->protocol || filter->flags ||
net/ipv4/netfilter/ip_tables.c
69
NF_INVF(ipinfo, IPT_INV_PROTO, ip->protocol != ipinfo->proto))
net/ipv4/netfilter/ipt_ECN.c
86
ip_hdr(skb)->protocol == IPPROTO_TCP)
net/ipv4/netfilter/nf_dup_ipv4.c
46
skb->protocol = htons(ETH_P_IP);
net/ipv4/netfilter/nf_nat_h323.c
40
if (ip_hdr(skb)->protocol == IPPROTO_TCP) {
net/ipv4/netfilter/nf_reject_ipv4.c
138
proto = ip_hdr(oldskb)->protocol;
net/ipv4/netfilter/nf_reject_ipv4.c
17
__u8 protocol, int ttl);
net/ipv4/netfilter/nf_reject_ipv4.c
183
if (ip_hdr(oldskb)->protocol != IPPROTO_TCP)
net/ipv4/netfilter/nf_reject_ipv4.c
204
__u8 protocol, int ttl)
net/ipv4/netfilter/nf_reject_ipv4.c
215
niph->protocol = protocol;
net/ipv4/netfilter/nf_reject_ipv4.c
221
nskb->protocol = htons(ETH_P_IP);
net/ipv4/netfilter/nf_reject_ipv4.c
331
if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol),
net/ipv4/netfilter/nf_reject_ipv4.c
350
u8 proto = iph->protocol;
net/ipv4/netfilter/nf_reject_ipv4.c
89
if (iph->protocol != IPPROTO_ICMP)
net/ipv4/netfilter/nf_socket_ipv4.c
100
if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) {
net/ipv4/netfilter/nf_socket_ipv4.c
105
iph->protocol == IPPROTO_UDP ?
net/ipv4/netfilter/nf_socket_ipv4.c
110
protocol = iph->protocol;
net/ipv4/netfilter/nf_socket_ipv4.c
116
doff = iph->protocol == IPPROTO_TCP ?
net/ipv4/netfilter/nf_socket_ipv4.c
120
} else if (iph->protocol == IPPROTO_ICMP) {
net/ipv4/netfilter/nf_socket_ipv4.c
121
if (extract_icmp4_fields(skb, &protocol, &saddr, &daddr,
net/ipv4/netfilter/nf_socket_ipv4.c
135
((iph->protocol != IPPROTO_ICMP &&
net/ipv4/netfilter/nf_socket_ipv4.c
137
(iph->protocol == IPPROTO_ICMP &&
net/ipv4/netfilter/nf_socket_ipv4.c
142
dport = (iph->protocol == IPPROTO_TCP) ?
net/ipv4/netfilter/nf_socket_ipv4.c
148
return nf_socket_get_sock_v4(net, data_skb, doff, protocol, saddr,
net/ipv4/netfilter/nf_socket_ipv4.c
20
extract_icmp4_fields(const struct sk_buff *skb, u8 *protocol,
net/ipv4/netfilter/nf_socket_ipv4.c
43
if (inside_iph->protocol != IPPROTO_TCP &&
net/ipv4/netfilter/nf_socket_ipv4.c
44
inside_iph->protocol != IPPROTO_UDP)
net/ipv4/netfilter/nf_socket_ipv4.c
56
*protocol = inside_iph->protocol;
net/ipv4/netfilter/nf_socket_ipv4.c
67
const u8 protocol,
net/ipv4/netfilter/nf_socket_ipv4.c
72
switch (protocol) {
net/ipv4/netfilter/nf_socket_ipv4.c
90
u8 protocol;
net/ipv4/netfilter/nf_tproxy_ipv4.c
145
protocol, ntohl(saddr), ntohs(sport), ntohl(daddr), ntohs(dport), lookup_type, sk);
net/ipv4/netfilter/nf_tproxy_ipv4.c
36
sk2 = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
net/ipv4/netfilter/nf_tproxy_ipv4.c
78
const u8 protocol,
net/ipv4/netfilter/nf_tproxy_ipv4.c
86
switch (protocol) {
net/ipv4/nexthop.c
1172
nhm->nh_protocol = nh->protocol;
net/ipv4/nexthop.c
2477
old_protocol = old->protocol;
net/ipv4/nexthop.c
2480
old->protocol = new->protocol;
net/ipv4/nexthop.c
2515
old->protocol = old_protocol;
net/ipv4/nexthop.c
3025
nh->protocol = cfg->nh_protocol;
net/ipv4/nexthop.c
4192
{.protocol = PF_INET, .msgtype = RTM_NEWNEXTHOP,
net/ipv4/nexthop.c
4194
{.protocol = PF_INET, .msgtype = RTM_GETNEXTHOP,
net/ipv4/nexthop.c
4196
{.protocol = PF_INET6, .msgtype = RTM_NEWNEXTHOP,
net/ipv4/nexthop.c
4198
{.protocol = PF_INET6, .msgtype = RTM_GETNEXTHOP,
net/ipv4/nexthop.c
931
nhm->nh_protocol = nh->protocol;
net/ipv4/ping.c
164
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
170
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ping.c
192
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/ping.c
203
} else if (skb->protocol == htons(ETH_P_IPV6) &&
net/ipv4/ping.c
496
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
501
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ping.c
516
skb->protocol, type, code, ntohs(icmph->un.echo.id),
net/ipv4/ping.c
530
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
569
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ping.c
911
if (skb->protocol == htons(ETH_P_IPV6) &&
net/ipv4/ping.c
914
else if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/protocol.c
32
int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol)
net/ipv4/protocol.c
34
return !cmpxchg((const struct net_protocol **)&inet_protos[protocol],
net/ipv4/protocol.c
39
int inet_add_offload(const struct net_offload *prot, unsigned char protocol)
net/ipv4/protocol.c
41
return !cmpxchg((const struct net_offload **)&inet_offloads[protocol],
net/ipv4/protocol.c
46
int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol)
net/ipv4/protocol.c
50
ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol],
net/ipv4/protocol.c
59
int inet_del_offload(const struct net_offload *prot, unsigned char protocol)
net/ipv4/protocol.c
63
ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol],
net/ipv4/raw.c
181
if (!raw_v4_match(net, sk, iph->protocol,
net/ipv4/raw.c
192
if ((iph->protocol != IPPROTO_ICMP || !icmp_filter(sk, skb)) &&
net/ipv4/raw.c
206
int raw_local_deliver(struct sk_buff *skb, int protocol)
net/ipv4/raw.c
211
raw_hashfunc(net, protocol));
net/ipv4/raw.c
278
void raw_icmp_error(struct sk_buff *skb, int protocol, u32 info)
net/ipv4/raw.c
288
hash = raw_hashfunc(net, protocol);
net/ipv4/raw.c
294
if (!raw_v4_match(net, sk, iph->protocol,
net/ipv4/raw.c
367
skb->protocol = htons(ETH_P_IP);
net/ipv4/raw.c
413
if (iph->protocol == IPPROTO_ICMP &&
net/ipv4/raw.c
551
ipc.protocol = IPPROTO_RAW;
net/ipv4/raw.c
618
hdrincl ? ipc.protocol : sk->sk_protocol,
net/ipv4/route.c
1085
int oif, u8 protocol)
net/ipv4/route.c
1092
__build_flow_key(net, &fl4, NULL, iph, oif, iph->tos, protocol, mark,
net/ipv4/route.c
1174
int oif, u8 protocol)
net/ipv4/route.c
1180
__build_flow_key(net, &fl4, NULL, iph, oif, iph->tos, protocol, 0, 0);
net/ipv4/route.c
1716
if (skb->protocol != htons(ETH_P_IP))
net/ipv4/route.c
1724
ip_hdr(skb)->protocol != IPPROTO_IGMP)
net/ipv4/route.c
1840
skb->protocol == htons(ETH_P_IP)) {
net/ipv4/route.c
1849
if (skb->protocol != htons(ETH_P_IP)) {
net/ipv4/route.c
1915
if (likely(outer_iph->protocol != IPPROTO_ICMP))
net/ipv4/route.c
2393
if (skb->protocol != htons(ETH_P_IP)) {
net/ipv4/route.c
2513
ip_hdr(skb)->protocol);
net/ipv4/route.c
2522
ip_hdr(skb)->protocol);
net/ipv4/route.c
3171
skb->protocol = htons(ETH_P_IP);
net/ipv4/route.c
3173
iph->protocol = ip_proto;
net/ipv4/route.c
3181
switch (iph->protocol) {
net/ipv4/route.c
3713
{.protocol = PF_INET, .msgtype = RTM_GETROUTE,
net/ipv4/route.c
503
iph->protocol,
net/ipv4/route.c
537
u8 prot = iph->protocol;
net/ipv4/route.c
836
u8 prot = iph->protocol;
net/ipv4/tcp.c
4401
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/tcp.c
4403
else if (skb->protocol == htons(ETH_P_IPV6))
net/ipv4/tcp_ao.c
543
.protocol = IPPROTO_TCP,
net/ipv4/tcp_input.c
1000
if (skb->protocol == htons(ETH_P_IPV6))
net/ipv4/tcp_input.c
5052
skb->protocol == htons(ETH_P_IPV6) &&
net/ipv4/tcp_ipv4.c
1557
h.ip.protocol = IPPROTO_TCP;
net/ipv4/udp.c
1757
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/udp.c
2786
iph->protocol);
net/ipv4/udp_offload.c
183
__be16 protocol = skb->protocol;
net/ipv4/udp_offload.c
212
skb->protocol = new_protocol;
net/ipv4/udp_offload.c
245
skb_gso_error_unwind(skb, protocol, tnl_hlen, mac_offset,
net/ipv4/udp_offload.c
268
skb->protocol = protocol;
net/ipv4/udp_offload.c
314
__be16 protocol = skb->protocol;
net/ipv4/udp_offload.c
324
protocol = skb->inner_protocol;
net/ipv4/udp_offload.c
339
protocol, is_ipv6);
net/ipv4/xfrm4_input.c
227
return xfrm4_rcv_spi(skb, ip_hdr(skb)->protocol, 0);
net/ipv4/xfrm4_input.c
55
iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol;
net/ipv4/xfrm4_input.c
59
return -iph->protocol;
net/ipv4/xfrm4_protocol.c
203
static inline const struct net_protocol *netproto(unsigned char protocol)
net/ipv4/xfrm4_protocol.c
205
switch (protocol) {
net/ipv4/xfrm4_protocol.c
218
unsigned char protocol)
net/ipv4/xfrm4_protocol.c
226
if (!proto_handlers(protocol) || !netproto(protocol))
net/ipv4/xfrm4_protocol.c
231
if (!rcu_dereference_protected(*proto_handlers(protocol),
net/ipv4/xfrm4_protocol.c
235
for (pprev = proto_handlers(protocol);
net/ipv4/xfrm4_protocol.c
254
if (inet_add_protocol(netproto(protocol), protocol)) {
net/ipv4/xfrm4_protocol.c
26
static inline struct xfrm4_protocol __rcu **proto_handlers(u8 protocol)
net/ipv4/xfrm4_protocol.c
265
unsigned char protocol)
net/ipv4/xfrm4_protocol.c
271
if (!proto_handlers(protocol) || !netproto(protocol))
net/ipv4/xfrm4_protocol.c
276
for (pprev = proto_handlers(protocol);
net/ipv4/xfrm4_protocol.c
28
switch (protocol) {
net/ipv4/xfrm4_protocol.c
287
if (!rcu_dereference_protected(*proto_handlers(protocol),
net/ipv4/xfrm4_protocol.c
289
if (inet_del_protocol(netproto(protocol), protocol) < 0) {
net/ipv4/xfrm4_protocol.c
45
static int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err)
net/ipv4/xfrm4_protocol.c
49
struct xfrm4_protocol __rcu **head = proto_handlers(protocol);
net/ipv4/xfrm4_tunnel.c
22
return ip_hdr(skb)->protocol;
net/ipv6/addrconf.c
2977
p.iph.protocol = IPPROTO_IPV6;
net/ipv6/addrconf.c
7551
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETLINK,
net/ipv6/addrconf.c
7553
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_NEWADDR,
net/ipv6/addrconf.c
7555
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_DELADDR,
net/ipv6/addrconf.c
7557
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETADDR,
net/ipv6/addrconf.c
7560
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETMULTICAST,
net/ipv6/addrconf.c
7563
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETANYCAST,
net/ipv6/addrconf.c
7566
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETNETCONF,
net/ipv6/addrlabel.c
628
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_NEWADDRLABEL,
net/ipv6/addrlabel.c
630
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_DELADDRLABEL,
net/ipv6/addrlabel.c
632
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETADDRLABEL,
net/ipv6/af_inet6.c
105
static int inet6_create(struct net *net, struct socket *sock, int protocol,
net/ipv6/af_inet6.c
117
if (protocol < 0 || protocol >= IPPROTO_MAX)
net/ipv6/af_inet6.c
128
if (protocol == answer->protocol) {
net/ipv6/af_inet6.c
129
if (protocol != IPPROTO_IP)
net/ipv6/af_inet6.c
133
if (IPPROTO_IP == protocol) {
net/ipv6/af_inet6.c
134
protocol = answer->protocol;
net/ipv6/af_inet6.c
137
if (IPPROTO_IP == answer->protocol)
net/ipv6/af_inet6.c
152
PF_INET6, protocol, sock->type);
net/ipv6/af_inet6.c
159
PF_INET6, protocol);
net/ipv6/af_inet6.c
195
inet->inet_num = protocol;
net/ipv6/af_inet6.c
196
if (IPPROTO_RAW == protocol)
net/ipv6/af_inet6.c
202
sk->sk_protocol = protocol;
net/ipv6/af_inet6.c
733
int protocol = p->protocol;
net/ipv6/af_inet6.c
751
if (protocol == answer->protocol)
net/ipv6/af_inet6.c
774
pr_err("Attempt to override permanent protocol %d\n", protocol);
net/ipv6/af_inet6.c
789
p->protocol);
net/ipv6/datagram.c
320
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/datagram.c
359
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/datagram.c
492
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/datagram.c
517
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/datagram.c
599
bool is_ipv6 = skb->protocol == htons(ETH_P_IPV6);
net/ipv6/exthdrs.c
418
skb->protocol = htons(ETH_P_IP);
net/ipv6/fou6.c
22
struct flowi6 *fl6, u8 *protocol, __be16 sport)
net/ipv6/fou6.c
37
*protocol = IPPROTO_UDP;
net/ipv6/fou6.c
41
u8 *protocol, struct flowi6 *fl6)
net/ipv6/fou6.c
48
err = __fou_build_header(skb, e, protocol, &sport, type);
net/ipv6/fou6.c
52
fou6_build_udp(skb, e, fl6, protocol, sport);
net/ipv6/fou6.c
58
u8 *protocol, struct flowi6 *fl6)
net/ipv6/fou6.c
65
err = __gue_build_header(skb, e, protocol, &sport, type);
net/ipv6/fou6.c
69
fou6_build_udp(skb, e, fl6, protocol, sport);
net/ipv6/ila/ila_lwt.c
113
if (skb->protocol != htons(ETH_P_IPV6))
net/ipv6/ila/ila_lwt.c
46
if (skb->protocol != htons(ETH_P_IPV6))
net/ipv6/inet6_hashtables.c
213
int protocol,
net/ipv6/inet6_hashtables.c
224
no_reuseport = bpf_sk_lookup_run_v6(net, protocol, saddr, sport,
net/ipv6/ioam6_iptunnel.c
346
if (skb->protocol != htons(ETH_P_IPV6))
net/ipv6/ip6_fib.c
2562
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETROUTE,
net/ipv6/ip6_gre.c
1017
switch (skb->protocol) {
net/ipv6/ip6_gre.c
1069
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/ip6_gre.c
725
__be16 protocol;
net/ipv6/ip6_gre.c
736
protocol = (dev->type == ARPHRD_ETHER) ? htons(ETH_P_TEB) : proto;
net/ipv6/ip6_gre.c
768
flags, protocol,
net/ipv6/ip6_gre.c
781
protocol, tunnel->parms.o_key,
net/ipv6/ip6_gre.c
812
skb->protocol);
net/ipv6/ip6_gre.c
846
&mtu, skb->protocol);
net/ipv6/ip6_gre.c
873
err = __gre6_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, skb->protocol);
net/ipv6/ip6_gre.c
949
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv6/ip6_gre.c
953
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/ip6_output.c
1707
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ip6_output.c
233
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ip6_output.c
359
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ip6_output.c
706
to->protocol = from->protocol;
net/ipv6/ip6_tunnel.c
1207
mtu = max(mtu, skb->protocol == htons(ETH_P_IPV6) ?
net/ipv6/ip6_tunnel.c
1306
u8 protocol)
net/ipv6/ip6_tunnel.c
1320
if (tproto != protocol && tproto != 0)
net/ipv6/ip6_tunnel.c
1333
fl6.flowi6_proto = protocol;
net/ipv6/ip6_tunnel.c
1338
switch (protocol) {
net/ipv6/ip6_tunnel.c
1354
if (protocol == IPPROTO_IPV6) {
net/ipv6/ip6_tunnel.c
1374
fl6.flowi6_proto = protocol;
net/ipv6/ip6_tunnel.c
1380
switch (protocol) {
net/ipv6/ip6_tunnel.c
1411
skb_set_inner_ipproto(skb, protocol);
net/ipv6/ip6_tunnel.c
1414
protocol);
net/ipv6/ip6_tunnel.c
1418
switch (protocol) {
net/ipv6/ip6_tunnel.c
1445
switch (skb->protocol) {
net/ipv6/ip6_tunnel.c
834
skb->protocol = tpi->proto;
net/ipv6/ip6_tunnel.c
844
skb->protocol = eth_type_trans(skb, tunnel->dev);
net/ipv6/ip6_vti.c
370
inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol);
net/ipv6/ip6_vti.c
454
switch (skb->protocol) {
net/ipv6/ip6_vti.c
515
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/ip6_vti.c
562
switch (skb->protocol) {
net/ipv6/ip6_vti.c
607
int protocol = iph->nexthdr;
net/ipv6/ip6_vti.c
615
switch (protocol) {
net/ipv6/ip6_vti.c
637
spi, protocol, AF_INET6);
net/ipv6/ip6mr.c
1419
{.owner = THIS_MODULE, .protocol = RTNL_FAMILY_IP6MR,
net/ipv6/ip6mr.c
614
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/mcast.c
1753
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ndisc.c
112
.protocol = cpu_to_be16(ETH_P_IPV6),
net/ipv6/ndisc.c
424
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/netfilter/nf_dup_ipv6.c
42
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/netfilter/nf_reject_ipv6.c
18
__u8 protocol, int hoplimit);
net/ipv6/netfilter/nf_reject_ipv6.c
243
__u8 protocol, int hoplimit)
net/ipv6/netfilter/nf_reject_ipv6.c
255
ip6h->nexthdr = protocol;
net/ipv6/netfilter/nf_reject_ipv6.c
259
nskb->protocol = htons(ETH_P_IPV6);
net/ipv6/netfilter/nf_reject_ipv6.c
398
nskb->protocol = htons(ETH_P_IPV6);
net/ipv6/netfilter/nf_reject_ipv6.c
400
if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol),
net/ipv6/netfilter/nf_socket_ipv6.c
23
int *protocol,
net/ipv6/netfilter/nf_socket_ipv6.c
68
*protocol = inside_nexthdr;
net/ipv6/netfilter/nf_socket_ipv6.c
79
const u8 protocol,
net/ipv6/netfilter/nf_socket_ipv6.c
84
switch (protocol) {
net/ipv6/netfilter/nf_tproxy_ipv6.c
144
protocol, saddr, ntohs(sport), daddr, ntohs(dport), lookup_type, sk);
net/ipv6/netfilter/nf_tproxy_ipv6.c
77
const u8 protocol,
net/ipv6/netfilter/nf_tproxy_ipv6.c
85
switch (protocol) {
net/ipv6/output_core.c
114
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ping.c
220
.protocol = IPPROTO_ICMPV6,
net/ipv6/protocol.c
28
int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol)
net/ipv6/protocol.c
30
return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
net/ipv6/protocol.c
35
int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol)
net/ipv6/protocol.c
39
ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
net/ipv6/protocol.c
52
int inet6_add_offload(const struct net_offload *prot, unsigned char protocol)
net/ipv6/protocol.c
54
return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol],
net/ipv6/protocol.c
59
int inet6_del_offload(const struct net_offload *prot, unsigned char protocol)
net/ipv6/protocol.c
63
ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol],
net/ipv6/raw.c
1302
.protocol = IPPROTO_IP, /* wild card */
net/ipv6/raw.c
623
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/route.c
6090
(filter->protocol && rt->fib6_protocol != filter->protocol))) {
net/ipv6/route.c
6885
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_NEWROUTE,
net/ipv6/route.c
6887
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_DELROUTE,
net/ipv6/route.c
6889
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETROUTE,
net/ipv6/rpl_iptunnel.c
196
if (skb->protocol != htons(ETH_P_IPV6))
net/ipv6/seg6_iptunnel.c
133
} else if (!do_flowlabel && skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/seg6_iptunnel.c
171
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/seg6_iptunnel.c
269
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/seg6_iptunnel.c
408
if (skb->protocol != htons(ETH_P_IPV6))
net/ipv6/seg6_iptunnel.c
421
if (skb->protocol == htons(ETH_P_IPV6))
net/ipv6/seg6_iptunnel.c
423
else if (skb->protocol == htons(ETH_P_IP))
net/ipv6/seg6_iptunnel.c
439
skb_set_inner_protocol(skb, skb->protocol);
net/ipv6/seg6_iptunnel.c
440
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/seg6_iptunnel.c
465
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/seg6_iptunnel.c
561
switch (skb->protocol) {
net/ipv6/seg6_iptunnel.c
646
switch (skb->protocol) {
net/ipv6/seg6_local.c
1136
__be16 protocol;
net/ipv6/seg6_local.c
1145
protocol = htons(ETH_P_IP);
net/ipv6/seg6_local.c
1149
protocol = htons(ETH_P_IPV6);
net/ipv6/seg6_local.c
1163
skb->protocol = protocol;
net/ipv6/seg6_local.c
1633
if (skb->protocol != htons(ETH_P_IPV6)) {
net/ipv6/seg6_local.c
896
skb->protocol = eth->h_proto;
net/ipv6/seg6_local.c
991
skb->protocol = htons(ETH_P_IP);
net/ipv6/sit.c
1026
if (ip_tunnel_encap(skb, &tunnel->encap, &protocol, &fl4) < 0) {
net/ipv6/sit.c
1033
iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl,
net/ipv6/sit.c
1070
switch (skb->protocol) {
net/ipv6/sit.c
1259
if (!ipip6_valid_ip_proto(p->iph.protocol))
net/ipv6/sit.c
1470
iph->protocol = IPPROTO_IPV6;
net/ipv6/sit.c
1499
parms->iph.protocol = IPPROTO_IPV6;
net/ipv6/sit.c
1706
nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
net/ipv6/sit.c
576
t->parms.link, iph->protocol);
net/ipv6/sit.c
582
iph->protocol);
net/ipv6/sit.c
691
if (tunnel->parms.iph.protocol != IPPROTO_IPV6 &&
net/ipv6/sit.c
692
tunnel->parms.iph.protocol != 0)
net/ipv6/sit.c
767
if (tunnel->parms.iph.protocol != ipproto &&
net/ipv6/sit.c
768
tunnel->parms.iph.protocol != 0)
net/ipv6/sit.c
915
u8 protocol = IPPROTO_IPV6;
net/ipv6/tcp_ao.c
113
.protocol = cpu_to_be32(IPPROTO_TCP),
net/ipv6/tcp_ipv6.c
1318
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
1404
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
1582
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
2333
.protocol = IPPROTO_TCP,
net/ipv6/tcp_ipv6.c
731
h.ip.protocol = cpu_to_be32(IPPROTO_TCP);
net/ipv6/udp.c
1917
.protocol = IPPROTO_UDP,
net/ipv6/udp.c
494
is_udp4 = (skb->protocol == htons(ETH_P_IP));
net/ipv6/xfrm6_input.c
161
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/xfrm6_input.c
187
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/xfrm6_input.c
50
XFRM_MODE_SKB_CB(skb)->protocol;
net/ipv6/xfrm6_output.c
78
if (skb->protocol == htons(ETH_P_IPV6))
net/ipv6/xfrm6_protocol.c
221
static inline const struct inet6_protocol *netproto(unsigned char protocol)
net/ipv6/xfrm6_protocol.c
223
switch (protocol) {
net/ipv6/xfrm6_protocol.c
236
unsigned char protocol)
net/ipv6/xfrm6_protocol.c
244
if (!proto_handlers(protocol) || !netproto(protocol))
net/ipv6/xfrm6_protocol.c
249
if (!rcu_dereference_protected(*proto_handlers(protocol),
net/ipv6/xfrm6_protocol.c
253
for (pprev = proto_handlers(protocol);
net/ipv6/xfrm6_protocol.c
27
static inline struct xfrm6_protocol __rcu **proto_handlers(u8 protocol)
net/ipv6/xfrm6_protocol.c
272
if (inet6_add_protocol(netproto(protocol), protocol)) {
net/ipv6/xfrm6_protocol.c
283
unsigned char protocol)
net/ipv6/xfrm6_protocol.c
289
if (!proto_handlers(protocol) || !netproto(protocol))
net/ipv6/xfrm6_protocol.c
29
switch (protocol) {
net/ipv6/xfrm6_protocol.c
294
for (pprev = proto_handlers(protocol);
net/ipv6/xfrm6_protocol.c
305
if (!rcu_dereference_protected(*proto_handlers(protocol),
net/ipv6/xfrm6_protocol.c
307
if (inet6_del_protocol(netproto(protocol), protocol) < 0) {
net/ipv6/xfrm6_protocol.c
46
static int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err)
net/ipv6/xfrm6_protocol.c
50
struct xfrm6_protocol __rcu **head = proto_handlers(protocol);
net/ipv6/xfrm6_protocol.c
55
for_each_protocol_rcu(*proto_handlers(protocol), handler)
net/iucv/af_iucv.c
2259
static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
net/iucv/af_iucv.c
2264
if (protocol && protocol != PF_IUCV)
net/iucv/af_iucv.c
2279
sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL, kern);
net/iucv/af_iucv.c
251
skb->protocol = cpu_to_be16(ETH_P_AF_IUCV);
net/kcm/kcmsock.c
1787
int protocol, int kern)
net/kcm/kcmsock.c
1804
if (protocol != KCMPROTO_CONNECTED)
net/key/af_key.c
138
static int pfkey_create(struct net *net, struct socket *sock, int protocol,
net/key/af_key.c
149
if (protocol != PF_KEY_V2)
net/l2tp/l2tp_ip.c
651
.protocol = IPPROTO_L2TP,
net/l2tp/l2tp_ip6.c
783
.protocol = IPPROTO_L2TP,
net/llc/af_llc.c
166
static int llc_ui_create(struct net *net, struct socket *sock, int protocol,
net/llc/af_llc.c
979
skb->protocol = llc_proto_type(addr->sllc_arphrd);
net/llc/llc_input.c
123
if (skb->protocol == htons(ETH_P_802_2)) {
net/llc/llc_sap.c
56
skb->protocol = htons(ETH_P_802_2);
net/mac80211/iface.c
1820
if (skb->protocol == cpu_to_be16(ETH_P_TDLS))
net/mac80211/rx.c
260
skb->protocol = 0;
net/mac80211/rx.c
2749
if (unlikely((skb->protocol == sdata->control_port_protocol ||
net/mac80211/rx.c
2750
(skb->protocol == cpu_to_be16(ETH_P_PREAUTH) &&
net/mac80211/rx.c
2778
if (unlikely(skb->protocol == sdata->control_port_protocol &&
net/mac80211/rx.c
2876
skb->protocol = eth_type_trans(skb, dev);
net/mac80211/rx.c
2887
xmit_skb->protocol = htons(ETH_P_802_3);
net/mac80211/rx.c
2942
&skb->protocol))
net/mac80211/rx.c
2945
skb->protocol = htons(skb->len - hdrlen);
net/mac80211/rx.c
3098
&fwd_skb->protocol))
net/mac80211/rx.c
3101
fwd_skb->protocol = htons(fwd_skb->len - hdrlen);
net/mac80211/rx.c
3337
rx->skb->protocol = cpu_to_be16(ETH_P_TDLS);
net/mac80211/rx.c
5000
xmit_skb->protocol = htons(ETH_P_802_3);
net/mac80211/rx.c
5011
skb->protocol = eth_type_trans(skb, fast_rx->dev);
net/mac80211/rx.c
790
skb->protocol = htons(ETH_P_802_2);
net/mac80211/status.c
648
if (skb->protocol == sdata->control_port_protocol ||
net/mac80211/status.c
649
skb->protocol == cpu_to_be16(ETH_P_PREAUTH))
net/mac80211/status.c
963
skb->protocol = htons(ETH_P_802_2);
net/mac80211/tx.c
1192
skb->protocol == sdata->control_port_protocol)
net/mac80211/tx.c
1241
} else if (tx->sdata->control_port_protocol == tx->skb->protocol) {
net/mac80211/tx.c
2376
skb->protocol = cpu_to_be16((payload[6] << 8) |
net/mac80211/tx.c
4399
if (skb->protocol == sdata->control_port_protocol)
net/mac80211/tx.c
553
if (unlikely(tx->sdata->control_port_protocol == tx->skb->protocol)) {
net/mac80211/tx.c
6572
skb->protocol = proto;
net/mac80211/tx.c
660
tx->skb->protocol != tx->sdata->control_port_protocol)
net/mac80211/tx.c
6630
skb->protocol = htons(ETH_P_802_3);
net/mac80211/wme.c
172
if (skb->protocol == sdata->control_port_protocol) {
net/mac802154/rx.c
27
skb->protocol = htons(ETH_P_IEEE802154);
net/mac802154/rx.c
380
skb->protocol = htons(ETH_P_IEEE802154);
net/mctp/af_mctp.c
800
int protocol, int kern)
net/mctp/af_mctp.c
807
if (protocol)
net/mctp/device.c
527
{.owner = THIS_MODULE, .protocol = PF_MCTP, .msgtype = RTM_NEWADDR,
net/mctp/device.c
529
{.owner = THIS_MODULE, .protocol = PF_MCTP, .msgtype = RTM_DELADDR,
net/mctp/device.c
531
{.owner = THIS_MODULE, .protocol = PF_MCTP, .msgtype = RTM_GETADDR,
net/mctp/route.c
1083
skb2->protocol = skb->protocol;
net/mctp/route.c
1168
skb->protocol = htons(ETH_P_MCTP);
net/mctp/route.c
629
skb->protocol = htons(ETH_P_MCTP);
net/mctp/route.c
652
rc = dev_hard_header(skb, skb->dev, ntohs(skb->protocol),
net/mpls/af_mpls.c
160
if (skb->protocol == htons(ETH_P_MPLS_UC)) {
net/mpls/af_mpls.c
166
} else if (skb->protocol == htons(ETH_P_IP)) {
net/mpls/af_mpls.c
169
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/mpls/af_mpls.c
2177
filter->protocol = rtm->rtm_protocol;
net/mpls/af_mpls.c
2271
(filter.protocol && rt->rt_protocol != filter.protocol))
net/mpls/af_mpls.c
228
v4hdr->protocol, hash);
net/mpls/af_mpls.c
2495
skb->protocol = htons(ETH_P_MPLS_UC);
net/mpls/af_mpls.c
320
skb->protocol = htons(ETH_P_IP);
net/mpls/af_mpls.c
342
skb->protocol = htons(ETH_P_IPV6);
net/mpls/af_mpls.c
455
skb->protocol = htons(ETH_P_MPLS_UC);
net/mpls/mpls_gso.c
41
mpls_protocol = skb->protocol;
net/mpls/mpls_gso.c
42
skb->protocol = skb->inner_protocol;
net/mpls/mpls_gso.c
62
skb->protocol = mpls_protocol;
net/mpls/mpls_iptunnel.c
112
skb_set_inner_protocol(skb, skb->protocol);
net/mpls/mpls_iptunnel.c
120
skb->protocol = htons(ETH_P_MPLS_UC);
net/mptcp/protocol.c
4599
.protocol = IPPROTO_MPTCP,
net/mptcp/protocol.c
4713
.protocol = IPPROTO_MPTCP,
net/mptcp/subflow.c
711
if (skb->protocol == htons(ETH_P_IP))
net/ncsi/ncsi-cmd.c
315
skb->protocol = htons(ETH_P_NCSI);
net/netfilter/ipset/ip_set_bitmap_ip.c
338
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_bitmap_ipmac.c
379
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_bitmap_port.c
289
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_core.c
1941
if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) ||
net/netfilter/ipset/ip_set_core.c
1995
if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) ||
net/netfilter/ipset/ip_set_core.c
2079
if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) ||
net/netfilter/ipset/ip_set_core.c
209
if (type->protocol != IPSET_PROTOCOL) {
net/netfilter/ipset/ip_set_core.c
2127
if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) ||
net/netfilter/ipset/ip_set_core.c
213
type->protocol, IPSET_PROTOCOL);
net/netfilter/ipset/ip_set_core.c
956
return !tb[IPSET_ATTR_PROTOCOL] || protocol(tb) != IPSET_PROTOCOL;
net/netfilter/ipset/ip_set_core.c
962
return !tb[IPSET_ATTR_PROTOCOL] || protocol(tb) < IPSET_PROTOCOL_MIN;
net/netfilter/ipset/ip_set_getport.c
103
int protocol = iph->protocol;
net/netfilter/ipset/ip_set_getport.c
106
if (protocol <= 0)
net/netfilter/ipset/ip_set_getport.c
110
switch (protocol) {
net/netfilter/ipset/ip_set_getport.c
122
*proto = protocol;
net/netfilter/ipset/ip_set_getport.c
126
return get_port(skb, protocol, protooff, src, port, proto);
net/netfilter/ipset/ip_set_getport.c
25
get_port(const struct sk_buff *skb, int protocol, unsigned int protooff,
net/netfilter/ipset/ip_set_getport.c
28
switch (protocol) {
net/netfilter/ipset/ip_set_getport.c
92
*proto = protocol;
net/netfilter/ipset/ip_set_hash_ip.c
276
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipmac.c
266
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipmark.c
285
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipport.c
366
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipportip.c
361
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipportnet.c
519
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_mac.c
123
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_net.c
358
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_netiface.c
472
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_netnet.c
476
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_netport.c
462
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_netportnet.c
572
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_list_set.c
647
.protocol = IPSET_PROTOCOL,
net/netfilter/ipvs/ip_vs_app.c
128
if (!(pp = ip_vs_proto_get(inc->protocol)))
net/netfilter/ipvs/ip_vs_app.c
422
if (cp->protocol == IPPROTO_TCP)
net/netfilter/ipvs/ip_vs_app.c
498
if (cp->protocol == IPPROTO_TCP)
net/netfilter/ipvs/ip_vs_app.c
580
ip_vs_proto_name(inc->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1108
if (cp->protocol != IPPROTO_UDP)
net/netfilter/ipvs/ip_vs_conn.c
1140
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1187
cp->protocol, cp->fwmark, cp->flags);
net/netfilter/ipvs/ip_vs_conn.c
1215
pd = ip_vs_proto_data_get(cp->ipvs, cp->protocol);
net/netfilter/ipvs/ip_vs_conn.c
1237
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1305
ip_vs_proto_name(ct->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1468
p->protocol);
net/netfilter/ipvs/ip_vs_conn.c
1493
cp->protocol = p->protocol;
net/netfilter/ipvs/ip_vs_conn.c
1497
ip_vs_addr_set(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af,
net/netfilter/ipvs/ip_vs_conn.c
1726
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1739
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1788
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1801
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1901
if (cp->protocol == IPPROTO_TCP) {
net/netfilter/ipvs/ip_vs_conn.c
1915
} else if (cp->protocol == IPPROTO_SCTP) {
net/netfilter/ipvs/ip_vs_conn.c
230
return ip_vs_conn_hashkey(t, p->af, p->protocol, addr, port, laddr,
net/netfilter/ipvs/ip_vs_conn.c
241
ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol,
net/netfilter/ipvs/ip_vs_conn.c
245
ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol,
net/netfilter/ipvs/ip_vs_conn.c
397
p->protocol == cp->protocol) {
net/netfilter/ipvs/ip_vs_conn.c
431
ip_vs_proto_name(p->protocol),
net/netfilter/ipvs/ip_vs_conn.c
452
ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->saddr,
net/netfilter/ipvs/ip_vs_conn.c
455
ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->daddr,
net/netfilter/ipvs/ip_vs_conn.c
510
ip_vs_addr_equal(p->protocol == IPPROTO_IP ?
net/netfilter/ipvs/ip_vs_conn.c
516
p->protocol == cp->protocol &&
net/netfilter/ipvs/ip_vs_conn.c
531
ip_vs_proto_name(p->protocol),
net/netfilter/ipvs/ip_vs_conn.c
582
p->protocol == cp->protocol) {
net/netfilter/ipvs/ip_vs_conn.c
595
ip_vs_proto_name(p->protocol),
net/netfilter/ipvs/ip_vs_conn.c
664
ip_vs_conn_fill_param(ipvs, cp->af, cp->protocol, &cp->daddr,
net/netfilter/ipvs/ip_vs_conn.c
667
ip_vs_conn_fill_param(ipvs, cp->af, cp->protocol, &cp->caddr,
net/netfilter/ipvs/ip_vs_core.c
1046
if (ciph->protocol == IPPROTO_TCP || ciph->protocol == IPPROTO_UDP ||
net/netfilter/ipvs/ip_vs_core.c
1047
ciph->protocol == IPPROTO_SCTP) {
net/netfilter/ipvs/ip_vs_core.c
1138
pp = ip_vs_proto_get(cih->protocol);
net/netfilter/ipvs/ip_vs_core.c
1203
pp = ip_vs_proto_get(ciph.protocol);
net/netfilter/ipvs/ip_vs_core.c
1251
switch (iph->protocol) {
net/netfilter/ipvs/ip_vs_core.c
1281
switch (cp->protocol) {
net/netfilter/ipvs/ip_vs_core.c
1339
if (ip_vs_conn_fill_param_persist(svc, skb, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
1360
iph->protocol == IPPROTO_UDP) ? IP_VS_CONN_F_ONE_PACKET : 0;
net/netfilter/ipvs/ip_vs_core.c
1362
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
1411
dest = ip_vs_find_real_service(ipvs, af, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
1533
if (unlikely(iph.protocol == IPPROTO_ICMPV6)) {
net/netfilter/ipvs/ip_vs_core.c
1543
if (unlikely(iph.protocol == IPPROTO_ICMP)) {
net/netfilter/ipvs/ip_vs_core.c
1552
pd = ip_vs_proto_data_get(ipvs, iph.protocol);
net/netfilter/ipvs/ip_vs_core.c
1585
if (pp->protocol == IPPROTO_UDP) {
net/netfilter/ipvs/ip_vs_core.c
1594
(pp->protocol == IPPROTO_TCP ||
net/netfilter/ipvs/ip_vs_core.c
1595
pp->protocol == IPPROTO_UDP ||
net/netfilter/ipvs/ip_vs_core.c
1596
pp->protocol == IPPROTO_SCTP)) {
net/netfilter/ipvs/ip_vs_core.c
1603
if (ip_vs_has_real_service(ipvs, af, iph.protocol, &iph.saddr,
net/netfilter/ipvs/ip_vs_core.c
1610
if ((iph.protocol != IPPROTO_TCP &&
net/netfilter/ipvs/ip_vs_core.c
1611
iph.protocol != IPPROTO_SCTP)
net/netfilter/ipvs/ip_vs_core.c
1612
|| ((iph.protocol == IPPROTO_TCP
net/netfilter/ipvs/ip_vs_core.c
1614
|| (iph.protocol == IPPROTO_SCTP
net/netfilter/ipvs/ip_vs_core.c
1731
type = greh->protocol;
net/netfilter/ipvs/ip_vs_core.c
1813
if (cih->protocol == IPPROTO_IPIP) {
net/netfilter/ipvs/ip_vs_core.c
1830
} else if ((cih->protocol == IPPROTO_UDP || /* Can be UDP encap */
net/netfilter/ipvs/ip_vs_core.c
1831
cih->protocol == IPPROTO_GRE) && /* Can be GRE encap */
net/netfilter/ipvs/ip_vs_core.c
1840
if (cih->protocol == IPPROTO_UDP) {
net/netfilter/ipvs/ip_vs_core.c
1863
pd = ip_vs_proto_data_get(ipvs, cih->protocol);
net/netfilter/ipvs/ip_vs_core.c
2025
pd = ip_vs_proto_data_get(ipvs, ciph.protocol);
net/netfilter/ipvs/ip_vs_core.c
2115
skb->pkt_type, iph.protocol,
net/netfilter/ipvs/ip_vs_core.c
2136
if (unlikely(iph.protocol == IPPROTO_ICMPV6)) {
net/netfilter/ipvs/ip_vs_core.c
2146
if (unlikely(iph.protocol == IPPROTO_ICMP)) {
net/netfilter/ipvs/ip_vs_core.c
2156
pd = ip_vs_proto_data_get(ipvs, iph.protocol);
net/netfilter/ipvs/ip_vs_core.c
2299
if (ip_hdr(skb)->protocol != IPPROTO_ICMP)
net/netfilter/ipvs/ip_vs_core.c
2306
if (iphdr.protocol != IPPROTO_ICMPV6)
net/netfilter/ipvs/ip_vs_core.c
409
struct sk_buff *skb, int protocol,
net/netfilter/ipvs/ip_vs_core.c
414
ip_vs_conn_fill_param(svc->ipvs, svc->af, protocol, caddr, cport, vaddr,
net/netfilter/ipvs/ip_vs_core.c
484
int protocol = iph->protocol;
net/netfilter/ipvs/ip_vs_core.c
505
protocol = IPPROTO_IP;
net/netfilter/ipvs/ip_vs_core.c
510
if (ip_vs_conn_fill_param_persist(svc, skb, protocol, &snet, 0,
net/netfilter/ipvs/ip_vs_core.c
569
&& iph->protocol == IPPROTO_UDP) ?
net/netfilter/ipvs/ip_vs_core.c
575
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, src_addr,
net/netfilter/ipvs/ip_vs_core.c
716
&& iph->protocol == IPPROTO_UDP) ?
net/netfilter/ipvs/ip_vs_core.c
725
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
784
iph->protocol == IPPROTO_UDP) ?
net/netfilter/ipvs/ip_vs_core.c
792
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
net/netfilter/ipvs/ip_vs_ctl.c
1057
__be16 vport, __u16 protocol, __u32 fwmark,
net/netfilter/ipvs/ip_vs_ctl.c
1064
svc = ip_vs_service_find(ipvs, svc_af, fwmark, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
1129
dest->protocol == svc->protocol &&
net/netfilter/ipvs/ip_vs_ctl.c
1440
dest->protocol = svc->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
1815
svc->protocol = u->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
2998
ip_vs_proto_name(svc->protocol),
net/netfilter/ipvs/ip_vs_ctl.c
3005
ip_vs_proto_name(svc->protocol),
net/netfilter/ipvs/ip_vs_ctl.c
3394
usvc->protocol = usvc_compat->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
3510
if (usvc.protocol != IPPROTO_TCP && usvc.protocol != IPPROTO_UDP &&
net/netfilter/ipvs/ip_vs_ctl.c
3511
usvc.protocol != IPPROTO_SCTP) {
net/netfilter/ipvs/ip_vs_ctl.c
3513
usvc.protocol, &usvc.addr.ip,
net/netfilter/ipvs/ip_vs_ctl.c
3522
svc = __ip_vs_service_find(ipvs, usvc.af, usvc.protocol,
net/netfilter/ipvs/ip_vs_ctl.c
3529
&& (svc == NULL || svc->protocol != usvc.protocol)) {
net/netfilter/ipvs/ip_vs_ctl.c
3582
dst->protocol = src->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
3645
svc = __ip_vs_service_find(ipvs, AF_INET, get->protocol, &addr,
net/netfilter/ipvs/ip_vs_ctl.c
3854
entry->protocol, &addr,
net/netfilter/ipvs/ip_vs_ctl.c
4070
if (nla_put_u16(skb, IPVS_SVC_ATTR_PROTOCOL, svc->protocol) ||
net/netfilter/ipvs/ip_vs_ctl.c
413
hash = ip_vs_svc_hashval(t, svc->af, svc->protocol,
net/netfilter/ipvs/ip_vs_ctl.c
4198
usvc->protocol = IPPROTO_TCP;
net/netfilter/ipvs/ip_vs_ctl.c
4201
usvc->protocol = nla_get_u16(nla_protocol);
net/netfilter/ipvs/ip_vs_ctl.c
4210
svc = __ip_vs_service_find(ipvs, usvc->af, usvc->protocol,
net/netfilter/ipvs/ip_vs_ctl.c
495
__ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
507
hash = ip_vs_svc_hashval(t, af, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
516
svc->protocol == protocol && !svc->fwmark) {
net/netfilter/ipvs/ip_vs_ctl.c
562
ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
584
svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
588
if (protocol == IPPROTO_TCP &&
net/netfilter/ipvs/ip_vs_ctl.c
595
svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, FTPPORT);
net/netfilter/ipvs/ip_vs_ctl.c
604
svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, 0);
net/netfilter/ipvs/ip_vs_ctl.c
609
fwmark, ip_vs_proto_name(protocol),
net/netfilter/ipvs/ip_vs_ctl.c
761
svc->protocol,
net/netfilter/ipvs/ip_vs_ctl.c
938
bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
951
(dest->protocol == protocol || dest->vfwmark) &&
net/netfilter/ipvs/ip_vs_ctl.c
968
__u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
982
(dest->protocol == protocol || dest->vfwmark) &&
net/netfilter/ipvs/ip_vs_ftp.c
321
ipvsh->protocol, &from, port,
net/netfilter/ipvs/ip_vs_ftp.c
329
cp->af, ipvsh->protocol, &cp->caddr,
net/netfilter/ipvs/ip_vs_ftp.c
381
ipvsh->protocol, 0, 0);
net/netfilter/ipvs/ip_vs_ftp.c
503
ip_vs_proto_name(ipvsh->protocol),
net/netfilter/ipvs/ip_vs_ftp.c
518
ip_vs_proto_name(ipvsh->protocol),
net/netfilter/ipvs/ip_vs_ftp.c
532
ipvsh->protocol, &to, port, &cp->vaddr,
net/netfilter/ipvs/ip_vs_ftp.c
561
.protocol = IPPROTO_TCP,
net/netfilter/ipvs/ip_vs_ftp.c
591
ret = register_ip_vs_app_inc(ipvs, app, app->protocol, ports[i]);
net/netfilter/ipvs/ip_vs_mh.c
451
switch (iph->protocol) {
net/netfilter/ipvs/ip_vs_nfct.c
251
.dst = { .protonum = cp->protocol, .dir = IP_CT_DIR_ORIGINAL } };
net/netfilter/ipvs/ip_vs_nfct.c
67
(C)->protocol, (C)->state
net/netfilter/ipvs/ip_vs_pe_sip.c
116
ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af,
net/netfilter/ipvs/ip_vs_pe_sip.c
120
ct->protocol == p->protocol &&
net/netfilter/ipvs/ip_vs_pe_sip.c
126
ip_vs_proto_name(p->protocol),
net/netfilter/ipvs/ip_vs_pe_sip.c
154
if (likely(iph->protocol == IPPROTO_UDP))
net/netfilter/ipvs/ip_vs_pe_sip.c
76
if (!retc || iph.protocol != IPPROTO_UDP)
net/netfilter/ipvs/ip_vs_proto.c
120
unsigned int hash = IP_VS_PROTO_HASH(pd->pp->protocol);
net/netfilter/ipvs/ip_vs_proto.c
145
if (pp->protocol == proto)
net/netfilter/ipvs/ip_vs_proto.c
163
if (pd->pp->protocol == proto)
net/netfilter/ipvs/ip_vs_proto.c
206
pp = ip_vs_proto_get(cp->protocol);
net/netfilter/ipvs/ip_vs_proto.c
208
return (cp->protocol == IPPROTO_IP) ? "NONE" : "ERR!";
net/netfilter/ipvs/ip_vs_proto.c
50
unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
net/netfilter/ipvs/ip_vs_proto.c
67
unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
net/netfilter/ipvs/ip_vs_proto.c
98
unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
net/netfilter/ipvs/ip_vs_proto_ah_esp.c
117
.protocol = IPPROTO_AH,
net/netfilter/ipvs/ip_vs_proto_ah_esp.c
139
.protocol = IPPROTO_ESP,
net/netfilter/ipvs/ip_vs_proto_ah_esp.c
70
ip_vs_proto_get(iph->protocol)->name,
net/netfilter/ipvs/ip_vs_proto_ah_esp.c
92
ip_vs_proto_get(iph->protocol)->name,
net/netfilter/ipvs/ip_vs_proto_sctp.c
51
svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
net/netfilter/ipvs/ip_vs_proto_sctp.c
54
svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
net/netfilter/ipvs/ip_vs_proto_sctp.c
571
.protocol = IPPROTO_SCTP,
net/netfilter/ipvs/ip_vs_proto_tcp.c
206
cp->protocol, skb->csum);
net/netfilter/ipvs/ip_vs_proto_tcp.c
212
cp->protocol,
net/netfilter/ipvs/ip_vs_proto_tcp.c
289
cp->protocol, skb->csum);
net/netfilter/ipvs/ip_vs_proto_tcp.c
295
cp->protocol,
net/netfilter/ipvs/ip_vs_proto_tcp.c
68
svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
net/netfilter/ipvs/ip_vs_proto_tcp.c
686
.protocol = IPPROTO_TCP,
net/netfilter/ipvs/ip_vs_proto_tcp.c
71
svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
net/netfilter/ipvs/ip_vs_proto_udp.c
199
cp->protocol, skb->csum);
net/netfilter/ipvs/ip_vs_proto_udp.c
205
cp->protocol,
net/netfilter/ipvs/ip_vs_proto_udp.c
283
cp->protocol, skb->csum);
net/netfilter/ipvs/ip_vs_proto_udp.c
289
cp->protocol,
net/netfilter/ipvs/ip_vs_proto_udp.c
450
.protocol = IPPROTO_UDP,
net/netfilter/ipvs/ip_vs_proto_udp.c
56
svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
net/netfilter/ipvs/ip_vs_proto_udp.c
59
svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
net/netfilter/ipvs/ip_vs_sched.c
153
sched_name, ip_vs_proto_name(svc->protocol),
net/netfilter/ipvs/ip_vs_sched.c
158
sched_name, ip_vs_proto_name(svc->protocol),
net/netfilter/ipvs/ip_vs_sh.c
285
switch (iph->protocol) {
net/netfilter/ipvs/ip_vs_sync.c
1011
ip_vs_conn_fill_param(ipvs, AF_INET, s->protocol,
net/netfilter/ipvs/ip_vs_sync.c
1018
ip_vs_proc_conn(ipvs, &param, flags, state, s->protocol, AF_INET,
net/netfilter/ipvs/ip_vs_sync.c
1152
pp = ip_vs_proto_get(s->v4.protocol);
net/netfilter/ipvs/ip_vs_sync.c
1155
s->v4.protocol);
net/netfilter/ipvs/ip_vs_sync.c
1177
ip_vs_proc_conn(ipvs, &param, flags, state, s->v4.protocol, af,
net/netfilter/ipvs/ip_vs_sync.c
1184
ip_vs_proc_conn(ipvs, &param, flags, state, s->v6.protocol, af,
net/netfilter/ipvs/ip_vs_sync.c
134
__u8 protocol; /* Which protocol (TCP/UDP) */
net/netfilter/ipvs/ip_vs_sync.c
156
__u8 protocol; /* Which protocol (TCP/UDP) */
net/netfilter/ipvs/ip_vs_sync.c
474
else if (likely(cp->protocol == IPPROTO_TCP)) {
net/netfilter/ipvs/ip_vs_sync.c
485
} else if (unlikely(cp->protocol == IPPROTO_SCTP)) {
net/netfilter/ipvs/ip_vs_sync.c
593
s->protocol = cp->protocol;
net/netfilter/ipvs/ip_vs_sync.c
725
s->v4.protocol = cp->protocol;
net/netfilter/ipvs/ip_vs_sync.c
74
__u8 protocol; /* Which protocol (TCP/UDP) */
net/netfilter/ipvs/ip_vs_sync.c
795
ip_vs_conn_fill_param(ipvs, af, sc->v6.protocol,
net/netfilter/ipvs/ip_vs_sync.c
802
ip_vs_conn_fill_param(ipvs, af, sc->v4.protocol,
net/netfilter/ipvs/ip_vs_sync.c
843
unsigned int protocol, unsigned int type,
net/netfilter/ipvs/ip_vs_sync.c
908
param->vaddr, param->vport, protocol,
net/netfilter/ipvs/ip_vs_sync.c
946
pd = ip_vs_proto_data_get(ipvs, protocol);
net/netfilter/ipvs/ip_vs_sync.c
994
pp = ip_vs_proto_get(s->protocol);
net/netfilter/ipvs/ip_vs_sync.c
997
s->protocol);
net/netfilter/ipvs/ip_vs_xmit.c
1267
iph->protocol = next_protocol;
net/netfilter/ipvs/ip_vs_xmit.c
1570
if (ciph->protocol == IPPROTO_TCP || ciph->protocol == IPPROTO_UDP ||
net/netfilter/ipvs/ip_vs_xmit.c
1571
ciph->protocol == IPPROTO_SCTP) {
net/netfilter/ipvs/ip_vs_xmit.c
1663
if (ciph->protocol == IPPROTO_TCP || ciph->protocol == IPPROTO_UDP ||
net/netfilter/ipvs/ip_vs_xmit.c
1664
ciph->protocol == IPPROTO_SCTP) {
net/netfilter/nf_conntrack_core.c
356
*protonum = iph->protocol;
net/netfilter/nf_conntrack_ovs.c
41
proto = ip_hdr(skb)->protocol;
net/netfilter/nf_conntrack_proto_gre.c
238
if (grehdr->protocol != GRE_PROTO_PPP) {
net/netfilter/nf_conntrack_proto_gre.c
239
pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol));
net/netfilter/nf_flow_table_core.c
637
u8 protocol, __be16 port, __be16 new_port)
net/netfilter/nf_flow_table_core.c
639
switch (protocol) {
net/netfilter/nf_flow_table_core.c
651
u8 protocol, enum flow_offload_tuple_dir dir)
net/netfilter/nf_flow_table_core.c
671
nf_flow_nat_port(skb, thoff, protocol, port, new_port);
net/netfilter/nf_flow_table_core.c
676
unsigned int thoff, u8 protocol,
net/netfilter/nf_flow_table_core.c
697
nf_flow_nat_port(skb, thoff, protocol, port, new_port);
net/netfilter/nf_flow_table_inet.c
18
switch (skb->protocol) {
net/netfilter/nf_flow_table_inet.c
31
proto = skb->protocol;
net/netfilter/nf_flow_table_ip.c
134
nf_flow_snat_port(flow, skb, thoff, iph->protocol, dir);
net/netfilter/nf_flow_table_ip.c
138
nf_flow_dnat_port(flow, skb, thoff, iph->protocol, dir);
net/netfilter/nf_flow_table_ip.c
164
__be16 inner_proto = skb->protocol;
net/netfilter/nf_flow_table_ip.c
177
switch (skb->protocol) {
net/netfilter/nf_flow_table_ip.c
181
tuple->encap[i].proto = skb->protocol;
net/netfilter/nf_flow_table_ip.c
188
tuple->encap[i].proto = skb->protocol;
net/netfilter/nf_flow_table_ip.c
236
ipproto = iph->protocol;
net/netfilter/nf_flow_table_ip.c
338
if (iph->protocol == IPPROTO_IPIP) {
net/netfilter/nf_flow_table_ip.c
339
ctx->tun.proto = iph->protocol;
net/netfilter/nf_flow_table_ip.c
389
__be16 inner_proto = skb->protocol;
net/netfilter/nf_flow_table_ip.c
393
switch (skb->protocol) {
net/netfilter/nf_flow_table_ip.c
440
switch (skb->protocol) {
net/netfilter/nf_flow_table_ip.c
448
skb->protocol = __nf_flow_pppoe_proto(skb);
net/netfilter/nf_flow_table_ip.c
455
if (skb->protocol == htons(ETH_P_IP) ||
net/netfilter/nf_flow_table_ip.c
456
skb->protocol == htons(ETH_P_IPV6))
net/netfilter/nf_flow_table_ip.c
497
if (nf_flow_state_check(flow, iph->protocol, skb, thoff))
net/netfilter/nf_flow_table_ip.c
542
vhdr->h_vlan_encapsulated_proto = skb->protocol;
net/netfilter/nf_flow_table_ip.c
543
skb->protocol = skb->vlan_proto;
net/netfilter/nf_flow_table_ip.c
564
switch (skb->protocol) {
net/netfilter/nf_flow_table_ip.c
585
skb->protocol = htons(ETH_P_PPP_SES);
net/netfilter/nf_flow_table_ip.c
622
iph->protocol = tuple->tun.l3_proto;
net/netfilter/nf_flow_table_ip.c
73
switch (iph->protocol) {
net/netfilter/nf_flow_table_ip.c
756
dev_hard_header(skb, dev, ntohs(skb->protocol),
net/netfilter/nf_flow_table_offload.c
894
cls_flow->common.protocol = proto;
net/netfilter/nf_log_syslog.c
375
switch (ih->protocol) {
net/netfilter/nf_log_syslog.c
377
if (nf_log_dump_tcp_header(m, skb, ih->protocol,
net/netfilter/nf_log_syslog.c
384
if (nf_log_dump_udp_header(m, skb, ih->protocol,
net/netfilter/nf_log_syslog.c
519
nf_log_buf_add(m, "PROTO=%u ", ih->protocol);
net/netfilter/nf_log_syslog.c
951
switch (skb->protocol) {
net/netfilter/nf_nat_ovs.c
31
ip_hdr(skb)->protocol == IPPROTO_ICMP) {
net/netfilter/nf_nat_proto.c
574
if (ip_hdr(skb)->protocol == IPPROTO_ICMP) {
net/netfilter/nf_synproxy_core.c
412
iph->protocol = IPPROTO_TCP;
net/netfilter/nf_synproxy_core.c
433
nskb->protocol = htons(ETH_P_IP);
net/netfilter/nf_synproxy_core.c
664
ip_hdr(skb)->protocol != IPPROTO_TCP)
net/netfilter/nf_tables_api.c
12089
if (event != NETLINK_URELEASE || n->protocol != NETLINK_NETFILTER)
net/netfilter/nf_tables_offload.c
193
common->protocol = proto;
net/netfilter/nf_tables_trace.c
62
veth.h_vlan_encapsulated_proto = skb->protocol;
net/netfilter/nfnetlink_log.c
499
pmsg.hw_protocol = skb->protocol;
net/netfilter/nfnetlink_log.c
863
if (event == NETLINK_URELEASE && n->protocol == NETLINK_NETFILTER) {
net/netfilter/nfnetlink_queue.c
1129
skb->protocol = htons(ETH_P_IP);
net/netfilter/nfnetlink_queue.c
1132
skb->protocol = htons(ETH_P_IPV6);
net/netfilter/nfnetlink_queue.c
1527
if (event == NETLINK_URELEASE && n->protocol == NETLINK_NETFILTER) {
net/netfilter/nfnetlink_queue.c
820
pmsg->hw_protocol = entskb->protocol;
net/netfilter/nft_chain_filter.c
171
switch (skb->protocol) {
net/netfilter/nft_chain_filter.c
295
switch (skb->protocol) {
net/netfilter/nft_exthdr.c
149
if (skb->protocol != htons(ETH_P_IP))
net/netfilter/nft_exthdr.c
55
if (pkt->skb->protocol != htons(ETH_P_IPV6))
net/netfilter/nft_fib_netdev.c
27
switch (ntohs(pkt->skb->protocol)) {
net/netfilter/nft_fwd_netdev.c
112
if (skb->protocol != htons(ETH_P_IP)) {
net/netfilter/nft_fwd_netdev.c
133
if (skb->protocol != htons(ETH_P_IPV6)) {
net/netfilter/nft_inner.c
140
ctx->l4proto = iph->protocol;
net/netfilter/nft_meta.c
326
switch (skb->protocol) {
net/netfilter/nft_meta.c
98
switch (skb->protocol) {
net/netfilter/nft_payload.c
1042
return pkt->skb->protocol == htons(ETH_P_IP) &&
net/netfilter/nft_payload.c
36
veth->h_vlan_encapsulated_proto = skb->protocol;
net/netfilter/nft_payload.c
371
case offsetof(struct iphdr, protocol):
net/netfilter/nft_payload.c
928
switch (pkt->skb->protocol) {
net/netfilter/nft_reject_netdev.c
21
dev_hard_header(nskb, nskb->dev, ntohs(oldskb->protocol),
net/netfilter/nft_synproxy.c
139
switch (skb->protocol) {
net/netfilter/nft_tproxy.c
49
sk = nf_tproxy_get_sock_v4(nft_net(pkt), skb, iph->protocol,
net/netfilter/nft_tproxy.c
71
sk = nf_tproxy_get_sock_v4(nft_net(pkt), skb, iph->protocol,
net/netfilter/utils.c
108
return nf_ip6_checksum(skb, hook, dataoff, protocol);
net/netfilter/utils.c
11
unsigned int dataoff, u8 protocol)
net/netfilter/utils.c
115
protocol,
net/netfilter/utils.c
124
unsigned int dataoff, u8 protocol,
net/netfilter/utils.c
131
csum = nf_ip_checksum(skb, hook, dataoff, protocol);
net/netfilter/utils.c
134
csum = nf_ip6_checksum(skb, hook, dataoff, protocol);
net/netfilter/utils.c
144
u8 protocol, unsigned short family)
net/netfilter/utils.c
151
protocol);
net/netfilter/utils.c
155
protocol);
net/netfilter/utils.c
20
if ((protocol != IPPROTO_TCP && protocol != IPPROTO_UDP &&
net/netfilter/utils.c
23
skb->len - dataoff, protocol,
net/netfilter/utils.c
30
if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP)
net/netfilter/utils.c
35
protocol, 0);
net/netfilter/utils.c
45
u8 protocol)
net/netfilter/utils.c
53
return nf_ip_checksum(skb, hook, dataoff, protocol);
net/netfilter/utils.c
56
skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol,
net/netfilter/utils.c
65
unsigned int dataoff, u8 protocol)
net/netfilter/utils.c
75
skb->len - dataoff, protocol,
net/netfilter/utils.c
87
protocol,
net/netfilter/utils.c
99
u8 protocol)
net/netfilter/xt_HMARK.c
257
if (ip->protocol == IPPROTO_ICMP) {
net/netfilter/xt_HMARK.c
272
t->proto = ip->protocol;
net/netfilter/xt_TPROXY.c
51
sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
net/netfilter/xt_TPROXY.c
67
sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
net/netfilter/xt_hashlimit.c
665
nexthdr = ip_hdr(skb)->protocol;
net/netfilter/xt_ipvs.c
75
if ((iph.protocol == data->l4proto) ^
net/netfilter/xt_ipvs.c
81
pp = ip_vs_proto_get(iph.protocol);
net/netfilter/xt_l2tp.c
173
u8 ipproto = iph->protocol;
net/netlabel/netlabel_mgmt.c
647
u32 protocol)
net/netlabel/netlabel_mgmt.c
658
ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, protocol);
net/netlink/af_netlink.c
304
nskb->protocol = htons((u16) sk->sk_protocol);
net/netlink/af_netlink.c
513
static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid)
net/netlink/af_netlink.c
515
struct netlink_table *table = &nl_table[protocol];
net/netlink/af_netlink.c
620
int protocol, int kern)
net/netlink/af_netlink.c
636
nlk_cb_mutex_keys + protocol,
net/netlink/af_netlink.c
637
nlk_cb_mutex_key_strings[protocol]);
net/netlink/af_netlink.c
641
sk->sk_protocol = protocol;
net/netlink/af_netlink.c
645
static int netlink_create(struct net *net, struct socket *sock, int protocol,
net/netlink/af_netlink.c
660
if (protocol < 0 || protocol >= MAX_LINKS)
net/netlink/af_netlink.c
662
protocol = array_index_nospec(protocol, MAX_LINKS);
net/netlink/af_netlink.c
666
if (!nl_table[protocol].registered) {
net/netlink/af_netlink.c
668
request_module("net-pf-%d-proto-%d", PF_NETLINK, protocol);
net/netlink/af_netlink.c
672
if (nl_table[protocol].registered &&
net/netlink/af_netlink.c
673
try_module_get(nl_table[protocol].module))
net/netlink/af_netlink.c
674
module = nl_table[protocol].module;
net/netlink/af_netlink.c
677
bind = nl_table[protocol].bind;
net/netlink/af_netlink.c
678
unbind = nl_table[protocol].unbind;
net/netlink/af_netlink.c
679
release = nl_table[protocol].release;
net/netlink/af_netlink.c
685
err = __netlink_create(net, sock, protocol, kern);
net/netlink/af_netlink.c
759
.protocol = sk->sk_protocol,
net/netlink/diag.c
90
int protocol, int s_num)
net/netlink/diag.c
93
struct netlink_table *tbl = &nl_table[protocol];
net/nfc/core.c
394
int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol)
net/nfc/core.c
400
dev_name(&dev->dev), target_idx, protocol);
net/nfc/core.c
420
rc = dev->ops->activate_target(dev, target, protocol);
net/nfc/core.c
667
int nfc_tm_activated(struct nfc_dev *dev, u32 protocol, u8 comm_mode,
net/nfc/core.c
684
if (protocol == NFC_PROTO_NFC_DEP_MASK)
net/nfc/core.c
687
rc = nfc_genl_tm_activated(dev, protocol);
net/nfc/digital.h
76
struct nfc_target *target, u8 protocol);
net/nfc/digital_core.c
310
struct nfc_target *target, u8 protocol)
net/nfc/digital_core.c
321
switch (protocol) {
net/nfc/digital_core.c
371
pr_err("Invalid protocol %d\n", protocol);
net/nfc/digital_core.c
375
pr_debug("rf_tech=%d, protocol=%d\n", rf_tech, protocol);
net/nfc/digital_core.c
391
target->supported_protocols = (1 << protocol);
net/nfc/digital_core.c
622
struct nfc_target *target, __u32 protocol)
net/nfc/digital_core.c
636
ddev->curr_protocol = protocol;
net/nfc/hci/core.c
686
struct nfc_target *target, u32 protocol)
net/nfc/nci/core.c
67
params->protocol == conn_info->dest_params->protocol)
net/nfc/nci/core.c
898
struct nfc_target *target, __u32 protocol)
net/nfc/nci/core.c
906
pr_debug("target_idx %d, protocol 0x%x\n", target->idx, protocol);
net/nfc/nci/core.c
931
if (protocol >= NFC_PROTO_MAX) {
net/nfc/nci/core.c
936
if (!(nci_target->supported_protocols & (1 << protocol))) {
net/nfc/nci/core.c
938
protocol);
net/nfc/nci/core.c
945
if (protocol == NFC_PROTO_JEWEL)
net/nfc/nci/core.c
947
else if (protocol == NFC_PROTO_MIFARE)
net/nfc/nci/core.c
949
else if (protocol == NFC_PROTO_FELICA)
net/nfc/nci/core.c
951
else if (protocol == NFC_PROTO_ISO14443 ||
net/nfc/nci/core.c
952
protocol == NFC_PROTO_ISO14443_B)
net/nfc/nci/core.c
962
ndev->target_active_prot = protocol;
net/nfc/nci/core.c
963
if (protocol == NFC_PROTO_ISO14443)
net/nfc/nci/ntf.c
320
__u32 protocol;
net/nfc/nci/ntf.c
323
protocol = NFC_PROTO_JEWEL_MASK;
net/nfc/nci/ntf.c
325
protocol = NFC_PROTO_MIFARE_MASK;
net/nfc/nci/ntf.c
328
protocol = NFC_PROTO_ISO14443_MASK;
net/nfc/nci/ntf.c
330
protocol = NFC_PROTO_ISO14443_B_MASK;
net/nfc/nci/ntf.c
332
protocol = NFC_PROTO_FELICA_MASK;
net/nfc/nci/ntf.c
334
protocol = NFC_PROTO_NFC_DEP_MASK;
net/nfc/nci/ntf.c
336
protocol = NFC_PROTO_ISO15693_MASK;
net/nfc/nci/ntf.c
338
protocol = nci_get_prop_rf_protocol(ndev, rf_protocol);
net/nfc/nci/ntf.c
340
if (!(protocol & ndev->poll_prots)) {
net/nfc/nci/ntf.c
388
target->supported_protocols |= protocol;
net/nfc/nci/ntf.c
390
pr_debug("protocol 0x%x\n", protocol);
net/nfc/nci/rsp.c
299
conn_info->dest_params->protocol = ndev->cur_params.protocol;
net/nfc/netlink.c
1873
if (event != NETLINK_URELEASE || n->protocol != NETLINK_GENERIC)
net/nfc/netlink.c
234
int nfc_genl_tm_activated(struct nfc_dev *dev, u32 protocol)
net/nfc/netlink.c
250
if (nla_put_u32(msg, NFC_ATTR_TM_PROTOCOLS, protocol))
net/nfc/netlink.c
887
u32 device_idx, target_idx, protocol;
net/nfc/netlink.c
902
protocol = nla_get_u32(info->attrs[NFC_ATTR_PROTOCOLS]);
net/nfc/netlink.c
905
rc = nfc_activate_target(dev, target_idx, protocol);
net/nfc/nfc.h
141
int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol);
net/nfc/nfc.h
88
int nfc_genl_tm_activated(struct nfc_dev *dev, u32 protocol);
net/nsh/nsh.c
107
skb->protocol = proto;
net/nsh/nsh.c
118
skb->protocol = outer_proto;
net/nsh/nsh.c
24
next_proto = tun_p_from_eth_p(skb->protocol);
net/nsh/nsh.c
39
skb->protocol = htons(ETH_P_NSH);
net/nsh/nsh.c
71
skb->protocol = inner_proto;
net/nsh/nsh.c
87
outer_proto = skb->protocol;
net/openvswitch/actions.c
1181
if (skb->protocol == htons(ETH_P_IPV6)) {
net/openvswitch/actions.c
1195
} else if (skb->protocol == htons(ETH_P_IP)) {
net/openvswitch/actions.c
314
if (skb->protocol == htons(ETH_P_TEB))
net/openvswitch/actions.c
330
if (nh->protocol == IPPROTO_TCP) {
net/openvswitch/actions.c
334
} else if (nh->protocol == IPPROTO_UDP) {
net/openvswitch/actions.c
716
if (eth_p_mpls(skb->protocol)) {
net/openvswitch/actions.c
772
if (eth_p_mpls(skb->protocol)) {
net/openvswitch/flow.c
1098
skb->protocol = key->eth.type;
net/openvswitch/flow.c
703
key->ip.proto = nh->protocol;
net/openvswitch/flow.c
923
if (unlikely(eth_type_vlan(skb->protocol)))
net/openvswitch/flow.c
927
key->eth.type = skb->protocol;
net/openvswitch/flow.c
950
skb->protocol = key->eth.cvlan.tpid;
net/openvswitch/flow.c
952
skb->protocol = key->eth.type;
net/openvswitch/flow.c
989
if (skb->protocol == htons(ETH_P_TEB))
net/openvswitch/vport-internal_dev.c
200
skb->protocol = eth_type_trans(skb, netdev);
net/openvswitch/vport.c
533
eth_type_vlan(skb->protocol))
net/openvswitch/vport.c
553
skb->protocol = htons(ETH_P_TEB);
net/packet/af_packet.c
1005
} else if (unlikely(po->sk.sk_type == SOCK_DGRAM && eth_type_vlan(pkc->skb->protocol))) {
net/packet/af_packet.c
1007
ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->protocol);
net/packet/af_packet.c
1907
spkt->spkt_protocol = skb->protocol;
net/packet/af_packet.c
1927
if ((!skb->protocol || skb->protocol == htons(ETH_P_ALL)) &&
net/packet/af_packet.c
1930
skb->protocol = dev_parse_header_protocol(skb);
net/packet/af_packet.c
1935
eth_type_vlan(skb->protocol) &&
net/packet/af_packet.c
1936
vlan_get_protocol_and_depth(skb, skb->protocol, &depth) != 0)
net/packet/af_packet.c
2050
skb->protocol = proto;
net/packet/af_packet.c
2425
} else if (unlikely(sk->sk_type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) {
net/packet/af_packet.c
2427
h.h2->tp_vlan_tpid = ntohs(skb->protocol);
net/packet/af_packet.c
2459
vlan_get_protocol_dgram(skb) : skb->protocol;
net/packet/af_packet.c
2582
skb->protocol = proto;
net/packet/af_packet.c
3063
skb->protocol = proto;
net/packet/af_packet.c
3338
static int packet_create(struct net *net, struct socket *sock, int protocol,
net/packet/af_packet.c
3343
__be16 proto = (__force __be16)protocol; /* weird, but documented */
net/packet/af_packet.c
3490
vlan_get_protocol_dgram(skb) : skb->protocol;
net/packet/af_packet.c
3547
} else if (unlikely(sock->type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) {
net/packet/af_packet.c
3555
aux.tp_vlan_tpid = ntohs(skb->protocol);
net/packet/af_packet.c
573
__be16 proto = skb->protocol;
net/phonet/af_phonet.c
181
skb->protocol = htons(ETH_P_PHONET);
net/phonet/af_phonet.c
190
err = dev_hard_header(skb, dev, ntohs(skb->protocol),
net/phonet/af_phonet.c
27
static const struct phonet_protocol *phonet_proto_get(unsigned int protocol)
net/phonet/af_phonet.c
31
if (protocol >= PHONET_NPROTO)
net/phonet/af_phonet.c
35
pp = rcu_dereference(proto_tab[protocol]);
net/phonet/af_phonet.c
461
int __init_or_module phonet_proto_register(unsigned int protocol,
net/phonet/af_phonet.c
466
if (protocol >= PHONET_NPROTO)
net/phonet/af_phonet.c
474
if (proto_tab[protocol])
net/phonet/af_phonet.c
477
rcu_assign_pointer(proto_tab[protocol], pp);
net/phonet/af_phonet.c
484
void phonet_proto_unregister(unsigned int protocol,
net/phonet/af_phonet.c
488
BUG_ON(rcu_access_pointer(proto_tab[protocol]) != pp);
net/phonet/af_phonet.c
489
RCU_INIT_POINTER(proto_tab[protocol], NULL);
net/phonet/af_phonet.c
50
static int pn_socket_create(struct net *net, struct socket *sock, int protocol,
net/phonet/af_phonet.c
61
if (protocol == 0) {
net/phonet/af_phonet.c
65
protocol = PN_PROTO_PHONET;
net/phonet/af_phonet.c
68
protocol = PN_PROTO_PIPE;
net/phonet/af_phonet.c
75
pnp = phonet_proto_get(protocol);
net/phonet/af_phonet.c
77
request_module("net-pf-%d-proto-%d", PF_PHONET, protocol) == 0)
net/phonet/af_phonet.c
78
pnp = phonet_proto_get(protocol);
net/phonet/af_phonet.c
97
sk->sk_protocol = protocol;
net/phonet/pep-gprs.c
118
skb->protocol = protocol;
net/phonet/pep-gprs.c
183
switch (skb->protocol) {
net/phonet/pep-gprs.c
81
__be16 protocol = gprs_type_trans(skb);
net/phonet/pep-gprs.c
83
if (!protocol) {
net/phonet/pn_netlink.c
319
{.owner = THIS_MODULE, .protocol = PF_PHONET, .msgtype = RTM_NEWADDR,
net/phonet/pn_netlink.c
321
{.owner = THIS_MODULE, .protocol = PF_PHONET, .msgtype = RTM_DELADDR,
net/phonet/pn_netlink.c
323
{.owner = THIS_MODULE, .protocol = PF_PHONET, .msgtype = RTM_GETADDR,
net/phonet/pn_netlink.c
325
{.owner = THIS_MODULE, .protocol = PF_PHONET, .msgtype = RTM_NEWROUTE,
net/phonet/pn_netlink.c
327
{.owner = THIS_MODULE, .protocol = PF_PHONET, .msgtype = RTM_DELROUTE,
net/phonet/pn_netlink.c
329
{.owner = THIS_MODULE, .protocol = PF_PHONET, .msgtype = RTM_GETROUTE,
net/psample/psample.c
474
be16_to_cpu(skb->protocol));
net/psp/psp_main.c
255
if (skb->protocol != htons(ETH_P_IP) &&
net/psp/psp_main.c
256
skb->protocol != htons(ETH_P_IPV6))
net/psp/psp_main.c
268
if (skb->protocol == htons(ETH_P_IP)) {
net/psp/psp_main.c
269
ip_hdr(skb)->protocol = IPPROTO_UDP;
net/psp/psp_main.c
327
is_udp = iph->protocol == IPPROTO_UDP;
net/psp/psp_main.c
383
iph->protocol = psph->nexthdr;
net/qrtr/af_qrtr.c
1258
int protocol, int kern)
net/rds/af_rds.c
674
static int __rds_create(struct socket *sock, struct sock *sk, int protocol)
net/rds/af_rds.c
680
sk->sk_protocol = protocol;
net/rds/af_rds.c
704
static int rds_create(struct net *net, struct socket *sock, int protocol,
net/rds/af_rds.c
709
if (sock->type != SOCK_SEQPACKET || protocol)
net/rds/af_rds.c
716
return __rds_create(sock, sk, protocol);
net/rxrpc/af_rxrpc.c
802
static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
net/rxrpc/af_rxrpc.c
809
_enter("%p,%d", sock, protocol);
net/rxrpc/af_rxrpc.c
812
if (protocol != PF_INET &&
net/rxrpc/af_rxrpc.c
813
IS_ENABLED(CONFIG_AF_RXRPC_IPV6) && protocol != PF_INET6)
net/rxrpc/af_rxrpc.c
834
rx->family = protocol;
net/rxrpc/utils.c
20
switch (ntohs(skb->protocol)) {
net/rxrpc/utils.c
41
ntohs(skb->protocol));
net/sched/act_csum.c
300
ul, iph->protocol,
net/sched/act_csum.c
401
switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) {
net/sched/act_csum.c
580
__be16 protocol;
net/sched/act_csum.c
593
protocol = skb_protocol(skb, false);
net/sched/act_csum.c
595
switch (protocol) {
net/sched/act_csum.c
608
protocol = skb->protocol;
net/sched/act_csum.c
617
protocol = vlan->h_vlan_encapsulated_proto;
net/sched/act_ct.c
537
ipproto = iph->protocol;
net/sched/act_ife.c
762
skb->protocol = eth_type_trans(skb, skb->dev);
net/sched/act_mpls.c
101
!eth_p_mpls(skb->protocol));
net/sched/act_mpls.c
96
skb->protocol = skb->vlan_proto;
net/sched/act_nat.c
171
iph->protocol != IPPROTO_ICMP) {
net/sched/act_nat.c
178
switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) {
net/sched/act_pedit.c
329
switch (skb->protocol) {
net/sched/act_pedit.c
335
if (iph->ihl < 5 || iph->protocol != header_type ||
net/sched/cls_api.c
1729
__be16 protocol = skb_protocol(skb, false);
net/sched/cls_api.c
175
(__force __u32)tp->protocol, 0);
net/sched/cls_api.c
1760
if (tp->protocol != protocol &&
net/sched/cls_api.c
1761
tp->protocol != htons(ETH_P_ALL))
net/sched/cls_api.c
1794
ntohs(tp->protocol));
net/sched/cls_api.c
1928
u32 protocol, u32 prio,
net/sched/cls_api.c
1939
u32 protocol, u32 prio,
net/sched/cls_api.c
194
tp1->protocol == tp2->protocol;
net/sched/cls_api.c
1954
tp = tcf_chain_tp_find(chain, &chain_info, protocol, prio, false, NULL);
net/sched/cls_api.c
2013
u32 protocol, u32 prio,
net/sched/cls_api.c
2030
if (tp->protocol != protocol && protocol) {
net/sched/cls_api.c
2076
tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol);
net/sched/cls_api.c
2243
u32 protocol;
net/sched/cls_api.c
2269
protocol = TC_H_MIN(t->tcm_info);
net/sched/cls_api.c
2342
tp = tcf_chain_tp_find(chain, &chain_info, protocol,
net/sched/cls_api.c
2359
if (tca[TCA_KIND] == NULL || !protocol) {
net/sched/cls_api.c
2376
tp_new = tcf_proto_create(name, protocol, prio, chain,
net/sched/cls_api.c
2384
tp = tcf_chain_tp_insert_unique(chain, tp_new, protocol, prio,
net/sched/cls_api.c
2479
u32 protocol;
net/sched/cls_api.c
2499
protocol = TC_H_MIN(t->tcm_info);
net/sched/cls_api.c
2503
if (prio == 0 && (protocol || t->tcm_handle || tca[TCA_KIND])) {
net/sched/cls_api.c
2570
tp = tcf_chain_tp_find(chain, &chain_info, protocol,
net/sched/cls_api.c
2638
u32 protocol;
net/sched/cls_api.c
2658
protocol = TC_H_MIN(t->tcm_info);
net/sched/cls_api.c
2713
tp = tcf_chain_tp_find(chain, &chain_info, protocol,
net/sched/cls_api.c
2799
TC_H_MIN(tcm->tcm_info) != tp->protocol)
net/sched/cls_api.c
372
static struct tcf_proto *tcf_proto_create(const char *kind, u32 protocol,
net/sched/cls_api.c
390
tp->protocol = protocol;
net/sched/sch_cake.c
953
if (iph->version == 4 && iph->protocol == IPPROTO_IPV6)
net/sched/sch_cake.c
989
if (iph->protocol == IPPROTO_IPV6) {
net/sched/sch_cake.c
998
} else if (iph->protocol != IPPROTO_TCP) {
net/sched/sch_choke.c
153
if (skb1->protocol != skb2->protocol)
net/sched/sch_taprio.c
437
if (iph->protocol == IPPROTO_IPV6) {
net/sched/sch_taprio.c
443
} else if (iph->protocol != IPPROTO_TCP) {
net/sctp/ipv6.c
1069
.protocol = IPPROTO_SCTP,
net/sctp/ipv6.c
1076
.protocol = IPPROTO_SCTP,
net/sctp/protocol.c
1130
.protocol = IPPROTO_SCTP,
net/sctp/protocol.c
1137
.protocol = IPPROTO_SCTP,
net/smc/af_smc.c
3371
static int smc_create(struct net *net, struct socket *sock, int protocol,
net/smc/af_smc.c
3374
int family = (protocol == SMCPROTO_SMC6) ? PF_INET6 : PF_INET;
net/smc/af_smc.c
3383
if (protocol != SMCPROTO_SMC && protocol != SMCPROTO_SMC6)
net/smc/af_smc.c
3389
sk = smc_sock_alloc(net, sock, protocol);
net/smc/af_smc.c
395
void smc_sk_init(struct net *net, struct sock *sk, int protocol)
net/smc/af_smc.c
401
sk->sk_protocol = protocol;
net/smc/af_smc.c
422
int protocol)
net/smc/af_smc.c
427
prot = (protocol == SMCPROTO_SMC6) ? &smc_proto6 : &smc_proto;
net/smc/af_smc.c
433
smc_sk_init(net, sk, protocol);
net/smc/smc.h
71
void smc_sk_init(struct net *net, struct sock *sk, int protocol);
net/smc/smc_inet.c
103
.protocol = IPPROTO_SMC,
net/smc/smc_inet.c
56
.protocol = IPPROTO_SMC,
net/socket.c
1440
int sock_create_lite(int family, int type, int protocol, struct socket **res)
net/socket.c
1445
err = security_socket_create(family, type, protocol, 1);
net/socket.c
1456
err = security_socket_post_create(sock, family, type, protocol, 1);
net/socket.c
1580
int __sock_create(struct net *net, int family, int type, int protocol,
net/socket.c
1606
err = security_socket_create(family, type, protocol, kern);
net/socket.c
1651
err = pf->create(net, sock, protocol, kern);
net/socket.c
1658
pf->create, family, type, protocol);
net/socket.c
1674
err = security_socket_post_create(sock, family, type, protocol, kern);
net/socket.c
1707
int sock_create(int family, int type, int protocol, struct socket **res)
net/socket.c
1709
return __sock_create(current->nsproxy->net_ns, family, type, protocol, res, 0);
net/socket.c
1725
int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res)
net/socket.c
1727
return __sock_create(net, family, type, protocol, res, 1);
net/socket.c
1731
static struct socket *__sys_socket_create(int family, int type, int protocol)
net/socket.c
1746
retval = sock_create(family, type, protocol, &sock);
net/socket.c
1753
struct file *__sys_socket_file(int family, int type, int protocol)
net/socket.c
1758
sock = __sys_socket_create(family, type, protocol);
net/socket.c
1781
__weak noinline int update_socket_protocol(int family, int type, int protocol)
net/socket.c
1783
return protocol;
net/socket.c
1788
int __sys_socket(int family, int type, int protocol)
net/socket.c
1794
update_socket_protocol(family, type, protocol));
net/socket.c
1805
SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
net/socket.c
1807
return __sys_socket(family, type, protocol);
net/socket.c
1814
int __sys_socketpair(int family, int type, int protocol, int __user *usockvec)
net/socket.c
1856
err = sock_create(family, type, protocol, &sock1);
net/socket.c
1860
err = sock_create(family, type, protocol, &sock2);
net/socket.c
1906
SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol,
net/socket.c
1909
return __sys_socketpair(family, type, protocol, usockvec);
net/sunrpc/auth_gss/gss_rpc_upcall.c
87
.protocol = XPRT_TRANSPORT_LOCAL,
net/sunrpc/clnt.c
457
WARN_ON_ONCE(!(args->protocol & XPRT_TRANSPORT_BC));
net/sunrpc/clnt.c
525
.ident = args->protocol,
net/sunrpc/clnt.c
540
WARN_ON_ONCE(!(args->protocol & XPRT_TRANSPORT_BC));
net/sunrpc/rpcb_clnt.c
233
.protocol = XPRT_TRANSPORT_LOCAL,
net/sunrpc/rpcb_clnt.c
307
.protocol = XPRT_TRANSPORT_TCP,
net/sunrpc/rpcb_clnt.c
375
.protocol = proto,
net/sunrpc/svc.c
1056
const unsigned short protocol,
net/sunrpc/svc.c
1067
switch (protocol) {
net/sunrpc/svc.c
1086
error = rpcb_register(net, program, version, protocol, port);
net/sunrpc/svc.c
1104
const unsigned short protocol,
net/sunrpc/svc.c
1115
switch (protocol) {
net/sunrpc/svc.c
1149
const unsigned short protocol,
net/sunrpc/svc.c
1157
protocol, port);
net/sunrpc/svc.c
1162
protocol, port);
net/sunrpc/svc.c
1166
trace_svc_register(progname, version, family, protocol, port, error);
net/sunrpc/svcsock.c
1569
int protocol,
net/sunrpc/svcsock.c
1583
if (protocol != IPPROTO_UDP && protocol != IPPROTO_TCP) {
net/sunrpc/svcsock.c
1589
type = (protocol == IPPROTO_UDP)? SOCK_DGRAM : SOCK_STREAM;
net/sunrpc/svcsock.c
1601
error = __sock_create(net, family, type, protocol, &sock, 1);
net/sunrpc/svcsock.c
1625
if (protocol == IPPROTO_TCP) {
net/sunrpc/xprtsock.c
1941
int protocol, bool reuseport)
net/sunrpc/xprtsock.c
1947
err = __sock_create(xprt->xprt_net, family, type, protocol, &sock, 1);
net/sunrpc/xprtsock.c
1950
protocol, -err);
net/sunrpc/xprtsock.c
1964
if (protocol == IPPROTO_TCP)
net/sunrpc/xprtsock.c
2694
.protocol = upper_xprt->prot,
net/sunrpc/xprtsock.c
308
const char *protocol,
net/sunrpc/xprtsock.c
311
xprt->address_strings[RPC_DISPLAY_PROTO] = protocol;
net/tipc/bearer.c
514
skb->protocol = htons(ETH_P_TIPC);
net/tipc/bearer.c
787
skb->protocol = eth_type_trans(skb, dev);
net/tipc/socket.c
460
int protocol, int kern)
net/tipc/socket.c
468
if (unlikely(protocol != 0))
net/unix/af_unix.c
1138
static int unix_create(struct net *net, struct socket *sock, int protocol,
net/unix/af_unix.c
1143
if (protocol && protocol != PF_UNIX)
net/vmw_vsock/af_vsock.c
2688
int protocol, int kern)
net/vmw_vsock/af_vsock.c
2697
if (protocol && protocol != PF_VSOCK)
net/wireless/nl80211.c
21944
u16 proto = be16_to_cpu(skb->protocol);
net/wireless/nl80211.c
22932
if (state != NETLINK_URELEASE || notify->protocol != NETLINK_GENERIC)
net/wireless/rdev-ops.h
1141
enum nl80211_crit_proto_id protocol,
net/wireless/rdev-ops.h
1146
trace_rdev_crit_proto_start(&rdev->wiphy, wdev, protocol, duration);
net/wireless/rdev-ops.h
1148
protocol, duration);
net/wireless/trace.h
2526
enum nl80211_crit_proto_id protocol, u16 duration),
net/wireless/trace.h
2527
TP_ARGS(wiphy, wdev, protocol, duration),
net/wireless/trace.h
2537
__entry->proto = protocol;
net/wireless/trace.h
3539
__entry->proto = be16_to_cpu(skb->protocol);
net/wireless/util.c
2826
skb->protocol = eth_type_trans(skb, dev);
net/wireless/util.c
990
switch (skb->protocol) {
net/x25/af_x25.c
523
static int x25_create(struct net *net, struct socket *sock, int protocol,
net/x25/af_x25.c
538
if (protocol)
net/x25/af_x25.c
552
sk->sk_protocol = protocol;
net/x25/x25_dev.c
167
skb->protocol = htons(ETH_P_X25);
net/x25/x25_dev.c
190
skb->protocol = htons(ETH_P_X25);
net/xdp/xsk.c
2163
static int xsk_create(struct net *net, struct socket *sock, int protocol,
net/xdp/xsk.c
2174
if (protocol)
net/xfrm/xfrm_inout.h
49
iph->nexthdr = XFRM_MODE_SKB_CB(skb)->protocol;
net/xfrm/xfrm_inout.h
62
iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol;
net/xfrm/xfrm_input.c
106
static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol,
net/xfrm/xfrm_input.c
109
bool is_ipip = (protocol == IPPROTO_IPIP || protocol == IPPROTO_IPV6);
net/xfrm/xfrm_input.c
117
ret = afinfo->callback(skb, protocol, err);
net/xfrm/xfrm_input.c
187
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_input.c
189
if (unlikely(XFRM_MODE_SKB_CB(skb)->protocol == IPPROTO_BEETPH)) {
net/xfrm/xfrm_input.c
203
XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr;
net/xfrm/xfrm_input.c
241
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_input.c
258
eth_hdr(skb)->h_proto = skb->protocol;
net/xfrm/xfrm_input.c
278
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_input.c
295
eth_hdr(skb)->h_proto = skb->protocol;
net/xfrm/xfrm_input.c
309
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_input.c
354
switch (XFRM_MODE_SKB_CB(skb)->protocol) {
net/xfrm/xfrm_input.c
698
XFRM_MODE_SKB_CB(skb)->protocol = nexthdr;
net/xfrm/xfrm_interface_core.c
339
return xfrmi_input(skb, ip_hdr(skb)->protocol, 0, 0, AF_INET);
net/xfrm/xfrm_interface_core.c
393
inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol);
net/xfrm/xfrm_interface_core.c
484
if (skb->protocol == htons(ETH_P_IPV6)) {
net/xfrm/xfrm_interface_core.c
534
switch (skb->protocol) {
net/xfrm/xfrm_interface_core.c
589
int protocol = iph->protocol;
net/xfrm/xfrm_interface_core.c
597
switch (protocol) {
net/xfrm/xfrm_interface_core.c
626
spi, protocol, AF_INET);
net/xfrm/xfrm_interface_core.c
637
ipv4_update_pmtu(skb, net, info, 0, protocol);
net/xfrm/xfrm_interface_core.c
639
ipv4_redirect(skb, net, 0, protocol);
net/xfrm/xfrm_interface_core.c
650
int protocol = iph->nexthdr;
net/xfrm/xfrm_interface_core.c
658
switch (protocol) {
net/xfrm/xfrm_interface_core.c
680
spi, protocol, AF_INET6);
net/xfrm/xfrm_iptfs.c
1007
protocol = cpu_to_be16(ETH_P_IP);
net/xfrm/xfrm_iptfs.c
1022
protocol = cpu_to_be16(ETH_P_IPV6);
net/xfrm/xfrm_iptfs.c
1093
skb->protocol = protocol;
net/xfrm/xfrm_iptfs.c
1096
eth_hdr(skb)->h_proto = skb->protocol;
net/xfrm/xfrm_iptfs.c
1140
skb->protocol = protocol;
net/xfrm/xfrm_iptfs.c
1145
eth_hdr(skb)->h_proto = skb->protocol;
net/xfrm/xfrm_iptfs.c
191
return iph->protocol;
net/xfrm/xfrm_iptfs.c
198
u32 protocol = 0;
net/xfrm/xfrm_iptfs.c
202
protocol = iph->protocol;
net/xfrm/xfrm_iptfs.c
205
protocol = ((struct ipv6hdr *)(iph))->nexthdr;
net/xfrm/xfrm_iptfs.c
207
switch (protocol) {
net/xfrm/xfrm_iptfs.c
2207
skb->protocol = x->outer_mode.family == AF_INET ? htons(ETH_P_IP) :
net/xfrm/xfrm_iptfs.c
2381
skb->mac_header = skb->network_header + offsetof(struct iphdr, protocol);
net/xfrm/xfrm_iptfs.c
2387
top_iph->protocol = IPPROTO_AGGFRAG;
net/xfrm/xfrm_iptfs.c
684
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_iptfs.c
694
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_iptfs.c
975
__be16 protocol = 0;
net/xfrm/xfrm_output.c
243
offsetof(struct iphdr, protocol);
net/xfrm/xfrm_output.c
258
ph->nexthdr = top_iph->protocol;
net/xfrm/xfrm_output.c
262
top_iph->protocol = IPPROTO_BEETPH;
net/xfrm/xfrm_output.c
278
bool small_ipv6 = (skb->protocol == htons(ETH_P_IPV6)) && (skb->len <= IPV6_MIN_MTU);
net/xfrm/xfrm_output.c
290
offsetof(struct iphdr, protocol);
net/xfrm/xfrm_output.c
297
top_iph->protocol = xfrm_af2proto(skb_dst(skb)->ops->family);
net/xfrm/xfrm_output.c
421
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_output.c
444
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_output.c
710
xo->inner_ipproto = ip_hdr(skb)->protocol;
net/xfrm/xfrm_output.c
745
xo->inner_ipproto = inner_ip_hdr(skb)->protocol;
net/xfrm/xfrm_output.c
75
offsetof(struct iphdr, protocol);
net/xfrm/xfrm_output.c
855
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_output.c
883
XFRM_MODE_SKB_CB(skb)->protocol = ip_hdr(skb)->protocol;
net/xfrm/xfrm_output.c
907
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_output.c
932
XFRM_MODE_SKB_CB(skb)->protocol = ipv6_hdr(skb)->nexthdr;
net/xfrm/xfrm_output.c
944
switch (skb->protocol) {
net/xfrm/xfrm_output.c
959
if (skb->protocol == htons(ETH_P_IP))
net/xfrm/xfrm_output.c
961
else if (skb->protocol == htons(ETH_P_IPV6) &&
samples/bpf/hbm_kern.h
124
pkti->is_tcp = (iph.protocol == 6);
samples/bpf/hbm_kern.h
91
if (sk->protocol == IPPROTO_TCP) {
samples/bpf/parse_ldabs.c
34
if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP ||
samples/bpf/parse_simple.c
41
if (iph->protocol != IPPROTO_UDP || iph->ihl != 5)
samples/bpf/parse_varlen.c
64
if (iph->protocol == IPPROTO_IPIP) {
samples/bpf/parse_varlen.c
71
if (iph->protocol == IPPROTO_TCP)
samples/bpf/parse_varlen.c
73
else if (iph->protocol == IPPROTO_UDP)
samples/bpf/parse_varlen.c
96
nexthdr = iph->protocol;
samples/bpf/sock_example.c
50
BPF_LD_ABS(BPF_B, ETH_HLEN + offsetof(struct iphdr, protocol) /* R0 = ip->proto */),
samples/bpf/sockex1_kern.c
18
int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol));
samples/bpf/sockex2_kern.c
69
*ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol));
samples/bpf/sockex3_kern.c
171
ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol));
samples/bpf/tc_l2_redirect_kern.c
80
if (iph->protocol != IPPROTO_IPIP)
samples/bpf/tcbpf1_kern.c
58
__u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol));
samples/bpf/test_lwt_bpf.c
40
skb->protocol);
samples/bpf/test_lwt_bpf.c
79
#define IP_PROTO_OFF offsetof(struct iphdr, protocol)
samples/bpf/xdp_adjust_tail_kern.c
108
iph->protocol = IPPROTO_ICMP;
samples/bpf/xdp_fwd_kern.c
73
fib_params.l4_protocol = iph->protocol;
samples/bpf/xdp_tx_iptunnel_common.h
18
__u8 protocol;
samples/bpf/xdp_tx_iptunnel_kern.c
132
iph->protocol = IPPROTO_IPIP;
samples/bpf/xdp_tx_iptunnel_kern.c
147
count_tx(vip.protocol);
samples/bpf/xdp_tx_iptunnel_kern.c
171
vip.protocol = ip6h->nexthdr;
samples/bpf/xdp_tx_iptunnel_kern.c
210
count_tx(vip.protocol);
samples/bpf/xdp_tx_iptunnel_kern.c
36
static __always_inline void count_tx(u32 protocol)
samples/bpf/xdp_tx_iptunnel_kern.c
40
rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol);
samples/bpf/xdp_tx_iptunnel_kern.c
46
u8 protocol)
samples/bpf/xdp_tx_iptunnel_kern.c
51
switch (protocol) {
samples/bpf/xdp_tx_iptunnel_kern.c
95
dport = get_dport(iph + 1, data_end, iph->protocol);
samples/bpf/xdp_tx_iptunnel_kern.c
99
vip.protocol = iph->protocol;
samples/bpf/xdp_tx_iptunnel_user.c
169
vip.protocol = IPPROTO_TCP;
samples/bpf/xdp_tx_iptunnel_user.c
195
vip.protocol = atoi(optarg);
security/apparmor/af_unix.c
202
int type, int protocol,
security/apparmor/af_unix.c
214
PF_UNIX, type, protocol, NULL,
security/apparmor/af_unix.c
222
protocol);
security/apparmor/af_unix.c
430
int protocol)
security/apparmor/af_unix.c
435
type, protocol);
security/apparmor/af_unix.c
439
protocol, &ad));
security/apparmor/af_unix.c
86
int type, int protocol,
security/apparmor/af_unix.c
92
protocol, NULL, info);
security/apparmor/include/af_unix.h
41
int protocol);
security/apparmor/include/audit.h
142
int type, protocol;
security/apparmor/include/net.h
101
int type, int protocol);
security/apparmor/include/net.h
71
NAME.net.protocol = (P)
security/apparmor/include/net.h
93
u32 request, u16 af, int type, int protocol,
security/apparmor/include/net.h
98
u32 request, u16 family, int type, int protocol);
security/apparmor/lsm.c
1250
static int apparmor_socket_create(int family, int type, int protocol, int kern)
security/apparmor/lsm.c
1264
protocol);
security/apparmor/lsm.c
1268
protocol);
security/apparmor/lsm.c
1290
int type, int protocol, int kern)
security/apparmor/net.c
133
audit_log_format(ab, " protocol=%d", ad->net.protocol);
security/apparmor/net.c
227
u32 request, u16 af, int type, int protocol,
security/apparmor/net.c
240
state = aa_dfa_match_be16(policy->dfa, state, (u16)protocol);
security/apparmor/net.c
254
int type, int protocol)
security/apparmor/net.c
270
protocol, &p, &ad->info);
security/apparmor/net.c
275
const char *op, u32 request, u16 family, int type, int protocol)
security/apparmor/net.c
278
DEFINE_AUDIT_NET(ad, op, subj_cred, NULL, family, type, protocol);
security/apparmor/net.c
282
type, protocol));
security/lsm_audit.c
50
*proto = ih->protocol;
security/lsm_audit.c
55
switch (ih->protocol) {
security/security.c
4190
int security_socket_create(int family, int type, int protocol, int kern)
security/security.c
4192
return call_int_hook(socket_create, family, type, protocol, kern);
security/security.c
4214
int type, int protocol, int kern)
security/security.c
4217
protocol, kern);
security/selinux/hooks.c
1167
static inline int default_protocol_stream(int protocol)
security/selinux/hooks.c
1169
return (protocol == IPPROTO_IP || protocol == IPPROTO_TCP ||
security/selinux/hooks.c
1170
protocol == IPPROTO_MPTCP);
security/selinux/hooks.c
1173
static inline int default_protocol_dgram(int protocol)
security/selinux/hooks.c
1175
return (protocol == IPPROTO_IP || protocol == IPPROTO_UDP);
security/selinux/hooks.c
1178
static inline u16 socket_type_to_security_class(int family, int type, int protocol)
security/selinux/hooks.c
1198
if (default_protocol_stream(protocol))
security/selinux/hooks.c
1200
else if (extsockclass && protocol == IPPROTO_SCTP)
security/selinux/hooks.c
1205
if (default_protocol_dgram(protocol))
security/selinux/hooks.c
1207
else if (extsockclass && (protocol == IPPROTO_ICMP ||
security/selinux/hooks.c
1208
protocol == IPPROTO_ICMPV6))
security/selinux/hooks.c
1217
switch (protocol) {
security/selinux/hooks.c
4639
*proto = ih->protocol;
security/selinux/hooks.c
4641
switch (ih->protocol) {
security/selinux/hooks.c
4935
int protocol, int kern)
security/selinux/hooks.c
4945
secclass = socket_type_to_security_class(family, type, protocol);
security/selinux/hooks.c
4954
int type, int protocol, int kern)
security/selinux/hooks.c
4959
u16 sclass = socket_type_to_security_class(family, type, protocol);
security/selinux/hooks.c
5445
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5536
if (skb && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5538
else if (skb && skb->protocol == htons(ETH_P_IPV6))
security/selinux/hooks.c
5629
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5882
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/selinux/include/netport.h
23
int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
security/selinux/include/objsec.h
132
u8 protocol; /* transport protocol */
security/selinux/include/security.h
316
int security_port_sid(u8 protocol, u16 port, u32 *out_sid);
security/selinux/netport.c
132
static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid)
security/selinux/netport.c
139
port = sel_netport_find(protocol, pnum);
security/selinux/netport.c
146
ret = security_port_sid(protocol, pnum, sid);
security/selinux/netport.c
156
new->psec.protocol = protocol;
security/selinux/netport.c
182
int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid)
security/selinux/netport.c
187
port = sel_netport_find(protocol, pnum);
security/selinux/netport.c
195
return sel_netport_sid_slow(protocol, pnum, sid);
security/selinux/netport.c
78
static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum)
security/selinux/netport.c
85
if (port->psec.port == pnum && port->psec.protocol == protocol)
security/selinux/ss/policydb.c
2497
c->u.port.protocol = val;
security/selinux/ss/policydb.c
3569
buf[0] = cpu_to_le32(c->u.port.protocol);
security/selinux/ss/policydb.h
176
u8 protocol;
security/selinux/ss/services.c
2447
int security_port_sid(u8 protocol, u16 port, u32 *out_sid)
security/selinux/ss/services.c
2469
if (c->u.port.protocol == protocol &&
security/smack/smack_lsm.c
2984
int type, int protocol, int kern)
security/smack/smack_lsm.c
4259
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/smack/smack_lsm.c
4388
if (skb->protocol == htons(ETH_P_IP))
security/smack/smack_lsm.c
4391
else if (skb->protocol == htons(ETH_P_IPV6))
security/smack/smack_lsm.c
4463
if (skb->protocol == htons(ETH_P_IP))
security/tomoyo/common.c
1525
[ptr->protocol]);
security/tomoyo/common.c
1558
[ptr->protocol]);
security/tomoyo/common.h
471
u8 protocol;
security/tomoyo/common.h
479
u8 protocol;
security/tomoyo/common.h
765
u8 protocol;
security/tomoyo/common.h
774
u8 protocol;
security/tomoyo/network.c
198
return p1->protocol == p2->protocol &&
security/tomoyo/network.c
217
return p1->protocol == p2->protocol &&
security/tomoyo/network.c
26
u8 protocol;
security/tomoyo/network.c
287
const char *protocol = tomoyo_read_token(param);
security/tomoyo/network.c
290
for (e.protocol = 0; e.protocol < TOMOYO_SOCK_MAX; e.protocol++)
security/tomoyo/network.c
291
if (!strcmp(protocol, tomoyo_proto_keyword[e.protocol]))
security/tomoyo/network.c
296
if (e.protocol == TOMOYO_SOCK_MAX || !e.perm)
security/tomoyo/network.c
332
const char *protocol = tomoyo_read_token(param);
security/tomoyo/network.c
335
for (e.protocol = 0; e.protocol < TOMOYO_SOCK_MAX; e.protocol++)
security/tomoyo/network.c
336
if (!strcmp(protocol, tomoyo_proto_keyword[e.protocol]))
security/tomoyo/network.c
341
if (e.protocol == TOMOYO_SOCK_MAX || !e.perm)
security/tomoyo/network.c
364
const char *family, const u8 protocol,
security/tomoyo/network.c
369
tomoyo_proto_keyword[protocol],
security/tomoyo/network.c
395
return tomoyo_audit_net_log(r, "inet", r->param.inet_network.protocol,
security/tomoyo/network.c
409
return tomoyo_audit_net_log(r, "unix", r->param.unix_network.protocol,
security/tomoyo/network.c
475
const u8 type = tomoyo_inet2mac[address->protocol][address->operation];
security/tomoyo/network.c
480
r.param.inet_network.protocol = address->protocol;
security/tomoyo/network.c
533
if (address->protocol == SOCK_RAW)
security/tomoyo/network.c
552
const u8 type = tomoyo_unix2mac[address->protocol][address->operation];
security/tomoyo/network.c
572
r.param.unix_network.protocol = address->protocol;
security/tomoyo/network.c
671
address.protocol = type;
security/tomoyo/network.c
698
address.protocol = type;
security/tomoyo/network.c
740
address.protocol = type;
security/tomoyo/network.c
771
address.protocol = type;
sound/core/seq/seq_ump_client.c
368
if (client->ump->info.protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI2)
sound/core/ump.c
1237
unsigned int protocol;
sound/core/ump.c
1250
protocol = ump->info.protocol;
sound/core/ump.c
1251
if ((protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI2) &&
sound/core/ump.c
1253
protocol = SNDRV_UMP_EP_INFO_PROTO_MIDI1;
sound/core/ump.c
1256
snd_ump_convert_to_ump(ctx, group, protocol, c);
sound/core/ump.c
522
snd_iprintf(buffer, "Protocol: 0x%08x\n", ump->info.protocol);
sound/core/ump.c
690
if (ump->info.protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI_MASK)
sound/core/ump.c
693
ump->info.protocol |= SNDRV_UMP_EP_INFO_PROTO_MIDI2;
sound/core/ump.c
695
ump->info.protocol |= SNDRV_UMP_EP_INFO_PROTO_MIDI1;
sound/core/ump.c
723
ump->info.protocol_caps = (buf->ep_info.protocol << 8) |
sound/core/ump.c
729
ump->info.protocol &= ump->info.protocol_caps;
sound/core/ump.c
812
int snd_ump_switch_protocol(struct snd_ump_endpoint *ump, unsigned int protocol)
sound/core/ump.c
816
protocol &= ump->info.protocol_caps;
sound/core/ump.c
817
if (protocol == ump->info.protocol)
sound/core/ump.c
820
type = protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI_MASK;
sound/core/ump.c
825
ump->info.protocol = protocol;
sound/core/ump.c
827
protocol, ump->info.protocol_caps);
sound/core/ump.c
837
unsigned int protocol =
sound/core/ump.c
838
(buf->stream_cfg.protocol << 8) | buf->stream_cfg.jrts;
sound/core/ump.c
840
snd_ump_switch_protocol(ump, protocol);
sound/core/ump_convert.c
331
unsigned int protocol,
sound/core/ump_convert.c
344
if (protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI1) {
sound/core/ump_convert.c
447
unsigned int protocol, unsigned char c, u32 *data)
sound/core/ump_convert.c
510
return cvt_legacy_cmd_to_ump(cvt, group, protocol, data, cvt->cmd_bytes);
sound/core/ump_convert.c
524
unsigned int protocol, unsigned char c)
sound/core/ump_convert.c
526
cvt->ump_bytes = do_convert_to_ump(cvt, group, protocol, c, cvt->ump);
sound/firewire/amdtp-am824.c
126
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
142
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
152
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
183
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
212
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
255
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
274
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
290
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
298
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
326
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
350
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
377
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-am824.c
58
struct amdtp_am824 *p = s->protocol;
sound/firewire/amdtp-stream.c
101
s->protocol = kzalloc(protocol_size, GFP_KERNEL);
sound/firewire/amdtp-stream.c
102
if (!s->protocol)
sound/firewire/amdtp-stream.c
129
if (s->protocol == NULL)
sound/firewire/amdtp-stream.c
133
kfree(s->protocol);
sound/firewire/amdtp-stream.h
206
void *protocol;
sound/firewire/digi00x/amdtp-dot.c
116
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
149
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
181
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
211
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
226
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
243
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
251
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
295
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
338
struct amdtp_dot *p = s->protocol;
sound/firewire/digi00x/amdtp-dot.c
407
struct amdtp_dot *p = s->protocol;
sound/firewire/fireface/amdtp-ff.c
18
struct amdtp_ff *p = s->protocol;
sound/firewire/fireface/amdtp-ff.c
34
struct amdtp_ff *p = s->protocol;
sound/firewire/fireface/amdtp-ff.c
64
struct amdtp_ff *p = s->protocol;
sound/firewire/fireface/amdtp-ff.c
93
struct amdtp_ff *p = s->protocol;
sound/firewire/fireface/ff-hwdep.c
20
if (ff->spec->protocol->has_msg)
sound/firewire/fireface/ff-hwdep.c
21
return ff->spec->protocol->has_msg(ff);
sound/firewire/fireface/ff-hwdep.c
60
count = ff->spec->protocol->copy_msg_to_user(ff, buf, count);
sound/firewire/fireface/ff-pcm.c
155
err = ff->spec->protocol->get_clock(ff, &rate, &src);
sound/firewire/fireface/ff-proc.c
32
ff->spec->protocol->dump_status(ff, buffer);
sound/firewire/fireface/ff-stream.c
117
err = ff->spec->protocol->get_clock(ff, &curr_rate, &src);
sound/firewire/fireface/ff-stream.c
152
err = ff->spec->protocol->allocate_resources(ff, rate);
sound/firewire/fireface/ff-stream.c
188
err = ff->spec->protocol->begin_session(ff, rate);
sound/firewire/fireface/ff-stream.c
215
err = ff->spec->protocol->switch_fetching_mode(ff, true);
sound/firewire/fireface/ff-stream.c
35
ff->spec->protocol->finish_session(ff);
sound/firewire/fireface/ff-stream.c
36
ff->spec->protocol->switch_fetching_mode(ff, false);
sound/firewire/fireface/ff-transaction.c
141
ff->spec->protocol->handle_msg(ff, (unsigned int)offset, buf, length, tstamp);
sound/firewire/fireface/ff-transaction.c
77
quad_count = ff->spec->protocol->fill_midi_msg(ff, substream, port);
sound/firewire/fireface/ff.c
100
ff->msg_parser = kzalloc(ff->spec->protocol->msg_parser_size, GFP_KERNEL);
sound/firewire/fireface/ff.c
139
.protocol = &snd_ff_protocol_ff800,
sound/firewire/fireface/ff.c
150
.protocol = &snd_ff_protocol_ff400,
sound/firewire/fireface/ff.c
161
.protocol = &snd_ff_protocol_latter,
sound/firewire/fireface/ff.c
172
.protocol = &snd_ff_protocol_latter,
sound/firewire/fireface/ff.c
99
if (ff->spec->protocol->msg_parser_size > 0) {
sound/firewire/fireface/ff.h
59
const struct snd_ff_protocol *protocol;
sound/firewire/motu/amdtp-motu.c
133
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
169
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
205
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
214
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
240
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
335
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
398
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
481
p = s->protocol;
sound/firewire/motu/amdtp-motu.c
52
struct amdtp_motu *p = s->protocol;
sound/firewire/motu/amdtp-motu.c
97
struct amdtp_motu *p = s->protocol;
sound/firewire/tascam/amdtp-tascam.c
101
struct amdtp_tscm *p = s->protocol;
sound/firewire/tascam/amdtp-tascam.c
20
struct amdtp_tscm *p = s->protocol;
sound/firewire/tascam/amdtp-tascam.c
248
p = s->protocol;
sound/firewire/tascam/amdtp-tascam.c
39
struct amdtp_tscm *p = s->protocol;
sound/firewire/tascam/amdtp-tascam.c
69
struct amdtp_tscm *p = s->protocol;
sound/isa/cs423x/cs4236.c
516
list_for_each_entry(iter, &(pdev->protocol->devices), protocol_list) {
sound/soc/ux500/ux500_msp_dai.c
333
msp_config->protocol = MSP_I2S_PROTOCOL;
sound/soc/ux500/ux500_msp_dai.c
340
msp_config->protocol = MSP_I2S_PROTOCOL;
sound/soc/ux500/ux500_msp_dai.c
355
msp_config->protocol = MSP_PCM_PROTOCOL;
sound/soc/ux500/ux500_msp_i2s.c
179
if (config->protocol >= MSP_INVALID_PROTOCOL) {
sound/soc/ux500/ux500_msp_i2s.c
185
(struct msp_protdesc *)&prot_descs[config->protocol];
sound/soc/ux500/ux500_msp_i2s.c
227
(struct msp_protdesc *)&prot_descs[config->protocol];
sound/soc/ux500/ux500_msp_i2s.c
231
switch (config->protocol) {
sound/soc/ux500/ux500_msp_i2s.c
248
config->protocol);
sound/soc/ux500/ux500_msp_i2s.c
276
if (config->protocol >= MSP_INVALID_PROTOCOL) {
sound/soc/ux500/ux500_msp_i2s.c
279
__func__, config->protocol);
sound/soc/ux500/ux500_msp_i2s.c
283
&prot_descs[config->protocol];
sound/soc/ux500/ux500_msp_i2s.h
458
unsigned int protocol;
sound/usb/card.c
336
int i, protocol;
sound/usb/card.c
341
protocol = altsd->bInterfaceProtocol;
sound/usb/card.c
343
switch (protocol) {
sound/usb/card.c
347
protocol);
sound/usb/card.c
422
if (protocol == UAC_VERSION_3) {
sound/usb/card.h
33
unsigned char protocol; /* UAC_VERSION_1/2/3 */
sound/usb/clock.c
107
fmt->protocol == UAC_VERSION_3 ? (type3) : (type2), \
sound/usb/clock.c
108
fmt->protocol); \
sound/usb/clock.c
195
if (fmt->protocol == UAC_VERSION_2) {
sound/usb/clock.c
266
if (fmt->protocol == UAC_VERSION_3)
sound/usb/clock.c
304
int proto = fmt->protocol;
sound/usb/clock.c
461
switch (fmt->protocol) {
sound/usb/clock.c
578
if (fmt->protocol == UAC_VERSION_3)
sound/usb/clock.c
674
switch (fmt->protocol) {
sound/usb/endpoint.c
1476
if (ep->cur_audiofmt->protocol == UAC_VERSION_1) {
sound/usb/endpoint.c
1490
iface_first = ep->cur_audiofmt->protocol == UAC_VERSION_1;
sound/usb/endpoint.c
825
if (fp->protocol != UAC_VERSION_1) {
sound/usb/fcp.c
1107
if (!mixer->protocol)
sound/usb/format.c
39
switch (fp->protocol) {
sound/usb/format.c
567
if (fp->protocol == UAC_VERSION_3) {
sound/usb/format.c
734
switch (fp->protocol) {
sound/usb/format.c
779
switch (fp->protocol) {
sound/usb/format.c
834
switch (fp->protocol) {
sound/usb/helper.h
43
bool snd_usb_validate_audio_desc(void *p, int protocol);
sound/usb/midi2.c
591
unsigned int protocol, protocol_caps;
sound/usb/midi2.c
599
protocol = SNDRV_UMP_EP_INFO_PROTO_MIDI1;
sound/usb/midi2.c
603
protocol = SNDRV_UMP_EP_INFO_PROTO_MIDI2;
sound/usb/midi2.c
609
if (!ump->info.protocol)
sound/usb/midi2.c
610
ump->info.protocol = protocol;
sound/usb/midi2.c
612
protocol_caps = protocol;
sound/usb/mixer.c
1364
} else if (cval->head.mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
1647
if (cval->head.mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
1892
if (mixer->protocol == UAC_VERSION_1)
sound/usb/mixer.c
2102
if (mixer->protocol == UAC_VERSION_2)
sound/usb/mixer.c
2135
if (state->mixer->protocol != UAC_VERSION_2)
sound/usb/mixer.c
2194
if (state->mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
2198
} else if (state->mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
2246
if (state->mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
2324
int protocol, int num_ins, int num_outs)
sound/usb/mixer.c
2327
u8 *c = uac_mixer_unit_bmControls(desc, protocol);
sound/usb/mixer.c
2330
switch (protocol) {
sound/usb/mixer.c
2376
__u8 *c = uac_mixer_unit_bmControls(desc, state->mixer->protocol);
sound/usb/mixer.c
2419
if (state->mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
2424
} else if (state->mixer->protocol == UAC_VERSION_3) {
sound/usb/mixer.c
2478
if (mixer_bitmap_overflow(desc, state->mixer->protocol,
sound/usb/mixer.c
2486
state->mixer->protocol);
sound/usb/mixer.c
2707
__u8 *controls = uac_processing_unit_bmControls(desc, state->mixer->protocol);
sound/usb/mixer.c
2709
if (state->mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
2730
if (state->mixer->protocol > UAC_VERSION_1 &&
sound/usb/mixer.c
2750
switch (state->mixer->protocol) {
sound/usb/mixer.c
2765
state->mixer->protocol);
sound/usb/mixer.c
2802
nameid = uac_extension_unit_iExtension(desc, state->mixer->protocol);
sound/usb/mixer.c
2804
nameid = uac_processing_unit_iProcessing(desc, state->mixer->protocol);
sound/usb/mixer.c
2832
switch (state->mixer->protocol) {
sound/usb/mixer.c
2983
switch (state->mixer->protocol) {
sound/usb/mixer.c
3033
switch (state->mixer->protocol) {
sound/usb/mixer.c
3087
int protocol = state->mixer->protocol;
sound/usb/mixer.c
3098
if (!snd_usb_validate_audio_desc(p1, protocol)) {
sound/usb/mixer.c
3103
switch (PTYPE(protocol, p1[2])) {
sound/usb/mixer.c
3473
if (!snd_usb_validate_audio_desc(p, mixer->protocol))
sound/usb/mixer.c
3476
if (mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
3487
} else if (mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
3713
if (mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
3817
mixer->protocol = UAC_VERSION_1;
sound/usb/mixer.c
3820
mixer->protocol = UAC_VERSION_2;
sound/usb/mixer.c
3823
mixer->protocol = UAC_VERSION_3;
sound/usb/mixer.c
3827
if (mixer->protocol == UAC_VERSION_3 &&
sound/usb/mixer.c
408
return (cval->head.mixer->protocol == UAC_VERSION_1) ?
sound/usb/mixer.c
469
if (cval->head.mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
740
switch (state->mixer->protocol) {
sound/usb/mixer.c
834
int protocol = state->mixer->protocol;
sound/usb/mixer.c
843
if (protocol != UAC_VERSION_3) {
sound/usb/mixer.c
844
term->chconfig = uac_mixer_unit_wChannelConfig(d, protocol);
sound/usb/mixer.c
863
if (state->mixer->protocol != UAC_VERSION_3)
sound/usb/mixer.c
873
int protocol = state->mixer->protocol;
sound/usb/mixer.c
886
if (protocol == UAC_VERSION_3)
sound/usb/mixer.c
891
term->chconfig = uac_processing_unit_wChannelConfig(d, protocol);
sound/usb/mixer.c
893
term->name = uac_processing_unit_iProcessing(d, protocol);
sound/usb/mixer.c
945
int protocol = state->mixer->protocol;
sound/usb/mixer.c
957
if (!snd_usb_validate_audio_desc(p1, protocol))
sound/usb/mixer.c
963
switch (PTYPE(protocol, hdr[2])) {
sound/usb/mixer.h
26
int protocol;
sound/usb/mixer_scarlett.c
1306
if (!mixer->protocol)
sound/usb/mixer_scarlett.c
1408
if (!mixer->protocol)
sound/usb/mixer_scarlett2.c
9820
if (!mixer->protocol)
sound/usb/pcm.c
248
switch (fmt->protocol) {
sound/usb/qcom/qc_audio_offload.c
1273
int protocol;
sound/usb/qcom/qc_audio_offload.c
1284
protocol = altsd->bInterfaceProtocol;
sound/usb/qcom/qc_audio_offload.c
1286
if (protocol == UAC_VERSION_1) {
sound/usb/qcom/qc_audio_offload.c
1307
} else if (protocol == UAC_VERSION_2) {
sound/usb/qcom/qc_audio_offload.c
1313
} else if (protocol == UAC_VERSION_3) {
sound/usb/qcom/qc_audio_offload.c
1348
protocol);
sound/usb/quirks-table.h
3992
.protocol = UAC_VERSION_2, \
sound/usb/quirks.c
194
fp->protocol = altsd->bInterfaceProtocol;
sound/usb/stream.c
1123
int num, protocol;
sound/usb/stream.c
1142
protocol = altsd->bInterfaceProtocol;
sound/usb/stream.c
1175
protocol <= 2)
sound/usb/stream.c
1176
protocol = UAC_VERSION_1;
sound/usb/stream.c
1178
switch (protocol) {
sound/usb/stream.c
1181
iface_no, altno, protocol);
sound/usb/stream.c
1182
protocol = UAC_VERSION_1;
sound/usb/stream.c
1199
protocol == UAC_VERSION_1 &&
sound/usb/stream.c
1204
fp = snd_usb_get_audioformat_uac12(chip, alts, protocol,
sound/usb/stream.c
1253
if (protocol == UAC_VERSION_1 ||
sound/usb/stream.c
241
int protocol)
sound/usb/stream.c
299
maps = protocol == UAC_VERSION_2 ? uac2_maps : uac1_maps;
sound/usb/stream.c
587
int protocol, int iface_no)
sound/usb/stream.c
613
if (protocol == UAC_VERSION_1) {
sound/usb/stream.c
615
} else if (protocol == UAC_VERSION_2) {
sound/usb/stream.c
651
int terminal_id, int protocol)
sound/usb/stream.c
658
if (!snd_usb_validate_audio_desc(term, protocol))
sound/usb/stream.c
669
int terminal_id, int protocol)
sound/usb/stream.c
677
if (!snd_usb_validate_audio_desc(term, protocol))
sound/usb/stream.c
689
int protocol, int iface_no, int altset_idx,
sound/usb/stream.c
705
fp->protocol = protocol;
sound/usb/stream.c
717
int protocol, int iface_no, int altset_idx,
sound/usb/stream.c
731
if (protocol == UAC_VERSION_1) {
sound/usb/stream.c
755
protocol);
sound/usb/stream.c
791
protocol);
sound/usb/stream.c
801
protocol);
sound/usb/stream.c
823
if (((protocol == UAC_VERSION_1) && (fmt->bLength < 8))
sound/usb/stream.c
824
|| ((protocol == UAC_VERSION_2) &&
sound/usb/stream.c
843
fp = audio_format_alloc_init(chip, alts, protocol, iface_no,
sound/usb/stream.c
848
fp->attributes = parse_uac_endpoint_attributes(chip, alts, protocol,
sound/usb/stream.c
865
fp->chmap = convert_chmap(fp->channels, chconfig, protocol);
sound/usb/validate.c
108
switch (v->protocol) {
sound/usb/validate.c
16
unsigned char protocol;
sound/usb/validate.c
176
switch (v->protocol) {
sound/usb/validate.c
244
#define FIXED(p, t, s) { .protocol = (p), .type = (t), .size = sizeof(s) }
sound/usb/validate.c
245
#define FUNC(p, t, f) { .protocol = (p), .type = (t), .func = (f) }
sound/usb/validate.c
320
static bool validate_desc(unsigned char *hdr, int protocol,
sound/usb/validate.c
328
(v->protocol == UAC_VERSION_ALL ||
sound/usb/validate.c
329
v->protocol == protocol)) {
sound/usb/validate.c
340
bool snd_usb_validate_audio_desc(void *p, int protocol)
sound/usb/validate.c
345
valid = validate_desc(p, protocol, audio_validators);
sound/usb/validate.c
48
switch (v->protocol) {
sound/usb/validate.c
81
switch (v->protocol) {
tools/accounting/getdelays.c
89
static int create_nl_socket(int protocol)
tools/accounting/getdelays.c
94
fd = socket(AF_NETLINK, SOCK_RAW, protocol);
tools/accounting/procacct.c
100
fd = socket(AF_NETLINK, SOCK_RAW, protocol);
tools/accounting/procacct.c
95
static int create_nl_socket(int protocol)
tools/include/uapi/linux/bpf.h
6372
__u32 protocol;
tools/include/uapi/linux/bpf.h
6475
__u32 protocol;
tools/include/uapi/linux/bpf.h
6914
__u32 protocol; /* Allows 4-byte read, but no write */
tools/include/uapi/linux/bpf.h
7571
__u32 protocol; /* IP protocol (IPPROTO_TCP, IPPROTO_UDP) */
tools/lib/bpf/netlink.c
736
__u32 protocol, bpf_flags, handle, priority, parent, prog_id, flags;
tools/lib/bpf/netlink.c
765
protocol = ETH_P_ALL;
tools/lib/bpf/netlink.c
775
req.tc.tcm_info = TC_H_MAKE(priority << 16, htons(protocol));
tools/lib/bpf/netlink.c
812
__u32 protocol = 0, handle, priority, parent, prog_id, flags;
tools/lib/bpf/netlink.c
838
protocol = ETH_P_ALL;
tools/lib/bpf/netlink.c
852
req.tc.tcm_info = TC_H_MAKE(priority << 16, htons(protocol));
tools/lib/bpf/netlink.c
883
__u32 protocol, handle, priority, parent, prog_id, flags;
tools/lib/bpf/netlink.c
909
protocol = ETH_P_ALL;
tools/lib/bpf/netlink.c
918
req.tc.tcm_info = TC_H_MAKE(priority << 16, htons(protocol));
tools/perf/trace/beauty/include/linux/socket.h
459
extern int __sys_socket(int family, int type, int protocol);
tools/perf/trace/beauty/include/linux/socket.h
460
extern struct file *__sys_socket_file(int family, int type, int protocol);
tools/perf/trace/beauty/include/linux/socket.h
474
extern int __sys_socketpair(int family, int type, int protocol,
tools/perf/trace/beauty/include/uapi/sound/asound.h
812
unsigned int protocol; /* current protocol */
tools/perf/trace/beauty/socket.c
14
static size_t socket__scnprintf_ipproto(int protocol, char *bf, size_t size, bool show_prefix)
tools/perf/trace/beauty/socket.c
18
return strarray__scnprintf(&strarray__socket_ipproto, bf, size, "%d", show_prefix, protocol);
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
631
switch (t_params->protocol) {
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
636
decoder->decoder_name = (t_params->protocol == CS_ETM_PROTO_ETMV3) ?
tools/perf/util/cs-etm-decoder/cs-etm-decoder.h
53
int protocol;
tools/perf/util/cs-etm.c
810
t_params->protocol = cs_etm__get_v7_protocol_version(etmidr);
tools/perf/util/cs-etm.c
818
t_params->protocol = CS_ETM_PROTO_ETMV4i;
tools/perf/util/cs-etm.c
830
t_params->protocol = CS_ETM_PROTO_ETE;
tools/testing/selftests/bpf/benchs/bench_xdp_lb.c
481
iph.protocol = sc->ip_proto;
tools/testing/selftests/bpf/benchs/bench_xdp_lb.c
725
iph.protocol = IPPROTO_IPIP;
tools/testing/selftests/bpf/netlink_helpers.c
25
int protocol)
tools/testing/selftests/bpf/netlink_helpers.c
32
rth->proto = protocol;
tools/testing/selftests/bpf/netlink_helpers.c
33
rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol);
tools/testing/selftests/bpf/network_helpers.c
362
int protocol;
tools/testing/selftests/bpf/network_helpers.c
364
optlen = sizeof(protocol);
tools/testing/selftests/bpf/network_helpers.c
365
if (getsockopt(server_fd, SOL_SOCKET, SO_PROTOCOL, &protocol, &optlen)) {
tools/testing/selftests/bpf/network_helpers.c
369
opts.proto = protocol;
tools/testing/selftests/bpf/network_helpers.c
55
.iph.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/network_helpers.c
994
proto = pkt->protocol;
tools/testing/selftests/bpf/prog_tests/cls_redirect.c
185
.protocol = IPPROTO_UDP,
tools/testing/selftests/bpf/prog_tests/cls_redirect.c
245
.protocol = proto,
tools/testing/selftests/bpf/prog_tests/connect_ping.c
33
int protocol = -1;
tools/testing/selftests/bpf/prog_tests/connect_ping.c
40
protocol = IPPROTO_ICMP;
tools/testing/selftests/bpf/prog_tests/connect_ping.c
45
protocol = IPPROTO_ICMPV6;
tools/testing/selftests/bpf/prog_tests/connect_ping.c
52
sock_fd = socket(family, SOCK_DGRAM, protocol);
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
104
.iph.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
148
.iph.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
194
.iph.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
221
.iph.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
364
.iph.protocol = IPPROTO_IPIP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
367
.iph_inner.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
393
.iph.protocol = IPPROTO_IPIP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
396
.iph_inner.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
421
.iph.protocol = IPPROTO_IPIP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
425
.iph_inner.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
440
.iph.protocol = IPPROTO_GRE,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
444
.protocol = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
447
.iph_inner.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
473
.iph.protocol = IPPROTO_GRE,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
476
.iph_inner.protocol = IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
69
__be16 protocol;
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
133
iph->protocol = proto;
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
195
greh->protocol = htons(proto);
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
67
uint16_t protocol;
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
8
struct vip key = {.protocol = 6};
tools/testing/selftests/bpf/prog_tests/lwt_helpers.h
51
if (ip->protocol != IPPROTO_ICMP)
tools/testing/selftests/bpf/prog_tests/mptcp.c
239
int protocol;
tools/testing/selftests/bpf/prog_tests/mptcp.c
242
optlen = sizeof(protocol);
tools/testing/selftests/bpf/prog_tests/mptcp.c
243
if (!ASSERT_OK(getsockopt(server_fd, SOL_SOCKET, SO_PROTOCOL, &protocol, &optlen),
tools/testing/selftests/bpf/prog_tests/mptcp.c
247
if (!ASSERT_EQ(protocol, IPPROTO_MPTCP, "protocol isn't MPTCP"))
tools/testing/selftests/bpf/prog_tests/sk_lookup.c
1044
ctx.protocol = IPPROTO_TCP;
tools/testing/selftests/bpf/prog_tests/sock_addr.c
116
static int kernel_init_sock(int af, int type, int protocol)
tools/testing/selftests/bpf/prog_tests/sock_addr.c
282
int (*socket)(int famil, int type, int protocol);
tools/testing/selftests/bpf/prog_tests/sock_create.c
191
offsetof(struct bpf_sock, protocol)),
tools/testing/selftests/bpf/prog_tests/sock_create.c
203
.protocol = IPPROTO_ICMP,
tools/testing/selftests/bpf/prog_tests/sock_create.c
22
int protocol;
tools/testing/selftests/bpf/prog_tests/sock_create.c
224
offsetof(struct bpf_sock, protocol)),
tools/testing/selftests/bpf/prog_tests/sock_create.c
236
.protocol = IPPROTO_ICMPV6,
tools/testing/selftests/bpf/prog_tests/sock_create.c
297
sock_fd = socket(test->domain, test->type, test->protocol);
tools/testing/selftests/bpf/prog_tests/sock_fields.c
139
listen_sk.protocol != IPPROTO_TCP ||
tools/testing/selftests/bpf/prog_tests/sock_fields.c
153
srv_sk.protocol != IPPROTO_TCP ||
tools/testing/selftests/bpf/prog_tests/sock_fields.c
168
cli_sk.protocol != IPPROTO_TCP ||
tools/testing/selftests/bpf/prog_tests/sock_fields.c
73
sk->state, sk->bound_dev_if, sk->family, sk->type, sk->protocol,
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c
350
u16 protocol = ETH_P_IP;
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c
376
err = bpf_map_update_elem(flags_map, &protocol, &redirect_flags, BPF_NOEXIST);
tools/testing/selftests/bpf/prog_tests/xdp.c
40
ASSERT_EQ(iph.protocol, IPPROTO_IPIP, "ipv4 test_run iph.protocol");
tools/testing/selftests/bpf/prog_tests/xdp.c
7
struct vip key4 = {.protocol = 6, .family = AF_INET};
tools/testing/selftests/bpf/prog_tests/xdp.c
8
struct vip key6 = {.protocol = 6, .family = AF_INET6};
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
238
iph.protocol = IPPROTO_UDP;
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
110
struct vip key4 = {.protocol = 6, .family = AF_INET};
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
175
iph->protocol = IPPROTO_UDP;
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
10
struct vip key = {.protocol = 6};
tools/testing/selftests/bpf/progs/bench_local_storage_create.c
51
int protocol, int kern)
tools/testing/selftests/bpf/progs/bpf_flow.c
294
keys->ip_proto = iph->protocol;
tools/testing/selftests/bpf/progs/bpf_flow.c
321
return parse_ip_proto(skb, iph->protocol);
tools/testing/selftests/bpf/progs/bpf_smc.c
102
return protocol;
tools/testing/selftests/bpf/progs/bpf_smc.c
104
if (protocol != 0 && protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/bpf_smc.c
105
return protocol;
tools/testing/selftests/bpf/progs/bpf_smc.c
110
return protocol;
tools/testing/selftests/bpf/progs/bpf_smc.c
115
return protocol;
tools/testing/selftests/bpf/progs/bpf_smc.c
94
int BPF_PROG(smc_run, int family, int type, int protocol)
tools/testing/selftests/bpf/progs/bpf_smc.c
99
return protocol;
tools/testing/selftests/bpf/progs/cgroup_skb_sk_lookup_kern.c
72
if (skb->protocol != bpf_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
29
if (skb->protocol != bpf_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/core_kern.c
52
struct net_device *dev, unsigned short protocol)
tools/testing/selftests/bpf/progs/core_kern.c
59
struct net_device *dev, unsigned short protocol)
tools/testing/selftests/bpf/progs/crypto_sanity.c
35
if (skb->protocol != __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/decap_sanity.c
39
if (skb->protocol != __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/exceptions.c
199
switch (ctx->protocol) {
tools/testing/selftests/bpf/progs/exceptions.c
59
return global2static_simple(ctx->protocol);
tools/testing/selftests/bpf/progs/exceptions.c
65
return static2global(bpf_ntohs(ctx->protocol));
tools/testing/selftests/bpf/progs/exceptions.c
71
return static2global(bpf_ntohs(ctx->protocol) - 1);
tools/testing/selftests/bpf/progs/exceptions_fail.c
227
if (ctx->protocol)
tools/testing/selftests/bpf/progs/exceptions_fail.c
384
if (ctx->protocol)
tools/testing/selftests/bpf/progs/ip_check_defrag.c
89
switch (bpf_ntohs(ctx->skb->protocol)) {
tools/testing/selftests/bpf/progs/kfree_skb.c
119
unsigned short protocol)
tools/testing/selftests/bpf/progs/kfree_skb.c
137
unsigned short protocol)
tools/testing/selftests/bpf/progs/kfree_skb.c
149
if (len != 60 || protocol != bpf_htons(0x86dd) || ifindex != 1)
tools/testing/selftests/bpf/progs/linked_list_fail.c
458
bpf_list_push_front(&ghead, (void *)&f->node2 + ctx->protocol);
tools/testing/selftests/bpf/progs/linked_list_fail.c
518
bpf_list_push_front((void *)&ghead + ctx->protocol, &f->node2);
tools/testing/selftests/bpf/progs/linked_list_fail.c
533
bpf_list_push_front((void *)&f->head + ctx->protocol, &f->node2);
tools/testing/selftests/bpf/progs/local_storage.c
170
int protocol, int kern)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
100
return real_create(sock, family, protocol);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
211
int BPF_PROG(socket_first, int family, int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
217
int BPF_PROG(socket_second, int family, int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
54
int protocol)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
60
if (family == AF_PACKET && protocol != 0)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
88
int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
91
return real_create(sock, family, protocol);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
97
int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/map_kptr_fail.c
121
id = ctx->protocol;
tools/testing/selftests/bpf/progs/map_kptr_fail.c
49
id = ctx->protocol;
tools/testing/selftests/bpf/progs/map_kptr_fail.c
68
id = ctx->protocol;
tools/testing/selftests/bpf/progs/mptcp_subflow.c
114
if (!sk || sk->protocol != IPPROTO_MPTCP ||
tools/testing/selftests/bpf/progs/mptcpify.c
12
int BPF_PROG(mptcpify, int family, int type, int protocol)
tools/testing/selftests/bpf/progs/mptcpify.c
15
return protocol;
tools/testing/selftests/bpf/progs/mptcpify.c
19
(!protocol || protocol == IPPROTO_TCP)) {
tools/testing/selftests/bpf/progs/mptcpify.c
23
return protocol;
tools/testing/selftests/bpf/progs/setget_sockopt.c
359
int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/skb_pkt_end.c
42
proto = ip->protocol;
tools/testing/selftests/bpf/progs/skb_pkt_end.c
57
offset = sizeof(struct ethhdr) + offsetof(struct iphdr, protocol);
tools/testing/selftests/bpf/progs/sock_destroy_prog.c
38
if (ctx->protocol == IPPROTO_TCP)
tools/testing/selftests/bpf/progs/sock_destroy_prog.c
40
else if (ctx->protocol == IPPROTO_UDP)
tools/testing/selftests/bpf/progs/task_storage_nodeadlock.c
23
int protocol, int kern)
tools/testing/selftests/bpf/progs/test_assign_reuse.c
123
if (iph->protocol == IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_assign_reuse.c
125
else if (iph->protocol == IPPROTO_UDP)
tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
84
if (ip4h->protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_cls_redirect.c
515
encap_gre->ip.protocol = IPPROTO_GRE;
tools/testing/selftests/bpf/progs/test_cls_redirect.c
521
encap_gre->gre.protocol = bpf_htons(proto);
tools/testing/selftests/bpf/progs/test_cls_redirect.c
759
return classify_icmp(pkt->skb, ipv4->protocol, &tuple,
tools/testing/selftests/bpf/progs/test_cls_redirect.c
876
switch (ipv4->protocol) {
tools/testing/selftests/bpf/progs/test_cls_redirect.c
945
if (skb->protocol != bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/test_cls_redirect.c
975
encap->ip.protocol != IPPROTO_UDP) {
tools/testing/selftests/bpf/progs/test_cls_redirect.h
26
uint16_t protocol;
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
405
encap_gre->ip.protocol = IPPROTO_GRE;
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
411
encap_gre->gre.protocol = bpf_htons(proto);
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
650
return classify_icmp(skb, ipv4.protocol, &tuple,
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
774
switch (ipv4.protocol) {
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
857
if (skb->protocol != bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
879
encap->ip.protocol != IPPROTO_UDP)
tools/testing/selftests/bpf/progs/test_dst_clear.c
24
if (skb->protocol != __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_dst_clear.c
30
if (iph.protocol != IPPROTO_UDP)
tools/testing/selftests/bpf/progs/test_l4lb.c
274
pckt->proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_l4lb.c
342
__u8 protocol;
tools/testing/selftests/bpf/progs/test_l4lb.c
353
protocol = ip6h->nexthdr;
tools/testing/selftests/bpf/progs/test_l4lb.c
354
pckt.proto = protocol;
tools/testing/selftests/bpf/progs/test_l4lb.c
357
if (protocol == IPPROTO_FRAGMENT) {
tools/testing/selftests/bpf/progs/test_l4lb.c
359
} else if (protocol == IPPROTO_ICMPV6) {
tools/testing/selftests/bpf/progs/test_l4lb.c
375
protocol = iph->protocol;
tools/testing/selftests/bpf/progs/test_l4lb.c
376
pckt.proto = protocol;
tools/testing/selftests/bpf/progs/test_l4lb.c
382
if (protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_l4lb.c
392
protocol = pckt.proto;
tools/testing/selftests/bpf/progs/test_l4lb.c
394
if (protocol == IPPROTO_TCP) {
tools/testing/selftests/bpf/progs/test_l4lb.c
397
} else if (protocol == IPPROTO_UDP) {
tools/testing/selftests/bpf/progs/test_l4lb.c
410
vip.protocol = pckt.proto;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
273
pckt->proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
341
__u8 protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
352
protocol = ip6h->nexthdr;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
353
pckt.proto = protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
356
if (protocol == IPPROTO_FRAGMENT) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
358
} else if (protocol == IPPROTO_ICMPV6) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
374
protocol = iph->protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
375
pckt.proto = protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
381
if (protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
391
protocol = pckt.proto;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
393
if (protocol == IPPROTO_TCP) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
396
} else if (protocol == IPPROTO_UDP) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
409
vip.protocol = pckt.proto;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
277
pckt->proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
346
__u8 protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
359
protocol = ip6h->nexthdr;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
360
pckt.proto = protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
363
if (protocol == IPPROTO_FRAGMENT) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
365
} else if (protocol == IPPROTO_ICMPV6) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
381
protocol = iph->protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
382
pckt.proto = protocol;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
388
if (protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
398
protocol = pckt.proto;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
400
if (protocol == IPPROTO_TCP) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
403
} else if (protocol == IPPROTO_UDP) {
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
416
vip.protocol = pckt.proto;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
10
__be16 protocol;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
115
hdr.iph.protocol = 17; /* IPPROTO_UDP */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
211
if ((iph->version == 4 && iph->protocol == 17 /* IPPROTO_UDP */) ||
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
27
hdr.iph.protocol = 47; /* IPPROTO_GRE */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
39
hdr.greh.protocol = skb->protocol;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
73
hdr.greh.protocol = skb->protocol;
tools/testing/selftests/bpf/progs/test_migrate_reuseport.c
62
if (ip->protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_pkt_access.c
121
proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_pkt_md_access.c
34
TEST_FIELD(__u16, protocol, 0xFFFF);
tools/testing/selftests/bpf/progs/test_pkt_md_access.c
35
TEST_FIELD(__u32, protocol, 0xFFFFFFFF);
tools/testing/selftests/bpf/progs/test_sk_assign.c
77
proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_sk_lookup.c
407
if (LSB(ctx->protocol, 0) != IPPROTO_TCP ||
tools/testing/selftests/bpf/progs/test_sk_lookup.c
408
LSB(ctx->protocol, 1) != 0 || LSB(ctx->protocol, 2) != 0 || LSB(ctx->protocol, 3) != 0)
tools/testing/selftests/bpf/progs/test_sk_lookup.c
410
if (LSW(ctx->protocol, 0) != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c
35
proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_sock_fields.c
166
if (sk->protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_sock_fields.c
70
dst->protocol = src->protocol;
tools/testing/selftests/bpf/progs/test_spin_lock.c
112
if (ctx->protocol)
tools/testing/selftests/bpf/progs/test_spin_lock_fail.c
209
if (ctx->protocol)
tools/testing/selftests/bpf/progs/test_spin_lock_fail.c
210
ret += ctx->protocol;
tools/testing/selftests/bpf/progs/test_spin_lock_fail.c
219
if (ctx->protocol)
tools/testing/selftests/bpf/progs/test_tc_change_tail.c
37
*ip_proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_tc_dtime.c
150
switch (skb->protocol) {
tools/testing/selftests/bpf/progs/test_tc_dtime.c
159
inet_proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_tc_edt.c
105
if (skb->protocol == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_edt.c
96
if (iph->protocol == IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_tc_link.c
38
if (skb->protocol != __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_link.c
96
if (skb->protocol != __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_neigh.c
117
switch (skb->protocol) {
tools/testing/selftests/bpf/progs/test_tc_neigh.c
92
switch (skb->protocol) {
tools/testing/selftests/bpf/progs/test_tc_neigh_fib.c
40
fib_params->l4_protocol = ip4h->protocol;
tools/testing/selftests/bpf/progs/test_tc_neigh_fib.c
97
switch (skb->protocol) {
tools/testing/selftests/bpf/progs/test_tc_peer.c
46
__u16 proto = skb->protocol;
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
124
iph_inner.protocol = iph6_inner.nexthdr;
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
138
if (iph_inner.ihl != 5 || iph_inner.protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
173
h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
226
h_outer.ip.protocol = encap_proto;
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
304
h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
429
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
438
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
447
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
456
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
465
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
474
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
483
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
492
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
503
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
512
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
521
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
53
__be16 protocol;
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
530
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
539
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
548
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
557
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
566
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
575
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
584
if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
626
switch (bpf_ntohs(greh.protocol)) {
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
673
iph_outer.protocol);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
691
switch (skb->protocol) {
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
95
if (ctx->ipv4->protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
454
if (iph->protocol != IPPROTO_UDP)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
726
if (iph->protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
771
if (iph->protocol == IPPROTO_ICMP)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
810
if (iph->protocol == IPPROTO_ICMP)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
877
if (iph->protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
997
if (!iph || iph->protocol != IPPROTO_ESP)
tools/testing/selftests/bpf/progs/test_xdp.c
101
vip.protocol = iph->protocol;
tools/testing/selftests/bpf/progs/test_xdp.c
132
iph->protocol = IPPROTO_IPIP;
tools/testing/selftests/bpf/progs/test_xdp.c
147
count_tx(vip.protocol);
tools/testing/selftests/bpf/progs/test_xdp.c
171
vip.protocol = ip6h->nexthdr;
tools/testing/selftests/bpf/progs/test_xdp.c
207
count_tx(vip.protocol);
tools/testing/selftests/bpf/progs/test_xdp.c
38
static __always_inline void count_tx(__u32 protocol)
tools/testing/selftests/bpf/progs/test_xdp.c
42
rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol);
tools/testing/selftests/bpf/progs/test_xdp.c
48
__u8 protocol)
tools/testing/selftests/bpf/progs/test_xdp.c
53
switch (protocol) {
tools/testing/selftests/bpf/progs/test_xdp.c
97
dport = get_dport(iph + 1, data_end, iph->protocol);
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
106
dport = get_dport(iph + 1, iph->protocol);
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
110
vip.protocol = iph->protocol;
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
140
iph->protocol = IPPROTO_IPIP;
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
154
count_tx(vip.protocol);
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
189
vip.protocol = ip6h->nexthdr;
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
225
count_tx(vip.protocol);
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
41
static __always_inline void count_tx(__u32 protocol)
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
45
rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol);
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
50
static __always_inline int get_dport(void *trans_data, __u8 protocol)
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
55
switch (protocol) {
tools/testing/selftests/bpf/progs/test_xdp_loop.c
128
iph->protocol = IPPROTO_IPIP;
tools/testing/selftests/bpf/progs/test_xdp_loop.c
143
count_tx(vip.protocol);
tools/testing/selftests/bpf/progs/test_xdp_loop.c
167
vip.protocol = ip6h->nexthdr;
tools/testing/selftests/bpf/progs/test_xdp_loop.c
203
count_tx(vip.protocol);
tools/testing/selftests/bpf/progs/test_xdp_loop.c
34
static __always_inline void count_tx(__u32 protocol)
tools/testing/selftests/bpf/progs/test_xdp_loop.c
38
rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol);
tools/testing/selftests/bpf/progs/test_xdp_loop.c
44
__u8 protocol)
tools/testing/selftests/bpf/progs/test_xdp_loop.c
49
switch (protocol) {
tools/testing/selftests/bpf/progs/test_xdp_loop.c
93
dport = get_dport(iph + 1, data_end, iph->protocol);
tools/testing/selftests/bpf/progs/test_xdp_loop.c
97
vip.protocol = iph->protocol;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
362
iph->protocol = IPPROTO_IPIP;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
501
pckt->flow.proto = iph->protocol;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
602
__u8 *protocol, __u64 off,
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
615
*protocol = ip6h->nexthdr;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
616
pckt->flow.proto = *protocol;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
619
if (*protocol == 45) {
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
621
} else if (*protocol == 59) {
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
634
__u8 *protocol, __u64 off,
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
647
*protocol = iph->protocol;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
648
pckt->flow.proto = *protocol;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
653
if (*protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
680
__u8 protocol;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
686
action = process_l3_headers_v6(&pckt, &protocol, off,
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
689
action = process_l3_headers_v4(&pckt, &protocol, off,
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
693
protocol = pckt.flow.proto;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
694
if (protocol == IPPROTO_TCP) {
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
697
} else if (protocol == IPPROTO_UDP) {
tools/testing/selftests/bpf/progs/verifier_cgroup_skb.c
37
__imm_const(__sk_buff_protocol, offsetof(struct __sk_buff, protocol)),
tools/testing/selftests/bpf/progs/verifier_set_retval.c
11
int BPF_PROG(lsm_cgroup_set_retval_zero_valid, int family, int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/verifier_set_retval.c
20
int BPF_PROG(lsm_cgroup_set_retval_negative_valid, int family, int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/verifier_set_retval.c
29
int BPF_PROG(lsm_cgroup_set_retval_negative_invalid, int family, int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/verifier_set_retval.c
38
int BPF_PROG(lsm_cgroup_set_retval_positive_invalid, int family, int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/verifier_sock.c
438
__imm_const(bpf_sock_protocol, offsetof(struct bpf_sock, protocol))
tools/testing/selftests/bpf/progs/vrf_socket_lookup.c
41
switch (iph->protocol) {
tools/testing/selftests/bpf/progs/xdp_features.c
94
if (ih->protocol != IPPROTO_UDP)
tools/testing/selftests/bpf/progs/xdp_flowtable.c
103
tuple.l4_protocol = iph->protocol;
tools/testing/selftests/bpf/progs/xdp_flowtable.c
98
iph->protocol))
tools/testing/selftests/bpf/progs/xdp_hw_metadata.c
52
if (iph + 1 < data_end && iph->protocol == IPPROTO_UDP)
tools/testing/selftests/bpf/progs/xdp_lb_bench.c
203
iph->protocol = IPPROTO_IPIP;
tools/testing/selftests/bpf/progs/xdp_lb_bench.c
452
proto = iph->protocol;
tools/testing/selftests/bpf/progs/xdp_metadata.c
55
if (iph + 1 < data_end && iph->protocol == IPPROTO_UDP)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
394
if (hdr->ipv4->protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/xdpwall.c
290
info->proto = inner_ip4h->protocol;
tools/testing/selftests/bpf/test_iptunnel_common.h
18
__u8 protocol;
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
24
offsetof(struct bpf_sk_lookup, protocol)),
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
26
offsetof(struct bpf_sk_lookup, protocol) + 1),
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
28
offsetof(struct bpf_sk_lookup, protocol) + 2),
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
280
offsetof(struct bpf_sk_lookup, protocol)),
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
30
offsetof(struct bpf_sk_lookup, protocol) + 3),
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
33
offsetof(struct bpf_sk_lookup, protocol)),
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
35
offsetof(struct bpf_sk_lookup, protocol) + 2),
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c
38
offsetof(struct bpf_sk_lookup, protocol)),
tools/testing/selftests/bpf/verifier/ctx_skb.c
17
offsetof(struct __sk_buff, protocol)),
tools/testing/selftests/drivers/net/hw/nk_forward.bpf.c
32
if (skb->protocol != bpf_htons(ETH_P_IPV6))
tools/testing/selftests/drivers/net/hw/toeplitz.c
345
__set_filter(fd, offsetof(struct iphdr, protocol), proto,
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
38
int protocol;
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
44
.protocol = 0,
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
50
.protocol = 0,
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
56
.protocol = NETLINK_USERSOCK,
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
62
.protocol = 0,
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
68
variant->protocol);
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
72
variant->family, variant->type, variant->protocol,
tools/testing/selftests/filesystems/xattr/xattr_socket_types_test.c
76
variant->family, variant->type, variant->protocol,
tools/testing/selftests/landlock/common.h
228
int protocol;
tools/testing/selftests/landlock/common.h
232
struct protocol_variant protocol;
tools/testing/selftests/landlock/net_test.c
101
(prot->protocol == IPPROTO_UDP || prot->protocol == IPPROTO_IP);
tools/testing/selftests/landlock/net_test.c
1051
TEST_F(protocol, bind_unspec)
tools/testing/selftests/landlock/net_test.c
1147
TEST_F(protocol, connect_unspec)
tools/testing/selftests/landlock/net_test.c
1173
if (self->srv0.protocol.type == SOCK_STREAM)
tools/testing/selftests/landlock/net_test.c
1190
if (self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
1212
if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
1213
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
1221
if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
1222
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
124
sockfd = socket(srv->protocol.domain, srv->protocol.type | SOCK_CLOEXEC,
tools/testing/selftests/landlock/net_test.c
125
srv->protocol.protocol);
tools/testing/selftests/landlock/net_test.c
1253
if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
1254
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
1267
if (self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
1284
TEST_F(protocol, tcp_fastopen)
tools/testing/selftests/landlock/net_test.c
1288
(variant->prot.protocol == IPPROTO_TCP ||
tools/testing/selftests/landlock/net_test.c
1289
variant->prot.protocol == IPPROTO_IP) &&
tools/testing/selftests/landlock/net_test.c
1302
if (self->srv0.protocol.type == SOCK_STREAM)
tools/testing/selftests/landlock/net_test.c
1327
if (self->srv0.protocol.domain == AF_UNIX) {
tools/testing/selftests/landlock/net_test.c
1329
} else if (self->srv0.protocol.type == SOCK_DGRAM) {
tools/testing/selftests/landlock/net_test.c
1340
} else if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
1341
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
1353
if (!restricted && self->srv0.protocol.type == SOCK_STREAM &&
tools/testing/selftests/landlock/net_test.c
1354
self->srv0.protocol.domain != AF_UNIX) {
tools/testing/selftests/landlock/net_test.c
1362
} else if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
1363
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
1381
TEST_F(protocol, sendmsg_stream)
tools/testing/selftests/landlock/net_test.c
1476
TEST_F(protocol, sendmsg_dgram)
tools/testing/selftests/landlock/net_test.c
153
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
1680
TEST_F(protocol, sendmsg_unspec)
tools/testing/selftests/landlock/net_test.c
180
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
226
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
262
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
307
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
445
FIXTURE(protocol)
tools/testing/selftests/landlock/net_test.c
451
FIXTURE_VARIANT(protocol)
tools/testing/selftests/landlock/net_test.c
457
FIXTURE_SETUP(protocol)
tools/testing/selftests/landlock/net_test.c
478
FIXTURE_TEARDOWN(protocol)
tools/testing/selftests/landlock/net_test.c
483
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_tcp1) {
tools/testing/selftests/landlock/net_test.c
490
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
495
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_tcp2) {
tools/testing/selftests/landlock/net_test.c
501
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
506
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_mptcp) {
tools/testing/selftests/landlock/net_test.c
51
srv->protocol = prot;
tools/testing/selftests/landlock/net_test.c
512
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
517
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_tcp1) {
tools/testing/selftests/landlock/net_test.c
524
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
529
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_tcp2) {
tools/testing/selftests/landlock/net_test.c
535
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
540
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_mptcp) {
tools/testing/selftests/landlock/net_test.c
546
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
551
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_udp) {
tools/testing/selftests/landlock/net_test.c
561
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_udp) {
tools/testing/selftests/landlock/net_test.c
571
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_unix_stream) {
tools/testing/selftests/landlock/net_test.c
581
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_unix_datagram) {
tools/testing/selftests/landlock/net_test.c
591
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_tcp1) {
tools/testing/selftests/landlock/net_test.c
598
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
603
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_tcp2) {
tools/testing/selftests/landlock/net_test.c
609
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
614
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_mptcp) {
tools/testing/selftests/landlock/net_test.c
620
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
625
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_tcp1) {
tools/testing/selftests/landlock/net_test.c
632
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
637
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_tcp2) {
tools/testing/selftests/landlock/net_test.c
643
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
648
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_mptcp) {
tools/testing/selftests/landlock/net_test.c
654
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
659
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_udp) {
tools/testing/selftests/landlock/net_test.c
669
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_udp) {
tools/testing/selftests/landlock/net_test.c
679
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_unix_stream) {
tools/testing/selftests/landlock/net_test.c
689
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_unix_datagram) {
tools/testing/selftests/landlock/net_test.c
699
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_ipv4_udp1) {
tools/testing/selftests/landlock/net_test.c
705
.protocol = IPPROTO_UDP,
tools/testing/selftests/landlock/net_test.c
710
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_ipv4_udp2) {
tools/testing/selftests/landlock/net_test.c
717
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
722
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_ipv6_udp1) {
tools/testing/selftests/landlock/net_test.c
728
.protocol = IPPROTO_UDP,
tools/testing/selftests/landlock/net_test.c
733
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_ipv6_udp2) {
tools/testing/selftests/landlock/net_test.c
740
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
745
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_ipv4_tcp) {
tools/testing/selftests/landlock/net_test.c
755
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_ipv6_tcp) {
tools/testing/selftests/landlock/net_test.c
765
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_unix_stream) {
tools/testing/selftests/landlock/net_test.c
775
FIXTURE_VARIANT_ADD(protocol, udp_sandbox_with_unix_datagram) {
tools/testing/selftests/landlock/net_test.c
831
if (srv->protocol.domain == AF_UNIX) {
tools/testing/selftests/landlock/net_test.c
835
} else if (srv->protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
858
if (srv->protocol.type == SOCK_STREAM)
tools/testing/selftests/landlock/net_test.c
876
} else if (deny_bind && srv->protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
892
if (srv->protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
913
TEST_F(protocol, bind)
tools/testing/selftests/landlock/net_test.c
94
(prot->protocol == IPPROTO_TCP || prot->protocol == IPPROTO_IP);
tools/testing/selftests/landlock/net_test.c
984
TEST_F(protocol, connect)
tools/testing/selftests/nci/nci_dev.c
647
__u32 protocol;
tools/testing/selftests/nci/nci_dev.c
673
protocol = -1;
tools/testing/selftests/nci/nci_dev.c
684
protocol = *(__u32 *)((char *)na + NLA_HDRLEN);
tools/testing/selftests/nci/nci_dev.c
689
if (targetidx == -1 || sel_res != 0x20 || protocol != NFC_PROTO_ISO14443_MASK)
tools/testing/selftests/net/forwarding/ipmr.c
195
self->raw_sk = socket(variant->family, SOCK_RAW, variant->protocol);
tools/testing/selftests/net/forwarding/ipmr.c
35
int protocol;
tools/testing/selftests/net/forwarding/ipmr.c
50
.protocol = IPPROTO_IGMP,
tools/testing/selftests/net/forwarding/ipmr.c
80
.protocol = IPPROTO_ICMPV6,
tools/testing/selftests/net/icmp_rfc4884.c
198
iph->protocol = IPPROTO_UDP;
tools/testing/selftests/net/io_uring_zerocopy_tx.c
105
fd = do_setup_tx(domain, type, protocol);
tools/testing/selftests/net/io_uring_zerocopy_tx.c
212
static void do_test(int domain, int type, int protocol)
tools/testing/selftests/net/io_uring_zerocopy_tx.c
218
do_tx(domain, type, protocol);
tools/testing/selftests/net/io_uring_zerocopy_tx.c
79
static int do_setup_tx(int domain, int type, int protocol)
tools/testing/selftests/net/io_uring_zerocopy_tx.c
83
fd = socket(domain, type, protocol);
tools/testing/selftests/net/io_uring_zerocopy_tx.c
94
static void do_tx(int domain, int type, int protocol)
tools/testing/selftests/net/lib/csum.c
196
iph->protocol = proto;
tools/testing/selftests/net/lib/csum.c
345
static int open_inet(int ipproto, int protocol)
tools/testing/selftests/net/lib/csum.c
349
fd = socket(cfg_family, ipproto, protocol);
tools/testing/selftests/net/lib/csum.c
520
__recv_prepare_packet_filter(fd, offsetof(struct iphdr, protocol),
tools/testing/selftests/net/lib/csum.c
659
if (len < sizeof(*iph) || iph->protocol != proto)
tools/testing/selftests/net/lib/gro.c
205
offsetof(struct iphdr, protocol);
tools/testing/selftests/net/lib/gro.c
283
uint16_t protocol;
tools/testing/selftests/net/lib/gro.c
289
uint16_t protocol;
tools/testing/selftests/net/lib/gro.c
299
ph6.protocol = htons(IPPROTO_TCP);
tools/testing/selftests/net/lib/gro.c
308
ph4.protocol = htons(IPPROTO_TCP);
tools/testing/selftests/net/lib/gro.c
334
static void fill_networklayer(void *buf, int payload_len, int protocol)
tools/testing/selftests/net/lib/gro.c
344
ip6h->nexthdr = protocol;
tools/testing/selftests/net/lib/gro.c
356
iph->protocol = protocol;
tools/testing/selftests/net/lib/xdp_metadata.bpf.c
103
l4_proto = iph->protocol;
tools/testing/selftests/net/lib/xdp_metadata.bpf.c
62
__u8 protocol)
tools/testing/selftests/net/lib/xdp_metadata.bpf.c
64
if (protocol == IPPROTO_UDP) {
tools/testing/selftests/net/lib/xdp_metadata.bpf.c
70
} else if (protocol == IPPROTO_TCP) {
tools/testing/selftests/net/lib/xdp_native.bpf.c
102
iph->protocol != IPPROTO_UDP)
tools/testing/selftests/net/lib/xdp_native.bpf.c
207
iph->protocol != IPPROTO_UDP)
tools/testing/selftests/net/msg_zerocopy.c
273
iph->protocol = IPPROTO_EGP;
tools/testing/selftests/net/msg_zerocopy.c
326
static int do_setup_tx(int domain, int type, int protocol)
tools/testing/selftests/net/msg_zerocopy.c
330
fd = socket(domain, type, protocol);
tools/testing/selftests/net/msg_zerocopy.c
488
static void do_tx(int domain, int type, int protocol)
tools/testing/selftests/net/msg_zerocopy.c
501
fd = do_setup_tx(domain, type, protocol);
tools/testing/selftests/net/msg_zerocopy.c
530
if (domain == PF_PACKET || protocol == IPPROTO_RAW) {
tools/testing/selftests/net/msg_zerocopy.c
580
static int do_setup_rx(int domain, int type, int protocol)
tools/testing/selftests/net/msg_zerocopy.c
590
if (type == SOCK_RAW && protocol == IPPROTO_RAW)
tools/testing/selftests/net/msg_zerocopy.c
593
fd = socket(domain, type, protocol);
tools/testing/selftests/net/msg_zerocopy.c
661
static void do_rx(int domain, int type, int protocol)
tools/testing/selftests/net/msg_zerocopy.c
667
fd = do_setup_rx(domain, type, protocol);
tools/testing/selftests/net/msg_zerocopy.c
686
static void do_test(int domain, int type, int protocol)
tools/testing/selftests/net/msg_zerocopy.c
699
do_rx(domain, type, protocol);
tools/testing/selftests/net/msg_zerocopy.c
701
do_tx(domain, type, protocol);
tools/testing/selftests/net/nat6to4.bpf.c
102
.protocol = ip6->nexthdr, // u8
tools/testing/selftests/net/nat6to4.bpf.c
159
if (skb->protocol != bpf_htons(ETH_P_IP))
tools/testing/selftests/net/nat6to4.bpf.c
203
switch (ip4->protocol) {
tools/testing/selftests/net/nat6to4.bpf.c
234
.nexthdr = ip4->protocol, // __u8
tools/testing/selftests/net/nat6to4.bpf.c
62
if (skb->protocol != bpf_htons(ETH_P_IPV6))
tools/testing/selftests/net/nettest.c
1492
sd = socket(args->version, args->type, args->protocol);
tools/testing/selftests/net/nettest.c
1708
sd = socket(args->version, args->type, args->protocol);
tools/testing/selftests/net/nettest.c
2082
if (!args.protocol)
tools/testing/selftests/net/nettest.c
2083
args.protocol = IPPROTO_RAW;
tools/testing/selftests/net/nettest.c
2088
args.protocol = pe->p_proto;
tools/testing/selftests/net/nettest.c
2094
args.protocol = tmp;
tools/testing/selftests/net/nettest.c
2206
if (args.type == SOCK_STREAM && !args.protocol)
tools/testing/selftests/net/nettest.c
2207
args.protocol = IPPROTO_TCP;
tools/testing/selftests/net/nettest.c
2208
if (args.type == SOCK_DGRAM && !args.protocol)
tools/testing/selftests/net/nettest.c
2209
args.protocol = IPPROTO_UDP;
tools/testing/selftests/net/nettest.c
86
int protocol;
tools/testing/selftests/net/psock_snd.c
126
iph->protocol = IPPROTO_UDP;
tools/testing/selftests/net/psock_tpacket.c
161
ip->protocol = 0x11;
tools/testing/selftests/net/reuseport_bpf.c
159
fd[i] = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
174
if (p.protocol == SOCK_STREAM) {
tools/testing/selftests/net/reuseport_bpf.c
193
const int fd = socket(p.send_family, p.protocol, 0), one = 1;
tools/testing/selftests/net/reuseport_bpf.c
245
if (p.protocol == SOCK_STREAM) {
tools/testing/selftests/net/reuseport_bpf.c
313
fd1 = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
316
fd2 = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
33
int protocol;
tools/testing/selftests/net/reuseport_bpf.c
369
fd = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
478
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
485
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
492
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
499
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
505
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
509
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
516
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
523
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
530
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
537
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
543
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
547
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
554
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
561
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
568
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
575
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
586
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
593
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
599
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
603
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
610
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
617
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
623
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
627
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
634
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
641
.protocol = SOCK_STREAM,
tools/testing/selftests/net/rxtimestamp.c
325
s->protocol);
tools/testing/selftests/net/rxtimestamp.c
330
s->protocol);
tools/testing/selftests/net/rxtimestamp.c
39
int protocol;
tools/testing/selftests/net/socket.c
15
int protocol;
tools/testing/selftests/net/socket.c
50
fd = socket(s->domain, s->type, s->protocol);
tools/testing/selftests/net/socket.c
65
s->domain, s->type, s->protocol,
tools/testing/selftests/net/socket.c
78
s->domain, s->type, s->protocol,
tools/testing/selftests/net/tap.c
268
iph->protocol = IPPROTO_UDP;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
173
iph->protocol = proto;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
173
iph->protocol = proto;
tools/testing/selftests/net/tun.c
439
if (iph4->version != 4 || iph4->protocol != IPPROTO_UDP)
tools/testing/selftests/net/tun.c
464
if (iph4->version != 4 || iph4->protocol != IPPROTO_UDP)
tools/testing/selftests/net/tuntap_helpers.h
270
iph->protocol = proto;
tools/testing/selftests/net/tuntap_helpers.h
307
uint16_t protocol = htons(ETH_P_TEB);
tools/testing/selftests/net/tuntap_helpers.h
310
memcpy(buf + 2, &protocol, 2);
tools/testing/selftests/net/txring_overwrite.c
60
iph->protocol = IPPROTO_UDP;
tools/testing/selftests/net/txtimestamp.c
447
iph->protocol = IPPROTO_UDP;
tools/usb/usbip/libsrc/names.c
130
struct protocol *p;
tools/usb/usbip/libsrc/names.c
270
struct protocol *p;
tools/usb/usbip/libsrc/names.c
279
p = my_malloc(sizeof(struct protocol) + strlen(name));
tools/usb/usbip/libsrc/names.c
50
struct protocol *next;
tools/usb/usbip/libsrc/names.c
81
static struct protocol *protocols[HASHSZ] = { NULL, };
tools/usb/usbip/libsrc/usbip_common.c
298
uint8_t subclass, uint8_t protocol)
tools/usb/usbip/libsrc/usbip_common.c
302
if (class == 0 && subclass == 0 && protocol == 0) {
tools/usb/usbip/libsrc/usbip_common.c
303
snprintf(buff, size, "(Defined at Interface level) (%02x/%02x/%02x)", class, subclass, protocol);
tools/usb/usbip/libsrc/usbip_common.c
307
p = names_protocol(class, subclass, protocol);
tools/usb/usbip/libsrc/usbip_common.c
319
snprintf(buff, size, "%s / %s / %s (%02x/%02x/%02x)", c, s, p, class, subclass, protocol);
tools/usb/usbip/libsrc/usbip_common.h
150
uint8_t subclass, uint8_t protocol);